summaryrefslogtreecommitdiff
path: root/var
diff options
context:
space:
mode:
authorTodd Gamblin <tgamblin@llnl.gov>2018-01-04 07:45:45 -0800
committerAdam J. Stewart <ajstewart426@gmail.com>2018-01-04 09:45:45 -0600
commitdab2dc24a5df9223dca870e13d81c4dceb5b6920 (patch)
tree8140eb161ace6d3507b9475115c8f55c9aabd854 /var
parent9a595ca312ff7cfdf397903614a828e8468343d7 (diff)
downloadspack-dab2dc24a5df9223dca870e13d81c4dceb5b6920.tar.gz
spack-dab2dc24a5df9223dca870e13d81c4dceb5b6920.tar.bz2
spack-dab2dc24a5df9223dca870e13d81c4dceb5b6920.tar.xz
spack-dab2dc24a5df9223dca870e13d81c4dceb5b6920.zip
make nghttp2 optional for curl, as it does not build for older compilers. (#5977)
Diffstat (limited to 'var')
-rw-r--r--var/spack/repos/builtin/packages/curl/package.py11
1 files changed, 7 insertions, 4 deletions
diff --git a/var/spack/repos/builtin/packages/curl/package.py b/var/spack/repos/builtin/packages/curl/package.py
index c12e50b71c..f567623be0 100644
--- a/var/spack/repos/builtin/packages/curl/package.py
+++ b/var/spack/repos/builtin/packages/curl/package.py
@@ -48,15 +48,18 @@ class Curl(AutotoolsPackage):
version('7.43.0', '11bddbb452a8b766b932f859aaeeed39')
version('7.42.1', '296945012ce647b94083ed427c1877a8')
+ variant('nghttp2', default=False, description='build nghttp2 library (requires C++11)')
+
depends_on('openssl')
depends_on('zlib')
- depends_on('nghttp2')
+ depends_on('nghttp2', when='+nghttp2')
def configure_args(self):
spec = self.spec
- return [
+ args = [
'--with-zlib={0}'.format(spec['zlib'].prefix),
- '--with-ssl={0}'.format(spec['openssl'].prefix),
- '--with-http2={0}'.format(spec['nghttp2'].prefix),
+ '--with-ssl={0}'.format(spec['openssl'].prefix)
]
+ args += self.with_or_without('nghttp2')
+ return args