[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: aclocal: warning: AC_CANONICAL_HOST invoked multiple times
From: |
Sam Steingold |
Subject: |
Re: aclocal: warning: AC_CANONICAL_HOST invoked multiple times |
Date: |
Fri, 19 Oct 2007 11:29:40 -0400 |
User-agent: |
Thunderbird 2.0.0.0 (X11/20070326) |
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1
Eric Blake wrote:
> According to Sam Steingold on 10/17/2007 10:14 AM:
>> I get the following warning:
>
>> aclocal -I `pwd`/src/m4 -I `pwd`/src/glm4 \
>> --output=src/autoconf/aclocal.m4
>> configure.ac:87: warning: AC_CANONICAL_BUILD invoked multiple times
> ...
>> how do I avoid this warning?
>
> Generally, these sorts of errors can be avoided by using
> AC_REQUIRE([AC_CANONICAL_BUILD]) rather than flat-out invoking
> AC_CANONICAL_BUILD.
>
> On the other hand, this ChangeLog may shed some light on the matter:
> 2005-08-26 Stepan Kasal <address@hidden>
> * lib/autoconf/general.m4 (AC_CANONICAL_BUILD, AC_CANONICAL_HOST,
> AC_CANONICAL_TARGET): Define by AC_DEFUN, no need to use AC_DEFUN_ONCE;
> but change the m4_divert_text to m4_divert_once.
>
> The message is printed by AC_DEFUN_ONCE, but the current git sources of
> Autoconf don't use that any more as of the above-mentioned change. So my
> guess is that you are still using autoconf 2.59 instead of 2.61.
indeed I am using 2.59 which comes with fc.
it is frustrating to see that an allegedly "bleeding edge" distribution
comes with 2-4 y.o. releases...
thanks for your help, you did clarify things quite a bit.
actually, this (and others like this) error may stem from the fact that
I am generating aclocal.m4 from _many_ configure.in (one top-level plus
one for each optional module) files by concatenating them together and
passing the result as configure.in argument to aclocal.
this is clearly suboptimal, so I was wondering whether there is a
standard way to merge aclocal.m4 files generated from different
configure.in files.
thanks
Sam
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.6 (GNU/Linux)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org
iD8DBQFHGM1kPp1Qsf2qnMcRAibnAJ0Xudi5DLBSo+zE1eFvM9axel5PHACaA+zr
/0qbzgZILgf0AzxV1pZOcQ8=
=Tq1Z
-----END PGP SIGNATURE-----