]> granicus.if.org Git - php/commitdiff
MFH vpopmail 5.2 version compatibility fix
authorBoian Bonev <bbonev@php.net>
Wed, 20 Mar 2002 20:09:58 +0000 (20:09 +0000)
committerBoian Bonev <bbonev@php.net>
Wed, 20 Mar 2002 20:09:58 +0000 (20:09 +0000)
ext/vpopmail/config.m4

index adb050f4e4e9ec8e1588815f908e529376f4f9c9..d3299ac9026355fb7e3ceafc637d4a94dbc46852 100644 (file)
@@ -53,7 +53,7 @@ Use ./configure --with-vpopmail=<vpopmail-home-dir> if necessary)
        dnl check for valias functions in the -lvpopmail
        PHP_CHECK_LIBRARY(vpopmail, valias_select, [
                AC_DEFINE(HAVE_VPOPMAIL_VALIAS,1,[Whether vpopmail has valias support])
-       ],[],
+       ],[],[
                -L$VPOPMAIL_LIB_DIR 
        ])
 
@@ -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