[mpich2-commits] r7412 - mpich2/trunk/confdb

gropp at mcs.anl.gov gropp at mcs.anl.gov
Thu Nov 4 08:13:06 CDT 2010


Author: gropp
Date: 2010-11-04 08:13:05 -0500 (Thu, 04 Nov 2010)
New Revision: 7412

Modified:
   mpich2/trunk/confdb/aclocal_mpi.m4
Log:
Update --with-mpi for IBM MPI+Fortran compiler mpfort

Modified: mpich2/trunk/confdb/aclocal_mpi.m4
===================================================================
--- mpich2/trunk/confdb/aclocal_mpi.m4	2010-11-03 18:35:55 UTC (rev 7411)
+++ mpich2/trunk/confdb/aclocal_mpi.m4	2010-11-04 13:13:05 UTC (rev 7412)
@@ -301,22 +301,22 @@
 
 	ibmmpi)
 	AC_CHECK_PROGS(MPCC,mpcc)
-	AC_CHECK_PROGS(MPXLF,mpxlf)
+	AC_CHECK_PROGS(MPXLF,mpxlf mpfort)
 	if test -z "$MPCC" -o -z "$MPXLF" ; then
-	    AC_MSG_ERROR([Could not find IBM MPI compilation scripts.  Either mpcc or mpxlf is missing])
+	    AC_MSG_ERROR([Could not find IBM MPI compilation scripts.  Either mpcc or mpxlf/mpfort is missing])
 	fi
 	if test -z "$TESTCC" ; then TESTCC=${CC-xlC} ; fi
 	if test -z "$TESTF77" ; then TESTF77=${F77-xlf}; fi
-	CC=mpcc; F77=mpxlf
+	CC=mpcc; F77=$MPXLF
 	# There is no mpxlf90, but the options langlvl and free can
 	# select the Fortran 90 version of xlf
 	if test "$enable_f90" != no ; then
-	    AC_CHECK_PROGS(MPIXLF90,mpxlf90)
+	    AC_CHECK_PROGS(MPIXLF90,mpxlf90 mpfort)
 	    if test -z "$TESTFC" ; then TESTFC=${FC-xlf90}; fi
             if test "X$MPIXLF90" != "X" ; then 
-	        FC="mpxlf90"
+	        FC="$MPIXLF90"
 	    else
-	    	FC="mpxlf -qlanglvl=90ext -qfree=f90"
+	    	FC="$MPXLF -qlanglvl=90ext -qfree=f90"
 	    fi
 	fi
 	MPILIBNAME=""



More information about the mpich2-commits mailing list