Blitz logo

Blitz Devel :

From: Theodore Papadopoulo (Theodore.Papadopoulo_at_[hidden])
Date: 2004-05-05 12:21:19


patrick.guio_at_[hidden] said:
> AC_FC_FREEFORM and AC_FC_SRCEXT should definitely be used for f90
> until f90 support exists. Using the FC* variables avoids to declare a
> new set of variables F90* and compiler tests are run with FC
> variables. I have seen in several projects FC variables used for the
> f90 compiler.

I do not claim that they are not useful, I claim that on a very
recent redhat Fedora core 1, with an upgrade for automake and
autoconf (and even maybe for libtool), those autoconf macros make the
configuration to abort...

cd blitz-src
export ACLOCAL="aclocal -I m4/"
autoreconf --verbose -i --force $SRC_DIR 2>&1 | tee AUTOTOOLS.log1

/usr/bin/autoconf --version
autoconf (GNU Autoconf) 2.59
[ Deleted stuff ]

cd ~/compiles/blitz-linux-3.4-test/
~/src/Cvs/Blitz/blitz/configure --with-cxx=gcc
[ Deleted stuff ]

configure: Setting compiler flags for GNU g++ (wahoo!)
checking for xlf... no
checking for f77... f77
checking whether we are using the GNU Fortran 77 compiler... yes
checking whether f77 accepts -g... yes
checking for xlf90... no
checking for f90... no
checking for ifort... no
checking for ifc... no
checking for pgf90... no
checking whether we are using the GNU Fortran compiler... no
checking whether accepts -g... no
checking for Fortran flag needed to allow free-form source... unknown
configure: error: Fortran does not accept free-form source

End of the game !!!
I'm pretty sure that it was the same with autoconf 2.58...
>From there, I do not know what to do except removing the two
AC_FC_FREEFORM
AC_FC_SRCEXT(f90)
and then everything works fine.

Now, I just read the documentation, and it seems that the proper way
to deal with this is to specify an action-if-failure which disables
the fortran (90?) tests instead of the default action-if-failure
which is "exit with an error message".

Do you agree with this ?

        Theo.

--------------------------------------------------------------------
Theodore Papadopoulo
Email: Theodore.Papadopoulo_at_[hidden] Tel: (33) 04 92 38 76 01
 --------------------------------------------------------------------