X-Git-Url: https://git.m6w6.name/?p=m6w6%2Fext-http;a=blobdiff_plain;f=config.w32;h=80762b2a5fe0743f01b4fa64e73a0b05823f02f9;hp=1a73d7450f32c1ed6a0cf25e619389ff1310cb23;hb=61f165688d2cc39424678829a145c8cbab51d1af;hpb=1e4135540cb45994d2fc3ef3ede3bc168a7d839c diff --git a/config.w32 b/config.w32 index 1a73d74..80762b2 100644 --- a/config.w32 +++ b/config.w32 @@ -12,7 +12,7 @@ if (PHP_HTTP != "no") { "http_api.c http_cache_api.c http_request_pool_api.c "+ "http_request_api.c http_date_api.c http_headers_api.c "+ "http_message_api.c http_send_api.c http_url_api.c "+ - "http_info_api.c", + "http_info_api.c http_request_method_api.c", null, "/I\"" + configure_module_dirname + "/phpstr\""); ADD_SOURCES(configure_module_dirname + "/phpstr", "phpstr.c", "http"); @@ -25,13 +25,15 @@ if (PHP_HTTP != "no") { WARNING("mhash etag generator not enabled; libraries and headers not found"); } - if (CHECK_LIB("libcurl.lib", "http", PHP_HTTP) && - CHECK_HEADER_ADD_INCLUDE("curl/easy.h", "CFLAGS_HTTP") && + if (CHECK_HEADER_ADD_INCLUDE("curl/curl.h", "CFLAGS_HTTP") && + CHECK_LIB("libcurl.lib", "http", PHP_HTTP) && CHECK_LIB("ssleay32.lib", "http", PHP_HTTP) && CHECK_LIB("libeay32.lib", "http", PHP_HTTP) && 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("HAVE_CURL_MULTI_STRERROR", 1, ""); + AC_DEFINE("HAVE_CURL_EASY_STRERROR", 1, "") } else { WARNING("curl convenience functions not enabled; libraries and headers not found"); }