summaryrefslogtreecommitdiff
path: root/configure
diff options
context:
space:
mode:
authorPeter Powell <petpow@saberuk.com>2012-10-24 17:18:54 +0100
committerattilamolnar <attilamolnar@hush.com>2012-10-26 15:23:58 +0200
commit3f4349f54ad8b7fee75fc1256e12d4eda9de5744 (patch)
treebc411a4f062c347ca49b284085ca748b074fad58 /configure
parent9fe15c5988f3eea038a4f495566fb1c26be1d1cd (diff)
Fix configure system loading cache file too late.
Diffstat (limited to 'configure')
-rwxr-xr-xconfigure3
1 files changed, 2 insertions, 1 deletions
diff --git a/configure b/configure
index 2db2b98d0..f2b5d0698 100755
--- a/configure
+++ b/configure
@@ -145,6 +145,7 @@ chomp(our $topdir = getcwd());
our $this = resolve_directory($topdir); # PWD, Regardless.
our @modlist = (); # Declare for Module List..
our %config = (); # Initiate Configuration Hash..
+our $cache_loaded = getcache();
$config{ME} = resolve_directory($topdir); # Present Working Directory
$config{BASE_DIR} = $config{ME}."/run";
@@ -344,7 +345,7 @@ sub test_compile {
print "Running non-interactive configure...\n" unless $interactive;
print "Checking for cache from previous configure... ";
-print ((!getcache()) ? "not found\n" : "found\n");
+print ($cache_loaded ? "found\n" : "not found\n");
$config{SYSTEM} = lc $^O;
print "Checking operating system version... $config{SYSTEM}\n";