From 6ba60d1d753ee6dc5a63c72875befcb81e0e4651 Mon Sep 17 00:00:00 2001 From: eap Date: Tue, 1 Mar 2011 12:05:49 +0000 Subject: [PATCH] 0021196: [CEA 456] Integration and merge modification for debian packages The HDF5 library requires MPI in order to work, so the MPI check needs to go first, and the MPI variables need to be in the HDF5 check. --- configure.ac | 17 +++++++++-------- salome_adm/unix/config_files/check_hdf5.m4 | 10 +++++----- 2 files changed, 14 insertions(+), 13 deletions(-) diff --git a/configure.ac b/configure.ac index d7ab30eb8..40711182f 100644 --- a/configure.ac +++ b/configure.ac @@ -229,6 +229,14 @@ echo CHECK_LIBXML +echo +echo --------------------------------------------- +echo checking if MPI is requested by user +echo --------------------------------------------- +echo + +CHECK_MPI + if test x$with_onlylauncher = xno; then echo echo --------------------------------------------- @@ -308,14 +316,6 @@ echo testing parallel products echo ============================================================ echo -echo -echo --------------------------------------------- -echo checking if MPI is requested by user -echo --------------------------------------------- -echo - -CHECK_MPI - echo echo --------------------------------------------- echo checking if PaCO++ is requested by user @@ -549,6 +549,7 @@ AC_OUTPUT([ \ doc/salome/gui/doxyfile \ doc/salome/gui/static/header.html \ doc/docutils/Makefile \ + doc/docutils/conf.py \ idl/Makefile \ idl/Calcium_Ports.idl \ resources/Makefile \ diff --git a/salome_adm/unix/config_files/check_hdf5.m4 b/salome_adm/unix/config_files/check_hdf5.m4 index c76cb563b..e062d22a3 100644 --- a/salome_adm/unix/config_files/check_hdf5.m4 +++ b/salome_adm/unix/config_files/check_hdf5.m4 @@ -66,7 +66,7 @@ fi dnl hdf5 headers CPPFLAGS_old="$CPPFLAGS" -CPPFLAGS="$CPPFLAGS $LOCAL_INCLUDES" +CPPFLAGS="$CPPFLAGS $MPI_INCLUDES $LOCAL_INCLUDES" AC_CHECK_HEADER(hdf5.h,hdf5_ok=yes ,hdf5_ok=no) CPPFLAGS="$CPPFLAGS_old" @@ -77,7 +77,7 @@ then dnl hdf5 library LIBS_old="$LIBS" - LIBS="$LIBS $LOCAL_LIBS" + LIBS="$LIBS $MPI_LIBS $LOCAL_LIBS" AC_CHECK_LIB(hdf5,H5open,hdf5_ok=yes,hdf5_ok=no) LIBS="$LIBS_old" @@ -85,9 +85,9 @@ fi if test "x$hdf5_ok" = "xyes" then - HDF5_INCLUDES="$LOCAL_INCLUDES" - HDF5_LIBS="$LOCAL_LIBS -lhdf5 $LOCAL_RLIBS" - HDF5_MT_LIBS="$LOCAL_LIBS -lhdf5 $LOCAL_RLIBS" + HDF5_INCLUDES="$MPI_INCLUDES $LOCAL_INCLUDES" + HDF5_LIBS="$MPI_LIBS $LOCAL_LIBS -lhdf5 $LOCAL_RLIBS" + HDF5_MT_LIBS="$MPI_LIBS $LOCAL_LIBS -lhdf5 $LOCAL_RLIBS" fi if test "x$hdf5_ok" = "xyes" -- 2.39.2