From 2cd1bd2a731ee903ed1ad57b16610e5c11e7da2a Mon Sep 17 00:00:00 2001 From: Tom Tromey Date: Wed, 26 Mar 1997 05:12:05 +0000 Subject: [PATCH] bug fix in "missing" checks --- ChangeLog | 4 ++++ m4/missing.m4 | 4 +++- 2 files changed, 7 insertions(+), 1 deletion(-) diff --git a/ChangeLog b/ChangeLog index 27a6e7a59..01f1040fd 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,7 @@ +Tue Mar 25 22:09:45 1997 Tom Tromey + + * m4/missing.m4: Run test in a subshell. From Gord Matzigkeit. + Mon Mar 24 23:28:59 1997 Tom Tromey * m4/sanity.m4: Sleep before creating temp file. diff --git a/m4/missing.m4 b/m4/missing.m4 index b3819c09f..cdfb753c9 100644 --- a/m4/missing.m4 +++ b/m4/missing.m4 @@ -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 -- 2.47.3