| Radu Serban 2004-10-28, 2:48 am |
| I am using autoconf for a package that is all in C, but it does
have a few examples in mixed C-Fortran. By default, Fortran support
is enabled and, among other tests, I use the AC_F77_WRAPPERS.
However, I want to be able to disable all Fortran support, so I have
added the option --without-f77 which sets some variable F77_ENABLED to
'no' and all the Fortran-related settings are encapsulated within an
if test ${F77_ENABLED} != no
....
AC_F77_WRAPPERS
....
....
fi
If F77_ENABLED is 'no', then everything works as expected, except for
the check for name mangling which seems to be done no matter what!
That's fine (although it looks weird) if a Fortran compiler exists, but
if one doesn't exists (which is why I want the --without-f77 option in
the first place) configure will crash because of the name mangling test.
How can I enforce that no Fortran-related checks are done when I use
my --without-f77 option?
Thanks!
--Radu
|