[MOAB-dev] r3884 - MOAB/trunk/config

kraftche at cae.wisc.edu kraftche at cae.wisc.edu
Wed May 12 12:49:27 CDT 2010


Author: kraftche
Date: 2010-05-12 12:49:27 -0500 (Wed, 12 May 2010)
New Revision: 3884

Modified:
   MOAB/trunk/config/compiler.m4
Log:
o Use default compiler list provided by autoconf
   - fixes MAC configure issue
   - typically results in selection of g++ over vendor compiler 
       (e.g. xlC) when both are available.  Use CXX= and CC= to
       force vendor compiler if necessary
o When compiler is mpicxx, autoconf sometimes fails to identify
   it as g++.  Add our own checks for g++.


Modified: MOAB/trunk/config/compiler.m4
===================================================================
--- MOAB/trunk/config/compiler.m4	2010-05-12 01:01:23 UTC (rev 3883)
+++ MOAB/trunk/config/compiler.m4	2010-05-12 17:49:27 UTC (rev 3884)
@@ -54,10 +54,10 @@
              [WITH_MPI=$withval],[WITH_MPI=no] )
 case "x$WITH_MPI" in
   xno)
-    CC_LIST="cc gcc cl egcs pgcc"
-    CXX_LIST="CC aCC cxx xlC_r xlC c++ g++ pgCC gpp cc++ cl FCC KCC RCC"
-    FC_LIST="gfortran ifort pgf90"
-    F77_LIST="gfortran ifort pgf77"
+    CC_LIST=
+    CXX_LIST=
+    FC_LIST=
+    F77_LIST=
     ;;
   xyes)
     CC_LIST="mpicc mpcc"
@@ -111,16 +111,32 @@
 esac
 
 if test "xno" != "x$CHECK_CC"; then
-  AC_PROG_CC( [$CC_LIST] )
+  if test "x" = "x$CC_LIST"; then
+    AC_PROG_CC
+  else
+    AC_PROG_CC( [$CC_LIST] )
+  fi
 fi
 AC_PROG_CPP
 if test "xno" != "x$CHECK_CXX"; then
-  AC_PROG_CXX( [$CXX_LIST] )
+  if test "x" = "x$CXX_LIST"; then
+    AC_PROG_CXX
+  else
+    AC_PROG_CXX( [$CXX_LIST] )
+  fi
   AC_PROG_CXXCPP
 fi
 if test "xno" != "x$CHECK_FC"; then
-  AC_PROG_FC( [$FC_LIST] )
-  AC_PROG_F77( [$F77_LIST] )
+  if test "x" = "x$FC_LIST"; then
+    AC_PROG_FC
+  else
+    AC_PROG_FC( [FC_LIST] )
+  fi
+  if test "x" = "x$F77_LIST"; then
+    AC_PROG_F77
+  else


More information about the moab-dev mailing list