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)
committerLuca Boccassi <bluca@debian.org>
Thu, 6 Dec 2018 16:10:12 +0000 (16:10 +0000)
commitdcddb48f386aea329fcd68e4ff677ab7ccbf2611
tree7cb7160614fecdea473a93de349d2a7363cef026
parent24f584d35cde7f891c57a14f139596fa8b8b9ef0
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