Skip to content
Snippets Groups Projects
Commit 804c829c authored by deuce's avatar deuce
Browse files

Use pkg-config for ncursesw if possible.

Note, Debian still hates you.
parent dd8aa432
No related branches found
No related tags found
No related merge requests found
...@@ -25,13 +25,18 @@ ifeq ($(os),win32) ...@@ -25,13 +25,18 @@ ifeq ($(os),win32)
endif endif
ifneq ($(os),win32) ifneq ($(os),win32)
ifdef USE_SYSTEM_CURSES ifeq ($(shell pkg-config ncursesw --exists && echo YES), YES)
CIOLIB-MT_LIBS += $(UL_PRE)curses$(UL_SUF) CIOLIB-MT_LIBS += `pkg-config ncursesw --libs`
CIOLIB-MT_CFLAGS += `pkg-config ncursesw --cflags`
else else
ifeq ($(os),darwin) ifdef USE_SYSTEM_CURSES
CIOLIB-MT_LIBS += $(UL_PRE)ncurses$(UL_SUF) $(UL_PRE)tinfow$(UL_SUF) CIOLIB-MT_LIBS += $(UL_PRE)curses$(UL_SUF)
else else
CIOLIB-MT_LIBS += $(UL_PRE)ncursesw$(UL_SUF) $(UL_PRE)tinfow$(UL_SUF) ifeq ($(os),darwin)
CIOLIB-MT_LIBS += $(UL_PRE)ncurses$(UL_SUF)
else
CIOLIB-MT_LIBS += $(UL_PRE)ncursesw$(UL_SUF)
endif
endif endif
endif endif
ifndef NO_X ifndef NO_X
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment