Index: fwknop-2.6.10/configure.ac
===================================================================
--- fwknop-2.6.10.orig/configure.ac
+++ fwknop-2.6.10/configure.ac
@@ -551,6 +551,14 @@ AS_IF([test "x$WGET_EXE" != x],
   ], [ wget_exe="(not found)"]
 )
 
+PCAP_LIBS=`pcap-config --libs`
+PCAP_CFLAGS=`pcap-config --cflags`
+AC_SUBST([PCAP_LIBS])
+AC_SUBST([PCAP_CFLAGS])
+
+LIBS+=" "$PCAP_LIBS
+LIBS+=" "$PCAP_CFLAGS
+
 dnl Check for libpcap, gdbm (or ndbm) if we are building the server component
 dnl
 AS_IF([test "$want_server" = yes], [
Index: fwknop-2.6.10/configure
===================================================================
--- fwknop-2.6.10.orig/configure
+++ fwknop-2.6.10/configure
@@ -659,6 +659,8 @@ MINGW_TRUE
 LIBOBJS
 NFQ_CAPTURE_FALSE
 NFQ_CAPTURE_TRUE
+PCAP_CFLAGS
+PCAP_LIBS
 UDP_SERVER_FALSE
 UDP_SERVER_TRUE
 WANT_C_UNIT_TESTS_FALSE
@@ -16395,6 +16397,12 @@ else
 
 fi
 
+PCAP_LIBS=`pcap-config --libs`
+PCAP_CFLAGS=`pcap-config --cflags`
+
+LIBS+=" "$PCAP_LIBS
+LIBS+=" "$PCAP_CFLAGS
+
 if test "$want_server" = yes; then :
 
 
