diff options
author | lloyd <[email protected]> | 2007-10-23 12:59:35 +0000 |
---|---|---|
committer | lloyd <[email protected]> | 2007-10-23 12:59:35 +0000 |
commit | 2ac45fac3f6bb1f46e1efec09e8ed7093f7ff285 (patch) | |
tree | c5da00dbc0d09ca1ae71692a3fc5e3ea05729390 /configure.pl | |
parent | 4d41c4f9c1beb736fe7ad10464782dc580830fe0 (diff) |
Switch the order of tests on constraints on modules to CPU, then OS, then
compiler. That tends to give the most useful diagnostic output, since
CPU restrictions are the most common in modules.
Diffstat (limited to 'configure.pl')
-rwxr-xr-x | configure.pl | 18 |
1 files changed, 9 insertions, 9 deletions
diff --git a/configure.pl b/configure.pl index 5bcda4973..290a1df07 100755 --- a/configure.pl +++ b/configure.pl @@ -420,9 +420,12 @@ sub autoload_modules { next; } - my @cc_list = @{ $modinfo{'cc'} }; - if(scalar @cc_list > 0 && !in_array($cc, \@cc_list)) { - autoconfig("Module $mod - won't use, not compatbile with CC $cc"); + my @arch_list = @{ $modinfo{'arch'} }; + if(scalar @arch_list > 0 && + !in_array($arch, \@arch_list) && + !in_array($submodel, \@arch_list)) { + autoconfig("Module $mod - won't use, " . + "doesn't run on CPU $arch/$submodel"); next; } @@ -432,12 +435,9 @@ sub autoload_modules { next; } - my @arch_list = @{ $modinfo{'arch'} }; - if(scalar @arch_list > 0 && - !in_array($arch, \@arch_list) && - !in_array($submodel, \@arch_list)) { - autoconfig("Module $mod - won't use, " . - "doesn't run on CPU $arch/$submodel"); + my @cc_list = @{ $modinfo{'cc'} }; + if(scalar @cc_list > 0 && !in_array($cc, \@cc_list)) { + autoconfig("Module $mod - won't use, not compatbile with CC $cc"); next; } |