diff options
author | brain <brain@e03df62e-2008-0410-955e-edbf42e46eb7> | 2006-07-10 02:30:45 +0000 |
---|---|---|
committer | brain <brain@e03df62e-2008-0410-955e-edbf42e46eb7> | 2006-07-10 02:30:45 +0000 |
commit | 3f1bff4b2d95443156a26237e0a870bacba3fc09 (patch) | |
tree | 63b4e82cf2574eb317f5af9ae1660516d81278fa /configure | |
parent | 879cd60ebf3c4e98076c3468514a9754f702fdcb (diff) |
Updated to detect stdint (same fix as 1_0_stable branch)
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@4259 e03df62e-2008-0410-955e-edbf42e46eb7
Diffstat (limited to 'configure')
-rwxr-xr-x | configure | 15 |
1 files changed, 15 insertions, 0 deletions
@@ -34,6 +34,7 @@ $config{MAX_CHANNE} = "20"; # Default Max. $config{MAX_OPERCH} = "60"; # Default Max. Channels per oper $config{MAXI_MODES} = "20"; # Default Max. Number of Modes set at once. $config{HAS_STRLCPY} = "false"; # strlcpy Check. +$config{HAS_STDINT} = "false"; # stdint.h check $config{HAS_EXECINFO} = "0"; # execinfo.h Check. $config{USE_KQUEUE} = "y"; # kqueue enabled $config{USE_EPOLL} = "y"; # epoll enabled @@ -160,6 +161,17 @@ if (!$config{MAX_CLIENT}) { $config{MAX_CLIENT} = $config{MAX_CLIENT_T}; } +printf "Checking if stdint.h exists... "; +$config{HAS_STDINT} = "true"; +my $fail = 0; +open(STDINT, "</usr/include/stdint.h") or $config{HAS_STDINT} = "false"; +if ($config{HAS_STDINT} eq "true") { + close(STDINT); +} +print "yes\n" if $config{HAS_STDINT} eq "true"; +print "no\n" if $config{HAS_STDINT} eq "false"; + + printf "Checking if strlcpy exists... "; # Perform the strlcpy() test.. $config{HAS_STRLCPY} = "false"; @@ -1007,6 +1019,9 @@ EOF if ($config{HAS_STRLCPY} eq "true") { print FILEHANDLE "#define HAS_STRLCPY\n"; } + if ($config{HAS_STDINT} eq "true") { + print FILEHANDLE "#define HAS_STDINT\n"; + } if ($config{THREADED_DNS} =~ /y/i) { print FILEHANDLE "#define THREADED_DNS\n"; } |