if (CHECK_HEADER_ADD_INCLUDE('zlib.h', 'CFLAGS_HTTP', '..\\zlib;' + php_usual_include_suspects)) {
AC_DEFINE('HTTP_HAVE_ZLIB', 1, "Have zlib library");
+ AC_DEFINE('PHP_HTTP_HAVE_ZLIB', 1, "");
ADD_FLAG("LDFLAGS_HTTP", "/FORCE:MULTIPLE");
} else {
WARNING("zlib encoding functions not enabled; libraries and headers not found");
var f;
if ((f = check_for_pecl_ext("hash")) || (f = check_for_main_ext("hash"))) {
+ AC_DEFINE("PHP_HTTP_HAVE_EXT_HASH", 1, "");
ADD_FLAG("CFLAGS_HTTP", '/I "' + f + '" /DHTTP_HAVE_PHP_HASH_H=1');
ADD_EXTENSION_DEP("http", "hash", true);
}
}
if (PHP_ICONV != "no") {
+ AC_DEFINE("PHP_HTTP_HAVE_EXT_ICONV", 1, "");
ADD_EXTENSION_DEP("http", "iconv", true);
}
CHECK_LIB("winmm.lib", "http", PHP_HTTP)) {
AC_DEFINE("PHP_HTTP_HAVE_LIBCURL", 1, "Have CURL library");
AC_DEFINE("PHP_HTTP_HAVE_SSL", 1, "Have SSL");
+ AC_DEFINE("PHP_HTTP_HAVE_LIBCURL_SSL", 1);
+ AC_DEFINE("PHP_HTTP_HAVE_LIBCURL_OPENSSL", 1);
+ AC_DEFINE("PHP_HTTP_HAVE_EXT_PROPRO", 1, "");
+ AC_DEFINE("PHP_HTTP_HAVE_EXT_RAPHF", 1, "");
+ AC_DEFINE("PHP_HTTP_HAVE_CLIENT", 1, "Have HTTP client support");
AC_DEFINE("PHP_HAVE_CURL_MULTI_STRERROR", 1, "");
AC_DEFINE("PHP_HAVE_CURL_SHARE_STRERROR", 1, "");
AC_DEFINE("PHP_HAVE_CURL_EASY_STRERROR", 1, "");
AC_DEFINE("PHP_HAVE_CURL_FORMGET", 1, "");
AC_DEFINE("PHP_HAVE_CURL_MULTI_SETOPT", 1, "");
AC_DEFINE("PHP_HAVE_CURL_MULTI_TIMEOUT", 1, "");
- AC_DEFINE("PHP_HTTP_HAVE_CLIENT", 1, "Have HTTP client support");
ADD_FLAG("CFLAGS_HTTP", "/I" + configure_module_dirname + " ");
if (CHECK_HEADER_ADD_INCLUDE("event2/event.h", "CFLAGS_HTTP") &&
CHECK_LIB("libevent_core.lib", "http", PHP_HTTP) &&
CHECK_LIB("libevent_extras.lib", "http", PHP_HTTP)) {
- AC_DEFINE("PHP_HTTP_HAVE_EVENT", 1);
- AC_DEFINE("PHP_HTTP_HAVE_EVENT2", 1);
- AC_DEFINE("PHP_HTTP_EVENT_VERSION", "2.0.21 or greater");
+ AC_DEFINE("PHP_HTTP_HAVE_LIBEVENT", 1);
+ AC_DEFINE("PHP_HTTP_HAVE_LIBEVENT2", 1);
+ AC_DEFINE("PHP_HTTP_LIBEVENT_VERSION", "2.0.21 or greater");
}
} else {
WARNING("curl convenience functions not enabled; libraries and headers not found");