From 257e698ee0da67292663758c81e85f951630d63d Mon Sep 17 00:00:00 2001 From: Albert Cheng Date: Fri, 25 Apr 2003 23:15:57 -0500 Subject: [svn-r6759] Purpose: bug fix Description: The default of CC used to be gcc which is not compatible with the default fortran compiler of xlf. Solution: Copied the CC default setting from the C-API level. Platforms tested: Run test in Copper since this is a purely AIX change. Misc. update: --- fortran/config/powerpc-ibm-aix5.x | 48 ++++++++++++++++++++++++++++++++++++++- 1 file changed, 47 insertions(+), 1 deletion(-) diff --git a/fortran/config/powerpc-ibm-aix5.x b/fortran/config/powerpc-ibm-aix5.x index ad89cb1..c2b17cf 100644 --- a/fortran/config/powerpc-ibm-aix5.x +++ b/fortran/config/powerpc-ibm-aix5.x @@ -6,7 +6,53 @@ # # See BlankForm in this directory for details. -RUNPARALLEL=${RUNPARALLEL="MP_PROCS=2 MP_TASKS_PER_NODE=2 poe"} +# Use AIX supplied C compiler by default, xlc for serial, mpcc_r for parallel. +# Use -D_LARGE_FILES by default to support large file size. +if test "X-" = "X-$CC"; then + if test "X-$enable_parallel" = "X-yes"; then + CC='mpcc_r -D_LARGE_FILES' + CC_BASENAME=mpcc_r + RUNPARALLEL=${RUNPARALLEL="MP_PROCS=3 MP_TASKS_PER_NODE=3 poe"} + else + CC='xlc -D_LARGE_FILES' + CC_BASENAME=xlc + fi +fi + +#---------------------------------------------------------------------------- +# Compiler flags. The CPPFLAGS values should not include package debug +# flags like `-DH5G_DEBUG' since these are added with the +# `--enable-debug' switch of configure. + +case $CC_BASENAME in + xlc|mpcc_r) + # Turn off shared lib option. It causes some test suite to fail. + enable_shared="${enable_shared:-no}" + # CFLAGS must be set else configure set it to -g + CFLAGS="$CFLAGS" + DEBUG_CFLAGS="-g" + DEBUG_CPPFLAGS= + # -O causes test/dtypes to fail badly. Turn it off for now. + PROD_CFLAGS="" + PROD_CPPFLAGS= + PROFILE_CFLAGS="-pg" + PROFILE_CPPFLAGS= + ;; + + gcc) + . $srcdir/config/gnu-flags + ;; + + *) + CFLAGS="$CFLAGS -ansi" + DEBUG_CFLAGS="-g" + DEBUG_CPPFLAGS= + PROD_CFLAGS="-O" + PROD_CPPFLAGS= + PROFILE_CFLAGS="-pg" + PROFILE_CPPFLAGS= + ;; +esac # Cross compiling defaults ac_cv_c_bigendian=${ac_cv_c_bigendian='yes'} -- cgit v0.12