[Top][All Lists]

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: libtool.m4 option to use installed libtool

From: Gary V. Vaughan
Subject: Re: libtool.m4 option to use installed libtool
Date: Fri, 01 Apr 2005 11:35:38 +0100
User-agent: Mozilla Thunderbird 0.9 (X11/20041103)

Ralf Wildenhues wrote:
> Hmm.  "Always use our own libtool" sounds a lot like some bug needed
> this.  But then again, that line has been in there unchanged for six
> years.  I wonder if it will break setups if we change this, it's like
> a rope to save us from stupid errors rather than a necessity.
> Anybody have good reasons against changing this?

Running the tests in an older libtool.m4 and then using a newer installed
libtool seems like a waste.  If we want to do this, then we should probably
skip all of the libtool tests at configure time and print a warning that
LIBTOOL has been overridden in the environment.

That said, Greg can change LIBTOOL at make time to get the same effect with:

   $ ./configure
   $ make LIBTOOL=/usr/local/bin/libtool

>>--- libtool.m4        2005-03-28 04:32:59.000000000 -0500
>>+++    2005-03-31 16:03:13.000000000 -0500
>>@@ -69,8 +69,9 @@
>> # This can be used to rebuild libtool when needed
>> LIBTOOL_DEPS="$ltmain"
>>-# Always use our own libtool.
>>-LIBTOOL='$(SHELL) $(top_builddir)/libtool'
>>+# Use our own libtool unless the path to one is already specified in
>>+# the environment.
>>+test -z "$LIBTOOL" && LIBTOOL='$(SHELL) $(top_builddir)/libtool'

Something like this? (off the top of my head!)

# Allow the user to override libtool invocation
case $LIBTOOL in
  # Skip libtool configury if the user specifies an alternate libtool
  [[\\/$]* | ?:[[\\/]]*) ;;
    LIBTOOL='$(SHELL) $(top_buildir)/libtool'

    # Set options


# Only expand once:

Gary V. Vaughan      ())_.  address@hidden,}
Research Scientist   ( '/
GNU Hacker           / )=
Technical Author   `(_~)_

Attachment: signature.asc
Description: OpenPGP digital signature

reply via email to

[Prev in Thread] Current Thread [Next in Thread]