- Use autoconf to check for the AsciiDoc and XmlTo document tools.
- - The autoconf check could also be used to determine whether it is a
- newer git so that git-config will be used instead of git-repo-config.
-
- Use non-blocking I/O + select() for incremental loading of view
input. (debian bug #427093)
fi
AC_PROG_CC
+AC_CHECK_PROGS(GIT_CONFIG, [git-config git-repo-config])
+AC_DEFINE_UNQUOTED(GIT_CONFIG,"$GIT_CONFIG",[git config program])
AC_CONFIG_FILES([config.make])
AC_OUTPUT
#define SCALE_SPLIT_VIEW(height) ((height) * 2 / 3)
+#ifndef GIT_CONFIG
+#define "git config"
+#endif
+
#define TIG_LS_REMOTE \
"git ls-remote $(git rev-parse --git-dir) 2>/dev/null"
static int
load_repo_config(void)
{
- return read_properties(popen("git repo-config --list", "r"),
+ return read_properties(popen(GIT_CONFIG " --list", "r"),
"=", read_repo_config_option);
}