From da5b2711b146f67c19650ea9873e07c424fdc3d0 Mon Sep 17 00:00:00 2001 From: jshalf Date: Wed, 25 Feb 2004 07:01:08 +0000 Subject: 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 --- lib/make/known-architectures/aix | 7 +++++++ 1 file changed, 7 insertions(+) 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) -- cgit v1.2.3