[psurface] 02/03: [patch] Make --without-hdf5 work.
Ansgar Burchardt
ansgar at moszumanska.debian.org
Mon Jun 16 13:32:05 UTC 2014
This is an automated email from the git hooks/post-receive script.
ansgar pushed a commit to branch master
in repository psurface.
commit a14e0fb327211095c5f5b1f58d151c49ad24ed7b
Author: Ansgar Burchardt <ansgar at debian.org>
Date: Thu Jun 12 13:42:52 2014 +0200
[patch] Make --without-hdf5 work.
---
debian/patches/hdf5.patch | 28 ++++++++++++++++++++++++++++
debian/patches/series | 1 +
2 files changed, 29 insertions(+)
diff --git a/debian/patches/hdf5.patch b/debian/patches/hdf5.patch
new file mode 100644
index 0000000..70108c9
--- /dev/null
+++ b/debian/patches/hdf5.patch
@@ -0,0 +1,28 @@
+--- a/m4/hdf5.m4
++++ b/m4/hdf5.m4
+@@ -55,7 +55,7 @@
+ # start building variables
+
+ # use special HDF5-lib-path if it's set
+- if test x$with_hdf5 != x ; then
++ if test "x$with_hdf5" != x && test "x$with_hdf5" != xno ; then
+ # extract absolute path
+ if test -d $with_hdf5; then
+ eval with_hdf5=`cd $with_hdf5 ; pwd`
+@@ -95,9 +95,13 @@
+ HDF5_PARALLEL=1],[],[#include"H5pubconf.h"])
+
+ # test for an arbitrary header
+- AC_CHECK_HEADER([hdf5.h],
+- [HAVE_HDF5=1],
+- [HAVE_HDF5=0])
++ if test "x$with_hdf5" != xno ; then
++ AC_CHECK_HEADER([hdf5.h],
++ [HAVE_HDF5=1],
++ [HAVE_HDF5=0])
++ else
++ HAVE_HDF5=0
++ fi
+
+ # Just for the configure check. In the end, -L has to go into LIBS.
+ LDFLAGS="$LDFLAGS $_dune_hdf5_libpath"
diff --git a/debian/patches/series b/debian/patches/series
new file mode 100644
index 0000000..43928a1
--- /dev/null
+++ b/debian/patches/series
@@ -0,0 +1 @@
+hdf5.patch
--
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/debian-science/packages/psurface.git
More information about the debian-science-commits
mailing list