[cig-commits] r18643 - short/3D/PyLith/trunk

brad at geodynamics.org brad at geodynamics.org
Thu Jun 16 13:07:15 PDT 2011


Author: brad
Date: 2011-06-16 13:07:15 -0700 (Thu, 16 Jun 2011)
New Revision: 18643

Modified:
   short/3D/PyLith/trunk/configure.ac
Log:
Fixed defines associated with enabling HDF5. CPPFLAGS were not set if HDF5 was turned on by default.

Modified: short/3D/PyLith/trunk/configure.ac
===================================================================
--- short/3D/PyLith/trunk/configure.ac	2011-06-16 16:32:15 UTC (rev 18642)
+++ short/3D/PyLith/trunk/configure.ac	2011-06-16 20:07:15 UTC (rev 18643)
@@ -82,12 +82,14 @@
 AC_ARG_ENABLE([hdf5],
     [AC_HELP_STRING([--enable-hdf5],
         [enable output to HDF5 files via PETSc @<:@default=no@:>@])],
-	[if test "$enableval" = yes; then
-          enable_hdf5=yes
-	  CPPFLAGS="-DENABLE_HDF5 $CPPFLAGS"; export CPPFLAGS
-	  PYLITH_SWIG_CPPFLAGS="-DENABLE_HDF5 $PYLITH_SWIG_CPPFLAGS"; export PYLITH_SWIG_CPPFLAGS
+	[if test "$enableval" = yes; 
+	  then enable_hdf5=yes
           else enable_hdf5=no; fi],
 	[enable_hdf5=yes])
+if test "$enable_hdf5" = "yes"; then
+  CPPFLAGS="-DENABLE_HDF5 $CPPFLAGS"; export CPPFLAGS
+  PYLITH_SWIG_CPPFLAGS="-DENABLE_HDF5 $PYLITH_SWIG_CPPFLAGS"; export PYLITH_SWIG_CPPFLAGS
+fi
 AM_CONDITIONAL([ENABLE_HDF5], [test "$enable_hdf5" = yes])
 
 # CUDA



More information about the CIG-COMMITS mailing list