autoconf
[Top][All Lists]
Advanced

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

Re: produce *mod with fortran


From: Ralf Wildenhues
Subject: Re: produce *mod with fortran
Date: Tue, 1 Feb 2011 22:10:32 +0100
User-agent: Mutt/1.5.20 (2010-08-04)

* Eve-Marie Devaliere wrote on Tue, Feb 01, 2011 at 09:37:04PM CET:
> first of all even with my
> AC_CONFIG_MACRO_DIR([m4]) in configure.ac (before macro calls)
> and ACLOCAL_AMFLAGS= -I m4 in Makefile.am (top one) , I still need to run 
> aclocal with the '-I m4' else it doesn't recognize 
> AX_F90_MODULE_EXTENSION and AX_F90_MODULE_FLAG in my m4 folder... 

If you run 'autoreconf -v', it should call aclocal with the '-I m4' flag
for you.

> Then, I still get
> ./configure: line 3206: -I: command not found  
> checking fortran 90 modules inclusion flag... -I
> checking fortran 90 modules extension... mod
> ./configure: line 4716: syntax error near unexpected token `('
> ./configure: line 4716: `  $as_echo_n "(cached) " >&6'

Please show the configure.ac that you have.
Please also show the output of
  autoconf --version
  automake --version

> The lines in my configure.ac that I am guessing are raising the error are
> if test "x$ax_f90_modext" != xunknown; then
>   FC_MODEXT=$ax_f90_modext
> else
>   FC_MODEXT=$ax_f90_modext# isn't it the same??
> fi
> AC_SUBST([FC_MODEXT])

Yeah, that was a bug of mine, the else part should probably just be
  FC_MODEXT=

> I am confused because the if and else seem to do the same
> action.... If I get rid of the above section of the configure.ac file
> configure runs fine...
> 
> in configure the snippet that crashes is:
> if ${ac_cv_prog_DUMPBIN+:} false; then :
>   $as_echo_n "(cached) " >&6
> else
>   if test -n "$DUMPBIN"; then
>   ac_cv_prog_DUMPBIN="$DUMPBIN" #
> .....
> 
> Would anybody have an idea on what is going on?

Sounds like a quoting error happening earlier in configure.
But I cannot easily tell.

Hope that helps.

Cheers,
Ralf



reply via email to

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