aboutsummaryrefslogtreecommitdiffstats
path: root/configure.pl
diff options
context:
space:
mode:
authorlloyd <[email protected]>2006-09-05 00:05:26 +0000
committerlloyd <[email protected]>2006-09-05 00:05:26 +0000
commit4753866607d0204bc0fb14376e27d39849efadcb (patch)
tree40a04f7bb775a62b94e2ebee5d8981ba47e325b4 /configure.pl
parenta3d1538670a226734ad86986bd50352e1cbf3080 (diff)
Remove %INSTALL_INFO
Diffstat (limited to 'configure.pl')
-rwxr-xr-xconfigure.pl22
1 files changed, 7 insertions, 15 deletions
diff --git a/configure.pl b/configure.pl
index 1ba787585..307f0c600 100755
--- a/configure.pl
+++ b/configure.pl
@@ -69,9 +69,7 @@ my %DOCS = (
my (%CPU, %OPERATING_SYSTEM, %COMPILER, %MODULES);
my(%SUBMODEL_ALIAS, %ARCH, %ARCH_ALIAS,
- %OS_ALIAS, %OS_SUPPORTS_SHARED, %INSTALL_INFO,
-
- %CC_SO_LINK_FLAGS,
+ %OS_ALIAS, %OS_SUPPORTS_SHARED, %CC_SO_LINK_FLAGS,
%CC_MACHINE_OPT_FLAGS, %CC_MACHINE_OPT_FLAGS_RE, %CC_ABI_FLAGS);
my $user_set_root = '';
@@ -973,11 +971,13 @@ sub os_install_info {
return $lib_dir if($what eq 'lib_dir' && $lib_dir);
return $user_set_root if($what eq 'install_root' && $user_set_root);
- return $INSTALL_INFO{$os}{$what}
- if(defined($INSTALL_INFO{$os}) &&
- defined($INSTALL_INFO{$os}{$what}));
+ my $result = $OPERATING_SYSTEM{$os}{$what};
+
+ if(defined($result) and $result ne '') {
+ return $result;
+ }
- return $INSTALL_INFO{'defaults'}{$what};
+ return $OPERATING_SYSTEM{'defaults'}{$what};
}
sub mach_opt {
@@ -1914,14 +1914,6 @@ sub set_os_defines {
%{$OPERATING_SYSTEM{$os}} = %info;
- $INSTALL_INFO{$os}{'install_root'} = $info{'install_root'};
- $INSTALL_INFO{$os}{'header_dir'} = $info{'header_dir'};
- $INSTALL_INFO{$os}{'lib_dir'} = $info{'lib_dir'};
- $INSTALL_INFO{$os}{'doc_dir'} = $info{'doc_dir'};
- $INSTALL_INFO{$os}{'install_user'} = $info{'install_user'};
- $INSTALL_INFO{$os}{'install_group'} = $info{'install_group'};
- $INSTALL_INFO{$os}{'install_cmd'} = $info{'install_cmd'};
-
foreach my $alias (@{$info{'aliases'}}) {
$OS_ALIAS{$alias} = $os;
}