summaryrefslogtreecommitdiffstats
path: root/m4macros/ax_sysrepo.m4
diff options
context:
space:
mode:
Diffstat (limited to '')
-rw-r--r--m4macros/ax_sysrepo.m46
1 files changed, 6 insertions, 0 deletions
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)