summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAdam J. Stewart <ajstewart426@gmail.com>2016-01-25 14:57:33 -0600
committerAdam J. Stewart <ajstewart426@gmail.com>2016-01-25 14:57:33 -0600
commit1d18f2031c086b4f1e5bb52744c75b232cbf2e7f (patch)
treef4ec79cf198b06b80a69fdfe99e57e302ae61a88
parentd4180d35ddf80a7ff1656d85ac6c8c5859e54a3c (diff)
downloadspack-1d18f2031c086b4f1e5bb52744c75b232cbf2e7f.tar.gz
spack-1d18f2031c086b4f1e5bb52744c75b232cbf2e7f.tar.bz2
spack-1d18f2031c086b4f1e5bb52744c75b232cbf2e7f.tar.xz
spack-1d18f2031c086b4f1e5bb52744c75b232cbf2e7f.zip
Add szip variant
-rw-r--r--var/spack/repos/builtin/packages/hdf5/package.py5
1 files changed, 5 insertions, 0 deletions
diff --git a/var/spack/repos/builtin/packages/hdf5/package.py b/var/spack/repos/builtin/packages/hdf5/package.py
index ac78d8e961..5321a191f0 100644
--- a/var/spack/repos/builtin/packages/hdf5/package.py
+++ b/var/spack/repos/builtin/packages/hdf5/package.py
@@ -48,9 +48,11 @@ class Hdf5(Package):
variant('unsupported', default=False, description='Enables unsupported configuration options')
variant('mpi', default=False, description='Enable MPI support')
+ variant('szip', default=False, description='Enable szip support')
variant('threadsafe', default=False, description='Enable thread-safe capabilities')
depends_on("mpi", when='+mpi')
+ depends_on("szip", when='+szip')
depends_on("zlib")
def validate(self, spec):
@@ -105,6 +107,9 @@ class Hdf5(Package):
if '+fortran' in spec:
extra_args.append("FC=%s" % spec['mpi'].prefix.bin + "/mpifort")
+ if '+szip' in spec:
+ extra_args.append("--with-szlib=%s" % spec['szip'].prefix)
+
if '+threadsafe' in spec:
extra_args.extend([
'--enable-threadsafe',