X-Git-Url: https://git.m6w6.name/?p=m6w6%2Fext-http;a=blobdiff_plain;f=config.w32;h=a537fb95f45c00431e4900d67694772abd3e2ee1;hp=f6cf48977166f059ce230a7266604830472120cb;hb=c71fd3a3bcc7231f2efc4c7520888880f42a6b3c;hpb=f2f3d343bf1e1c1270eb6db5487ff0bbf086b900 diff --git a/config.w32 b/config.w32 index f6cf489..a537fb9 100644 --- a/config.w32 +++ b/config.w32 @@ -38,8 +38,10 @@ if (PHP_HTTP != "no") { WARNING("curl convenience functions not enabled; libraries and headers not found"); } + MAGIC_LIB = PHP_DEBUG != "no" ? "libmagic-staticd.lib":"libmagic-static.lib"; + if (CHECK_HEADER_ADD_INCLUDE("magic.h", "CFLAGS_HTTP") && - CHECK_LIB("magic.lib", "http", PHP_HTTP)) { + CHECK_LIB(MAGIC_LIB, "http", PHP_HTTP)) { AC_DEFINE("HTTP_HAVE_MAGIC", 1, "Have magic library"); } else { WARNING("content type guessing not enabled; libraries and headers not found");