1// vim:ft=javascript 2 3ARG_WITH("curl", "cURL support", "no"); 4 5if (PHP_CURL != "no") { 6 if (CHECK_LIB("libcurl_a.lib;libcurl.lib", "curl", PHP_CURL) && 7 CHECK_HEADER_ADD_INCLUDE("curl/easy.h", "CFLAGS_CURL") && 8 SETUP_OPENSSL("curl", PHP_CURL) >= 2 && 9 CHECK_LIB("winmm.lib", "curl", PHP_CURL) && 10 CHECK_LIB("wldap32.lib", "curl", PHP_CURL) && 11 (((PHP_ZLIB=="no") && (CHECK_LIB("zlib_a.lib;zlib.lib", "curl", PHP_CURL))) || 12 (PHP_ZLIB_SHARED && CHECK_LIB("zlib.lib", "curl", PHP_CURL)) || (PHP_ZLIB == "yes" && (!PHP_ZLIB_SHARED))) && 13 (CHECK_LIB("normaliz.lib", "curl", PHP_CURL) && 14 CHECK_LIB("libssh2.lib", "curl", PHP_CURL) && 15 CHECK_LIB("nghttp2.lib", "curl", PHP_CURL)) 16 ) { 17 EXTENSION("curl", "interface.c multi.c share.c curl_file.c"); 18 AC_DEFINE('HAVE_CURL', 1, "Define to 1 if the PHP extension 'curl' is available."); 19 ADD_FLAG("CFLAGS_CURL", "/D CURL_STATICLIB /D PHP_CURL_EXPORTS=1"); 20 PHP_INSTALL_HEADERS("ext/curl", "php_curl.h"); 21 } else { 22 WARNING("curl not enabled; libraries and headers not found"); 23 } 24} 25