Use AC_TRY_COMMAND when running commands, to enrich the logs.
+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.
_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 &&
[[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])