Ralf Wildenhues wrote:
Hello Russell,
* Russell Shaw wrote on Sun, Sep 17, 2006 at 03:00:29PM CEST:
Does aclocal have a way to add m4 directories using an environment
variable?
AFAIK no, but you can add directories using the -I flag.
On debian, it only looks in /usr/share/aclocal. I want it to look in
/usr/local/share/aclocal too.
aclocal -I /usr/local/share/aclocal
should work. If you use autoreconf, you can use the environment
variable $ACLOCAL (but note that the first -I flag is special, so
if your toplevel Makefile.am contains ACLOCAL_AMFLAGS, that may make a
difference).
I couldn't find the source for aclocal in the automake tree.
It's in the file aclocal.in.
Hi,
I found from looking at aclocal.in, i can put a file called "dirlist"
in /usr/share/aclocal, containing the path: /usr/local/share/aclocal.
When you compile a project from source and have libraries it needs
already installed in /usr/local, then the autogen.sh scripts they
have will not see /usr/local/share/aclocal. It is impractical to
manually do aclocal -I for these cases. The aclocal -I path should
be initialized from an environment variable, like it is for autoreconf.