From 80fd6a2346ecab7463dd714ed2b19509779f5144 Mon Sep 17 00:00:00 2001 From: Paul LeoNerd Evans Date: Thu, 8 Mar 2012 12:05:27 +0000 Subject: Optionally build against libncursesw if unibilium isn't present, before falling back on plain libncurses --- Makefile | 3 +++ 1 file changed, 3 insertions(+) (limited to 'Makefile') diff --git a/Makefile b/Makefile index c4e1d1f..007a4db 100644 --- a/Makefile +++ b/Makefile @@ -5,6 +5,9 @@ CFLAGS?= ifeq ($(shell pkg-config --atleast-version=0.1.0 unibilium && echo 1),1) CFLAGS +=$(shell pkg-config --cflags unibilium) -DHAVE_UNIBILIUM LDFLAGS+=$(shell pkg-config --libs unibilium) +else ifeq ($(shell pkg-config ncursesw && echo 1),1) + CFLAGS +=$(shell pkg-config --cflags ncursesw) + LDFLAGS+=$(shell pkg-config --libs ncursesw) else LDFLAGS+=-lncurses endif -- cgit v1.2.3-70-g09d2