X-Git-Url: https://git.netwichtig.de/gitweb/?a=blobdiff_plain;ds=sidebyside;f=configure;h=8bcfcbe6405439caf63372aebb1c6e02aeec87ae;hb=d0d36795e807cf72295c6e73813e0c2daa0a71e7;hp=90bfcd0b5287c10120ba3a8eab88db5913499618;hpb=2a0f1441efe2cc7a8387e68f474741d9c48572ba;p=user%2Fhenk%2Fcode%2Finspircd.git diff --git a/configure b/configure index 90bfcd0b5..8bcfcbe64 100755 --- a/configure +++ b/configure @@ -491,7 +491,7 @@ if ($has_epoll) { { $kernelv = $1; # Fix for some retarded libc builds, strip off >> and << etc. - $kernelv =~ /([0-9\.\-])+/; + $kernelv =~ /([0-9\.])+/; $kernelv = $1; } } @@ -555,9 +555,17 @@ if ($config{OSNAME} =~ /FreeBSD/i) $version = `uname -r`; if ($version =~ /^4\./) { - # ICKY ICKY ICK, FREEBSD 4.x! GET AN UPGRADE! - $config{CRAQ} = "-L/usr/local/lib -lgnugetopt -DHAVE_DECL_GETOPT=1"; - print "yes\n"; + $foundit = `ls -l /usr/local/lib/libgnugetopt* | wc -l`; + if ($foundit > 0) + { + # ICKY ICKY ICK, FREEBSD 4.x! GET AN UPGRADE! + $config{CRAQ} = "-L/usr/local/lib -lgnugetopt -DHAVE_DECL_GETOPT=1"; + print "yes\n"; + } + else + { + print "\n\nERROR: You require libgnugetopt (from ports or packages) to build InspIRCd on FreeBSD 4.11.\n"; + } } else {