diff options
author | Greg Beaver <cellog@php.net> | 2005-12-05 01:07:02 +0000 |
---|---|---|
committer | Greg Beaver <cellog@php.net> | 2005-12-05 01:07:02 +0000 |
commit | 852eec498f5faabed6abc6118d84ac489fe1fd99 (patch) | |
tree | 66d4fee7a5b1472dcdd52d3859fe86e48eac01ad /ext/phar/config.w32 | |
parent | 89199c43b208b9597b15404cce866b7ef04c2a16 (diff) | |
download | php-git-852eec498f5faabed6abc6118d84ac489fe1fd99.tar.gz |
add ability to detect zlib library when zlib ext is disabled
Diffstat (limited to 'ext/phar/config.w32')
-rw-r--r-- | ext/phar/config.w32 | 12 |
1 files changed, 11 insertions, 1 deletions
diff --git a/ext/phar/config.w32 b/ext/phar/config.w32 index 15281e419b..f6fa461c46 100644 --- a/ext/phar/config.w32 +++ b/ext/phar/config.w32 @@ -4,6 +4,16 @@ ARG_ENABLE("phar", "enable phar support", "no"); if (PHP_PHAR != "no") { - EXTENSION("phar", "phar.c"); + if (PHP_ZLIB != "no") { + EXTENSION("phar", "phar.c"); + } else { + EXTENSION("phar", "phar.c", null, "/D ZLIB_EXPORTS"); + AC_DEFINE("HAVE_PHAR_ZLIB", 1, "ZLIB support in phar"); + CHECK_LIB("zlib.lib", "zlib", PHP_ZLIB); + CHECK_HEADER_ADD_INCLUDE("zlib.h", "CFLAGS", "..\\zlib;" + php_usual_include_suspects); + if (!PHP_ZLIB_SHARED) { + ADD_DEF_FILE("ext\\zlib\\php_zlib.def"); + } + } } |