Re: How to cancel flags set by AC_LANG_WERROR?

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

 



Andrey Simonenko wrote, quoting Ralf Wildenhues:
>> We have two choices: document ac_LANG_werror_flag, or add accessor
>> macros.  (Or document the current limitation and be done with it.)
>> WDYT?
>
> I think that a new macro should be added.
>
> Something like this (may be AC_LANG_NO_WERROR should check that
> AC_LANG_WERROR was used before?):

Or maybe, modify the definition of AC_LANG_WERROR itself, allowing it to
accept an optional ON/OFF argument?  Then:

  - AC_LANG_WERROR([ON]) would have the same effect as the existing
    behaviour, and would be the default for backward compatibility,
    so continuing to support use without any argument.

  - AC_LANG_WERROR([OFF]) would cancel the effect of any prior use
    of AC_LANG_WERROR([ON]), (or would simply have no effect if not
    previously ON, and could be silently ignored).

Just a thought, but seems somehow cleaner than having two complementary
macros, IMHO.

Regards,
Keith.


_______________________________________________
Autoconf mailing list
Autoconf@xxxxxxx
http://lists.gnu.org/mailman/listinfo/autoconf

[Index of Archives]     [GCC Help]     [Kernel Discussion]     [RPM Discussion]     [Red Hat Development]     [Yosemite News]     [Linux USB]     [Samba]

  Powered by Linux