summaryrefslogtreecommitdiff
path: root/configure
diff options
context:
space:
mode:
authorPeter Powell <petpow@saberuk.com>2013-07-07 14:27:54 +0100
committerPeter Powell <petpow@saberuk.com>2013-07-16 21:48:53 +0100
commit22f013a06f6015ab7601329a632001770cd14941 (patch)
treebeafd72407d56185b39b6a90dc1d63a4eafa052c /configure
parent6033f1d6fa3d37e068a56c29ef47b220abb3174d (diff)
Use the preprocessor to check for TCP deferring support.
Diffstat (limited to 'configure')
-rwxr-xr-xconfigure17
1 files changed, 0 insertions, 17 deletions
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);