summaryrefslogtreecommitdiff
path: root/lib/autoconf/status.m4
diff options
context:
space:
mode:
authorRalf Wildenhues <Ralf.Wildenhues@gmx.de>2009-09-11 06:53:17 +0200
committerRalf Wildenhues <Ralf.Wildenhues@gmx.de>2009-09-11 06:53:42 +0200
commitbb09823ea70b0468852ba0e8c2b288eddd406a80 (patch)
tree3c58d5ab1eab69d40c4f37f453e7ff4c4aea11c9 /lib/autoconf/status.m4
parent6ecb883bb1b549ca92417a6c66a5f6358f527df2 (diff)
downloadautoconf-bb09823ea70b0468852ba0e8c2b288eddd406a80.tar.gz
New config.status option --config.
* lib/autoconf/status.m4 (_AC_OUTPUT_CONFIG_STATUS): Implement --config. * doc/autoconf.texi (config.status Invocation): Document it. * NEWS: Update. * tests/torture.at (configure invocation): Test it. Suggested several times, by several people, in the past. Signed-off-by: Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
Diffstat (limited to 'lib/autoconf/status.m4')
-rw-r--r--lib/autoconf/status.m46
1 files changed, 5 insertions, 1 deletions
diff --git a/lib/autoconf/status.m4 b/lib/autoconf/status.m4
index b8652e6e..84ee6c3d 100644
--- a/lib/autoconf/status.m4
+++ b/lib/autoconf/status.m4
@@ -1382,6 +1382,7 @@ Usage: $[0] [[OPTION]]... [[TAG]]...
-h, --help print this help, then exit
-V, --version print version number and configuration settings, then exit
+ --config print configuration, then exit
-q, --quiet, --silent
[] do not print progress messages
-d, --debug don't remove temporary files
@@ -1424,11 +1425,12 @@ General help using GNU software: <http://www.gnu.org/gethelp/>.])])"
_ACEOF
cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
+ac_cs_config="`AS_ECHO(["$ac_configure_args"]) | sed 's/^ //; s/[[\\""\`\$]]/\\\\&/g'`"
ac_cs_version="\\
m4_ifset([AC_PACKAGE_NAME], [AC_PACKAGE_NAME ])config.status[]dnl
m4_ifset([AC_PACKAGE_VERSION], [ AC_PACKAGE_VERSION])
configured by $[0], generated by m4_PACKAGE_STRING,
- with options \\"`AS_ECHO(["$ac_configure_args"]) | sed 's/^ //; s/[[\\""\`\$]]/\\\\&/g'`\\"
+ with options \\"\$ac_cs_config\\"
Copyright (C) m4_PACKAGE_YEAR Free Software Foundation, Inc.
This config.status script is free software; the Free Software Foundation
@@ -1472,6 +1474,8 @@ do
ac_cs_recheck=: ;;
--version | --versio | --versi | --vers | --ver | --ve | --v | -V )
AS_ECHO(["$ac_cs_version"]); exit ;;
+ --config | --confi | --conf | --con | --co | --c )
+ AS_ECHO(["$ac_cs_config"]); exit ;;
--debug | --debu | --deb | --de | --d | -d )
debug=: ;;
m4_ifdef([_AC_SEEN_CONFIG(FILES)], [dnl