diff options
-rw-r--r-- | ext/vpopmail/config.m4 | 4 |
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 |