summaryrefslogtreecommitdiff
path: root/makedist
diff options
context:
space:
mode:
authorSascha Schumann <sas@php.net>2000-05-23 20:32:27 +0000
committerSascha Schumann <sas@php.net>2000-05-23 20:32:27 +0000
commit773e306df2da72cf9d8a78e50ce8f19eaaa13318 (patch)
tree9cdefdda1ea983ddd78a3bd7196ba1e1da84450f /makedist
parent7182e722caee1336e5f3ca4291a8466e0c8c859b (diff)
downloadphp-git-773e306df2da72cf9d8a78e50ce8f19eaaa13318.tar.gz
Add check for Bison. A recent version is required when in ZTS mode.
Diffstat (limited to 'makedist')
-rwxr-xr-xmakedist9
1 files changed, 9 insertions, 0 deletions
diff --git a/makedist b/makedist
index 892fdea38a..16fef6cc03 100755
--- a/makedist
+++ b/makedist
@@ -27,6 +27,15 @@
# $Id$
#
+old_IFS="$IFS"
+IFS=.
+eval set `bison -V|sed "s/GNU Bison version //"`
+if test "$1" = "1" && test "28" -gt "$2"; then
+ echo "Please use Bison 1.28 or higher"
+ exit 10
+fi
+IFS="$old_IFS"
+
PHPROOT=:pserver:cvsread@cvs.php.net:/repository
ZENDROOT=:pserver:cvsread@cvs.zend.com:/repository
PHPMOD=php4