diff options
author | Krzysztof Mazur <krzysiek@podlesie.net> | 2012-10-08 12:18:22 -0400 |
---|---|---|
committer | Michal Marek <mmarek@suse.cz> | 2012-11-20 04:52:36 -0500 |
commit | 7d5bb966290d71d9dfe69a3ed0c31b26bf9afc63 (patch) | |
tree | 05951086d10943fa183f72805429b633a7ace95a /scripts | |
parent | ddffeb8c4d0331609ef2581d84de4d763607bd37 (diff) |
menuconfig: fix extended colors ncurses support
The ncurses library allows for extended colors. The support for extended
colors support depends on wide-character support. ncurses headers
enable extended colors (NCURSES_EXT_COLORS) only when wide-character
support is enabled (NCURSES_WIDECHAR).
The "make menuconfig" uses wide-character ncursesw library, which can be
compiled with wide-character support, but does not define NCURSES_WIDECHAR
and it's using headers without wide-character (and extended colors) support.
This fixes problems with colors on systems with enabled extended colors
(like PLD Linux). Without this patch "make menuconfig" is hard to use.
Signed-off-by: Krzysztof Mazur <krzysiek@podlesie.net>
Signed-off-by: Michal Marek <mmarek@suse.cz>
Diffstat (limited to 'scripts')
-rw-r--r-- | scripts/kconfig/lxdialog/check-lxdialog.sh | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/scripts/kconfig/lxdialog/check-lxdialog.sh b/scripts/kconfig/lxdialog/check-lxdialog.sh index c8e8a7154753..80788137c670 100644 --- a/scripts/kconfig/lxdialog/check-lxdialog.sh +++ b/scripts/kconfig/lxdialog/check-lxdialog.sh | |||
@@ -21,6 +21,7 @@ ccflags() | |||
21 | { | 21 | { |
22 | if [ -f /usr/include/ncursesw/curses.h ]; then | 22 | if [ -f /usr/include/ncursesw/curses.h ]; then |
23 | echo '-I/usr/include/ncursesw -DCURSES_LOC="<ncursesw/curses.h>"' | 23 | echo '-I/usr/include/ncursesw -DCURSES_LOC="<ncursesw/curses.h>"' |
24 | echo ' -DNCURSES_WIDECHAR=1' | ||
24 | elif [ -f /usr/include/ncurses/ncurses.h ]; then | 25 | elif [ -f /usr/include/ncurses/ncurses.h ]; then |
25 | echo '-I/usr/include/ncurses -DCURSES_LOC="<ncurses.h>"' | 26 | echo '-I/usr/include/ncurses -DCURSES_LOC="<ncurses.h>"' |
26 | elif [ -f /usr/include/ncurses/curses.h ]; then | 27 | elif [ -f /usr/include/ncurses/curses.h ]; then |