- add HttpResponse::guessContentType() through libmagic
[m6w6/ext-http] / config.w32
index 80762b2a5fe0743f01b4fa64e73a0b05823f02f9..f6cf48977166f059ce230a7266604830472120cb 100644 (file)
@@ -37,4 +37,11 @@ if (PHP_HTTP != "no") {
     } else {
         WARNING("curl convenience functions not enabled; libraries and headers not found");
     }
+    
+    if (CHECK_HEADER_ADD_INCLUDE("magic.h", "CFLAGS_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");
+       }
 }