summaryrefslogtreecommitdiff
path: root/lib
diff options
context:
space:
mode:
authorAdam J. Stewart <ajstewart426@gmail.com>2020-04-17 16:30:21 -0500
committerGitHub <noreply@github.com>2020-04-17 16:30:21 -0500
commitea8793f8f536a79e2b8431a82bf8b4243e5e6031 (patch)
treec2e59fb5459e01632d7c86ad4fec7ca4e49b9aa0 /lib
parent28995b25bc0cd28295eb4b1623460367fd005d45 (diff)
downloadspack-ea8793f8f536a79e2b8431a82bf8b4243e5e6031.tar.gz
spack-ea8793f8f536a79e2b8431a82bf8b4243e5e6031.tar.bz2
spack-ea8793f8f536a79e2b8431a82bf8b4243e5e6031.tar.xz
spack-ea8793f8f536a79e2b8431a82bf8b4243e5e6031.zip
AutotoolsPackage: add aclocal for all build deps (#15784)
Diffstat (limited to 'lib')
-rw-r--r--lib/spack/spack/build_systems/autotools.py10
1 files changed, 5 insertions, 5 deletions
diff --git a/lib/spack/spack/build_systems/autotools.py b/lib/spack/spack/build_systems/autotools.py
index 6591b6495b..df17d2ddf1 100644
--- a/lib/spack/spack/build_systems/autotools.py
+++ b/lib/spack/spack/build_systems/autotools.py
@@ -219,11 +219,11 @@ class AutotoolsPackage(PackageBase):
# This line is what is needed most of the time
# --install, --verbose, --force
autoreconf_args = ['-ivf']
- if 'pkgconfig' in spec:
- autoreconf_args += [
- '-I',
- os.path.join(spec['pkgconfig'].prefix, 'share', 'aclocal'),
- ]
+ for dep in spec.dependencies(deptype='build'):
+ if os.path.exists(dep.prefix.share.aclocal):
+ autoreconf_args.extend([
+ '-I', dep.prefix.share.aclocal
+ ])
autoreconf_args += self.autoreconf_extra_args
m.autoreconf(*autoreconf_args)