[ moving from autoconf@ ]
* Eric Blake wrote on Fri, Oct 17, 2008 at 12:49:58AM CEST:
> Ralf Wildenhues <Ralf.Wildenhues <at> gmx.de> writes:
>
> > > It is still a bit frustrating when you know all the data you need is in
> > > config.status but you cannot get it. Something that would solve this
> > > problem
> > > would be to have an option like --showtag then I could run config,status
> > > as:
> >
> > You can do it like this:
> > echo '@CC@' | ./config.status --file=-
>
> We need to put this gem in the manual. Care to write a patch?
I'll push this later today, if no one complains.
Thanks,
Ralf
Show how to extract single substitutions from config.status.
* doc/autoconf.texi (config.status Invocation): Show example
using `--file=-'.
diff --git a/doc/autoconf.texi b/doc/autoconf.texi
index 43227a6..3172c95 100644
--- a/doc/autoconf.texi
+++ b/doc/autoconf.texi
@@ -18868,7 +18868,14 @@ Doing so can be useful if some of the packages need a
superset of the
features that one of them, perhaps a common library, does. These
options allow a @file{config.status} file to create files other than the
ones that its @file{configure.ac} specifies, so it can be used for a
-different package.
+different package, or for extracting a subset of values. For example,
+
[EMAIL PROTECTED]
+echo '@@CC@@' | ./config.status --file=-
[EMAIL PROTECTED] example
+
[EMAIL PROTECTED]
+provides the value of @code{@@CC@@} on standard output.
@item [EMAIL PROTECTED]:@var{template}]
Same as @option{--file} above, but with @samp{AC_CONFIG_HEADERS}.