diff options
author | lloyd <[email protected]> | 2006-09-04 22:13:13 +0000 |
---|---|---|
committer | lloyd <[email protected]> | 2006-09-04 22:13:13 +0000 |
commit | 42017e52e16e926e9e3e9e4a9eaf6322cece38a4 (patch) | |
tree | cb16ec6bf46f83d367020a7bbb7fdb2a10a1e956 /configure.pl | |
parent | 3ce6fec889ba559cef3324d2d577942795bd0a01 (diff) |
Make ar_needs_ranlib less of a special case
Diffstat (limited to 'configure.pl')
-rwxr-xr-x | configure.pl | 15 |
1 files changed, 7 insertions, 8 deletions
diff --git a/configure.pl b/configure.pl index 78101bc85..12d0520c5 100755 --- a/configure.pl +++ b/configure.pl @@ -303,8 +303,7 @@ sub make_reader { return sub { my $line = ''; - while(1) - { + while(1) { my $line = <FILE>; last unless defined($line); @@ -1758,7 +1757,6 @@ sub get_os_info { my %info; $info{'name'} = $name; - $info{'needs_ranlib'} = 0; while($_ = &$reader()) { set_if_any(\&set_if_quoted, $_, \%info, 'realname:ar_command'); @@ -1766,10 +1764,7 @@ sub get_os_info { set_if_any(\&set_if, $_, \%info, 'os_type:obj_suffix:so_suffix:static_suffix:' . 'install_root:header_dir:lib_dir:doc_dir:' . - 'install_user:install_group:install_cmd'); - - $info{'needs_ranlib'} = 1 if(/^ar_needs_ranlib yes$/); - $info{'needs_ranlib'} = 0 if(/^ar_needs_ranlib no$/); + 'install_user:install_group:install_cmd:ar_needs_ranlib'); read_hash($_, $reader, 'aliases', list_push(\@{$info{'aliases'}})); read_hash($_, $reader, 'arch', list_push(\@{$info{'arch'}})); @@ -1863,7 +1858,11 @@ sub set_os_defines { $OS_OBJ_SUFFIX{$os} = $info{'obj_suffix'}; $OS_SHARED_SUFFIX{$os} = $info{'so_suffix'}; $OS_STATIC_SUFFIX{$os} = $info{'static_suffix'}; - $OS_AR_NEEDS_RANLIB{$os} = $info{'needs_ranlib'}; + + if(defined($info{'ar_needs_ranlib'})) { + $OS_AR_NEEDS_RANLIB{$os} = + ($info{'ar_needs_ranlib'} eq 'yes') ? 1 : 0; + } $INSTALL_INFO{$os}{'root'} = $info{'install_root'}; $INSTALL_INFO{$os}{'headers'} = $info{'header_dir'}; |