Fix +readline handling (#7048)
This commit is contained in:
parent
d6a43f180b
commit
dceb66741c
@ -65,7 +65,7 @@ class Slurm(AutotoolsPackage):
|
||||
depends_on('munge')
|
||||
depends_on('openssl')
|
||||
depends_on('pkgconfig', type='build')
|
||||
depends_on('readline')
|
||||
depends_on('readline', when='+readline')
|
||||
depends_on('zlib')
|
||||
|
||||
depends_on('gtkplus+X', when='+gtk')
|
||||
@ -89,9 +89,7 @@ def configure_args(self):
|
||||
if '~gtk' in spec:
|
||||
args.append('--disable-gtktest')
|
||||
|
||||
if '+readline' in spec:
|
||||
args.append('--with-readline={0}'.format(spec['readline'].prefix))
|
||||
else:
|
||||
if '~readline' in spec:
|
||||
args.append('--without-readline')
|
||||
|
||||
if '+hdf5' in spec:
|
||||
|
Loading…
Reference in New Issue
Block a user