YANG schema mount, added configure option --enable-yang-schema-mount

This commit is contained in:
Olof hagsand 2023-01-30 11:49:11 +01:00
parent 034ab632f1
commit 91034e5361
11 changed files with 60 additions and 17 deletions

View file

@ -120,6 +120,7 @@ AC_SUBST(HAVE_LIBNGHTTP2,false) # consider using neutral constant such as with-h
AC_SUBST(HAVE_HTTP1,false)
AC_SUBST(with_libxml2)
AC_SUBST(CLIXON_YANG_PATCH)
AC_SUBST(CLIXON_YANG_SCHEMA_MOUNT)
# Where Clixon installs its YANG specs
AC_SUBST(YANG_INSTALLDIR)
# Examples require standard IETF YANGs. You need to provide these for example and tests
@ -195,6 +196,22 @@ if test "${enable_yang_patch}" = "yes"; then
AC_DEFINE(CLIXON_YANG_PATCH, 1, [Enable YANG patch, RFC 8072])
fi
# Enable/disable YANG schema mount RFC 8528
AC_ARG_ENABLE(yang-schema-mount, AS_HELP_STRING([--enable-yang-schema-mount],[Enable YANG schema mount, RFC 8528, default: no]),[
if test "$enableval" = no; then
enable_yang_schema_mount=no
else
enable_yang_schema_mount=yes
fi
],
[ enable_yang_schema_mount=no])
AC_MSG_RESULT(enable-yang-schema-mount is ${enable_yang_schema_mount})
if test "${enable_yang_schema_mount}" = "yes"; then
CLIXON_YANG_SCHEMA_MOUNT=1
AC_DEFINE(CLIXON_YANG_SCHEMA_MOUNT, 1, [Enable YANG schema mount, RFC 8528])
fi
# Experimental: Curl publish notification stream to eg Nginx nchan.
AC_ARG_ENABLE(publish, AS_HELP_STRING([--enable-publish],[Enable publish of notification streams using SSE and curl]),[
if test "$enableval" = no; then