]> git.netwichtig.de Git - user/henk/code/inspircd.git/blobdiff - make/configure.pm
Add --disable-rpath. Probably wont backport this for the time being
[user/henk/code/inspircd.git] / make / configure.pm
index 448ad90da1910acec57bd368c67793b912cade4b..d244a49d5e609d0ab6368e6218a75b76b0b51655 100644 (file)
 # ---------------------------------------------------
 
 package make::configure;
+
+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;
 
@@ -105,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
 {
@@ -223,6 +238,8 @@ InspIRCd 1.0.x, are also allowed.
 
   --disable-interactive        Sets no options intself, but
                                will disable any interactive prompting.
+  --disable-rpath              Disable runtime paths. DO NOT USE UNLESS
+                               YOU KNOW WHAT YOU ARE DOING!
   --update                     Update makefiles and dependencies
   --modupdate                  Detect new modules and write makefiles
   --svnupdate {--rebuild}      Update working copy via subversion