Skip to content

Commit f57043e

Browse files
committed
Fix version test
1 parent 2c2af7c commit f57043e

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

configure.in

+1-1
Original file line numberDiff line numberDiff line change
@@ -137,7 +137,7 @@ if test "$YACC" != "bison -y"; then
137137
else
138138
AC_MSG_CHECKING([bison version])
139139
set `bison --version| grep 'GNU Bison' | cut -d ' ' -f 4 | sed -e 's/\./ /'|tr -d a-z`
140-
if test "${1}" = "1" -a "${2}" != "28" -a "${2}" != "35" -a "${2}" != "75" -a "${2}" != "875"; then
140+
if test "${1}" -ne "1" -o "(" "${2}" != "28" -a "${2}" != "35" -a "${2}" != "75" -a "${2}" != "875" ")"; then
141141
AC_MSG_WARN([You will need bison 1.28, 1.35, 1.75 or 1.875 if you want to regenerate the Zend parser (found ${1}.${2}).])
142142
fi
143143
AC_MSG_RESULT(${1}.${2} (ok))

0 commit comments

Comments
 (0)