blob: b4b6723a6933f7fe91b50df4fad373a59aaa3ab5 [file] [log] [blame]
Ed Warnickecb9cada2015-12-08 15:45:58 -07001AC_INIT(vnet, 1.1)
Dave Barach2126b352016-02-10 08:42:59 -05002LT_INIT
Ed Warnickecb9cada2015-12-08 15:45:58 -07003AM_INIT_AUTOMAKE
4AM_SILENT_RULES
5
6AC_PROG_CC
7AM_PROG_CC_C_O
Ed Warnickecb9cada2015-12-08 15:45:58 -07008AM_PROG_AS
9
10AC_ARG_WITH(dpdk,
11 AC_HELP_STRING([--with-dpdk],[Use the Intel dpdk]),
12 [with_dpdk=1],
13 [with_dpdk=0])
14
15AC_ARG_WITH(virl,
16 AC_HELP_STRING([--with-virl],[Compile for virl citizenship]),
17 [with_virl=1],
18 [with_virl=0])
19
Dave Barach61efa142016-01-22 08:23:09 -050020AC_ARG_WITH(ipsec,
21 AC_HELP_STRING([--without-ipsec],[Disable ipsec]),
22 [with_ipsec=0],
23 [with_ipsec=1])
24
25AC_ARG_WITH(vcgn,
26 AC_HELP_STRING([--without-vcgn],[Disable vcgn]),
27 [with_vcgn=0],
28 [with_vcgn=1])
29
30AC_ARG_WITH(ipv6sr,
31 AC_HELP_STRING([--without-ipv6sr],[Disable ipv6sr]),
32 [with_ipv6sr=0],
33 [with_ipv6sr=1])
34
Filip Tehlar254b0362016-04-07 10:04:34 +020035AC_ARG_ENABLE(tests,
36 AC_HELP_STRING([--enable-tests], [Build unit tests]),
37 [enable_tests=1],
38 [enable_tests=0])
39
Ed Warnickecb9cada2015-12-08 15:45:58 -070040AM_CONDITIONAL(WITH_DPDK, test "$with_dpdk" = "1")
41AC_SUBST(DPDK,[-DDPDK=${with_dpdk}])
42
43AM_CONDITIONAL(WITH_VIRL, test "$with_virl" = "1")
44AC_SUBST(VIRL,[-DVIRL=${with_virl}])
45
Dave Barach61efa142016-01-22 08:23:09 -050046AM_CONDITIONAL(WITH_IPSEC, test "$with_ipsec" = "1")
47AC_SUBST(IPSEC,[-DIPSEC=${with_ipsec}])
48
49AM_CONDITIONAL(WITH_VCGN, test "$with_vcgn" = "1")
50AC_SUBST(VCGN,[-DVCGN=${with_vcgn}])
51
52AM_CONDITIONAL(WITH_IPV6SR, test "$with_ipv6sr" = "1")
53AC_SUBST(IPV6SR,[-DIPV6SR=${with_ipv6sr}])
54
Filip Tehlar254b0362016-04-07 10:04:34 +020055AM_CONDITIONAL(ENABLE_TESTS, test "$enable_tests" = "1")
56
Ed Warnickecb9cada2015-12-08 15:45:58 -070057AC_OUTPUT([Makefile])