From 832a3db9a3a2c0d033d3c299948cbe51a816abe5 Mon Sep 17 00:00:00 2001 From: Albert Cheng Date: Mon, 7 Feb 2011 14:48:02 -0500 Subject: [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. --- config/linux-gnulibc1 | 10 ++++++++-- 1 file 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 -- cgit v0.12