mirror of
https://github.com/MariaDB/server.git
synced 2026-05-16 20:07:13 +02:00
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
This commit is contained in:
commit
220bbe82b5
3 changed files with 20 additions and 4 deletions
|
|
@ -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"])
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue