LibIpsecMB is required to enable the use of vdev cryptodev devices in DPDK. This patch adds a condition to check for the library when it is detected that ONFIG_RTE_LIBRTE_PMD_AESNI_MB=y is enabled in the DPDK config.
Signed-off-by: Ian Stokes <ian.sto...@intel.com> --- acinclude.m4 | 13 +++++++++++++ 1 files changed, 13 insertions(+), 0 deletions(-) diff --git a/acinclude.m4 b/acinclude.m4 index aeb594a..8c14367 100644 --- a/acinclude.m4 +++ b/acinclude.m4 @@ -271,6 +271,19 @@ AC_DEFUN([OVS_CHECK_DPDK], [ ], [], [AC_DEFINE([DPDK_PDUMP], [1], [DPDK pdump enabled in OVS.])]) ]) + AC_COMPILE_IFELSE([ + AC_LANG_PROGRAM( + [ + #include <rte_config.h> +#if RTE_LIBRTE_PMD_AESNI_MB +#error +#endif + ], []) + ], [], + [AC_SEARCH_LIBS([init_mb_mgr_sse],[IPSec_MB],[],[AC_MSG_ERROR([unable to find lib_IPSec_MB in ${LDFLAGS}, install the dependency package])]) + DPDK_EXTRA_LIB="-lIPSec_MB" + AC_DEFINE([PMD_AESNI_MB], [1], [PMD_AESNI_MB support detected in DPDK.])]) + # On some systems we have to add -ldl to link with dpdk # -- 1.7.0.7 _______________________________________________ dev mailing list d...@openvswitch.org https://mail.openvswitch.org/mailman/listinfo/ovs-dev