disable gpfs through --with-gpfs=no (#29181)

This commit is contained in:
Harmen Stoppels 2022-02-24 22:39:38 +01:00 committed by GitHub
parent dc01f9597e
commit 8c1e54180e
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -620,11 +620,6 @@ def autoreconf(self, spec, prefix):
perl = which('perl') perl = which('perl')
perl('autogen.pl') perl('autogen.pl')
def setup_build_environment(self, env):
if '~gpfs' in self.spec:
env.set('ac_cv_header_gpfs_h', 'no')
env.set('ac_cv_header_gpfs_fcntl_h', 'no')
def configure_args(self): def configure_args(self):
spec = self.spec spec = self.spec
config_args = [ config_args = [
@ -734,6 +729,11 @@ def configure_args(self):
if '~romio' in spec: if '~romio' in spec:
config_args.append('--disable-io-romio') config_args.append('--disable-io-romio')
if '+gpfs' in spec:
config_args.append('--with-gpfs')
else:
config_args.append('--with-gpfs=no')
# SQLite3 support # SQLite3 support
if spec.satisfies('@1.7.3:1'): if spec.satisfies('@1.7.3:1'):
if '+sqlite3' in spec: if '+sqlite3' in spec: