diff options
author | brain <brain@e03df62e-2008-0410-955e-edbf42e46eb7> | 2006-12-26 18:03:41 +0000 |
---|---|---|
committer | brain <brain@e03df62e-2008-0410-955e-edbf42e46eb7> | 2006-12-26 18:03:41 +0000 |
commit | efc342f58c4cdb8cb31d6e9504478a71d1675206 (patch) | |
tree | b6c2c181692a17b2db3a9c29f75750a5fa5b64db /configure | |
parent | 943def6a01b2e9692a676cb0b8bb9ae7411a737d (diff) |
have configure detect SOMAXCONN and store it in a string define, SOMAXCONN_S
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@6126 e03df62e-2008-0410-955e-edbf42e46eb7
Diffstat (limited to 'configure')
-rwxr-xr-x | configure | 3 |
1 files changed, 3 insertions, 0 deletions
@@ -14,6 +14,7 @@ require 5.6.0; +use Socket; use Cwd; use Getopt::Long; @@ -209,6 +210,7 @@ $config{STATIC_LINK} = "no"; # are doing static modules? chomp($config{MAX_CLIENT_T} = `sh -c \"ulimit -n\"`); # FD Limit chomp($config{MAX_DESCRIPTORS} = `sh -c \"ulimit -n\"`); # Hard FD Limit chomp($config{GCCVER} = `g++ -dumpversion | cut -c 1`); # Major GCC Version +$config{_SOMAXCONN} = SOMAXCONN; # Max connections in accept queue $config{OSNAME} = $^O; # Operating System Name $config{CC} = "g++"; # C++ compiler if (defined $opt_cc) @@ -1191,6 +1193,7 @@ sub writefiles { #define REVISION "$revision2" #define MAXCLIENTS $config{MAX_CLIENT} #define MAXCLIENTS_S "$config{MAX_CLIENT}" +#define SOMAXCONN_S "$config{_SOMAXCONN}" #define MAX_DESCRIPTORS $config{MAX_DESCRIPTORS} #define NICKMAX $NL #define CHANMAX $CL |