From 8caaef639ee2bce42dc7e9c89cb87b351f76be01 Mon Sep 17 00:00:00 2001 From: Renato Botelho do Couto Date: Thu, 6 Jul 2023 14:53:08 +0000 Subject: [PATCH] autoreconf: Regenerate after changing configure.ac --- configure | 22 ++++++++++++++++++++++ include/clixon_config.h.in | 3 +++ 2 files changed, 25 insertions(+) diff --git a/configure b/configure index 4bb37f54..40b1a1bd 100755 --- a/configure +++ b/configure @@ -755,6 +755,7 @@ enable_debug with_cligen enable_yang_patch enable_publish +with_restconf_netns with_restconf enable_http1 enable_nghttp2 @@ -1417,6 +1418,9 @@ Optional Packages: --with-PACKAGE[=ARG] use PACKAGE [ARG=yes] --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no) --with-cligen=dir Use CLIGEN installation in this dir + --with-restconf-netns=NAMESPACE + Define default restconf network namespace to + NAMESPACE --with-restconf=native Integration with embedded web server (DEFAULT) --with-restconf=fcgi FCGI interface for stand-alone web rev-proxy eg nginx @@ -6112,6 +6116,24 @@ else $as_nop fi + +# Check whether --with-restconf-netns was given. +if test ${with_restconf_netns+y} +then : + withval=$with_restconf_netns; restconf_netns="$withval" +else $as_nop + restconf_netns="default" +fi + + +if test -z "$restconf_netns"; then + as_fn_error $? "restconf-netns cannot be empty" "$LINENO" 5 +fi + + +printf "%s\n" "#define RESTCONF_NETNS_DEFAULT \"$restconf_netns\"" >>confdefs.h + + # This is for restconf. There are three options: # --without-restconf No restconf support # --with-restconf=fcgi FCGI interface for separate web reverse proxy like nginx diff --git a/include/clixon_config.h.in b/include/clixon_config.h.in index 4e543649..5476737f 100644 --- a/include/clixon_config.h.in +++ b/include/clixon_config.h.in @@ -156,6 +156,9 @@ /* Define to the version of this package. */ #undef PACKAGE_VERSION +/* Default restconf network namespace */ +#undef RESTCONF_NETNS_DEFAULT + /* SSH binary */ #undef SSH_BIN