summaryrefslogtreecommitdiff
path: root/configure
diff options
context:
space:
mode:
authorbrain <brain@e03df62e-2008-0410-955e-edbf42e46eb7>2007-08-09 22:00:40 +0000
committerbrain <brain@e03df62e-2008-0410-955e-edbf42e46eb7>2007-08-09 22:00:40 +0000
commit83ca117cdc8d5bbe7c538a3eee478e2348b7f29c (patch)
tree89fa75ac243c8c59ff6a9cc15ea6b93c6352d493 /configure
parent205b53ea734183ce640184d298e5d3d46fd397c0 (diff)
Patch from djGrrr that correctly detects epoll on fedora 7, which SMRTly decided not to put libc.so.6 in /lib, or even symlink /lib to lib64...
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@7696 e03df62e-2008-0410-955e-edbf42e46eb7
Diffstat (limited to 'configure')
-rwxr-xr-xconfigure10
1 files changed, 8 insertions, 2 deletions
diff --git a/configure b/configure
index 5c51f2e96..0b27e2f17 100755
--- a/configure
+++ b/configure
@@ -467,10 +467,16 @@ if ($has_epoll) {
{
# Suggestion from nenolod, weed out odd systems which have glibc built
# against 2.4 kernels (ick)
-
+ my $kernel_arch = `uname -p`;
+ chomp($kernel_arch);
$libcv = 0.0;
$kernelv = 0.0;
- open (FH,"/lib/libc.so.6|") or $has_epoll = 0;
+ if ($kernel_arch =~ /x86_64/) {
+ open (FH,"/lib64/libc.so.6|") or $has_epoll = 0;
+ }
+ else {
+ open (FH,"/lib/libc.so.6|") or $has_epoll = 0;
+ }
if ($has_epoll)
{
while (chomp($line = <FH>))