]> git.proxmox.com Git - mirror_ovs.git/commitdiff
acinclude: Include libverbs and libmlx4 when needed
authorEli Britstein <elibr@mellanox.com>
Mon, 11 Feb 2019 11:32:34 +0000 (13:32 +0200)
committerIan Stokes <ian.stokes@intel.com>
Mon, 18 Feb 2019 16:09:31 +0000 (16:09 +0000)
DPDK 18.11 uses libverbs and libmlx4 when MLX4 PMD is enabled.

This commit makes OVS to link to libverbs and libmlx4 when MLX4 PMD is
enabled on DPDK.

Signed-off-by: Eli Britstein <elibr@mellanox.com>
Reviewed-by: Asaf Penso <asafp@mellanox.com>
Acked-by: Flavio Leitner <fbl@sysclose.org>
Acked-by: Ilya Maximets <i.maximets@samsung.com>
Signed-off-by: Ian Stokes <ian.stokes@intel.com>
acinclude.m4

index de3b04e39e4843e8068294b480c04d67fe589f61..c7a95ca12071edf1ac649d74261120f158e63965 100644 (file)
@@ -312,12 +312,26 @@ AC_DEFUN([OVS_CHECK_DPDK], [
       ], [],
       [AC_SEARCH_LIBS([mlx5dv_create_wq],[mlx5],[],[AC_MSG_ERROR([unable to find libmlx5, install the dependency package])])])
 
+    AC_COMPILE_IFELSE([
+      AC_LANG_PROGRAM(
+        [
+          #include <rte_config.h>
+#if defined(RTE_LIBRTE_MLX4_PMD) && !defined(RTE_LIBRTE_MLX4_DLOPEN_DEPS)
+#error
+#endif
+        ], [])
+      ], [],
+      [AC_SEARCH_LIBS([mlx4dv_init_obj],[mlx4],[],[AC_MSG_ERROR([unable to find libmlx4, install the dependency package])])])
+
     AC_COMPILE_IFELSE([
       AC_LANG_PROGRAM(
         [
           #include <rte_config.h>
 #if defined(RTE_LIBRTE_MLX5_PMD) && !defined(RTE_LIBRTE_MLX5_DLOPEN_DEPS)
 #error
+#endif
+#if defined(RTE_LIBRTE_MLX4_PMD) && !defined(RTE_LIBRTE_MLX4_DLOPEN_DEPS)
+#error
 #endif
         ], [])
       ], [],