libdaq: moved to github
[packages.git] / net / snort / patches / 101-PCAP.patch
1 --- a/configure.in
2 +++ b/configure.in
3 @@ -401,16 +401,18 @@ if test "x$LPCAP" = "xno"; then
4  fi
5  
6  AC_MSG_CHECKING([for pcap_lex_destroy])
7 -AC_RUN_IFELSE(
8 -[AC_LANG_PROGRAM(
9 -[[
10 -#include <pcap.h>
11 -]],
12 -[[
13 -   pcap_lex_destroy();
14 -]])],
15 -[have_pcap_lex_destroy="yes"],
16 -[have_pcap_lex_destroy="no"])
17 +have_pcap_lex_destroy="yes"
18 +#AC_RUN_IFELSE(
19 +#[AC_LANG_PROGRAM(
20 +#[[
21 +##include <pcap.h>
22 +#]],
23 +#[[
24 +#   pcap_lex_destroy();
25 +#]])],
26 +#[have_pcap_lex_destroy="yes"],
27 +#[have_pcap_lex_destroy="no"])
28 +
29  AC_MSG_RESULT($have_pcap_lex_destroy)
30  if test "x$have_pcap_lex_destroy" = "xyes"; then
31      AC_DEFINE([HAVE_PCAP_LEX_DESTROY],[1],[Can cleanup lex buffer stack created by pcap bpf filter])