blob: 08f0897af144dbfb0109e34512e277e2b357ae7b [file] [log] [blame]
Damjan Marioncc4a5e82018-07-30 16:10:14 +02001AC_INIT(japi, 18.10)
2LT_INIT
3AM_INIT_AUTOMAKE
4AM_SILENT_RULES([yes])
5AC_PREFIX_DEFAULT([/usr])
6
7PKG_CHECK_MODULES([CHECK], [check], [HAVE_CHECK=1], [HAVE_CHECK=0])
8AM_CONDITIONAL([USE_CHECK],[test "$HAVE_CHECK" -eq 1])
9
10AC_PROG_CC
11AC_PROG_CXX
12
13AM_CONDITIONAL(ENABLE_ACL_PLUGIN, test "yes" = "yes")
14AM_CONDITIONAL(ENABLE_NAT_PLUGIN, test "yes" = "yes")
15AM_CONDITIONAL(ENABLE_L2E_PLUGIN, test "yes" = "yes")
16AM_CONDITIONAL(ENABLE_GBP_PLUGIN, test "yes" = "yes")
17AM_CONDITIONAL(ENABLE_PPPOE_PLUGIN, test "yes" = "yes")
18AM_CONDITIONAL(ENABLE_GTPU_PLUGIN, test "yes" = "yes")
19AM_CONDITIONAL(ENABLE_IOAM_PLUGIN, test "yes" = "yes")
20
21AX_VPP_FIND_JDK8
22AC_SUBST(JAVA_HOME)
23AC_SUBST(JAVAC)
24AC_SUBST(JAVAH)
25AC_SUBST(JAR)
26
27AS_CASE([$host_cpu],
28 [x86_64], [CPU_FLAGS="-march=corei7 -mtune=corei7-avx"],
29 [aarch64], [CPU_FLAGS="-march=armv8-a+crc"],
30 [CPU_FLAGS=""],
31)
32AC_SUBST([CPU_FLAGS])
33
34AC_OUTPUT([Makefile java/Makefile])
35
36AC_CONFIG_MACRO_DIR([m4])