[Top][All Lists]

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

Re: feature request: allow plus signs in AC_ARG_ENABLE

From: Ralf Wildenhues
Subject: Re: feature request: allow plus signs in AC_ARG_ENABLE
Date: Sat, 13 Mar 2010 18:29:39 +0100
User-agent: Mutt/1.5.20 (2009-10-28)

Hi Bruno,

* Bruno Haible wrote on Sat, Mar 13, 2010 at 05:27:10PM CET:
> AC_ARG_ENABLE is documented to accept options only consisting of
> "alphanumeric characters, dashes, and dots". I would like to write
>   AC_MSG_CHECKING([whether to use C++])
>   AC_ARG_ENABLE([c++],
>     [  --disable-c++           do not build C++ sources],
>     [CXX_CHOICE="$enableval"],
>     [CXX_CHOICE=yes])

That sounds good.

> Here is a proposed patch. Note that in _AC_INIT_PARSE_ENABLE2 was
> already handled, by converting it to an underscore, but that is only half
> of the needed job.

Those semantics already have users out there, though.  For example GCC
relies on --disable-libstdc___v3, so this would be an incompatible
change.  I find the x as mnemonic for + nice too but consistency also
with how Automake mangles names to variables would be higher if all
mangled characters were replaced with underscores.  So much for coloring


reply via email to

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