From: Akim Demaille Date: Tue, 19 Dec 2000 10:17:06 +0000 (+0000) Subject: * tests/compile.at (AC_PROG_CPP without warnings, GNU Fortran 77): X-Git-Tag: autoconf-2.50~294 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=b6e82fb53c29978459ee0b83e71d2eaa97c817b3;p=thirdparty%2Fautoconf.git * tests/compile.at (AC_PROG_CPP without warnings, GNU Fortran 77): Use AC_TRY_COMMAND when running commands, to enrich the logs. --- diff --git a/ChangeLog b/ChangeLog index c14bb059d..48d34f2bc 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,8 @@ +2000-12-19 Akim Demaille + + * tests/compile.at (AC_PROG_CPP without warnings, GNU Fortran 77): + Use AC_TRY_COMMAND when running commands, to enrich the logs. + 2000-12-19 Akim Demaille , Mo DeJong * aclang.m4 (_AC_COMPILER_EXEEXT_DEFAULT): New. diff --git a/tests/compile.at b/tests/compile.at index 93c00cf3a..8b377f7ae 100644 --- a/tests/compile.at +++ b/tests/compile.at @@ -86,8 +86,9 @@ chmod +x mycpp _AT_CHECK_AC_MACRO( [# Ignore if /lib/cpp doesn't work -/lib/cpp /dev/null 2>&1 || +if AC_TRY_COMMAND([/lib/cpp &2]); then :; else AC_MSG_ERROR([preprocessor doesn't work], 77) +fi CPP=./mycpp AC_PROG_CPP test "x$ac_c_preproc_warn_flag" != xyes && @@ -124,7 +125,7 @@ AT_CHECK_MACRO([GNU Fortran 77], [[AC_LANG(Fortran 77) AC_LANG_COMPILER -if $F77 --version 2>/dev/null | grep GNU >/dev/null; then +if AC_TRY_COMMAND([$F77 --version | grep GNU >&2]); then # Has GNU in --version. test "$G77" != yes && AC_MSG_ERROR([failed to recognize GNU Fortran 77 compiler])