[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[SCM] GNU Autoconf source repository branch, master, updated. v2.68-97-g
From: |
Stefano Lattarini |
Subject: |
[SCM] GNU Autoconf source repository branch, master, updated. v2.68-97-gbd962ac |
Date: |
Fri, 21 Oct 2011 12:30:50 +0000 |
This is an automated email from the git hooks/post-receive script. It was
generated because a ref change was pushed to the repository containing
the project "GNU Autoconf source repository".
http://git.sv.gnu.org/gitweb/?p=autoconf.git;a=commitdiff;h=bd962acf3e0a2d38c11d048c8c36d9b4305b8604
The branch, master has been updated
via bd962acf3e0a2d38c11d048c8c36d9b4305b8604 (commit)
from 48a51ddb08efd8bbbd2b13313610837406034022 (commit)
Those revisions listed above that are new to this repository have
not appeared on any other notification email; so we list those
revisions in full, below.
- Log -----------------------------------------------------------------
commit bd962acf3e0a2d38c11d048c8c36d9b4305b8604
Author: Stefano Lattarini <address@hidden>
Date: Fri Oct 21 14:00:36 2011 +0200
fortran: define $GFC to "yes" if $FC is a GNU compiler
* lib/autoconf/fortran.m4 (AC_PROG_FC): Define `$GFC' to "yes" if
the detected fortran compiler is a GNU compiler, define it to the
empty string otherwise.
This is mostly for consistency for what is done for the C, C++
and Fortran 77 compilers.
* doc/automake.texi: Update.
-----------------------------------------------------------------------
Summary of changes:
ChangeLog | 10 ++++++++++
doc/autoconf.texi | 2 ++
lib/autoconf/fortran.m4 | 5 +++++
3 files changed, 17 insertions(+), 0 deletions(-)
diff --git a/ChangeLog b/ChangeLog
index 1bf0196..e51f7d7 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,13 @@
+2011-10-21 Stefano Lattarini <address@hidden>
+
+ fortran: define $GFC to "yes" if $FC is a GNU compiler
+ * lib/autoconf/fortran.m4 (AC_PROG_FC): Define `$GFC' to "yes" if
+ the detected fortran compiler is a GNU compiler, define it to the
+ empty string otherwise.
+ This is mostly for consistency for what is done for the C, C++
+ and Fortran 77 compilers.
+ * doc/automake.texi: Update.
+
2011-10-13 Eric Blake <address@hidden>
admin: mention recent copyright assignments
diff --git a/doc/autoconf.texi b/doc/autoconf.texi
index 2ab4599..b6dc67b 100644
--- a/doc/autoconf.texi
+++ b/doc/autoconf.texi
@@ -7931,6 +7931,8 @@ This macro may, alternatively, be invoked with an
optional first argument
which, if specified, must be a blank-separated list of Fortran
compilers to search for, just as in @code{AC_PROG_F77}.
+If using @code{gfortran} or @code{g77} (the GNU Fortran compilers), then
+set the shell variable @code{GFC} to @samp{yes}.
If the output variable @code{FCFLAGS} was not already set in the
environment, then set it to @option{-g -02} for GNU @code{g77} (or
@option{-O2} where @code{g77} does not accept @option{-g}). Otherwise,
diff --git a/lib/autoconf/fortran.m4 b/lib/autoconf/fortran.m4
index 56488a9..e630f27 100644
--- a/lib/autoconf/fortran.m4
+++ b/lib/autoconf/fortran.m4
@@ -382,6 +382,11 @@ AC_ARG_VAR([FCFLAGS], [Fortran compiler flags])dnl
_AC_ARG_VAR_LDFLAGS()dnl
_AC_ARG_VAR_LIBS()dnl
_AC_PROG_FC([$2], [$1])
+if test $ac_compiler_gnu = yes; then
+ GFC=yes
+else
+ GFC=
+fi
AC_LANG_POP(Fortran)dnl
])# AC_PROG_FC
hooks/post-receive
--
GNU Autoconf source repository
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- [SCM] GNU Autoconf source repository branch, master, updated. v2.68-97-gbd962ac,
Stefano Lattarini <=