Fix the view clearing to only be effective for displayed views
[tig] / configure.ac
1 AC_INIT([tig], [0], [Jonas Fonseca <fonseca@diku.dk>], [tig])
2
3 AC_LANG([C])
4 AC_CONFIG_HEADER(config.h)
5 AC_CONFIG_SRCDIR(tig.c)
6
7 cursed=no
8 AC_CHECK_HEADERS([ncursesw/ncurses.h],
9                  [AC_SEARCH_LIBS([initscr], [ncursesw], [cursed=yes])])
10 case "$cursed" in "no")
11         AC_CHECK_HEADERS([ncurses/ncurses.h ncurses.h],
12                          [AC_SEARCH_LIBS([wclear], [ncurses], [cursed=yes])])
13
14         case "$cursed" in "no")
15                 AC_ERROR([ncurses not found])
16         esac
17
18         AC_MSG_WARN([The found ncurses library does not support wide-char.])
19         AC_MSG_WARN([This means that tig will not correctly render UTF-8.])
20 esac
21
22 AM_ICONV
23
24 AC_PROG_CC
25
26 AC_CHECK_PROG(GIT, [git], [git], [AC_ERROR([git not found])])
27 AC_MSG_CHECKING([which config subcommand git supports])
28 GIT_CONFIG="repo-config"
29 git config --list >/dev/null && GIT_CONFIG="config"
30 AC_MSG_RESULT([$GIT_CONFIG])
31 AC_DEFINE_UNQUOTED(GIT_CONFIG,"$GIT_CONFIG",[git config subcommand])
32
33 AC_CHECK_PROGS(ASCIIDOC, [asciidoc false])
34 AC_CHECK_PROGS(XMLTO, [xmlto false])
35 AC_CHECK_PROGS(DOCBOOK2PDF, [docbook2pdf false])
36
37 AC_CONFIG_FILES([config.make])
38 AC_OUTPUT