[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: New macro AC_FC_IMPLICIT_NONE to disable Fortran implicit int.
From: |
Ralf Wildenhues |
Subject: |
Re: New macro AC_FC_IMPLICIT_NONE to disable Fortran implicit int. |
Date: |
Sat, 5 Mar 2011 17:38:14 +0100 |
User-agent: |
Mutt/1.5.20 (2010-08-04) |
* Ralf Wildenhues wrote on Sat, Mar 05, 2011 at 09:37:55AM CET:
> New macros AC_{F77,FC}_IMPLICIT_NONE to disable Fortran implicit int.
>
> * lib/autoconf/fortran.m4 (_AC_FC_IMPLICIT_NONE): New internal
> macro.
> (AC_F77_IMPLICIT_NONE, AC_FC_IMPLICIT_NONE): New macros.
> * doc/autoconf.texi (Fortran Compiler): Document them.
> * NEWS: Update.
First bugfix patch. Pushing as below, adding Tobias to THANKS.
Thanks,
Ralf
Fix Cray Fortran flag for AC_FC_IMPLICIT_NONE.
* lib/autoconf/fortran.m4 (_AC_FC_IMPLICIT_NONE): Use -e I
not -d i, for Cray ftn.
* THANKS: Update.
Thanks to Tobias Burnus for feedback and testing.
diff --git a/lib/autoconf/fortran.m4 b/lib/autoconf/fortran.m4
index 237cdd9..84f3162 100644
--- a/lib/autoconf/fortran.m4
+++ b/lib/autoconf/fortran.m4
@@ -1470,7 +1470,7 @@ AC_LANG_POP([Fortran])dnl
# Compaq: -u, -warn declarations
# NAGWare: -u
# Lahey: -in, --in, -AT
-# Cray: -Mdclchk -d i
+# Cray: -Mdclchk -e I
# PGI: -Mcdlchk
# f2c: -u
AC_DEFUN([_AC_FC_IMPLICIT_NONE],
@@ -1480,7 +1480,7 @@ AC_CACHE_CHECK([for flag to disallow _AC_LANG implicit
declarations],
[ac_cv_[]_AC_LANG_ABBREV[]_implicit_none=unknown
ac_fc_implicit_none_[]_AC_LANG_PREFIX[]FLAGS_save=$[]_AC_LANG_PREFIX[]FLAGS
for ac_flag in none -fimplicit-none -u -Wimplicit -implicitnone +implicit_none
\
- -qundef "-warn declarations" -in --in -AT "-d i" -Mdclchk \
+ -qundef "-warn declarations" -in --in -AT "-e I" -Mdclchk \
"-u -warn errors"
do
if test "x$ac_flag" != xnone; then