diff --git a/Zend/acinclude.m4 b/Zend/acinclude.m4 index aa78edc7c67..d5bae3769c8 100644 --- a/Zend/acinclude.m4 +++ b/Zend/acinclude.m4 @@ -6,7 +6,7 @@ AC_DEFUN([LIBZEND_BISON_CHECK],[ # we only support certain bison versions bison_version_list="1.28 1.35 1.75 2.0" - if test "$YACC" = "bison -y"; then + if test "$YACC"; then AC_CACHE_CHECK([for bison version], php_cv_bison_version, [ set `bison --version| grep 'GNU Bison' | cut -d ' ' -f 4 | $SED -e 's/\./ /'|tr -d a-z` bison_version="${1}.${2}"