X-Git-Url: https://git.tokkee.org/?a=blobdiff_plain;f=configure.ac;h=236d5f93dd876f34ad338fe35ecb1d669c69ad1b;hb=4bf02e653c03d0b1213319aa881cbb38b25ff15f;hp=55d81a98811306f99a733084d2e2f5ab9c3fdc41;hpb=e47afdf2f78acbcb5c08f422be5ce37e0e99a5fc;p=tig.git diff --git a/configure.ac b/configure.ac index 55d81a9..236d5f9 100644 --- a/configure.ac +++ b/configure.ac @@ -1,19 +1,26 @@ -AC_INIT([tig], [0], - [Jonas Fonseca ], - [tig]) +AC_INIT([tig], [0], [Jonas Fonseca ], [tig]) + AC_LANG([C]) AC_CONFIG_HEADER(config.h) AC_CONFIG_SRCDIR(tig.c) -AC_SEARCH_LIBS([wclear], [ncurses curses]) +AX_WITH_CURSES +case "$ax_cv_ncurses" in "no") + AC_ERROR([ncurses not found]) +esac +case "$ax_cv_ncursesw" in "no") + AC_MSG_WARN([The found ncurses library does not support wide-char.]) + AC_MSG_WARN([This means that tig will not correctly render UTF-8.]) +esac +AC_SUBST(CURSES_LIB) + AM_ICONV AC_PROG_CC -AC_CHECK_PROGS(GIT_CONFIG, [git-config git-repo-config]) -AC_DEFINE_UNQUOTED(GIT_CONFIG,"$GIT_CONFIG",[git config program]) -AC_CHECK_PROGS(ASCIIDOC, [asciidoc false]) -AC_CHECK_PROGS(XMLTO, [xmlto false]) -AC_CHECK_PROGS(DOCBOOK2PDF, [docbook2pdf false]) + +AC_CHECK_PROGS(ASCIIDOC, [asciidoc], [false]) +AC_CHECK_PROGS(XMLTO, [xmlto], [false]) +AC_CHECK_PROGS(DOCBOOK2PDF, [docbook2pdf], [false]) AC_CONFIG_FILES([config.make]) AC_OUTPUT