Commit | Line | Data |
---|---|---|
ec31d0d0 SG |
1 | AC_INIT([tig], [0], |
2 | [Jonas Fonseca <fonseca@diku.dk>], | |
3 | [tig]) | |
6a19a303 | 4 | |
ec31d0d0 SG |
5 | AC_LANG([C]) |
6 | AC_CONFIG_HEADER(config.h) | |
7 | AC_CONFIG_SRCDIR(tig.c) | |
8 | ||
6a19a303 JF |
9 | AC_SEARCH_LIBS([wclear], [ncursesw ncurses curses], [], |
10 | [AC_ERROR([curses not found])]) | |
11 | ||
e47afdf2 | 12 | AM_ICONV |
ec31d0d0 SG |
13 | |
14 | AC_PROG_CC | |
e62ea4d3 JF |
15 | |
16 | AC_CHECK_PROG(GIT, [git], [git], [AC_ERROR([git not found])]) | |
17 | AC_MSG_CHECKING([which config command git supports]) | |
18 | GIT_CONFIG="git repo-config" | |
19 | git config --list >/dev/null && GIT_CONFIG="git config" | |
20 | AC_MSG_RESULT([$GIT_CONFIG]) | |
96e58f5b | 21 | AC_DEFINE_UNQUOTED(GIT_CONFIG,"$GIT_CONFIG",[git config program]) |
e62ea4d3 | 22 | |
c692b4e4 JF |
23 | AC_CHECK_PROGS(ASCIIDOC, [asciidoc false]) |
24 | AC_CHECK_PROGS(XMLTO, [xmlto false]) | |
25 | AC_CHECK_PROGS(DOCBOOK2PDF, [docbook2pdf false]) | |
ec31d0d0 SG |
26 | |
27 | AC_CONFIG_FILES([config.make]) | |
28 | AC_OUTPUT | |
6a19a303 JF |
29 | |
30 | case "$LIBS" in | |
31 | *-lncursesw*) ;; | |
32 | *) AC_MSG_RESULT([NOTE: The found ncurses library does not support wide-char.]) | |
33 | AC_MSG_RESULT([NOTE: This means that tig will not correctly render UTF-8]) | |
34 | esac |