summaryrefslogtreecommitdiff
path: root/make/utilities.pm
diff options
context:
space:
mode:
authorspecial <special@e03df62e-2008-0410-955e-edbf42e46eb7>2007-07-17 08:26:25 +0000
committerspecial <special@e03df62e-2008-0410-955e-edbf42e46eb7>2007-07-17 08:26:25 +0000
commit0b72c64a033a92876acc91344f9580cd276942d1 (patch)
tree84919c417d09159afb753fbeca4c6849fbe98ccc /make/utilities.pm
parent0c34148b26666d7ab6cd2d6816b2d2083d0b58f9 (diff)
Added the execruntime() function for Compile/Linker flags - executes shell commands at compile time rather than during configure
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@7458 e03df62e-2008-0410-955e-edbf42e46eb7
Diffstat (limited to 'make/utilities.pm')
-rw-r--r--make/utilities.pm4
1 files changed, 4 insertions, 0 deletions
diff --git a/make/utilities.pm b/make/utilities.pm
index c00a541b3..5b09b764e 100644
--- a/make/utilities.pm
+++ b/make/utilities.pm
@@ -315,6 +315,10 @@ sub translate_functions($$)
chomp($replace);
$line =~ s/exec\("(.+?)"\)/$replace/;
}
+ while ($line =~ /execruntime\("(.+?)"\)/)
+ {
+ $line =~ s/execruntime\("(.+?)"\)/`\1`/;
+ }
while ($line =~ /eval\("(.+?)"\)/)
{
print "Evaluating perl code for module \033[1;32m$module\033[0m ... ";