summaryrefslogtreecommitdiffstats
path: root/configure.ac
diff options
context:
space:
mode:
authorIgor Ryzhov <iryzhov@nfware.com>2020-09-29 12:12:55 +0200
committerIgor Ryzhov <iryzhov@nfware.com>2020-09-29 13:03:57 +0200
commit0eb5751da9a3647b5562fa4d19b11191d6becdc2 (patch)
tree3cd46e30a831223284968c967dd509effa114f59 /configure.ac
parentvtysh: rearrange commands per daemon and node (diff)
downloadfrr-0eb5751da9a3647b5562fa4d19b11191d6becdc2.tar.xz
frr-0eb5751da9a3647b5562fa4d19b11191d6becdc2.zip
vtysh: respect --disable-daemon configure flags
Don't install nodes for daemons that are disabled by configure flags. Signed-off-by: Igor Ryzhov <iryzhov@nfware.com>
Diffstat (limited to 'configure.ac')
-rwxr-xr-xconfigure.ac60
1 files changed, 60 insertions, 0 deletions
diff --git a/configure.ac b/configure.ac
index 25157d1fa..3cc74c411 100755
--- a/configure.ac
+++ b/configure.ac
@@ -1561,10 +1561,70 @@ dnl --------------------
dnl Daemon disable check
dnl --------------------
+AS_IF([test "$enable_bgpd" != "no"], [
+ AC_DEFINE([HAVE_BGPD], [1], [bgpd])
+])
+
+AS_IF([test "$enable_ripd" != "no"], [
+ AC_DEFINE([HAVE_RIPD], [1], [ripd])
+])
+
+AS_IF([test "$enable_ripngd" != "no"], [
+ AC_DEFINE([HAVE_RIPNGD], [1], [ripngd])
+])
+
+AS_IF([test "$enable_ospfd" != "no"], [
+ AC_DEFINE([HAVE_OSPFD], [1], [ospfd])
+])
+
+AS_IF([test "$enable_ospf6d" != "no"], [
+ AC_DEFINE([HAVE_OSPF6D], [1], [ospf6d])
+])
+
AS_IF([test "$enable_ldpd" != "no"], [
AC_DEFINE([HAVE_LDPD], [1], [ldpd])
])
+AS_IF([test "$enable_nhrpd" != "no"], [
+ AC_DEFINE([HAVE_NHRPD], [1], [nhrpd])
+])
+
+AS_IF([test "$enable_eigrpd" != "no"], [
+ AC_DEFINE([HAVE_EIGRPD], [1], [eigrpd])
+])
+
+AS_IF([test "$enable_babeld" != "no"], [
+ AC_DEFINE([HAVE_BABELD], [1], [babeld])
+])
+
+AS_IF([test "$enable_isisd" != "no"], [
+ AC_DEFINE([HAVE_ISISD], [1], [isisd])
+])
+
+AS_IF([test "$enable_pimd" != "no"], [
+ AC_DEFINE([HAVE_PIMD], [1], [pimd])
+])
+
+AS_IF([test "$enable_pbrd" != "no"], [
+ AC_DEFINE([HAVE_PBRD], [1], [pbrd])
+])
+
+AS_IF([test "$enable_sharpd" = "yes"], [
+ AC_DEFINE([HAVE_SHARPD], [1], [sharpd])
+])
+
+AS_IF([test "$enable_staticd" != "no"], [
+ AC_DEFINE([HAVE_STATICD], [1], [staticd])
+])
+
+AS_IF([test "$enable_fabricd" != "no"], [
+ AC_DEFINE([HAVE_FABRICD], [1], [fabricd])
+])
+
+AS_IF([test "$enable_vrrpd" != "no"], [
+ AC_DEFINE([HAVE_VRRPD], [1], [vrrpd])
+])
+
if test "$enable_bfdd" = "no"; then
AC_DEFINE([HAVE_BFDD], [0], [bfdd])
BFDD=""