+sub showhelp
+{
+ chomp(my $PWD = `pwd`);
+ print "Usage: configure [options]
+
+*** NOTE: NON-INTERACTIVE CONFIGURE IS *NOT* SUPPORTED BY THE ***
+*** INSPIRCD DEVELOPMENT TEAM. DO NOT ASK FOR HELP REGARDING ***
+*** NON-INTERACTIVE CONFIGURE ON THE FORUMS OR ON IRC! ***
+
+Options: [defaults in brackets after descriptions]
+
+When no options are specified, interactive
+configuration is started and you must specify
+any required values manually. If one or more
+options are specified, non-interactive configuration
+is started, and any omitted values are defaulted.
+
+Arguments with a single \"-\" symbol, as in
+InspIRCd 1.0.x, are also allowed.
+
+ --disable-interactive Sets no options intself, but
+ will disable any interactive prompting.
+ --disable-rpath Disable runtime paths. DO NOT USE UNLESS
+ YOU KNOW WHAT YOU ARE DOING!
+ --update Update makefiles and dependencies
+ --modupdate Detect new modules and write makefiles
+ --svnupdate {--rebuild} Update working copy via subversion
+ {and optionally rebuild if --rebuild
+ is also specified}
+ --clean Remove .config.cache file and go interactive
+ --enable-gnutls Enable GnuTLS module [no]
+ --enable-openssl Enable OpenSSL module [no]
+ --enable-optimization=[n] Optimize using -O[n] gcc flag
+ --enable-epoll Enable epoll() where supported [set]
+ --enable-kqueue Enable kqueue() where supported [set]
+ --disable-epoll Do not enable epoll(), fall back
+ to select() [not set]
+ --disable-kqueue Do not enable kqueue(), fall back
+ to select() [not set]
+ --enable-ipv6 Build ipv6 native InspIRCd [no]
+ --enable-remote-ipv6 Build with ipv6 support for remote
+ servers on the network [yes]
+ --disable-remote-ipv6 Do not allow remote ipv6 servers [not set]
+ --with-cc=[filename] Use an alternative g++ binary to
+ build InspIRCd [g++]
+ --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)
+ [$PWD]
+ --config-dir=[directory] Config file directory for config and SSL certs
+ [$PWD/conf]
+ --module-dir=[directory] Modules directory for loadable modules
+ [$PWD/modules]
+ --binary-dir=[directory] Binaries directory for core binary
+ [$PWD/bin]
+ --library-dir=[directory] Library directory for core libraries
+ [$PWD/lib]
+ --list-extras Show current status of extra modules
+ --enable-extras=[extras] Enable the specified list of extras
+ --disable-extras=[extras] Disable the specified list of extras
+ --help Show this help text and exit
+
+";
+ exit(0);
+}
+