Simple ip4 NAT plugin
[vpp.git] / plugins / snat-plugin / configure.ac
1
2 AC_INIT(snat_plugin, 1.0)
3 AM_INIT_AUTOMAKE
4
5 AC_PROG_LIBTOOL
6 AM_PROG_AS
7 AC_PROG_CC
8 AM_PROG_CC_C_O
9
10 AC_ARG_WITH(dpdk,
11             AC_HELP_STRING([--with-dpdk],[Use the Intel dpdk]),
12             [with_dpdk=1],
13             [with_dpdk=0])
14
15 AM_CONDITIONAL(WITH_DPDK, test "$with_dpdk" = "1")
16 AC_SUBST(DPDK,["-DDPDK=${with_dpdk}"])
17
18 AC_ARG_WITH(plugin-toolkit,
19             AC_HELP_STRING([--with-plugin-toolkit],
20             [build using the vpp toolkit]),
21             [with_plugin_toolkit=${prefix}/include],
22             [with_plugin_toolkit=.])
23
24 AC_SUBST(TOOLKIT_INCLUDE,[${with_plugin_toolkit}])
25 AM_CONDITIONAL(WITH_PLUGIN_TOOLKIT, test "$with_plugin_toolkit" != ".")
26
27 AC_OUTPUT([Makefile])