summaryrefslogtreecommitdiff
path: root/make
diff options
context:
space:
mode:
authorbrain <brain@e03df62e-2008-0410-955e-edbf42e46eb7>2008-04-27 17:37:50 +0000
committerbrain <brain@e03df62e-2008-0410-955e-edbf42e46eb7>2008-04-27 17:37:50 +0000
commit4564ed215cfde77e648a1aa8110ebe5de1252764 (patch)
treeaad5f4f222ae8ba817a86446bfe3c55a36afd17b /make
parentcaa89fb37c532930805f0b144e3298624ec1adec (diff)
Extra support for freebsd openssl, allow user to pick between ports and base version if they have both, default to ports version in interactive, require a flag in ./configure
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@9591 e03df62e-2008-0410-955e-edbf42e46eb7
Diffstat (limited to 'make')
-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 "";
+ }
}
}