From a22322b7cf6efc5050f4c1312291aa33e8504323 Mon Sep 17 00:00:00 2001 From: Pietro Cerutti Date: Mon, 6 Nov 2017 12:32:52 +0000 Subject: [PATCH] Define NCURSES_WIDECHAR to require wide-char support from ncurses (#908) See https://lists.gnu.org/archive/html/qemu-devel/2017-06/msg00634.html for a discussion. This might be a solution for #589. --- auto.def | 1 + configure.ac | 1 + 2 files changed, 2 insertions(+) diff --git a/auto.def b/auto.def index 17fda241b..31df97649 100644 --- a/auto.def +++ b/auto.def @@ -460,6 +460,7 @@ if {[get-define want-fmemopen]} { # Ncurses / S-Lang switch [opt-val with-ui ncurses] { ncurses { + define-append CFLAGS -DNCURSES_WIDECHAR # Locate the library defining waddnwstr() set ncurses_prefix [opt-val with-ncurses $prefix] cc-with [list -libs -L$ncurses_prefix/lib] { diff --git a/configure.ac b/configure.ac index 2bf28c57c..c59dc517a 100644 --- a/configure.ac +++ b/configure.ac @@ -409,6 +409,7 @@ dnl --- ncurses MUTT_LIB_OBJECTS="$MUTT_LIB_OBJECTS resize.o" fi AC_CHECK_FUNCS([use_extended_names]) + CPPFLAGS="$CPPFLAGS -DNCURSES_WIDECHAR" fi AC_HEADER_STDC -- 2.49.0