1
0
mirror of https://git.FreeBSD.org/ports.git synced 2025-02-04 11:23:46 +00:00

Avoid including zlib extension if not requested.

This commit is contained in:
Alex Dupre 2010-08-26 11:26:40 +00:00
parent dd1a08de3f
commit d6b855d7d7
Notes: svn2git 2021-03-31 03:12:20 +00:00
svn path=/head/; revision=260008
2 changed files with 22 additions and 0 deletions

View File

@ -0,0 +1,11 @@
--- ext/zlib/config0.m4.orig 2010-08-26 13:19:52.000000000 +0200
+++ ext/zlib/config0.m4 2010-08-26 13:20:11.000000000 +0200
@@ -8,7 +8,7 @@
PHP_ARG_WITH(zlib-dir,if the location of ZLIB install directory is defined,
[ --with-zlib-dir=<DIR> Define the location of zlib install directory], no, no)
-if test "$PHP_ZLIB" != "no" || test "$PHP_ZLIB_DIR" != "no"; then
+if test "$PHP_ZLIB" != "no"; then
PHP_NEW_EXTENSION(zlib, zlib.c zlib_fopen_wrapper.c zlib_filter.c, $ext_shared)
PHP_SUBST(ZLIB_SHARED_LIBADD)

View File

@ -0,0 +1,11 @@
--- ext/zlib/config0.m4.orig 2010-08-26 13:19:52.000000000 +0200
+++ ext/zlib/config0.m4 2010-08-26 13:20:11.000000000 +0200
@@ -8,7 +8,7 @@
PHP_ARG_WITH(zlib-dir,if the location of ZLIB install directory is defined,
[ --with-zlib-dir=<DIR> Define the location of zlib install directory], no, no)
-if test "$PHP_ZLIB" != "no" || test "$PHP_ZLIB_DIR" != "no"; then
+if test "$PHP_ZLIB" != "no"; then
PHP_NEW_EXTENSION(zlib, zlib.c zlib_fopen_wrapper.c zlib_filter.c, $ext_shared)
PHP_SUBST(ZLIB_SHARED_LIBADD)