diff options
author | Nick Ing-Simmons <nik@tiuk.ti.com> | 1997-11-22 21:18:11 +0000 |
---|---|---|
committer | Nick Ing-Simmons <nik@tiuk.ti.com> | 1997-11-22 21:18:11 +0000 |
commit | acbc2db62d28b1660277b33463f96f796b30a6c3 (patch) | |
tree | f30ca3832ee607f9a52fe9655e0674656aa43c9c /win32/config_sh.PL | |
parent | f987c7de872f3c20b09e75a8cd08fc8c3c4aefd2 (diff) | |
download | perl-acbc2db62d28b1660277b33463f96f796b30a6c3.tar.gz |
Munge pseudo-Configure stuff to add -thread to archname as
Malcolm seems to think that is way to test for threads.
Update @INC stuffing hackery to have traditional @INC
search order archlib, privlib, sitearch, site.
p4raw-id: //depot/ansiperl@282
Diffstat (limited to 'win32/config_sh.PL')
-rw-r--r-- | win32/config_sh.PL | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/win32/config_sh.PL b/win32/config_sh.PL index 0c3713cb2e..5f3f157a0c 100644 --- a/win32/config_sh.PL +++ b/win32/config_sh.PL @@ -5,6 +5,17 @@ while (@ARGV && $ARGV[0] =~ /^([\w_]+)=(.*)$/) shift(@ARGV); } +$opt{'archname'} = 'MSWin32'; +if (defined $ENV{'PROCESSOR_ARCHITECTURE'}) + { + $opt{'archname'} .= '-'.$ENV{'PROCESSOR_ARCHITECTURE'}; + } + +if ($opt{'ccflags'} =~ /USE_THREADS/) + { + $opt{'archname'} .= '-thread'; + } + if ($] =~ /\.(\d\d\d)?(\d\d)?$/) { # should always be true $opt{PATCHLEVEL} = int($1 || 0); $opt{SUBVERSION} = $2 || '00'; |