'binary-dir=s' => \$opt_binary_dir,
'library-dir=s' => \$opt_library_dir,
'help' => sub { showhelp(); },
'binary-dir=s' => \$opt_binary_dir,
'library-dir=s' => \$opt_library_dir,
'help' => sub { showhelp(); },
- 'modupdate' => sub { update(); },
- 'update' => sub { modupdate(); },
+ 'modupdate' => sub { modupdate(); },
+ 'update' => sub { update(); },
'svnupdate' => sub { svnupdate(); },
'clean' => sub { clean(); },
);
'svnupdate' => sub { svnupdate(); },
'clean' => sub { clean(); },
);
-
-print "Checking for cache from previous configure...\n";
-getcache();
-print "Checking operating system version...\n";
-getosflags();
+print "Checking for cache from previous configure... ";
+print ((getcache() eq "true") ? "found\n" : "not found\n");
+print "Checking operating system version... ";
+print getosflags() . "\n";
} else {
$config{LDLIBS} = "-ldl -lstdc++";
$config{FLAGS} = "-fPIC -Wall -Woverloaded-virtual $config{OPTIMISATI}";
} else {
$config{LDLIBS} = "-ldl -lstdc++";
$config{FLAGS} = "-fPIC -Wall -Woverloaded-virtual $config{OPTIMISATI}";
} elsif ($config{OSNAME} eq "CYG-STATIC") {
$config{FLAGS} = "-Wall -Woverloaded-virtual $config{OPTIMISATI}";
$config{LDLIBS} = "";
} elsif ($config{OSNAME} eq "CYG-STATIC") {
$config{FLAGS} = "-Wall -Woverloaded-virtual $config{OPTIMISATI}";
$config{LDLIBS} = "";
$config{MAKEORDER} = "mods ircd";
$config{STATICLIBS} = "modules/mods.a";
$config{STATIC_LINK} = "yes";
$config{MAKEORDER} = "mods ircd";
$config{STATICLIBS} = "modules/mods.a";
$config{STATIC_LINK} = "yes";
# rt = POSIX realtime extensions
# resolv = inet_aton only (why isnt this in nsl?!)
$config{LDLIBS} = $config{LDLIBS} . " -lsocket -lnsl -lrt -lresolv";
# rt = POSIX realtime extensions
# resolv = inet_aton only (why isnt this in nsl?!)
$config{LDLIBS} = $config{LDLIBS} . " -lsocket -lnsl -lrt -lresolv";
}
if($config{OSNAME} eq "MINGW32")
{
# All code is position-independent on windows
$config{FLAGS} =~ s/-fPIC //;
}
if($config{OSNAME} eq "MINGW32")
{
# All code is position-independent on windows
$config{FLAGS} =~ s/-fPIC //;