http://svn.php.net/viewvc?view=revision&revision=309809 --- config.m4 2011/03/29 13:33:24 309808 +++ config.m4 2011/03/29 15:30:43 309809 @@ -23,10 +23,10 @@ echo "Error: libesmtp-config not found." exit 1 fi - + IFS=".r"; set $libesmtp_version; IFS=' ' esmtp_libesmtp_version=`expr [$]1 \* 1000000 + [$]2 \* 1000 + [$]3` - if test "esmtp_libesmtp_version" -ge 1000003; then + if test "$esmtp_libesmtp_version" -ge 1000003; then echo "checking for libESMTP version ... $libesmtp_version (ok)" else echo "checking for libESMTP version ... $libesmtp_version (Error: you need libESMTP version 1.0.3r1 or newer installed to build esmtp)" @@ -34,15 +34,15 @@ fi dnl check PHP version - php_version=`$PHP_CONFIG --version 2>/dev/null|head -n 1|sed -e 's/^[^0-9]*//' -e 's/[a-z]* *$//'` + php_version=`$PHP_CONFIG --version 2>/dev/null|head -n 1|sed -e 's/^[^0-9]*//' -e 's/[a-z-]* *$//'` if test -z "$php_version"; then echo "Error: php/php-config not found." exit 1 fi - - IFS=.; set $php_version; IFS=' ' + + IFS=".-"; set $php_version; IFS=' ' esmtp_php_version=`expr [$]1 \* 1000000 + [$]2 \* 1000 + [$]3` - if test "esmtp_php_version" -ge 4003002; then + if test "$esmtp_php_version" -ge 4003002; then echo "checking for PHP version ... $php_version (ok)" else echo "checking for PHP version ... $php_version (Error: you need PHP version 4.3.2 or newer installed to build esmtp)" @@ -68,7 +68,7 @@ PHP_NEW_EXTENSION(esmtp, esmtp.c, $ext_shared) else echo "Error: php version $php_version is unsupported." - exit 1 + exit 1 fi fi