autoconf
[Top][All Lists]
Advanced

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

Re: AS_HELP_STRING in an m4 macro: different decription wrt arguments


From: Ralf Wildenhues
Subject: Re: AS_HELP_STRING in an m4 macro: different decription wrt arguments
Date: Tue, 26 Jan 2010 06:53:08 +0100
User-agent: Mutt/1.5.20 (2009-10-28)

* Peter Johansson wrote on Tue, Jan 26, 2010 at 06:38:44AM CET:
> On 1/26/10 12:09 AM, Ralf Wildenhues wrote:
> >I assume you want $wanted_value to expand to either enabled or disabled?
> >Well, that cannot work: in the generated configure script, the --help
> >text comes before the code that actually deals with the command line
> >arguments.
> >Also, if your default value would depend on the configure command line,
> >then it wouldn't be the "default" value, right?
> >
> 
> If we assume that $2 is a literal `yes' or `no', i.e., the value can
> be decided at autoconf time (rather than at configure time) it seems
> it should be possible to expand to enabled or disabled depending on
> the value of $2.

Well, in that case Vincent should use $2 in the argument to
AS_HELP_STRING, not $wanted_value.  Sorry for not reading close enough.

Thanks,
Ralf




reply via email to

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