From c41a12f8ba75f0d3fce336ee1f779391782413db Mon Sep 17 00:00:00 2001 From: "Timur I. Bakeyev" Date: Sun, 7 Jun 2009 12:00:22 +0000 Subject: rl_event_hook detection This patch is relevant for Samba4 source mostly. The way, how readline compiled under FreeBSD makes it require stdio.h to get all the necessary declarations. Without this addition rl_event_hook is not properly detected. With regards, Timur Bakeyev. Signed-off-by: Stefan Metzmacher --- source4/lib/smbreadline/readline.m4 | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) (limited to 'source4') diff --git a/source4/lib/smbreadline/readline.m4 b/source4/lib/smbreadline/readline.m4 index 86e2fb19d6..df154409ad 100644 --- a/source4/lib/smbreadline/readline.m4 +++ b/source4/lib/smbreadline/readline.m4 @@ -69,7 +69,10 @@ AC_CHECK_LIB(readline, rl_completion_matches, [$TERMLIBS]) # not all readline libs have rl_event_hook or history_list -AC_CHECK_DECLS(rl_event_hook, [], [], [#include ]) +AC_CHECK_DECLS(rl_event_hook, [], [], [ + #include + #include +]) AC_CHECK_LIB(readline, history_list, [AC_DEFINE(HAVE_HISTORY_LIST, 1, [Do we have history_list?])], [], -- cgit