Skip to content
Snippets Groups Projects
Commit bef9397f authored by Markus Blatt's avatar Markus Blatt
Browse files

Search for parmetis in the default directories /usr/lib/ and

/usr/include. Parmetis is now found without path.

[[Imported from SVN: r3347]]
parent 157e8dbc
No related branches found
No related tags found
No related merge requests found
......@@ -16,23 +16,27 @@ AC_DEFUN([DUNE_PATH_PARMETIS],[
ac_save_LIBS="$LIBS"
## do nothing if --without-parmetis is used
if test x"$MPI_LDFLAGS" != x"" && test x$with_parmetis != x && test x$with_parmetis != xno ; then
if test x"$MPI_LDFLAGS" != x"" && test x"$with_parmetis" != x"no" ; then
if test x$with_parmetis == xyes ; then
if test x"$with_parmetis" == x"yes" ; then
AC_MSG_ERROR([You have to provide a directory --with-parmetis=PATH])
fi
if test -d $with_parmetis; then
# expand tilde / other stuff
PARMETISROOT=`cd $with_parmetis && pwd`
else
AC_MSG_ERROR([directory $with_parmetis does not exist!])
if test x"$with_parmetis" == x"yes"; then
# defaultpath
PARMETIS_LIB_PATH="/usr/lib/"
PARMETIS_INCLUDEPATH="/usr/include/"
else
if test -d $with_parmetis; then
# expand tilde / other stuff
PARMETISROOT=`cd $with_parmetis && pwd`
PARMETIS_LIB_PATH="$PARMETISROOT/"
PARMETIS_INCLUDE_PATH="$PARMETISROOT/"
else
AC_MSG_ERROR([directory $with_parmetis does not exist!])
fi
fi
# intermediate variables
PARMETIS_LIB_PATH="$PARMETISROOT/"
PARMETIS_INCLUDE_PATH="$PARMETISROOT/"
PARMETIS_LDFLAGS="-L$PARMETIS_LIB_PATH $MPI_LDFLAGS"
# set variables so that tests can use them
......
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