summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorBoian Bonev <bbonev@php.net>2002-03-20 19:22:54 +0000
committerBoian Bonev <bbonev@php.net>2002-03-20 19:22:54 +0000
commite94ffe37e7d3a7dbccc0e785725f26334a31e171 (patch)
tree86a3afcbce21593822595d06c175d49d034720ed
parentf64628eb7d698a93a4e8b93d52f8abf4fa3b6980 (diff)
downloadphp-git-e94ffe37e7d3a7dbccc0e785725f26334a31e171.tar.gz
fix version checking - now handle 1.2.3 and 1.2 as well
-rw-r--r--ext/vpopmail/config.m44
1 files changed, 2 insertions, 2 deletions
diff --git a/ext/vpopmail/config.m4 b/ext/vpopmail/config.m4
index 9c8a94f970..65ff8a85d2 100644
--- a/ext/vpopmail/config.m4
+++ b/ext/vpopmail/config.m4
@@ -75,8 +75,8 @@ Use ./configure --with-vpopmail=<vpopmail-home-dir> if necessary)
vpopmail_internal_api=1
version=`grep VERSION $VPOPMAIL_INC_DIR/vpopmail_config.h`
if test -n "$version"; then
- version_major=`echo "$version" | sed 's/^[[^"]]\+"\([[0-9]]\+\)\.[[0-9]]\+"/\1/'`;
- version_minor=`echo "$version" | sed 's/^[[^"]]\+"[[0-9]]\+\.\([[0-9]]\+\)"/\1/'`
+ version_major=`echo "$version" | tr "\"#." " " | awk '{print $3}'`
+ version_minor=`echo "$version" | tr "\"#." " " | awk '{print $4}'`
if test $version_major -ge 5; then
if test $version_major -eq 5; then
if test $version_minor -ge 2; then