[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [RFC] AM_ARG_ENABLE
From: |
Ralf Wildenhues |
Subject: |
Re: [RFC] AM_ARG_ENABLE |
Date: |
Tue, 7 Sep 2010 22:17:26 +0200 |
User-agent: |
Mutt/1.5.20 (2010-04-22) |
Hi Paolo,
* Paolo Bonzini wrote on Tue, Sep 07, 2010 at 07:10:39PM CEST:
> While looking around at the most common shell idioms in otherwise
> "simple" configure.ac files, I found a very common one:
>
> AC_ARG_ENABLE([something], [--enable-something xyz],,
> [enable_something=no])
> AM_CONDITIONAL([SOMETHING, [test "$enable_something" != no])
>
> What would you think about one or two wrapper macros in Automake
> that would simplify the above to
>
> AM_ARG_ENABLE([something], [xyz]) # if default is NO
> AM_ARG_DISABLE([something], [xyz]) # if default is YES
>
> ?
Sounds like a good idea.
Thanks,
Ralf