net/pcap: fix cross compilation with meson
authorBruce Richardson <bruce.richardson@intel.com>
Fri, 15 Dec 2017 17:19:26 +0000 (17:19 +0000)
committerBruce Richardson <bruce.richardson@intel.com>
Tue, 30 Jan 2018 20:58:59 +0000 (21:58 +0100)
commitd1e4a5b7320905f025e7caea685708b5eea37456
tree476adeebdce5ebeadd1f6e84ac4a4417700a4325
parentb114af1603db1e955c7efc94370b1d83bbb8f31f
net/pcap: fix cross compilation with meson

The detection of pcap as a dependency involves invoking pcap-config to get
parameters - something not possible in a cross-compilation environment.
Therefore we need to just look for the presence of the library in a
cross-compilation environment and assume if the library is present we can
compile and link against it.

Fixes: efd5d1a8d8dd ("drivers/net: build some vdev PMDs with meson")

Signed-off-by: Bruce Richardson <bruce.richardson@intel.com>
Acked-by: Luca Boccassi <bluca@debian.org>
drivers/net/pcap/meson.build