diff options
author | brain <brain@e03df62e-2008-0410-955e-edbf42e46eb7> | 2006-04-20 16:09:03 +0000 |
---|---|---|
committer | brain <brain@e03df62e-2008-0410-955e-edbf42e46eb7> | 2006-04-20 16:09:03 +0000 |
commit | 364135911b3557b6ca10e7f69d0f531605b518f2 (patch) | |
tree | be878addf3f21aabb7f323708225a191e84b0f91 /configure | |
parent | 1fac9bc0b3a73ff9fcbb796910793c9f118d95e4 (diff) |
Added detection of execinfo.h (part of the libexecinfo port on freebsd, default in glibc) -- can be used to make inspircd generate its OWN backtraces :>
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@3885 e03df62e-2008-0410-955e-edbf42e46eb7
Diffstat (limited to 'configure')
-rwxr-xr-x | configure | 24 |
1 files changed, 24 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_EXECINFO} = "0"; # execinfo.h Check. $config{USE_KQUEUE} = "y"; # kqueue enabled $config{USE_EPOLL} = "y"; # epoll enabled $config{THREADED_DNS} = "n"; # threaded dns (experimental) @@ -177,6 +178,28 @@ if (!$fail) { print "yes\n" if $config{HAS_STRLCPY} eq "true"; print "no\n" if $config{HAS_STRLCPY} eq "false"; +printf "Checking if execinfo.h exists... "; +$config{HAS_EXECINFO} = "0"; +my $fail = 0; +open(EXECINFO, "</usr/include/execinfo.h") or $fail = 1; +if ($fail) { + $fail = 0; + open(EXECINFO, "</usr/local/include/execinfo.h") or $fail = 1; + if (!$fail) { + printf "/usr/local/include/execinfo.h\n"; + $config{HAS_EXECINFO} = "1"; + close(EXECINFO); + } + else { + printf "Not found!\n"; + } +} +else { + printf "/usr/include/execinfo.h\n"; + $config{HAS_EXECINFO} = "1"; + close(EXECINFO); +} + printf "Checking if kqueue exists... "; $has_kqueue = 0; $fail = 0; @@ -937,6 +960,7 @@ sub writefiles { #define REVISION "$revision2" #define MAXCLIENTS $config{MAX_CLIENT} #define MAX_DESCRIPTORS $config{MAX_DESCRIPTORS} +#define HAS_EXECINFO $config{HAS_EXECINFO} #define NICKMAX $NL #define CHANMAX $CL #define MAXCHANS $config{MAX_CHANNE} |