diff options
author | monty@donna.mysql.com <> | 2000-08-31 17:25:30 +0300 |
---|---|---|
committer | monty@donna.mysql.com <> | 2000-08-31 17:25:30 +0300 |
commit | 91033f872c82ade18f6e44f88628f8712fe65892 (patch) | |
tree | 20cdc22382843d7f3d6ac921a4a5b15104a081e9 /acinclude.m4 | |
parent | b637e10db70098c24858d3b8e698441a1639fe16 (diff) | |
download | mariadb-git-91033f872c82ade18f6e44f88628f8712fe65892.tar.gz |
Update to get 3.23.23 to compile
Diffstat (limited to 'acinclude.m4')
-rw-r--r-- | acinclude.m4 | 19 |
1 files changed, 19 insertions, 0 deletions
diff --git a/acinclude.m4 b/acinclude.m4 index 4ed69bda027..a5fa77b24cc 100644 --- a/acinclude.m4 +++ b/acinclude.m4 @@ -116,6 +116,25 @@ then fi ]) +AC_DEFUN(MYSQL_CHECK_ZLIB_WITH_COMPRESS, [ +save_LIBS="$LIBS" +LIBS="-l$1 $LIBS" +AC_CACHE_CHECK([if libz with compress], mysql_cv_compress, +[AC_TRY_LINK([#include <zlib.h> +#ifdef __cplusplus +extern "C" +#endif +], +[ return compress(0, (unsigned long*) 0, "", 0); +], mysql_cv_compress=yes, mysql_cv_compress=no)]) +if test "$mysql_cv_compress" = "yes" +then + AC_DEFINE(HAVE_COMPRESS) +else + LIBS="$save_LIBS" +fi +]) + #---START: Used in for client configure AC_DEFUN(MYSQL_CHECK_ULONG, [AC_MSG_CHECKING(for type ulong) |