Will Dicharry wrote:
Brad King wrote:
John R. Cary wrote:
Brad King wrote:
John, how do autotools detect this?
hdf5par=`grep "HAVE_PARALLEL 1" $HDF5_INCDIR/H5config.h`
I suppose there are other ways, but we have been doing this through
several versions of hdf5.
Great, thanks John.
Will, you should be able to use the file(STRINGS) command
to grep through H5config.h after finding it.
John,
What version of HDF5 are you using? It looks like H5config.h doesn't
exists in 1.8.3. I found the H5_HAVE_PARALLEL definition in
H5pubconf.h for HDF5 1.8.3.
Hi Will,
That looks better:
Hi Will, That looks better:
xena.cary$ cd hdf5-1.6.5/include
xena.cary$ grep -i parallel H5pubconf.h
/* Define if we have parallel support */
/* #undef H5_HAVE_PARALLEL */
xena.cary$ cd ../hdf5-1.8.2-ser/include
-bash: cd: ../hdf5-1.8.2-ser/include: No such file or directory
xena.cary$ cd ../../hdf5-1.8.2-ser/include
xena.cary$ grep -i parallel H5pubconf.h
/* Define if we have parallel support */
/* #undef H5_HAVE_PARALLEL */
xena.cary$ cd ../../hdf5-1.8.2-par/include
xena.cary$ grep -i parallel H5pubconf.h
/* Define if we have parallel support */
#define H5_HAVE_PARALLEL 1
available back through 1.6.5.
I was probably doing something for much older versions, as I now
see the full fragment:
if test $ac_cv_have_hdf5 = yes; then
if test -f $HDF5_INCDIR/H5config.h; then
hdf5par=`grep "HAVE_PARALLEL 1" $HDF5_INCDIR/H5config.h`
elif test -f $HDF5_INCDIR/H5pubconf.h; then
hdf5par=`grep "HAVE_PARALLEL 1" $HDF5_INCDIR/H5pubconf.h`
fi
fi
which agrees with yours.
Best.....John
--
Tech-X Corp., 5621 Arapahoe Ave, Suite A, Boulder CO 80303
c...@txcorp.com, p 303-448-0727, f 303-448-7756, NEW CELL 303-881-8572
_______________________________________________
Powered by www.kitware.com
Visit other Kitware open-source projects at
http://www.kitware.com/opensource/opensource.html
Please keep messages on-topic and check the CMake FAQ at:
http://www.cmake.org/Wiki/CMake_FAQ
Follow this link to subscribe/unsubscribe:
http://www.cmake.org/mailman/listinfo/cmake