[git commit master 1/1] config: detect ncursesw

Bernhard Reutner-Fischer rep.dot.nop at gmail.com
Sun Nov 21 00:23:16 UTC 2010


commit: http://git.uclibc.org/uClibc++/commit/?id=e5576e9589749ca473ac825a7b48be90a0df2230
branch: http://git.uclibc.org/uClibc++/commit/?id=refs/heads/master

Signed-off-by: Bernhard Reutner-Fischer <rep.dot.nop at gmail.com>
---
 extra/config/Makefile |    5 +++++
 1 files changed, 5 insertions(+), 0 deletions(-)

diff --git a/extra/config/Makefile b/extra/config/Makefile
index 822a483..d642f2d 100644
--- a/extra/config/Makefile
+++ b/extra/config/Makefile
@@ -22,6 +22,10 @@ include $(TOPDIR)Rules.mak
 all: ncurses conf mconf
 
 LIBS = -lncurses
+ifeq (/usr/include/ncursesw/ncurses.h, $(wildcard /usr/include/ncursesw/ncurses.h))
+	HOSTNCURSES += -I/usr/include/ncursesw -DCURSES_LOC="<ncurses.h>"
+	LIBS = -lncursesw
+else
 ifeq (/usr/include/ncurses/ncurses.h, $(wildcard /usr/include/ncurses/ncurses.h))
 	HOSTNCURSES += -I/usr/include/ncurses -DCURSES_LOC="<ncurses.h>"
 else
@@ -43,6 +47,7 @@ endif
 endif
 endif
 endif
+endif
 
 CONF_SRC  =conf.c
 MCONF_SRC =mconf.c checklist.c menubox.c textbox.c yesno.c inputbox.c util.c msgbox.c
-- 
1.7.2.2



More information about the uClibc-cvs mailing list