summaryrefslogtreecommitdiff
path: root/config
diff options
context:
space:
mode:
authorunknown <kent@kent-amd64.(none)>2007-04-05 08:42:32 +0200
committerunknown <kent@kent-amd64.(none)>2007-04-05 08:42:32 +0200
commit220bbe82b56305aad44083ad11f240a6d43a0fc8 (patch)
treec366bc5dfa72c8aad36fc5968a46858036ea66dd /config
parent1acb0affa1925c01a5eae46136583fe58a6e1b26 (diff)
parent60289fba0ba697e2bbab6136e7840216bea0633d (diff)
downloadmariadb-git-220bbe82b56305aad44083ad11f240a6d43a0fc8.tar.gz
Merge mysql.com:/home/kent/bk/sotest/mysql-5.0-build
into mysql.com:/home/kent/bk/sotest/mysql-5.1-build BitKeeper/deleted/.del-SETUP.sh.rej: Auto merged BitKeeper/deleted/.del-configure.in.rej: Auto merged BitKeeper/deleted/.del-my_global.h.rej: Auto merged BitKeeper/deleted/.del-my_pthread.h.rej: Auto merged BitKeeper/deleted/.del-thr_alarm.c.rej: Auto merged config/ac-macros/zlib.m4: Auto merged configure.in: Auto merged zlib/Makefile.am: Auto merged scripts/make_binary_distribution.sh: SCCS merged
Diffstat (limited to 'config')
-rw-r--r--config/ac-macros/zlib.m413
1 files changed, 11 insertions, 2 deletions
diff --git a/config/ac-macros/zlib.m4 b/config/ac-macros/zlib.m4
index 17b951d4723..75c9d3f524e 100644
--- a/config/ac-macros/zlib.m4
+++ b/config/ac-macros/zlib.m4
@@ -10,16 +10,25 @@ AC_SUBST([zlib_dir])
mysql_cv_compress="yes"
])
-dnl Auxiliary macro to check for zlib at given path
+dnl Auxiliary macro to check for zlib at given path.
+dnl We are strict with the server, as "archive" engine
+dnl needs zlibCompileFlags(), but for client only we
+dnl are less strict, and take the zlib we find.
AC_DEFUN([MYSQL_CHECK_ZLIB_DIR], [
save_CPPFLAGS="$CPPFLAGS"
save_LIBS="$LIBS"
CPPFLAGS="$ZLIB_INCLUDES $CPPFLAGS"
LIBS="$LIBS $ZLIB_LIBS"
+if test X"$with_server" = Xno
+then
+ zlibsym=zlibVersion
+else
+ zlibsym=zlibCompileFlags
+fi
AC_CACHE_VAL([mysql_cv_compress],
[AC_TRY_LINK([#include <zlib.h>],
- [return zlibCompileFlags();],
+ [return $zlibsym();],
[mysql_cv_compress="yes"
AC_MSG_RESULT([ok])],
[mysql_cv_compress="no"])