summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorbrain <brain@e03df62e-2008-0410-955e-edbf42e46eb7>2007-08-20 21:05:44 +0000
committerbrain <brain@e03df62e-2008-0410-955e-edbf42e46eb7>2007-08-20 21:05:44 +0000
commit74f26a0375191ce239b0e3542fc73e57b5e6c291 (patch)
tree57fdedaa829d59a93e7ef4a2e438ac8b7bc71fe7
parent2a0f1441efe2cc7a8387e68f474741d9c48572ba (diff)
Checks for libgnugetopt in /usr/local/lib before continuing
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@7785 e03df62e-2008-0410-955e-edbf42e46eb7
-rwxr-xr-xconfigure14
1 files changed, 11 insertions, 3 deletions
diff --git a/configure b/configure
index 90bfcd0b5..bc81209d6 100755
--- a/configure
+++ b/configure
@@ -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
{