summaryrefslogtreecommitdiff
path: root/source4/lib/smbreadline/wscript_configure
blob: 76273ddc237355fd69aec2ca6da33ab6e0acb960 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
#!/usr/bin/env python


conf.CHECK_HEADERS('readline.h history.h readline/readline.h readline/history.h')
for termlib in ['ncurses', 'curses', 'termcap', 'terminfo', 'termlib', 'tinfo']:
    if conf.CHECK_FUNCS_IN('tgetent', termlib):
        conf.env['READLINE_TERMLIB'] = termlib
        break

if conf.CHECK_FUNCS_IN('rl_completion_matches', 'readline'):
    conf.DEFINE('HAVE_NEW_LIBREADLINE', 1)

if conf.CHECK_FUNCS_IN('rl_event_hook', 'readline'):
    conf.DEFINE('HAVE_HISTORY_LIST', 1)