> > # flex-2.5.27/flex -V -v --version 2>/dev/null
> > flex 2.5.27
>
>     This should be parsed correctly.  What kind of OS and /bin/sh

OS == Tru65, shell is /bin/sh
>     do you have?
>
>     What does
>
>     ver1="2.5.27"
>     ver2="2 5 27"
>     set $ver2; echo $3
27
>     IFS=.; set $ver1; echo $3
27

The test in php4/configure.in (and php5/configure.in) is

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

In the newer flex output it does not have the work 'version' in it,
and the version is the second not the third arg which is why this test
fails.

changing that to
set `echo "" | $LEX -V -v --version 2>/dev/null |  sed -e 's/^.*
//' -e 's/\./ /g'

works for me in both cases.  It also handles this case:

# flex-2.5.4/flex -v -V --version 2>&1
flex-2.5.4/flex version 2.5.4

which has a double version number.

Dave


-- 
PHP Development Mailing List <http://www.php.net/>
To unsubscribe, visit: http://www.php.net/unsub.php

Reply via email to