summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorAlbert Cheng <acheng@hdfgroup.org>2011-02-07 19:48:02 (GMT)
committerAlbert Cheng <acheng@hdfgroup.org>2011-02-07 19:48:02 (GMT)
commit832a3db9a3a2c0d033d3c299948cbe51a816abe5 (patch)
tree6c89a3b4282d6d364c19fcc0436734dbeba8a1b0
parentdd434c8d1f068c54b361386d1b36783c1febe604 (diff)
downloadhdf5-832a3db9a3a2c0d033d3c299948cbe51a816abe5.zip
hdf5-832a3db9a3a2c0d033d3c299948cbe51a816abe5.tar.gz
hdf5-832a3db9a3a2c0d033d3c299948cbe51a816abe5.tar.bz2
[svn-r20059] Changed Linux system to use mpicc as the default parallel C compiler.
mpif90 is already the default parallel Fortran if mpicc is the C compiler. Tested: Amani (serial and parallel). No need for committest since this change is limited to Linux system.
-rw-r--r--config/linux-gnulibc110
1 files changed, 8 insertions, 2 deletions
diff --git a/config/linux-gnulibc1 b/config/linux-gnulibc1
index 26a0c3a..8f04cf0 100644
--- a/config/linux-gnulibc1
+++ b/config/linux-gnulibc1
@@ -22,8 +22,14 @@
# The default compiler is `gcc'.
if test -z "$CC"; then
- CC=gcc
- CC_BASENAME=gcc
+ if test "X-$enable_parallel" = "X-yes"; then
+ # default to use mpicc which is the defacto MPI compiler name
+ CC=mpicc
+ CC_BASENAME=mpicc
+ else
+ CC=gcc
+ CC_BASENAME=gcc
+ fi
fi
# Figure out GNU C compiler flags