[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: fort77(f2c wrapper) is not properly detected
From: |
Ralf Wildenhues |
Subject: |
Re: fort77(f2c wrapper) is not properly detected |
Date: |
Fri, 4 Mar 2011 20:16:05 +0100 |
User-agent: |
Mutt/1.5.20 (2010-08-04) |
* Giulio Paci wrote on Tue, Dec 07, 2010 at 01:43:15AM CET:
> Il 05/12/2010 22:19, Ralf Wildenhues ha scritto:
> Output changes from:
>
> Fortran low level compiling/preprocessing macros.
>
> 303: GNU Fortran 77 FAILED (fortran.at:31)
> 304: GNU Fortran ok
[...]
> To:
>
> Fortran low level compiling/preprocessing macros.
>
> 303: GNU Fortran 77 FAILED (fortran.at:31)
> 304: GNU Fortran ok
This was still missing from a testsuite run with f2c wrapper fort77
fully passing. The patch below corrects that.
OK to push?
Thanks,
Ralf
2011-03-04 Ralf Wildenhues <address@hidden>
* tests/fortran.at (GNU Fortran 77): Try to detect f2c wrapper
fort77 as GNU as well: it defines __GNUC__ too. Fixes testsuite
failure when f77 is fort77.
Report from Giulio Paci.
diff --git a/tests/fortran.at b/tests/fortran.at
index 741525e..4639a3a 100644
--- a/tests/fortran.at
+++ b/tests/fortran.at
@@ -32,17 +32,19 @@ AT_CHECK_MACRO([GNU Fortran 77],
[[AC_LANG(Fortran 77)
AC_LANG_COMPILER
-if AC_TRY_COMMAND([$F77 --version | grep GNU >&2]); then
+: > conftest.f
+if AC_TRY_COMMAND([$F77 --version | grep GNU >&2]) \
+ || AC_TRY_COMMAND([$F77 -v -c conftest.f 2>&1 | grep "f2c " >&2]); then
# Be sure to remove files which might be created by compilers that
- # don't support --version.
- rm -f a.exe a.out
+ # don't support --version, or by the second compile.
+ rm -f a.exe a.out conftest.f conftest.$ac_objext
# 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
+ # don't support --version, or by the second compile.
+ rm -f a.exe a.out conftest.f conftest.$ac_objext
# Has not.
test "$G77" = yes &&
AC_MSG_ERROR([incorrectly recognized a GNU Fortran 77 compiler])
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- Re: fort77(f2c wrapper) is not properly detected,
Ralf Wildenhues <=