summaryrefslogtreecommitdiff
path: root/source3/wscript_configure_system_ncurses
blob: e7596be64e3b72141173ebe361bdee2f8e577adf (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
import Logs, Options, sys

Logs.info("Looking for ncurses features")

conf.find_program('ncurses5-config', var='NCURSES_CONFIG')
if not conf.env.NCURSES_CONFIG:
    conf.find_program('ncurses6-config', var='NCURSES_CONFIG')

if conf.env.NCURSES_CONFIG:
    conf.check_cfg(path=conf.env.NCURSES_CONFIG, args="--cflags --libs",
               package="", uselib_store="NCURSES")
    conf.env.build_regedit = True

conf.CHECK_HEADERS('ncurses.h menu.h panel.h form.h', lib='ncurses')

conf.CHECK_FUNCS_IN('initscr', 'ncurses')
conf.CHECK_FUNCS_IN('set_menu_items item_count', 'menu')
conf.CHECK_FUNCS_IN('new_panel show_panel', 'panel')
conf.CHECK_FUNCS_IN('new_field new_form', 'form')