summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorAlbert Cheng <acheng@hdfgroup.org>2003-04-26 04:15:57 (GMT)
committerAlbert Cheng <acheng@hdfgroup.org>2003-04-26 04:15:57 (GMT)
commit257e698ee0da67292663758c81e85f951630d63d (patch)
tree6f8316cf5224e3a4c4aa8136cb17403d4a7e29de
parent156bf14dbfe68dbda302b42dcd3b3a243b1ad092 (diff)
downloadhdf5-257e698ee0da67292663758c81e85f951630d63d.zip
hdf5-257e698ee0da67292663758c81e85f951630d63d.tar.gz
hdf5-257e698ee0da67292663758c81e85f951630d63d.tar.bz2
[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:
-rw-r--r--fortran/config/powerpc-ibm-aix5.x48
1 files changed, 47 insertions, 1 deletions
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'}