[MOAB-dev] r1680 - in MOAB/trunk: . m4

kraftche at mcs.anl.gov kraftche at mcs.anl.gov
Fri Mar 21 20:29:43 CDT 2008


Author: kraftche
Date: 2008-03-21 20:29:42 -0500 (Fri, 21 Mar 2008)
New Revision: 1680

Modified:
   MOAB/trunk/configure.in
   MOAB/trunk/m4/hdf5.m4
Log:
fix problems detecting parallel hdf5 support

Modified: MOAB/trunk/configure.in
===================================================================
--- MOAB/trunk/configure.in	2008-03-21 22:19:08 UTC (rev 1679)
+++ MOAB/trunk/configure.in	2008-03-22 01:29:42 UTC (rev 1680)
@@ -122,9 +122,13 @@
 HAVE_HDF5_PARALLEL=no
 if test "xno" != "x$HAVE_HDF5"; then
   if test "xno" != "x$WITH_MPI"; then
+    old_LDFLAGS="$LDFLAGS"
+    LDFLAGS="$LDFLAGS $HDF5_LDFLAGS"
     AC_CHECK_LIB( [hdf5], [H5Pset_fapl_mpio], [HAVE_HDF5_PARALLEL=yes],
-      [AC_MSG_WARN("libhdf5 library does not include parallel support.  Parallel HDF5 I/O disabled")]
+      [AC_MSG_WARN("libhdf5 library does not include parallel support.  Parallel HDF5 I/O disabled")],
+      [$HDF5_LIBS]
       )
+    LDFLAGS="$old_LDFLAGS"
   fi
 fi
 AM_CONDITIONAL(PARALLEL_HDF5, [test "xno" != "x$HAVE_HDF5_PARALLEL"])

Modified: MOAB/trunk/m4/hdf5.m4
===================================================================
--- MOAB/trunk/m4/hdf5.m4	2008-03-21 22:19:08 UTC (rev 1679)
+++ MOAB/trunk/m4/hdf5.m4	2008-03-22 01:29:42 UTC (rev 1680)
@@ -4,7 +4,7 @@
 # If HAVE_HDF5 == yes, then sets:
 #  HDF5_CPPFLAGS
 #  HDF5_LDFLAGS
-#  HDF5_LINK
+#  HDF5_LIBS
 #######################################################################################
 AC_DEFUN([SNL_CHECK_HDF5],[
 




More information about the moab-dev mailing list