autoconf
[Top][All Lists]
Advanced

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

Re: autoconf 2.64 warning: AC_REQUIRE: `AC_PROG_CC' was expanded before


From: Eric Blake
Subject: Re: autoconf 2.64 warning: AC_REQUIRE: `AC_PROG_CC' was expanded before it was required
Date: Mon, 11 Jan 2010 06:00:17 -0700
User-agent: Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.8.1.23) Gecko/20090812 Thunderbird/2.0.0.23 Mnenhy/0.7.6.666

According to Carsten Heinrici on 1/10/2010 4:14 PM:
> we are sually working with autoconf 2.63, but I just have to work on a
> system with 2.64 installed and run into the warning:
> 
> configure.in:40: warning: AC_REQUIRE: `AC_PROG_CC' was expanded before
> it was required

This scenario is described in the manual:
http://www.gnu.org/software/autoconf/manual/autoconf.html#Expanded-Before-Required

Without seeing your configure.ac, I can't tell you the exact fix, but it
is likely to be a matter of using AC_REQUIRE in more places, or perhaps an
 AC_DEFUN_ONCE instead of AC_DEFUN of your macro that is wrapping the call
to AC_PROG_CC.

> AC_CACHE_CHECK is expanded from...
> ../ingeconf/icgeneral.m4:2064: IC_CHECK_THREADSAFE is expanded from...
> ../ingeconf/icgeneral.m4:144: IC_CONFIG_C_ is expanded from...
> ../ingeconf/icgeneral.m4:116: IC_CONFIG_C is expanded from...

In other words, it looks like your definitions of IC_CONFIG_* are likely
to be the culprits.  The second example in that portion of the manual
dealt exactly with the case of someone using AC_PROG_CC from within
another macro.

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

Eric Blake             address@hidden

Attachment: signature.asc
Description: OpenPGP digital signature


reply via email to

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