summaryrefslogtreecommitdiff
path: root/make
diff options
context:
space:
mode:
authorAttila Molnar <attilamolnar@hush.com>2014-10-25 03:58:49 +0200
committerAttila Molnar <attilamolnar@hush.com>2014-10-25 03:58:49 +0200
commit680e9e0809d8569c8268122e3fecd2b6b62b2e65 (patch)
tree706c35ce73e092c9e3b032d3cf037f5d2da1900c /make
parent0035820e13a915a3bf1a440fcedf8ce25fe37a22 (diff)
parenta49fd4cba6a44334eb5a39c6fbe8f6cebd55d0c7 (diff)
Merge pull request #944 from SaberUK/insp20+gnutls-rnd
[2.0] Use gnutls_rnd instead of gcry_randomize on newer GnuTLS versions.
Diffstat (limited to 'make')
-rw-r--r--make/utilities.pm9
1 files changed, 9 insertions, 0 deletions
diff --git a/make/utilities.pm b/make/utilities.pm
index 42dd6b547..ae16ce3dc 100644
--- a/make/utilities.pm
+++ b/make/utilities.pm
@@ -319,6 +319,15 @@ sub translate_functions($$)
die "Developers should no longer use backticks in configuration macros. Please use exec() and eval() macros instead. Offending line: $line (In module: $module)";
}
+ if ($line =~ /if(gt|lt)\("(.+?)","(.+?)"\)/) {
+ chomp(my $result = `$2 2>/dev/null`);
+ if (($1 eq 'gt' && $result le $3) || ($1 eq 'lt' && $result ge $3)) {
+ $line = substr $line, 0, $-[0];
+ } else {
+ $line =~ s/if$1\("$2","$3"\)//;
+ }
+ }
+
if ($line =~ /ifuname\(\!"(\w+)"\)/)
{
my $uname = $1;