From: Francis Dupont Date: Sat, 20 Jul 2019 18:20:59 +0000 (+0200) Subject: [742-new-libyang-and-sysrepo-versions] Added HAVE_POST_0_7_7_SYSREPO config flag X-Git-Tag: Kea-1.6.1~10^2~106 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=454a816e41c38c54b93e617baafcaf2857397b13;p=thirdparty%2Fkea.git [742-new-libyang-and-sysrepo-versions] Added HAVE_POST_0_7_7_SYSREPO config flag --- 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 ],