summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMartin Schlemmer <azarah@gentoo.org>2004-02-15 21:15:46 +0000
committerMartin Schlemmer <azarah@gentoo.org>2004-02-15 21:15:46 +0000
commitf88d77bef1b7b1e281e3900302ee94f0183ef0e2 (patch)
treec45f2eebfe694038afaeff2782a9ac3ee464683b /sys-devel/autoconf/files
parentInitial Import. (Manifest recommit) (diff)
downloadgentoo-2-f88d77bef1b7b1e281e3900302ee94f0183ef0e2.tar.gz
gentoo-2-f88d77bef1b7b1e281e3900302ee94f0183ef0e2.tar.bz2
gentoo-2-f88d77bef1b7b1e281e3900302ee94f0183ef0e2.zip
Set AUTOM4TE to autoconf version being run, bug #40983.
Diffstat (limited to 'sys-devel/autoconf/files')
-rw-r--r--sys-devel/autoconf/files/ac-wrapper-2.pl7
1 files changed, 7 insertions, 0 deletions
diff --git a/sys-devel/autoconf/files/ac-wrapper-2.pl b/sys-devel/autoconf/files/ac-wrapper-2.pl
index c720d9fefa10..5601bc74f732 100644
--- a/sys-devel/autoconf/files/ac-wrapper-2.pl
+++ b/sys-devel/autoconf/files/ac-wrapper-2.pl
@@ -65,6 +65,13 @@ if ($ENV{WANT_AUTOCONF} ne '2.1') {
}
}
+# Set AUTOM4TE to the proper version (bug #40983).
+# Do not set it for 2.13 though, as it does not ship autom4te.
+if(($ENV{AUTOM4TE} eq "") && ($binary ne "$0-2.13")) {
+ $ENV{AUTOM4TE} = $binary;
+ $ENV{AUTOM4TE} =~ s/autoconf/autom4te/;
+}
+
$ENV{WANT_ACWRAPPER_DEBUG} and print STDERR "ac-wrapper: will execute <$binary>\n";
exec $binary, @ARGV;