do not use -ldpdk for configure check
authorLuca Boccassi <bluca@debian.org>
Sat, 6 Apr 2019 12:21:09 +0000 (13:21 +0100)
committerChris Hofstaedtler <zeha@debian.org>
Sat, 6 Apr 2019 12:21:09 +0000 (13:21 +0100)
commit353dafe479a3481bec8d040c78555692ecdc4b77
tree85cb110325f4031d69d15dbf63e6e828be79c608
parentacde2c34be3a7833103e5017354d44ef568ca827
do not use -ldpdk for configure check

Origin: https://github.com/collectd/collectd/commit/b29454cdf22a197924d35bb2da0840df9cbd65f6
Forwarded: https://github.com/collectd/collectd/pull/3015

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.

Gbp-Pq: Name dpdk_configure_check.patch
configure.ac