From: Wolfgang Bangerth Date: Tue, 18 Jan 2005 15:25:11 +0000 (+0000) Subject: Also check whether PETSc has been installed but simply not been X-Git-Tag: v8.0.0~14614 X-Git-Url: https://gitweb.dealii.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=79befaf123da9ff0f36a5c42622f0d33e39c9062;p=dealii.git Also check whether PETSc has been installed but simply not been compiled for C++, and in that case give a different error message. git-svn-id: https://svn.dealii.org/trunk@9876 0785d39b-7218-0410-832d-ea1e28bc413d --- diff --git a/deal.II/aclocal.m4 b/deal.II/aclocal.m4 index 251fbe7f87..508fec1b8c 100644 --- a/deal.II/aclocal.m4 +++ b/deal.II/aclocal.m4 @@ -4313,8 +4313,16 @@ AC_DEFUN(DEAL_II_CONFIGURE_PETSC_ARCH, dnl dnl Make sure that what was specified is actually correct if test ! -d $DEAL_II_PETSC_DIR/lib/libg_c++/$DEAL_II_PETSC_ARCH \ ; then - AC_MSG_ERROR([PETSc has not been compiled for the architecture - specified with --with-petsc-arch]) + dnl Check whether PETSc is installed but someone has simply + dnl forgotten to also compile for C++ + if test -d $DEAL_II_PETSC_DIR/lib/libg/$DEAL_II_PETSC_ARCH \ + ; then + AC_MSG_ERROR([PETSc has not been compiled for C++, but + deal.II needs this]) + else + AC_MSG_ERROR([PETSc has not been compiled for the architecture + specified with --with-petsc-arch]) + fi fi ], [ @@ -4326,8 +4334,16 @@ AC_DEFUN(DEAL_II_CONFIGURE_PETSC_ARCH, dnl dnl Make sure that what this is actually correct if test ! -d $DEAL_II_PETSC_DIR/lib/libg_c++/$DEAL_II_PETSC_ARCH \ ; then - AC_MSG_ERROR([PETSc has not been compiled for the architecture - specified in the PETSC_ARCH environment variable]) + dnl Check whether PETSc is installed but someone has simply + dnl forgotten to also compile for C++ + if test -d $DEAL_II_PETSC_DIR/lib/libg/$DEAL_II_PETSC_ARCH \ + ; then + AC_MSG_ERROR([PETSc has not been compiled for C++, but + deal.II needs this]) + else + AC_MSG_ERROR([PETSc has not been compiled for the architecture + specified with --with-petsc-arch]) + fi fi else AC_MSG_ERROR([If PETSc is used, you must specify the architecture