[Top][All Lists]

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

Re: Functions used by init before defined

From: jeremy
Subject: Re: Functions used by init before defined
Date: Tue, 9 Apr 2013 10:39:08 -0700 (PDT)

Hi, Eric.

I am not sure about pasting in my as my usage of Autoconf is a
bit "wild."  I do suspect that something changed within Autoconf itself, as
my scripts worked fine with 2.53 but the problems started occurring after I
upgraded to 2.69 which is the latest.  I use a lot of includes via
aclocal.m4 to pull in macros that I define.  Could this have anything to do
with it?

In the meantime, I'll work on trying to get the smallest possible example
that shows this problem.  You really don't want to look at my full script.


On Mon, Apr 8, 2013 at 6:21 PM, Eric Blake-3 [via Gnu - Autoconf] <
address@hidden> wrote:

> On 04/08/2013 05:06 PM, jeremy wrote:
> > Hi,
> >
> > I'm having a strange issue with Autoconf which involves a few built-in
> > functions.  They are not being found.  Basically, if I run autoconf on
> my
> > it complains about that as_fn_set_status and as_fn_exit
> are not
> The file name is deprecated; hence I'm referring to
> > being defined.  Looking in the generated configure script, indeed these
> are
> > used at the top but defined at the bottom.  They are used very early in
> the
> > script, apparently by the call to AC_INIT.  So my (very hacky) solution
> is
> > simply inserting these two functions at the top of the script, and then
> the
> > script runs fine.  Now, on the other hand, I have another
> > script that seems to work fine with the same Autoconf version, so I am a
> bit
> > confused.
> I'd have to see the two scripts to compare them, before I
> could say whether it is a usage error on your part or a bug in autoconf
> itself.  Can you post them?  I suspect that you have something going on
> with diversions that ends up causing things to be placed in the wrong
> diversion, at which point the resulting configure file appears out of
> order with a use of the function in one diversion before the definition
> of the function in another diversion.
> >
> > It was also somewhat confusing that copying these methods and putting
> them
> > at the top of my script did not seem to do anything as
> they are
> > apparently ignored and defined in the same place in the output
> regardless.
> In autoconf, AC_INIT has to come first.  Anything appearing before
> AC_INIT is treated as going to diversion -1; so while it might affect m4
> definitions, it is not carried through to the resulting configure file.
>  That would explain why pasting the functions in your
> earlier than AC_INIT didn't make a difference.
> --
> Eric Blake   eblake redhat com    +1-919-301-3266
> Libvirt virtualization library
> _______________________________________________
> Autoconf mailing list
> [hidden email] <http://user/SendEmail.jtp?type=node&node=18661&i=0>
> *signature.asc* (634 bytes) Download 
> Attachment<>
> ------------------------------
>  If you reply to this email, your message will be added to the discussion
> below:
>  To unsubscribe from Functions used by init before defined, click 
> here<>
> .
> NAML<>

View this message in context:
Sent from the Gnu - Autoconf - General mailing list archive at

reply via email to

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