+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.
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