Summary: | Force autom4te version when using autoconf wrapper | ||
---|---|---|---|
Product: | Gentoo Linux | Reporter: | Caleb Tennis (RETIRED) <caleb> |
Component: | [OLD] Core system | Assignee: | Gentoo's Team for Core System packages <base-system> |
Status: | RESOLVED FIXED | ||
Severity: | normal | CC: | leio |
Priority: | High | ||
Version: | 1.4 | ||
Hardware: | All | ||
OS: | Linux | ||
Whiteboard: | |||
Package list: | Runtime testing required: | --- | |
Bug Depends on: | |||
Bug Blocks: | 39553 |
Description
Caleb Tennis (RETIRED)
2004-02-09 09:45:21 UTC
Proposed patch: Index: ac-wrapper-2.pl =================================================================== RCS file: /home/cvsroot/gentoo-x86/sys-devel/autoconf/files/ac-wrapper-2.pl,v retrieving revision 1.1 diff -u -3 -p -r1.1 ac-wrapper-2.pl --- ac-wrapper-2.pl 7 Nov 2003 23:47:20 -0000 1.1 +++ ac-wrapper-2.pl 9 Feb 2004 18:08:30 -0000 @@ -67,6 +67,11 @@ if ($ENV{WANT_AUTOCONF} ne '2.1') { $ENV{WANT_ACWRAPPER_DEBUG} and print STDERR "ac-wrapper: will execute <$binary>\n"; +if($ENV{AUTOM4TE} eq "") { + $ENV{AUTOM4TE} = $binary; + $ENV{AUTOM4TE} =~ s/autoconf/autom4te/; +} + exec $binary, @ARGV; die "ac-wrapper: ouch, couldn't call binary ($binary).\n"; Done. Small tweak though: -- Index: files/ac-wrapper-2.pl =================================================================== RCS file: /home/cvsroot/gentoo-x86/sys-devel/autoconf/files/ac-wrapper-2.pl,v retrieving revision 1.2 diff -u -r1.2 ac-wrapper-2.pl --- files/ac-wrapper-2.pl 15 Feb 2004 09:07:07 -0000 1.2 +++ files/ac-wrapper-2.pl 15 Feb 2004 21:12:36 -0000 @@ -65,6 +65,11 @@ } } +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; |