From fd852e5896c506a501642b8cd6c5620bfa0cbd36 Mon Sep 17 00:00:00 2001 From: Jan Tojnar Date: Tue, 2 Jun 2020 11:11:00 +0200 Subject: [PATCH] Define HAVE_ZLIB for myslnd When building just the mysqlnd extension, HAVE_ZLIB might not be set, leading to a missing compression support. --- ext/mysqlnd/config9.m4 | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/ext/mysqlnd/config9.m4 b/ext/mysqlnd/config9.m4 index 5c01ed762f17d..4519354d41dda 100644 --- a/ext/mysqlnd/config9.m4 +++ b/ext/mysqlnd/config9.m4 @@ -24,7 +24,9 @@ if test "$PHP_MYSQLND" != "no" || test "$PHP_MYSQLND_ENABLED" = "yes"; then if test "$PHP_MYSQLND_COMPRESSION_SUPPORT" != "no"; then - PKG_CHECK_MODULES([ZLIB], [zlib]) + PKG_CHECK_MODULES([ZLIB], [zlib], [ + AC_DEFINE(HAVE_ZLIB, 1, "ZLIB support") + ]) PHP_EVAL_LIBLINE($ZLIB_LIBS, MYSQLND_SHARED_LIBADD) PHP_EVAL_INCLINE($ZLIB_CFLAGS) AC_DEFINE([MYSQLND_COMPRESSION_WANTED], 1, [Enable compressed protocol support])