summaryrefslogtreecommitdiff
path: root/make
diff options
context:
space:
mode:
authorbrain <brain@e03df62e-2008-0410-955e-edbf42e46eb7>2007-10-23 21:36:33 +0000
committerbrain <brain@e03df62e-2008-0410-955e-edbf42e46eb7>2007-10-23 21:36:33 +0000
commitcd9b790e48fabd887a9af855dbd85929ebcbbd62 (patch)
treee2906edd0369c4a2cb7fa3b86f1d250c18c9f7b9 /make
parent6720b7bccb583f29b6f7a446c38509ffe27e1cd8 (diff)
Add $NoPedantic build macro, for m_mysql because mysql AB dont know how to code :p
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@8325 e03df62e-2008-0410-955e-edbf42e46eb7
Diffstat (limited to 'make')
-rw-r--r--make/configure.pm14
1 files changed, 13 insertions, 1 deletions
diff --git a/make/configure.pm b/make/configure.pm
index cf12c900a..9e9503c16 100644
--- a/make/configure.pm
+++ b/make/configure.pm
@@ -17,7 +17,7 @@ require 5.8.0;
use Exporter 'import';
use POSIX;
use make::utilities;
-@EXPORT = qw(promptnumeric dumphash is_dir getmodules getrevision getcompilerflags getlinkerflags getdependencies resolve_directory yesno showhelp promptstring_s);
+@EXPORT = qw(promptnumeric dumphash is_dir getmodules getrevision getcompilerflags getlinkerflags getdependencies nopedantic resolve_directory yesno showhelp promptstring_s);
my $no_svn = 0;
@@ -108,6 +108,18 @@ sub getdependencies {
return undef;
}
+sub nopedantic {
+ my ($file) = @_;
+ open(FLAGS, $file);
+ while (<FLAGS>) {
+ if ($_ =~ /^\/\* \$NoPedantic \*\/$/) {
+ close(FLAGS);
+ return 1;
+ }
+ }
+ close(FLAGS);
+ return 0;
+}
sub getmodules
{