Skip to content
Snippets Groups Projects
Commit 6919adaf authored by Christian Engwer's avatar Christian Engwer
Browse files

if mpi is found, but does not work, HAVE_MPI will again be undefined

[[Imported from SVN: r4405]]
parent 6354b983
Branches
Tags
No related merge requests found
......@@ -51,6 +51,11 @@ AC_DEFUN([DUNE_MPI],[
# implicitly sets the HAVE_MPI-define and the MPICXX-substitution
ACX_MPI()
# remove HAVE_MPI from confdefs.h
cp confdefs.h confdefs.h.tmp
grep -v "^#define HAVE_MPI " confdefs.h.tmp > confdefs.h
rm -f confdefs.h.tmp
# disable runtest if we have a queuing system
AC_ARG_ENABLE(mpiruntest,
AC_HELP_STRING([--disable-mpiruntest],
......@@ -245,6 +250,7 @@ dune_mpi_remove () {
if test x"$with_mpi" != xno ; then
AC_SUBST(MPI_CPPFLAGS, $MPI_CPPFLAGS)
AC_SUBST(MPI_LDFLAGS, $MPI_LDFLAGS)
AC_DEFINE(HAVE_MPI,1,[Define if you have the MPI library.])
else
AC_SUBST(MPI_CPPFLAGS, "")
AC_SUBST(MPI_LDFLAGS, "")
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment