From: Anatoliy Belsky Date: Sun, 29 Sep 2013 22:26:46 +0000 (+0000) Subject: prepared for libevent2 usage in config.w32, though libevent usage seems to be broken... X-Git-Tag: RELEASE_2_1_0_RC3~10^2^2~18 X-Git-Url: https://git.m6w6.name/?a=commitdiff_plain;h=bc336340e111d6eff9d7236bc7a7129925469ae1;p=m6w6%2Fext-http prepared for libevent2 usage in config.w32, though libevent usage seems to be broken at the moment --- diff --git a/config.w32 b/config.w32 index e951f3b..f74f152 100644 --- a/config.w32 +++ b/config.w32 @@ -118,6 +118,16 @@ if (PHP_HTTP != "no") { AC_DEFINE("PHP_HAVE_CURL_FORMGET", 1, ""); AC_DEFINE("PHP_HAVE_CURL_MULTI_SETOPT", 1, ""); AC_DEFINE("PHP_HAVE_CURL_MULTI_TIMEOUT", 1, ""); + + if (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)) { + + 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"); + } } else { WARNING("curl convenience functions not enabled; libraries and headers not found"); }