]> https://gitweb.dealii.org/ - dealii.git/commitdiff
Also check whether PETSc has been installed but simply not been
authorWolfgang Bangerth <bangerth@math.tamu.edu>
Tue, 18 Jan 2005 15:25:11 +0000 (15:25 +0000)
committerWolfgang Bangerth <bangerth@math.tamu.edu>
Tue, 18 Jan 2005 15:25:11 +0000 (15:25 +0000)
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

deal.II/aclocal.m4

index 251fbe7f878ab80c1144f64b11f67d599fc5ece8..508fec1b8c9a032ba56e3ee0ed4c0f71be502470 100644 (file)
@@ -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

In the beginning the Universe was created. This has made a lot of people very angry and has been widely regarded as a bad move.

Douglas Adams


Typeset in Trocchi and Trocchi Bold Sans Serif.