summaryrefslogtreecommitdiff
path: root/source3/wscript_configure_system_ncurses
diff options
context:
space:
mode:
authorMichael Adam <obnox@samba.org>2013-05-06 14:14:02 +0200
committerKai Blin <kai@samba.org>2013-05-06 18:24:58 +0200
commit431eeef9311a8e172dc782bc91492c94cc5fcde7 (patch)
tree5d5a2fef9ff979261120f8ddbe6d90a3ef2aa611 /source3/wscript_configure_system_ncurses
parent356b825838cd97cc43aaa4b108267d1bd5f16ca1 (diff)
downloadsamba-431eeef9311a8e172dc782bc91492c94cc5fcde7.tar.gz
samba-431eeef9311a8e172dc782bc91492c94cc5fcde7.tar.bz2
samba-431eeef9311a8e172dc782bc91492c94cc5fcde7.zip
build: fix --with-regedit to properly honour the yes/no/auto scheme
I.e. fail configure when ncurses support is not found but regedit build was requested. Signed-off-by: Michael Adam <obnox@samba.org> Reviewed-by: Kai Blin <kai@samba.org>
Diffstat (limited to 'source3/wscript_configure_system_ncurses')
-rw-r--r--source3/wscript_configure_system_ncurses9
1 files changed, 8 insertions, 1 deletions
diff --git a/source3/wscript_configure_system_ncurses b/source3/wscript_configure_system_ncurses
index e7596be64e..5c804291ce 100644
--- a/source3/wscript_configure_system_ncurses
+++ b/source3/wscript_configure_system_ncurses
@@ -9,7 +9,6 @@ if not conf.env.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')
@@ -17,3 +16,11 @@ 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')
+
+if conf.CONFIG_SET('HAVE_NCURSES_H') and \
+ conf.CONFIG_SET('HAVE_MENU_H') and \
+ conf.CONFIG_SET('HAVE_PANEL_H') and \
+ conf.CONFIG_SET('HAVE_FORM_H'):
+ conf.DEFINE('HAVE_NCURSES', '1')
+else:
+ conf.undefine('HAVE_NCURSES')