
Manuel Carro wrote:
BTW, I just tried downloading the latest CVS snapshot (following
to the letter the web directions :-) and autoconf gives the following error:
[boris@balboa ppl]$ autoconf configure.ac > configure configure.ac:28: /usr/bin/m4: Bad expression in eval (bad input): 0 + 13 * 1000 + 2 * 1000000 < 0 + 52g * 1000 + 2 * 1000000 autoconf: Undefined macros: configure.ac:270:AC_DISABLE_SHARED configure.ac:271:AC_LIBTOOL_DLOPEN configure.ac:272:AC_LIBTOOL_WIN32_DLL configure.ac:273:AC_PROG_LIBTOOL configure.ac:94:AC_CHECK_GMP
The resulting 'configure' file is wrong (it just breaks). I had
never used autoconf before. What am I doing wrong?
Hi there,
it is a good thing to work with the CVS version, since 0.3 is, by now, very old.
The first thing I would check is that you have the right versions of autoconf, automake, and libtool. If you want to be absolutely safe, just get the latest versions: download
ftp://ftp.gnu.org/gnu/autoconf/autoconf-2.53.tar.gz ftp://ftp.gnu.org/gnu/automake/automake-1.6.tar.gz ftp://ftp.gnu.org/gnu/libtool/libtool-1.4.2.tar.gz
configure them and install them as usual. Then you should not call autoconf directly but invoke
autoreconf -f
in the root directoty of the PPL sources (i.e., the one containing the configure.ac file). This will create all the files needed for autoconfiguration. You should then create a build directory (it is recommended to have this separate from the source directory) and then configure as usual. Do not hesitate to contact us if something is unclear or goes wrong. Ciao
Roberto

Then you should not call autoconf directly but invoke
autoreconf -f
in the root directoty of the PPL sources (i.e., the one containing the configure.ac file).
Still some problems:
[boris@balboa ppl]$ autoreconf --force --verbose autoreconf: working in `.' autoreconf: running: aclocal --output=aclocal.m4t autoreconf: `aclocal.m4' is unchanged autoreconf: configure.ac: not using Gettext autoreconf: configure.ac: not using Libtool autoreconf: running: automake --force-missing autoreconf: running: autoconf --force configure.ac:270: error: possibly undefined macro: AC_DISABLE_SHARED configure.ac:271: error: possibly undefined macro: AC_LIBTOOL_DLOPEN configure.ac:272: error: possibly undefined macro: AC_LIBTOOL_WIN32_DLL configure.ac:273: error: possibly undefined macro: AC_PROG_LIBTOOL autoreconf: autoconf failed with exit status: 1 at /home/boris/bin/autoreconf line 378
The configure script is generated and gives some errors; @LIBTOOL@ is not substituted in the Makefiles. I am using the versions you pointed me at:
[boris@balboa ppl]$ automake --version automake (GNU automake) 1.6 [...]
[boris@balboa ppl]$ autoconf --version autoconf (GNU Autoconf) 2.53 [...]
[boris@balboa ppl]$ libtool --version ltmain.sh (GNU libtool) 1.4.2 (1.922.2.54 2001/09/11 03:33:37)
MCL
______________________________________________________________________________ Miss a couple of car payments and you'll see if someone cares if you're alive.

Manuel Carro wrote:
Still some problems:
[boris@balboa ppl]$ autoreconf --force --verbose autoreconf: working in `.' autoreconf: running: aclocal --output=aclocal.m4t autoreconf: `aclocal.m4' is unchanged autoreconf: configure.ac: not using Gettext autoreconf: configure.ac: not using Libtool autoreconf: running: automake --force-missing autoreconf: running: autoconf --force configure.ac:270: error: possibly undefined macro: AC_DISABLE_SHARED configure.ac:271: error: possibly undefined macro: AC_LIBTOOL_DLOPEN configure.ac:272: error: possibly undefined macro: AC_LIBTOOL_WIN32_DLL configure.ac:273: error: possibly undefined macro: AC_PROG_LIBTOOL autoreconf: autoconf failed with exit status: 1 at /home/boris/bin/autoreconf line 378
Thi is strange: the bit `not using Libtool' is particularly suspicious. Here is what I get if I checkout a fresh copy of the sources and reconfigure them:
[roberto@spartacus ppl]$ autoreconf --force --verbose autoreconf: working in `.' autoreconf: running: aclocal --output=aclocal.m4t autoreconf: `aclocal.m4' is created autoreconf: configure.ac: not using Gettext autoreconf: configure.ac: not running libtoolize: --install not given autoreconf: running: automake --force-missing autoreconf: running: autoconf --force autoreconf: running: autoheader --force autoheader: `config.h.in' is unchanged [roberto@spartacus ppl]$
It would seem something wrong with the installation of libtool. I may have a look to balboa if you want. Ciao
Roberto

It would seem something wrong with the installation of libtool. I may have a look to balboa if you want.
I installed libtool (the version you referred to) from a rpm, while autoconf and automake were installed from a .tgz; I'll install libtool from a .tgz also and see if it helps. Thanks.
MCL
_____________________________________________ Shoot. Whatever you hit, call it the target.

This is strange: the bit `not using Libtool' is particularly suspicious. Here is what I get if I checkout a fresh copy of the sources and reconfigure them:
Libtool was the culprit; I installed it from the sources and everything run smoothly so far.
MCL
_____________________________________________ Shoot. Whatever you hit, call it the target.
participants (2)
-
Manuel Carro
-
Roberto Bagnara