autoconf
[Top][All Lists]
Advanced

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

Re: AC_CHECK_FUNCS and gcc with -Werror


From: Steffen Dettmer
Subject: Re: AC_CHECK_FUNCS and gcc with -Werror
Date: Thu, 4 Mar 2010 14:18:39 +0100

On Thu, Mar 4, 2010 at 12:45 AM, Eric Blake <address@hidden> wrote:
>> - Alternatively, by accident, ts there some way to tell configure
>>   something like: right just before writing config.status, set
>>   `CFLAGS=$CFLAGS\ $WERROR_CFLAGS' or so?
>>   As Peter suggests?
>
> Perhaps; AC_CONFIG_COMMANDS_PRE probably fits the bill as the ideal macro
> to use for guaranteeing that you inject your shell code at the last
> possible moment.

ahhhhhhh yeeeeeeeeeeeeeeeeessssssssss
I think that's it.

Cool that it can be called any time and automatically is executed
at the right time.

I just changed 1 file (where the --enable-errors is implemented)
to use
  AC_CONFIG_COMMANDS_PRE(CFLAGS="$ERROR_CFLAGS $CFLAGS";)
and it seems to work well.

> In other words, it is imperative that what configure learned
> about -Werror be delayed until make time, rather than being
> applied immediately.

Ahh yes, exactly, so I finally understood correctly.
Sorry if I caused confusion with my initial mails.

Eric,
and all the others on this list,

thank you all so much for the help!! A really great list.

oki,

Steffen




reply via email to

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