1 AC_INIT(core_plugins, 1.0)
9 AC_HELP_STRING([--enable-tests], [Build unit tests]),
14 AC_HELP_STRING([--with-dpdk],[Use DPDK]),
18 AM_CONDITIONAL(ENABLE_TESTS, test "$enable_tests" = "1")
20 AM_CONDITIONAL(WITH_DPDK, test "$with_dpdk" = "1")
21 AC_SUBST(DPDK,["-DDPDK=${with_dpdk}"])
23 AC_DEFUN([PLUGIN_ENABLED],
25 AC_ARG_ENABLE($1_plugin,
26 AC_HELP_STRING([--disable-$1-plugin], [Do not build $1 plugin]),
27 [enable_the_plugin=0],
28 [enable_the_plugin=1])
29 if test "x$enable_the_plugin" = x1; then
30 AC_CONFIG_SUBDIRS($1-plugin)
32 AM_CONDITIONAL(ENABLE_$1_PLUGIN, test "$enable_the_plugin" = "1")
35 AC_DEFUN([PLUGIN_DISABLED],
37 AC_ARG_ENABLE($1_plugin,
38 AC_HELP_STRING([--enable-$1-plugin], [Build $1 plugin]),
39 [enable_the_plugin=1],
40 [enable_the_plugin=0])
41 if test "x$enable_the_plugin" = x1; then
42 AC_CONFIG_SUBDIRS($1-plugin)
44 AM_CONDITIONAL(ENABLE_$1_PLUGIN, test "$enable_the_plugin" = "1")
47 # To add a new plugin subdirectory:
49 # add PLUGIN(new) below, and
50 # add the following to Makefile.am:
52 # if ENABLE_new_PLUGIN
53 # SUBDIRS += new-plugin
56 # Disabled plugins, require --enable-XXX-plugin
58 PLUGIN_DISABLED(sample)