]> https://gitweb.dealii.org/ - dealii-svn.git/commitdiff
Fix get compiler bug in mpi consistency for PETSc 2.3.x
authoryoung <young@0785d39b-7218-0410-832d-ea1e28bc413d>
Thu, 2 Dec 2010 11:10:12 +0000 (11:10 +0000)
committeryoung <young@0785d39b-7218-0410-832d-ea1e28bc413d>
Thu, 2 Dec 2010 11:10:12 +0000 (11:10 +0000)
git-svn-id: https://svn.dealii.org/trunk@22901 0785d39b-7218-0410-832d-ea1e28bc413d

deal.II/aclocal.m4

index 4b8b973f455138ff0ce9b79ef005f648f7ce04b3..18e9c047fac372853f334399a72877d44ba3c57e 100644 (file)
@@ -5773,18 +5773,16 @@ AC_DEFUN(DEAL_II_CHECK_PETSC_MPI_CONSISTENCY, dnl
       ;;
   esac
 
-  DEAL_II_PETSC_PCC+=" " dnl Add a trailing whitespace
-
   case "$DEAL_II_PETSC_LANGUAGE" in
     CONLY) dnl PETSC language is C, check $CC
-      if test "$DEAL_II_PETSC_PCC" = "$CC" ; then
+      if test `which $DEAL_II_PETSC_PCC` = `which $CC` ; then
         AC_MSG_RESULT(yes)
       else
         AC_MSG_ERROR([PETSc has not been compiled with the same compiler])
       fi
     ;;
     CXXONLY) dnl PETSC language is C++, check $CXX
-      if test "$DEAL_II_PETSC_PCC" = "$CXX" ; then
+      if test `which $DEAL_II_PETSC_PCC` = `which $CXX` ; then
         AC_MSG_RESULT(yes)
       else
         AC_MSG_ERROR([PETSc has not been compiled with the same compiler])

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.