summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorjshalf <jshalf@17b73243-c579-4c4c-a9d2-2d5706c11dac>2004-02-25 07:01:08 +0000
committerjshalf <jshalf@17b73243-c579-4c4c-a9d2-2d5706c11dac>2004-02-25 07:01:08 +0000
commitda5b2711b146f67c19650ea9873e07c424fdc3d0 (patch)
tree10fc55798ee510c2942835663f78f0eeac184003
parenta34f5126ddfe05021b90ec8260318d6b22ba5901 (diff)
Fix nasty AIX cpp bug on the sp by replacing it with cpp.pl.
Everything works just fine now... git-svn-id: http://svn.cactuscode.org/flesh/trunk@3579 17b73243-c579-4c4c-a9d2-2d5706c11dac
-rw-r--r--lib/make/known-architectures/aix7
1 files changed, 7 insertions, 0 deletions
diff --git a/lib/make/known-architectures/aix b/lib/make/known-architectures/aix
index 18777288..76b41c10 100644
--- a/lib/make/known-architectures/aix
+++ b/lib/make/known-architectures/aix
@@ -26,6 +26,12 @@ if test "$CCTK_CONFIG_STAGE" = 'preferred-compilers' ; then
CXX=xlC_r
fi
+ # use the Cactus preprocessor for Fortran
+ if test -z "$FPP"; then
+ FPP='$(PERL) $(CCTK_HOME)/lib/sbin/cpp.pl'
+ echo Setting FPP to $FPP
+ fi
+
else
if test "X$AIX_BITS" != 'X32' -a "X$AIX_BITS" != 'X64' ; then
@@ -48,6 +54,7 @@ else
CCTK_WriteLine make.arch.defn 'AIX_f90_FLAGS ='
CCTK_WriteLine make.arch.defn 'AIX_F_FLAGS = -qfixed'
CCTK_WriteLine make.arch.defn 'AIX_f_FLAGS = -qfixed'
+ FPP='$(PERL) $(CCTK_HOME)/lib/sbin/cpp.pl'
case "$CC" in
gcc)