]> git.netwichtig.de Git - user/henk/code/inspircd.git/blobdiff - make/configure.pm
Fix running configure on systems with old versions of Perl.
[user/henk/code/inspircd.git] / make / configure.pm
index 223f4e58aa46851da3e98c72aa012c7c5c1dd4e0..656c9809711be700eb356ed18af77e66ec7495c6 100644 (file)
@@ -237,7 +237,8 @@ sub module_expand($) {
 
 sub module_shrink($) {
        my $module = basename shift;
-       return $module =~ s/(?:^m_|\.cpp$)//gr;
+       $module =~ s/(?:^m_|\.cpp$)//g;
+       return $module;
 }
 
 sub write_configure_cache(%) {