* tests/compile.at (AC_PROG_CPP without warnings, GNU Fortran 77):

Use AC_TRY_COMMAND when running commands, to enrich the logs.
This commit is contained in:
Akim Demaille 2000-12-19 10:17:06 +00:00
parent ccd5ae270c
commit b6e82fb53c
2 changed files with 8 additions and 2 deletions

View File

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

View 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])