autoconf
[Top][All Lists]
Advanced

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

Re: aclocal: warning: AC_CANONICAL_HOST invoked multiple times


From: Eric Blake
Subject: Re: aclocal: warning: AC_CANONICAL_HOST invoked multiple times
Date: Thu, 18 Oct 2007 19:07:24 -0600
User-agent: Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.8.1.6) Gecko/20070728 Thunderbird/2.0.0.6 Mnenhy/0.7.5.666

-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

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.

Try upgrading, and seeing if that makes the message disappear.

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

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

iD8DBQFHGANM84KuGfSFAYARAjFdAKDI6fKf+7JfaUqP6XvtVr7Qtao19QCgiNxf
25gVgxf92MiCO/ROCEJg4/E=
=lw7y
-----END PGP SIGNATURE-----




reply via email to

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