version 1.1, 2012/02/21 23:47:52
|
version 1.1.1.5, 2014/06/15 20:04:03
|
Line 4 dnl This file contains local autoconf functions.
|
Line 4 dnl This file contains local autoconf functions.
|
|
|
AC_DEFUN([LIBZEND_BISON_CHECK],[ |
AC_DEFUN([LIBZEND_BISON_CHECK],[ |
# we only support certain bison versions |
# we only support certain bison versions |
bison_version_list="1.28 1.35 1.75 1.875 2.0 2.1 2.2 2.3 2.4 2.4.1 2.4.2 2.4.3 2.5" | bison_version_list="1.28 1.35 1.75 1.875 2.0 2.1 2.2 2.3 2.4 2.4.1 2.4.2 2.4.3 2.5 2.5.1 2.6 2.6.1 2.6.2 2.6.4" |
|
|
# for standalone build of Zend Engine |
# for standalone build of Zend Engine |
test -z "$SED" && SED=sed |
test -z "$SED" && SED=sed |
Line 12 AC_DEFUN([LIBZEND_BISON_CHECK],[
|
Line 12 AC_DEFUN([LIBZEND_BISON_CHECK],[
|
bison_version=none |
bison_version=none |
if test "$YACC"; then |
if test "$YACC"; then |
AC_CACHE_CHECK([for bison version], php_cv_bison_version, [ |
AC_CACHE_CHECK([for bison version], php_cv_bison_version, [ |
bison_version_vars=`bison --version 2> /dev/null | grep 'GNU Bison' | cut -d ' ' -f 4 | $SED -e 's/\./ /' | tr -d a-z` | bison_version_vars=`$YACC --version 2> /dev/null | grep 'GNU Bison' | cut -d ' ' -f 4 | $SED -e 's/\./ /g' | tr -d a-z` |
php_cv_bison_version=invalid |
php_cv_bison_version=invalid |
if test -n "$bison_version_vars"; then |
if test -n "$bison_version_vars"; then |
set $bison_version_vars |
set $bison_version_vars |