On mingw, even doing 'm4 --help | sed 1q' would result in warnings about EINVAL, because mingw has odd pipe behavior and doesn't fail with EPIPE when no one is reading the other end. Gnulib works around most of this.
Meanwhile, strtol was marked obsolete in gnulib. * gnulib: Update to latest. * m4/gnulib-cache.m4: Import sigpipe module, drop strtol. Signed-off-by: Eric Blake <ebl...@redhat.com> --- On mingw, I'm still seeing some EBADF when sending m4 output to a pipe that exits early, and I'm trying to figure out if that's still a glitch in gnulib, but this is better than what we had previously in 1.4.16 so I'm pushing this now. ChangeLog | 6 ++++++ gnulib | 2 +- m4/gnulib-cache.m4 | 4 ++-- 3 files changed, 9 insertions(+), 3 deletions(-) diff --git a/ChangeLog b/ChangeLog index f007a5d..052336b 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,9 @@ +2011-04-30 Eric Blake <ebl...@redhat.com> + + build: improve SIGPIPE emulation on mingw + * gnulib: Update to latest. + * m4/gnulib-cache.m4: Import sigpipe module, drop strtol. + 2011-04-29 Eric Blake <ebl...@redhat.com> m4_defn: avoid compiler warning diff --git a/gnulib b/gnulib index ef05ce6..096d7e1 160000 --- a/gnulib +++ b/gnulib @@ -1 +1 @@ -Subproject commit ef05ce61b0e5354256e0096c7dc022bf09bbf1d3 +Subproject commit 096d7e1c450cff94143fd0681439ab42a3a63079 diff --git a/m4/gnulib-cache.m4 b/m4/gnulib-cache.m4 index d7aa3bb..6da839f 100644 --- a/m4/gnulib-cache.m4 +++ b/m4/gnulib-cache.m4 @@ -15,7 +15,7 @@ # Specification in the form of a command-line invocation: -# gnulib-tool --import --dir=. --local-dir=local --lib=libm4 --source-base=lib --m4-base=m4 --doc-base=doc --tests-base=tests --aux-dir=build-aux --with-tests --with-c++-tests --avoid=lock-tests --avoid=tls-tests --makefile-name=gnulib.mk --no-libtool --macro-prefix=M4 announce-gen assert autobuild avltree-oset binary-io c-stack clean-temp cloexec close-stream closein config-h dirname error execute fclose fdl-1.3 fflush filenamecat fopen fopen-safer fseeko gendocs getopt-gnu git-version-gen gnu-web-doc-update gnumakefile gnupload gpl-3.0 ignore-value intprops maintainer-makefile manywarnings memchr2 mkstemp obstack progname regex rename sigaction spawn-pipe stdbool stdint stdlib-safer strsignal strstr strtod strtol unlocked-io update-copyright vc-list-files verror version-etc version-etc-fsf wait-process xalloc xoset xprintf xvasprintf-posix +# gnulib-tool --import --dir=. --local-dir=local --lib=libm4 --source-base=lib --m4-base=m4 --doc-base=doc --tests-base=tests --aux-dir=build-aux --with-tests --with-c++-tests --avoid=lock-tests --avoid=tls-tests --makefile-name=gnulib.mk --no-libtool --macro-prefix=M4 announce-gen assert autobuild avltree-oset binary-io c-stack clean-temp cloexec close-stream closein config-h dirname error execute fclose fdl-1.3 fflush filenamecat fopen fopen-safer fseeko gendocs getopt-gnu git-version-gen gnu-web-doc-update gnumakefile gnupload gpl-3.0 ignore-value intprops maintainer-makefile manywarnings memchr2 mkstemp obstack progname regex rename sigaction sigpipe spawn-pipe stdbool stdint stdlib-safer strsignal strstr strtod unlocked-io update-copyright vc-list-files verror version-etc version-etc-fsf wait-process xalloc xoset xprintf xvasprintf-posix # Specification in the form of a few gnulib-tool.m4 macro invocations: gl_LOCAL_DIR([local]) @@ -59,6 +59,7 @@ gl_MODULES([ regex rename sigaction + sigpipe spawn-pipe stdbool stdint @@ -66,7 +67,6 @@ gl_MODULES([ strsignal strstr strtod - strtol unlocked-io update-copyright vc-list-files -- 1.7.4.4 _______________________________________________ M4-patches mailing list M4-patches@gnu.org https://lists.gnu.org/mailman/listinfo/m4-patches