Commit bb7ff3c2 authored by Uwe Schulzweida's avatar Uwe Schulzweida
Browse files

added --enable-mpi to compile with MPI compiler (Luis Kornblueh)

parent 9dcde362
......@@ -341,6 +341,20 @@ if test "${enable_dap}" = "yes"; then
fi
fi
# ----------------------------------------------------------------------
# Compile with MPI support
AC_ARG_ENABLE(mpi,AS_HELP_STRING([--enable-mpi],[Compile with MPI compiler [[default=no]]]),enable_mpi=${enableval},enable_mpi=no)
if test "${enable_mpi}" = "yes"; then
if test "${host_os:0:3}" = "aix"; then
replace_cc="mpcc_r"
else
replace_cc="mpicc"
fi
else
replace_cc=$CC
fi
# ----------------------------------------------------------------------
# Is the netcdf present? It has a header file `netcdf.h' and a library
# `-lnetcdf' and their locations might be specified with the `--with-netcdf'
......@@ -437,6 +451,10 @@ AC_SUBST([CFINT])
AC_SUBST([CPPFLAGS])
AC_SUBST([AR])
if test "${replace_cc}" != ""; then
CC=$replace_cc
fi
AC_OUTPUT(Makefile src/Makefile interfaces/Makefile app/Makefile tests/Makefile examples/Makefile)
if test "$ac_cv_prog_cc_c99" = "no" ; then
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment