From 18dae5d87999d4e8fff4c0ee19b54a0b24ac61bb Mon Sep 17 00:00:00 2001 From: Karel Zak Date: Wed, 8 Jun 2016 12:03:15 +0200 Subject: build-sys: clean up relation between ncurses[w] and wide-char support * error if wide-char enabled/supported, but (non-wide) ncurses explicitly requested * disable ncurses at all if widechar enabled/supported, but ncursesw not found Reported-by: Stanislav Brabec Signed-off-by: Karel Zak --- configure.ac | 9 +++++++++ 1 file changed, 9 insertions(+) (limited to 'configure.ac') diff --git a/configure.ac b/configure.ac index 1844bdaee..c09a95c39 100644 --- a/configure.ac +++ b/configure.ac @@ -792,6 +792,14 @@ AC_ARG_WITH([ncurses], [], [with_ncurses=auto] ) have_ncurses=no + +AS_CASE([$with_ncurses:$build_widechar], + [yes:yes], [AC_MSG_ERROR([wide-char support enabled, but non-wide ncurses selects])]) + +AS_CASE([$have_ncursesw:$with_ncurses:$build_widechar], + [no:auto:yes],[AC_MSG_WARN( [wide-char support enabled, ncursesw not found, force --without-ncurses]) + with_ncurses=no]) + AS_IF([test "x$have_ncursesw" = xno -a "x$with_ncurses" != xno ], [ PKG_CHECK_MODULES(NCURSES, [ncurses], [ have_ncurses=yes @@ -2196,6 +2204,7 @@ AC_MSG_RESULT([ Bash completions: ${with_bashcompletiondir} Systemd support: ${have_systemd} Btrfs support: ${have_btrfs} + Wide-char support: ${build_widechar} warnings: -- cgit v1.2.3-55-g7522