]> git.netwichtig.de Git - user/henk/code/inspircd.git/blobdiff - make/configure.pm
Fix unsafe iteration in DelMode() when unloading m_permchannels
[user/henk/code/inspircd.git] / make / configure.pm
index b8e39598a35fb9ce34a494a3358565f798f6fc79..606483e98d8619656751302d0a661839c7a0b898 100644 (file)
@@ -31,7 +31,7 @@ use warnings FATAL => qw(all);
 use Exporter 'import';
 use POSIX;
 use make::utilities;
-our @EXPORT = qw(promptnumeric dumphash is_dir getmodules getrevision getcompilerflags getlinkerflags getdependencies nopedantic resolve_directory yesno showhelp promptstring_s);
+our @EXPORT = qw(promptnumeric dumphash is_dir getmodules getrevision getcompilerflags getlinkerflags getdependencies nopedantic resolve_directory yesno showhelp promptstring_s module_installed);
 
 my $no_git = 0;
 
@@ -193,6 +193,13 @@ sub promptnumeric($$)
        }
 }
 
+sub module_installed($)
+{
+       my $module = shift;
+       eval("use $module;");
+       return !$@;
+}
+
 sub promptstring_s($$)
 {
        my ($prompt,$default) = @_;