autoconf-commit
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[SCM] GNU Autoconf source repository branch, master, updated. v2.68-56-g


From: Ralf Wildenhues
Subject: [SCM] GNU Autoconf source repository branch, master, updated. v2.68-56-g63aaea5e
Date: Sat, 05 Mar 2011 16:35:22 +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=63aaea5ecd84c39de578c85dd9eda3bf642322f9

The branch, master has been updated
       via  63aaea5ecd84c39de578c85dd9eda3bf642322f9 (commit)
       via  1fb4fba330d0614f77b2254d1b3df1c5075cc7e7 (commit)
      from  d641a367f95f8b1fae788c45ab549057a4dc2fc6 (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 63aaea5ecd84c39de578c85dd9eda3bf642322f9
Author: Ralf Wildenhues <address@hidden>
Date:   Sat Mar 5 15:27:08 2011 +0100

    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.
    
    Signed-off-by: Ralf Wildenhues <address@hidden>

commit 1fb4fba330d0614f77b2254d1b3df1c5075cc7e7
Author: Ralf Wildenhues <address@hidden>
Date:   Sat Mar 5 14:39:10 2011 +0100

    docs: document several Fortran and OpenMP cache variables.
    
    * doc/autoconf.texi (Generic Compiler Characteristics)
    [AC_OPENMP]: Document associated cache variables.
    (Fortran Compiler) [AC_PROG_F77, AC_PROG_FC, AC_PROG_F77_C_O]
    [AC_PROG_FC_C_O, AC_F77_LIBRARY_LDFLAGS, AC_FC_LIBRARY_LDFLAGS]
    [AC_F77_DUMMY_MAIN, AC_FC_DUMMY_MAIN, AC_F77_MAIN, AC_FC_MAIN]
    [AC_F77_WRAPPERS, AC_FC_WRAPPERS, AC_FC_FREEFORM]
    [AC_FC_FIXEDFORM, AC_FC_LINE_LENGTH, AC_FC_CHECK_BOUNDS]
    [AC_F77_IMPLICIT_NONE, AC_FC_IMPLICIT_NONE]: Document and/or
    index the cache variables used by these macros.
    
    Signed-off-by: Ralf Wildenhues <address@hidden>

-----------------------------------------------------------------------

Summary of changes:
 ChangeLog               |   19 +++++++++++++
 THANKS                  |    1 +
 doc/autoconf.texi       |   65 +++++++++++++++++++++++++++++++++++++++++++++++
 lib/autoconf/fortran.m4 |    4 +-
 4 files changed, 87 insertions(+), 2 deletions(-)

diff --git a/ChangeLog b/ChangeLog
index 45ee69a..ed4c467 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,4 +1,23 @@
 2011-03-05  Ralf Wildenhues  <address@hidden>
+
+       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.
+
+       docs: document several Fortran and OpenMP cache variables.
+       * doc/autoconf.texi (Generic Compiler Characteristics)
+       [AC_OPENMP]: Document associated cache variables.
+       (Fortran Compiler) [AC_PROG_F77, AC_PROG_FC, AC_PROG_F77_C_O]
+       [AC_PROG_FC_C_O, AC_F77_LIBRARY_LDFLAGS, AC_FC_LIBRARY_LDFLAGS]
+       [AC_F77_DUMMY_MAIN, AC_FC_DUMMY_MAIN, AC_F77_MAIN, AC_FC_MAIN]
+       [AC_F77_WRAPPERS, AC_FC_WRAPPERS, AC_FC_FREEFORM]
+       [AC_FC_FIXEDFORM, AC_FC_LINE_LENGTH, AC_FC_CHECK_BOUNDS]
+       [AC_F77_IMPLICIT_NONE, AC_FC_IMPLICIT_NONE]: Document and/or
+       index the cache variables used by these macros.
+
+2011-03-05  Ralf Wildenhues  <address@hidden>
        and Eric Blake  <address@hidden>
 
        build: exclude M4 with buggy strstr
diff --git a/THANKS b/THANKS
index d397327..648a501 100644
--- a/THANKS
+++ b/THANKS
@@ -399,6 +399,7 @@ Tim Freeman                 address@hidden
 Tim Mooney                  address@hidden
 Tim Rice                    address@hidden
 Tim Van Holder              address@hidden
+Tobias Burnus               address@hidden
 Tom Browder                 address@hidden
 Tom Epperly                 address@hidden
 Tom Lane                    address@hidden
diff --git a/doc/autoconf.texi b/doc/autoconf.texi
index 1cd246b..b552883 100644
--- a/doc/autoconf.texi
+++ b/doc/autoconf.texi
@@ -7112,6 +7112,10 @@ etc.).
 @ovindex OPENMP_CXXFLAGS
 @ovindex OPENMP_FFLAGS
 @ovindex OPENMP_FCFLAGS
