~mdw
/
tig
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
utf8_length: add reserve flag for reserving a trailing character
[tig]
/
configure.ac
diff --git
a/configure.ac
b/configure.ac
index
422039e
..
65b5af3
100644
(file)
--- a/
configure.ac
+++ b/
configure.ac
@@
-1,11
+1,14
@@
AC_INIT([tig], [0],
[Jonas Fonseca <fonseca@diku.dk>],
[tig])
AC_INIT([tig], [0],
[Jonas Fonseca <fonseca@diku.dk>],
[tig])
+
AC_LANG([C])
AC_CONFIG_HEADER(config.h)
AC_CONFIG_SRCDIR(tig.c)
AC_LANG([C])
AC_CONFIG_HEADER(config.h)
AC_CONFIG_SRCDIR(tig.c)
-AC_SEARCH_LIBS([wclear], [ncurses curses])
+AC_SEARCH_LIBS([wclear], [ncursesw ncurses curses], [],
+ [AC_ERROR([curses not found])])
+
AM_ICONV
AC_PROG_CC
AM_ICONV
AC_PROG_CC
@@
-21,3
+24,9
@@
AC_CHECK_PROGS(DOCBOOK2PDF, [docbook2pdf false])
AC_CONFIG_FILES([config.make])
AC_OUTPUT
AC_CONFIG_FILES([config.make])
AC_OUTPUT
+
+case "$LIBS" in
+*-lncursesw*) ;;
+*) AC_MSG_RESULT([NOTE: The found ncurses library does not support wide-char.])
+ AC_MSG_RESULT([NOTE: This means that tig will not correctly render UTF-8])
+esac