From 6eacc236da6d134a33fbfa1ee1555cf2d3177f9e Mon Sep 17 00:00:00 2001 From: unknown <pem@mysql.com> Date: Mon, 21 Nov 2005 16:05:40 +0100 Subject: [PATCH] Check for zlib with a zzlibCompileFlags() function in config/ac-macros/zlib.m4. (Patch provided by serg) config/ac-macros/zlib.m4: Check for zlib with a zzlibCompileFlags() function. This makes it pick the bundled zlib if there's an old installed version (which wouldn't work). --- config/ac-macros/zlib.m4 | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/config/ac-macros/zlib.m4 b/config/ac-macros/zlib.m4 index 22cf9542cf..ec55f19b98 100644 --- a/config/ac-macros/zlib.m4 +++ b/config/ac-macros/zlib.m4 @@ -19,7 +19,7 @@ INCLUDES="$INCLUDES $ZLIB_INCLUDES" LIBS="$LIBS $ZLIB_LIBS" AC_CACHE_VAL([mysql_cv_compress], [AC_TRY_LINK([#include <zlib.h>], - [return compress(0, (unsigned long*) 0, "", 0);], + [return zlibCompileFlags();], [mysql_cv_compress="yes" AC_MSG_RESULT([ok])], [mysql_cv_compress="no"]) -- 2.30.9