X-Git-Url: https://git.netwichtig.de/gitweb/?a=blobdiff_plain;f=configure;h=517014d911031fb3a71ffdc456f823aa4e2c874c;hb=4840d5e77572f42b710501912d59b5dbb6d2c2af;hp=889667f0301623e836979f6754b5184d6a77ba69;hpb=a9d2342f6af5d9e1fb2a6e42d71493300c0c39f9;p=user%2Fhenk%2Fcode%2Finspircd.git diff --git a/configure b/configure index 889667f03..517014d91 100755 --- a/configure +++ b/configure @@ -352,7 +352,7 @@ getmodules(); sub clean { - system("rm -rf .config.cache"); + unlink(".config.cache"); } sub update @@ -368,7 +368,7 @@ sub update exit 0; } else { # We've Loaded the cache file and all our variables.. - print "Updating Files..\n"; + print "Updating files...\n"; getosflags(); if ($opt_disable_debug == 1) { @@ -405,7 +405,7 @@ sub modupdate exit 0; } else { # We've Loaded the cache file and all our variables.. - print "Updating Files..\n"; + print "Updating files...\n"; getosflags(); $has_epoll = $config{HAS_EPOLL}; $has_ports = $config{HAS_PORTS}; @@ -1009,7 +1009,7 @@ sub getosflags { $config{LDLIBS} = "-lstdc++"; $config{FLAGS} = "-fPIC -Wall -pedantic $config{OPTIMISATI}"; - $config{DEVELOPER} = "-fPIC -Wall -std=c99 -pedantic -g"; + $config{DEVELOPER} = "-fPIC -Wall -pedantic -g"; $SHARED = "-Wl,--rpath -Wl,$config{LIBRARY_DIR} -shared"; $config{MAKEPROG} = "make"; @@ -1475,12 +1475,12 @@ sub write_dynamic_makefile if ($name =~ /\.cpp$/) { open (CPP, "<$dir/$name") or die("Can't open $dir/$name to scan it! oh bugger"); + print "."; while (chomp($line = )) - { + { if ($line =~ /\/\* \$Core: (\w+) \*\//i) { $filelist{$name} = $1; - print "."; } elsif ($line =~ /\/\* \$ExtraDeps: (.*?) \*\//i) { @@ -1514,6 +1514,7 @@ sub write_dynamic_makefile { if (!exists($existing_install_list{$1})) { + $existing_install_list{$1} = 1; $idir = (split(' ',$1))[1]; $ifile = (split(' ',$1))[0]; $install_list = $install_list . " -install -m \$(INSTMODE) $1\n"; @@ -1525,9 +1526,10 @@ sub write_dynamic_makefile { if (!exists($existing_install_list{$1})) { + $existing_install_list{$1} = 1; $idir = (split(' ',$1))[1]; $ifile = (split(' ',$1))[0]; - $install_list = $install_list . " -cp $1\n" if (!exists($existing_install_list{$1})); + $install_list = $install_list . " -cp $1\n"; $ifile =~ s/.*\///g; $uninstall_list = $uninstall_list . " -rm $idir/$ifile\n"; }