File blocxx-no_ipv6_run_check.dif of Package blocxx

Index: configure.in
===================================================================
--- configure.in	(Revision 283)
+++ configure.in	(Arbeitskopie)
@@ -1784,23 +1784,22 @@
 ])
 
 if test x$ENABLE_IPV6 = xyes; then
-	AC_MSG_CHECKING(whether IPv6 support is possible)
-	AC_TRY_RUN(
+	AC_MSG_CHECKING(whether IPv6 support is possible, compile)
+	AC_TRY_COMPILE(
 	[
 		/* is AF_INET6 available? */
 		#include <sys/types.h>
 		#include <sys/socket.h>
 		#include <netinet/in.h>
-		main()
-		{
-			struct sockaddr_storage unused;
-			if (socket(AF_INET6, SOCK_STREAM, 0) < 0)
-				exit(1);
-			else
-				exit(0);
-		}
 	],
 	[
+		struct sockaddr_storage unused;
+		if (socket(AF_INET6, SOCK_STREAM, 0) < 0)
+			exit(1);
+		else
+			exit(0);
+	],
+	[
 		AC_MSG_RESULT(yes)
 		AC_DEFINE(HAVE_IPV6, 1, IPv6 is present and enabled)
 	],