cvs: php4 / configure.in

From: Date: Mon, 10 Dec 2001 01:44:17 +0000
Subject: cvs: php4 / configure.in
Groups: php.cvs 
Request: Send a blank email to php-cvs+get-8544@lists.php.net to get a copy of this message
sniper Sun Dec 9 20:44:17 2001 EDT Modified files: /php4 configure.in Log: - Fixed the version detection of Bison. # The nice people who work on Bison decided to change the --version output. Index: php4/configure.in diff -u php4/configure.in:1.282 php4/configure.in:1.283 --- php4/configure.in:1.282 Fri Nov 30 19:59:43 2001 +++ php4/configure.in Sun Dec 9 20:44:17 2001 @@ -1,4 +1,4 @@ -dnl ## $Id: configure.in,v 1.282 2001/12/01 00:59:43 sniper Exp $ -*- sh -*- +dnl ## $Id: configure.in,v 1.283 2001/12/10 01:44:17 sniper Exp $ -*- sh -*- dnl ## Process this file with autoconf to produce a configure script. divert(1) @@ -79,13 +79,11 @@ AC_MSG_WARN([You will need bison if you want to regenerate the PHP parsers.]) else AC_MSG_CHECKING([bison version]) - oldIFS=$IFS; IFS=. - set bison -V | sed -e 's/^GNU Bison version //' - IFS=$oldIFS - if test "$1" = "1" -a "$2" -lt "25"; then - AC_MSG_WARN([Bison 1.25 or newer needed to regenerate parsers (found $1.$2).]) + set bison --version| grep 'GNU Bison' | cut -d ' ' -f 4 | sed -e 's/\./ /' + if test "${1}" = "1" -a "${2}" -lt "28"; then + AC_MSG_WARN(You will need bison 1.28 if you want to regenerate the Zend parser (found ${1}.${2}).) fi - AC_MSG_RESULT([$1.$2 (ok)]) + AC_MSG_RESULT(${1}.${2} (ok)) fi AC_PROG_CC

« previous php.cvs (#8544) next »