[gnome-builder] build: ensure that libssh2 is installed
- From: Christian Hergert <chergert src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-builder] build: ensure that libssh2 is installed
- Date: Mon, 20 Feb 2017 23:21:07 +0000 (UTC)
commit b28510fe52cb3ca7410f5baeca92d3774b5ae36b
Author: Christian Hergert <chergert redhat com>
Date: Mon Feb 20 15:20:14 2017 -0800
build: ensure that libssh2 is installed
We don't really need this directly, but it should help catch issues that
were caused by missing libssh2.
plugins/git/configure.ac | 10 +++++-----
1 files changed, 5 insertions(+), 5 deletions(-)
---
diff --git a/plugins/git/configure.ac b/plugins/git/configure.ac
index 7e235b2..45e46ed 100644
--- a/plugins/git/configure.ac
+++ b/plugins/git/configure.ac
@@ -29,12 +29,12 @@ AS_IF([test "$enable_git_plugin" != "no" && test "$have_git" == "yes"],[
# Thread-Safe
AC_MSG_CHECKING([for thread-safe support in libgit2])
AC_TRY_RUN([
- #include <libgit2-glib/ggit.h>
+ #include <git2.h>
int
main(int argc, const char *argv[])
{
- ggit_init ();
- return ((ggit_get_features() & GGIT_FEATURE_THREADS) != 0) ? 0 : 1;
+ git_libgit2_init ();
+ return ((git_libgit2_features() & GIT_FEATURE_THREADS) != 0) ? 0 : 1;
}
],[AC_MSG_RESULT([yes])],[AC_MSG_ERROR([no, please recompile a threadsafe version of libgit2
(-DTHREADSAFE:BOOL=ON)])])
# SSH
@@ -44,8 +44,8 @@ AS_IF([test "$enable_git_plugin" != "no" && test "$have_git" == "yes"],[
int
main(int argc, const char *argv[])
{
- ggit_init ();
- return ((ggit_get_features() & GGIT_FEATURE_SSH) != 0) ? 0 : 1;
+ git_libgit2_init ();
+ return ((git_libgit2_features () & GIT_FEATURE_SSH) != 0) ? 0 : 1;
}
],[AC_MSG_RESULT([yes])],[AC_MSG_ERROR([no, please recompile a libgit2 with ssh support])])
CFLAGS="${cflags_save}"
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]