summaryrefslogtreecommitdiff
path: root/make/utilities.pm
diff options
context:
space:
mode:
Diffstat (limited to 'make/utilities.pm')
-rw-r--r--make/utilities.pm11
1 files changed, 7 insertions, 4 deletions
diff --git a/make/utilities.pm b/make/utilities.pm
index 812e8a1ae..fdc4c4c7b 100644
--- a/make/utilities.pm
+++ b/make/utilities.pm
@@ -360,17 +360,20 @@ sub translate_functions($$)
}
if ($line =~ /if\(\!"(\w+)"\)/)
{
- if (!defined $main::config{$1})
+ if (!exists $main::config{$1})
{
$line = "";
return "";
}
else
{
- if (($main::config{$1} =~ /y/i) and ($main::config{$1} eq "1"))
+ if (defined $1)
{
- $line = "";
- return "";
+ if (exists ($main::config{$1}) and (($main::config{$1} =~ /y/i) or ($main::config{$1} eq "1")))
+ {
+ $line = "";
+ return "";
+ }
}
}