Problems building from CVS

Sometimes, depending on what other packages you've installed or compiled or upgraded, you may run into problems during the autogen.sh script. Some symptoms of these problems look like:

./autogen.sh

[...snip...]
Running aclocal  -I macros ...
aclocal: configure.in: 13: macro `AM_PROG_LIBTOOL' not found in library
aclocal: configure.in: 19: macro `AM_PATH_GTK' not found in library
aclocal: configure.in: 19: macro `AM_PATH_GTK' not found in library
[...snip...]

This is caused when the aclocal program cannot find all the required m4 macro files. In this case, we have installed or upgraded software packages into the /usr/local directory hierarchy. However, aclocal is only looking in the standard /usr/share/aclocal directory and the local ./macros directory. We need to tell aclocal to look in the /usr/local/share/aclocal directory for user-installed files:

export ACLOCAL_FLAGS='-I /usr/local/share/aclocal'
./autogen.sh

This should lead to a successful install.