--- php-5.5.2/sapi/apache2handler/config.m4 2013-08-19 08:41:24.865000066 +0000 +++ php-5.5.2/sapi/apache2handler/config.m4 2013-08-19 08:46:02.000000068 +0000 @@ -60,9 +60,9 @@ # Test that we're trying to configure with apache 2.x PHP_AP_EXTRACT_VERSION($APXS_HTTPD) - if test "$APACHE_VERSION" -le 2000000; then + if test "$APACHE_VERSION" -gt 0 -a "$APACHE_VERSION" -le 2000000; then AC_MSG_ERROR([You have enabled Apache 2 support while your server is Apache 1.3. Please use the appropriate switch --with-apxs (without the 2)]) - elif test "$APACHE_VERSION" -lt 2000044; then + elif test "$APACHE_VERSION" -gt 0 -a "$APACHE_VERSION" -lt 2000044; then AC_MSG_ERROR([Please note that Apache version >= 2.0.44 is required]) fi