This is the mail archive of the
automake@gnu.org
mailing list for the automake project.
Re: --program-prefix leads to broken libtoolize
- From: Alexandre Duret-Lutz <adl at src dot lip6 dot fr>
- To: Scott James Remnant <scott at netsplit dot com>
- Cc: Geoff Keating <geoffk at apple dot com>, Libtool Bugs <bug-libtool at gnu dot org>,automake at gnu dot org
- Date: Tue, 03 Feb 2004 21:56:13 +0100
- Subject: Re: --program-prefix leads to broken libtoolize
- References: <0661C4D7-55D3-11D8-9CBB-0030657EA24A@apple.com><1075838698.20240.135.camel@descent.netsplit.com><BD8807F0-5684-11D8-9C8E-0030657EA24A@apple.com><1075839759.20240.154.camel@descent.netsplit.com>
>>> "Scott" == Scott James Remnant <scott@netsplit.com> writes:
[...]
>> >> $ ls -1 /Network/Servers/cauchy/homes/thorin/gkeating/share/libtool/
>> >> gconfig.guess
>> >> gconfig.sub
>> >>
>> > Automake is applying the various program changes to _SCRIPTS...
>> >
>> > I don't even know *HOW* we can support program-prefix, program-suffix
>> > (and worst of all) program-transform-name ... I can't think of any way
>> > of getting the resulting transform into libtoolize; at least not one
>> > that doesn't make me violently sick.
>>
>> I'd suggest doing the reverse, which is to not transform these names.
>> There's no reason to rename anything in $prefix/share/libtool.
>>
Scott> That falls under the preview of Automake -- it isn't something we
Scott> deliberately do.
[automake/lib/Makefile.am]
## These must all be executable when installed. However, if we use
## _SCRIPTS, then the program transform will be applied, which is not
## what we want. So we make them executable by hand.
scriptdir = $(pkgvdatadir)
dist_script_DATA = config.guess config.sub install-sh mdate-sh missing \
mkinstalldirs elisp-comp ylwrap acinstall depcomp compile py-compile \
symlink-tree
install-data-hook:
@$(POST_INSTALL)
@for prog in $(dist_script_DATA); do \
echo " chmod +x $(DESTDIR)$(scriptdir)/$$prog"; \
chmod +x $(DESTDIR)$(scriptdir)/$$prog; \
done
[...]
--
Alexandre Duret-Lutz