1From a6817677a42d1294f1a3ce7b9f46b10ec557ddfa Mon Sep 17 00:00:00 2001 2From: Romain Naour <romain.naour@smile.fr> 3Date: Sun, 1 Apr 2018 15:23:59 +0200 4Subject: [PATCH] configure.in: Allow to override the INADDR_NONE check 5 6Prevent configure script from trying to run programs in a cross 7compilation environment to check if INADDR_NONE is defined. 8 9In the context of Buildroot, INADDR_NONE is always defined. 10The snort package will set have_inaddr_none=yes in 11SNORT_CONF_ENV. 12 13Signed-off-by: Romain Naour <romain.naour@smile.fr> 14Cc: Sergio Prado <sergio.prado@e-labworks.com> 15--- 16 configure.in | 4 ++-- 17 1 file changed, 2 insertions(+), 2 deletions(-) 18 19diff --git a/configure.in b/configure.in 20index 1e940b1..938409f 100644 21--- a/configure.in 22+++ b/configure.in 23@@ -284,8 +284,8 @@ AC_CHECK_TYPES([int8_t,int16_t,int32_t,int64_t]) 24 AC_CHECK_TYPES([boolean]) 25 26 # In case INADDR_NONE is not defined (like on Solaris) 27+AC_CACHE_CHECK([for INADDR_NONE], [have_inaddr_none], [ 28 have_inaddr_none="no" 29-AC_MSG_CHECKING([for INADDR_NONE]) 30 AC_RUN_IFELSE( 31 [AC_LANG_PROGRAM( 32 [[ 33@@ -298,7 +298,7 @@ AC_RUN_IFELSE( 34 return 0; 35 ]])], 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]) 42-- 432.14.3 44 45