Tamara L Dahlgren wrote:

>In trying to integrate F90/F95 macros into our acinclude.m4 file, I've
>encountered problems with aclocal's parsing.  In particular aclocal does
>not parse the F90 or F95 preprocessor or compiler macros (i.e.,
>AC_LANG_PREPROC(Fortran 90), AC_LANG_COMPILER(Fortran 90),
>AC_LANG_PREPROC(Fortran 95), AC_LANG_COMPILER(Fortran 95)).  
>
>  
>
The F90/F95 macros we're putting in acinclude.m4 are based on autoconf's 
rules for Fortran 77. Here are the excerpts from acinclude.m4 that seem 
to cause problems when using aclocal.


# AC_LANG_PREPROC(Fortran 90)
# ---------------------------
# Find the Fortran 90 preprocessor.  Must be AC_DEFUN'd to be 
AC_REQUIRE'able.
AC_DEFUN([AC_LANG_PREPROC(Fortran 90)],
[m4_warn([syntax],
         [$0: No preprocessor defined for ]_AC_LANG)])


# AC_LANG_COMPILER(Fortran 90)
# ----------------------------
# Find the Fortran 90 compiler.  Must be AC_DEFUN'd to be
# AC_REQUIRE'able.
AC_DEFUN([AC_LANG_COMPILER(Fortran 90)],
[AC_REQUIRE([AC_PROG_F90])])

# AC_LANG_PREPROC(Fortran 95)
# ---------------------------
# Find the Fortran 95 preprocessor.  Must be AC_DEFUN'd to be 
AC_REQUIRE'able.
AC_DEFUN([AC_LANG_PREPROC(Fortran 95)],
[m4_warn([syntax],
         [$0: No preprocessor defined for ]_AC_LANG)])


# AC_LANG_COMPILER(Fortran 95)
# ----------------------------
# Find the Fortran 95 compiler.  Must be AC_DEFUN'd to be
# AC_REQUIRE'able.
AC_DEFUN([AC_LANG_COMPILER(Fortran 95)],
[AC_REQUIRE([AC_PROG_F95])])

Thanks in advance for whatever hints you can provide.

Tom




Reply via email to