]> git.ipfire.org Git - thirdparty/coreutils.git/commitdiff
build: avoid building stdbuf on cygwin
authorPádraig Brady <P@draigBrady.com>
Wed, 16 Jul 2014 15:47:50 +0000 (16:47 +0100)
committerPádraig Brady <P@draigBrady.com>
Thu, 31 Jul 2014 10:00:55 +0000 (11:00 +0100)
* configure.ac: Don't add stdbuf to the list of programs to build
if EXEEXT is set, as that is not handled in configure.ac for
libstdbuf.so yet (see bin_PRGRAMS handling in configure.ac).
Also the LD_PRELOAD mechanism will need to be adjusted to support
cygwin in any case, so avoid stdbuf completely in this case for now.
Problem reported by Eric Blake.

configure.ac

index ae78cb1877477635829a0f29f52539c1150a52b9..e061a0ad5a8fcdf4e0671697b6c67627e21f16c9 100644 (file)
@@ -473,7 +473,7 @@ AC_COMPILE_IFELSE(
   [stdbuf_supported=yes],
   [stdbuf_supported=no])
 AC_MSG_RESULT([$stdbuf_supported])
-if test "$stdbuf_supported" = "yes"; then
+if test "$stdbuf_supported" = "yes" && test -z "$EXEEXT"; then
   gl_ADD_PROG([optional_bin_progs], [stdbuf])
 fi