configure.ac: run dpdk build tests only if pkgconfig fails
authorLuca Boccassi <bluca@debian.org>
Mon, 3 Dec 2018 15:56:13 +0000 (15:56 +0000)
committerPavel Rochnyack <pavel2000@ngs.ru>
Thu, 6 Dec 2018 17:05:19 +0000 (00:05 +0700)
commitb29454cdf22a197924d35bb2da0840df9cbd65f6
treeaec48bef079fa5c2d220b05d868807f483720f5d
parentd5a3c020d33cc33ee8049f54c7b4dffcd123bf83
configure.ac: run dpdk build tests only if pkgconfig fails

The AC_CHECK_LIB test runs unconditionally, and fails with DPDK 18.11
when built with Meson as there is no longer a libdpdk.so linker script,
but only a pkg-config file, so -ldpdk (which is what AC_CHECK_LIB runs)
fails.

Use AC_LINK_IFELSE instead, with compiler and linker flags set
appropriately.

Signed-off-by: Luca Boccassi <bluca@debian.org>
configure.ac