summaryrefslogtreecommitdiffstats
path: root/plugins/configure.ac
blob: 40c0babd375fa93269d7ed4b83d73aee8b643222 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
AC_INIT(core_plugins, 1.0)
LT_INIT
AM_INIT_AUTOMAKE

AM_PROG_AS
AC_PROG_CC
AM_PROG_CC_C_O

AC_ARG_ENABLE(tests,
              AC_HELP_STRING([--enable-tests], [Build unit tests]),
              [enable_tests=1],
              [enable_tests=0])

AC_ARG_WITH(plugin-toolkit,
            AC_HELP_STRING([--with-plugin-toolkit],
            [build using the vpp toolkit]),
            [with_plugin_toolkit=${prefix}/include],
            [with_plugin_toolkit=.])

AC_SUBST(TOOLKIT_INCLUDE,[${with_plugin_toolkit}])
AM_CONDITIONAL(WITH_PLUGIN_TOOLKIT, test "$with_plugin_toolkit" != ".")
AM_CONDITIONAL(ENABLE_TESTS, test "$enable_tests" = "1")

#
# Sample plugin
#
AC_ARG_ENABLE(sample_plugin,
              AC_HELP_STRING([--enable-sample-plugin], [Build sample plugin]),
              [enable_sample_plugin=1],
              [enable_sample_plugin=0])

if test "x$enable_sample_plugin" = x1; then
   AC_CONFIG_SUBDIRS([sample-plugin])
fi

AM_CONDITIONAL(ENABLE_SAMPLE_PLUGIN, test "$enable_sample_plugin" = "1")

#
# SIXRD plugin
#
AC_ARG_ENABLE(sixrd_plugin,
              AC_HELP_STRING([--enable-sixrd-plugin], [Build sixrd plugin]),
              [],
              [enable_sixrd_plugin=1])

if test "x$enable_sixrd_plugin" = x1; then
   AC_CONFIG_SUBDIRS([sixrd-plugin])
fi

AM_CONDITIONAL(ENABLE_SIXRD_PLUGIN, test "$enable_sixrd_plugin" = "1")

#
# IOAM plugin
#
AC_ARG_ENABLE(ioam_plugin,
              AC_HELP_STRING([--enable-ioam-plugin], [Build ioam plugin]),
              [],
              [enable_ioam_plugin=1])

if test "x$enable_ioam_plugin" = x1; then
   AC_CONFIG_SUBDIRS([ioam-plugin])
fi

AM_CONDITIONAL(ENABLE_IOAM_PLUGIN, test "$enable_ioam_plugin" = "1")

#
# VCGN plugin
#
AC_ARG_ENABLE(vcgn_plugin,
              AC_HELP_STRING([--enable-vcgn-plugin], [Build vcgn plugin]),
              [enable_vcgn_plugin=1],
              [enable_vcgn_plugin=0])

if test "x$enable_vcgn_plugin" = x1; then
   AC_CONFIG_SUBDIRS([vcgn-plugin])
fi

AM_CONDITIONAL(ENABLE_VCGN_PLUGIN, test "$enable_vcgn_plugin" = "1")

AC_OUTPUT([Makefile])