X-Git-Url: https://git.netwichtig.de/gitweb/?a=blobdiff_plain;f=make%2Fconfigure.pm;h=4f176324c2b52c2675d45787f94c961524b5f8c3;hb=9010a8832098780ebf40c716f5b4689e66482846;hp=6a2faaef42d850a00e35dd1e40a965170da5daa2;hpb=b4c7be2458373ae663cd9408c9bb4efbd13bb84a;p=user%2Fhenk%2Fcode%2Finspircd.git diff --git a/make/configure.pm b/make/configure.pm index 6a2faaef4..4f176324c 100644 --- a/make/configure.pm +++ b/make/configure.pm @@ -77,8 +77,10 @@ sub getcompilerflags { open(FLAGS, $file) or return ""; while () { if ($_ =~ /^\/\* \$CompileFlags: (.+) \*\/$/) { + my $x = translate_functions($1, $file); + next if ($x eq ""); close(FLAGS); - return translate_functions($1,$file); + return $x; } } close(FLAGS); @@ -90,8 +92,10 @@ sub getlinkerflags { open(FLAGS, $file) or return ""; while () { if ($_ =~ /^\/\* \$LinkerFlags: (.+) \*\/$/) { + my $x = translate_functions($1, $file); + next if ($x eq ""); close(FLAGS); - return translate_functions($1,$file); + return $x; } } close(FLAGS); @@ -103,8 +107,10 @@ sub getdependencies { open(FLAGS, $file) or return ""; while () { if ($_ =~ /^\/\* \$ModDep: (.+) \*\/$/) { + my $x = translate_functions($1, $file); + next if ($x eq ""); close(FLAGS); - return translate_functions($1,$file); + return $x; } } close(FLAGS); @@ -116,6 +122,8 @@ sub nopedantic { open(FLAGS, $file) or return ""; while () { if ($_ =~ /^\/\* \$NoPedantic \*\/$/) { + my $x = translate_functions($_, $file); + next if ($x eq ""); close(FLAGS); return 1; }