summaryrefslogtreecommitdiffstats
path: root/configure.ac
diff options
context:
space:
mode:
authorChristian Franke <chris@opensourcerouting.org>2018-11-01 13:41:14 +0100
committerChristian Franke <chris@opensourcerouting.org>2018-11-01 13:52:26 +0100
commit397b1dff48859b936f97605a3745c278249c437f (patch)
tree232e353e2512ab6336da54cb4ec18bf8fa857c89 /configure.ac
parentMerge pull request #3255 from dslicenc/show_evpn_mac_json (diff)
downloadfrr-397b1dff48859b936f97605a3745c278249c437f.tar.xz
frr-397b1dff48859b936f97605a3745c278249c437f.zip
configure: Check whether libyang has ENABLE_LYD_PRIV
Signed-off-by: Christian Franke <chris@opensourcerouting.org>
Diffstat (limited to '')
-rwxr-xr-xconfigure.ac6
1 files changed, 6 insertions, 0 deletions
diff --git a/configure.ac b/configure.ac
index e0ab752a0..6782c539e 100755
--- a/configure.ac
+++ b/configure.ac
@@ -1595,6 +1595,12 @@ dnl ---------------
PKG_CHECK_MODULES(libyang, [libyang >= 0.16.7], , [
AC_MSG_ERROR([libyang (>= 0.16.7) was not found on your system.])
])
+AC_CHECK_MEMBER([struct lyd_node.priv], [], [
+ AC_MSG_ERROR([m4_normalize([
+ libyang needs to be compiled with ENABLE_LYD_PRIV=ON.
+ See http://docs.frrouting.org/projects/dev-guide/en/latest/building-libyang.html for details.])
+ ])
+], [[#include <libyang/libyang.h>]])
dnl ---------------
dnl configuration rollbacks