Simplify subcommand option parsing by moving it out of the loop
[tig] / configure.ac
... / ...
CommitLineData
1AC_INIT([tig], [0],
2 [Jonas Fonseca <fonseca@diku.dk>],
3 [tig])
4
5AC_LANG([C])
6AC_CONFIG_HEADER(config.h)
7AC_CONFIG_SRCDIR(tig.c)
8
9AC_SEARCH_LIBS([wclear], [ncursesw ncurses curses], [],
10 [AC_ERROR([curses not found])])
11
12AM_ICONV
13
14AC_PROG_CC
15
16AC_CHECK_PROG(GIT, [git], [git], [AC_ERROR([git not found])])
17AC_MSG_CHECKING([which config command git supports])
18GIT_CONFIG="git repo-config"
19git config --list >/dev/null && GIT_CONFIG="git config"
20AC_MSG_RESULT([$GIT_CONFIG])
21AC_DEFINE_UNQUOTED(GIT_CONFIG,"$GIT_CONFIG",[git config program])
22
23AC_CHECK_PROGS(ASCIIDOC, [asciidoc false])
24AC_CHECK_PROGS(XMLTO, [xmlto false])
25AC_CHECK_PROGS(DOCBOOK2PDF, [docbook2pdf false])
26
27AC_CONFIG_FILES([config.make])
28AC_OUTPUT
29
30case "$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])
34esac