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)) {
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");