On Thu, Mar 4, 2010 at 12:45 AM, Eric Blake <[email protected]> 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


_______________________________________________
Autoconf mailing list
[email protected]
http://lists.gnu.org/mailman/listinfo/autoconf

Reply via email to