From beaaa9f9f89c9e9472458ec9fa3b969123a1e539 Mon Sep 17 00:00:00 2001 From: young Date: Thu, 2 Dec 2010 11:10:12 +0000 Subject: [PATCH] Fix get compiler bug in mpi consistency for PETSc 2.3.x git-svn-id: https://svn.dealii.org/trunk@22901 0785d39b-7218-0410-832d-ea1e28bc413d --- deal.II/aclocal.m4 | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/deal.II/aclocal.m4 b/deal.II/aclocal.m4 index 4b8b973f45..18e9c047fa 100644 --- a/deal.II/aclocal.m4 +++ b/deal.II/aclocal.m4 @@ -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]) -- 2.39.5