X-Git-Url: https://git.netwichtig.de/gitweb/?a=blobdiff_plain;f=configure;h=2fc19947969bb6145b0da700c9db16f808ac8d53;hb=2d2f13987a2cf3155da3f633f388e5a9c043ef9c;hp=984e7ef8307c80b9da580f298859647cfc4635b8;hpb=db6308f63001b3071c9104736e4a40cfb87468ec;p=user%2Fhenk%2Fcode%2Finspircd.git diff --git a/configure b/configure index 984e7ef83..2fc199479 100755 --- a/configure +++ b/configure @@ -139,7 +139,7 @@ if (defined $opt_base_dir) $config{CONFIG_DIR} = resolve_directory($config{BASE_DIR}."/conf"); # Configuration Directory $config{MODULE_DIR} = resolve_directory($config{BASE_DIR}."/modules"); # Modules Directory $config{BINARY_DIR} = resolve_directory($config{BASE_DIR}."/bin"); # Binary Directory -$config{LIBRARY_DIR} = resolve_directory($config{BASE_DIR}."/lib"); # Library Directory +$config{BUILD_DIR} = resolve_directory($config{ME}."/build"); # Build Directory if (defined $opt_config_dir) { @@ -153,10 +153,6 @@ if (defined $opt_binary_dir) { $config{BINARY_DIR} = $opt_binary_dir; } -if (defined $opt_library_dir) -{ - $config{LIBRARY_DIR} = $opt_library_dir; -} chomp($config{HAS_GNUTLS} = `pkg-config --modversion gnutls 2>/dev/null | cut -c 1,2,3`); # GNUTLS Version. if (defined $opt_freebsd_port) @@ -523,7 +519,7 @@ if ($config{OSNAME} =~ /FreeBSD/i) my $version = `uname -r`; if ($version =~ /^4\./) { - print "yes.\n" + print "yes.\n"; print "FreeBSD 4.x is no longer supported. By ANYONE.\n"; print "To build, you will need to add the following to CXXFLAGS:\n"; print "\t-L/usr/local/lib -lgnugetopt -DHAVE_DECL_GETOPT=1\n"; @@ -611,13 +607,12 @@ should NOT be used. You should probably specify a newer compiler.\n\n"; $config{CONFIG_DIR} = resolve_directory($config{BASE_DIR}."/conf"); # Configuration Dir $config{MODULE_DIR} = resolve_directory($config{BASE_DIR}."/modules"); # Modules Directory $config{BINARY_DIR} = resolve_directory($config{BASE_DIR}."/bin"); # Binary Directory - $config{LIBRARY_DIR} = resolve_directory($config{BASE_DIR}."/lib"); # Library Directory } dir_check("are the configuration files", "CONFIG_DIR"); dir_check("are the modules to be compiled to", "MODULE_DIR"); dir_check("is the IRCd binary to be placed", "BINARY_DIR"); - dir_check("are the IRCd libraries to be placed", "LIBRARY_DIR"); + dir_check("do you want the build to take place", "BUILD_DIR"); my $chose_hiperf = 0; if ($has_kqueue) { @@ -936,8 +931,6 @@ sub writefiles { #define CONFIG_FILE "$config{CONFIG_DIR}/inspircd.conf" #define MOD_PATH "$config{MODULE_DIR}" #define SOMAXCONN_S "$config{_SOMAXCONN}" -#define OPTIMISATION $config{OPTIMITEMP} -#define LIBRARYDIR "$config{LIBRARY_DIR}" #define ENTRYPOINT int main(int argc, char** argv) EOF @@ -1084,9 +1077,12 @@ EOF close(FILEHANDLE); print "Writing \e[1;32m$file\e[0m ...\n"; + + $config{BUILD_DIR} ||= 'build'; + for my $var (qw( - CC SYSTEM BASE_DIR CONFIG_DIR MODULE_DIR BINARY_DIR LIBRARY_DIR - STARTSCRIPT DESTINATION EXTRA_DIR SOCKETENGINE CORE_FLAGS + CC SYSTEM BASE_DIR CONFIG_DIR MODULE_DIR BINARY_DIR BUILD_DIR + STARTSCRIPT DESTINATION EXTRA_DIR SOCKETENGINE )) { s/\@$var\@/$config{$var}/g; }