From 454a816e41c38c54b93e617baafcaf2857397b13 Mon Sep 17 00:00:00 2001 From: Francis Dupont Date: Sat, 20 Jul 2019 20:20:59 +0200 Subject: [PATCH] [742-new-libyang-and-sysrepo-versions] Added HAVE_POST_0_7_7_SYSREPO config flag --- configure.ac | 10 +++++++++- 1 file changed, 9 insertions(+), 1 deletion(-) diff --git a/configure.ac b/configure.ac index d6e0a14fa6..aad60a0250 100644 --- a/configure.ac +++ b/configure.ac @@ -967,7 +967,15 @@ if test "$SYSREPO_CONFIG" != "" ; then [AC_LANG_PROGRAM( [#include ], [sysrepo::Connection("conn-name");])], - [AC_MSG_RESULT([checking for Sysrepo C++ bindings headers and library... yes])], + [AC_LINK_IFELSE( + [AC_LANG_PROGRAM( + [#include ], + [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 ], -- 2.47.2