aboutsummaryrefslogtreecommitdiffstats
path: root/plugins/snat-plugin/configure.ac
blob: a41bf916f08d2e3005cc4a7a54be13e2bb73df72 (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
AC_INIT(snat_plugin, 17.01.1)
AC_CONFIG_MACRO_DIR([../../vpp-api/java/m4])
AM_INIT_AUTOMAKE
AM_SILENT_RULES([yes])
AC_PREFIX_DEFAULT([/usr])

AC_PROG_LIBTOOL
AC_PROG_CC

if test -f /usr/bin/lsb_release  && test `lsb_release -si` == "Ubuntu"  && test `lsb_release -sr` == "14.04"  && test -d /usr/lib/jvm/java-8-openjdk-amd64/ ; then
    JAVA_HOME=/usr/lib/jvm/java-8-openjdk-amd64/
    JAVAC=${JAVA_HOME}/bin/javac
    PATH=${JAVA_HOME}/bin/:${PATH}
    break
fi

AX_CHECK_JAVA_HOME
AX_PROG_JAVAC
AX_PROG_JAVAH
AX_PROG_JAR
AX_PROG_JAVADOC
AX_PROG_JAVA

AC_ARG_WITH(dpdk,
            AC_HELP_STRING([--with-dpdk],[Use DPDK]),
            [with_dpdk=1],
            [with_dpdk=0])

AM_CONDITIONAL(WITH_DPDK, test "$with_dpdk" = "1")
AC_SUBST(DPDK,["-DDPDK=${with_dpdk}"])

AC_OUTPUT([Makefile])