]> git.ipfire.org Git - thirdparty/kea.git/commitdiff
[742-new-libyang-and-sysrepo-versions] Added HAVE_POST_0_7_7_SYSREPO config flag
authorFrancis Dupont <fdupont@isc.org>
Sat, 20 Jul 2019 18:20:59 +0000 (20:20 +0200)
committerFrancis Dupont <fdupont@isc.org>
Fri, 26 Jul 2019 14:27:31 +0000 (16:27 +0200)
configure.ac

index d6e0a14fa679c1a0bc613647badb3da148cdad5d..aad60a0250bce3ee1351126556edb993119ee646 100644 (file)
@@ -967,7 +967,15 @@ if test "$SYSREPO_CONFIG" != "" ; then
         [AC_LANG_PROGRAM(
             [#include <sysrepo-cpp/Session.hpp>],
             [sysrepo::Connection("conn-name");])],
-        [AC_MSG_RESULT([checking for Sysrepo C++ bindings headers and library... yes])],
+        [AC_LINK_IFELSE(
+            [AC_LANG_PROGRAM(
+                [#include <sysrepo-cpp/Session.hpp>],
+                [auto is_empty = [[]](sysrepo::S_Val v){
+                    return (v->empty()); };
+                ])],
+            [AC_MSG_RESULT([checking for Sysrepo C++ bindings headers and library, new])
+             AC_DEFINE([HAVE_POST_0_7_7_SYSREPO], [1], [Using sysrepo > 0.7.7])],
+            [AC_MSG_RESULT([checking for Sysrepo C++ bindings headers and library, yes])])],
         [AC_LINK_IFELSE(
             [AC_LANG_PROGRAM(
                 [#include <sysrepo-cpp/Session.h>],