]> granicus.if.org Git - neomutt/commitdiff
Define NCURSES_WIDECHAR to require wide-char support from ncurses (#908)
authorPietro Cerutti <gahr@gahr.ch>
Mon, 6 Nov 2017 12:32:52 +0000 (12:32 +0000)
committerGitHub <noreply@github.com>
Mon, 6 Nov 2017 12:32:52 +0000 (12:32 +0000)
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
configure.ac

index 17fda241b87a9aeef580bfe319bd14447a8f3483..31df97649fbb4355c6d2af5a45f8f5db5370b089 100644 (file)
--- 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] {
index 2bf28c57cb573fb9d7792c88843e0389763e159a..c59dc517a6b35453c91c878d5bc34fe388934896 100644 (file)
@@ -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