On Thu, 30 Dec 1999, Guy Harris wrote:
> > So, it seems the solution to the problem with different versions of libtool
> > is to remove ltconfig, config.guess and libltdl/ from CVS and add
> > 'libtoolize --copy --force -ltdl' to the autogen.sh file (just before it
> > configures the . and wiretap directories), or am I totally wrong here?
>
> I gave that a try in a freshly-checked-out-from-CVS tree (using
> "--ltdl", not "-ltdl"), and it worked - I was able to build a
> distribution tarball ("make distcheck" passed), and to unpack the
> resulting tarball and build it on my machine (although it could, in
> theory, have worked only because I have libtool on my machine - the
> tarball does contain "ltconfig", "config.guess", and the "libltdl"
> directory, however).
>
> This would require that you have libtool installed if you're working
> with the CVS tree - but that's *already* true. It shouldn't require
> that you have libtool installed if you're building from a distribution
> tarball, however.
Should we combine this with the suggestion from Bert Driehuis, and add the
something like
if test "`libtool --version`" != "`./libtool --version`"; then
echo "Adjusting libtool version..."
libtoolize --copy --force --ltdl
fi
to autogen.sh?
I looked for an equivalent to autoconf's AC_PREREQ() macro in the libtool
documentation in the hopes of being able to tell it to look for a minimal
verison and not to complain otherwise. The only thing similar is the use
of the makefile rule
libtool: $(LIBTOOL_DEPS)
$(SHELL) ./config.status --recheck
to automatically update the copy of libtool in the distribution if the
local machine has a newer version of libtool installed. This was added to
Ethereal's Makefile.am at the same time as the other libtool
modifications. It can be removed if needed.