]> sourceware.org Git - automake.git/commitdiff
bug fix in "missing" checks
authorTom Tromey <tromey@redhat.com>
Wed, 26 Mar 1997 05:12:04 +0000 (05:12 +0000)
committerTom Tromey <tromey@redhat.com>
Wed, 26 Mar 1997 05:12:04 +0000 (05:12 +0000)
ChangeLog
m4/missing.m4

index 27a6e7a592828256d335284a1edf5518336e3958..01f1040fd6724694570a1aee84a8e81c9ec2c405 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,7 @@
+Tue Mar 25 22:09:45 1997  Tom Tromey  <tromey@cygnus.com>
+
+       * m4/missing.m4: Run test in a subshell.  From Gord Matzigkeit.
+
 Mon Mar 24 23:28:59 1997  Tom Tromey  <tromey@cygnus.com>
 
        * m4/sanity.m4: Sleep before creating temp file.
index b3819c09fefc75c331c311fac6471f2a436a85e5..cdfb753c9f546d271e2fefc264eca1b3c3ce77b3 100644 (file)
@@ -5,7 +5,9 @@ dnl AM_MISSING_PROG(NAME, PROGRAM, DIRECTORY)
 dnl The program must properly implement --version.
 AC_DEFUN(AM_MISSING_PROG,
 [AC_MSG_CHECKING(for working $2)
-if $2 --version > /dev/null 2>&1; then
+# Run test in a subshell; some versions of sh will print an error if
+# an executable is not found, even if stderr is redirected.
+if ($2 --version) > /dev/null 2>&1; then
    $1=$2
    AC_MSG_RESULT(found)
 else
This page took 0.038466 seconds and 5 git commands to generate.