[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
_AC_INIT_PARSE_ENABLE fixup
From: |
Paul Eggert |
Subject: |
_AC_INIT_PARSE_ENABLE fixup |
Date: |
Thu, 16 Nov 2006 16:38:30 -0800 |
User-agent: |
Gnus/5.1008 (Gnus v5.10.8) Emacs/21.4 (gnu/linux) |
I installed this to fix some bugs introduced by the
<http://lists.gnu.org/archive/html/autoconf-patches/2006-11/msg00020.html>
patch:
2006-11-16 Paul Eggert <address@hidden>
* lib/autoconf/general.m4 (_AC_INIT_PARSE_ENABLE): Fix some typos
in previous change, which caused test failures.
--- lib/autoconf/general.m4 17 Nov 2006 00:16:27 -0000 1.938
+++ lib/autoconf/general.m4 17 Nov 2006 00:37:03 -0000
@@ -925,12 +925,12 @@
#
m4_define([_AC_INIT_PARSE_ENABLE],
[-$1-* | --$1-*)
- ac_$2=`expr "x$ac_option" : 'x-*$1-\(.*\)'`
+ ac_$2=`expr "x$ac_option" : 'x-*$1-\(m4_bmatch([$1], [^\(enable\|with\)$],
[[[^=]]], [.])*\)'`
# Reject names that are not valid shell variable names.
expr "x$ac_$2" : "[.*[^-._$as_cr_alnum]]" >/dev/null &&
AC_MSG_ERROR([invalid $2 name: $ac_$2])
[ac_$2=`echo $ac_$2 | sed 's/[-.]/_/g'`]
- eval with_$ac_$2=$3 ;;dnl
+ eval m4_bmatch([$1], [^\(enable\|disable\)$], [enable], [with])_$ac_$2=$3
;;dnl
])
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- _AC_INIT_PARSE_ENABLE fixup,
Paul Eggert <=