From 86801811c4e54c3025d0e577f4144535ebf26286 Mon Sep 17 00:00:00 2001 From: eap Date: Tue, 1 Mar 2011 12:03:13 +0000 Subject: [PATCH] 0021196: [CEA 456] Integration and merge modification for debian packages Allow a separate MPI include directory --- salome_adm/unix/config_files/check_mpi.m4 | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/salome_adm/unix/config_files/check_mpi.m4 b/salome_adm/unix/config_files/check_mpi.m4 index d85f67727..491919aef 100644 --- a/salome_adm/unix/config_files/check_mpi.m4 +++ b/salome_adm/unix/config_files/check_mpi.m4 @@ -28,6 +28,10 @@ AC_ARG_WITH(mpi_lib, [AC_HELP_STRING([--with-mpi_lib=DIR],[directory path of MPICH lib installation])], MPILIBREQUESTED="$withval") +AC_ARG_WITH(mpi_include, + [AC_HELP_STRING([--with-mpi_include=DIR],[directory path of MPICH header file installation])], + MPIINCLUDEREQUESTED="$withval") + AC_ARG_WITH(mpi, [AC_HELP_STRING([--with-mpi=DIR],[root directory path of MPICH installation])], MPIREQUESTED="yes",MPIREQUESTED="no") @@ -59,6 +63,10 @@ if test x"$MPIREQUESTED" = xyes; then MPI_LIBS="-L$MPILIBREQUESTED" fi + if test x"$MPIINCLUDEREQUESTED" != x; then + MPI_INCLUDES="-I$MPIINCLUDEREQUESTED" + fi + CPPFLAGS_old="$CPPFLAGS" CPPFLAGS="$MPI_INCLUDES $CPPFLAGS" AC_CHECK_HEADER(mpi.h,WITHMPI="yes",WITHMPI="no") -- 2.39.2