(autoconf.info)Fortran 77 Compiler Characteristics


Next: System Services Prev: C Compiler Characteristics Up: Existing Tests
Enter node , (file) or (file)node

4.8 Fortran 77 Compiler Characteristics
=======================================

The following macros check for Fortran 77 compiler characteristics.  To
check for characteristics not listed here, use 'AC_TRY_COMPILE' (Note:
Examining Syntax) or 'AC_TRY_RUN' (Note: Run Time), making sure to
first set the current lanuage to Fortran 77 'AC_LANG_FORTRAN77' (Note:
Language Choice).

 -- Macro: AC_F77_LIBRARY_LDFLAGS
     Determine the linker flags (e.g.  '-L' and '-l') for the "Fortran
     77 intrinsic and run-time libraries" that are required to
     successfully link a Fortran 77 program or shared library.  The
     output variable 'FLIBS' is set to these flags.

     This macro is intended to be used in those situations when it is
     necessary to mix, e.g.  C++ and Fortran 77 source code into a
     single program or shared library (Note: (automake)Mixing Fortran 77
     With C and C++).

     For example, if object files from a C++ and Fortran 77 compiler
     must be linked together, then the C++ compiler/linker must be used
     for linking (since special C++-ish things need to happen at link
     time like calling global constructors, instantiating templates,
     enabling exception support, etc.).

     However, the Fortran 77 intrinsic and run-time libraries must be
     linked in as well, but the C++ compiler/linker doesn't know by
     default how to add these Fortran 77 libraries.  Hence, the macro
     'AC_F77_LIBRARY_LDFLAGS' was created to determine these Fortran 77
     libraries.


automatically generated by info2www version 1.2.2.9