From 22f013a06f6015ab7601329a632001770cd14941 Mon Sep 17 00:00:00 2001 From: Peter Powell Date: Sun, 7 Jul 2013 14:27:54 +0100 Subject: Use the preprocessor to check for TCP deferring support. --- configure | 17 ----------------- 1 file changed, 17 deletions(-) (limited to 'configure') diff --git a/configure b/configure index 19b4e7c26..4bb808f9e 100755 --- a/configure +++ b/configure @@ -298,18 +298,6 @@ if (test_file($config{CXX}, "eventfd.cpp")) { print "no\n"; } -printf "Checking if a TCP deferring mechanism is available... "; -if (test_file($config{CXX}, "tcp_defer_accept.cpp")) { - $config{HAS_DEFER} = "TCP_DEFER_ACCEPT"; - print "yes (TCP_DEFER_ACCEPT)\n"; -} elsif (test_file($config{CXX}, "so_acceptfilter.cpp")) { - $config{HAS_DEFER} = "SO_ACCEPTFILTER"; - print "yes (SO_ACCEPTFILTER)\n"; -} else { - $config{HAS_DEFER} = "false"; - print "no\n"; -} - print "Checking whether epoll is available... "; $config{HAS_EPOLL} = test_header($config{CXX}, "sys/epoll.h"); print $config{HAS_EPOLL} ? "yes\n" : "no\n"; @@ -791,11 +779,6 @@ EOF if ($config{HAS_CLOCK_GETTIME} eq 'true') { print FILEHANDLE "#define HAS_CLOCK_GETTIME\n"; } - if ($config{HAS_DEFER} eq "TCP_DEFER_ACCEPT") { - print FILEHANDLE "#define USE_TCP_DEFER_ACCEPT\n"; - } elsif ($config{HAS_DEFER} eq "SO_ACCEPTFILTER") { - print FILEHANDLE "#define USE_SO_ACCEPTFILTER\n" - } print FILEHANDLE "\n#include \"threadengines/threadengine_pthread.h\"\n"; close(FILEHANDLE); -- cgit v1.2.3