From f7ecc6ca0df90464666e7fd9905c3ff6dbef576b Mon Sep 17 00:00:00 2001 From: Andrei Pavel Date: Wed, 11 Aug 2021 12:35:09 +0300 Subject: [#1990] report error if NETCONF was not enabled --- m4macros/ax_sysrepo.m4 | 6 ++++++ 1 file changed, 6 insertions(+) (limited to 'm4macros/ax_sysrepo.m4') diff --git a/m4macros/ax_sysrepo.m4 b/m4macros/ax_sysrepo.m4 index 1f3d5be2e5..9511eac305 100644 --- a/m4macros/ax_sysrepo.m4 +++ b/m4macros/ax_sysrepo.m4 @@ -205,6 +205,12 @@ AC_DEFUN([AX_SYSREPO], [ else HAVE_SYSREPO=false fi + + # Report error if sysrepo was requested but not enabled. + if test -n "${with_sysrepo}" && test "${with_sysrepo}" != 'no' && ! "${HAVE_SYSREPO}"; then + AC_MSG_ERROR([Could not enable NETCONF support.]) + fi + AM_CONDITIONAL(HAVE_SYSREPO, "${HAVE_SYSREPO}") AC_SUBST(HAVE_SYSREPO) AC_SUBST(SYSREPO_CPPFLAGS) -- cgit v1.2.3