diff options
author | lloyd <[email protected]> | 2006-09-02 23:13:35 +0000 |
---|---|---|
committer | lloyd <[email protected]> | 2006-09-02 23:13:35 +0000 |
commit | c02146aa72d5e3ca06388bcc18e0e78e88dc2966 (patch) | |
tree | 6bb9e8a00cf49e36d436865f0114a0535071490c /configure.pl | |
parent | 8e9652819af6fa233de22b5d7d669752e2810b81 (diff) |
Move some variables that did not need to be global into main() itself
Diffstat (limited to 'configure.pl')
-rwxr-xr-x | configure.pl | 17 |
1 files changed, 9 insertions, 8 deletions
diff --git a/configure.pl b/configure.pl index 0286bd179..42d0097c1 100755 --- a/configure.pl +++ b/configure.pl @@ -98,16 +98,8 @@ my(%CC_BINARY_NAME, my %MODULES; -my $debug = 0; -my $no_shared = 0; -my $make_style = ''; -my $module_set = ''; -my $dumb_gcc = 0; -my $autoconfig = 1; my $user_set_root = ''; -my $build_dir = ''; my $local_config = ''; -my @using_mods; my ($doc_dir, $lib_dir); my (%ignored_src, %ignored_include, %added_src, %added_include); my ($CPP_INCLUDE_DIR, $BUILD_LIB_DIR, $BUILD_CHECK_DIR); @@ -120,6 +112,15 @@ sub main() { set_os_defines($OS_DIR); set_cc_defines($CC_DIR); + my $debug = 0; + my $autoconfig = 1; + my $make_style = ''; + my $build_dir = ''; + my $dumb_gcc = 0; + my $module_set = ''; + my $no_shared = 0; + my @using_mods; + GetOptions('debug' => sub { $debug = 1; }, 'disable-shared' => sub { $no_shared = 1; }, 'noauto' => sub { $autoconfig = 0 }, |