>From a7ed24ccfb253faec3ecfec3abdfdc89d0c460a5 Mon Sep 17 00:00:00 2001 From: Ralf Wildenhues Date: Sat, 31 Jul 2010 17:46:48 +0200 Subject: [PATCH] Fix recommendation for compiling everything with MPI. * m4/ax_mpi.m4: Fix typos when compiling everything with MPI. Update description to include defaulting CC to MPICC if only the latter was set. --- m4/ax_mpi.m4 | 17 +++++++++++++---- 1 files changed, 13 insertions(+), 4 deletions(-) diff --git a/m4/ax_mpi.m4 b/m4/ax_mpi.m4 index 06c0abd..9607203 100644 --- a/m4/ax_mpi.m4 +++ b/m4/ax_mpi.m4 @@ -19,10 +19,19 @@ # are needed for linking MPI (e.g. -lmpi or -lfmpi, if a special # MPICC/MPICXX/MPIF77/MPIFC was not found). # -# If you want to compile everything with MPI, you should set: -# -# CC="MPICC" #OR# CXX="MPICXX" #OR# F77="MPIF77" #OR# FC="MPIFC" -# LIBS="$MPILIBS $LIBS" +# If you want to compile everything with MPI, you should use something like +# this for C: +# +# if test -z "$CC" && test -n "$MPICC"; then +# CC="$MPICC" +# fi +# AC_PROG_CC +# AX_MPI +# CC="$MPICC" +# LIBS="$MPILIBS $LIBS" +# +# and similar for C++ (change all instances of CC to CXX), Fortran 77 +# (with F77 instead of CC) or Fortran (with FC instead of CC). # # NOTE: The above assumes that you will use $CC (or whatever) for linking # as well as for compiling. (This is the default for automake and most -- 1.7.2.rc3.47.g996ce