iliaa           Mon Dec  2 02:03:01 2002 EDT

  Modified files:              
    /php4       configure.in 
  Log:
  Fixed flex version check. Some lex scanners like Sun's SGU do not appear
  to support -V flag, so by passing them data on stdin we prevent them from 
  sitting idle waiting for stdin data. I've also added some common version
  retrieval flags, that may be supported by various lex scanners.
  
  
Index: php4/configure.in
diff -u php4/configure.in:1.403 php4/configure.in:1.404
--- php4/configure.in:1.403     Tue Nov 26 06:30:08 2002
+++ php4/configure.in   Mon Dec  2 02:03:00 2002
@@ -1,4 +1,4 @@
-dnl ## $Id: configure.in,v 1.403 2002/11/26 11:30:08 helly Exp $ -*- sh -*-
+dnl ## $Id: configure.in,v 1.404 2002/12/02 07:03:00 iliaa Exp $ -*- sh -*-
 dnl ## Process this file with autoconf to produce a configure script.
 
 divert(1)
@@ -159,7 +159,7 @@
 fi
 
 AC_MSG_CHECKING([flex version])
-set `$LEX -V | grep 'version' | cut -d ' ' -f 3 | sed -e 's/\./ /g' | sed -e 's/[^0-9 
]//g'`
+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



-- 
PHP CVS Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php

Reply via email to