Commit 454a816e authored by Francis Dupont's avatar Francis Dupont
Browse files

[742-new-libyang-and-sysrepo-versions] Added HAVE_POST_0_7_7_SYSREPO config flag

parent 5f9e7c54
......@@ -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>],
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment