]> git.ipfire.org Git - thirdparty/autoconf.git/commitdiff
* tests/compile.at (AC_PROG_CPP without warnings, GNU Fortran 77):
authorAkim Demaille <akim@epita.fr>
Tue, 19 Dec 2000 10:17:06 +0000 (10:17 +0000)
committerAkim Demaille <akim@epita.fr>
Tue, 19 Dec 2000 10:17:06 +0000 (10:17 +0000)
Use AC_TRY_COMMAND when running commands, to enrich the logs.

ChangeLog
tests/compile.at

index c14bb059d7cdb981d4a65296e932cb5104c30ec4..48d34f2bcc8b5e70154b7085fff9b1b82ffa504d 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,8 @@
+2000-12-19  Akim Demaille  <akim@epita.fr>
+
+       * 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  <akim@epita.fr>, Mo DeJong  <mdejong@cygnus.com>
 
        * aclang.m4 (_AC_COMPILER_EXEEXT_DEFAULT): New.
index 93c00cf3aec37d6691c51beddbe32535c13d7549..8b377f7ae6068e9709a611f0ee6c4dc05c82737c 100644 (file)
@@ -86,8 +86,9 @@ chmod +x mycpp
 
 _AT_CHECK_AC_MACRO(
 [# Ignore if /lib/cpp doesn't work
-/lib/cpp </dev/null >/dev/null 2>&1 ||
+if AC_TRY_COMMAND([/lib/cpp </dev/null >&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])