ddhill Mon Mar 31 09:01:55 2003 EDT Modified files: (Branch: PHP_4_3) /php4 configure.in Log: Correcting checking of flex version (Dave) Index: php4/configure.in diff -u php4/configure.in:1.396.2.43 php4/configure.in:1.396.2.44 --- php4/configure.in:1.396.2.43 Sat Mar 29 10:56:25 2003 +++ php4/configure.in Mon Mar 31 09:01:55 2003 @@ -1,4 +1,4 @@ -dnl ## $Id: configure.in,v 1.396.2.43 2003/03/29 15:56:25 moriyoshi Exp $ -*- sh -*- +dnl ## $Id: configure.in,v 1.396.2.44 2003/03/31 14:01:55 ddhill Exp $ -*- sh -*- dnl ## Process this file with autoconf to produce a configure script. divert(1) @@ -155,11 +155,19 @@ fi AC_MSG_CHECKING([flex version]) -set `echo "" | $LEX -V -v --version 2>/dev/null | grep 'version' | cut -d ' ' -f 3 | sed -e 's/\./ /g' | sed -e 's/[^0-9 ]//g'` -if test "${1}" != "2" -o "${2}" != "5" -o "${3}" -lt "4"; then - AC_MSG_WARN(You will need flex 2.5.4 or later if you want to regenerate Zend/PHP lexical parsers.) -fi +if test "$LEX" ;then + flexvers=`echo "" | $LEX -V -v --version 2>/dev/null | + sed -e 's/^.* //' -e 's/\./ /g'` + if test ! -z "$flexvers"; then + set $flexvers + if test "${1}" != "2" -o "${2}" != "5" -o "${3}" -lt "4"; then + AC_MSG_WARN(You will need flex 2.5.4 or later if you want to regenerate Zend/PHP lexical parsers.) + fi + fi AC_MSG_RESULT(${1}.${2}.${3} (ok)) +else + AC_MSG_WARN(You will need flex 2.5.4 or later if you want to regenerate Zend/PHP lexical parsers.) +fi dnl Platform-specific compile settings. dnl -------------------------------------------------------------------------
-- PHP CVS Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php