TODO: --boundary flag is already used
[tig] / configure.ac
1 AC_INIT([tig], [0],
2         [Jonas Fonseca <fonseca@diku.dk>],
3         [tig])
4
5 AC_LANG([C])
6 AC_CONFIG_HEADER(config.h)
7 AC_CONFIG_SRCDIR(tig.c)
8
9 AC_SEARCH_LIBS([wclear], [ncursesw ncurses curses], [],
10                [AC_ERROR([curses not found])])
11
12 AM_ICONV
13
14 AC_PROG_CC
15 AC_CHECK_PROGS(GIT_CONFIG, [git-config git-repo-config])
16 if test "${ac_cv_prog_GIT_CONFIG}" = ""; then
17   AC_CHECK_PROGS(GIT, [git])
18   GIT_CONFIG="${ac_cv_prog_GIT} config"
19 fi
20 AC_DEFINE_UNQUOTED(GIT_CONFIG,"$GIT_CONFIG",[git config program])
21 AC_CHECK_PROGS(ASCIIDOC, [asciidoc false])
22 AC_CHECK_PROGS(XMLTO, [xmlto false])
23 AC_CHECK_PROGS(DOCBOOK2PDF, [docbook2pdf false])
24
25 AC_CONFIG_FILES([config.make])
26 AC_OUTPUT
27
28 case "$LIBS" in
29 *-lncursesw*) ;;
30 *) AC_MSG_RESULT([NOTE: The found ncurses library does not support wide-char.])
31    AC_MSG_RESULT([NOTE: This means that tig will not correctly render UTF-8])
32 esac