ring: remove unnecessary forward declaration
[dpdk.git] / drivers / net / mlx4 / meson.build
index de02070..2540489 100644 (file)
@@ -13,14 +13,17 @@ if pmd_dlopen
                '-DMLX4_GLUE_VERSION="@0@"'.format(LIB_GLUE_VERSION),
        ]
 endif
-libs = [
-       dependency('libmnl', required:false),
-       dependency('libmlx4', required:false),
-       dependency('libibverbs', required:false),
-]
+libnames = [ 'mnl', 'mlx4', 'ibverbs' ]
+libs = []
 build = true
-foreach lib:libs
+foreach libname:libnames
+       lib = dependency('lib' + libname, required:false)
        if not lib.found()
+               lib = cc.find_library(libname, required:false)
+       endif
+       if lib.found()
+               libs += [ lib ]
+       else
                build = false
        endif
 endforeach