summary | shortlog | log | commit | commitdiff | tree
raw | patch | inline | side by side (parent: 518234f)
raw | patch | inline | side by side (parent: 518234f)
author | Jonas Fonseca <fonseca@diku.dk> | |
Thu, 20 Mar 2008 17:58:05 +0000 (18:58 +0100) | ||
committer | Jonas Fonseca <fonseca@diku.dk> | |
Thu, 20 Mar 2008 17:59:54 +0000 (18:59 +0100) |
configure.ac | patch | blob | history |
diff --git a/configure.ac b/configure.ac
index 65b5af34c6087d39902c22ecda9a69ac20562c8d..764190a40a8eecc3f0068e5d67b5db13dcb55a91 100644 (file)
--- a/configure.ac
+++ b/configure.ac
AM_ICONV
AC_PROG_CC
-AC_CHECK_PROGS(GIT_CONFIG, [git-config git-repo-config])
-if test "${ac_cv_prog_GIT_CONFIG}" = ""; then
- AC_CHECK_PROGS(GIT, [git])
- GIT_CONFIG="${ac_cv_prog_GIT} config"
-fi
+
+AC_CHECK_PROG(GIT, [git], [git], [AC_ERROR([git not found])])
+AC_MSG_CHECKING([which config command git supports])
+GIT_CONFIG="git repo-config"
+git config --list >/dev/null && GIT_CONFIG="git config"
+AC_MSG_RESULT([$GIT_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])