OFF"
OFF)
+OPTION(DEAL_II_WITH_ARPACK
+ "Build deal.II with support for ARPACK."
+ ON)
+
OPTION(DEAL_II_WITH_BLAS
"Build deal.II with support for BLAS."
OFF)
# Feature configuration:
#
+#
+# TODO: Resolve this boost dependency so that we can automatically include
+# configure_[...] files
+#
+INCLUDE(configure_arpack)
INCLUDE(configure_blas)
INCLUDE(configure_lapack)
-
-# configure_boost depends on configure_blas and configure_lapack
-INCLUDE(configure_umfpack)
-
INCLUDE(configure_functionparser)
-
INCLUDE(configure_metis)
-
INCLUDE(configure_mpi)
-
INCLUDE(configure_netcdf)
-
INCLUDE(configure_p4est)
-
INCLUDE(configure_tbb)
-
+INCLUDE(configure_boost) # depends on variables defined in configure_tbb
INCLUDE(configure_trilinos)
-
-# configure_boost depends on configure_tbb
-INCLUDE(configure_boost)
-
+INCLUDE(configure_umfpack)
INCLUDE(configure_zlib)
--- /dev/null
+#
+# Configuration for the ARPACK library:
+#
+
+MACRO(FEATURE_ARPACK_FIND_EXTERNAL var)
+
+ FIND_PACKAGE(ARPACK)
+
+ IF(ARPACK_FOUND)
+ SET(${var} TRUE)
+ ENDIF()
+
+ENDMACRO()
+
+
+MACRO(FEATURE_ARPACK_CONFIGURE_EXTERNAL var)
+
+ INCLUDE_DIRECTORIES(${ARPACK_INCLUDE_DIR})
+ LIST(APPEND deal_ii_external_libraries ${ARPACK_LIBRARY})
+
+ SET(DEAL_II_USE_ARPACK TRUE)
+
+ SET(${var} TRUE)
+ENDMACRO()
+
+
+CONFIGURE_FEATURE(ARPACK)
--- /dev/null
+# Try to find ARPACK
+
+INCLUDE(FindPackageHandleStandardArgs)
+
+FIND_LIBRARY(ARPACK_LIBRARY
+ NAMES arpack
+ PATH_SUFFIXES lib64 lib
+)
+
+FIND_PACKAGE_HANDLE_STANDARD_ARGS(ARPACK DEFAULT_MSG ARPACK_LIBRARY)
+
+IF(ARPACK_FOUND)
+ MARK_AS_ADVANCED(
+ ARPACK_LIBRARY
+ )
+ENDIF()
fi
fi
])
-
-dnl ------------------------------------------------------------
-dnl Check whether ARPACK is installed, and if so store the
-dnl respective links
-dnl
-dnl Usage: DEAL_II_CONFIGURE_ARPACK
-dnl
-dnl ------------------------------------------------------------
-AC_DEFUN(DEAL_II_CONFIGURE_ARPACK, dnl
-[
- AC_MSG_CHECKING([for ARPACK library directory])
- AC_ARG_WITH(arpack,
- [AS_HELP_STRING([--with-arpack=path/to/arpack],
- [Specify the path to the ARPACK installation, for which the include directory and lib directory are subdirs; use this if you want to override the ARPACK_DIR environment variable.])],
- [dnl action-if-given
- if test "x$withval" = "xno" ; then
- AC_MSG_RESULT([explicitly disabled])
- USE_CONTRIB_ARPACK=no
- else
- DEAL_II_ARPACK_DIR="$withval"
- AC_MSG_RESULT($DEAL_II_ARPACK_DIR)
- dnl Make sure that what was specified is actually correct
- if test ! -d $DEAL_II_ARPACK_DIR \
- ; then
- AC_MSG_ERROR([Path to ARPACK specified with --with-arpack does not point to a complete ARPACK installation])
- fi
-
- dnl ------------------------------------------------------------
- dnl Grab a meaningful name of the architeture ARPACK was
- dnl compiled for
- AC_MSG_CHECKING([for ARPACK library architecture])
- ARPACK_ARCH=`cat $DEAL_II_ARPACK_DIR/ARmake.inc \
- | grep "PLAT = " \
- | perl -pi -e 's/.*PLAT =\s+//g;'`
- DEAL_II_ARPACK_ARCH="$ARPACK_ARCH"
- AC_MSG_RESULT($DEAL_II_ARPACK_ARCH)
-
- USE_CONTRIB_ARPACK=yes
- AC_DEFINE(DEAL_II_USE_ARPACK, 1,
- [Defined if an ARPACK installation was found and is
- going to be used])
- fi
- ],
- [dnl action-if-not-given (do nothing)
- USE_CONTRIB_ARPACK=no
- AC_MSG_RESULT([no])
- ])
-])
+
+/*****************************************
+ * Configured in configure_arpack.cmake: *
+ *****************************************/
+
+/* Defined if an ARPACK installation was found and is going to be used */
+#cmakedefine DEAL_II_USE_ARPACK
+
+
/***************************************
* Configured in configure_blas.cmake: *
***************************************/
this bug. */
#cmakedefine DEAL_II_TEMPL_SPEC_FRIEND_BUG
-/* Defined if an ARPACK installation was found and is going to be used */
-#cmakedefine DEAL_II_USE_ARPACK
-
/* Defined if a MUMPS installation was found and is going to be used */
#cmakedefine DEAL_II_USE_MUMPS