From: Fabrice Fontaine Date: Fri, 11 Oct 2019 08:55:51 +0000 (+0200) Subject: configure.ac: fix static build with pcap X-Git-Tag: suricata-5.0.0~6 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=b026fbb519bf5822433bcda281316d6156db19e4;p=thirdparty%2Fsuricata.git configure.ac: fix static build with pcap pcap can depends on nl-3 so use pkg-config to find these dependencies otherwise all AC_CHECK_LIB calls will fail when building statically Signed-off-by: Fabrice Fontaine --- diff --git a/configure.ac b/configure.ac index dd61cc8558..57b0053eaf 100644 --- a/configure.ac +++ b/configure.ac @@ -1273,6 +1273,7 @@ AC_CHECK_HEADERS([pcap.h pcap/pcap.h pcap/bpf.h]) LIBPCAP="" + PKG_CHECK_MODULES([PCAP],libpcap,[CPPFLAGS="${CPPFLAGS} ${PCAP_CFLAGS}" LIBS="${LIBS} ${PCAP_LIBS}"],[:]) AC_CHECK_LIB(${PCAP_LIB_NAME}, pcap_open_live,, LIBPCAP="no") if test "$LIBPCAP" = "no"; then echo