Add a gpfs variant to openmpi package (#15793)

Open MPI will detect and link against GPFS if it is present
on the system. This variant allows this to be disabled, even
if GPFS is present.
This commit is contained in:
Jonathon Anderson 2020-05-02 10:07:50 -06:00 committed by GitHub
parent adafdf0644
commit 08f88b4be6
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -242,6 +242,7 @@ class Openmpi(AutotoolsPackage):
variant('runpath', default=True, description='Enable wrapper runpath')
variant('cxx', default=False, description='Enable C++ MPI bindings')
variant('cxx_exceptions', default=False, description='Enable C++ Exception support')
variant('gpfs', default=True, description='Enable GPFS support (if present)')
# Adding support to build a debug version of OpenMPI that activates
# Memchecker, as described here:
#
@ -410,6 +411,11 @@ def autoreconf(self, spec, prefix):
perl = which('perl')
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):
spec = self.spec
config_args = [