diff options
author | Andrew Tridgell <tridge@samba.org> | 2006-09-07 08:34:12 +0000 |
---|---|---|
committer | Gerald (Jerry) Carter <jerry@samba.org> | 2007-10-10 14:17:49 -0500 |
commit | b04fac4ed3cea2bdc0d0888713c20e0cc1c9d5b1 (patch) | |
tree | 83ff9439590b0d3833bf6935a3067562ac484179 /source4/lib/smbreadline/readline.m4 | |
parent | ead21647a248b250876ce7d2133bd4a1fe2b2d57 (diff) | |
download | samba-b04fac4ed3cea2bdc0d0888713c20e0cc1c9d5b1.tar.gz samba-b04fac4ed3cea2bdc0d0888713c20e0cc1c9d5b1.tar.bz2 samba-b04fac4ed3cea2bdc0d0888713c20e0cc1c9d5b1.zip |
r18208: Mac OS X also doesn't have history_list()
must be a pretty old readline lib!
(This used to be commit ba901e6820c02bc696c0bd3e9e0788801fd0795b)
Diffstat (limited to 'source4/lib/smbreadline/readline.m4')
-rw-r--r-- | source4/lib/smbreadline/readline.m4 | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/source4/lib/smbreadline/readline.m4 b/source4/lib/smbreadline/readline.m4 index 4eebd13b5a..29f7ac6e1a 100644 --- a/source4/lib/smbreadline/readline.m4 +++ b/source4/lib/smbreadline/readline.m4 @@ -68,8 +68,12 @@ AC_CHECK_LIB(readline, rl_completion_matches, [], [$TERMLIBS]) -# not all readline libs have rl_event_hook +# not all readline libs have rl_event_hook or history_list AC_CHECK_DECLS(rl_event_hook, [], [], [#include <readline/readline.h>]) +AC_CHECK_LIB(readline, history_list, + [AC_DEFINE(HAVE_HISTORY_LIST, 1, [Do we have history_list?])], + [], + [$TERMLIBS]) AC_MSG_CHECKING(whether to use extern readline) if test x"$EXTERNAL_READLINE" = x"yes"; then |