The option can be disabled via "./configure --disable-vlan-tagging".

Patch authored by Fabian Knittel <fabian.knit...@littink.de>.

Signed-off-by: Fabian Knittel <fabian.knit...@lettink.de>
---
 configure.ac | 10 ++++++++++
 1 file changed, 10 insertions(+)

diff --git a/configure.ac b/configure.ac
index b75d51f..89556c4 100644
--- a/configure.ac
+++ b/configure.ac
@@ -271,6 +271,12 @@ AC_ARG_ENABLE(
        [enable_async_push="no"]
 )

+AC_ARG_ENABLE(vlan-tagging,
+       [  --disable-vlan-tagging  Disable support for 802.1Q-based VLAN 
tagging],
+       [VLAN_TAGGING="$enableval"],
+       [VLAN_TAGGING="yes"]
+)
+
 AC_ARG_WITH(
        [special-build],
        [AS_HELP_STRING([--with-special-build=STRING], [specify special build 
string])],
@@ -1163,6 +1169,10 @@ if test "${enable_async_push}" = "yes"; then
        )
 fi

+if test "$VLAN_TAGGING" = "yes"; then
+   AC_DEFINE(ENABLE_VLAN_TAGGING, 1, [Enable 802.1Q-based VLAN 
tagging/untagging])
+fi
+
 CONFIGURE_DEFINES="`set | grep '^enable_.*=' ; set | grep '^with_.*='`"
 AC_DEFINE_UNQUOTED([CONFIGURE_DEFINES], ["`echo ${CONFIGURE_DEFINES}`"], 
[Configuration settings])

-- 
2.7.1

Reply via email to