Escape square brackets in configure.ac

This patch attempts to solve the regression introduced in e8b0efdc
(#2607).
This commit is contained in:
Mateusz Piotrowski 2019-01-09 14:45:00 +01:00
parent 013dd28b15
commit 80f464d9d7
1 changed files with 1 additions and 1 deletions

View File

@ -275,7 +275,7 @@ test "$prefix" = NONE && prefix=$ac_default_prefix
test "$exec_prefix" = NONE && exec_prefix='${prefix}'
for name in $ac_subst_vars; do
for _ in 1 2 3; do
if printf '%s' "${name}" | egrep '^[_[:alpha:]][_[:alnum:]]*$'
if printf '%s' "${name}" | egrep '^[[_[[:alpha:]]]][[_[[:alnum:]]]]*$'
then
eval "${name}"="$(eval echo "\${${name}}")"
fi