]> git.ipfire.org Git - thirdparty/lldpd.git/blobdiff - configure.ac
Make "listen on vlan" feature optional at compile-time.
[thirdparty/lldpd.git] / configure.ac
index 947400e1fcba4ad7d1111271fa80e52dd5c06632..6242de6b228c7be5852e62fc9478dc591991afd2 100644 (file)
@@ -174,4 +174,16 @@ else
        AC_MSG_RESULT(no)
 fi
 
+#Listen on vlan
+AC_ARG_ENABLE(listenvlan, AC_HELP_STRING([--enable-listenvlan],
+                  [Allow to listen on VLAN]),
+             [enable_listenvlan=$enableval],[enable_listenvlan=no])
+AC_MSG_CHECKING(whether to allow to listen on VLAN)
+if test x$enable_listenvlan = xyes; then
+       AC_MSG_RESULT(yes)
+       AC_DEFINE([ENABLE_LISTENVLAN],, [Allow to listen on VLAN])
+else
+       AC_MSG_RESULT(no)
+fi
+
 AC_OUTPUT