]> git.ipfire.org Git - thirdparty/autoconf.git/commitdiff
* lib/autoconf/general.m4 (AC_ARG_ENABLE): Print help about
authorPaul Eggert <eggert@cs.ucla.edu>
Tue, 19 Dec 2006 05:41:18 +0000 (05:41 +0000)
committerPaul Eggert <eggert@cs.ucla.edu>
Tue, 19 Dec 2006 05:41:18 +0000 (05:41 +0000)
--disable-option-checking to --help output even when
AC_PRESERVE_HELP_ORDER is not used.
(_AC_INIT_PARSE_ENABLE2): Print warnings using actual --enable or
--with argument, rather than argument with [-.] replaced by
underscores.
* NEWS: Fix typo in previous change; the news was in the
wrong section.

ChangeLog
NEWS
lib/autoconf/general.m4

index ed018cac87312a45e6a0f43d32285670382e37d6..99eeb9383e0f714824e397c02c4c018ca7e08de6 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,14 @@
+2006-12-18  Steven G. Johnson  <stevenj@alum.mit.edu>
+
+       * lib/autoconf/general.m4 (AC_ARG_ENABLE): Print help about
+       --disable-option-checking to --help output even when
+       AC_PRESERVE_HELP_ORDER is not used.
+       (_AC_INIT_PARSE_ENABLE2): Print warnings using actual --enable or
+       --with argument, rather than argument with [-.] replaced by
+       underscores.
+       * NEWS: Fix typo in previous change; the news was in the
+       wrong section.
+
 2006-12-18  Paul Eggert  <eggert@cs.ucla.edu>
 
        * NEWS: Warnings are now generated by default for unknown
diff --git a/NEWS b/NEWS
index d481dc688335adcacddafb24cf016abf0720e1f7..9fac7c4a7f1de142aaa00f1b2b0914022fcaf2e1 100644 (file)
--- a/NEWS
+++ b/NEWS
@@ -1,6 +1,9 @@
 * Major changes in Autoconf 2.61b (????-??-??)
 
-** None yet...
+** Warnings are now generated by default when an installer invokes
+   'configure' with an unknown --enable-* or --with-* option.
+   These warnings can be disabled with the new AC_DISABLE_OPTION_CHECKING
+   macro, or by invoking 'configure' with --disable-option-checking.
 
 * Major changes in Autoconf 2.61a (2006-12-11)
 
    on some modern systems and could no longer be maintained reliably
    due to lack of ancient systems to test it on.
 
-** Warnings are now generated by default when an installer invokes
-   'configure' with an unknown --enable-* or --with-* option.
-   These warnings can be disabled with the new AC_DISABLE_OPTION_CHECKING
-   macro, or by invoking 'configure' with --disable-option-checking.
-
 ** config.status now uses awk instead of sed for most substitutions, for speed.
 
    - As a side effect multi-line values of substituted variables no
index f4e1f443d0157b04be0dda51e586aa6c44be2606..5e10d7bdd0345d185f722d2ce5a120f5cc9ba493 100644 (file)
@@ -957,10 +957,11 @@ m4_define([_AC_INIT_PARSE_ENABLE2],
     expr "x$ac_useropt" : "[.*[^-._$as_cr_alnum]]" >/dev/null &&
       AC_MSG_ERROR(
        [invalid ]m4_if([$2], [with], [package], [feature])[ name: $ac_useropt])
+    ac_useropt_orig=$ac_useropt
     ac_useropt=`AS_ECHO(["$ac_useropt"]) | sed 's/[[-.]]/_/g'`
     case $ac_user_opts in
       *:$2_$ac_useropt:*) ;;
-      *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--$1-$ac_useropt"
+      *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--$1-$ac_useropt_orig"
          ac_unrecognized_sep=', ';;
     esac
     eval $2_$ac_useropt=m4_if([$1], [$2], [\$ac_optarg], [no]) ;;dnl
@@ -1401,6 +1402,7 @@ AC_DEFUN([AC_ARG_ENABLE],
 [],
 [m4_divert_once([HELP_ENABLE], [[
 Optional Features:
+  --disable-option-checking  ignore unrecognized --enable/--with options
   --disable-FEATURE       do not include FEATURE (same as --enable-FEATURE=no)
   --enable-FEATURE[=ARG]  include FEATURE [ARG=yes]]])])dnl
 m4_divert_once([HELP_ENABLE], [$2])dnl