+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
* 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
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
[],
[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