blob: b46a67878366f99dc6f6138c721ad0cdcf363157 [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
Ed Warnickecb9cada2015-12-08 15:45:58 -070035AM_CONDITIONAL(WITH_DPDK, test "$with_dpdk" = "1")
36AC_SUBST(DPDK,[-DDPDK=${with_dpdk}])
37
38AM_CONDITIONAL(WITH_VIRL, test "$with_virl" = "1")
39AC_SUBST(VIRL,[-DVIRL=${with_virl}])
40
Dave Barach61efa142016-01-22 08:23:09 -050041AM_CONDITIONAL(WITH_IPSEC, test "$with_ipsec" = "1")
42AC_SUBST(IPSEC,[-DIPSEC=${with_ipsec}])
43
44AM_CONDITIONAL(WITH_VCGN, test "$with_vcgn" = "1")
45AC_SUBST(VCGN,[-DVCGN=${with_vcgn}])
46
47AM_CONDITIONAL(WITH_IPV6SR, test "$with_ipv6sr" = "1")
48AC_SUBST(IPV6SR,[-DIPV6SR=${with_ipv6sr}])
49
Ed Warnickecb9cada2015-12-08 15:45:58 -070050AC_OUTPUT([Makefile])