aboutsummaryrefslogtreecommitdiffstats
path: root/configure.pl
diff options
context:
space:
mode:
authorlloyd <[email protected]>2007-10-21 02:29:58 +0000
committerlloyd <[email protected]>2007-10-21 02:29:58 +0000
commit4a09ffa9e83a59607fcebb44cc5dbdc19cfc63fd (patch)
treeea3c45d4b6e26307c86ce89246e588e4ab702b1c /configure.pl
parentab4c4b58f62e0a919c51feb586669bb7932a9698 (diff)
Fix --modules, the value was getting lost.
Don't warn about modules that are only loaded on request when they in fact have been requested.
Diffstat (limited to 'configure.pl')
-rwxr-xr-xconfigure.pl9
1 files changed, 5 insertions, 4 deletions
diff --git a/configure.pl b/configure.pl
index 7bdd168e6..8f37ded72 100755
--- a/configure.pl
+++ b/configure.pl
@@ -68,7 +68,7 @@ sub main {
'version' => $VERSION_STRING,
});
- my ($target, $module_list) = get_options($config);
+ my $module_list = get_options($config);
my $default_value_is = sub {
my ($var, $val) = @_;
@@ -379,7 +379,7 @@ sub choose_modules {
if($$config{'autoconfig'})
{
- foreach my $mod (guess_mods($config)) {
+ foreach my $mod (guess_mods($config, @modules)) {
autoconfig("Enabling module $mod")
unless in_array($mod, \@modules);
@@ -1296,7 +1296,7 @@ sub get_cc_info {
}
sub guess_mods {
- my ($config) = @_;
+ my ($config, @modules) = @_;
my $cc = $$config{'compiler'};
my $os = $$config{'os'};
@@ -1311,7 +1311,8 @@ sub guess_mods {
my %modinfo = %{ $MODULES{$mod} };
if($modinfo{'load_on'} eq 'request') {
- autoconfig("Won't use module $mod - by request only");
+ autoconfig("Won't use module $mod - by request only")
+ unless in_array($mod, \@modules);
next;
}
if(!$asm_ok and $modinfo{'load_on'} eq 'asm_ok') {