silo: add "hzip" and "fzip" variants (#23447)

SILO has optional support for compression libraries that require 
C++ (hzip and fpzip). This patch exposes those options as variants
to enable configuration of SILO without the C++ libraries for C 
applications. hzip and fpzip are enabled by default to preserve 
current behavior.
This commit is contained in:
Steven Smith 2021-05-07 04:40:04 -07:00 committed by GitHub
parent 474ec196e6
commit c131f13006
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -30,6 +30,10 @@ class Silo(AutotoolsPackage):
description='Compile with MPI Compatibility') description='Compile with MPI Compatibility')
variant('hdf5', default=True, variant('hdf5', default=True,
description='Use the HDF5 for database') description='Use the HDF5 for database')
variant('hzip', default=True,
description='Enable hzip support')
variant('fpzip', default=True,
description='Enable fpzip support')
depends_on('mpi', when='+mpi') depends_on('mpi', when='+mpi')
depends_on('hdf5@:1.10.999', when='@:4.10.2+hdf5') depends_on('hdf5@:1.10.999', when='@:4.10.2+hdf5')
@ -106,6 +110,8 @@ def configure_args(self):
'--enable-fortran' if '+fortran' in spec else '--disable-fortran', '--enable-fortran' if '+fortran' in spec else '--disable-fortran',
'--enable-silex' if '+silex' in spec else '--disable-silex', '--enable-silex' if '+silex' in spec else '--disable-silex',
'--enable-shared' if '+shared' in spec else '--disable-shared', '--enable-shared' if '+shared' in spec else '--disable-shared',
'--enable-hzip' if '+hzip' in spec else '--disable-hzip',
'--enable-fpzip' if '+fpzip' in spec else '--disable-fpzip',
] ]
# Do not specify the prefix of zlib if it is in a system directory # Do not specify the prefix of zlib if it is in a system directory