autoconf-patches
[Top][All Lists]
Advanced

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

docs: document several Fortran and OpenMP cache variables.


From: Ralf Wildenhues
Subject: docs: document several Fortran and OpenMP cache variables.
Date: Sat, 5 Mar 2011 17:35:44 +0100
User-agent: Mutt/1.5.20 (2010-08-04)

I went ahead and documented a bunch of cache variables, as below.

The only one I think looks kinda odd in hindsight is
ac_cv_prog_c_openmp, as all other ac_cv_prog_* cache variables that deal
with the C compiler use cc not c as key.

Thanks,
Ralf

    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.

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 @@ Generic Compiler Characteristics
 @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 @@ Generic Compiler Characteristics
 @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 @@ Fortran Compiler
 @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 @@ Fortran Compiler
 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 @@ Fortran Compiler
 @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 @@ Fortran Compiler
 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 @@ Fortran Compiler
 @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 @@ Fortran Compiler
 @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 @@ Fortran Compiler
 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 @@ Fortran Compiler
 @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 @@ Fortran Compiler
 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 @@ Fortran Compiler
 @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 @@ Fortran Compiler
 @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 @@ Fortran Compiler
 @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 @@ Fortran Compiler
 @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 @@ Fortran Compiler
 @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 @@ Fortran Compiler
 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 @@ Fortran Compiler
 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 @@ Fortran Compiler
 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 @@ Fortran Compiler
   @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



reply via email to

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