mirror of
git://git.sv.gnu.org/autoconf
synced 2025-01-06 10:25:53 +08:00
* lib/autoconf/general.m4 (_AC_INIT_PARSE_ENABLE): Fix some typos
in previous change, which caused test failures.
This commit is contained in:
parent
ac3beb3155
commit
7f650f671a
@ -1,3 +1,8 @@
|
||||
2006-11-16 Paul Eggert <eggert@cs.ucla.edu>
|
||||
|
||||
* lib/autoconf/general.m4 (_AC_INIT_PARSE_ENABLE): Fix some typos
|
||||
in previous change, which caused test failures.
|
||||
|
||||
2006-11-16 Stepan Kasal <kasal@ucw.cz>
|
||||
|
||||
* lib/autoconf/general.m4 (_AC_INIT_PARSE_ARGS): Factor out
|
||||
|
@ -925,12 +925,12 @@ m4_divert_pop([PARSE_ARGS])dnl
|
||||
#
|
||||
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
|
||||
])
|
||||
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user