silo: force autoreconf when building share libs (#24388)

This commit is contained in:
Erik Schnetter 2021-06-28 04:44:38 -04:00 committed by GitHub
parent 2bd2ef27a2
commit f5ef532bdc
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -35,6 +35,9 @@ class Silo(AutotoolsPackage):
variant('fpzip', default=True,
description='Enable fpzip support')
depends_on('autoconf', type='build', when='+shared')
depends_on('automake', type='build', when='+shared')
depends_on('libtool', type='build', when='+shared')
depends_on('mpi', when='+mpi')
depends_on('hdf5@:1.10.999', when='@:4.10.2+hdf5')
depends_on('hdf5~mpi', when='~mpi+hdf5')
@ -103,6 +106,12 @@ def repl(match):
filter_file(r'\b(DOMAIN|RANGE|UNION)\b', repl, *files_to_filter)
@property
def force_autoreconf(self):
# Update autoconf's tests whether libtool supports shared libraries.
# (Otherwise, shared libraries are always disabled on Darwin.)
return self.spec.satisfies('+shared')
def configure_args(self):
spec = self.spec
config_args = [