From caa89fb37c532930805f0b144e3298624ec1adec Mon Sep 17 00:00:00 2001 From: brain Date: Sun, 27 Apr 2008 17:17:59 +0000 Subject: More stuff so that freebsd users can still use the ports version of openssl if they want git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@9590 e03df62e-2008-0410-955e-edbf42e46eb7 --- make/utilities.pm | 18 ++++++++++++++++++ 1 file changed, 18 insertions(+) (limited to 'make') diff --git a/make/utilities.pm b/make/utilities.pm index 8b74b7e84..812e8a1ae 100644 --- a/make/utilities.pm +++ b/make/utilities.pm @@ -358,6 +358,24 @@ sub translate_functions($$) $line =~ s/if\("(.+?)"\)//; } + if ($line =~ /if\(\!"(\w+)"\)/) + { + if (!defined $main::config{$1}) + { + $line = ""; + return ""; + } + else + { + if (($main::config{$1} =~ /y/i) and ($main::config{$1} eq "1")) + { + $line = ""; + return ""; + } + } + + $line =~ s/if\(\!"(.+?)"\)//; + } while ($line =~ /exec\("(.+?)"\)/) { print "Executing program for module \e[1;32m$module\e[0m ... \e[1;32m$1\e[0m\n"; -- cgit v1.2.3