You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
gentoo-overlay/sci-libs/gerris/files/gerris-20130531-hypre-no-mp...

23 lines
644 B

patch to allow gerris to use hypre without mpi
--- a/configure.ac
+++ b/configure.ac
@@ -336,7 +336,7 @@
# Build hypre module if HYPRE is installed
hypre=no
-if test "x$use_mpicc" = "xyes" ; then # HYPRE needs MPI
+# hypre does not need mpi
AC_CHECK_LIB(HYPRE, HYPRE_IJMatrixCreate, hypre="yes", hypre="no", [-lm])
if test x$hypre = xyes; then
AC_CHECK_HEADERS(HYPRE.h, hypre="yes", hypre="no")
@@ -344,7 +344,7 @@
if test x$hypre = xno; then
AC_MSG_WARN([HYPRE not found. hypre Module won't be available.])
fi
-fi
+
AM_CONDITIONAL(BUILD_HYPRE, test x$hypre = xyes)
# Build lis module if lis is installed