]> git.puffer.fish Git - mirror/frr.git/commitdiff
configure: add enable_old_vpn_commands configuration param
authorPhilippe Guibert <philippe.guibert@6wind.com>
Wed, 18 Jan 2017 10:15:24 +0000 (11:15 +0100)
committerPhilippe Guibert <philippe.guibert@6wind.com>
Wed, 18 Jan 2017 11:39:43 +0000 (12:39 +0100)
This configure applies for BGP and keeps old for vpnv4/vpnv6
configuration and exploitation commands.
If not used, this old style vty commands will not be included.

Signed-off-by: Philippe Guibert <philippe.guibert@6wind.com>
configure.ac

index 297e5cea55d579b1079acac53720ba603624ab0f..1b5bc9eb2ee6354e9cd6b326fdb017ca4d49fe9d 100755 (executable)
@@ -282,6 +282,8 @@ AC_ARG_ENABLE(rr-semantics,
   AS_HELP_STRING([--disable-rr-semantics], [disable the v6 Route Replace semantics]))
 AC_ARG_ENABLE([protobuf],
   AS_HELP_STRING([--enable-protobuf], [Enable experimental protobuf support]))
+AC_ARG_ENABLE([oldvpn_commands],
+  AS_HELP_STRING([--enable-old-vpn-commands], [Keep old vpn commands]))
 
 AC_CHECK_HEADERS(json-c/json.h)
 AC_CHECK_LIB(json-c, json_object_get, LIBS="$LIBS -ljson-c")
@@ -387,6 +389,13 @@ if test "$enable_protobuf" = "yes"; then
    fi
 fi
 
+#
+# Logic for old vpn commans support.
+#
+if test "$enable_old_vpn_commands" = "yes"; then
+   AC_DEFINE(KEEP_OLD_VPN_COMMANDS,, [Define for compiling with old vpn commands])
+fi
+
 # Fail if the user explicity enabled protobuf support and we couldn't
 # find the compiler or libraries.
 if test "x$have_protobuf" = "xno" && test "x$enable_protobuf" = "xyes"; then