From cf7c73ec7f8a398f87aac91b5534c0ec8f03e915 Mon Sep 17 00:00:00 2001 From: brain Date: Mon, 20 Aug 2007 20:40:11 +0000 Subject: Extra stuff so that freebsd 4 may work (needs someone with this OS to test!) git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@7781 e03df62e-2008-0410-955e-edbf42e46eb7 --- configure | 15 +++++++++++++-- 1 file changed, 13 insertions(+), 2 deletions(-) diff --git a/configure b/configure index 0b27e2f17..3074c8e28 100755 --- a/configure +++ b/configure @@ -12,7 +12,7 @@ # ################################################### -require 5.6.0; +require 5.8.0; use Socket; use Cwd; use Getopt::Long; @@ -1312,6 +1312,17 @@ sub write_dynamic_makefile { $se = "socketengine_ports"; } + if ($config{OSNAME} =~ /freebsd/i) + { + print "Ick, you are running FreeBSD 4.x. Enabling workaround. Get an upgrade.\n"; + $version = `uname -r`; + if ($version =~ /^4\./) + { + # ICKY ICKY ICK, FREEBSD 4.x! GET AN UPGRADE! + $freebsd4libs = "-L/usr/local/lib -lgnugetopt -DHAVE_DECL_GETOPT=1"; + } + } + open(FH,">src/Makefile") or die("Could not write src/Makefile"); print FH <