bug-libtool
[Top][All Lists]
Advanced

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

Re: libtool 2.2 and updating aclocal.m4


From: Olly Betts
Subject: Re: libtool 2.2 and updating aclocal.m4
Date: Wed, 19 Mar 2008 10:47:01 +0000 (UTC)
User-agent: Loom/3.14 (http://gmane.org/)

Olly Betts <address@hidden> writes:
> $ autoreconf --force --install
> libtoolize: putting auxiliary files in `.'.
> libtoolize: copying file `./ltmain.sh'
> libtoolize: You should add the contents of the following files to 
> `aclocal.m4':
> libtoolize:   `/usr/local/share/aclocal/libtool.m4'
> libtoolize:   `/usr/local/share/aclocal/ltoptions.m4'
> libtoolize:   `/usr/local/share/aclocal/ltversion.m4'
> libtoolize:   `/usr/local/share/aclocal/ltsugar.m4'
> libtoolize:   `/usr/local/share/aclocal/lt~obsolete.m4'
> $
[snip]
> I've cut down the Xapian source tree to a small example, which you can
> download from here:
> 
> http://www.survex.com/~olly/omega-0.0.1.tar.gz

I've found a few more things.  In CVS HEAD, libtoolize.m4sh contains the line:

  rerun_aclocal=false

But rerun_aclocal is never referred to otherwise as far as I can tell.  I
guess this line is a hang-over from an older version which should be removed?

Comparing with 1.5.26, it looks like the code saying to rerun aclocal has been
explicitly removed rather than just being accidentally disabled.  The manual
suggests that AC_CONFIG_MACRO_DIR should be used and libtoolize will copy
the relevant macros there for aclocal to find.  AC_CONFIG_MACRO_DIR gets a
mention in NEWS, but not under "Important incompatible changes and obsoleted
features" so I hadn't noticed it before.  If this is the new preferred way
to handle this, it would be better if the diagnostics for the case above
directed one to AC_CONFIG_MACRO_DIR if aclocal is in use (as it is in my
example).

If I add "AC_CONFIG_MACRO_DIR(m4)" to configure.ac, I still get a complaint:

$ autoreconf --force --install
libtoolize: putting auxiliary files in `.'.
libtoolize: copying file `./ltmain.sh'
libtoolize: putting macros in AC_CONFIG_MACRO_DIR, `m4'.
libtoolize: copying file `m4/libtool.m4'
libtoolize: copying file `m4/ltoptions.m4'
libtoolize: copying file `m4/ltsugar.m4'
libtoolize: copying file `m4/ltversion.m4'
libtoolize: copying file `m4/lt~obsolete.m4'
libtoolize: You should add the contents of `m4/lt~obsolete.m4' to `aclocal.m4'.
$

Looking in the m4 subdirectory, lt~obsolete.m4 has been copied there.

Cheers,
    Olly





reply via email to

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