bug-autoconf
[Top][All Lists]
Advanced

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

Re: need to set ACLOCAL_AMFLAGS along with AC_CONFIG_MACRO_DIR


From: Chris Pickett
Subject: Re: need to set ACLOCAL_AMFLAGS along with AC_CONFIG_MACRO_DIR
Date: Fri, 21 Mar 2008 16:01:28 -0400
User-agent: Thunderbird 1.5.0.14 (Macintosh/20071210)

Eric Blake wrote:
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

According to Chris Pickett on 3/21/2008 10:58 AM:
| Hi,

Hi Chris, and adding bug-automake,

|
| I had AC_CONFIG_MACRO_DIR([m4]) in configure.ac and a macro from the
| archive in m4/ that wasn't getting m4_include'd at the end of aclocal.m4
| after I ran autoreconf.  Bizarrely, it was working on a different
| project.  I finally realized that I had ACLOCAL_AMFLAGS = -I m4 in one
| case but not the other.
|
| Please consider (some variant of) the attached documentation patch.

Thanks for the report.  However, I'm not sure how best to proceed -
ACLOCAL_AMFLAGS is Automake's domain, not Autoconf's.  But since
autoreconf (from Autoconf) runs aclocal (from Automake), anyone who is
using both autotools together is liable to get confused when they don't
see eye-to-eye on which directories to look for .m4 files in.  And there
are several other places where the autoconf manual caters to the common
(but certainly not universal) usage pattern of using Automake.

Note that there is something of a precedent:

"If you want @command{autoreconf} to pass flags that are not listed here
on to @command{aclocal}, set @code{ACLOCAL_AMFLAGS} in your @file{Makefile.am}."

and now I remember I was responsible for that too:

http://lists.gnu.org/archive/html/autoconf/2006-03/msg00073.html

Seems my caution at the time was not enough :)

Of course, you're right, other people don't want to use Automake at all:

http://lists.gnu.org/archive/html/autoconf/2006-09/msg00097.html

So maybe an additional "If you are using Automake," condition would be good. IOW specifying whatever the exact condition is that provokes this problem in the Autoconf docs.

Chris

I'll probably end up installing this or something like it in the autoconf
manual next week, after I think on it some more (or after others chime in
with opinions).

- --
Don't work too hard, make some time for fun as well!

Eric Blake             address@hidden
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.8 (Cygwin)
Comment: Public key at home.comcast.net/~ericblake/eblake.gpg
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org

iEYEARECAAYFAkfkD0gACgkQ84KuGfSFAYCglQCfXHqwMxLfZM/hCfLkYCPH1Gra
mf0AoJfaF6/11S4jSukDGiI/c6MUs7a1
=m5q5
-----END PGP SIGNATURE-----




reply via email to

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