Can gfortran compile fftw3?

Steven G. Johnson stevenj@alum.mit.edu
Wed Feb 23 18:29:00 GMT 2005


Steven G. Johnson wrote:
> The Fortran compiler is only used in the configure script to detect its 
> identifier-mangling convention, so that we can include Fortran 77 
> -callable wrappers (still written in C).  Thus, the only question is 
> whether the AC_F77_WRAPPERS autoconf macro works with gfortran, and 
> whether gfortran can call f77-like routines; I remember checking ages 
> ago, and it did work, so assuming nothing has changed it should be fine...
> 
> Also, IIRC gfortran uses the same conventions (for F77 code) as g77, so 
> you should just be able to use a default FFTW (configured for g77) with 
> gfortran code.

I just checked, and AC_F77_WRAPPERS does indeed still work with gfortran:

	checking for Fortran 77 name-mangling scheme... lower case, underscore, 
extra underscore

And, moreover, it is the same mangling convention as g77, so there is no 
difference in FFTW whether you configure with gfortran or g77.

Steven



More information about the Fortran mailing list