diff options
-rwxr-xr-x | configure.ac | 11 | ||||
-rw-r--r-- | defaults.h | 6 |
2 files changed, 12 insertions, 5 deletions
diff --git a/configure.ac b/configure.ac index c7dc641af..d376bf146 100755 --- a/configure.ac +++ b/configure.ac @@ -313,6 +313,8 @@ AC_ARG_ENABLE(werror, AS_HELP_STRING([--enable-werror], [enable -Werror (recommended for developers only)])) AC_ARG_ENABLE(cumulus, AS_HELP_STRING([--enable-cumulus], [enable Cumulus Switch Special Extensions])) +AC_ARG_ENABLE(datacenter, + AS_HELP_STRING([--enable-datacenter], [enable Compilation for Data Center Extensions])) AC_ARG_ENABLE(rr-semantics, AS_HELP_STRING([--disable-rr-semantics], [disable the v6 Route Replace semantics])) AC_ARG_ENABLE([protobuf], @@ -381,12 +383,17 @@ case "$host" in esac AC_SUBST(MPLS_METHOD) -if test "${enable_cumulus}" = "yes" ; then - AC_DEFINE(HAVE_CUMULUS,,Compile Special Cumulus Code in) +if test "${enable_datacenter}" = "yes" ; then + AC_DEFINE(HAVE_DATACENTER,,Compile extensions for a DataCenter) DFLT_NAME="datacenter" else DFLT_NAME="traditional" fi + +if test "${enable_cumulus}" = "yes" ; then + AC_DEFINE(HAVE_CUMULUS,,Compile Special Cumulus Code in) +fi + AC_SUBST(DFLT_NAME) AC_DEFINE_UNQUOTED(DFLT_NAME,["$DFLT_NAME"], Name of the configuration default set) diff --git a/defaults.h b/defaults.h index 57e35f3ce..4a5cc8252 100644 --- a/defaults.h +++ b/defaults.h @@ -23,7 +23,7 @@ #include "config.h" -#ifdef HAVE_CUMULUS +#ifdef HAVE_DATACENTER #define DFLT_BGP_IMPORT_CHECK 1 #define DFLT_BGP_TIMERS_CONNECT 10 @@ -36,7 +36,7 @@ #define DFLT_OSPF_LOG_ADJACENCY_CHANGES 1 #define DFLT_OSPF6_LOG_ADJACENCY_CHANGES 1 -#else /* !HAVE_CUMULUS */ +#else /* !HAVE_DATACENTER */ #define DFLT_BGP_IMPORT_CHECK 0 #define DFLT_BGP_TIMERS_CONNECT 120 @@ -49,6 +49,6 @@ #define DFLT_OSPF_LOG_ADJACENCY_CHANGES 0 #define DFLT_OSPF6_LOG_ADJACENCY_CHANGES 0 -#endif /* !HAVE_CUMULUS */ +#endif /* !HAVE_DATACENTER */ #endif /* _FRR_DEFAULTS_H */ |