diff options
author | vva@eagle.mysql.r18.ru <> | 2004-08-24 19:23:23 +0500 |
---|---|---|
committer | vva@eagle.mysql.r18.ru <> | 2004-08-24 19:23:23 +0500 |
commit | f6a3f2cfad74c208f0249bd15c4eb2a7c7e4039d (patch) | |
tree | 9448cab63e74b61a56dbd133d3ef099a5244f068 /acinclude.m4 | |
parent | f0fffbe21b6ab3fb9303acaad99872e3844ddef5 (diff) | |
download | mariadb-git-f6a3f2cfad74c208f0249bd15c4eb2a7c7e4039d.tar.gz |
fixed :
Bug #3937 fails to compile with both gcc 3.3.3/icc8
Bug #4728 mysql couldn't be compiled using system readline (readline-4.3)
Diffstat (limited to 'acinclude.m4')
-rw-r--r-- | acinclude.m4 | 23 |
1 files changed, 23 insertions, 0 deletions
diff --git a/acinclude.m4 b/acinclude.m4 index 11f5d07200a..5007b1e3efb 100644 --- a/acinclude.m4 +++ b/acinclude.m4 @@ -1,10 +1,32 @@ # Local macros for automake & autoconf + +AC_DEFUN(MYSQL_CHECK_READLINE_DECLARES_HIST_ENTRY,[ + AC_CACHE_CHECK([HIST_ENTRY is declared in readline/readline.h], mysql_cv_hist_entry_declared, + AC_TRY_COMPILE( + [ + #include "stdio.h" + #undef __P // readline-4.2 declares own __P + #include "readline/readline.h" + ], + [ + HIST_ENTRY entry; + ], + [ + mysql_cv_hist_entry_declared=yes + AC_DEFINE_UNQUOTED(HAVE_HIST_ENTRY) + ], + [mysql_cv_libedit_interface=no] + ) + ) +]) + AC_DEFUN(MYSQL_CHECK_LIBEDIT_INTERFACE,[ AC_CACHE_CHECK([libedit variant of rl_completion_entry_function], mysql_cv_libedit_interface, AC_TRY_COMPILE( [ #include "stdio.h" + #undef __P // readline-4.2 declares own __P #include "readline/readline.h" ], [ @@ -26,6 +48,7 @@ AC_DEFUN(MYSQL_CHECK_NEW_RL_INTERFACE,[ AC_TRY_COMPILE( [ #include "stdio.h" + #undef __P // readline-4.2 declares own __P #include "readline/readline.h" ], [ |