From: Paolo Molaro Date: Tue, 29 Jul 2003 16:21:20 +0000 (-0000) Subject: Tue Jul 29 18:07:08 CEST 2003 Paolo Molaro X-Git-Url: http://wien.tomnetworks.com/gitweb/?a=commitdiff_plain;h=b8dd1cc1c05d33bcbcc4b812f0d29a6daf063562;p=mono.git Tue Jul 29 18:07:08 CEST 2003 Paolo Molaro * configure.in: ipv6 portability fixes from Felix Ortga (guile@lared.es). svn path=/trunk/mono/; revision=16845 --- diff --git a/acconfig.h b/acconfig.h index 1abf4695049..5c0bb43a898 100644 --- a/acconfig.h +++ b/acconfig.h @@ -3,6 +3,7 @@ #undef HAVE_MSG_NOSIGNAL #undef HAVE_SOL_IP #undef HAVE_SOL_TCP +#undef HAVE_SOL_IPV6 #undef HAVE_IP_PKTINFO #undef HAVE_STRUCT_IP_MREQN #undef HAVE_STRUCT_IP_MREQ diff --git a/configure.in b/configure.in index 9652d37cc89..0dd6e977513 100644 --- a/configure.in +++ b/configure.in @@ -349,6 +349,21 @@ if test x$platform_win32 = xno; then AC_MSG_RESULT(no) ]) + dnl ***************************** + dnl *** Checks for SOL_IPV6 *** + dnl ***************************** + AC_MSG_CHECKING(for SOL_IPV6) + AC_TRY_COMPILE([#include ], [ + int level = SOL_IPV6; + ], [ + # Yes, we have it... + AC_MSG_RESULT(yes) + AC_DEFINE(HAVE_SOL_IPV6) + ], [ + # We'll have to use getprotobyname + AC_MSG_RESULT(no) + ]) + dnl ***************************** dnl *** Checks for SOL_TCP *** dnl ***************************** @@ -410,7 +425,7 @@ if test x$platform_win32 = xno; then dnl *** Check for gethostbyname2_r *** dnl ********************************** AC_MSG_CHECKING(for gethostbyname2_r) - AC_TRY_COMPILE([#include ], [ + AC_TRY_LINK([#include ], [ gethostbyname2_r(NULL,0,NULL,NULL,0,NULL,NULL); ], [ # Yes, we have it...