mirror of
https://github.com/php/php-src.git
synced 2024-11-24 18:34:21 +08:00
b915d68852
change for Windows (which have libzip 1.4 by default) update NEWS
23 lines
962 B
JavaScript
23 lines
962 B
JavaScript
// vim:ft=javascript
|
|
|
|
ARG_ENABLE("zip", "ZIP support", "yes");
|
|
|
|
if (PHP_ZIP != "no") {
|
|
if (CHECK_HEADER_ADD_INCLUDE("zip.h", "CFLAGS_ZIP", PHP_PHP_BUILD + "\\include;" + PHP_EXTRA_INCLUDES) &&
|
|
CHECK_HEADER_ADD_INCLUDE("zipconf.h", "CFLAGS_ZIP", PHP_PHP_BUILD + "\\lib\\libzip\\include;" + PHP_EXTRA_LIBS + "\\libzip\\include;" + PHP_ZIP) &&
|
|
(PHP_ZIP_SHARED && CHECK_LIB("libzip.lib", "zip", PHP_ZIP) || CHECK_LIB("libzip_a.lib", "zip", PHP_ZIP) && CHECK_LIB("libbz2_a.lib", "zip", PHP_ZIP) && CHECK_LIB("zlib_a.lib", "zip", PHP_ZIP))
|
|
) {
|
|
EXTENSION('zip', 'php_zip.c zip_stream.c');
|
|
|
|
if (get_define("LIBS_ZIP").match("libzip_a(?:_debug)?\.lib")) {
|
|
/* Using static dependency lib. */
|
|
AC_DEFINE("ZIP_STATIC", 1);
|
|
}
|
|
|
|
AC_DEFINE('HAVE_ZIP', 1);
|
|
ADD_FLAG("CFLAGS_ZIP", "/D _WIN32 /D HAVE_SET_MTIME /D HAVE_ENCRYPTION /D HAVE_LIBZIP_VERSION /D HAVE_PROGRESS_CALLBACK");
|
|
} else {
|
|
WARNING("zip not enabled; libraries and headers not found");
|
|
}
|
|
}
|