build: improve pcap dependency handling
authorLuca Boccassi <luca.boccassi@microsoft.com>
Tue, 26 Feb 2019 17:46:37 +0000 (17:46 +0000)
committerThomas Monjalon <thomas@monjalon.net>
Fri, 1 Mar 2019 13:19:56 +0000 (14:19 +0100)
commit3ce6474b22473860081aa76477b75c302c78afc7
treeece55df640f555c325fedac0d70e53da389856eb
parent6824f8a6411c278645b6496c9a2ee73bcef81863
build: improve pcap dependency handling

pcap has historically shipped a custom pcap-config binary tool which
does the job of pkg-config. It was never compatible with cross
compilation.
Meson uses it when using dependency(), which then means cross
compilation fails.
Set pcap-config to empty in the meson cross compilation files so
that Meson will not use it, and add a fallback in case
dependency() fails.
libpcap 1.9.0 finally ships a pkg-config file so everything will
work out of the box in the future.

Signed-off-by: Luca Boccassi <luca.boccassi@microsoft.com>
config/arm/arm64_armv8_linuxapp_gcc
config/arm/arm64_dpaa2_linuxapp_gcc
config/arm/arm64_dpaa_linuxapp_gcc
config/arm/arm64_thunderx_linuxapp_gcc
drivers/net/pcap/meson.build