ADIOS: Fix Build (Autotools) (#5363)
This fixes the build of the ADIOS package. The `with_or_without` interface of the Autotools builds seems to have changed, this fixes it.
This commit is contained in:
parent
3548e134f7
commit
78894645eb
1 changed files with 23 additions and 11 deletions
|
@ -49,17 +49,26 @@ class Adios(AutotoolsPackage):
|
|||
variant('fortran', default=False,
|
||||
description='Enable Fortran bindings support')
|
||||
|
||||
variant('mpi', default=True, description='Enable MPI support')
|
||||
variant('infiniband', default=False, description='Enable infiniband support')
|
||||
variant('mpi', default=True,
|
||||
description='Enable MPI support')
|
||||
variant('infiniband', default=False,
|
||||
description='Enable infiniband support')
|
||||
|
||||
# transforms
|
||||
variant('zlib', default=True, description='Enable zlib transform support')
|
||||
variant('bzip2', default=False, description='Enable bzip2 transform support')
|
||||
variant('szip', default=False, description='Enable szip transform support')
|
||||
variant('zfp', default=True, description='Enable ZFP transform support')
|
||||
variant('sz', default=True, description='Enable SZ transform support')
|
||||
variant('zlib', default=True,
|
||||
description='Enable zlib transform support')
|
||||
variant('bzip2', default=False,
|
||||
description='Enable bzip2 transform support')
|
||||
variant('szip', default=False,
|
||||
description='Enable szip transform support')
|
||||
variant('zfp', default=True,
|
||||
description='Enable ZFP transform support')
|
||||
variant('sz', default=True,
|
||||
description='Enable SZ transform support')
|
||||
# transports and serial file converters
|
||||
variant('hdf5', default=False, description='Enable parallel HDF5 transport and serial bp2h5 converter')
|
||||
variant('hdf5', default=False,
|
||||
description='Enable parallel HDF5 transport and serial bp2h5 ' +
|
||||
'converter')
|
||||
variant('netcdf', default=False, description='Enable netcdf support')
|
||||
|
||||
variant(
|
||||
|
@ -142,7 +151,7 @@ def configure_args(self):
|
|||
env['MPICC'] = spec['mpi'].mpicc
|
||||
env['MPICXX'] = spec['mpi'].mpicxx
|
||||
|
||||
extra_args += self.with_or_without('mpi', activation='prefix')
|
||||
extra_args += self.with_or_without('mpi', activation_value='prefix')
|
||||
extra_args += self.with_or_without('infiniband')
|
||||
|
||||
# Transforms
|
||||
|
@ -152,7 +161,7 @@ def configure_args(self):
|
|||
variants += ['hdf5', 'netcdf']
|
||||
|
||||
for x in variants:
|
||||
extra_args += self.with_or_without(x, activation='prefix')
|
||||
extra_args += self.with_or_without(x, activation_value='prefix')
|
||||
|
||||
# Staging transports
|
||||
def with_staging(name):
|
||||
|
@ -160,6 +169,9 @@ def with_staging(name):
|
|||
return spec['libevpath'].prefix
|
||||
return spec[name].prefix
|
||||
|
||||
extra_args += self.with_or_without('staging', activation=with_staging)
|
||||
extra_args += self.with_or_without(
|
||||
'staging',
|
||||
activation_value=with_staging
|
||||
)
|
||||
|
||||
return extra_args
|
||||
|
|
Loading…
Reference in a new issue