bug-libtool
[Top][All Lists]
Advanced

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

You should add the contents of `m4/argz.m4' to `aclocal.m4' messages


From: Alexandre Duret-Lutz
Subject: You should add the contents of `m4/argz.m4' to `aclocal.m4' messages
Date: Tue, 28 Feb 2006 12:42:31 +0100
User-agent: Gnus/5.110003 (No Gnus v0.3) Emacs/22.0.50 (gnu/linux)

Hi folks,

While trying to understand another problem in one of my projects,
I came to this case where libtoolize tells different things when run
twice.  The second time it told me this:

libtoolize: You should add the contents of `m4/argz.m4' to `aclocal.m4'.
libtoolize: You should add the contents of `m4/lt~obsolete.m4' to `aclocal.m4'.

IMHO, these messages are confusing for three reasons:
1. They magically appeared during the second run.
2. These files contains macros that are not used _this_ configure, so need
   not be added to aclocal.m4.
3. In this case aclocal.m4 is generated by aclocal, so the user should never
   be asked to touch this file.

Is there a way to get rid of these messages in order not to
confuse people?  For instance maybe libtoolize could guess that
aclocal is being used, checking the presence of ACLOCAL_AMFLAGS
or looking into aclocal.m4?



Here is a test case with today's HEAD versions of Autoconf,
Automake, and Libtool (but the project I'm working on normally
uses the latest releases, hence the old syntax):

~/projs/cvs/spot/buddy/test % ls -R                                 12:19 #1037
.:
Makefile.am  configure.ac  m4/

./m4:
~/projs/cvs/spot/buddy/test % cat configure.ac                      12:19 #1038
AC_PREREQ([2.57])
AC_INIT([test], [1])
AM_INIT_AUTOMAKE
AC_PROG_CC
AC_PROG_CXX
AC_PROG_LIBTOOL
AC_CONFIG_FILES([Makefile])
AC_OUTPUT
~/projs/cvs/spot/buddy/test % cat Makefile.am                       12:19 #1039
ACLOCAL_AMFLAGS = -I m4
~/projs/cvs/spot/buddy/test % autoreconf -vfi                       12:19 #1040
autoreconf: Entering directory `.'
autoreconf: configure.ac: not using Gettext
autoreconf: running: aclocal --force -I m4
autoreconf: configure.ac: tracing
autoreconf: running: libtoolize --copy --force
libtoolize: copying file `./ltmain.sh'
libtoolize: putting macros in AC_CONFIG_MACRO_DIR, `m4'.
libtoolize: copying file `m4/libtool.m4'
libtoolize: copying file `m4/argz.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'
autoreconf: running: /home/adl/usr/bin/autoconf --force
autoreconf: configure.ac: not using Autoheader
autoreconf: running: automake --add-missing --copy --force-missing
configure.ac:6: installing `./config.sub'
configure.ac:3: installing `./missing'
configure.ac:3: installing `./install-sh'
configure.ac:6: installing `./config.guess'
Makefile.am: installing `./INSTALL'
Makefile.am: required file `./NEWS' not found
Makefile.am: required file `./README' not found
Makefile.am: required file `./AUTHORS' not found
Makefile.am: required file `./ChangeLog' not found
Makefile.am: installing `./COPYING'
autoreconf: automake failed with exit status: 1
~/projs/cvs/spot/buddy/test % autoreconf -vfi                       Err 1 #1041
autoreconf: Entering directory `.'
autoreconf: configure.ac: not using Gettext
autoreconf: running: aclocal --force -I m4
autoreconf: configure.ac: tracing
autoreconf: running: libtoolize --copy --force
libtoolize: copying file `./ltmain.sh'
libtoolize: putting macros in AC_CONFIG_MACRO_DIR, `m4'.
libtoolize: copying file `m4/libtool.m4'
libtoolize: copying file `m4/argz.m4'
libtoolize: You should add the contents of `m4/argz.m4' to `aclocal.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'.
autoreconf: running: /home/adl/usr/bin/autoconf --force
autoreconf: configure.ac: not using Autoheader
autoreconf: running: automake --add-missing --copy --force-missing
Makefile.am: required file `./NEWS' not found
Makefile.am: required file `./README' not found
Makefile.am: required file `./AUTHORS' not found
Makefile.am: required file `./ChangeLog' not found
autoreconf: automake failed with exit status: 1

-- 
Alexandre Duret-Lutz





reply via email to

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