cvs: php4 /ext/vpopmail config.m4
| From: | Boian Bonev | Date: | Wed, 20 Mar 2002 19:22:54 +0000 |
| Subject: | cvs: php4 /ext/vpopmail config.m4 | ||
| Groups: | php.cvs | ||
| Request: | Send a blank email to php-cvs+get-10499@lists.php.net to get a copy of this message | ||
bbonev Wed Mar 20 14:22:54 2002 EDT
Modified files:
/php4/ext/vpopmail config.m4
Log:
fix version checking - now handle 1.2.3 and 1.2 as well
Index: php4/ext/vpopmail/config.m4
diff -u php4/ext/vpopmail/config.m4:1.13 php4/ext/vpopmail/config.m4:1.14
--- php4/ext/vpopmail/config.m4:1.13 Wed Mar 20 13:22:31 2002
+++ php4/ext/vpopmail/config.m4 Wed Mar 20 14:22:53 2002
@@ -1,5 +1,5 @@
dnl
-dnl $Id: config.m4,v 1.13 2002/03/20 18:22:31 bbonev Exp $
+dnl $Id: config.m4,v 1.14 2002/03/20 19:22:53 bbonev Exp $
dnl
PHP_ARG_WITH(vpopmail, for vpopmail support,
@@ -75,8 +75,8 @@
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