summaryrefslogtreecommitdiff
path: root/config
diff options
context:
space:
mode:
authorkent@mysql.com/kent-amd64.(none) <>2007-04-05 08:36:56 +0200
committerkent@mysql.com/kent-amd64.(none) <>2007-04-05 08:36:56 +0200
commit463b34e77b187a4d6f725076de6713b7d49a9e5e (patch)
tree5b98b7f8f3662385f01aa7a655d3a8416058cc74 /config
parent6249bb34a4c55bc485118569a09c106e16373d52 (diff)
downloadmariadb-git-463b34e77b187a4d6f725076de6713b7d49a9e5e.tar.gz
zlib.m4:
Only require the more recent zlibCompileFlags() when building the server, client zlib don't need it. Makefile.am: Always build the bundled zlib static only configure.in: Look for dlopen() even if --with-mysqld-ldflags constains "-static", as this is not the same as the flag to "ld", it just informs "libtool" to link static with libraries created part of the build, even if there exists shared versions. make_binary_distribution.sh: Real "mysqlmanager" executable might be in ".libs"
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 a01d13937ff..74de715e424 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"])