From: Jarkko Hietaniemi Date: Thu, 16 Mar 2000 04:06:36 +0000 (+0000) Subject: VMS patches from Dan Sugalski and Charles Bailey X-Git-Url: http://git.shadowcat.co.uk/gitweb/gitweb.cgi?a=commitdiff_plain;h=c0e9ace571e56ce6ee881d058aa99ffc27e38e62;p=p5sagit%2Fp5-mst-13.2.git VMS patches from Dan Sugalski and Charles Bailey p4raw-id: //depot/cfgperl@5762 --- diff --git a/configure.com b/configure.com index 8c65d77..003a047 100644 --- a/configure.com +++ b/configure.com @@ -40,7 +40,6 @@ $ ans = "" $ macros = "" $ extra_flags = "" $ user_c_flags = "" -$ use_debugging_perl = "y" $ use_ieee_math = "n" $ be_case_sensitive = "n" $ use_vmsdebug_perl = "n" @@ -1722,6 +1721,24 @@ $ ELSE $ use_vmsdebug_perl = "N" $ ENDIF $! +$! Ask if they want to build with DEBUGGING +$ echo "" +$ echo "Perl can be built with extra runtime debugging enabled. This +$ echo "enables the -D switch, at the cost of some performance. It +$ echo "was mandatory on perl 5.005 and before on VMS, but is now +$ echo "optional. If you don't generally use it you should probably +$ echo "leave this off and gain a bit of extra speed. +$ dflt = "y" +$ rp = "Build a DEBUGGING version of Perl? [''dflt'] " +$ GOSUB myread +$ IF ans.eqs."" then ans = dflt +$ IF F$EXTRACT(0, 1, F$EDIT(ans,"COLLAPSE,UPCASE")) .eqs. "Y" +$ THEN +$ use_debugging_perl = "Y" +$ ELSE +$ use_debugging_perl = "N" +$ ENDIF +$! $! Ask if they want to build with MULTIPLICITY $ echo "" $ echo "The perl interpreter engine can be built in a way that makes it @@ -1924,7 +1941,10 @@ $ echo "default file types, however, you can configure Perl to try default" $ echo "file types of nothing, .pl, and .com, in that order (e.g. typing" $ echo """$ perl foo"" would cause Perl to look for foo., then foo.pl, and" $ echo "finally foo.com)." -$ dflt = "y" +$ echo "" +$ echo "This is currently broken in some configurations. Only enable it if +$ echo "you know what you're doing. " +$ dflt = "N" $ rp = "Always use default file types? [''dflt'] " $ GOSUB myread $ if ans.eqs."" then ans="''dflt'" diff --git a/lib/CGI.pm b/lib/CGI.pm index a81ac07..3e03257 100644 --- a/lib/CGI.pm +++ b/lib/CGI.pm @@ -3280,7 +3280,7 @@ my ($vol) = $MAC ? MacPerl::Volumes() =~ /:(.*)/ : ""; unless ($TMPDIRECTORY) { @TEMP=("${SL}usr${SL}tmp","${SL}var${SL}tmp", "C:${SL}temp","${SL}tmp","${SL}temp", - "${vol}${SL}Temporary Items", + "${vol}${SL}Temporary Items","${SL}sys\$scratch", "${SL}WWW_ROOT"); unshift(@TEMP,$ENV{'TMPDIR'}) if exists $ENV{'TMPDIR'}; diff --git a/lib/ExtUtils/Mksymlists.pm b/lib/ExtUtils/Mksymlists.pm index 1ba5bcd..c8f41c7 100644 --- a/lib/ExtUtils/Mksymlists.pm +++ b/lib/ExtUtils/Mksymlists.pm @@ -157,7 +157,7 @@ sub _write_vms { require Config; # a reminder for once we do $^O require ExtUtils::XSSymSet; - my($isvax) = $Config::Config{'arch'} =~ /VAX/i; + my($isvax) = $Config::Config{'archname'} =~ /VAX/i; my($set) = new ExtUtils::XSSymSet; my($sym); diff --git a/vms/subconfigure.com b/vms/subconfigure.com index 2ae3242..8650b0f 100644 --- a/vms/subconfigure.com +++ b/vms/subconfigure.com @@ -4005,8 +4005,10 @@ $ WC "voidflags='" + perl_voidflags + "'" $ WC "d_eunice='" + perl_d_eunice + "'" $ WC "libs='" + perl_libs + "'" $ WC "libc='" + perl_libc + "'" -$ WC "xs_apiversion='" + localperlver + "'" -$ WC "pm_apiversion='" + localperlver + "'" +$ WC "xs_apiversion='" + version + "'" +$ WC "pm_apiversion='" + version + "'" +$ WC "PERL_VERSION='" + patchlevel + "'" +$ WC "PERL_SUBVERSION='" + subversion + "'" $ WC "pager='" + perl_pager + "'" $ WC "uidtype='" + perl_uidtype + "'" $ WC "uidformat='" + perl_uidformat + "'"