help-gnu-utils
[Top][All Lists]
Advanced

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

autotools, preprocessors, and fortran 90


From: John
Subject: autotools, preprocessors, and fortran 90
Date: Sun, 10 Dec 2006 21:37:41 +0900
User-agent: Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.7.13) Gecko/20060909

Hi,

I don't know if this is the right place for this question, but ...

I'm trying to set up a small fortran 90 project using the gnu
auto-tools.  My fortran files (*.f90) require a preprocessor to
interpret # directives.  In the case of gcc, I need to add the flag -x
f95-cpp-input to force the use of the preprocessor.  I can do this
by adding the line

AM_FCFLAGS = -x f95-cpp-input

to Makefile.am.  I have two problems with this. One, it will only work
with compilers that accept this flag, e.g., gcc.  Two, it also gets
passed to the linker, which requires fiddling with the linker flags.

Any ideas on what the best way to handle this problem is?  (I'm a
beginner with using the gnu autotools.)

Thanks,
John


reply via email to

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