Chris Luke | 7c6df39 | 2018-04-04 16:41:56 -0400 | [diff] [blame] | 1 | AC_INIT([vpp], [18.07], [vpp-dev@fd.io]) |
Damjan Marion | 7cd468a | 2016-12-19 23:05:39 +0100 | [diff] [blame] | 2 | LT_INIT |
| 3 | AC_CONFIG_AUX_DIR([.]) |
| 4 | AM_INIT_AUTOMAKE([subdir-objects]) |
| 5 | AM_SILENT_RULES([yes]) |
Damjan Marion | 164e5f8 | 2018-04-25 19:11:15 +0200 | [diff] [blame] | 6 | AC_CONFIG_FILES([Makefile plugins/Makefile vpp-api/python/Makefile vpp-api/java/Makefile vpp-api/vapi/Makefile]) |
Damjan Marion | cb034b9 | 2016-12-28 18:38:59 +0100 | [diff] [blame] | 7 | AC_CONFIG_MACRO_DIR([m4]) |
Damjan Marion | 7cd468a | 2016-12-19 23:05:39 +0100 | [diff] [blame] | 8 | |
| 9 | AC_PROG_CC |
Neale Ranns | 812ed39 | 2017-10-16 04:20:13 -0700 | [diff] [blame] | 10 | AC_PROG_CPP |
Damjan Marion | 7cd468a | 2016-12-19 23:05:39 +0100 | [diff] [blame] | 11 | AM_PROG_AS |
| 12 | AM_PROG_LIBTOOL |
Tomofumi Hayashi | dc90d42 | 2017-01-25 13:53:26 +0900 | [diff] [blame] | 13 | AM_PATH_PYTHON |
Damjan Marion | 7cd468a | 2016-12-19 23:05:39 +0100 | [diff] [blame] | 14 | |
Damjan Marion | 0be5ec3 | 2016-12-28 17:51:56 +0100 | [diff] [blame] | 15 | AM_CONDITIONAL([CROSSCOMPILE], [test "$cross_compiling" == "yes"]) |
| 16 | |
Damjan Marion | 7cd468a | 2016-12-19 23:05:39 +0100 | [diff] [blame] | 17 | ############################################################################### |
| 18 | # Macros |
| 19 | ############################################################################### |
| 20 | |
| 21 | AC_DEFUN([ENABLE_ARG], |
| 22 | [ |
| 23 | AC_ARG_ENABLE($1, |
| 24 | AC_HELP_STRING(patsubst([--enable-$1],[_],[-]), $2), |
| 25 | [enable_$1=yes n_enable_$1=1], |
| 26 | [enable_$1=no n_enable_$1=0]) |
| 27 | AM_CONDITIONAL(m4_toupper(ENABLE_$1), test "$enable_$1" = "yes") |
| 28 | m4_append([list_of_enabled], [$1], [, ]) |
| 29 | ]) |
| 30 | |
| 31 | AC_DEFUN([DISABLE_ARG], |
| 32 | [ |
| 33 | AC_ARG_ENABLE($1, |
| 34 | AC_HELP_STRING(patsubst([--disable-$1],[_],[-]), $2), |
| 35 | [enable_$1=no n_enable_$1=0], |
| 36 | [enable_$1=yes n_enable_$1=1]) |
| 37 | AM_CONDITIONAL(m4_toupper(ENABLE_$1), test "$enable_$1" = "yes") |
| 38 | m4_append([list_of_enabled], [$1], [, ]) |
| 39 | ]) |
| 40 | |
| 41 | AC_DEFUN([WITH_ARG], |
| 42 | [ |
| 43 | AC_ARG_WITH($1, |
| 44 | AC_HELP_STRING(patsubst([--with-$1],[_],[-]), $2), |
| 45 | [with_$1=yes n_with_$1=1], |
| 46 | [with_$1=no n_with_$1=0]) |
| 47 | AM_CONDITIONAL(m4_toupper(WITH_$1), test "$with_$1" = "yes") |
| 48 | m4_append([list_of_with], [$1], [, ]) |
| 49 | ]) |
| 50 | |
| 51 | AC_DEFUN([WITHOUT_ARG], |
| 52 | [ |
| 53 | AC_ARG_WITH($1, |
| 54 | AC_HELP_STRING(patsubst([--without-$1],[_],[-]), $2), |
| 55 | [with_$1=no n_with_$1=0], |
| 56 | [with_$1=yes n_with_$1=1]) |
| 57 | AM_CONDITIONAL(m4_toupper(WITH_$1), test "$with_$1" = "yes") |
| 58 | m4_append([list_of_with], [$1], [, ]) |
| 59 | ]) |
| 60 | |
| 61 | AC_DEFUN([PLUGIN_ENABLED], |
| 62 | [ |
| 63 | AC_ARG_ENABLE($1_plugin, |
| 64 | AC_HELP_STRING([--disable-$1-plugin], [Do not build $1 plugin]), |
| 65 | [enable_$1_plugin=no], |
| 66 | [enable_$1_plugin=yes ]) |
| 67 | AM_CONDITIONAL(m4_toupper(ENABLE_$1_PLUGIN), test "$enable_$1_plugin" = "yes") |
| 68 | m4_append([list_of_plugins], [$1], [, ]) |
| 69 | ]) |
| 70 | |
| 71 | AC_DEFUN([PLUGIN_DISABLED], |
| 72 | [ |
| 73 | AC_ARG_ENABLE($1_plugin, |
| 74 | AC_HELP_STRING([--enable-$1-plugin], [Build $1 plugin]), |
| 75 | [enable_$1_plugin=yes ], |
| 76 | [enable_$1_plugin=no]) |
Pablo Camarillo | a084d62 | 2017-03-03 20:47:55 +0100 | [diff] [blame] | 77 | AM_CONDITIONAL(m4_toupper(ENABLE_$1_PLUGIN), test "$enable_$1_plugin" = "yes") |
Damjan Marion | 7cd468a | 2016-12-19 23:05:39 +0100 | [diff] [blame] | 78 | m4_append([list_of_plugins], [$1], [, ]) |
| 79 | ]) |
| 80 | |
| 81 | AC_DEFUN([PRINT_VAL], [ AC_MSG_RESULT(AC_HELP_STRING($1,$2)) ]) |
| 82 | |
Sergio Gonzalez Monroy | 3b12cdc | 2017-06-06 15:29:16 +0100 | [diff] [blame] | 83 | AC_DEFUN([DPDK_IS_PMD_ENABLED], |
| 84 | [ |
| 85 | AC_MSG_CHECKING([for $1 in rte_config.h]) |
| 86 | AC_COMPILE_IFELSE( |
| 87 | [AC_LANG_PROGRAM( |
| 88 | [[#include <rte_config.h>]], |
| 89 | [[return RTE_$1;]], |
| 90 | )], |
| 91 | [with_$2=yes] |
| 92 | [AC_MSG_RESULT([yes])], |
| 93 | [with_$2=no] |
| 94 | [AC_MSG_RESULT([no])] |
| 95 | ) |
| 96 | AM_CONDITIONAL(m4_toupper(WITH_$2), test "$with_$2" = "yes") |
| 97 | m4_append_uniq([list_of_with], [$2], [, ]) |
| 98 | ]) |
| 99 | |
Damjan Marion | 04f3db3 | 2017-11-10 21:55:45 +0100 | [diff] [blame] | 100 | # Check if compiler supports specific flag |
| 101 | AC_DEFUN([CC_CHECK_FLAG], |
| 102 | [ |
| 103 | AC_MSG_CHECKING([if $CC supports $1]) |
| 104 | AC_LANG_PUSH([C]) |
| 105 | ac_saved_cflags="$CFLAGS" |
| 106 | CFLAGS="-Werror $1" |
| 107 | AC_COMPILE_IFELSE([AC_LANG_PROGRAM([])], |
Damjan Marion | bf024e6 | 2017-11-14 15:21:19 +0100 | [diff] [blame] | 108 | [cc_flag_check=yes], |
| 109 | [cc_flag_check=no] |
Damjan Marion | 04f3db3 | 2017-11-10 21:55:45 +0100 | [diff] [blame] | 110 | ) |
Damjan Marion | eecb26d | 2017-11-15 13:57:20 +0100 | [diff] [blame] | 111 | AC_MSG_RESULT([$cc_flag_check]) |
Damjan Marion | 04f3db3 | 2017-11-10 21:55:45 +0100 | [diff] [blame] | 112 | CFLAGS="$ac_saved_cflags" |
| 113 | AC_LANG_POP([C]) |
| 114 | ]) |
| 115 | |
Damjan Marion | 7cd468a | 2016-12-19 23:05:39 +0100 | [diff] [blame] | 116 | ############################################################################### |
| 117 | # configure arguments |
| 118 | ############################################################################### |
| 119 | |
| 120 | # --enable-X |
| 121 | ENABLE_ARG(tests, [Enable unit tests]) |
| 122 | ENABLE_ARG(dpdk_shared, [Enable unit tests]) |
| 123 | ENABLE_ARG(perftool, [Enable perftool]) |
| 124 | ENABLE_ARG(g2, [Enable g2]) |
| 125 | |
| 126 | # --disable-X |
| 127 | DISABLE_ARG(vlib, [Disable vlib and dependant libs and binaries]) |
| 128 | DISABLE_ARG(svm, [Disable svm and dependant libs and binaries]) |
Damjan Marion | cb034b9 | 2016-12-28 18:38:59 +0100 | [diff] [blame] | 129 | DISABLE_ARG(papi, [Disable Python API bindings]) |
| 130 | DISABLE_ARG(japi, [Disable Java API bindings]) |
Damjan Marion | 7cd468a | 2016-12-19 23:05:39 +0100 | [diff] [blame] | 131 | |
| 132 | # --with-X |
Damjan Marion | 7cd468a | 2016-12-19 23:05:39 +0100 | [diff] [blame] | 133 | |
| 134 | # --without-X |
Damjan Marion | a9a951f | 2017-01-16 22:06:10 +0100 | [diff] [blame] | 135 | WITHOUT_ARG(libssl, [Disable libssl]) |
Damjan Marion | 7cd468a | 2016-12-19 23:05:39 +0100 | [diff] [blame] | 136 | WITHOUT_ARG(apicli, [Disable binary api CLI]) |
Florin Coras | 371ca50 | 2018-02-21 12:07:41 -0800 | [diff] [blame] | 137 | WITHOUT_ARG(mbedtls, [Disable mbedtls]) |
Sachin Saxena | ee6ddce | 2018-05-10 16:22:09 +0530 | [diff] [blame] | 138 | WITHOUT_ARG(libnuma, [for non numa architectures]) |
Damjan Marion | 7cd468a | 2016-12-19 23:05:39 +0100 | [diff] [blame] | 139 | |
| 140 | AC_ARG_WITH(unix, |
| 141 | AC_HELP_STRING([--with-unix],[Compile unix version of clib]), |
| 142 | [], |
| 143 | [case $host_os in |
| 144 | darwin* | linux*) with_unix=yes;; |
| 145 | *) with_unix=no;; |
| 146 | esac]) |
| 147 | |
| 148 | AM_CONDITIONAL(WITH_UNIX, test "$with_unix" = "yes") |
| 149 | |
| 150 | AC_ARG_WITH(pre-data, |
| 151 | AC_HELP_STRING([--with-pre-data],[Set buffer rewrite space]), |
| 152 | [case $with_pre_data in |
| 153 | 128) ;; |
| 154 | 256) ;; |
| 155 | *) with_pre_data="pre-data-not-set" ;; |
| 156 | esac], [with_pre_data=128]) |
| 157 | |
| 158 | ############################################################################### |
Damjan Marion | ba3c773 | 2017-11-10 20:26:50 +0100 | [diff] [blame] | 159 | # Target CPU flags |
| 160 | ############################################################################### |
| 161 | |
Damjan Marion | 04f3db3 | 2017-11-10 21:55:45 +0100 | [diff] [blame] | 162 | # Check if compiler supports march=core-avx2 |
| 163 | CC_CHECK_FLAG("-march=core-avx2") |
| 164 | AS_IF([test "$cc_flag_check" = yes], |
| 165 | [march_core_avx2=yes], |
| 166 | [march_core_avx2=no]) |
| 167 | AM_CONDITIONAL([CC_SUPPORTS_AVX2], [test "$march_core_avx2" = "yes"]) |
| 168 | |
| 169 | # Check if compiler supports march=skylake-avx512 |
| 170 | CC_CHECK_FLAG("-march=skylake-avx512") |
| 171 | AS_IF([test "$cc_flag_check" = yes], |
| 172 | [march_skylake_avx512=yes], |
| 173 | [march_skylake_avx512=no]) |
| 174 | AM_CONDITIONAL([CC_SUPPORTS_AVX512], [test "$march_skylake_avx512" = "yes"]) |
| 175 | |
Sachin Saxena | 432bf67 | 2018-05-04 15:08:29 +0530 | [diff] [blame] | 176 | AS_CASE([$host_cpu], |
Damjan Marion | ba3c773 | 2017-11-10 20:26:50 +0100 | [diff] [blame] | 177 | [x86_64], [CPU_FLAGS="-march=corei7 -mtune=corei7-avx"], |
| 178 | [aarch64], [CPU_FLAGS="-march=armv8-a+crc"], |
| 179 | [CPU_FLAGS=""], |
| 180 | ) |
| 181 | AC_SUBST([CPU_FLAGS]) |
| 182 | |
Damjan Marion | 04f3db3 | 2017-11-10 21:55:45 +0100 | [diff] [blame] | 183 | AC_SUBST([CPU_AVX2_FLAGS],"-march=core-avx2 -mtune=core-avx2") |
| 184 | AC_SUBST([CPU_AVX512_FLAGS],"-march=skylake-avx512 -mtune=skylake-avx512") |
| 185 | |
Sachin Saxena | 432bf67 | 2018-05-04 15:08:29 +0530 | [diff] [blame] | 186 | AM_CONDITIONAL([CPU_X86_64], [test "$host_cpu" = "x86_64"]) |
| 187 | AM_CONDITIONAL([CPU_AARCH64], [test "$host_cpu" = "aarch64"]) |
Damjan Marion | 04f3db3 | 2017-11-10 21:55:45 +0100 | [diff] [blame] | 188 | |
Damjan Marion | ba3c773 | 2017-11-10 20:26:50 +0100 | [diff] [blame] | 189 | ############################################################################### |
Damjan Marion | 74a6dab | 2018-03-26 13:36:46 +0200 | [diff] [blame] | 190 | # misc compiler flags |
| 191 | ############################################################################### |
| 192 | |
| 193 | CC_CHECK_FLAG("-Wno-address-of-packed-member") |
| 194 | AS_IF([test "$cc_flag_check" = yes], |
| 195 | [CFLAGS="${CFLAGS} -Wno-address-of-packed-member"], []) |
| 196 | |
| 197 | ############################################################################### |
Damjan Marion | 7cd468a | 2016-12-19 23:05:39 +0100 | [diff] [blame] | 198 | # Substitutions and defines |
| 199 | ############################################################################### |
| 200 | |
| 201 | AC_SUBST(PRE_DATA_SIZE, [$with_pre_data]) |
| 202 | AC_SUBST(APICLI, [-DVPP_API_TEST_BUILTIN=${n_with_apicli}]) |
| 203 | |
Damjan Marion | 7cd468a | 2016-12-19 23:05:39 +0100 | [diff] [blame] | 204 | AC_DEFINE_UNQUOTED(DPDK_SHARED_LIB, [${n_enable_dpdk_shared}]) |
Damjan Marion | a9a951f | 2017-01-16 22:06:10 +0100 | [diff] [blame] | 205 | AC_DEFINE_UNQUOTED(WITH_LIBSSL, [${n_with_libssl}]) |
Florin Coras | 371ca50 | 2018-02-21 12:07:41 -0800 | [diff] [blame] | 206 | AC_DEFINE_UNQUOTED(WITH_MBEDTLS, [${n_with_mbedtls}]) |
Sachin Saxena | ee6ddce | 2018-05-10 16:22:09 +0530 | [diff] [blame] | 207 | AC_DEFINE_UNQUOTED(WITH_LIBNUMA, [${n_with_libnuma}]) |
Damjan Marion | 7cd468a | 2016-12-19 23:05:39 +0100 | [diff] [blame] | 208 | |
Damjan Marion | cb034b9 | 2016-12-28 18:38:59 +0100 | [diff] [blame] | 209 | |
| 210 | # Silence following noise: |
| 211 | # ar: `u' modifier ignored since `D' is the default (see `U') |
| 212 | AR_FLAGS=cr |
| 213 | AC_SUBST(AR_FLAGS) |
| 214 | |
| 215 | ############################################################################### |
| 216 | # Plugins |
| 217 | ############################################################################### |
| 218 | |
| 219 | # Please keep alphabetical order |
Andrew Yourtchenko | 669d07d | 2017-11-17 14:38:18 +0100 | [diff] [blame] | 220 | PLUGIN_ENABLED(abf) |
Damjan Marion | cb034b9 | 2016-12-28 18:38:59 +0100 | [diff] [blame] | 221 | PLUGIN_ENABLED(acl) |
Damjan Marion | b4ff07a | 2018-02-07 22:35:06 +0100 | [diff] [blame] | 222 | PLUGIN_ENABLED(avf) |
Dave Barach | aaacfbc | 2018-03-10 14:57:00 -0500 | [diff] [blame] | 223 | PLUGIN_ENABLED(cdp) |
Damjan Marion | 374e2c5 | 2017-03-09 20:38:15 +0100 | [diff] [blame] | 224 | PLUGIN_ENABLED(dpdk) |
Ole Troan | 5c74973 | 2017-03-13 13:39:52 +0100 | [diff] [blame] | 225 | PLUGIN_ENABLED(flowprobe) |
Neale Ranns | 7758bf6 | 2018-02-14 06:34:20 -0800 | [diff] [blame] | 226 | PLUGIN_ENABLED(gbp) |
Hongjun Ni | ef486b1 | 2017-04-12 19:21:16 +0800 | [diff] [blame] | 227 | PLUGIN_ENABLED(gtpu) |
Jakub Grajciar | 7b867a8 | 2017-12-08 16:28:42 +0100 | [diff] [blame] | 228 | PLUGIN_ENABLED(igmp) |
Damjan Marion | cb034b9 | 2016-12-28 18:38:59 +0100 | [diff] [blame] | 229 | PLUGIN_ENABLED(ila) |
| 230 | PLUGIN_ENABLED(ioam) |
Damjan Marion | 374e2c5 | 2017-03-09 20:38:15 +0100 | [diff] [blame] | 231 | PLUGIN_ENABLED(ixge) |
Neale Ranns | 7758bf6 | 2018-02-14 06:34:20 -0800 | [diff] [blame] | 232 | PLUGIN_ENABLED(l2e) |
Steven | 9cd2d7a | 2017-12-20 12:43:01 -0800 | [diff] [blame] | 233 | PLUGIN_ENABLED(lacp) |
Damjan Marion | cb034b9 | 2016-12-28 18:38:59 +0100 | [diff] [blame] | 234 | PLUGIN_ENABLED(lb) |
Damjan Marion | 92cdd72 | 2017-12-26 13:40:13 +0000 | [diff] [blame] | 235 | PLUGIN_ENABLED(marvell) |
Damjan Marion | eaabe07 | 2017-03-22 10:18:13 +0100 | [diff] [blame] | 236 | PLUGIN_ENABLED(memif) |
Hongjun Ni | 62f9cdd | 2017-07-04 20:11:57 +0800 | [diff] [blame] | 237 | PLUGIN_ENABLED(pppoe) |
Neale Ranns | 7758bf6 | 2018-02-14 06:34:20 -0800 | [diff] [blame] | 238 | PLUGIN_ENABLED(nat) |
Francois Clad | b4d43d7 | 2018-01-17 12:18:41 +0100 | [diff] [blame] | 239 | PLUGIN_ENABLED(srv6ad) |
Francois Clad | 39d91fe | 2018-01-17 16:08:41 +0100 | [diff] [blame] | 240 | PLUGIN_ENABLED(srv6am) |
Francois Clad | ba7992a | 2018-01-16 17:52:24 +0100 | [diff] [blame] | 241 | PLUGIN_ENABLED(srv6as) |
Pierre Pfister | 0906c5c | 2017-09-27 16:17:31 +0200 | [diff] [blame] | 242 | PLUGIN_ENABLED(stn) |
Florin Coras | d77eee6 | 2018-03-07 08:49:27 -0800 | [diff] [blame] | 243 | PLUGIN_ENABLED(tlsmbedtls) |
Florin Coras | 58d36f0 | 2018-03-09 13:05:53 -0800 | [diff] [blame] | 244 | PLUGIN_ENABLED(tlsopenssl) |
Damjan Marion | cb034b9 | 2016-12-28 18:38:59 +0100 | [diff] [blame] | 245 | |
Damjan Marion | 7cd468a | 2016-12-19 23:05:39 +0100 | [diff] [blame] | 246 | ############################################################################### |
| 247 | # Dependency checks |
| 248 | ############################################################################### |
Marco Varlese | 3f6ede3 | 2018-03-06 08:09:04 +0100 | [diff] [blame] | 249 | AC_CHECK_FUNC([memfd_create], [AC_DEFINE([HAVE_MEMFD_CREATE], [1], [Define if memfd exists])]) |
Damjan Marion | 7cd468a | 2016-12-19 23:05:39 +0100 | [diff] [blame] | 250 | |
| 251 | AM_COND_IF([ENABLE_DPDK_SHARED], |
| 252 | [ |
| 253 | AC_CHECK_HEADERS([rte_config.h], |
| 254 | [], |
| 255 | [AC_MSG_ERROR([DPDK header files not found])],) |
| 256 | AC_CHECK_LIB( [dpdk], [rte_eal_init], |
| 257 | [], |
| 258 | [AC_MSG_ERROR([DPDK shared library not found])],) |
| 259 | ]) |
| 260 | |
Sergio Gonzalez Monroy | acdc306 | 2017-08-24 14:09:17 +0100 | [diff] [blame] | 261 | with_aesni_mb_lib=no |
| 262 | with_isa_l_crypto_lib=no |
| 263 | |
Sergio Gonzalez Monroy | 3b12cdc | 2017-06-06 15:29:16 +0100 | [diff] [blame] | 264 | DPDK_IS_PMD_ENABLED(LIBRTE_PMD_AESNI_MB, dpdk_aesni_mb_pmd) |
Sergio Gonzalez Monroy | acdc306 | 2017-08-24 14:09:17 +0100 | [diff] [blame] | 265 | DPDK_IS_PMD_ENABLED(LIBRTE_PMD_AESNI_GCM, dpdk_aesni_gcm_pmd) |
| 266 | |
Sergio Gonzalez Monroy | 3b12cdc | 2017-06-06 15:29:16 +0100 | [diff] [blame] | 267 | AM_COND_IF([WITH_DPDK_AESNI_MB_PMD], |
| 268 | [ |
Sergio Gonzalez Monroy | acdc306 | 2017-08-24 14:09:17 +0100 | [diff] [blame] | 269 | AC_CHECK_LIB([IPSec_MB], [submit_job_sse], |
| 270 | [with_aesni_mb_lib=yes], |
Sergio Gonzalez Monroy | 3b12cdc | 2017-06-06 15:29:16 +0100 | [diff] [blame] | 271 | [AC_MSG_ERROR([IPSec_MB library not found])]) |
| 272 | ]) |
| 273 | |
Sergio Gonzalez Monroy | 3b12cdc | 2017-06-06 15:29:16 +0100 | [diff] [blame] | 274 | AM_COND_IF([WITH_DPDK_AESNI_GCM_PMD], |
| 275 | [ |
Damjan Marion | 45b4850 | 2017-11-17 09:46:41 +0100 | [diff] [blame] | 276 | AC_CHECK_LIB([IPSec_MB], [submit_job_sse], |
| 277 | [with_aesni_mb_lib=yes], |
| 278 | [AC_MSG_ERROR([IPSec_MB library not found])]) |
Sergio Gonzalez Monroy | acdc306 | 2017-08-24 14:09:17 +0100 | [diff] [blame] | 279 | ]) |
| 280 | |
| 281 | m4_append([list_of_with], [aesni_mb_lib], [, ]) |
| 282 | AM_CONDITIONAL(WITH_AESNI_MB_LIB, test "$with_aesni_mb_lib" = "yes") |
| 283 | |
| 284 | m4_append([list_of_with], [isa_l_crypto_lib], [, ]) |
| 285 | AM_CONDITIONAL(WITH_ISA_L_CRYPTO_LIB, test "$with_isa_l_crypto_lib" = "yes") |
| 286 | |
Damjan Marion | 7cd468a | 2016-12-19 23:05:39 +0100 | [diff] [blame] | 287 | AM_COND_IF([ENABLE_G2], |
| 288 | [ |
| 289 | PKG_CHECK_MODULES(g2, gtk+-2.0) |
| 290 | ]) |
| 291 | |
Damjan Marion | 92cdd72 | 2017-12-26 13:40:13 +0000 | [diff] [blame] | 292 | AM_COND_IF([ENABLE_MARVELL_PLUGIN], |
| 293 | [ |
| 294 | AC_CHECK_LIB( [musdk], [pp2_init], |
| 295 | [], |
| 296 | [ |
| 297 | AC_MSG_WARN([Marvell MUSDK library with PP2 support not found. Plugin disabled.]) |
| 298 | enable_marvell_plugin=no |
| 299 | AM_CONDITIONAL(ENABLE_MARVELL_PLUGIN, false) |
| 300 | ]) |
| 301 | ]) |
| 302 | |
Florin Coras | d77eee6 | 2018-03-07 08:49:27 -0800 | [diff] [blame] | 303 | AM_COND_IF([WITH_MBEDTLS], [], |
| 304 | [ |
| 305 | AC_MSG_WARN([mbedtls not enabled. Disabling tlsmbedtls plugin]) |
| 306 | enable_tlsmbedtls_plugin=no |
| 307 | AM_CONDITIONAL(ENABLE_TLSMBEDTLS_PLUGIN, false) |
| 308 | ]) |
| 309 | |
| 310 | AM_COND_IF([ENABLE_TLSMBEDTLS_PLUGIN], |
Florin Coras | 371ca50 | 2018-02-21 12:07:41 -0800 | [diff] [blame] | 311 | [ |
| 312 | AC_CHECK_HEADERS([mbedtls/ssl.h], [], |
| 313 | [ |
Florin Coras | d77eee6 | 2018-03-07 08:49:27 -0800 | [diff] [blame] | 314 | AC_MSG_WARN([mbedtls headers not found. TLS engine implementation disabled]) |
| 315 | enable_tlsmbedtls_plugin=no |
| 316 | AM_CONDITIONAL(ENABLE_TLSMBEDTLS_PLUGIN, false) |
Florin Coras | 371ca50 | 2018-02-21 12:07:41 -0800 | [diff] [blame] | 317 | ], []) |
| 318 | ]) |
| 319 | |
Florin Coras | 58d36f0 | 2018-03-09 13:05:53 -0800 | [diff] [blame] | 320 | AM_COND_IF([WITH_LIBSSL], [], |
| 321 | [ |
| 322 | AC_MSG_WARN([openssl not enabled. Disabling tlsopenssl plugin]) |
| 323 | enable_tlsopenssl_plugin=no |
| 324 | AM_CONDITIONAL(ENABLE_TLSOPENSSL_PLUGIN, false) |
| 325 | ]) |
Florin Coras | d77eee6 | 2018-03-07 08:49:27 -0800 | [diff] [blame] | 326 | |
Damjan Marion | 7cd468a | 2016-12-19 23:05:39 +0100 | [diff] [blame] | 327 | ############################################################################### |
Damjan Marion | cb034b9 | 2016-12-28 18:38:59 +0100 | [diff] [blame] | 328 | # JAVA |
Damjan Marion | 7cd468a | 2016-12-19 23:05:39 +0100 | [diff] [blame] | 329 | ############################################################################### |
| 330 | |
Damjan Marion | cb034b9 | 2016-12-28 18:38:59 +0100 | [diff] [blame] | 331 | AM_COND_IF([ENABLE_JAPI], |
| 332 | [ |
| 333 | AX_VPP_FIND_JDK8 |
| 334 | AC_SUBST(JAVA_HOME) |
| 335 | AC_SUBST(JAVAC) |
| 336 | AC_SUBST(JAVAH) |
| 337 | AC_SUBST(JAR) |
| 338 | ]) |
Damjan Marion | 7cd468a | 2016-12-19 23:05:39 +0100 | [diff] [blame] | 339 | |
| 340 | ############################################################################### |
Ole Troan | 3cc4971 | 2017-03-08 12:02:24 +0100 | [diff] [blame] | 341 | # PYTHON |
| 342 | ############################################################################### |
| 343 | |
| 344 | AM_COND_IF([ENABLE_PAPI], |
| 345 | [ |
| 346 | AM_PATH_PYTHON |
| 347 | ]) |
| 348 | |
| 349 | ############################################################################### |
Damjan Marion | 7cd468a | 2016-12-19 23:05:39 +0100 | [diff] [blame] | 350 | # Output |
| 351 | ############################################################################### |
| 352 | |
| 353 | AC_OUTPUT |
| 354 | |
| 355 | AC_MSG_RESULT([==============================================================================]) |
| 356 | PRINT_VAL([version], $PACKAGE $VERSION) |
| 357 | PRINT_VAL([prefix], ${prefix}) |
| 358 | PRINT_VAL([libdir], ${libdir}) |
| 359 | PRINT_VAL([includedir], ${includedir}) |
| 360 | PRINT_VAL([CFLAGS], ${CFLAGS}) |
| 361 | PRINT_VAL([CPPFLAGS], ${CPPFLAGS}) |
| 362 | PRINT_VAL([LDFLAGS], ${LDFLAGS}) |
Damjan Marion | cb034b9 | 2016-12-28 18:38:59 +0100 | [diff] [blame] | 363 | AM_COND_IF([ENABLE_JAPI], |
| 364 | [ |
| 365 | PRINT_VAL([JAVA_VERSION], ${JAVA_VERSION}) |
| 366 | PRINT_VAL([JAVA_HOME], ${JAVA_HOME}) |
| 367 | ]) |
Damjan Marion | 7cd468a | 2016-12-19 23:05:39 +0100 | [diff] [blame] | 368 | |
| 369 | AC_MSG_RESULT([]) |
| 370 | AC_MSG_RESULT([with:]) |
| 371 | m4_foreach([x], m4_dquote(list_of_with), [ |
| 372 | AC_MSG_RESULT(AC_HELP_STRING(x, m4_join([], [${with_], x, [}]))) |
| 373 | ]) |
| 374 | |
| 375 | AC_MSG_RESULT([]) |
| 376 | AC_MSG_RESULT([enabled:]) |
| 377 | m4_foreach([x], m4_dquote(list_of_enabled), [ |
| 378 | AC_MSG_RESULT(AC_HELP_STRING(x, m4_join([], [${enable_], x, [}]))) |
| 379 | ]) |
| 380 | |
| 381 | AC_MSG_RESULT([]) |
| 382 | AC_MSG_RESULT([plugins:]) |
| 383 | m4_foreach([x], m4_dquote(list_of_plugins), [ |
| 384 | AC_MSG_RESULT(AC_HELP_STRING(x, m4_join([], [${enable_], x, [_plugin}]))) |
| 385 | ]) |
| 386 | AC_MSG_RESULT([==============================================================================]) |
| 387 | |
| 388 | |