address@hidden prog_c_openmp
address@hidden prog_cxx_openmp
address@hidden prog_f77_openmp
address@hidden prog_fc_openmp
 @uref{http://@/www.openmp.org/, OpenMP} specifies extensions of C, C++,
 and Fortran that simplify optimization of shared memory parallelism,
 which is a common problem on multicore CPUs.
@@ -7149,6 +7153,10 @@ For portability, it is best to avoid spaces between 
@samp{#} and
 @samp{pragma omp}.  That is, write @samp{#pragma omp}, not
 @samp{# pragma omp}.  The Sun WorkShop 6.2 C compiler chokes on the
 latter.
+
+This macro caches its result in the @code{ac_cv_prog_c_openmp},
address@hidden, @code{ac_cv_prog_f77_openmp}, or
address@hidden variable, depending on the current language.
 @end defmac
 
 @node C Compiler
@@ -7858,6 +7866,8 @@ are documented together in this section.
 @evindex FFLAGS
 @ovindex F77
 @ovindex FFLAGS
address@hidden f77_compiler_gnu
address@hidden prog_f77_g
 Determine a Fortran 77 compiler to use.  If @code{F77} is not already
 set in the environment, then check for @code{g77} and @code{f77}, and
 then some other names.  Set the output variable @code{F77} to the name
@@ -7880,6 +7890,10 @@ If the output variable @code{FFLAGS} was not already set 
in the
 environment, then set it to @option{-g -02} for @code{g77} (or @option{-O2}
 where @code{g77} does not accept @option{-g}).  Otherwise, set
 @code{FFLAGS} to @option{-g} for all other Fortran 77 compilers.
+
+The result of the GNU test is cached in the
address@hidden variable, acceptance of @option{-g} in the
address@hidden variable.
 @end defmac
 
 @defmac AC_PROG_FC (@ovar{compiler-search-list}, @ovar{dialect})
@@ -7888,6 +7902,8 @@ where @code{g77} does not accept @option{-g}).  
Otherwise, set
 @evindex FCFLAGS
 @ovindex FC
 @ovindex FCFLAGS
address@hidden fc_compiler_gnu
address@hidden prog_fc_g
 Determine a Fortran compiler to use.  If @code{FC} is not already set in
 the environment, then @code{dialect} is a hint to indicate what Fortran
 dialect to search for; the default is to search for the newest available
@@ -7912,6 +7928,10 @@ 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,
 set @code{FCFLAGS} to @option{-g} for all other Fortran compilers.
+
+The result of the GNU test is cached in the @code{ac_cv_fc_compiler_gnu}
+variable, acceptance of @option{-g} in the @code{ac_cv_prog_fc_g}
+variable.
 @end defmac
 
 @defmac AC_PROG_F77_C_O
@@ -7920,9 +7940,14 @@ set @code{FCFLAGS} to @option{-g} for all other Fortran 
compilers.
 @acindex{PROG_FC_C_O}
 @cvindex F77_NO_MINUS_C_MINUS_O
 @cvindex FC_NO_MINUS_C_MINUS_O
address@hidden prog_f77_c_o
address@hidden prog_fc_c_o
 Test whether the Fortran compiler accepts the options @option{-c} and
 @option{-o} simultaneously, and define @code{F77_NO_MINUS_C_MINUS_O} or
 @code{FC_NO_MINUS_C_MINUS_O}, respectively, if it does not.
+
+The result of the test is cached in the @code{ac_cv_prog_f77_c_o} or
address@hidden variable, respectively.
 @end defmac
 
 The following macros check for Fortran compiler characteristics.
@@ -7939,6 +7964,10 @@ or @code{AC_LANG(Fortran)} (@pxref{Language Choice}).
 @ovindex FLIBS
 @acindex{FC_LIBRARY_LDFLAGS}
 @ovindex FCLIBS
address@hidden prog_f77_v
address@hidden prog_fc_v
address@hidden f77_libs
address@hidden fc_libs
 Determine the linker flags (e.g., @option{-L} and @option{-l}) for the
 @dfn{Fortran intrinsic and runtime libraries} that are required to
 successfully link a Fortran program or shared library.  The output
@@ -7967,6 +7996,11 @@ link C/C++ with Fortran; see below.  Further, it is 
highly recommended
 that you use @code{AC_CONFIG_HEADERS} (@pxref{Configuration Headers})
 because the complex defines that the function wrapper macros create
 may not work with C/C++ compiler drivers.
+
+These macros internally compute the flag needed to verbose linking
+output and cache it in @code{ac_cv_prog_f77_v} or @code{ac_cv_prog_fc_v}
+variables, respectively.  The computed linker flags are cached in
address@hidden or @code{ac_cv_fc_libs}, respectively.
 @end defmac
 
 @defmac AC_F77_DUMMY_MAIN (@ovar{action-if-found}, @dvar{action-if-not-found, @
@@ -7977,6 +8011,8 @@ may not work with C/C++ compiler drivers.
 @cvindex F77_DUMMY_MAIN
 @acindex{FC_DUMMY_MAIN}
 @cvindex FC_DUMMY_MAIN
address@hidden f77_dummy_main
address@hidden fc_dummy_main
 With many compilers, the Fortran libraries detected by
 @code{AC_F77_LIBRARY_LDFLAGS} or @code{AC_FC_LIBRARY_LDFLAGS} provide
 their own @code{main} entry function that initializes things like
@@ -8020,6 +8056,9 @@ needed:
 Note that this macro is called automatically from @code{AC_F77_WRAPPERS}
 or @code{AC_FC_WRAPPERS}; there is generally no need to call it
 explicitly unless one wants to change the default actions.
+
+The result of this macro is cached in the @code{ac_cv_f77_dummy_main} or
address@hidden variable, respectively.
 @end defmac
 
 @defmac AC_F77_MAIN
@@ -8028,6 +8067,8 @@ explicitly unless one wants to change the default actions.
 @cvindex F77_MAIN
 @acindex{FC_MAIN}
 @cvindex FC_MAIN
address@hidden f77_main
address@hidden fc_main
 As discussed above, many Fortran libraries allow you to provide an entry
 point called (say) @code{MAIN__} instead of the usual @code{main}, which
 is then called by a @code{main} function in the Fortran libraries that
@@ -8050,6 +8091,9 @@ int F77_MAIN (int argc, char *argv[]);
 @end example
 
 (Again, replace @code{F77} with @code{FC} for Fortran instead of Fortran 77.)
+
+The result of this macro is cached in the @code{ac_cv_f77_main} or
address@hidden variable, respectively.
 @end defmac
 
 @defmac AC_F77_WRAPPERS
@@ -8060,6 +8104,8 @@ int F77_MAIN (int argc, char *argv[]);
 @acindex{FC_WRAPPERS}
 @cvindex FC_FUNC
 @cvindex FC_FUNC_
address@hidden f77_mangling
address@hidden fc_mangling
 Defines C macros @code{F77_FUNC (name, NAME)}, @code{FC_FUNC (name, NAME)},
 @code{F77_FUNC_(name, NAME)}, and @code{FC_FUNC_(name, NAME)} to properly
 mangle the names of C/C++ identifiers, and identifiers with underscores,
@@ -8125,6 +8171,10 @@ you should use @code{F77_FUNC_} or @code{FC_FUNC_} 
instead of
 @code{F77_FUNC} or @code{FC_FUNC} (with the same arguments).  This is
 because some Fortran compilers mangle names differently if they contain
 an underscore.
+
+The name mangling scheme is encoded in the @code{ac_cv_f77_mangling} or
address@hidden cache variable, respectively, and also used for
+the @code{AC_F77_FUNC} and @code{AC_FC_FUNC} macros described below.
 @end defmac
 
 @defmac AC_F77_FUNC (@var{name}, @ovar{shellvar})
@@ -8189,6 +8239,7 @@ error message).
 @defmac AC_FC_FREEFORM (@ovar{action-if-success}, @dvar{action-if-failure, @
   AC_MSG_FAILURE})
 @acindex{FC_FREEFORM}
address@hidden fc_freeform
 
 Try to ensure that the Fortran compiler (@code{$FC}) allows free-format
 source code (as opposed to the older fixed-format style from Fortran
@@ -8207,11 +8258,15 @@ If @code{AC_FC_FREEFORM} succeeds in compiling 
free-form source, it
 calls @var{action-if-success} (defaults to nothing).  If it fails, it
 calls @var{action-if-failure} (defaults to exiting with an error
 message).
+
+The result of this test, or @samp{none} or @samp{unknown}, is cached in
+the @code{ac_cv_fc_freeform} variable.
 @end defmac
 
 @defmac AC_FC_FIXEDFORM (@ovar{action-if-success}, @dvar{action-if-failure, @
   AC_MSG_FAILURE})
 @acindex{FC_FIXEDFORM}
address@hidden fc_fixedform
 
 Try to ensure that the Fortran compiler (@code{$FC}) allows the old
 fixed-format source code (as opposed to free-format style).  If
@@ -8229,11 +8284,15 @@ If @code{AC_FC_FIXEDFORM} succeeds in compiling 
fixed-form source, it
 calls @var{action-if-success} (defaults to nothing).  If it fails, it
 calls @var{action-if-failure} (defaults to exiting with an error
 message).
+
+The result of this test, or @samp{none} or @samp{unknown}, is cached in
+the @code{ac_cv_fc_fixedform} variable.
 @end defmac
 
 @defmac AC_FC_LINE_LENGTH (@ovar{length}, @ovar{action-if-success}, @
   @dvar{action-if-failure, AC_MSG_FAILURE})
 @acindex{FC_LINE_LENGTH}
address@hidden fc_line_length
 
 Try to ensure that the Fortran compiler (@code{$FC}) accepts long source
 code lines.  The @var{length} argument may be given as 80, 132, or
@@ -8246,11 +8305,15 @@ If @code{AC_FC_LINE_LENGTH} succeeds in compiling 
fixed-form source, it
 calls @var{action-if-success} (defaults to nothing).  If it fails, it
 calls @var{action-if-failure} (defaults to exiting with an error
 message).
+
+The result of this test, or @samp{none} or @samp{unknown}, is cached in
+the @code{ac_cv_fc_line_length} variable.
 @end defmac
 
 @defmac AC_FC_CHECK_BOUNDS (@ovar{action-if-success}, @
   @dvar{action-if-failure, AC_MSG_FAILURE})
 @acindex{FC_CHECK_BOUNDS}
address@hidden fc_check_bounds
 
 The @code{AC_FC_CHECK_BOUNDS} macro tries to enable array bounds checking
 in the Fortran compiler.  If successful, the @var{action-if-success}
@@ -8268,6 +8331,8 @@ variable.
   @dvar{action-if-failure, AC_MSG_FAILURE})
 @acindex{F77_IMPLICIT_NONE}
 @acindex{FC_IMPLICIT_NONE}
address@hidden f77_implicit_none
address@hidden fc_implicit_none
 
 Try to disallow implicit declarations in the Fortran compiler.  If
 successful, @var{action-if-success} is called and any needed flags
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


hooks/post-receive
-- 
GNU Autoconf source repository



reply via email to

[Prev in Thread] Current Thread [Next in Thread]