summaryrefslogtreecommitdiffstats
path: root/config/ia64-linux-gnu
diff options
context:
space:
mode:
authorAlbert Cheng <acheng@hdfgroup.org>2007-09-05 01:08:04 (GMT)
committerAlbert Cheng <acheng@hdfgroup.org>2007-09-05 01:08:04 (GMT)
commit30eaba7ce49918ef9b38fc0ecffd5cae0c785b50 (patch)
tree774a0cd8488eb0f593b07612b465348405b3855b /config/ia64-linux-gnu
parent45e52cd21a20bb08011460e524c001ad2c3dc5bf (diff)
downloadhdf5-30eaba7ce49918ef9b38fc0ecffd5cae0c785b50.zip
hdf5-30eaba7ce49918ef9b38fc0ecffd5cae0c785b50.tar.gz
hdf5-30eaba7ce49918ef9b38fc0ecffd5cae0c785b50.tar.bz2
[svn-r14135] Description:
Changed to use mpicc and mpif90 as the default CC and F9X if parallel is enabled, provided mpicc and mpif90 is available. Platform Tested: tg-login using parallel and serial mode. Did not tested in other platforms because only tg-login is the only ia64 platform around.
Diffstat (limited to 'config/ia64-linux-gnu')
-rw-r--r--config/ia64-linux-gnu14
1 files changed, 10 insertions, 4 deletions
diff --git a/config/ia64-linux-gnu b/config/ia64-linux-gnu
index 44ec960..e06f066 100644
--- a/config/ia64-linux-gnu
+++ b/config/ia64-linux-gnu
@@ -18,10 +18,16 @@
# after configure starts and defines, among other things, flags for
# the various compile modes.
-# Use Intel C compiler by default (if it's available).
-if test "X$CC" = "X" && which icc > /dev/null; then
- CC=icc
- CC_BASENAME=icc
+# Use Intel C compiler by default (if it is available).
+# Use mpicc for parallel by default (if it is available).
+if test "X$CC" = "X"; then
+ if test "X-$enable_parallel" = "X-yes" && which mpicc > /dev/null; then
+ CC=mpicc
+ CC_BASENAME=mpicc
+ elif which icc > /dev/null; then
+ CC=icc
+ CC_BASENAME=icc
+ fi
fi
#----------------------------------------------------------------------------