autoconf
[Top][All Lists]
Advanced

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

Re: produce *mod with fortran


From: Eve-Marie Devaliere
Subject: Re: produce *mod with fortran
Date: Mon, 31 Jan 2011 12:21:10 -0500
User-agent: Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.9.2.13) Gecko/20101207 Thunderbird/3.1.7

Thanks Ralph! I am now trying to make my package more portable so I am
working on the part below

> Do you need the package to be very portable?  If so, I suggest you go to
> the Autoconf Macro Archive and grab two Fortran-related macros,
> AX_F90_MODULE_EXTENSION and AX_F90_MODULE_FLAG.
>
> We then use roughly the following in configure.ac besides what you
> already have:
>
> # Find out how to add to the Fortran include path.
> AX_F90_MODULE_FLAG
> # The module flag may be "-I " or so, and some make implementations
> # swallow trailing space in variable settings, so we employ a little
> # trick.
> AC_SUBST([empty], [""])
> AC_SUBST([FC_MODINC], [$ax_f90_modflag'${empty}'])
> # Find out the file name extensions of Fortran module files.
> AX_F90_MODULE_EXTENSION
> if test "x$ax_f90_modext" != xunknown; then
>   FC_MODEXT=$ax_f90_modext
> else
>   FC_MODEXT=$ax_f90_modext
> fi
> AC_SUBST([FC_MODEXT]) 
isn't the if/else above the same thing?

When I run autoconf I get:
configure.ac:81: warning: AC_CACHE_VAL(ax_f90_modflag, ...): suspicious
cache-id, must contain _cv_ to be cached
autoconf/general.m4:2047: AC_CACHE_VAL is expanded from...
autoconf/general.m4:2060: AC_CACHE_CHECK is expanded from...
m4/ax_f90_module_flag.m4:53: AX_F90_MODULE_FLAG is expanded from...
configure.ac:81: the top level
configure.ac:88: warning: AC_CACHE_VAL(ax_f90_modext, ...): suspicious
cache-id, must contain _cv_ to be cached
autoconf/general.m4:2047: AC_CACHE_VAL is expanded from...
autoconf/general.m4:2060: AC_CACHE_CHECK is expanded from...
m4/ax_f90_module_extension.m4:42: AX_F90_MODULE_EXTENSION is expanded
from...
configure.ac:88: the top level

Did I do anything wrong? I have both AX_F90_MODULE_FLAG and
AX_F90_MODULE_EXTENSION in my m4 directory and ran aclocal -I m4
I also have AC_CONFIG_MACRO_DIR([m4]) in my configure.ac file somewhere
up from that section.... (it seems to find them anyways)
I get the same warnings running automake and if I keep on going (tried
since there were warnings only) I get the following for ./configure
checking fortran 90 modules inclusion flag... not found
checking fortran 90 modules extension... unknown
./configure: line 4710: syntax error near unexpected token `('
./configure: line 4710: `  $as_echo_n "(cached) " >&6'

Thanks,
Cheers,
Eve-Marie





reply via email to

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