]> git.netwichtig.de Git - user/henk/code/inspircd.git/blobdiff - modulemanager
Fix ModuleManager not being able to find make::configure.
[user/henk/code/inspircd.git] / modulemanager
index b107f2c1fad62032d1b07dd6fd60de7e8374859e..42566d3b1ce77f4ed738cbd4062e8868e08b7cb6 100755 (executable)
 use strict;
 use warnings FATAL => qw(all);
 
-use make::configure;
-
 BEGIN {
+       require 5.8.0;
        push @INC, '.';
+}
+
+BEGIN {
+       # HACK: for some reason this needs to be in a second BEGIN block
+       # or it doesn't receive the updated @INC from above.
+       use make::configure;
        unless (module_installed("LWP::Simple")) {
                die "Your system is missing the LWP::Simple Perl module!";
        }