summaryrefslogtreecommitdiff
path: root/var
diff options
context:
space:
mode:
Diffstat (limited to 'var')
-rw-r--r--var/spack/repos/builtin/packages/openmpi/package.py6
1 files changed, 6 insertions, 0 deletions
diff --git a/var/spack/repos/builtin/packages/openmpi/package.py b/var/spack/repos/builtin/packages/openmpi/package.py
index bb798e7b5f..d0da29d774 100644
--- a/var/spack/repos/builtin/packages/openmpi/package.py
+++ b/var/spack/repos/builtin/packages/openmpi/package.py
@@ -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 @@ class Openmpi(AutotoolsPackage):
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 = [