aboutsummaryrefslogtreecommitdiffstats
path: root/configure.pl
diff options
context:
space:
mode:
authorlloyd <[email protected]>2007-10-21 02:13:09 +0000
committerlloyd <[email protected]>2007-10-21 02:13:09 +0000
commitb9f4051e2b6561c7af32b95872d337452da4ac2f (patch)
tree53cac3f3361064bc60621195f90eff531e556031 /configure.pl
parent88ca120bf1907ff48074e960919a736efc9de065 (diff)
Remove the checks that the compiler specified works on the given OS/CPU.
All too often this information gets out of of date, so trust the user is specifying something that makes sense if they use --cc, --cpu, or --os.
Diffstat (limited to 'configure.pl')
-rwxr-xr-xconfigure.pl17
1 files changed, 2 insertions, 15 deletions
diff --git a/configure.pl b/configure.pl
index e13fdacd9..60f8193e4 100755
--- a/configure.pl
+++ b/configure.pl
@@ -326,17 +326,6 @@ sub choose_target {
my ($arch, $submodel) = figure_out_arch($cpu);
- croak(realname($os), " doesn't run on $arch ($submodel)")
- unless($arch eq 'generic' or $os eq 'generic' or
- in_array($arch, $OPERATING_SYSTEM{$os}{'arch'}));
-
- croak(realname($cc), " doesn't run on $arch ($submodel)")
- unless($arch eq 'generic' or
- (in_array($arch, $ccinfo{'arch'})));
-
- croak(realname($cc), " doesn't run on ", realname($os))
- unless($os eq 'generic' or (in_array($os, $ccinfo{'os'})));
-
# hacks
if($cc eq 'gcc') {
$ccinfo{'binary_name'} = 'c++' if($os eq 'darwin');
@@ -369,6 +358,8 @@ sub choose_target {
}
}
+ autoconfig("$cc $os $arch $submodel");
+
add_to($config, {
'compiler' => $cc,
'os' => $os,
@@ -1248,7 +1239,6 @@ sub get_os_info {
'install_cmd_data:install_cmd_exec');
read_list($_, $reader, 'aliases', list_push(\@{$info{'aliases'}}));
- read_list($_, $reader, 'arch', list_push(\@{$info{'arch'}}));
read_list($_, $reader, 'supports_shared',
list_push(\@{$info{'supports_shared'}}));
@@ -1277,9 +1267,6 @@ sub get_cc_info {
match_any_of($_, \%info, 'unquoted', 'makefile_style');
- read_list($_, $reader, 'os', list_push(\@{$info{'os'}}));
- read_list($_, $reader, 'arch', list_push(\@{$info{'arch'}}));
-
sub quoted_mapping {
my $hashref = $_[0];
return sub {