forked from Mirror/frr
configure: Check whether libyang has ENABLE_LYD_PRIV
Signed-off-by: Christian Franke <chris@opensourcerouting.org>
This commit is contained in:
parent
7c32c1dc10
commit
397b1dff48
|
@ -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
|
||||
|
|
Loading…
Reference in a new issue