X-Git-Url: https://git.m6w6.name/?p=m6w6%2Fext-http;a=blobdiff_plain;f=config.w32;h=68006dfcf4f25428de2d4a7f4baa7643d132f826;hp=89a487996248fc26ba807cd629b7e3c52831a3d7;hb=92ebc45a45d1cd712ea9d8d9fcf8b64b115939df;hpb=cd2f5afaff5794214ec3a784d48b9afce41764bf diff --git a/config.w32 b/config.w32 index 89a4879..68006df 100644 --- a/config.w32 +++ b/config.w32 @@ -98,7 +98,14 @@ if (PHP_HTTP != "no") { AC_DEFINE("PHP_HTTP_HAVE_LIBICU", 1, ""); AC_DEFINE("PHP_HTTP_HAVE_IDNA2003", 1, ""); AC_DEFINE("PHP_HTTP_HAVE_IDNA2008", 1, ""); - ADD_FLAG("LIBS_HTTP", "icuuc.lib icudt.lib icuin.lib icuio.lib icule.lib iculx.lib"); + ADD_FLAG("LIBS_HTTP", "icuuc.lib icudt.lib icuin.lib icuio.lib"); + /* Compat for ICU before 58.1.*/ + if (CHECK_LIB("icule.lib", "http", PHP_HTTP)) { + ADD_FLAG("LIBS_HTTP", "icule.lib"); + } + if (CHECK_LIB("iculx.lib", "http", PHP_HTTP)) { + ADD_FLAG("LIBS_HTTP", "iculx.lib"); + } } if (PHP_CURL != "no") { @@ -110,10 +117,14 @@ if (PHP_HTTP != "no") { if (CHECK_HEADER_ADD_INCLUDE("curl/curl.h", "CFLAGS_HTTP") && CHECK_HEADER_ADD_INCLUDE("openssl/crypto.h", "CFLAGS_HTTP") && CHECK_LIB(CURL_LIB, "http", PHP_HTTP) && + CHECK_LIB("wldap32.lib", "http", PHP_HTTP) && + CHECK_LIB("libssh2.lib;libssh2_a.lib", "http", PHP_HTTP) && + CHECK_LIB("nghttp2.lib;nghttp2_a.lib", "http", PHP_HTTP) && + CHECK_LIB("normaliz.lib", "http", PHP_HTTP) && CHECK_LIB("libssl.lib;ssleay32.lib", "http", PHP_HTTP) && CHECK_LIB("libcrypto.lib;libeay32.lib", "http", PHP_HTTP) && + CHECK_LIB("crypt32.lib;libeay32.lib", "http", PHP_HTTP) && CHECK_LIB("zlib.lib;zlib_a.lib", "http", PHP_HTTP) && - CHECK_LIB("libcurl_a.lib", "http", PHP_HTTP) && ADD_EXTENSION_DEP("http", "propro", true) && ADD_EXTENSION_DEP("http", "raphf", true) && CHECK_LIB("winmm.lib", "http", PHP_HTTP)) { @@ -134,7 +145,8 @@ if (PHP_HTTP != "no") { AC_DEFINE("PHP_HAVE_CURL_MULTI_TIMEOUT", 1, ""); ADD_FLAG("CFLAGS_HTTP", "/I" + configure_module_dirname + " "); - if (CHECK_HEADER_ADD_INCLUDE("event2/event.h", "CFLAGS_HTTP") && + if (CHECK_HEADER_ADD_INCLUDE("event.h", "CFLAGS_HTTP") && + CHECK_HEADER_ADD_INCLUDE("event2/event.h", "CFLAGS_HTTP") && CHECK_LIB("libevent.lib", "http", PHP_HTTP) && CHECK_LIB("libevent_core.lib", "http", PHP_HTTP) && CHECK_LIB("libevent_extras.lib", "http", PHP_HTTP)) { @@ -142,6 +154,8 @@ if (PHP_HTTP != "no") { 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("http module: libevent not enabled; libraries or headers not found"); } } else { WARNING("curl convenience functions not enabled; libraries and headers not found");