diff options
author | unknown <konstantin@mysql.com> | 2004-11-04 21:26:36 +0300 |
---|---|---|
committer | unknown <konstantin@mysql.com> | 2004-11-04 21:26:36 +0300 |
commit | 7f3749c82ff55deb4f25626084b242ce6c2306e1 (patch) | |
tree | 143606925947cff5d45510f81b8297bdbcbf76f6 | |
parent | 890919b7f4aafa44acf1051fd30ec410c8411952 (diff) | |
download | mariadb-git-7f3749c82ff55deb4f25626084b242ce6c2306e1.tar.gz |
Fix for Bug#6408 "configure checking for custom zlib fails because
code check is wrong".
acinclude.m4:
Fix for Bug#6408 "configure checking for custom zlib fails because
code check is wrong".
AC_TRY_LINK needs something it can put into main() as its second argument.
Apparently everything worked before because gcc supports nested functions.
-rw-r--r-- | acinclude.m4 | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/acinclude.m4 b/acinclude.m4 index 7f25b447f10..671e279a9f3 100644 --- a/acinclude.m4 +++ b/acinclude.m4 @@ -208,7 +208,7 @@ INCLUDES="$INCLUDES $ZLIB_INCLUDES" LIBS="$LIBS $ZLIB_LIBS" AC_CACHE_VAL([mysql_cv_compress], [AC_TRY_LINK([#include <zlib.h>], - [int link_test() { return compress(0, (unsigned long*) 0, "", 0); }], + [return compress(0, (unsigned long*) 0, "", 0);], [mysql_cv_compress="yes" AC_MSG_RESULT([ok])], [mysql_cv_compress="no"]) |