diff options
author | lloyd <[email protected]> | 2006-09-08 00:43:36 +0000 |
---|---|---|
committer | lloyd <[email protected]> | 2006-09-08 00:43:36 +0000 |
commit | 13ddd61ff941cbb7ca7cd9cb0eee06054edca4d5 (patch) | |
tree | 0bd7625d0eb170b39232e96322fb206831abd8e8 /configure.pl | |
parent | 02dc261335127a77ecbe71d0c5c3480b0fa7b245 (diff) |
Get ride of some variables that were just cluttering up the code.
Diffstat (limited to 'configure.pl')
-rwxr-xr-x | configure.pl | 19 |
1 files changed, 5 insertions, 14 deletions
diff --git a/configure.pl b/configure.pl index 11a683561..0d7bf4dda 100755 --- a/configure.pl +++ b/configure.pl @@ -1323,23 +1323,14 @@ sub print_pkg_config return if($os eq 'generic' or $os eq 'windows'); - my $install_root = os_install_info($os, 'install_root'); - my $header_dir = os_install_info($os, 'header_dir'); - my $lib_dir = os_install_info($os, 'lib_dir'); - my $link_to = "-lm"; - foreach my $lib (@libs) - { - $link_to .= " -l" . $lib; - } - - my $VERSION = $major . "." . $minor . "." . $patch; + foreach my $lib (@libs) { $link_to .= " -l" . $lib; } process_template('misc/config/botan-config.in', 'botan-config', - { 'version' => $VERSION, - 'prefix' => $install_root, - 'includedir' => $header_dir, - 'libdir' => $lib_dir, + { 'version' => "${major}.${minor}.${patch}", + 'prefix' => os_install_info($os, 'install_root'), + 'includedir' => os_install_info($os, 'header_dir'), + 'libdir' => os_install_info($os, 'lib_dir'), 'libs' => $link_to }); chmod 0755, 'botan-config'; |