Code

autoconf: check whether to use git-config or git-repo-config
[tig.git] / configure.ac
index 0e06af5136804f192caa7df371fbdfc9c5c3d956..0c060ce900fab5cf89d6102abfd4ed2c8adb7ca3 100644 (file)
@@ -48,6 +48,8 @@ then
 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