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
])
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