1
0
mirror of https://github.com/samba-team/samba.git synced 2024-12-24 21:34:56 +03:00
samba-mirror/source3/wscript_configure_system_ncurses
C. Davis bdc40f909f regedit: Link to ncurses form library
Reviewed-by: Andreas Schneider <asn@samba.org>
Reviewed-by: Michael Adam <obnox@samba.org>
2013-04-29 13:06:01 +02:00

25 lines
910 B
Plaintext

import Logs, Options, sys
Logs.info("Looking for ncurses features")
if isinstance(Options.options.with_regedit, list):
path_ncurses_config = [x+'/bin' for x in Options.options.with_regedit]
else:
path_ncurses_config = None
conf.find_program('ncurses5-config', path_list=path_ncurses_config, var='NCURSES_CONFIG')
if not conf.env.NCURSES_CONFIG:
conf.find_program('ncurses6-config', path_list=path_ncurses_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')