From: maier Date: Fri, 28 Sep 2012 16:15:50 +0000 (+0000) Subject: Last Update X-Git-Url: https://gitweb.dealii.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=620cf994ee25632f7f50b61aaaf7b6b481839b2f;p=dealii-svn.git Last Update git-svn-id: https://svn.dealii.org/branches/branch_cmake@26854 0785d39b-7218-0410-832d-ea1e28bc413d --- diff --git a/deal.II/TODO.CMAKE b/deal.II/TODO.CMAKE index 095a7ca394..b5c026eab9 100644 --- a/deal.II/TODO.CMAKE +++ b/deal.II/TODO.CMAKE @@ -25,6 +25,9 @@ Major: * Port the testsuite to cmake +* Rename all DEAL_II_USE_* and HAVE_LIB* that refer to a feature to + DEAL_II_WITH_*. + Minor: diff --git a/deal.II/cmake/features.m4 b/deal.II/cmake/features.m4 index 02e0474e23..8cce67e918 100644 --- a/deal.II/cmake/features.m4 +++ b/deal.II/cmake/features.m4 @@ -232,82 +232,3 @@ AC_DEFUN(DEAL_II_CONFIGURE_MUMPS, dnl AC_MSG_RESULT([no]) ]) - dnl ------------------------------------------------------------ - dnl If MUMPS was requested and found, we had better check for - dnl dependencies right here. First, SCALAPACK and then BLACS. - if test "$USE_CONTRIB_MUMPS" = "yes" ; then - dnl So here it goes... - - dnl ------------------------------------------------------------ - dnl Check whether SCALAPACK is installed - AC_MSG_CHECKING([for SCALAPACK library directory]) - AC_ARG_WITH(scalapack, - [AS_HELP_STRING([--with-scalapack=path/to/scalapack], - [Specify the path to the scalapack installation; use this if you want to override the SCALAPACK_DIR environment variable.])], - [dnl action-if-given (test) - DEAL_II_SCALAPACK_DIR="$withval" - AC_MSG_RESULT($DEAL_II_SCALAPACK_DIR) - dnl Make sure that what was specified is actually correct - if test ! -d $DEAL_II_SCALAPCK_DIR ; then - AC_MSG_ERROR([The path to SCALAPACK specified with --with-scalapack does t point to a complete SCALAPACK installation]) - fi - ], - [dnl action-if-not-given (bail out) - AC_MSG_ERROR([If MUMPS is used, the path to SCALAPACK must be specified with --with-scalapack]) - ]) - dnl ------------------------------------------------------------ - - dnl ------------------------------------------------------------ - dnl Check whether BLACS is installed and BLAS architecture type - AC_MSG_CHECKING([for BLACS library directory]) - AC_ARG_WITH(blacs, - [AS_HELP_STRING([--with-blacs=path/to/blacs], - [Specify the path to the BLACS installation; use this if you want to override the BLACS_DIR environment variable.])], - [dnl action-if-given - DEAL_II_BLACS_DIR="$withval" - AC_MSG_RESULT($DEAL_II_BLACS_DIR) - dnl Make sure that what was specified is actually correct - if test ! -d $DEAL_II_BLACS_DIR \ - -o ! -d $DEAL_II_BLACS_DIR/LIB ; then - AC_MSG_ERROR([The path to BLACS specified with --with-blacs does not point to a complete BLACS installation]) - fi - ], - [dnl action-if-not-given (bail out) - AC_MSG_ERROR([If MUMPS is used, the path to BLACS must be specified with --with-blacs]) - ]) - - dnl BLACS labels libraries with "communications library", - dnl "platform type" and "debug level" (see BLACS Bmake.inc for - dnl details of the meaning of these terms). Finally, determine what - dnl these are: - AC_MSG_CHECKING([for BLACS library architecture]) - BLACS_COMM=`cat $DEAL_II_BLACS_DIR/Bmake.inc \ - | grep "COMMLIB = " \ - | perl -pi -e 's/.*LIB =\s+//g;'` - BLACS_PLAT=`cat $DEAL_II_BLACS_DIR/Bmake.inc \ - | grep "PLAT = " \ - | perl -pi -e 's/.*PLAT =\s+//g;'` - BLACS_DEBUG=`cat $DEAL_II_BLACS_DIR/Bmake.inc \ - | grep "BLACSDBGLVL = " \ - | perl -pi -e 's/.*DBGLVL =\s+//g;'` - dnl and patch that together to make the BLACS architecture type: - DEAL_II_BLACS_ARCH="$BLACS_COMM-$BLACS_PLAT-$BLACS_DEBUG" - AC_MSG_RESULT($DEAL_II_BLACS_ARCH) - dnl ------------------------------------------------------------ - - fi - dnl End check for MUMPS dependencies - dnl ------------------------------------------------------------ - - dnl If we do get this far then define a macro that says so: - if test "$USE_CONTRIB_MUMPS" = "yes" ; then - AC_DEFINE([DEAL_II_USE_MUMPS], [1], - [Defined if a MUMPS installation was found and is going to be used ]) - dnl and set an additional variable: - DEAL_II_DEFINE_DEAL_II_USE_MUMPS=DEAL_II_USE_MUMPS - dnl and finally set with_mumps if this hasn't happened yet: - if test "x$with_mumps" = "x" ; then - with_mumps="yes" - fi - fi -])