automake
[Top][All Lists]
Advanced

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

Re: aclocal search path


From: Russell Shaw
Subject: Re: aclocal search path
Date: Mon, 18 Sep 2006 17:36:03 +1000
User-agent: Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.7.12) Gecko/20060205 Debian/1.7.12-1.1

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.




reply via email to

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