]> granicus.if.org Git - php/commitdiff
MFH:- Prevent errors in CVS builds when bison is not there (for Sean :)
authorJani Taskinen <jani@php.net>
Wed, 16 Jul 2008 16:22:43 +0000 (16:22 +0000)
committerJani Taskinen <jani@php.net>
Wed, 16 Jul 2008 16:22:43 +0000 (16:22 +0000)
configure.in

index eba216565e2c3ad2c8752c94cc3845d24fbdf01d..392ab2058193c3d563e31dc0f53dc93df3667246 100644 (file)
@@ -165,6 +165,15 @@ PHP_PROG_AWK
 PHP_PROG_BISON
 PHP_PROG_RE2C
 
+dnl Check if bison generated files exist when bison does not..
+case $php_cv_bison_version in
+  ""|invalid[)]
+    if ! test -f "$abs_srcdir/Zend/zend_language_parser.h" || ! test -f "$abs_srcdir/Zend/zend_language_parser.c" ; then
+      AC_MSG_ERROR([bison is required to build PHP/Zend when building a CVS checkout!])
+    fi
+    ;;
+esac
+
 PHP_ARG_ENABLE(re2c-cgoto, whether to enable computed goto gcc extension with re2c,
 [  --enable-re2c-cgoto     Enable -g flag to re2c to use computed goto gcc extension], no, no)