Removing unsupported variant from HDF5.

- `unsupported` shouldn't be a variant.
This commit is contained in:
Todd Gamblin 2016-03-09 11:16:35 -08:00
parent ad7d89b165
commit d06ebf23d4

View file

@ -46,7 +46,6 @@ class Hdf5(Package):
variant('cxx', default=True, description='Enable C++ support')
variant('fortran', default=True, description='Enable Fortran support')
variant('unsupported', default=True, description='Enables unsupported configuration options')
variant('mpi', default=False, description='Enable MPI support')
variant('szip', default=False, description='Enable szip support')
@ -74,6 +73,13 @@ def install(self, spec, prefix):
self.validate(spec)
# Handle compilation after spec validation
extra_args = []
# Always enable this option. This does not actually enable any
# features: it only *allows* the user to specify certain
# combinations of other arguments. Enabling it just skips a
# sanity check in configure, so this doesn't merit a variant.
extra_args.append("--enable-unsupported")
if '+debug' in spec:
extra_args.append('--enable-debug=all')
else:
@ -84,9 +90,6 @@ def install(self, spec, prefix):
else:
extra_args.append('--enable-static-exec')
if '+unsupported' in spec:
extra_args.append("--enable-unsupported")
if '+cxx' in spec:
extra_args.append('--enable-cxx')