1 AC_INIT(core_plugins, 1.0)
10 AC_HELP_STRING([--enable-tests], [Build unit tests]),
15 AC_HELP_STRING([--with-dpdk],[Use the Intel dpdk]),
19 AM_CONDITIONAL(ENABLE_TESTS, test "$enable_tests" = "1")
21 AM_CONDITIONAL(WITH_DPDK, test "$with_dpdk" = "1")
22 AC_SUBST(DPDK,["-DDPDK=${with_dpdk}"])
24 AC_DEFUN([PLUGIN_ENABLED],
26 AC_ARG_ENABLE($1_plugin,
27 AC_HELP_STRING([--disable-$1-plugin], [Do not build $1 plugin]),
28 [enable_the_plugin=0],
29 [enable_the_plugin=1])
30 if test "x$enable_the_plugin" = x1; then
31 AC_CONFIG_SUBDIRS($1-plugin)
33 AM_CONDITIONAL(ENABLE_$1_PLUGIN, test "$enable_the_plugin" = "1")
36 AC_DEFUN([PLUGIN_DISABLED],
38 AC_ARG_ENABLE($1_plugin,
39 AC_HELP_STRING([--enable-$1-plugin], [Build $1 plugin]),
40 [enable_the_plugin=1],
41 [enable_the_plugin=0])
42 if test "x$enable_the_plugin" = x1; then
43 AC_CONFIG_SUBDIRS($1-plugin)
45 AM_CONDITIONAL(ENABLE_$1_PLUGIN, test "$enable_the_plugin" = "1")
48 # To add a new plugin subdirectory:
50 # add PLUGIN(new) below, and
51 # add the following to Makefile.am:
53 # if ENABLE_new_PLUGIN
54 # SUBDIRS += new-plugin
61 # Disabled plugins, require --enable-XXX-plugin
63 PLUGIN_DISABLED(sample)