GNOME Bugzilla – Bug 775978
builder/git: do not enable git plugin by default if libgit2-glib is not installed
Last modified: 2016-12-12 23:36:52 UTC
Created attachment 341811 [details] [review] do not enable git plugin by default if libgit2-glib is not installed The configure script tries to build the git plugin by default even when libgit2-glib is not installed at all. In that case the configure script exits with a somewhat confusing error message please recompile a threadsafe version of libgit2 (-DTHREADSAFE:BOOL=ON) instead of complaining about "libgit2-glib" not being found. This problem was tackled in bug 764522 but the patch missed the case of "$enabled_git_plugin=auto". Now the git plugin is built by default only if autotools detects a sufficiently recent version of libgit2-glib. The only downside I can see is that autotools will now always query "pkg_config" even if the user explicitly disabled the git plugin (e.g. "--enable-git-plugin=no") but I wanted to keep the level of indentation low.
Personally i don't care about an extra level of indentation but i also don't have metrics about how long take a pkg_config check, just that Autotools is already as slow as this. I let Christian decide on this one :)
Review of attachment 341811 [details] [review]: Seems reasonable to me.
Thanks!