m4: force path where to look for autoconf (#22765)

Uses the M4 environment variable
This commit is contained in:
Seth R. Johnson 2021-04-06 12:21:38 +02:00 committed by GitHub
parent 85cdb3d250
commit 1ed44f20f2
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -48,6 +48,15 @@ def determine_version(cls, exe):
match = re.search(r'GNU M4\)?\s+(\S+)', output) match = re.search(r'GNU M4\)?\s+(\S+)', output)
return match.group(1) if match else None return match.group(1) if match else None
def setup_dependent_build_environment(self, env, dependent_spec):
# Inform autom4te if it wasn't built correctly (some external
# installations such as homebrew). See
# https://www.gnu.org/software/autoconf/manual/autoconf-2.67/html_node/autom4te-Invocation.html
env.set('M4', self.prefix.bin.m4)
def setup_run_environment(self, env):
env.set('M4', self.prefix.bin.m4)
def configure_args(self): def configure_args(self):
spec = self.spec spec = self.spec
args = ['--enable-c++'] args = ['--enable-c++']