CURL_LIBS=`$CURL_CONFIG --libs`
+ CURL_ZLIB= `$CURL_CONFIG --features | $EGREP libz`
+ if test "$CURL_ZLIB" = "libz"; then
+ AC_DEFINE([HTTP_HAVE_CURL_ZLIB], [1], [ ])
+ fi
+
AC_MSG_CHECKING([for SSL support in libcurl])
CURL_SSL=`$CURL_CONFIG --features | $EGREP SSL`
if test "$CURL_SSL" = "SSL"; then
CHECK_LIB("zlib.lib", "http", PHP_HTTP) &&
CHECK_LIB("winmm.lib", "http", PHP_HTTP)) {
AC_DEFINE("HTTP_HAVE_CURL", 1, "Have CURL library");
+ AC_DEFINE("HTTP_HAVE_CURL_ZLIB", 1, "");
AC_DEFINE("HTTP_HAVE_SSL", 1, "Have SSL");
AC_DEFINE("HAVE_CURL_MULTI_STRERROR", 1, "");
AC_DEFINE("HAVE_CURL_EASY_STRERROR", 1, "");
/* compress, empty string enables all supported if libcurl was build with zlib support */
if ((zoption = http_curl_getopt(options, "compress", IS_BOOL)) && Z_LVAL_P(zoption)) {
-#if defined(HTTP_HAVE_ZLIB) || defined(HAVE_ZLIB)
- HTTP_CURL_OPT(ENCODING, "gzip;q=1.0, deflate;q=0.5, *;q=0.1");
-#else
+#ifdef HTTP_HAVE_CURL_ZLIB
HTTP_CURL_OPT(ENCODING, "");
+#else
+ HTTP_CURL_OPT(ENCODING, "gzip;q=1.0, deflate;q=0.5, *;q=0.1");
#endif
}