1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
|
From 6dc27f8815ebbcdc1ab3dd191e9f04b71535c5b5 Mon Sep 17 00:00:00 2001
From: Vladimir Pavljuchenkov <spiderx@spiderx.dp.ua>
Date: Fri, 1 Jan 2016 17:40:45 +0200
Subject: [PATCH] Correctly link against libtinfo
---
configure.ac | 2 ++
1 file changed, 2 insertions(+)
diff --git a/configure.ac b/configure.ac
index 894e2b4..6a722dd 100644
--- a/configure.ac
+++ b/configure.ac
@@ -67,6 +67,7 @@ AC_ARG_ENABLE(utf8, [ --enable-utf8 Enable ncurses library that handles wide
if test "$utf8" = "yes"; then
AC_CHECK_LIB([ncursesw], [mvaddwstr], [],
[AC_MSG_ERROR([*** Missing development libraries for ncursesw])])
+ AC_SEARCH_LIBS([stdscr], [tinfow], ,[AC_MSG_ERROR([Cannot find a library providing stdscr])])
have_ncurses="yes"
AC_CHECK_HEADERS([ncursesw/ncurses.h],[have_ncurses=yes], [], [
@@ -87,6 +88,7 @@ if test "$utf8" = "yes"; then
else
AC_CHECK_LIB([ncurses], [refresh], [],
[AC_MSG_ERROR([*** Missing development libraries for ncurses])])
+ AC_SEARCH_LIBS([stdscr], [tinfo], ,[AC_MSG_ERROR([Cannot find a library providing stdscr])])
have_ncurses="yes"
AC_CHECK_HEADERS([ncurses/ncurses.h],[have_ncurses=yes], [], [
--
2.7.0
|