This is a live mirror of the Perl 5 development currently hosted at https://github.com/perl/perl5
Get Win32 known_extensions and extensions right in config.sh and hence Config.pm
authorNick Ing-Simmons <nik@tiuk.ti.com>
Tue, 19 Jun 2001 07:57:10 +0000 (07:57 +0000)
committerNick Ing-Simmons <nik@tiuk.ti.com>
Tue, 19 Jun 2001 07:57:10 +0000 (07:57 +0000)
p4raw-id: //depot/perlio@10708

win32/config_sh.PL

index 9757e52..35bb6e2 100644 (file)
@@ -44,8 +44,21 @@ while (@{$optref} && $optref->[0] =~ /^([\w_]+)=(.*)$/) {
     shift(@{$optref});
 }
 
     shift(@{$optref});
 }
 
-$opt{'dynamic_ext'} = join(' ',FindExt::dynamic_extensions());
-$opt{'nonxs_ext'}   = join(' ',FindExt::noxs_extensions());
+my @dynamic = FindExt::dynamic_extensions();
+my @noxs    = FindExt::noxs_extensions();
+my @known   = sort(@dynamic,split(/\s+/,$opt{'staticext'}),@noxs);
+$opt{'known_extensions'} = join(' ',@known);
+
+if (!$opt{'use5005threads'} || $opt{'use5005threads'} eq 'undef')
+ {
+  @dynamic = grep(!/Thread/,@dynamic);
+  @known   = grep(!/Thread/,@dynamic);
+ }
+
+$opt{'dynamic_ext'} = join(' ',@dynamic);
+$opt{'nonxs_ext'}   = join(' ',@noxs);
+
+$opt{'extensions'} = join(' ',@known);
 
 my $pl_h = '../patchlevel.h';
 
 
 my $pl_h = '../patchlevel.h';