]> git.netwichtig.de Git - user/henk/code/inspircd.git/blobdiff - make/configure.pm
Fix this from an experiment I was playing with :p
[user/henk/code/inspircd.git] / make / configure.pm
index d151629f821788dd97658070ec06eead436e9dc2..cf12c900a6a8b9f34bea8e798991931efcfede9d 100644 (file)
@@ -1,17 +1,23 @@
+#       +------------------------------------+
+#       | Inspire Internet Relay Chat Daemon |
+#       +------------------------------------+
 #
-# Copyright 2002-2007 The ChatSpike Development Team
-# <brain@chatspike.net>
-# <Craig@chatspike.net>
+#  InspIRCd: (C) 2002-2007 InspIRCd Development Team
+# See: http://www.inspircd.org/wiki/index.php/Credits
 #
-# Licensed under GPL, please see the COPYING file
-# for more information
+# This program is free but copyrighted software; see
+#      the file COPYING for details.
 #
+# ---------------------------------------------------
 
 package make::configure;
+
+require 5.8.0;
+
 use Exporter 'import';
 use POSIX;
 use make::utilities;
-@EXPORT = qw(promptnumeric dumphash is_dir getmodules getrevision getcompilerflags getlinkerflags getdependencies resolve_directory yesno showhelp);
+@EXPORT = qw(promptnumeric dumphash is_dir getmodules getrevision getcompilerflags getlinkerflags getdependencies resolve_directory yesno showhelp promptstring_s);
 
 my $no_svn = 0;
 
@@ -113,11 +119,8 @@ sub getmodules
                if ($name =~ /^m_(.+)\.cpp$/)
                {
                        $mod = $1;
-                       if ($mod !~ /_static$/)
-                       {
-                               $main::modlist[$i++] = $mod;
-                               print ".";
-                       }
+                       $main::modlist[$i++] = $mod;
+                       print ".";
                }
        }
        closedir(DIRHANDLE);
@@ -148,6 +151,18 @@ sub promptnumeric($$)
        }
 }
 
+sub promptstring_s($$)
+{
+       my ($prompt,$default) = @_;
+       my $var;
+       print "$prompt\n";
+       print "[\033[1;32m$default\033[0m] -> ";
+       chomp($var = <STDIN>);
+       $var = $default if $var eq "";
+       print "\n";
+       return $var;
+}
+
 sub dumphash()
 {
        print "\n\033[1;32mPre-build configuration is complete!\033[0m\n\n";
@@ -167,7 +182,6 @@ sub dumphash()
        print "\033[0mMax away length:\033[1;32m\t\t$main::config{MAX_AWAY}\033[0m\n";
        print "\033[0mGCC Version Found:\033[1;32m\t\t$main::config{GCCVER}.x\033[0m\n";
        print "\033[0mCompiler program:\033[1;32m\t\t$main::config{CC}\033[0m\n";
-       print "\033[0mStatic modules:\033[1;32m\t\t\t$main::config{STATIC_LINK}\033[0m\n";
        print "\033[0mIPv6 Support:\033[1;32m\t\t\t$main::config{IPV6}\033[0m\n";
        print "\033[0mIPv6 to IPv4 Links:\033[1;32m\t\t$main::config{SUPPORT_IP6LINKS}\033[0m\n";
        print "\033[0mGnuTLS Support:\033[1;32m\t\t\t$main::config{USE_GNUTLS}\033[0m\n";
@@ -245,6 +259,9 @@ InspIRCd 1.0.x, are also allowed.
   --with-away-length=[n]       Specify max length of away [150]
   --with-max-modes=[n]         Specify max modes per line which
                                have parameters [20]
+  --with-maxbuf=[n]            Change the per message buffer size [512]
+                               DO NOT ALTER THIS OPTION WITHOUT GOOD REASON
+                               AS IT *WILL* BREAK CLIENTS!!!
   --prefix=[directory]         Base directory to install into (if defined,
                                can automatically define config, module, bin
                               and library dirs as subdirectories of prefix)