summaryrefslogtreecommitdiff
path: root/doc
diff options
context:
space:
mode:
authorStefano Lattarini <stefano.lattarini@gmail.com>2011-10-21 14:00:36 +0200
committerStefano Lattarini <stefano.lattarini@gmail.com>2011-10-21 14:00:36 +0200
commitbd962acf3e0a2d38c11d048c8c36d9b4305b8604 (patch)
treef894a8e05698756c941d539bfb2a3e097ffd667b /doc
parent48a51ddb08efd8bbbd2b13313610837406034022 (diff)
downloadautoconf-bd962acf3e0a2d38c11d048c8c36d9b4305b8604.tar.gz
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.
Diffstat (limited to 'doc')
-rw-r--r--doc/autoconf.texi2
1 files changed, 2 insertions, 0 deletions
diff --git a/doc/autoconf.texi b/doc/autoconf.texi
index 2ab4599b..b6dc67b8 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,