]> git.ipfire.org Git - thirdparty/autoconf.git/commitdiff
* NEWS: Document the AC_ARG_WITH change.
authorPaul Eggert <eggert@cs.ucla.edu>
Mon, 13 Nov 2006 20:40:06 +0000 (20:40 +0000)
committerPaul Eggert <eggert@cs.ucla.edu>
Mon, 13 Nov 2006 20:40:06 +0000 (20:40 +0000)
2006-11-13  Bruno Haible  <bruno@clisp.org>

* lib/autoconf/general.m4 (_AC_INIT_PARSE_ARGS): For --with, --without
options, transliterate also dots to underscores.
(_AC_ENABLE_IF): Transliterate also dots to underscores.
* doc/autoconf.texi (External Software): Document that AC_ARG_WITH's
first argument may also contain dots.

ChangeLog
NEWS
doc/autoconf.texi
lib/autoconf/general.m4

index b025aee9bf3c99039f1416bcf00d20062c3ae175..0e829b19bfb868a82a8655b2979fe48a3af1c568 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,15 @@
+2006-11-13  Paul Eggert  <eggert@cs.ucla.edu>
+
+       * NEWS: Document the AC_ARG_WITH change.
+
+2006-11-13  Bruno Haible  <bruno@clisp.org>
+
+       * lib/autoconf/general.m4 (_AC_INIT_PARSE_ARGS): For --with, --without
+       options, transliterate also dots to underscores.
+       (_AC_ENABLE_IF): Transliterate also dots to underscores.
+       * doc/autoconf.texi (External Software): Document that AC_ARG_WITH's
+       first argument may also contain dots.
+
 2006-11-09  Paul Eggert  <eggert@cs.ucla.edu>
 
        * tests/mktests.sh (ac_exclude_list): Exclude AC_PROG_CXX_C_O, for
diff --git a/NEWS b/NEWS
index e9c165271b386f136d59fbd9782ffd98bf92385a..b6546658df684d3b11791950f9fc390141eaa29e 100644 (file)
--- a/NEWS
+++ b/NEWS
@@ -21,6 +21,8 @@
 
 ** New macros AC_C_FLEXIBLE_ARRAY_MEMBER, AC_C_VARARRAYS.
 
+** AC_ARG_WITH now allows '.' in package names.
+
 ** AC_CHECK_DECL now also works with aggregate objects.
 
 ** AC_USE_SYSTEM_EXTENSIONS now defines _TANDEM_SOURCE for NonStop platforms.
index 9aa70d9d9823534a90184baee959b860e6943566..ae1178061acdd1bc60d7652c7ab93c1247d46b82 100644 (file)
@@ -15526,12 +15526,12 @@ or @option{--without-@var{package}}, run shell commands
 @var{action-if-given}.  If neither option was given, run shell commands
 @var{action-if-not-given}.  The name @var{package} indicates another
 software package that this program should work with.  It should consist
-only of alphanumeric characters and dashes.
+only of alphanumeric characters, dashes, and dots.
 
 The option's argument is available to the shell commands
 @var{action-if-given} in the shell variable @code{withval}, which is
 actually just the value of the shell variable @code{with_@var{package}},
-with any @option{-} characters changed into @samp{_}.  You may use that
+with any non-alphanumeric characters changed into @samp{_}.  You may use that
 variable instead, if you wish.
 
 The argument @var{help-string} is a description of the option that
index bdf48f64e1395419d15bf99c70f3f9b46e6d163d..3f5b4595937793692941c16a80e30b74ef8f4104 100644 (file)
@@ -843,17 +843,17 @@ do
   -with-* | --with-*)
     ac_package=`expr "x$ac_option" : 'x-*with-\([[^=]]*\)'`
     # Reject names that are not valid shell variable names.
-    expr "x$ac_package" : "[.*[^-_$as_cr_alnum]]" >/dev/null &&
+    expr "x$ac_package" : "[.*[^-._$as_cr_alnum]]" >/dev/null &&
       AC_MSG_ERROR([invalid package name: $ac_package])
-    ac_package=`echo $ac_package| sed 's/-/_/g'`
+    [ac_package=`echo $ac_package | sed 's/[-.]/_/g'`]
     eval with_$ac_package=\$ac_optarg ;;
 
   -without-* | --without-*)
     ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'`
     # Reject names that are not valid shell variable names.
-    expr "x$ac_package" : "[.*[^-_$as_cr_alnum]]" >/dev/null &&
+    expr "x$ac_package" : "[.*[^-._$as_cr_alnum]]" >/dev/null &&
       AC_MSG_ERROR([invalid package name: $ac_package])
-    ac_package=`echo $ac_package | sed 's/-/_/g'`
+    [ac_package=`echo $ac_package | sed 's/[-.]/_/g'`]
     eval with_$ac_package=no ;;
 
   --x)
@@ -1361,7 +1361,7 @@ m4_define([_m4_divert(HELP_ENABLE)],    _m4_divert(HELP_WITH))
 #
 m4_define([_AC_ENABLE_IF],
 [# Check whether --$1-$2 was given.
-_AC_ENABLE_IF_ACTION([$1], m4_bpatsubst([$2], -, _), [$3], [$4])[]dnl
+_AC_ENABLE_IF_ACTION([$1], m4_translit([$2], [-.], [__]), [$3], [$4])[]dnl
 ])
 
 m4_define([_AC_ENABLE_IF_ACTION],