Damjan Marion | cc4a5e8 | 2018-07-30 16:10:14 +0200 | [diff] [blame^] | 1 | AC_INIT(japi, 18.10) |
| 2 | LT_INIT |
| 3 | AM_INIT_AUTOMAKE |
| 4 | AM_SILENT_RULES([yes]) |
| 5 | AC_PREFIX_DEFAULT([/usr]) |
| 6 | |
| 7 | PKG_CHECK_MODULES([CHECK], [check], [HAVE_CHECK=1], [HAVE_CHECK=0]) |
| 8 | AM_CONDITIONAL([USE_CHECK],[test "$HAVE_CHECK" -eq 1]) |
| 9 | |
| 10 | AC_PROG_CC |
| 11 | AC_PROG_CXX |
| 12 | |
| 13 | AM_CONDITIONAL(ENABLE_ACL_PLUGIN, test "yes" = "yes") |
| 14 | AM_CONDITIONAL(ENABLE_NAT_PLUGIN, test "yes" = "yes") |
| 15 | AM_CONDITIONAL(ENABLE_L2E_PLUGIN, test "yes" = "yes") |
| 16 | AM_CONDITIONAL(ENABLE_GBP_PLUGIN, test "yes" = "yes") |
| 17 | AM_CONDITIONAL(ENABLE_PPPOE_PLUGIN, test "yes" = "yes") |
| 18 | AM_CONDITIONAL(ENABLE_GTPU_PLUGIN, test "yes" = "yes") |
| 19 | AM_CONDITIONAL(ENABLE_IOAM_PLUGIN, test "yes" = "yes") |
| 20 | |
| 21 | AX_VPP_FIND_JDK8 |
| 22 | AC_SUBST(JAVA_HOME) |
| 23 | AC_SUBST(JAVAC) |
| 24 | AC_SUBST(JAVAH) |
| 25 | AC_SUBST(JAR) |
| 26 | |
| 27 | AS_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 | ) |
| 32 | AC_SUBST([CPU_FLAGS]) |
| 33 | |
| 34 | AC_OUTPUT([Makefile java/Makefile]) |
| 35 | |
| 36 | AC_CONFIG_MACRO_DIR([m4]) |