X-Git-Url: https://git.m6w6.name/?p=m6w6%2Fext-http;a=blobdiff_plain;f=config.w32;h=a53455ee5ca019956006f8aa3f3655db6c64eaf8;hp=af89ae71b32489b3c69d95d387f03fab68907deb;hb=0acbfc76b5a3e4122a6d06d64bd834a810806656;hpb=1ad65c598ee022aa7b31bb0884fe15b3dcd454d3 diff --git a/config.w32 b/config.w32 index af89ae7..a53455e 100644 --- a/config.w32 +++ b/config.w32 @@ -31,21 +31,19 @@ if (PHP_HTTP != "no") { } if (PHP_HASH != "no") { - if (glob(configure_module_dirname +"\\..\\hash\\php_hash_sha.h").length) { - ADD_FLAG("CFLAGS_HTTP", "/I"+ configure_module_dirname +"\\..\\hash"); - AC_DEFINE("HTTP_HAVE_HASH_EXT_INCLUDES", 1, ""); + var f; + STDOUT.Write("Checking for ext/hash ... "); + if (glob((f = configure_module_dirname +"\\..\\hash") +"\\php_hash.h").length || + glob((f = configure_module_dirname +"\\..\\..\\..\\pecl\\hash") +"\\php_hash.h").length) { + ADD_FLAG("CFLAGS_HTTP", "/I"+ f); + AC_DEFINE("HTTP_HAVE_EXT_HASH", 1, ""); + ADD_EXTENSION_DEP("http", "hash", true); + STDOUT.WriteLine(condense_path(f)); + } else { + STDOUT.WriteLine(""); } } - MHASH_LIB = PHP_DEBUG != "no" ? "libmhash-staticd.lib":"libmhash-static.lib"; - if (CHECK_HEADER_ADD_INCLUDE('mhash.h', 'CFLAGS_HTTP') && - (CHECK_LIB(MHASH_LIB, 'http', PHP_HTTP) || - CHECK_LIB('libmhash.lib', 'http', PHP_HTTP))) { - AC_DEFINE('HTTP_HAVE_MHASH', 1 , "Have mhash library"); - } else { - WARNING("mhash etag generator not enabled; libraries and headers not found"); - } - CURL_LIB = PHP_DEBUG != "no" ? "libcurld.lib":"libcurl.lib"; if (CHECK_HEADER_ADD_INCLUDE("curl/curl.h", "CFLAGS_HTTP") && CHECK_HEADER_ADD_INCLUDE("openssl/crypto.h", "CFLAGS_HTTP") &&