diff options
author | Dave Barach <dave@barachs.net> | 2016-06-26 10:42:08 -0400 |
---|---|---|
committer | Keith Burns <alagalah@gmail.com> | 2016-07-01 18:20:13 +0000 |
commit | 20c02cb133cf7b8a0570b83acf927d5a0d601a36 (patch) | |
tree | c5358223dab1b0be982fd0f29d8414868393247f /plugins/configure.ac | |
parent | b8dca74c232d6f177479d644dc3359b82772ea9e (diff) |
Simple ip4 NAT plugin
Change-Id: Iffe77bf2a05ced41474540ff54a842101aad7c41
Signed-off-by: Dave Barach <dave@barachs.net>
Diffstat (limited to 'plugins/configure.ac')
-rw-r--r-- | plugins/configure.ac | 43 |
1 files changed, 39 insertions, 4 deletions
diff --git a/plugins/configure.ac b/plugins/configure.ac index 40c0babd375..8a5fdbc2175 100644 --- a/plugins/configure.ac +++ b/plugins/configure.ac @@ -17,10 +17,30 @@ AC_ARG_WITH(plugin-toolkit, [with_plugin_toolkit=${prefix}/include], [with_plugin_toolkit=.]) +AC_ARG_WITH(dpdk, + AC_HELP_STRING([--with-dpdk],[Use the Intel dpdk]), + [with_dpdk=1], + [with_dpdk=0]) + AC_SUBST(TOOLKIT_INCLUDE,[${with_plugin_toolkit}]) AM_CONDITIONAL(WITH_PLUGIN_TOOLKIT, test "$with_plugin_toolkit" != ".") AM_CONDITIONAL(ENABLE_TESTS, test "$enable_tests" = "1") +AM_CONDITIONAL(WITH_DPDK, test "$with_dpdk" = "1") +AC_SUBST(DPDK,["-DDPDK=${with_dpdk}"]) + + +# +# Please DO NOT, UNDER ANY CIRCUMSTANCES enable or disable +# plugins by "clever" manipulation of the arguments to AC_ARG_ENABLE +# +# Instead, please configure the default set of plugins in +# .../build-data/platforms/<platform>.mk, by adding --enable-XXX-plugin +# stanzas to plugins_configure_args_<platform> + +# The following per-plugin boilerplate is begging for an additional +# macro, but the first 10 tries at making one didn't work. Another day. + # # Sample plugin # @@ -40,8 +60,8 @@ AM_CONDITIONAL(ENABLE_SAMPLE_PLUGIN, test "$enable_sample_plugin" = "1") # AC_ARG_ENABLE(sixrd_plugin, AC_HELP_STRING([--enable-sixrd-plugin], [Build sixrd plugin]), - [], - [enable_sixrd_plugin=1]) + [enable_sixrd_plugin=1], + [enable_sixrd_plugin=0]) if test "x$enable_sixrd_plugin" = x1; then AC_CONFIG_SUBDIRS([sixrd-plugin]) @@ -54,8 +74,8 @@ AM_CONDITIONAL(ENABLE_SIXRD_PLUGIN, test "$enable_sixrd_plugin" = "1") # AC_ARG_ENABLE(ioam_plugin, AC_HELP_STRING([--enable-ioam-plugin], [Build ioam plugin]), - [], - [enable_ioam_plugin=1]) + [enable_ioam_plugin=1], + [enable_ioam_plugin=0]) if test "x$enable_ioam_plugin" = x1; then AC_CONFIG_SUBDIRS([ioam-plugin]) @@ -77,4 +97,19 @@ fi AM_CONDITIONAL(ENABLE_VCGN_PLUGIN, test "$enable_vcgn_plugin" = "1") +# +# SNAT plugin +# +AC_ARG_ENABLE(snat_plugin, + AC_HELP_STRING([--enable-snat-plugin], [Build snat plugin]), + [enable_snat_plugin=1], + [enable_snat_plugin=0]) + +if test "x$enable_snat_plugin" = x1; then + AC_CONFIG_SUBDIRS([snat-plugin]) +fi + +AM_CONDITIONAL(ENABLE_SNAT_PLUGIN, test "$enable_snat_plugin" = "1") + + AC_OUTPUT([Makefile]) |