Mercurial > ~mikael > mcabber > hg
comparison mcabber/configure.ac @ 2269:766666eb6928
Link with the tinfo library
On some systems we have to explicitly link with libtinfo.
pkg-config cannot be used on every system with ncurses,
see discussion in https://bugs.gentoo.org/show_bug.cgi?id=457530#c18
For now we'll use the same fix as Mutt:
https://dev.mutt.org/hg/mutt/rev/c84aa0d62ce3
Thanks to Wolfram Schlich for the report and troubleshooting!
author | Mikael Berthe <mikael@lilotux.net> |
---|---|
date | Mon, 12 Sep 2016 22:39:04 +0200 |
parents | 972dd83d1c18 |
children | 3d6986784dae |
comparison
equal
deleted
inserted
replaced
2268:f5402d705f67 | 2269:766666eb6928 |
---|---|
97 AC_CHECK_LIB($lib, waddnwstr, | 97 AC_CHECK_LIB($lib, waddnwstr, |
98 [cf_ncurses="$lib"; cf_ncurses_unicode="yes"; break]) | 98 [cf_ncurses="$lib"; cf_ncurses_unicode="yes"; break]) |
99 done | 99 done |
100 AC_CHECK_LIB($cf_ncurses, initscr, | 100 AC_CHECK_LIB($cf_ncurses, initscr, |
101 [LIBS="$LIBS -l$cf_ncurses" | 101 [LIBS="$LIBS -l$cf_ncurses" |
102 | |
103 AC_CHECK_LIB(tinfo, tgetent, [LIBS="$LIBS -ltinfo"]) | |
104 | |
102 if test "$cf_ncurses" = ncursesw; then | 105 if test "$cf_ncurses" = ncursesw; then |
103 AC_CHECK_HEADERS([ncursesw/ncurses.h ncursesw/panel.h],, | 106 AC_CHECK_HEADERS([ncursesw/ncurses.h ncursesw/panel.h],, |
104 [AC_CHECK_HEADERS([ncurses.h panel.h],, | 107 [AC_CHECK_HEADERS([ncurses.h panel.h],, |
105 AC_MSG_ERROR([Missing header file]))]) | 108 AC_MSG_ERROR([Missing header file]))]) |
106 else | 109 else |
159 PKG_CHECK_MODULES(LOUDMOUTH_SHA256, [loudmouth-1.0 >= 1.5.3], | 162 PKG_CHECK_MODULES(LOUDMOUTH_SHA256, [loudmouth-1.0 >= 1.5.3], |
160 AC_DEFINE([LOUDMOUTH_USES_SHA256], 1, | 163 AC_DEFINE([LOUDMOUTH_USES_SHA256], 1, |
161 [loudmouth is now using a new digest] | 164 [loudmouth is now using a new digest] |
162 ), | 165 ), |
163 [] | 166 [] |
164 ) | 167 ) |
165 | 168 |
166 # Check for lm_ssl_set_cipher_list in loudmouth | 169 # Check for lm_ssl_set_cipher_list in loudmouth |
167 AC_CHECK_LIB(loudmouth-1, lm_ssl_set_cipher_list, | 170 AC_CHECK_LIB(loudmouth-1, lm_ssl_set_cipher_list, |
168 AC_DEFINE([HAVE_LM_SSL_CIPHER_LIST], 1, | 171 AC_DEFINE([HAVE_LM_SSL_CIPHER_LIST], 1, |
169 [Define that loudmouth has lm_ssl_cipher_list] | 172 [Define that loudmouth has lm_ssl_cipher_list] |