--- a/configure.in +++ b/configure.in @@ -283,21 +283,22 @@ AC_CHECK_TYPES([int8_t,int16_t,int32_t,i AC_CHECK_TYPES([boolean]) # In case INADDR_NONE is not defined (like on Solaris) -have_inaddr_none="no" -AC_MSG_CHECKING([for INADDR_NONE]) -AC_RUN_IFELSE( -[AC_LANG_PROGRAM( -[[ -#include -#include -#include -]], -[[ - if (inet_addr("10,5,2") == INADDR_NONE); - return 0; -]])], -[have_inaddr_none="yes"], -[have_inaddr_none="no"]) +have_inaddr_none="yes" +#AC_MSG_CHECKING([for INADDR_NONE]) +#AC_RUN_IFELSE( +#[AC_LANG_PROGRAM( +#[[ +##include +##include +##include +#]], +#[[ +# if (inet_addr("10,5,2") == INADDR_NONE); +# return 0; +#]])], +#[have_inaddr_none="yes"], +#[have_inaddr_none="yes"]) + AC_MSG_RESULT($have_inaddr_none) if test "x$have_inaddr_none" = "xno"; then AC_DEFINE([INADDR_NONE],[-1],[For INADDR_NONE definition])