From 4564ed215cfde77e648a1aa8110ebe5de1252764 Mon Sep 17 00:00:00 2001 From: brain Date: Sun, 27 Apr 2008 17:37:50 +0000 Subject: 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 --- make/utilities.pm | 11 +++++++---- 1 file changed, 7 insertions(+), 4 deletions(-) (limited to 'make') 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 ""; + } } } -- cgit v1.2.3