5 # We (probably) have not got a Config.pm yet
6 BEGIN { $INC{'Config.pm'} = __FILE__ };
13 my $no = join('|',qw(DynaLoader GDBM_File ODBM_File NDBM_File DB_File
14 Syslog SysV Langinfo));
23 chdir($dir) || die "Cannot cd to $dir\n";
24 ($ext = getcwd()) =~ s,/,\\,g;
26 chdir($here) || die "Cannot cd to $here\n";
27 my @ext = extensions();
30 sub dynamic_extensions
32 return grep $ext{$_} eq 'dynamic',keys %ext;
37 return grep $ext{$_} eq 'nonxs',keys %ext;
47 if (/^(.*)\.pm$/i || /^(.*)_pm\.PL$/i || /^(.*)\.xs$/i)
50 return if $name =~ $no;
51 my $dir = $File::Find::dir;
53 return if exists $ext{$dir};
54 return unless -f "$ext/$dir/Makefile.PL";
55 if ($dir =~ /$name$/i)
57 if (-f "$ext/$dir/$name.xs")
59 $ext{$dir} = 'dynamic';