blob: 79e9f076b18185fe19769b1adba6ccba01e2b510 [file] [log] [blame]
Brad Bishop316dfdd2018-06-25 12:45:53 -04001From a1fdbced4166cb0f35d23b63a59312d86860485a Mon Sep 17 00:00:00 2001
2From: Chunrong Guo <B40290@freescale.com>
3Date: Mon, 4 Nov 2013 10:39:56 +0800
4Subject: [PATCH] snort: add recipe
5
Patrick Williamsb48b7b42016-08-17 15:04:38 -05006Upstream-Status: Inappropriate [embedded specific]
7
8fix the below error:
9checking for INADDR_NONE... configure:
10configure: error: cannot run test program while cross compiling
11
12Signed-off-by: Chunrong Guo <B40290@freescale.com>
13
Brad Bishop316dfdd2018-06-25 12:45:53 -040014---
15 configure.in | 50 ++++++++++++++++----------------------------------
16 1 file changed, 16 insertions(+), 34 deletions(-)
Patrick Williamsb48b7b42016-08-17 15:04:38 -050017
Brad Bishop316dfdd2018-06-25 12:45:53 -040018diff --git a/configure.in b/configure.in
19index 20d15eb..6fe5d68 100644
20--- a/configure.in
21+++ b/configure.in
22@@ -274,25 +274,7 @@ AC_CHECK_TYPES([int8_t,int16_t,int32_t,int64_t])
Patrick Williamsb48b7b42016-08-17 15:04:38 -050023 AC_CHECK_TYPES([boolean])
24
25 # In case INADDR_NONE is not defined (like on Solaris)
26-have_inaddr_none="no"
27-AC_MSG_CHECKING([for INADDR_NONE])
28-AC_RUN_IFELSE(
29-[AC_LANG_PROGRAM(
30-[[
31-#include <sys/types.h>
32-#include <netinet/in.h>
33-#include <arpa/inet.h>
34-]],
35-[[
36- if (inet_addr("10,5,2") == INADDR_NONE);
37- return 0;
38-]])],
39-[have_inaddr_none="yes"],
40-[have_inaddr_none="no"])
41-AC_MSG_RESULT($have_inaddr_none)
42-if test "x$have_inaddr_none" = "xno"; then
43- AC_DEFINE([INADDR_NONE],[-1],[For INADDR_NONE definition])
44-fi
45+have_inaddr_none="yes"
46
47 AC_COMPILE_IFELSE([AC_LANG_PROGRAM([[
48 #include <stdio.h>
Brad Bishop316dfdd2018-06-25 12:45:53 -040049@@ -421,21 +403,21 @@ if test "x$LPCAP" = "xno"; then
Patrick Williamsb48b7b42016-08-17 15:04:38 -050050 fi
51 fi
52
53-AC_MSG_CHECKING([for pcap_lex_destroy])
54-AC_RUN_IFELSE(
55-[AC_LANG_PROGRAM(
56-[[
57-#include <pcap.h>
58-]],
59-[[
60- pcap_lex_destroy();
61-]])],
62-[have_pcap_lex_destroy="yes"],
63-[have_pcap_lex_destroy="no"])
64-AC_MSG_RESULT($have_pcap_lex_destroy)
65-if test "x$have_pcap_lex_destroy" = "xyes"; then
66- AC_DEFINE([HAVE_PCAP_LEX_DESTROY],[1],[Can cleanup lex buffer stack created by pcap bpf filter])
67-fi
68+#AC_MSG_CHECKING([for pcap_lex_destroy])
69+#AC_RUN_IFELSE(
70+#[AC_LANG_PROGRAM(
71+#[[
72+##include <pcap.h>
73+#]],
74+#[[
75+# pcap_lex_destroy();
76+#]])],
77+have_pcap_lex_destroy="yes"
78+#[have_pcap_lex_destroy="no"])
79+#AC_MSG_RESULT($have_pcap_lex_destroy)
80+#if test "x$have_pcap_lex_destroy" = "xyes"; then
81+# AC_DEFINE([HAVE_PCAP_LEX_DESTROY],[1],[Can cleanup lex buffer stack created by pcap bpf filter])
82+#fi
83
84 AC_MSG_CHECKING([for pcap_lib_version])
85 AC_LINK_IFELSE(