aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorPaul LeoNerd Evans <leonerd@leonerd.org.uk>2014-03-04 14:04:11 +0000
committerPaul LeoNerd Evans <leonerd@leonerd.org.uk>2014-03-04 14:04:11 +0000
commit97e0e9cde26fd847f2dd434c2fd175cfce6b92ee (patch)
tree60e2c22c0d3c4172c96cb2cb58688e3d836335e5
parentd775d2a5ae008c17f4c78e9d55cb28569ae0e3fb (diff)
downloadtermo-97e0e9cde26fd847f2dd434c2fd175cfce6b92ee.tar.gz
termo-97e0e9cde26fd847f2dd434c2fd175cfce6b92ee.tar.xz
termo-97e0e9cde26fd847f2dd434c2fd175cfce6b92ee.zip
Try tinfo before ncursesw (partially from https://github.com/o11c/libtermkey/commit/c2dd8f247a2ef9bce5ce26bfb289369643f58e09) [thanks o11c]
-rw-r--r--Makefile3
1 files changed, 3 insertions, 0 deletions
diff --git a/Makefile b/Makefile
index 09089b5..410ed33 100644
--- a/Makefile
+++ b/Makefile
@@ -22,6 +22,9 @@ endif
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 tinfo && echo 1),1)
+ CFLAGS +=$(shell pkg-config --cflags tinfo)
+ LDFLAGS+=$(shell pkg-config --libs tinfo)
else ifeq ($(shell pkg-config ncursesw && echo 1),1)
CFLAGS +=$(shell pkg-config --cflags ncursesw)
LDFLAGS+=$(shell pkg-config --libs ncursesw)