From fbb6a65e7ad47fe0cad95dfdeb77dc199887a1dc Mon Sep 17 00:00:00 2001 From: Akim Demaille Date: Sat, 19 May 2001 15:15:54 +0000 Subject: [PATCH] * tests/compile.at (GNU Fortran 77): Don't AS_EXIT when using AT_CHECK_MACRO since it skips tests embedded in configure.ac. Remove files which might have been created when invoking the compiler. Reported by Nicolas Joly. --- ChangeLog | 8 ++++++++ tests/compile.at | 9 +++++++-- 2 files changed, 15 insertions(+), 2 deletions(-) diff --git a/ChangeLog b/ChangeLog index 43add3a4..3dfbeb51 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,11 @@ +2001-05-19 Akim Demaille + + * tests/compile.at (GNU Fortran 77): Don't AS_EXIT when using + AT_CHECK_MACRO since it skips tests embedded in configure.ac. + Remove files which might have been created when invoking the + compiler. + Reported by Nicolas Joly. + 2001-05-14 Pavel Roskin * doc/autoconf.texi (Shellology): Document a quirk in diff --git a/tests/compile.at b/tests/compile.at index 64b4b8f1..7b7dd4de 100644 --- a/tests/compile.at +++ b/tests/compile.at @@ -266,12 +266,17 @@ AT_CHECK_MACRO([GNU Fortran 77], AC_LANG_COMPILER if AC_TRY_COMMAND([$F77 --version | grep GNU >&2]); then + # Be sure to remove files which might be created by compilers that + # don't support --version. + rm -f a.exe a.out # Has GNU in --version. test "$G77" != yes && AC_MSG_ERROR([failed to recognize GNU Fortran 77 compiler]) else + # Be sure to remove files which might be created by compilers that + # don't support --version. + rm -f a.exe a.out # Has not. test "$G77" = yes && AC_MSG_ERROR([incorrectly recognized a GNU Fortran 77 compiler]) -fi -AS_EXIT(0)]]) +fi]])