25 October 2008

Compiling with Automake 1.10

Right now Liferea doesn't build with Automake 1.10 (it works up to 1.9.x). When running configure you get errors like these:

configure.ac:178: warning: macro `AM_GCONF_SOURCE_2' not found in library
configure.ac:16: warning: LT_AC_PROG_SED is m4_require'd but not m4_defun'd
acinclude.m4:6: LIFEREA_CONFIG_NICE is expanded from...
configure.ac:16: the top level
configure.ac:16: warning: LT_AC_PROG_SED is m4_require'd but not m4_defun'd
acinclude.m4:6: LIFEREA_CONFIG_NICE is expanded from...
configure.ac:16: the top level
configure.ac:16: warning: LT_AC_PROG_SED is m4_require'd but not m4_defun'd
acinclude.m4:6: LIFEREA_CONFIG_NICE is expanded from...
configure.ac:16: the top level
configure.ac:7: error: possibly undefined macro: AC_ENABLE_SHARED
If this token and others are legitimate, please use m4_pattern_allow.
See the Autoconf documentation.
configure.ac:8: error: possibly undefined macro: AC_ENABLE_STATIC
configure.ac:20: error: possibly undefined macro: AC_LIBTOOL_DLOPEN
configure.ac:21: error: possibly undefined macro: AC_PROG_LIBTOOL
configure.ac:178: error: possibly undefined macro: AM_GCONF_SOURCE_2
configure:2694: error: possibly undefined macro: LT_AC_PROG_SED
autoreconf: /usr/bin/autoconf failed with exit status: 1

I've searched the net for answers and tried a lot of thing, but couldn't find much on the issue. Does anyone reading the blog know about what to do to migrate from automake 1.9 to 1.10?

Update: After a hint from Adrian Bunk the solution to the problem above is to ensure a correct libtool installation. Reinstalling the libtool package did solve the problem for me.