autoconf
[Top][All Lists]
Advanced

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

Re: Quick divert() 2.13/2.6x portability macro


From: Rasmus Lerdorf
Subject: Re: Quick divert() 2.13/2.6x portability macro
Date: Sat, 28 Nov 2009 07:23:12 -0800
User-agent: Thunderbird 2.0.0.23 (X11/20090817)

Eric Blake wrote:> configure --help output is a special case where
diversion magic is
> necessary.  Using diversion BODY is too late.  But what's wrong with using
> the documented AC_ARG_ENABLE and AC_ARG_WITH, which properly manage the
> diversions on your behalf?  Under the hood, they are using
> m4_divert_text([HELP_ENABLE], [text]) or m4_divert_text([HELP_WITH]) to
> output text into the --help stream.  So technically, if you needed to use
> these (intentionally undocumented) named diversions, you could likewise
> impact the --help output.  Reading lib/autoconf/general.m4 to learn about
> named diversions may be useful.  But again, what's wrong with the
> documented interfaces, or what is a specific example of a particular
> string that outputs in a different location in the --help output than
> where you want?

We probably hold the world record for the most configure switches, so in
order to make it somewhat plausible to figure them all out, we
categorized them.  The help output from 2.13 looks like this:

http://lerdorf.com/c.txt

Getting the TSRM switches to show up under the TSRM section in 2.59+
isn't working, for example.

-Rasmus




reply via email to

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