diff options
author | brain <brain@e03df62e-2008-0410-955e-edbf42e46eb7> | 2007-08-05 12:21:19 +0000 |
---|---|---|
committer | brain <brain@e03df62e-2008-0410-955e-edbf42e46eb7> | 2007-08-05 12:21:19 +0000 |
commit | 6edfe13e49a4dc49fb349f47c9dfff1c58d6e96f (patch) | |
tree | 639e37cc23785b2dbef154a07d185bbe037e377e /configure | |
parent | 6d8f6bf5f6c8f8e747cb4ea4fde8a4fb0b18d4d1 (diff) |
Better check for kernel build version and libc version for epoll availability.
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@7657 e03df62e-2008-0410-955e-edbf42e46eb7
Diffstat (limited to 'configure')
-rwxr-xr-x | configure | 5 |
1 files changed, 5 insertions, 0 deletions
@@ -478,10 +478,15 @@ if ($has_epoll) { if ($line =~ /GNU C Library .* version (.*?) /) { $libcv = $1; + $libcv =~ /([0-9\.\-])+/; + $libcv = $1; } elsif ($line =~ /Compiled on a Linux (.*?\..*?)\.* system/) { $kernelv = $1; + # Fix for some retarded libc builds, strip off >> and << etc. + $kernelv =~ /([0-9\.\-])+/; + $kernelv = $1; } } close FH; |