- undef debug stmts
[m6w6/ext-http] / config.w32
1 // config.w32 for pecl/http
2 // $Id$
3
4 ARG_ENABLE("http", "whether to enable extended HTTP support", "no");
5
6 if (PHP_HTTP != "no") {
7 EXTENSION("http",
8 "http.c http_functions.c http_methods.c "+
9 "http_api.c http_auth_api.c http_cache_api.c "+
10 "http_curl_api.c http_date_api.c http_headers_api.c "+
11 "http_message_api.c http_send_api.c http_url_api.c ",
12 null,
13 "/I\"" + configure_module_dirname + "/phpstr\"");
14 ADD_SOURCES(configure_module_dirname + "/phpstr", "phpstr.c", "http");
15 AC_DEFINE("HAVE_HTTP", 1, "Have extended HTTP support")
16 if (CHECK_LIB("libcurl.lib", "http", PHP_HTTP) &&
17 CHECK_HEADER_ADD_INCLUDE("curl/easy.h", "CFLAGS_HTTP") &&
18 CHECK_LIB("ssleay32.lib", "http", PHP_HTTP) &&
19 CHECK_LIB("libeay32.lib", "http", PHP_HTTP) &&
20 CHECK_LIB("zlib.lib", "http", PHP_HTTP) &&
21 CHECK_LIB("winmm.lib", "http", PHP_HTTP)) {
22 AC_DEFINE("HTTP_HAVE_CURL", 1, "Have CURL library");
23 } else {
24 WARNING("curl convenience functions not enabled; libraries and headers not found");
25 }
26 }