Blame SOURCES/0046-configure-check-for-new-functions-in-libgovirt.patch

48c875
From 909174b37f433a8c68039bd6c853cca6e09a8dd1 Mon Sep 17 00:00:00 2001
48c875
From: "Eduardo Lima (Etrunko)" <etrunko@redhat.com>
48c875
Date: Fri, 29 Sep 2017 17:54:39 -0300
48c875
Subject: [PATCH] configure: check for new functions in libgovirt
48c875
48c875
These functions will be used in ovirt-foreign-menu code and guarded
48c875
by #ifdef blocks so that we can keep compatibility with older libgovirt
48c875
versions.
48c875
48c875
Related: https://bugzilla.redhat.com/show_bug.cgi?id=1427467
48c875
         https://bugzilla.redhat.com/show_bug.cgi?id=1428401
48c875
48c875
Signed-off-by: Eduardo Lima (Etrunko) <etrunko@redhat.com>
48c875
---
48c875
 configure.ac | 4 ++++
48c875
 1 file changed, 4 insertions(+)
48c875
48c875
diff --git a/configure.ac b/configure.ac
48c875
index 395659b..6ed5f8a 100644
48c875
--- a/configure.ac
48c875
+++ b/configure.ac
48c875
@@ -190,6 +190,10 @@ AS_IF([test "x$with_ovirt" = "xyes"],
48c875
          void *fun = rest_proxy_auth_cancel;])],
48c875
         [AC_DEFINE([HAVE_OVIRT_CANCEL], 1, [Have rest_proxy_auth_cancel and OVIRT_REST_CALL_ERROR_CANCELLED?])],
48c875
         [])
48c875
+       AC_CHECK_FUNCS([ovirt_api_search_vms ovirt_vm_get_host ovirt_host_get_cluster ovirt_cluster_get_data_center],
48c875
+                      [AC_DEFINE([HAVE_OVIRT_DATA_CENTER], 1, [Have support for data center])],
48c875
+                      []
48c875
+                      )
48c875
        CFLAGS="$SAVED_CFLAGS"
48c875
        LIBS="$SAVED_LIBS"]
48c875
 )
48c875
-- 
48c875
2.13.6
48c875