AC_ARG_WITH(metis,
[AS_HELP_STRING([--with-metis=/path/to/metis],
- [Specify the path to the Metis installation, of which the include and library directories are subdirs; use this if you want to override the METIS_DIR environment variable.])],
+ [Specify the path to the Metis installation, of which the include and library directories are subdirs; use this if you want to override the METIS_DIR environment variable.])],
[
+ AC_MSG_CHECKING([for METIS library directory])
USE_CONTRIB_METIS=yes
DEAL_II_METIS_DIR="$withval"
AC_MSG_RESULT($DEAL_II_METIS_DIR)
dnl Make sure that what was specified is actually correct
- if test ! -d $DEAL_II_METIS_DIR/Lib ; then
+ if test ! -d $DEAL_II_METIS_DIR/lib ; then
AC_MSG_ERROR([Path to Metis specified with --with-metis does not point to a complete Metis installation])
fi
- DEAL_II_METIS_LIBDIR="$DEAL_II_METIS_DIR"
+ DEAL_II_METIS_LIBDIR="$DEAL_II_METIS_DIR/lib"
+
+ if test ! -d $DEAL_II_METIS_DIR/include ; then
+ AC_MSG_ERROR([Path to Metis specified with --with-metis does not point to a complete Metis installation])
+ fi
+
+ DEAL_II_METIS_INCDIR="$DEAL_II_METIS_DIR/include"
],
[
dnl Take something from the environment variables, if it is there
AC_MSG_RESULT($DEAL_II_METIS_DIR)
dnl Make sure that what this is actually correct
- if test ! -d $DEAL_II_METIS_DIR/Lib ; then
+ if test ! -d $DEAL_II_METIS_DIR/lib ; then
AC_MSG_ERROR([The path to Metis specified in the METIS_DIR environment variable does not point to a complete Metis installation])
fi
DEAL_II_METIS_LIBDIR="$DEAL_II_METIS_DIR"
[AS_HELP_STRING([--with-metis-libs=/path/to/metis],
[Specify the path to the METIS libraries; use this if you want to override the METIS_LIBDIR environment variable.])],
[
+
+ AC_MSG_CHECKING([for METIS library directory])
USE_CONTRIB_METIS=yes
DEAL_II_METIS_LIBDIR="$withval"
AC_MSG_RESULT($DEAL_II_METIS_LIBDIR)
USE_CONTRIB_UMFPACK
UMFPACK_INCLUDE_DIR
UMFPACK_LIB
+DEAL_II_METIS_INCDIR
DEAL_II_METIS_LIBDIR
+DEAL_II_METIS_DIR
USE_CONTRIB_METIS
TECPLOT_INCLUDE_DIR
USE_CONTRIB_HSL
# Check whether --with-metis was given.
if test "${with_metis+set}" = set; then :
withval=$with_metis;
+ { $as_echo "$as_me:${as_lineno-$LINENO}: checking for METIS library directory" >&5
+$as_echo_n "checking for METIS library directory... " >&6; }
USE_CONTRIB_METIS=yes
DEAL_II_METIS_DIR="$withval"
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $DEAL_II_METIS_DIR" >&5
$as_echo "$DEAL_II_METIS_DIR" >&6; }
- if test ! -d $DEAL_II_METIS_DIR/Lib ; then
+ if test ! -d $DEAL_II_METIS_DIR/lib ; then
as_fn_error $? "Path to Metis specified with --with-metis does not point to a complete Metis installation" "$LINENO" 5
fi
- DEAL_II_METIS_LIBDIR="$DEAL_II_METIS_DIR"
+ DEAL_II_METIS_LIBDIR="$DEAL_II_METIS_DIR/lib"
+
+ if test ! -d $DEAL_II_METIS_DIR/include ; then
+ as_fn_error $? "Path to Metis specified with --with-metis does not point to a complete Metis installation" "$LINENO" 5
+ fi
+
+ DEAL_II_METIS_INCDIR="$DEAL_II_METIS_DIR/include"
else
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $DEAL_II_METIS_DIR" >&5
$as_echo "$DEAL_II_METIS_DIR" >&6; }
- if test ! -d $DEAL_II_METIS_DIR/Lib ; then
+ if test ! -d $DEAL_II_METIS_DIR/lib ; then
as_fn_error $? "The path to Metis specified in the METIS_DIR environment variable does not point to a complete Metis installation" "$LINENO" 5
fi
DEAL_II_METIS_LIBDIR="$DEAL_II_METIS_DIR"
# Check whether --with-metis-libs was given.
if test "${with_metis_libs+set}" = set; then :
withval=$with_metis_libs;
+
+ { $as_echo "$as_me:${as_lineno-$LINENO}: checking for METIS library directory" >&5
+$as_echo_n "checking for METIS library directory... " >&6; }
USE_CONTRIB_METIS=yes
DEAL_II_METIS_LIBDIR="$withval"
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $DEAL_II_METIS_LIBDIR" >&5
+
+
# Check whether --with-umfpack was given.
if test "${with_umfpack+set}" = set; then :
withval=$with_umfpack;