1 From a6817677a42d1294f1a3ce7b9f46b10ec557ddfa Mon Sep 17 00:00:00 2001
2 From: Romain Naour <romain.naour@smile.fr>
3 Date: Sun, 1 Apr 2018 15:23:59 +0200
4 Subject: [PATCH] configure.in: Allow to override the INADDR_NONE check
6 Prevent configure script from trying to run programs in a cross
7 compilation environment to check if INADDR_NONE is defined.
9 In the context of Buildroot, INADDR_NONE is always defined.
10 The snort package will set have_inaddr_none=yes in
13 Signed-off-by: Romain Naour <romain.naour@smile.fr>
14 Cc: Sergio Prado <sergio.prado@e-labworks.com>
17 1 file changed, 2 insertions(+), 2 deletions(-)
19 diff --git a/configure.in b/configure.in
20 index 1e940b1..938409f 100644
23 @@ -284,8 +284,8 @@ AC_CHECK_TYPES([int8_t,int16_t,int32_t,int64_t])
24 AC_CHECK_TYPES([boolean])
26 # In case INADDR_NONE is not defined (like on Solaris)
27 +AC_CACHE_CHECK([for INADDR_NONE], [have_inaddr_none], [
29 -AC_MSG_CHECKING([for INADDR_NONE])
33 @@ -298,7 +298,7 @@ AC_RUN_IFELSE(
36 [have_inaddr_none="yes"],
37 -[have_inaddr_none="no"])
38 +[have_inaddr_none="no"])])
39 AC_MSG_RESULT($have_inaddr_none)
40 if test "x$have_inaddr_none" = "xno"; then
41 AC_DEFINE([INADDR_NONE],[-1],[For INADDR_NONE definition])