Skip to content
Snippets Groups Projects
Commit f5dedc70 authored by Oliver Sander's avatar Oliver Sander
Browse files

fixing my last fix. Sequential UG still wasn't found when no MPI is installed

[[Imported from SVN: r4891]]
parent a84fa043
No related branches found
No related tags found
No related merge requests found
......@@ -77,12 +77,13 @@ AC_DEFUN([DUNE_PATH_UG],[
LTCXXLINK="$srcdir/libtool --tag=CXX --mode=link $CXX $CXXFLAGS $LDFLAGS"
CXX="$LTCXXLINK"
if test x$HAVE_UG = x1 && test x"$MPI_LDFLAGS" != x""; then
if test x$HAVE_UG = x1; then
# try again with added MPI-libs
AC_MSG_CHECKING([UG libraries (parallel)])
LIBS="$UG_LIBS $MPI_LDFLAGS"
CPPFLAGS="$UG_CPPFLAGS -DModelP -D_2"
# If MPI is installed look for the parallel UG
if test x"$MPI_LDFLAGS" != x""; then
AC_MSG_CHECKING([UG libraries (parallel)])
LIBS="$UG_LIBS $MPI_LDFLAGS"
CPPFLAGS="$UG_CPPFLAGS -DModelP -D_2"
AC_TRY_LINK(
[#include "initug.h"
#include "parallel.h"],
......@@ -97,8 +98,9 @@ AC_DEFUN([DUNE_PATH_UG],[
[AC_MSG_RESULT(no)
HAVE_UG="0"]
)
fi
# parallel lib not found/does not work?
# parallel lib not found/does not work? Let's check for the sequential one
if test x$HAVE_UG != x1; then
AC_MSG_CHECKING([UG libraries (sequential)])
LIBS="$UG_LIBS"
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment