1 $ sav_ver = 'F$VERIFY(0)'
4 $! For example, if you unpacked perl into: [USER.PERL-5n...] then you will
5 $! want to cd into the tree and execute Configure:
7 $! $ SET DEFAULT [USER.PERL5_xxx]
12 $! $ SET DEFAULT [USER.PERL5_xxx]
13 $! $ @Configure "-des"
15 $! That's it. If you get into a bind trying to build perl on VMS then
16 $! definitely read through the README.VMS file.
17 $! Beyond that send email to vmsperl@perl.org
19 $! ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
21 $! send suggestions to:
22 $! Dan Sugalski <dan@sidhe.org>
25 $! Adapted and converted from Larry Wall & Andy Dougherty's
26 $! "Configure generated by metaconfig 3.0 PL60." by Peter Prymmer
27 $! (a Bourne sh[ell] script for configuring the installation of perl
28 $! on non-VMS systems) in the perl5.002|3 epoch (spring/summer 1996)
29 $! with much valuable help from Charles Bailey &
30 $! the whole VMSPerl crew.
31 $! Extended and messed about with by Dan Sugalski
33 $ sav_ver = F$VERIFY(0)
35 $! VMS-isms we will need:
36 $ echo = "write sys$output "
38 $ delete := delete ! local symbol overrides globals with qualifiers
46 $ be_case_sensitive = "n"
47 $ use_vmsdebug_perl = "n"
50 $ C_Compiler_Replace = "CC="
51 $ Thread_Live_Dangerously = "MT="
52 $ use_two_pot_malloc = "N"
53 $ use_pack_malloc = "N"
54 $ use_debugmalloc = "N"
57 $ vms_default_directory_name = F$ENVIRONMENT("DEFAULT")
58 $ max_allowed_dir_depth = 3 ! e.g. [A.B.PERLxxx] not [A.B.C.PERLxxx]
59 $! max_allowed_dir_depth = 2 ! e.g. [A.PERLxxx] not [A.B.PERLxxx]
61 $! Sebastian Bazley's request: close the CONFIG handle with /NOLOG
62 $! qualifier "just in case" (configure.com is re @ed in a bad state).
63 $! This construct was tested to be not a problem as far back as
64 $! VMS V5.5-2, hopefully earlier versions are OK as well.
68 $! Now keep track of open files
70 $ vms_filcnt = F$GETJPI ("","FILCNT")
72 $!: compute my invocation name
73 $ me = F$ENVIRONMENT("PROCEDURE")
75 $! Many null statements (begin with colon ':') in the Bourne shell version of
76 $! this script serve as comments/placeholders. I have retained some of the ones
77 $! that will help you compare this .COM file to the sh version - as well as
78 $! leave placeholders for future improvements to this .COM file.
79 $! sfn = VMS "skipped for now"
81 $!: Proper PATH separator !sfn
82 $!: Proper PATH setting !sfn
83 $!: Sanity checks !sfn "Say '@''$me''"
84 $!: On HP-UX, large Configure scripts may exercise a bug in /bin/sh !sfn
85 $!: Configure runs within the UU subdirectory !->after find MANIFEST
86 $! <big long list of default values (mostly null)>
87 $!: We must find out about Eunice early !(?)
88 $!: list of known cpp symbols, sorted alphabetically !sfn
90 $!: default library list !sfn
91 $! <no hints files in use (yet?)>
92 $!: Extra object files, if any, needed on this platform. !sfn
93 $!: Possible local include directories to search. !sfn
94 $!: Set locincpth to "" in a hint file to defeat local include searches. !sfn
95 $!locincpth="/usr/local/include /opt/local/include /usr/gnu/include" !sfn
96 $!locincpth="$locincpth /opt/gnu/include /usr/GNU/include /opt/GNU/include"
97 $!: no include file wanted by default !sfn
99 $!: Possible local library directories to search. !sfn
100 $!loclibpth="/usr/local/lib /opt/local/lib /usr/gnu/lib" !sfn
101 $!loclibpth="$loclibpth /opt/gnu/lib /usr/GNU/lib /opt/GNU/lib" !sfn
102 $!: general looking path for locating libraries !sfn
103 $!glibpth="/lib/pa1.1 /usr/shlib /usr/lib/large /lib /usr/lib" !sfn
104 $!glibpth="$glibpth $xlibpth /lib/large /usr/lib/small /lib/small" !sfn
105 $!glibpth="$glibpth /usr/ccs/lib /usr/ucblib /usr/shlib" !sfn
106 $!: Private path used by Configure to find libraries. Its value !sfn
107 $!: is prepended to libpth. This variable takes care of special !sfn
108 $!: machines, like the mips. Usually, it should be empty. !sfn
110 $!: full support for void wanted by default !sfn
111 $!defvoidused=15 !sfn
112 $!: List of libraries we want. !sfn
113 $!libswanted='net socket inet nsl nm ndbm gdbm dbm db malloc dl' !sfn
114 $!libswanted="$libswanted dld ld sun m c cposix posix ndir dir crypt" !sfn
115 $!libswanted="$libswanted ucb bsd BSD PW x" !sfn
116 $!: We probably want to search /usr/shlib before most other libraries. !sfn
117 $!: This is only used by the lib/ExtUtils/MakeMaker.pm routine extliblist. !sfn
118 $!glibpth=`echo " $glibpth " | sed -e 's! /usr/shlib ! !'` !sfn
119 $!glibpth="/usr/shlib $glibpth" !sfn
120 $!: Do not use vfork unless overridden by a hint file. !sfn
121 $!usevfork=false !sfn
122 $!: script used to extract .SH files with variable substitutions !sfn
123 $!: produce awk script to parse command line options !sfn
124 $!sfn (assume no sed awk) see below
125 $!: process the command line options
127 $!: set up default values
131 $ IF F$TYPE(config_sh) .EQS. "" THEN config_sh=""
144 $ use_5005_threads = "N"
150 $ THEN !one or more switches was thrown
157 $ config_args = config_args + F$FAO(" !AS",P'i')
160 $ IF (i.LT.9) THEN GOTO Param_loop !DCL allows P1..P8
164 $ IF (F$EXTRACT(0,1,P'i') .EQS. "-") THEN P'i' = P'i' - "-"
165 $ IF (F$EXTRACT(0,1,P'i') .EQS. "/") THEN P'i' = P'i' - "/"
166 $Remove_quotation_mark:
168 $ IF F$LOCATE("""",P'i') .LT. F$LENGTH(P'i') THEN GOTO Remove_quotation_mark
169 $ gotopt = "f" !"alse"
170 $ gotshortopt = "f" !"alse"
171 $ IF (F$EXTRACT(0,1,P'i') .EQS. "d")
174 $ gotopt = "t" !"rue"
176 $ gotshortopt = "t" !"rue"
178 $ IF (F$EXTRACT(0,1,P'i') .EQS. "e")
185 $ IF (F$EXTRACT(0,1,P'i') .EQS. "f") ! "-f"
189 $ IF (F$SEARCH(config_sh).NES."")
191 $ test_config_sh = F$FILE_ATTRIBUTES(config_sh,"PRO")
192 $ IF (F$LOCATE("R",test_config_sh).NE.F$LENGTH(test_config_sh))
195 $ CONTINUE !at this point check UIC && if test allows...
198 $ echo "''me': cannot read config file ''config_sh'."
202 $ echo "''me': cannot read config file ''config_sh'."
207 $ IF (F$EXTRACT(0,1,P'i') .EQS. "h") ! "-h"
214 $ IF (F$EXTRACT(0,1,P'i') .EQS. "m") ! "-m"
221 $ IF (F$EXTRACT(0,1,P'i') .EQS. "r") ! "-r"
228 $ IF (F$EXTRACT(0,1,P'i') .EQS. "s") ! "-s"
235 $ IF (F$EXTRACT(0,1,P'i') .EQS. "E") ! "-E"
240 $ IF (F$EXTRACT(0,1,P'i') .EQS. "K") ! "-K"
247 $ IF (F$EXTRACT(0,1,P'i') .EQS. "O") ! "-O"
254 $ IF (F$EXTRACT(0,1,P'i') .EQS. "S") ! "-S"
256 $ extractsh = "true" !VMS? Yes with munchconfig
261 $ IF (F$EXTRACT(0,1,P'i') .EQS. "D") ! "-D"
264 $ IF (F$LOCATE("=",P'i') .EQ. F$LENGTH(P'i'))
266 $ tmp = P'i' + "=""define"""
270 $ IF (F$LOCATE("=",P'i') .EQ. (F$LENGTH(P'i') - 1))
272 $ me = F$PARSE(me,,,"NAME") + F$PARSE(me,,,"TYPE")
273 $ echo "''me': use ""-Usymbol=val"" not ""-Dsymbol=""."
274 $ echo "''me': ignoring -D",P'i'
276 $ tmp = F$EXTRACT(0,F$LOCATE("=",P'i'),P'i')
277 $ tmp = tmp + "=""" + F$EXTRACT(F$LOCATE("=",P'i')+1,F$LENGTH(P'i'),P'i') + """"
284 $ IF (F$EXTRACT(0,1,P'i') .EQS. "U") ! "-U"
287 $ IF (F$LOCATE("=",P'i') .EQ. F$LENGTH(P'i'))
289 $ tmp = P'i' + "="""""
293 $ IF (F$LOCATE("=",P'i') .LT. (F$LENGTH(P'i') - 1))
295 $ me = F$PARSE(me,,,"NAME") + F$PARSE(me,,,"TYPE")
296 $ echo "''me': use ""-Dsymbol=val"" not ""-Usymbol=val""."
297 $ echo "''me': ignoring -U",P'i'
299 $ tmp = P'i' + "=""undef"""
306 $ IF (F$EXTRACT(0,1,P'i') .EQS. "V")
308 $ me = F$PARSE(me,,,"NAME") + F$PARSE(me,,,"TYPE")
309 $ echo "''me' generated by an unknown version of EDT."
315 $ echo "''me': unknown option ",P'i'
318 $ IF (F$LENGTH(P'i').GT.0).AND.(gotshortopt) THEN i = i - 1 !clustered switch
320 $ IF (i .LT. (bang + 1)) THEN GOTO Opt_loop
322 $ ENDIF ! (P1 .NES. "")
323 $ config_args = F$EDIT(config_args,"TRIM")
327 $ me = F$PARSE(me,,,"DIRECTORY")+ F$PARSE(me,,,"NAME")
328 $ echo "Usage: @''me' [-dehmr""EKOSV""] [-fconfig.sh] [""-Dsymbol""] [""-Dsymbol=value""]"
329 $ echo " [-Usymbol] [-Usymbol=]"
332 "-d" : use defaults for all answers.
333 "-e" : go on without questioning past the production of config.sh. *
334 "-f" : specify an alternate default configuration file.
335 "-h" : print this help message and exit (with an error status).
336 "-m" : skip the MANIFEST check to see that all files are present
337 "-r" : reuse C symbols value if possible (skips costly nm extraction).*
338 "-s" : silent mode, only echoes questions and essential information.
339 -"D" : define symbol to have some value: *
340 -"Dsymbol" symbol gets the value 'define'
341 -"Dsymbol=value" symbol gets the value 'value'
342 -E : stop at the end of questions, after having produced config.sh. *
343 -K : do not use unless you know what you are doing.
344 -O : let -D and -U override definitions from loaded configuration file. *
345 -S : perform variable substitutions on all .SH files (can mix with -f) *
346 -"U" : undefine symbol: *
347 -"Usymbol" symbol gets the value 'undef'
348 -"Usymbol=" symbol gets completely empty
349 -V : print version number and exit (with a zero status).
351 $ echo "%Config-I-VMS, lower case switches must be enclosed"
352 $ echo "-Config-I-VMS, in double quotation marks, e.g.:"
353 $ echo "-Config-I-VMS, @Configure ""-des"""
354 $ echo "-Config-I-VMS, * indicates switch may not be fully implemented for VMS."
355 $ SET DEFAULT 'vms_default_directory_name' !be kind rewind
357 $ EXIT 3 ! $STATUS = "%X00000003" (informational)
363 $ IF F$Mode() .eqs. "BATCH"
365 $ STDOUT = F$GetQuI("DISPLAY_JOB","LOG_SPECIFICATION",,"THIS_JOB")
366 $ WRITE SYS$OUTPUT "Warning: Executing in batch mode. To avoid file locking conflicts,"
367 $ WRITE SYS$OUTPUT "output intended for SYS$OUTPUT will be sent to a new version"
368 $ WRITE SYS$OUTPUT STDOUT
370 $ STDOUT = F$TRNLNM("SYS$OUTPUT")
372 $ DEFINE SYS$OUTPUT "_NLA0:"
373 $ echo4 = "write STDOUT "
374 $ cat4 = "TYPE/OUTPUT=''STDOUT'"
375 $ open/write/share=read STDOUT 'STDOUT'
383 $ echo4 = "write SYS$OUTPUT "
387 $!: run the defines and the undefines, if any, but leave the file out there...
388 $! Unfortunately Configure.COM in DCL is not yet set up to do this -
393 $ packageup = F$EDIT((package - "5"),"UPCASE")
395 $!: Eunice requires " " instead of "", can you believe it
398 $ echo "Beginning of configuration questions for ''package'."
401 $!: Some greps do not return status, grrr.
402 $ contains = "SEARCH"
404 $!: first determine how to suppress newline on echo command !cant DCL is record oriented
405 $! echo "Checking ''echo' to see how to suppress newlines..."
406 $! echo "giving up..."
407 $! echo "The star should be here-->*"
409 $!: Now test for existence of everything in MANIFEST
411 $ echo4 "First let's make sure your kit is complete. Checking..."
414 $! Here I assume we are in the [foo.PERLxxx...] tree
415 $! because the search routine simply does set def [-] if necessary.
416 $ file_2_find = "MANIFEST" !I hope this one is not in [foo.PERL5xxx.VMS...]
418 $ manifestfound = F$SEARCH(file_2_find)
419 $ IF (manifestfound .EQS. "")
421 $ IF F$PARSE(F$ENVIRONMENT("DEFAULT"),,,"DIRECTORY",).NES."[000000]"
424 $ GOTO Research_manifest
427 $ echo "There is no MANIFEST file. I hope your kit is complete !"
429 $ GOTO Beyond_manifest
432 $! MANIFEST. has been found and we have set def'ed there -
433 $! time to bail out before it's too late.
434 $ tmp = f$extract(1,3,f$edit(f$getsyi("VERSION"),"TRIM,COLLAPSE"))
435 $ IF (tmp .GES. "7.2") .AND. (F$GETSYI("HW_MODEL") .GE. 1024) THEN GOTO Beyond_depth_check
436 $ IF (F$ELEMENT(max_allowed_dir_depth,".",F$ENVIRONMENT("Default")).nes.".")
440 %Config-E-VMS, ERROR:
441 Sorry! It apears as though your perl build sub-directory is already too
442 deep into the VMS file system. Please try moving stuff into a shallower
443 directory (or altering the "max_allowed_dir_depth" parameter).
445 $ echo4 "ABORTING..."
446 $ SET DEFAULT 'vms_default_directory_name' !be kind rewind
448 $ EXIT !2 !$STATUS = "%X00000002" (error)
452 $! after finding MANIFEST let's create (but not yet enter) the UU subdirectory
454 $ IF (manifestfound .NES. "")
456 $ IF ( F$SEARCH("UU.DIR").EQS."" )
458 $ CREATE/DIRECTORY [.UU]
460 $ IF ( F$SEARCH("[.UU]*.*").NES."" ) THEN DELETE/NOLOG [.UU]*.*;*
462 $!: Configure runs within the UU subdirectory
465 $! a little redundancy never hurt anybody?
466 $ file_2_find = "[-]" + file_2_find
467 $ manifestfound = F$SEARCH(file_2_find)
469 $ OPEN/WRITE MISSING MISSING.
470 $!change to "FALSE" if you wish to skip the manifest search
471 $!(which after all is rather slow in DCL :-)
474 $ echo "Skipping MANIFEST check as requested"
477 $ OPEN/READ CONFIG 'manifestfound'
479 $ READ/END_OF_FILE = Done_manifest CONFIG line
480 $! This algorithm turns "foo/bar/baz.c" into "[.foo.bar]baz.c"
481 $! pvhp@lns62.lns.cornell.edu 10-JUN-1996 20:31:46
482 $! 2-MAR-1998 15:46:11 Improved to turn "foo/bar/baz.c.buz"
483 $! into "[.foo.bar]baz.c_buz as happens with vmstar and unzip
484 $ line = F$EDIT(line,"TRIM, COMPRESS")
485 $ file_2_find = F$EXTRACT(0,F$LOCATE(" ",line),line)
486 $ IF F$LOCATE("/",file_2_find) .NE. F$LENGTH(file_2_find)
488 $Re_strip_line_manifest:
489 $ loca = F$LOCATE("/",file_2_find)
490 $ ante = F$EXTRACT(0,loca,file_2_find)
491 $ post = F$EXTRACT(loca,F$LENGTH(file_2_find),file_2_find)
492 $ test_this = ante + "." + (post - "/")
493 $ IF F$LOCATE("/",test_this) .NE. F$LENGTH(test_this)
495 $ file_2_find = ante + "." + (post - "/")
496 $ GOTO Re_strip_line_manifest
498 $ file_2_find = ante + "]" + (post - "/")
500 $ file_2_find = "[-."+file_2_find
502 $ file_2_find = "[-]" + file_2_find
505 $ dirname = F$EXTRACT(0,F$LOCATE("]",file_2_find),file_2_find) + "]"
506 $ file_2_find = file_2_find - dirname
509 $ dot_ele = F$ELEMENT(dots,".",file_2_find)
510 $ IF dot_ele .EQS. "." THEN GOTO Eo_dot_loop
512 $ THEN basename = f$extract(0,f$locate(".",file_2_find),file_2_find) + "."
513 $ ELSE basename = basename + dot_ele + "_"
518 $ IF (((f$length(file_2_find)+1) .eq. f$length(basename)) .and. -
519 (f$extract(f$length(basename)-1,1,basename) .eqs. "_")) THEN -
520 basename = f$extract(0,f$length(basename)-1,basename)
521 $ file_2_find = dirname + basename
523 $ found = F$SEARCH(file_2_find)
524 $ IF (found .EQS. "" .AND. dots .GT. 2)
526 $! 17-DEC-1999 Improved to turn "[.foo.bar]baz.c_buz" into
527 $! "[.foo.bar]baz_c.buz" to cover unzipped archives and put
528 $! "[.foo.bar]baz.c_buz,baz_c.buz" into missing list if neither is found.
529 $ basename[f$locate(".",basename),1] := _
530 $ dot_ele = F$ELEMENT(dots - 1,"_",basename)
532 f$extract(0,f$length(basename)-(f$length(dot_ele)+1),basename) -
534 $ found = F$SEARCH(dirname + basename)
535 $ file_2_find = file_2_find + "," + basename
537 $ IF (found .EQS. "")
539 $ WRITE MISSING file_2_find
540 $ IF ((F$LENGTH(miss_list)+F$LENGTH(file_2_find)).LT.250)
542 $ miss_list = miss_list + "," + file_2_find
545 $ GOTO Read_loop_manifest
550 $ ENDIF ! (manifestfound .NES. "")
552 $ IF (miss_list .NES. "")
554 $ echo "Some of the files not found include:"
557 $ IF ((miss_list .NES. "").OR.(manifestfound .EQS. ""))
563 THIS PACKAGE SEEMS TO BE INCOMPLETE.
565 You have the option of continuing the configuration process, despite the
566 distinct possibility that your kit is damaged, by typing 'y'es. If you
567 do, don't blame me if something goes wrong. I advise you to type 'n'o
568 and contact the author (dan@sidhe.org)
571 $ READ SYS$COMMAND/PROMPT="Continue? [n] " ans
574 $ echo4 "Continuing..."
576 $ echo4 "ABORTING..."
580 $ echo4 "Looks good..."
581 $ DELETE/NOLOG MISSING.;
582 $ ENDIF ! (miss_list .NES. "")
583 $ ENDIF ! (manifestfound .EQS. "") ELSE
585 $! after finding MANIFEST (see above)
586 $!: Configure runs within the UU subdirectory
588 $!: compute the number of columns on the terminal for proper question formatting
589 $! (sfn, will assume 80-ish)
591 $!: set up the echo used in my read !sfn
592 $!: now set up to do reads with possible shell escape and default assignment !sfn
601 $ If (.NOT. silent) Then echo ""
602 $ READ SYS$COMMAND/PROMPT="''rp'" ans
603 $ IF (ans .EQS. "&-d")
605 $ echo4 "(OK, I will run with -d after this question.)"
606 $ IF (.NOT. silent) THEN echo ""
607 $ READ SYS$COMMAND/PROMPT="''rp'" ans
610 $ IF (ans .EQS. "&-s")
612 $ echo4 "(OK, I will run with -s after this question.)"
614 $ READ SYS$COMMAND/PROMPT="''rp'" ans
623 $!: create .config dir to save info across Configure sessions
624 $ IF ( F$SEARCH("[-]CONFIG.DIR").EQS."" )
626 $ CREATE/DIRECTORY [-.CONFIG]
627 $ OPEN/WRITE CONFIG [-.CONFIG]README.
629 "This directory created by Configure to save information that should"
631 "persist across sessions."
634 "You may safely delete it if you wish."
638 $ IF F$TYPE(usedevel) .EQS. "" THEN usedevel := n
639 $ patchlevel_h = F$SEARCH("[-]patchlevel.h")
640 $ IF (patchlevel_h.NES."")
642 $ SEARCH 'patchlevel_h' "define","PERL_VERSION","epoch"/match=and/out=[]ver.out
643 $ IF .NOT. usedevel .AND. usedevel .NES. "define"
645 $ OPEN/READ CONFIG []ver.out
648 $ tmp = F$EDIT(line,"TRIM,COMPRESS")
649 $ xpatchlevel = F$INTEGER(F$ELEMENT(2," ",tmp))
650 $ line = xpatchlevel / 2
651 $ tmp = xpatchlevel - ( line * 2 )
654 $ echo4 "patchlevel is " + F$STRING(xpatchlevel)
657 *** WHOA THERE!!! ***
659 This is an UNSTABLE DEVELOPMENT release.
660 (The patchlevel, is odd--as opposed to even,
661 and that signifies a development release. If you want a
662 maintenance release, you want an even-numbered release.)
664 Do ***NOT*** install this into production use.
665 Data corruption and crashes are possible.
667 It is most seriously suggested that you do not continue any further
668 unless you want to help in developing and debugging Perl.
672 $ rp="Do you really want to continue? [''dflt'] "
673 $ IF (fastread) THEN fastread := FALSE
675 $ IF ans .EQS. "" THEN ans = dflt
678 $ echo4 "Okay, continuing."
681 $ DELETE/NOLOG/NOCONFIRM []ver.out;
688 $ DELETE/NOLOG/NOCONFIRM []ver.out;
690 $!: general instructions
693 $ user = F$EDIT(F$GETJPI("","USERNAME"),"TRIM,COLLAPSE")
694 $ IF .NOT.(F$SEARCH("[-.CONFIG]INSTRUCT.").EQS."")
696 $ messages = F$ENVIRONMENT("MESSAGE")
697 $ SET MESSAGE/NOFAC/NOSEV/NOIDENT/NOTEXT
698 $ contains /NOOUTPUT [-.CONFIG]INSTRUCT. 'user'
699 $ IF .NOT.($status.EQ.%X08D78053)
703 $ rp = "Would you like to see the instructions? [''dflt'] "
705 $ if .NOT.ans THEN needman=""
707 $ SET MESSAGE 'messages'
709 $ if (fastread.AND.silent.AND.(alldone.eqs."cont")) THEN needman=""
716 This installation shell script will examine your system and ask you questions
717 to determine how the perl5 package should be installed. If you get
718 stuck on a question, you may use a ^C or ^Y shell escape to STOP this
719 process, edit something, then restart this process as you just did.
720 Many of the questions will have default answers in square
721 brackets; typing carriage return will give you the default.
724 $ READ SYS$COMMAND/PROMPT="Type carriage return to continue " ans
728 In a hurry? You may run '@Configure "-d"'. This will bypass nearly all
729 the questions and use the computed defaults (or the previous answers provided
730 there was already a config.sh file). Type '@Configure "-h"' for a list of
734 $ READ SYS$COMMAND/PROMPT="Type carriage return to continue " ans
738 Much effort has been expended to ensure that this shell script will
739 run on any VMS system. If despite that it blows up on yours, your
740 best bet is to edit Configure.com and @ it again. Whatever problems
741 you have with Configure.com, let me (dan@sidhe.org) know how I blew
745 $!This installation script affects things in two ways:
747 $!1) it may do direct variable substitutions on some of the files included
749 $!2) it builds a config.h file for inclusion in C programs. You may edit
750 $! any of these files as the need arises after running this script.
752 $!If you make a mistake on a question, there is no easy way to back up to it
755 $ READ SYS$COMMAND/PROMPT="Type carriage return to continue " ans
756 $ IF (F$SEARCH("[-.CONFIG]INSTRUCT.").EQS."")
758 $ OPEN/WRITE CONFIG [-.CONFIG]INSTRUCT.
762 $ ENDIF !(needman .EQS. "true")
764 $!: see if sh knows # comments !sfn
766 $!: figure out how to guarantee sh startup !sfn
767 $!: find out where common programs are !sfn
768 $!loclist="awk/cat/comm/cp/echo/expr/find/grep/ln/ls/mkdir/rm/sed/sort/touch/tr/uniq"
769 $!trylist="byacc/cpp/csh/date/egrep/less/line/more/nroff/perl/pg/sendmail/test/uname"
770 $! echo "I don't know where '$file' is, and my life depends on it."
771 $! echo "Go find a public domain implementation or fix your PATH setting!"
773 $! echo "Don't worry if any of the following aren't found..."
774 $!: determine whether symbolic links are supported !sfn
775 $!: see whether [:lower:] and [:upper:] are supported character classes !sfn
776 $!: set up the translation script tr, must be called with ./tr of course !sfn
778 $!: Try to determine whether config.sh was made on this system
779 $!: Get old answers from old config file if Configure was run on the
780 $!: same system, otherwise use the hints.
781 $ config_sh_es = "''config_sh'/[-]config.sh/[-.vms]config.vms/"
785 $ config_sh = F$ELEMENT(i,"/",config_sh_es)
787 $ IF (config_sh.NES."/").AND.(config_sh.NES."")
789 $ configshfound = F$SEARCH(config_sh)
790 $ IF (configshfound.NES."") THEN GOTO Config_sh_found
792 $ IF (i.LT.max) THEN GOTO Config_sh_look
793 $! genconfig.pl has "osname='VMS'"
794 $ osname = F$EDIT(F$GETSYI("NODE_SWTYPE"),"COLLAPSE")
795 $ IF (configshfound.EQS."")
797 $ config_sh = "[-]config.sh" ! the fallback default
798 $ GOTO Beyond_config_sh
801 $ IF F$TYPE(osname) .EQS. "" THEN osname = F$EDIT(F$GETSYI("NODE_SWTYPE"),"COLLAPSE")
802 $ IF F$TYPE(config_dflt) .EQS. "" THEN config_dflt = "n"
803 $ rp = "Shall I @ ''config_sh' for default answers? [''config_dflt'] "
805 $ IF ans .EQS. "" THEN ans = config_dflt
809 $ echo "Fetching default answers from ''config_sh'..."
811 $! This @ is why config_sh must employ DCL syntax. Note that for
812 $! symbols to be returned to this procedure they must be global.
813 $! Which implies that assignments must be of the :== or == variety.
814 $! Note further that the [-]config.sh file written by this procedure
815 $! employs shell syntax. In order to convert shell syntax to DCL
818 $! perl -ni -e "s/^#/!#/;s/='/==""/;s/'$/""/;print ""\$ $_"";" config.sh
820 $! However, watch out for sig_nam, sig_nam_init, sig_num, startperl
821 $! and any of the lower case double quoted variables such as the *format
822 $! variables in such a config."sh".
827 $ DELETE/SYMBOL config_dflt
829 $!we actually do not have "hints/" for VMS
833 $!First time through, eh? I have some defaults handy for the following systems:
836 $! echo " ","VMS_VAX"
837 $! echo " ","VMS_AXP"
838 $! : Now look for a hint file osname_osvers, unless one has been
839 $! : specified already.
842 $!You may give one or more space-separated answers, or "none" if appropriate.
843 $!If your OS version has no hints, DO NOT give a wrong version -- say "none".
845 $! READ SYS$COMMAND/PROMPT="Which of these apply, if any? " ans
849 $!: Restore computed paths !sfn
851 $! %Config-I-VMS, a necessary error trap (could be PC running VCL)
853 $ IF (osname .NES. "VMS")
855 $ echo4 "Hmm.. I wonder what ''osname' is (?)"
859 %Config-E-VMS, ERROR:
861 Err, you do not appear to be running VMS!
862 This procedure is intended to Configure the building of Perl for VMS.
865 $ READ SYS$COMMAND/PROMPT="Continue anyway? [n] " ans
868 $ echo4 "Continuing..."
870 $ echo4 "ABORTING..."
871 $ SET DEFAULT 'vms_default_directory_name' !be kind rewind
873 $ EXIT 2 !$STATUS = "%X00000002" (error)
875 $ ELSE !we are on VMS huzzah!
877 $ THEN TYPE SYS$INPUT:
880 Configure uses the operating system name and version to set some defaults.
881 The default value is probably right if the name rings a bell. Otherwise,
882 since spelling matters for me, either accept the default or answer "none"
886 $ rp = "Operating system name? [''osname'] "
890 $ IF (ans.NES.osname) !.AND.knowitall
892 $ echo4 "I'll go with ''osname' anyway..."
895 $ ENDIF !(osname .NES./.EQS. "VMS")
897 $!: who configured the system
898 $ cf_by = F$EDIT(user,"LOWERCASE")
899 $ osvers = F$EDIT(F$GETSYI("VERSION"),"TRIM")
901 $! Peter Prymmer has seen:
902 $! "SYS$TIMEZONE_DIFFERENTIAL" = "-46800" (sic)
903 $! "SYS$TIME_ZONE" = "EDT"
905 $! Charles Lane recommended:
906 $! "SYS$TIMEZONE_DIFFERENTIAL" = "-14400"
907 $! "NEWS_TIMEZONE" = "-0500"
908 $! "ST_TIMEZONE" = "EDT"
909 $! "JAN_TIME_ZONE" = "EST "
910 $! "MULTINET_TIMEZONE" = "EST"
911 $! "DAYLIGHT_SAVINGS" = "1"
913 $! Charles Bailey recommends (in ANU NEWS Doc Jan 1995):
915 $! "Multinet_Timezone"
916 $! "TCPware_Timezone"
919 $! This snippet o' DCL returns a string in default Unix `date` format,
920 $! and it will prompt to set SYS$TIMEZONE_DIFFERENTIAL.
922 $ MIN_TZO = -840 !units are minutes here
925 $ wkday = F$EXTRACT(0,3,F$CVTIME(,,"WEEKDAY"))
926 $ monn = F$CVTIME(,,"MONTH")
927 $ mday = F$EXTRACT(8,2,F$CVTIME(,,"DATE"))
928 $ hour = F$CVTIME(,,"HOUR")
929 $ min = F$CVTIME(,,"MINUTE")
930 $ sec = F$CVTIME(,,"SECOND")
931 $ year = F$CVTIME(,,"YEAR")
933 $ months = "/Jan/Feb/Mar/Apr/May/Jun/Jul/Aug/Sep/Oct/Nov/Dec/"
937 $ mon = F$ELEMENT(i,"/",months)
938 $ IF i.LT.monn THEN GOTO Mon_loop
941 $ systz = F$TRNLNM("SYS$TIMEZONE_DIFFERENTIAL")
944 $ tzhour = F$INTEGER(systz)/3600
945 $ tzmins = F$INTEGER(systz)/60
946 $ tzminrem = tzmins - tzhour*60
947 $ IF tzminrem.lt.0 THEN tzminrem = -1*tzminrem !keeps !2ZL happy
949 $ THEN signothetime = "+"
950 $ IF tzhour.EQ.0.AND.tzminrem.EQ.0
951 $ THEN direction = "on GMT/"
952 $ ELSE direction = "east of "
954 $ ELSE signothetime = "-"
955 $ tzhour = -1*tzhour !keeps !UL happy
956 $ direction = "west of "
959 $ echo "According to the setting of your ""SYS$TIMEZONE_DIFFERENTIAL"" (= ''systz')"
962 $ tzspan = "''tzhour' hours & ''tzminrem' minutes"
964 $ tzspan = "''tzhour' hours"
967 $ echo "Your system is ''tzspan' ''direction'UTC in England."
968 $ rp = "(''systz') Is this UTC Time Zone Offset correct? [''dflt'] "
970 $ IF ans.OR.(ans.EQS."")
974 $ GOTO Beyond_TimeZone
978 $ echo4 """SYS$TIMEZONE_DIFFERENTIAL"" does not appear to be DEFINEd on your system"
983 $ echo "Please tell me in hh:mm form what time offset from GMT/UTC in England"
984 $ echo "you are. As an example Eastern (US) Standard Time is -5:00 offset, but"
985 $ echo "Eastern Daylight Time (summer) is -4:00 offset."
987 $ rp = "Enter the Time Zone offset: [''dflt'] "
989 $ ans = F$Edit(ans,"collapse,trim,uncomment,upcase")
990 $ IF ans.EQS."" THEN ans = dflt
991 $ tzhour = F$ELEMENT(0,":","''ans'") !first
992 $ IF tzhour.EQS."" THEN tzhour = 0
993 $ tzhour = F$INTEGER(tzhour)
994 $ tzminrem = F$ELEMENT(1,":","''ans'") !second
997 $ tzminrem = F$INTEGER(tzminrem)
998 $ IF F$EXTRACT(0,1,"''ans'") .EQS. "-" THEN tzminrem = tzminrem * -1
1002 $ tzmins = tzhour*60 + tzminrem
1003 $ tzd = F$STRING(tzmins*60)
1006 $ signothetime = "+"
1008 $ tzhour = -1*tzhour !keeps !UL happy
1009 $ signothetime = "-"
1011 $ IF (tzmins.GT.MAX_TZO).OR.(tzmins.LT.MIN_TZO)
1014 $ echo "%Config-W-VMS-TIMERANGE, Response must be in the range -14:00 to 14:00."
1019 $ tz = f$fao("UTC!AS!UL:!2ZL",signothetime,tzhour,tzminrem)
1020 $ cf_time = "''wkday' ''mon' ''mday' ''hour':''min':''sec' ''tz' ''year'"
1022 $!: determine the architecture name
1023 $! genconfig.pl has either archname='VMS_AXP' or 'VMS_VAX'
1024 $! Note that DCL in VMS V5.4 does not have F$GETSYI("ARCH_NAME")
1025 $! but does have F$GETSYI("HW_MODEL").
1027 $ IF (F$GETSYI("HW_MODEL") .LT. 1024)
1029 $ archname = "VMS_VAX"
1030 $ otherarch = "an Alpha"
1032 $ arch_type = "ARCH-TYPE=__VAX__"
1034 $ archname = "VMS_AXP"
1035 $ otherarch = "a VAX"
1037 $ arch_type = "ARCH-TYPE=__AXP__"
1039 $ rp = "What is your architecture name? [''archname'] "
1043 $ ans = F$EDIT(ans,"COLLAPSE, UPCASE")
1044 $ IF (ans.NES.archname) !.AND.knowitall
1046 $ echo4 "I'll go with ''archname' anyway..."
1050 $ vms_prefix = "perl_root"
1051 $ vms_prefixup = F$EDIT(vms_prefix,"UPCASE")
1052 $ rp = "Will you be sharing your ''vms_prefixup' with ''otherarch'? [''dflt'] "
1056 $ ans = F$EXTRACT(0,1,F$EDIT(ans,"COLLAPSE, UPCASE"))
1063 $ IF (archname.EQS."VMS_AXP")
1065 $ macros = macros + """AXE=1"","
1069 $!: is AFS running? !sfn
1070 $!: decide how portable to be. Allow command line overrides. !sfn
1071 $!: set up shell script to do ~ expansion !sfn
1072 $!: expand filename !sfn
1073 $!: now set up to get a file name !sfn
1075 $ IF F$TYPE(prefix) .EQS. ""
1077 $ prefix = F$ENVIRONMENT("DEFAULT") - ".UU]" + "]"
1078 $ prefix = F$PARSE(prefix,,,,"NO_CONCEAL") - "][" - ".;"
1079 $ prefixbase = prefix - "]"
1080 $ prefix = prefixbase + ".]"
1083 $!: determine root of directory hierarchy where package will be installed.
1088 $ echo "By default, ''package' will be installed in ''dflt', pod"
1089 $ echo "pages under ''prefixbase'.LIB.POD], etc..., i.e. with ''dflt' as prefix for"
1090 $ echo "all installation directories."
1091 $ echo "On ''osname' the prefix is used to DEFINE the ''vms_prefixup' prior to installation"
1092 $ echo "as well as during subsequent use of ''package' via ''packageup'_SETUP.COM."
1094 $ rp = "Installation prefix to use (for ''vms_prefixup')? [ ''dflt' ] "
1099 $ IF F$LOCATE(".]",ans) .EQ. F$LENGTH(ans) THEN prefix = prefix - "]" + ".]"
1103 $ perl_root = prefix
1105 $! Check here for pre-existing PERL_ROOT.
1106 $! -> ask if removal desired.
1107 $! Check here for writability of requested PERL_ROOT if it is not the default (cwd).
1108 $! -> recommend letting PERL_ROOT be PERL_SRC if requested PERL_ROOT is not writable.
1110 $ vms_skip_install = "true"
1113 $ rp = "Skip the remaining """"where install"""" questions? [''dflt'] "
1115 $ IF (.NOT.ans).AND.(ans.NES."") THEN vms_skip_install = "false"
1116 $ IF (.NOT.vms_skip_install)
1119 $!: set the prefixit variable, to compute a suitable default value
1121 $!: determine where private library files go
1122 $!: Usual default is /usr/local/lib/perl5. Also allow things like
1123 $!: /opt/perl/lib, since /opt/perl/lib/perl5 would be redundant.
1129 There are some auxiliary files for perl5 that need to be put into a
1130 private library directory that is accessible by everyone.
1133 $ IF F$TYPE(privlib) .NES. ""
1134 $ THEN dflt = privlib
1135 $ ELSE dflt = "''vms_prefix':[lib]"
1137 $ rp = "Pathname where the private library files will reside? "
1138 $ rp = F$FAO("!AS!/!AS",rp,"[ ''dflt' ] ")
1141 $ THEN privlib = ans
1142 $ ELSE privlib = dflt
1145 $ ENDIF !%Config-I-VMS, skip remaining "where install" questions
1147 $ perl_symbol = "true"
1153 $ echo "You may choose to write ''packageup'_SETUP.COM to assign a foreign"
1154 $ echo "symbol to invoke ''package', which is the usual method."
1155 $ echO "If you do not do so then you would need a DCL command verb at the"
1156 $ echo "process or the system wide level."
1158 $ rp = "Invoke perl as a global symbol foreign command? [''dflt'] "
1160 $ IF (.NOT.ans).AND.(ans.NES."") THEN perl_symbol = "false"
1162 $ IF (.NOT.perl_symbol)
1168 $ echo "Since you won't be using a symbol you must choose to put the ''packageup'"
1169 $ echo "verb in a per-process table or in the system wide DCLTABLES (which"
1170 $ echo "would require write privilege)."
1172 $ rp = "Invoke perl as a per process command verb? [ ''dflt' ] "
1174 $ IF (.NOT.ans).AND.(ans.NES."")
1175 $ THEN perl_verb = "DCLTABLES"
1176 $ ELSE perl_verb = "PROCESS"
1178 $ ENDIF ! (.NOT.perl_symbol)
1180 $!: set the base revision
1182 $ revision = baserev - ".0"
1183 $!: get the patchlevel
1185 $ echo4 "Getting the current patchlevel..."
1186 $ patchlevel_h = F$SEARCH("[-]patchlevel.h")
1187 $ IF (patchlevel_h.NES."")
1189 $ got_patch = "false"
1191 $ got_api_revision = "false"
1192 $ got_api_version = "false"
1193 $ got_api_subversion = "false"
1194 $ OPEN/READONLY CONFIG 'patchlevel_h'
1196 $ READ/END_Of_File=Close_patch/ERROR=Close_patch CONFIG line
1197 $ IF ((F$LOCATE("#define PERL_VERSION",line).NE.F$LENGTH(line)).AND.(.NOT.got_patch))
1199 $ line = F$EDIT(line,"COMPRESS, TRIM")
1200 $ patchlevel = F$ELEMENT(2," ",line)
1201 $ got_patch = "true"
1203 $ IF ((F$LOCATE("#define PERL_SUBVERSION",line).NE.F$LENGTH(line)).AND.(.NOT.got_sub))
1205 $ line = F$EDIT(line,"COMPRESS, TRIM")
1206 $ subversion = F$ELEMENT(2," ",line)
1209 $ IF ((F$LOCATE("#define PERL_API_REVISION",line).NE.F$LENGTH(line)).AND.(.NOT.got_api_revision))
1211 $ line = F$EDIT(line,"COMPRESS, TRIM")
1212 $ api_revision = F$ELEMENT(2," ",line)
1213 $ got_api_revision = "true"
1215 $ IF ((F$LOCATE("#define PERL_API_VERSION",line).NE.F$LENGTH(line)).AND.(.NOT.got_api_version))
1217 $ line = F$EDIT(line,"COMPRESS, TRIM")
1218 $ api_version = F$ELEMENT(2," ",line)
1219 $ got_api_version = "true"
1221 $ IF ((F$LOCATE("#define PERL_API_SUBVERSION",line).NE.F$LENGTH(line)).AND.(.NOT.got_api_subversion))
1223 $ line = F$EDIT(line,"COMPRESS, TRIM")
1224 $ api_subversion = F$ELEMENT(2," ",line)
1225 $ got_api_subversion = "true"
1227 $ IF (.NOT.got_patch).OR.(.NOT.got_sub) THEN GOTO Patchlevel_h_loop
1234 $ IF (F$STRING(subversion) .NES. "0")
1236 $ echo "(You have ''package' revision ''revision' patchlevel ''patchlevel' subversion ''subversion'.)"
1238 $ echo "(You have ''package' revision ''revision' patchlevel ''patchlevel'.)"
1241 $ version = revision + "_" + patchlevel + "_" + subversion
1243 $ IF (.NOT.vms_skip_install)
1245 $!: set the prefixup variable, to restore leading tilde escape !sfn
1247 $!: determine where public architecture dependent libraries go
1251 $ echo "''package' contains architecture-dependent library files. If you are"
1257 sharing libraries in a heterogeneous environment, you might store
1258 these files in a separate location. Otherwise, you can just include
1259 them with the rest of the public library files.
1262 $ IF F$TYPE(archlib) .NES. ""
1263 $ THEN dflt = archlib
1264 $ ELSE dflt = privlib - "]" + "." + archname + "." + version + "]"
1266 $ rp = "Where do you want to put the public architecture-dependent libraries? "
1267 $ rp = F$FAO("!AS!/!AS",rp,"[ ''dflt' ] ")
1270 $ THEN archlib = ans
1271 $ ELSE archlib = dflt
1274 $ ENDIF !%Config-I-VMS, skip "where install" questions
1276 $! This quotation from Configure has to be included on VMS:
1281 There is, however, a strange, musty smell in the air that reminds me of
1282 something...hmm...yes...I've got it...there's a VMS nearby, or I'm a Blit.
1284 $ IF (.NOT.vms_skip_install)
1286 $!: it so happens the Eunice I know will not run shell scripts in Unix format
1288 $!: see if setuid scripts can be secure !sfn
1289 $!: now see if they want to do setuid emulation !sfn
1291 $!: determine where site specific libraries go.
1297 The installation process will also create a directory for
1298 site-specific extensions and modules. Some users find it convenient
1299 to place all local files in this directory rather than in the main
1300 distribution directory.
1303 $ IF F$TYPE(sitelib) .NES. ""
1304 $ THEN dflt = sitelib
1305 $ ELSE dflt = privlib - "]" + ".SITE_PERL]"
1307 $ rp = "Pathname for the site-specific library files? "
1308 $ rp = F$FAO("!AS!/!AS",rp,"[ ''dflt' ] ")
1311 $ THEN sitelib = ans
1312 $ ELSE sitelib = dflt
1315 $!: determine where site specific architecture-dependent libraries go.
1317 $ THEN TYPE SYS$INPUT:
1320 The installation process will also create a directory for
1321 architecture-dependent site-specific extensions and modules.
1324 $ IF F$TYPE(sitearch) .NES. ""
1325 $ THEN dflt = sitearch
1326 $ ELSE dflt = sitelib - "]" + "." + archname + "]"
1328 $ rp = "Pathname for the site-specific architecture-dependent library files? "
1329 $ rp = F$FAO("!AS!/!AS",rp,"[ ''dflt' ] ")
1332 $ THEN sitearch = ans
1333 $ ELSE sitearch = dflt
1336 $!: determine where old public architecture dependent libraries might be
1338 $!: determine where public executables go
1339 $ IF F$TYPE(bin) .NES. ""
1341 $! ELSE dflt = prefix - ".]" + ".BIN]"
1342 $ ELSE dflt = "/''vms_prefix'/000000"
1344 $ rp = "Pathname where the public executables will reside? "
1345 $ rp = F$FAO("!AS!/!AS",rp,"[ ''dflt' ] ")
1352 $!: determine where manual pages are on this system
1353 $!: What suffix to use on installed man pages
1354 $!: see if we can have long filenames
1355 $!: determine where library module manual pages go
1356 $!: What suffix to use on installed man pages
1357 $!: see what memory models we can support
1359 $ ELSE ! skipping "where install" questions, we must set some symbols
1360 $ IF F$TYPE(archlib).EQS."" THEN -
1361 archlib="''vms_prefix':[lib.''archname'.''version']"
1362 $ IF F$TYPE(bin) .EQS. "" THEN -
1363 bin="/''vms_prefix'/000000"
1364 $ IF F$TYPE(privlib) .EQS. "" THEN -
1365 privlib ="''vms_prefix':[lib]"
1366 $ IF F$TYPE(sitearch) .EQS. "" THEN -
1367 sitearch="''vms_prefix':[lib.site_perl.''archname']"
1368 $ IF F$TYPE(sitelib) .EQS. "" THEN -
1369 sitelib ="''vms_prefix':[lib.site_perl]"
1370 $ ENDIF !%Config-I-VMS, skip "where install" questions
1372 $! These derived locations can be set whether we've opted to
1373 $! skip the where install questions or not.
1375 $ IF F$TYPE(archlibexp) .EQS. "" THEN -
1376 archlibexp="''vms_prefix':[lib.''archname'.''version']"
1377 $ IF F$TYPE(binexp) .EQS. "" THEN -
1378 binexp ="''vms_prefix':[000000]"
1379 $ IF F$TYPE(builddir) .EQS. "" THEN -
1380 builddir ="''vms_prefix':[000000]"
1381 $ IF F$TYPE(installarchlib) .EQS. "" THEN -
1382 installarchlib="''vms_prefix':[lib.''archname'.''version']"
1383 $ IF F$TYPE(installbin) .EQS. "" THEN -
1384 installbin ="''vms_prefix':[000000]"
1385 $ IF F$TYPE(installscript) .EQS. "" THEN -
1386 installscript ="''vms_prefix':[utils]"
1387 $ IF F$TYPE(installman1dir) .EQS. "" THEN -
1388 installman1dir ="''vms_prefix':[man.man1]"
1389 $ IF F$TYPE(installman3dir) .EQS. "" THEN -
1390 installman3dir ="''vms_prefix':[man.man3]"
1391 $ IF F$TYPE(installprivlib) .EQS. "" THEN -
1392 installprivlib ="''vms_prefix':[lib]"
1393 $ IF F$TYPE(installsitearch) .EQS. "" THEN -
1394 installsitearch="''vms_prefix':[lib.site_perl.''archname']"
1395 $ IF F$TYPE(installsitelib) .EQS. "" THEN -
1396 installsitelib ="''vms_prefix':[lib.site_perl]"
1397 $ IF F$TYPE(oldarchlib) .EQS. "" THEN -
1398 oldarchlib="''vms_prefix':[lib.''archname']"
1399 $ IF F$TYPE(oldarchlibexp) .EQS. "" THEN -
1400 oldarchlibexp="''vms_prefix':[lib.''archname']"
1401 $ IF F$TYPE(privlibexp) .EQS. "" THEN -
1402 privlibexp ="''vms_prefix':[lib]"
1403 $ IF F$TYPE(sitearchexp) .EQS. "" THEN -
1404 sitearchexp ="''vms_prefix':[lib.site_perl.''archname']"
1405 $ IF F$TYPE(sitelib_stem) .EQS. "" THEN -
1406 sitelib_stem ="''vms_prefix':[lib.site_perl]"
1407 $ IF F$TYPE(sitelibexp) .EQS. "" THEN -
1408 sitelibexp ="''vms_prefix':[lib.site_perl]"
1410 $!: see if we need a special compiler
1411 $! cc_list = "cc/decc|gcc" !%Config-I-VMS, compiler symbols/commands
1415 $ vms_cc_available = ""
1417 $ OPEN/WRITE CONFIG ccvms.c
1418 $ WRITE CONFIG "#ifdef __DECC"
1419 $ WRITE CONFIG "#include <stdlib.h>" !DECC is sooo picky
1420 $ WRITE CONFIG "#endif"
1421 $ WRITE CONFIG "#include <stdio.h>"
1422 $ WRITE CONFIG "int main() {"
1423 $ WRITE CONFIG "#ifdef __DECC"
1424 $ WRITE CONFIG " printf(""/DECC\n"");"
1425 $ WRITE CONFIG "#else"
1426 $ WRITE CONFIG " printf(""/VAXC\n"");"
1427 $ WRITE CONFIG "#endif"
1428 $ WRITE CONFIG " exit(0);"
1432 $! DEFINE SYS$ERROR _NLA0:
1433 $! DEFINE SYS$OUTPUT _NLA0:
1434 $ cc/NoObj/list=ccvms.lis ccvms.c
1436 $! DEASSIGN SYS$OUTPUT
1437 $! DEASSIGN SYS$ERROR
1438 $ IF (silent) THEN GOSUB Shut_up
1439 $ IF tmp.NE.%X10B90001
1441 $ IF tmp.NE.%X10000001
1443 $ nocc = "t" !%X10000001 is return from gcc
1444 $ GOTO Gcc_initial_check
1449 $ IF .NOT.silent THEN echo ""
1450 $ echo "Default ""cc"" is ''line' ''archsufx' ''F$GETSYI("VERSION")'"
1451 $ IF F$LOCATE("VAX",line).NE.F$LENGTH(line)
1455 $ echo "Will try cc/decc..."
1457 $ DEFINE/USER_MODE SYS$ERROR NL:
1458 $ DEFINE/USER_MODE SYS$OUTPUT NL:
1460 $ cc/decc/NoObj/list=ccvms.lis ccvms.c
1463 $ IF (silent) THEN GOSUB Shut_up
1464 $ IF tmp.NE.%X10B90001
1466 $ echo "Apparently you don't have that one."
1469 $ echo "You also have: ''line' ''archsufx' ''F$GETSYI("VERSION")'"
1470 $ vms_cc_available = vms_cc_available + "cc/decc "
1473 $ IF (F$LOCATE("DEC",line).NE.F$LENGTH(line)).or.(F$LOCATE("Compaq",line).NE.F$LENGTH(line))
1475 $ vms_cc_dflt = "/decc"
1476 $ vms_cc_available = vms_cc_available + "cc/decc "
1481 $ echo "Checking for gcc"
1482 $ OPEN/WRITE CONFIG gccvers.lis
1483 $ DEFINE/USER_MODE SYS$ERROR CONFIG
1484 $ DEFINE/USER_MODE SYS$OUTPUT CONFIG
1485 $ 'gcc_symbol'/noobj/version _nla0:
1487 $ IF (silent) THEN GOSUB Shut_up
1489 $ IF (tmp.NE.%X10000001).and.(tmp.ne.%X00030001)
1491 $ echo "Symbol ""''gcc_symbol'"" is not defined. I guess you do not have it."
1492 $ DELETE/NOLOG/NOCONFIRM gccvers.lis;
1493 $ GOTO Cxx_initial_check
1495 $ OPEN/READ CONFIG gccvers.lis
1497 $ READ/END_OF_FILE=GCC_List_End CONFIG line
1498 $ GOTO GCC_List_Read
1502 $ vms_cc_available = vms_cc_available + "''gcc_symbol' "
1503 $ DELETE/NOLOG/NOCONFIRM gccvers.lis;
1507 $! Do note that [vms]perl source files have a ways to go before they will
1508 $! compile under CXX.
1509 $! In order to test Configure.com with CXX invoke it with "-Dtry_cxx" on
1510 $! the command line.
1512 $ IF F$TYPE(try_cxx) .EQS. "" THEN try_cxx := n
1513 $ IF try_cxx .OR. try_cxx .EQS. "define"
1517 $ echo "Checking for CXX..."
1518 $ OPEN/WRITE CONFIG ccvms.c
1519 $ WRITE CONFIG "#include <iostream>"
1520 $ WRITE CONFIG "int main() {"
1521 $ WRITE CONFIG "#ifdef __DECCXX"
1522 $ WRITE CONFIG " cout << __DECCXX, endl;"
1523 $ WRITE CONFIG "#else"
1524 $ WRITE CONFIG " cout << 0,endl;"
1525 $ WRITE CONFIG "#endif"
1526 $! Todo: add G++ identifier check ??
1527 $ WRITE CONFIG " return(0);"
1531 $ DEFINE/USER_MODE SYS$OUTPUT NL:
1532 $ DEFINE/USER_MODE SYS$ERROR NL:
1536 $! success $status with:
1537 $! DEC C++ V1.1-001 on VMS VAX V5.5-2
1538 $! DEC C++ V5.6-013 on OpenVMS VAX V7.1
1539 $! DEC C++ V6.1-003 on OpenVMS Alpha V7.1
1540 $! Compaq C++ V6.2-016 for OpenVMS Alpha V7.2-1
1541 $ IF tmp .eq. %X15F60001
1545 $ DEFINE/USER_MODE SYS$OUTPUT NL:
1546 $ DEFINE/USER_MODE SYS$ERROR NL:
1550 $ ! success $status with:
1551 $ ! link && DEC C++ V1.1-001 on VMS VAX V5.5-2
1552 $ ! link && DEC C++ V5.6-013 on OpenVMS VAX V7.1
1553 $ IF tmp .eq. %X10000001
1556 $ vms_cc_available = vms_cc_available + "cxx "
1557 $ echo "CXX and LINK are available."
1559 $ IF F$SEARCH("ccvms.exe") .NES. "" THEN DELETE/NOLOG/NOCONFIRM ccvms.exe;
1561 $ DEFINE/USER_MODE SYS$OUTPUT NL:
1562 $ DEFINE/USER_MODE SYS$ERROR NL:
1566 $ ! success $status with:
1567 $ ! cxxlink && DEC C++ V6.1-003 on OpenVMS Alpha V7.1
1568 $ ! cxxlink && Compaq C++ V6.2-016 for OpenVMS Alpha V7.2-1
1569 $ IF tmp .eq. %X10000001
1571 $ ld_try = "cxxlink"
1572 $ vms_cc_available = vms_cc_available + "cxx "
1573 $ echo "CXX and CXXLINK are available."
1576 $ IF F$SEARCH("ccvms.exe") .NES. "" THEN DELETE/NOLOG/NOCONFIRM ccvms.exe;
1580 $ DELETE/NOLOG/NOCONFIRM ccvms.c;
1581 $ IF F$SEARCH("ccvms.obj") .NES. "" THEN DELETE/NOLOG/NOCONFIRM ccvms.obj;
1582 $ CALL Cxx_demangler_cleanup
1584 $ ENDIF ! 1 .eq. 0 or 1 .eq. 1
1587 $ DELETE/NOLOG/NOCONFIRM ccvms.*;
1589 $!: see if we need a special compiler
1591 $ echo "Available compiler(s):"
1592 $ echo "( ''vms_cc_available')"
1595 $ dflt = "cc''vms_cc_dflt'" !-> "cc" in case first compile went OK
1599 $ rp = "Use which C compiler? [''dflt'] "
1603 $ ans = F$EDIT(ans,"TRIM, COMPRESS, LOWERCASE")
1605 $ IF (F$LOCATE("dec",ans).NE.F$LENGTH(ans)).or.(F$LOCATE("compaq",ans).NE.F$LENGTH(ans))
1609 $ C_COMPILER_Replace = "CC=cc=''Mcc'"
1611 $ IF F$LOCATE("cxx",F$EDIT(ans,"COLLAPSE,LOWERCASE")) .NE. F$LENGTH(ans)
1616 $ C_COMPILER_Replace = "CC=cc=''Mcc'"
1620 $ IF F$LOCATE("dec",dflt) .NE. F$LENGTH(dflt) .or. -
1621 F$LOCATE("compaq",dflt) .NE. F$LENGTH(dflt)
1623 $ C_COMPILER_Replace = "CC=cc=''Mcc'"
1628 $ IF Mcc .EQS. "cc/decc"
1631 $ C_COMPILER_Replace = "CC=cc=''Mcc'"
1637 $ IF Mcc .EQS. "cc/decc"
1640 $ C_COMPILER_Replace = "CC=cc=''Mcc'"
1642 $ IF Mcc .EQS. "gcc"
1645 $ C_COMPILER_Replace = "CC=cc=''Mcc'"
1648 $Decc_Version_check:
1653 $ echo4 "Checking for the Dec C version number..."
1654 $ OPEN/WRITE CONFIG deccvers.c
1655 $ WRITE CONFIG "#include <stdlib.h>" !DECC is sooo picky
1656 $ WRITE CONFIG "#include <stdio.h>"
1657 $ WRITE CONFIG "int main() {"
1658 $ WRITE CONFIG "#ifdef __DECC"
1659 $ WRITE CONFIG "#ifdef __DECC_VER"
1660 $ WRITE CONFIG " printf(""%i\n"", __DECC_VER);"
1661 $ WRITE CONFIG "#else"
1662 $ WRITE CONFIG " printf(""%i\n"", ""1"");"
1663 $ WRITE CONFIG "#endif"
1664 $ WRITE CONFIG "#endif"
1665 $ WRITE CONFIG " exit(0);"
1669 $ DEFINE/USER_MODE SYS$ERROR NL:
1670 $ DEFINE/USER_MODE SYS$OUTPUT NL:
1673 $ IF (silent) THEN GOSUB Shut_up
1674 $ DEFINE/USER_MODE SYS$ERROR NL:
1675 $ DEFINE/USER_MODE SYS$OUTPUT NL:
1678 $ IF (silent) THEN GOSUB Shut_up
1679 $ OPEN/WRITE CONFIG deccvers.out
1680 $ DEFINE/USER_MODE SYS$ERROR CONFIG
1681 $ DEFINE/USER_MODE SYS$OUTPUT CONFIG
1682 $ mcr []deccvers.exe
1686 $ IF (silent) THEN GOSUB Shut_up
1687 $ OPEN/READ CONFIG deccvers.out
1688 $ READ/END_OF_FILE=Dec_c_cleanup CONFIG line
1691 $ echo "You are using Dec C ''line'"
1693 $ Dec_C_Version = F$INTEGER(line)
1694 $ IF Dec_C_Version .GE. 60200000
1696 $ echo4 "adding /NOANSI_ALIAS qualifier to ccflags."
1697 $ ccflags = ccflags + "/NOANSI_ALIAS"
1699 $ DELETE/NOLOG/NOCONFIRM deccvers.*;
1705 $ vaxcrtl_olb = F$SEARCH("SYS$LIBRARY:VAXCRTL.OLB")
1706 $ vaxcrtl_exe = F$SEARCH("SYS$SHARE:VAXCRTL.EXE")
1707 $ gcclib_olb = F$SEARCH("GNU_CC:[000000]GCCLIB.OLB")
1708 $ IF gcclib_olb .EQS. ""
1710 $! These objects/libs come w/ gcc 2.7.2 for AXP:
1711 $ tmp = F$SEARCH("GNU_CC:[000000]libgcc2.olb")
1712 $ IF tmp .NES. "" then gcclib_olb = tmp
1713 $ tmp = F$SEARCH("GNU_CC:[000000]libgcclib.olb")
1716 $ IF gcclib_olb .EQS. ""
1717 $ THEN gcclib_olb = tmp
1718 $ ELSE gcclib_olb = gcclib_olb + "/lib," + tmp
1721 $ tmp = F$SEARCH("SYS$LIBRARY:VAXCRTL.OLB")
1724 $ IF gcclib_olb .EQS. ""
1725 $ THEN gcclib_olb = tmp
1726 $ ELSE gcclib_olb = gcclib_olb + "/lib," + tmp
1729 $ tmp = F$SEARCH("GNU_CC:[000000]crt0.obj")
1732 $ IF gcclib_olb .EQS. ""
1733 $ THEN gcclib_olb = tmp
1734 $ ELSE gcclib_olb = gcclib_olb + "/lib," + tmp
1737 $ IF gcclib_olb .EQS. vaxcrtl_olb THEN gcclib_olb = "" !goofy order of axplibs
1739 $ gcclib_olb = gcclib_olb + "/lib"
1741 $ IF gcclib_olb .NES. "" .AND. -
1742 (vaxcrtl_olb .NES. "" .OR. -
1743 vaxcrtl_exe .NES. "" )
1746 $ echo4 "Checking for GNU cc in disguise and/or its version number..." !>&4
1747 $ OPEN/WRITE CONFIG gccvers.c
1748 $ WRITE CONFIG "#include <stdio.h>"
1749 $ WRITE CONFIG "int main() {"
1750 $ WRITE CONFIG "#ifdef __GNUC__"
1751 $ WRITE CONFIG "#ifdef __VERSION__"
1752 $ WRITE CONFIG " printf(""%s\n"", __VERSION__);"
1753 $ WRITE CONFIG "#else"
1754 $ WRITE CONFIG " printf(""%s\n"", ""1"");"
1755 $ WRITE CONFIG "#endif"
1756 $ WRITE CONFIG "#endif"
1757 $ WRITE CONFIG " exit(0);"
1760 $ DEFINE SYS$ERROR _NLA0:
1761 $ DEFINE SYS$OUTPUT _NLA0:
1764 $ DEASSIGN SYS$ERROR _NLA0:
1765 $ DEASSIGN SYS$OUTPUT _NLA0:
1766 $ IF (silent) THEN GOSUB Shut_up
1767 $ DEFINE SYS$ERROR _NLA0:
1768 $ DEFINE SYS$OUTPUT _NLA0:
1769 $ IF vaxcrtl_exe .EQS. ""
1771 $ IF F$LOCATE("VAXCRTL",gcclib_olb).NE.F$LENGTH(gcclib_olb)
1773 $ link gccvers.obj,'gcclib_olb',SYS$LIBRARY:VAXCRTL/Library
1776 $ link gccvers.obj,'gcclib_olb'
1780 $ OPEN/WRITE CONFIG GCCVERS.OPT
1781 $ WRITE CONFIG "SYS$SHARE:VAXCRTL/SHARE"
1783 $ link gccvers.obj,GCCVERS.OPT/OPT,'gcclib_olb'
1786 $ DEASSIGN SYS$ERROR
1787 $ DEASSIGN SYS$OUTPUT
1788 $ IF (silent) THEN GOSUB Shut_up
1789 $ OPEN/WRITE CONFIG gccvers.out
1790 $ DEFINE SYS$ERROR CONFIG
1791 $ DEFINE SYS$OUTPUT CONFIG
1795 $ DEASSIGN SYS$OUTPUT
1796 $ DEASSIGN SYS$ERROR
1797 $ IF (silent) THEN GOSUB Shut_up
1798 $ OPEN/READ CONFIG gccvers.out
1799 $ READ/END_OF_FILE=Gcc_cleanup CONFIG line
1802 $ DELETE/NOLOG/NOCONFIRM gccvers.*;
1803 $ IF F$LOCATE("GNU C version ",line).NE.F$LENGTH(line)
1805 $ echo "You are not using GNU cc."
1808 $ echo "You are using GNU cc ''line'"
1811 $ C_COMPILER_Replace = "CC=cc=''Mcc'"
1819 $ OPEN/WRITE CONFIG cxxvers.c
1820 $ WRITE CONFIG "#include <stdio.h>"
1821 $ WRITE CONFIG "int main() {"
1822 $ WRITE CONFIG "#ifdef __DECCXX_VER"
1823 $ WRITE CONFIG " printf(""%i\n"", __DECCXX_VER);"
1824 $ WRITE CONFIG "#else"
1825 $ WRITE CONFIG " printf(""%i\n"", ""0"");"
1826 $ WRITE CONFIG "#endif"
1827 $ WRITE CONFIG " return(0);"
1831 $ DEFINE/USER_MODE SYS$ERROR NL:
1832 $ DEFINE/USER_MODE SYS$OUTPUT NL:
1836 $ IF (silent) THEN GOSUB Shut_up
1838 $ DEFINE/USER_MODE SYS$ERROR NL:
1839 $ DEFINE/USER_MODE SYS$OUTPUT NL:
1843 $ IF (silent) THEN GOSUB Shut_up
1844 $ OPEN/WRITE CONFIG cxxvers.out
1846 $ DEFINE/USER_MODE SYS$ERROR CONFIG
1847 $ DEFINE/USER_MODE SYS$OUTPUT CONFIG
1852 $ IF (silent) THEN GOSUB Shut_up
1853 $ OPEN/READ CONFIG cxxvers.out
1854 $ READ/END_OF_FILE=Cxx_cleanup CONFIG line
1857 $ DELETE/NOLOG/NOCONFIRM cxxvers.*;
1858 $ echo "You are using CXX ''line'"
1861 $ CALL Cxx_demangler_cleanup
1864 $Cxx_demangler_cleanup: SUBROUTINE
1866 $! If we do build with CXX these demangler Dbs will be left all over.
1867 $! However, configure.com does try to remove the [.UU] sub directory.
1868 $! Be sure to set default to the correct place before calling this sub.
1871 $ IF F$SEARCH("[.CXX_REPOSITORY]*.*") .NES. "" THEN DELETE/NOLOG/NOCONFIRM [.CXX_REPOSITORY]*.*;*
1872 $ IF F$SEARCH("CXX_REPOSITORY.DIR") .NES. ""
1874 $ SET PROTECTION=(SYSTEM:RWED,OWNER:RWED) CXX_REPOSITORY.DIR
1875 $ DELETE/NOLOG/NOCONFIRM CXX_REPOSITORY.DIR;
1879 $ ENDSUBROUTINE ! Cxx_demangler_cleanup
1884 $ OPEN/READ CONFIG ccvms.lis
1886 $ IF (F$GETSYI("HW_MODEL") .LT. 1024)
1894 $ line = F$EDIT(line,"TRIM,COMPRESS")
1895 $ line = line - "Page 1" ! occurs at end all compilers
1896 $ line = line - "CCVMS " ! filename appears w/ VAXC
1897 $ line = line - "Source Listing " ! Seen w/ AXP DECC
1898 $ tmp = F$EXTRACT(0,20,line) !timestamp, e.g. "30-JUL-1996 21:12:54 "
1900 $ line = F$EDIT(line,"TRIM") !bit redundant but we're in no big hurry
1901 $ DELETE/NOLOG/NOCONFIRM ccvms.lis;
1905 $!: What should the include directory be ? (.TLB text libraries)
1907 $ rp = "Where are the include files you want to use? "
1908 $ IF f$length( rp + "[''dflt'] " ).gt.76
1909 $ THEN rp = F$FAO("!AS!/!AS",rp,"[''dflt'] ")
1910 $ ELSE rp = rp + "[''dflt'] "
1915 $!: see if we have to deal with yellow pages, now NIS.
1916 $!: now get the host name
1919 $ echo4 "Figuring out host name..." !>&4
1921 $ IF myhostname.eqs."" THEN myhostname = F$TRNLNM("ARPANET_HOST_NAME")
1922 $ IF myhostname.eqs."" THEN myhostname = F$TRNLNM("INTERNET_HOST_NAME")
1923 $ IF myhostname.eqs."" THEN myhostname = F$TRNLNM("MULTINET_HOST_NAME")
1924 $ IF myhostname.eqs."" THEN myhostname = F$TRNLNM("UCX$INET_HOST_NAME")
1925 $ IF myhostname.eqs."".and. -
1926 F$TRNLNM("UCX$INET_HOST") .nes. "" .and. -
1927 F$TRNLNM("UCX$INET_DOMAIN") .nes. "" THEN -
1928 myhostname = F$TRNLNM("UCX$INET_HOST") + "." + F$TRNLNM("UCX$INET_DOMAIN")
1929 $ IF myhostname.eqs."" THEN myhostname = F$TRNLNM("TCPWARE_DOMAINNAME")
1930 $ IF myhostname.eqs."" THEN myhostname = F$TRNLNM("NEWS_ADDRESS")
1931 $ IF myhostname.eqs."" THEN myhostname = F$TRNLNM("SYS$NODE") - "::"
1932 $ IF myhostname.eqs."" THEN myhostname = F$EDIT(F$GETSYI("SCSNODE"),"TRIM")
1933 $!: you do not want to know about this
1935 $ rp = "Your host name appears to be """"''myhostname'"""". Right? "
1937 $ IF (.not.ans).and.(ans.NES."")
1939 $ READ SYS$COMMAND/PROMPT= -
1940 "Please type the (one word) name of your host: " ans
1943 $!: translate upper to lower if necessary
1944 $ myhostname = F$EDIT(myhostname,"COLLAPSE")
1945 $ mylowhostname = F$EDIT(myhostname," LOWERCASE")
1946 $ IF mylowhostname.NES.myhostname
1948 $ echo "(Normalizing case in your host name)"
1949 $ myhostname = mylowhostname
1952 $ fp = F$LOCATE(".",myhostname)
1953 $ mydomain = F$EXTRACT(fp,(F$LENGTH(myhostname)-fp)+1,myhostname)
1954 $ IF mydomain.NES."" !no periods in DECnet names like "MYDECNODE::"
1956 $ rp = "What is your domain name? [''mydomain'] "
1958 $ IF ans .nes. "" THEN mydomain = ans
1959 $!: translate upper to lower if necessary
1960 $ mydomain = F$EDIT(mydomain,"COLLAPSE")
1961 $ mylowdomain = F$EDIT(mydomain," LOWERCASE")
1962 $ IF mylowdomain.NES.mydomain
1964 $ echo "(Normalizing case in your domain name)"
1965 $ mydomain = mylowdomain
1968 $ myhostname = myhostname - mydomain
1969 $ echo "(Trimming domain name from host name--host name is now ''myhostname')"
1975 I need to get your e-mail address in Internet format if possible, i.e.
1976 something like user@host.domain. Please answer accurately since I have
1977 no easy means to double check it. The default value provided below
1978 is most probably close to the reality but may not be valid from outside
1979 your organization...
1982 $ dflt = "''cf_by'@''myhostname'"+"''mydomain'"
1983 $ rp = "What is your e-mail address? [''dflt'] "
1986 $ THEN cf_email = ans
1987 $ ELSE cf_email = dflt
1995 If you or somebody else will be maintaining perl at your site, please
1996 fill in the correct e-mail address here so that they may be contacted
1997 if necessary. Currently, the "perlbug" program included with perl
1998 will send mail to this address in addition to perlbug@perl.com. You may
1999 enter "none" for no administrator.
2002 $ dflt = "''cf_email'"
2003 $ rp = "Perl administrator e-mail address [''dflt'] "
2006 $ THEN perladmin = ans
2007 $ ELSE perladmin = dflt
2010 $!: determine where public executable scripts go
2011 $!: determine perl absolute location
2012 $!: figure out how to guarantee perl startup
2014 $!: see how we invoke the C preprocessor
2016 $! echo4 "Now, how can we feed standard input to your C preprocessor..." !>&4
2017 $!: Set private lib path
2018 $!: Now check and see which directories actually exist, avoiding duplicates
2019 $!: determine optimize, if desired, or use for debug flag also
2020 $!: We will not override a previous value, but we might want to
2021 $!: augment a hint file
2022 $!: the following weeds options from ccflags that are of no interest to cpp
2023 $!: flags used in final linking phase
2024 $!: Try to guess additional flags to pick up local libraries.
2027 $! echo4 "Checking your choice of C compiler and flags for coherency..." !>&4
2028 $!: compute shared library extension
2029 $!: Looking for optional libraries
2030 $!: see if nm is to be used to determine whether a symbol is defined or not
2031 $!: get list of predefined functions in a handy place
2032 $!: see if we have sigaction
2033 $!: see whether socketshr exists
2034 $ IF (F$SEARCH(F$PARSE("SocketShr","Sys$Share:.Exe")).NES."")
2036 $ Has_socketshr = "T"
2038 $ echo4 "Hmm... Looks like you have SOCKETSHR Berkeley networking support."
2040 $ Has_socketshr = "F"
2042 $ IF (Dec_C_Version .GE. 50200000) .or. using_cxx
2044 $ Has_Dec_C_Sockets = "T"
2046 $ echo4 "Hmm... Looks like you have Dec C Berkeley networking support."
2048 $ Has_Dec_C_Sockets = "F"
2050 $ ! Hey, we've got both. Default to Dec C, then, since it's better
2051 $ IF Has_socketshr .OR. Has_Dec_C_Sockets
2054 $ echo "You have sockets available. Which socket stack do you want to"
2055 $ echo "build into Perl?"
2056 $ IF Has_Dec_C_Sockets
2060 $ dflt = "SOCKETSHR"
2062 $ rp = "Choose socket stack (NONE"
2063 $ IF Has_socketshr THEN rp = rp + ",SOCKETSHR"
2064 $ IF Has_Dec_C_Sockets THEN rp = rp + ",DECC"
2065 $ rp = rp + ") [''dflt'] "
2067 $ IF ans .EQS. "" THEN ans = "''dflt'"
2068 $ Has_Dec_C_Sockets = "F"
2069 $ Has_socketshr = "F"
2070 $ ans = F$EDIT(ans,"TRIM,COMPRESS,LOWERCASE")
2071 $ IF ans.eqs."decc" then Has_Dec_C_Sockets = "T"
2072 $ IF ans.eqs."socketshr" then Has_socketshr = "T"
2074 $ IF Has_Dec_C_Sockets .or. Has_socketshr
2076 $ static_ext = f$edit(static_ext+" "+"Socket","trim,compress")
2080 $! Ask if they want to build with VMS_DEBUG perl
2082 $ echo "Perl can be built to run under the VMS debugger."
2083 $ echo "You should only select this option if you are debugging"
2084 $ echo "perl itself. This can be a useful feature if you are "
2085 $ echo "embedding perl in a program."
2087 $ rp = "Build a VMS-DEBUG version of Perl? [''dflt'] "
2089 $ IF ans.eqs."" then ans = dflt
2090 $ IF F$EXTRACT(0, 1, F$EDIT(ans,"COLLAPSE,UPCASE")) .eqs. "Y"
2092 $ use_vmsdebug_perl = "Y"
2093 $ macros = macros + """__DEBUG__=1"","
2095 $ use_vmsdebug_perl = "N"
2098 $! Ask if they want to build with DEBUGGING
2100 $ echo "Perl can be built with extra runtime debugging enabled. This"
2101 $ echo "enables the -D switch, at the cost of some performance. It"
2102 $ echo "was mandatory on perl 5.005 and before on VMS, but is now"
2103 $ echo "optional. If you do not generally use it you should probably"
2104 $ echo "leave this off and gain a bit of extra speed."
2106 $ rp = "Build a DEBUGGING version of Perl? [''dflt'] "
2108 $ IF ans.eqs."" then ans = dflt
2109 $ IF F$EXTRACT(0, 1, F$EDIT(ans,"COLLAPSE,UPCASE")) .eqs. "Y"
2111 $ use_debugging_perl = "Y"
2113 $ use_debugging_perl = "N"
2116 $! Ask if they want to build with MULTIPLICITY
2118 $ echo "Perl can be built so that multiple Perl interpreters can coexist"
2119 $ echo "within the same Perl executable."
2120 $ echo "There is some performance overhead, however, so you"
2121 $ echo "probably do not want to choose this unless you are going to be"
2122 $ echo "doing things with embedded perl."
2124 $ rp = "Build Perl for multiplicity? [''dflt'] "
2126 $ IF ans.eqs."" then ans = dflt
2129 $ usemultiplicity="define"
2131 $ usemultiplicity="undef"
2134 $! Ask if they want to build with 64-bit support
2135 $ IF (archname.eqs."VMS_AXP").and.("''f$extract(1,3, f$getsyi(""version""))'".ges."7.1")
2137 $ dflt = use64bitint
2139 $ echo "You can have native 64-bit long integers."
2141 $ echo "Perl can be built to take advantage of 64-bit integer types"
2142 $ echo "on some systems, which provide a much larger range for perl's"
2143 $ echo "mathematical operations. (Note that does *not* enable 64-bit"
2144 $ echo "fileops at the moment, as Dec C doesn't do that yet)."
2145 $ echo "Choosing this option will most probably introduce binary incompatibilities."
2147 $ echo "If this does not make any sense to you, just accept the default ''dflt'."
2148 $ rp = "Try to use 64-bit integers, if available? [''dflt'] "
2150 $ IF ans .EQS. "" THEN ans = dflt
2152 $ THEN use64bitint="Y"
2153 $ ELSE use64bitint="N"
2157 $ dflt = use64bitall
2159 $ echo "Since you chose 64-bitness you may want to try maximal 64-bitness."
2160 $ echo "What you have chosen is minimal 64-bitness which means just enough"
2161 $ echo "to get 64-bit integers. The maximal means using as much 64-bitness"
2162 $ echo "as is possible on the platform. This in turn means even more binary"
2163 $ echo "incompatibilities. On the other hand, your platform may not have"
2164 $ echo "any more maximal 64-bitness than what you already have chosen."
2166 $ echo "If this does not make any sense to you, just accept the default ''dflt'."
2167 $ rp = "Try to use full 64-bit support, if available? [''dflt'] "
2169 $ IF ans .EQS. "" THEN ans = dflt
2171 $ THEN use64bitall="Y"
2172 $ ELSE use64bitall="N"
2175 $ ENDIF ! AXP && >= 7.1
2177 $! Ask about threads, if appropriate
2178 $ IF Using_Dec_C .OR. using_cxx
2181 $ echo "This version of Perl can be built with threads. While really nifty,"
2182 $ echo "they are a beta feature, and there is a speed penalty for perl"
2183 $ echo "programs if you build with threads *even if you do not use them*."
2185 $ rp = "Build with threads? [''dflt'] "
2187 $ if ans.eqs."" then ans = dflt
2188 $ if (f$extract(0, 1, "''ans'").eqs."Y").or.(f$extract(0, 1, "''ans'").eqs."y")
2191 $ ! Shall we do the 5.005-stype threads, or IThreads?
2192 $ echo "As of 5.5.640, Perl has two different internal threading"
2193 $ echo "implementations, the 5.005 version (5005threads) and an"
2194 $ echo "interpreter-based version (ithreads) that has one"
2195 $ echo "interpreter per thread. Both are very experimental. This"
2196 $ echo "arrangement exists to help developers work out which one"
2199 $ echo "If you are a casual user, you probably do not want"
2200 $ echo "interpreter-threads at this time. There doesn't yet exist"
2201 $ echo "a way to create threads from within Perl in this model,"
2202 $ echo "i.e., ""use Thread;"" will NOT work."
2205 $ rp = "Build with Interpreter threads? [''dflt'] "
2207 $ if ans.eqs."" then ans = dflt
2208 $ if (f$extract(0, 1, "''ans'").eqs."Y").or.(f$extract(0, 1, "''ans'").eqs."y")
2211 $ use_5005_threads="N"
2214 $ use_5005_threads="Y"
2216 $ ! Are they on VMS 7.1 on an alpha?
2217 $ if (archname.eqs."VMS_AXP").and.("''f$extract(1,3, f$getsyi(""version""))'".ges."7.1")
2220 $ echo "Threaded perl can be linked to use multiple kernel threads"
2221 $ echo "and system upcalls on VMS 7.1+ on Alpha systems. This feature"
2222 $ echo "allows multiple threads to execute simultaneously on an SMP"
2223 $ echo "system as well as preventing a single thread from blocking"
2224 $ echo "all the threads in a program, even on a single-processor"
2225 $ echo "machine. Unfortunately, this feature isn't safe on an"
2226 $ echo "unpatched 7.1 system (several OS patches were required when"
2227 $ echo "this procedure was written)."
2229 $ rp = "Enable multiple kernel threads and upcalls? [''dflt'] "
2231 $ if ans.eqs."" then ans="''dflt'"
2232 $ if f$extract(0, 1, f$edit(ans,"TRIM,COMPRESS,UPCASE")).eqs."Y"
2234 $ Thread_Live_Dangerously = "MT=MT=1"
2239 $ IF archname .EQS. "VMS_AXP"
2243 $ echo "By default, perl (and pretty much everything else on VMS) uses"
2244 $ echo "case-insensitive linker symbols. Which is to say, when the"
2245 $ echo "underlying C code makes a call to a routine called Perl_foo in"
2246 $ echo "the source, the name in the object modules or shareable images"
2247 $ echo "is really PERL_FOO. There are some packages that use an"
2248 $ echo "embedded perl interpreter that instead require case-sensitive"
2249 $ echo "linker symbols."
2251 $ echo "If you have no idea what this means, and do not have"
2252 $ echo "any program requiring anything, choose the default."
2253 $ dflt = be_case_sensitive
2254 $ rp = "Build with case-sensitive symbols? [''dflt'] "
2256 $ IF ans .EQS. "" THEN ans="''dflt'"
2257 $ be_case_sensitive = "''ans'"
2260 $ echo "Perl normally uses G_FLOAT format floating point numbers"
2261 $ echo "internally, as do most things on VMS. You can, however, build"
2262 $ echo "with IEEE floating point numbers instead if you need to."
2263 $ dflt = use_ieee_math
2264 $ rp = "Use IEEE math? [''dflt'] "
2266 $ IF ans .eqs. "" THEN ans = "''dflt'"
2267 $ use_ieee_math = "''ans'"
2271 $ echo "Your compiler may want other flags. For this question you should include"
2272 $ echo "/INCLUDE=(whatever) and /DEFINE=(whatever), flags and any other flags"
2273 $ echo "or qualifiers used by the compiler."
2275 $ echo "To use no flags, specify the word ""none""."
2276 $ dflt = user_c_flags
2277 $ rp = "Any additional cc flags? [''dflt'] "
2279 $ IF ans .EQS. "" THEN ans = "''dflt'"
2280 $ IF ans .EQS. "none" THEN ans = ""
2281 $ user_c_flags = "''ans'"
2283 $! Ask whether they want to use secure logical translation when tainting
2285 $ echo "As Perl starts up, it checks several logical names, such as"
2286 $ echo "PERL5LIB and PERL_ENV_TABLES, which allow you to modify aspects"
2287 $ echo "of its behavior. For additional security, you may limit this"
2288 $ echo "process to executive- and kernel-mode translation when tainting"
2289 $ echo "is enabled. In this case, logical names normally skipped when"
2290 $ echo "tainting is enabled (e.g. PERL5OPTS) are translated as well."
2291 $ echo "If you do not choose to do this, the usual order of access modes"
2292 $ echo "is used for logical name translation."
2294 $ echo "This restriction does not apply to the %ENV hash or to implicit"
2295 $ echo "logical name translation during parsing of file specifications;"
2296 $ echo "these always use the normal sequence of access modes for logical"
2297 $ echo "name translation."
2299 $ rp = "Use secure logical name translation? [''dflt'] "
2301 $ IF ans .eqs. "" THEN ans = dflt
2303 $ THEN d_secintgenv := Y
2304 $ ELSE d_secintgenv := N
2307 $! Ask whether they want to default filetypes
2309 $ echo "When you pass the name of a program to Perl on the command line,"
2310 $ echo "it generally doesn't supply any defaults unless the -S command"
2311 $ echo "line switch is specified. In keeping with the VMS tradition of"
2312 $ echo "default file types, however, you can configure Perl to try default"
2313 $ echo "file types of nothing, .pl, and .com, in that order (e.g. typing"
2314 $ echo """$ perl foo"" would cause Perl to look for foo., then foo.pl, and"
2315 $ echo "finally foo.com)."
2317 $ echo "This is currently broken in some configurations. Only enable it if"
2318 $ echo "you know what you are doing."
2320 $ rp = "Always use default file types? [''dflt'] "
2322 $ IF ans .EQS. "" THEN ans = dflt
2324 $ THEN d_alwdeftype := Y
2325 $ ELSE d_alwdeftype := N
2327 $! Ask if they want to use perl's memory allocator
2329 $ echo "Perl has a built-in memory allocator that is tuned for normal"
2330 $ echo "memory usage. It is oftentimes better than the standard system"
2331 $ echo "memory allocator. It also has the advantage of providing memory"
2332 $ echo "allocation statistics, if you choose to enable them."
2334 $ IF F$TYPE(usemymalloc) .EQS. "STRING"
2336 $ IF usemymalloc THEN dflt = "y"
2338 $ rp = "Do you wish to attempt to use the malloc that comes with ''package'? [''dflt'] "
2340 $ IF ans .eqs. "" THEN ans = dflt
2342 $ THEN mymalloc := Y
2343 $ ELSE mymalloc := N
2347 $ IF use_debugging_perl
2350 $ echo "Perl can keep statistics on memory usage if you choose to use"
2351 $ echo "them. This is useful for debugging, but does have some"
2352 $ echo "performance overhead."
2354 $ rp = "Do you want the debugging memory allocator? [''dflt'] "
2356 $ IF ans .eqs. "" THEN ans = "''dflt'"
2357 $ use_debugmalloc = f$extract(0, 1, f$edit(ans, "COLLAPSE,UPCASE"))
2359 $ ! Check which memory allocator we want
2361 $ echo "There are currently three different memory allocators: the"
2362 $ echo "default (which is a pretty good general-purpose memory manager),"
2363 $ echo "the TWO_POT allocator (which is optimized to save memory for"
2364 $ echo "larger allocations), and PACK_MALLOC (which is optimized to save"
2365 $ echo "memory for smaller allocations). They're all good, but if your"
2366 $ echo "usage tends towards larger chunks use TWO_POT, otherwise use"
2367 $ echo "PACK_MALLOC."
2369 $ rp = "Memory allocator (DEFAULT, TWO_POT, PACK_MALLOC) [''dflt'] "
2371 $ if ans.eqs."" then ans = "''dflt'"
2372 $ if ans.eqs."TWO_POT" then use_two_pot_malloc = "Y"
2373 $ if ans.eqs."PACK_MALLOC" then use_pack_malloc = "Y"
2376 $! Ask for their default list of extensions to build
2378 $ echo "It is time to specify which modules you want to build into"
2379 $ echo "perl. Most of these are standard and should be chosen, though"
2380 $ echo "you might, for example, want to build GDBM_File instead of"
2381 $ echo "SDBM_File if you have the GDBM library built on your machine."
2383 $ echo "Which modules do you want to build into perl?"
2384 $! we need to add Byteloader to this list:
2385 $ dflt = "re Fcntl Encode Errno File::Glob Filter::Util::Call IO Opcode Devel::Peek Devel::DProf Data::Dumper attrs VMS::Stdio VMS::DCLsym B SDBM_File Storable Thread Sys::Hostname"
2386 $ IF Using_Dec_C .OR. using_cxx
2388 $ dflt = dflt + " POSIX"
2392 $ if ans.eqs."" then ans = "''dflt'"
2396 $ x = f$elem(j," ",ans)
2398 $ if x .eqs. " " then goto exloop1
2400 $ k = f$locate("::",x)
2401 $ if k .ge. f$len(x) then goto exloop2
2402 $ x = f$extract(0,k,x) + "/" + f$extract(k+2,f$len(x)-2,x)
2408 $ ans = f$edit(a,"trim")
2413 $ x = f$elem(j," ",dflt)
2415 $ if x .eqs. " " then goto exloop3
2417 $ k = f$locate("::",x)
2418 $ if k .ge. f$len(x) then goto exloop4
2419 $ x = f$extract(0,k,x) + "/" + f$extract(k+2,f$len(x)-2,x)
2425 $ dflt = f$edit(a,"trim")
2427 $ extensions = "''ans'"
2428 $ known_extensions = "''dflt'"
2430 $! %Config-I-VMS, determine build/make utility here (make gmake mmk mms)
2432 $ echo "Checking your ""make"" utilities..."
2433 $! If the 'build' that you use is not here add it and it's test
2434 $! switch to the _END_ of these strings (and increment max_build)
2435 $! (e.g. builders = builders + "/FOOMAKE"
2436 $! probers = probers + " -fooVersionSwitch"
2437 $! ) & please let me know about it.
2438 $ builders = "IMAKE/GNUMAKE/MGMAKE/GMAKE/MAKE/MMS/MMK"
2439 $ probers = "-f Makefile. -v!-f Makefile. -v!-f Makefile. -v!-f Makefile. -v!-f Makefile. -v!/IDENT!/IDENT"
2445 $ OPEN/WRITE/ERROR=Open_error CONFIG Makefile.
2446 $ WRITE CONFIG "dont_make_anything_yet:"
2447 $ WRITE CONFIG F$FAO("!_")
2450 $ messages = F$ENVIRONMENT("MESSAGE")
2452 $ build = F$ELEMENT(n,"/",builders)
2453 $ probe = F$ELEMENT(n,"!",probers)
2454 $ echo "Testing whether you have ''build' on your system..."
2456 $! Noted with GNU Make version 3.60 that the $status and $severity
2457 $! with the 'probe' Makefile appear to be: $STATUS == "%X1000000C"
2458 $! $SEVERITY == "4".
2461 $ ON CONTROL_Y THEN GOTO Reenable_messages_build
2462 $ SET MESSAGE/NOFAC/NOSEV/NOIDENT/NOTEXT
2464 $ IF ($SEVERITY .EQ. 1) ! not adequate?
2467 $ IF (build .EQS. orig_dflt)
2469 $ default_set = "TRUE"
2472 $ ok_builders = ok_builders + " " + build
2473 $ IF (.NOT. default_set) THEN dflt = build
2477 $Reenable_messages_build:
2478 $ SET MESSAGE 'messages'
2481 $ IF (n .LT. max_build) THEN GOTO Build_probe
2484 $ IF (ok_builders .NES. "")
2486 $ echo "Here is the list of builders you can apparently use:"
2487 $ echo "(",ok_builders," )"
2488 $ rp = "Which """"make"""" utility do you wish to use? [''dflt'] "
2490 $ ans = F$EDIT(ans,"TRIM, COMPRESS")
2491 $ ans = F$EXTRACT(0,F$LOCATE(" ",ans),ans) !throw out "-f Makefile." here
2500 %Config-E-VMS, ERROR:
2501 Well this looks pretty serious. Perl5 cannot be compiled without a "make"
2502 utility of some sort and after checking my "builders" list I cannot find
2503 the symbol or command you use on your system to compile programs.
2506 $ READ SYS$COMMAND/PROMPT="Which ""MMS"" do you use? " ans
2507 $ ans = F$EDIT(ans,"TRIM, COMPRESS")
2508 $ ans = F$EXTRACT(0,F$LOCATE(" ",ans),ans) !throw out "-f Makefile." here
2511 $ echo "I do not know where ""make"" is, and my life depends on it."
2512 $ echo "Go find a make program or fix your DCL$PATH setting!"
2513 $ echo "ABORTING..."
2514 $ SET DEFAULT 'vms_default_directory_name' !be kind rewind
2516 $ EXIT 2 !$STATUS = "%X00000002" (error)
2522 $ DELETE/NOLOG Makefile.;
2528 There seems to be trouble. I just tried to create a file in
2530 $ echo4 'F$ENVIRONMENT("DEFAULT")'
2533 but was unsuccessful. I am stopping now. Please check that directories'
2534 PROTECTION bits. I will leave you in the directory where you started
2537 $ echo4 "ABORTING..."
2543 $! echo " Very well I will proceed with ""''build'"""
2544 $ make = F$EDIT(build,"UPCASE")
2546 $!: locate the preferred pager for this system
2547 $!pagers = "most|more|less|type/page"
2548 $ dflt = "type/page"
2549 $! assume that the presence of a most symbol indicates the presence
2551 $ IF F$TYPE(most) .EQS. "STRING" THEN dflt = "most"
2552 $ IF F$TYPE(pager) .EQS. "STRING" THEN dflt = pager
2553 $ rp="What pager is used on your system? [''dflt'] "
2560 $! update [.vms]config.vms here
2562 $! update makefile here
2563 $! echo4 "Updating makefile..."
2565 $ IF (make .EQS. "MMS").OR.(make .EQS. "MMK")
2567 $ makefile = "" !wrt MANIFEST dir
2568 $ UUmakefile = "[-]DESCRIP.MMS" !wrt CWD dir
2569 $ DEFmakefile = "DESCRIP.MMS" !wrt DEF dir (?)
2570 $ Makefile_SH = "descrip_mms.template"
2572 $ makefile = " -f Makefile." !wrt MANIFEST dir
2573 $ UUmakefile = "[-]Makefile." !wrt CWD dir
2574 $ DEFmakefile = "Makefile." !wrt DEF dir (?)
2575 $ Makefile_SH = "Makefile.in"
2578 $ IF macros .NES. ""
2580 $ tmp = F$LENGTH(macros)
2581 $ macros = F$EXTRACT(0,(tmp-1),macros) !miss trailing comma
2582 $ macros = "/macro=(" + macros + ")"
2584 $! Build up the extra C flags
2588 $ extra_flags = "''extra_flags'" + "/float=ieee/ieee=denorm_results"
2590 $ IF be_case_sensitive
2592 $ extra_flags = "''extra_flags'" + "/Names=As_Is"
2594 $ extra_flags = "''extra_flags'" + "''user_c_flags'"
2596 $ min_pgflquota = "100000"
2597 $ pgflquota = F$STRING(F$GETJPI("","PGFLQUOTA"))
2598 $ IF pgflquota .LES. min_pgflquota
2600 $ echo4 "Your PGFLQUOTA of ''pgflquota' appears too small to build ''package'."
2601 $ READ SYS$COMMAND/PROMPT="Continue? [n] " ans
2604 $ echo4 "Continuing..."
2606 $ echo4 "ABORTING..."
2611 $! PerlIO abstraction
2614 $ IF F$TYPE(useperlio) .NES. ""
2616 $ IF useperlio THEN dflt = "y"
2617 $ IF useperlio .EQS. "define" THEN dflt = "y"
2621 $ echo "Previous version of ''package' used the standard IO mechanisms as"
2624 defined in <stdio.h>. Versions 5.003_02 and later of perl allow
2625 alternate IO mechanisms via the PerlIO abstraction layer, but the
2626 stdio mechanism is still the default. This abstraction layer can
2627 use AT&T's sfio (if you already have sfio installed) or regular stdio.
2628 Using PerlIO with sfio may cause problems with some extension modules.
2631 $ echo "If this does not make any sense to you, just accept the default '" + dflt + "'."
2633 $ rp = "Use the experimental PerlIO abstraction layer? [''dflt'] "
2635 $ IF ans .EQS. "" THEN ans = dflt
2638 $ useperlio = "define"
2640 $ echo "Ok, doing things the stdio way."
2641 $ useperlio = "undef"
2645 $ echo4 "Checking the C run-time library."
2647 $! Former SUBCONFIGURE.COM
2649 $! - build a config.sh for VMS Perl.
2650 $! - use built config.sh to take config_h.SH -> config.h
2651 $! - also take vms/descrip_mms.template -> descrip.mms (VMS Makefile)
2652 $! vms/Makefile.in -> Makefile. (VMS GNU Makefile?)
2653 $! vms/Makefile.SH -> Makefile. (VMS GNU Makefile?)
2654 $! - build make_ext.com extension builder procedure.
2656 $! Note for folks from other platforms changing things in here:
2658 $! Fancy changes (based on compiler capabilities or VMS version or
2659 $! whatever) are tricky, so go ahead and punt on those.
2661 $! Simple changes, though (say, always setting something to 1, or undef,
2662 $! or something like that) are straightforward. Adding a new constant
2663 $! item for the ultimately created config.sh requires at least one
2664 $! (possibly more) line(s) to this file.
2666 $! Add a line in the format:
2668 $! $ WC "foo='undef'"
2670 $! somewhere between the line tagged '##BEGIN WRITE NEW CONSTANTS HERE##'
2671 $! and the one tagged '##END WRITE NEW CONSTANTS HERE##' (note the order
2672 $! is sorted ASCII and corresponds to the output of config.sh in the
2673 $! Bourne shell version of Configure).
2674 $! Be very careful with quoting, as it can be tricky.
2675 $! For example if instead of a constant string like 'undef' or 'define'
2676 $! you wanted to add something to VMS's config.sh that looks like:
2680 $! then add a line that looks like this before the
2681 $! '##END WRITE NEW CONSTANTS HERE##' tagged line:
2683 $! $ WC "blank_string='" + "'"
2685 $! (+ is the string concatenator and "''var'" has the effect
2686 $! of "${var}" in perl or sh, but "'const'" is not interpolated).
2688 $! Note that unitialized variables, such as a line like:
2690 $! $ WC "new_var='" + new_var + "'"
2692 $! should be avoided unless new_var has a value assigned prior
2693 $! to that line (think of perl's -w warnings).
2695 $! %DCL-W-UNDSYM, undefined symbol - check validity and spelling
2699 $ vms_ver = F$EXTRACT(1,3, osvers)
2700 $ IF F$LENGTH(Mcc) .EQ. 0 THEN Mcc := "cc"
2701 $ MCC = f$edit(mcc, "UPCASE")
2702 $ C_Compiler_Replace := "CC=CC=''Mcc'''ccflags'"
2705 $ Checkcc := "''Mcc'/prefix=all"
2711 $ Checkcc := "''Mcc'"
2714 $ ccflags = ccflags + extra_flags
2715 $ IF be_case_sensitive
2717 $ d_vms_be_case_sensitive = "define"
2719 $ d_vms_be_case_sensitive = "undef"
2721 $! Some constant defaults.
2722 $ hwname = f$getsyi("HW_NAME")
2723 $ myname = myhostname
2724 $ IF myname .EQS. "" THEN myname = F$TRNLNM("SYS$NODE")
2729 $ IF use64bitint .OR. use64bitint .EQS. "define"
2731 $ use64bitint = "define"
2732 $ uselargefiles = "define"
2733 $ uselongdouble = "define"
2734 $ usemorebits = "define"
2736 $ use64bitint = "undef"
2737 $ uselargefiles = "undef"
2738 $ uselongdouble = "undef"
2739 $ usemorebits = "undef"
2741 $ IF use64bitall .OR. use64bitall .EQS. "define"
2743 $ use64bitall = "define"
2745 $ use64bitall = "undef"
2748 $ usemymalloc=mymalloc
2752 $ IF (sharedperl .AND. F$GETSYI("HW_MODEL") .GE. 1024)
2766 $ dlobj="dl_vms''obj_ext'"
2768 $ cppstdin="''perl_cc'/noobj/preprocess=sys$output sys$input"
2770 $ cpprun="''perl_cc'/noobj/preprocess=sys$output sys$input"
2778 $ THEN d_mymalloc="define"
2779 $ ELSE d_mymalloc="undef"
2783 $ startperl="""$ perl 'f$env(\""procedure\"")' \""'"+"'p1'\"" \""'"+"'p2'\"" \""'"+"'p3'\"" \""'"+"'p4'\"" \""'"+"'p5'\"" \""'"+"'p6'\"" \""'"+"'p7'\"" \""'"+"'p8'\""!\n"
2784 $ startperl=startperl + "$ exit++ + ++$status!=0 and $exit=$status=undef; while($#ARGV != -1 and $ARGV[$#ARGV] eq '"+"'){pop @ARGV;}"""
2786 $ IF ((Use_Threads) .AND. (vms_ver .LES. "6.2"))
2788 $ libs="SYS$SHARE:CMA$LIB_SHR.EXE/SHARE SYS$SHARE:CMA$RTL.EXE/SHARE SYS$SHARE:CMA$OPEN_LIB_SHR.exe/SHARE SYS$SHARE:CMA$OPEN_RTL.exe/SHARE"
2792 $ IF Using_Dec_C .OR. using_cxx
2799 $! perllibs should be libs with all non-core libs (such as gdbm) removed.
2805 $ IF use64bitint .OR. use64bitint .EQS. "define"
2807 $ d_PRId64 = "define"
2808 $ d_PRIEUldbl = "define"
2809 $ d_PRIFUldbl = "define"
2810 $ d_PRIGUldbl = "define"
2811 $ d_PRIeldbl = "define"
2812 $ d_PRIfldbl = "define"
2813 $ d_PRIgldbl = "define"
2814 $ d_PRIu64 = "define"
2815 $ d_PRIo64 = "define"
2816 $ d_PRIx64 = "define"
2817 $ sPRId64 = """Ld"""
2818 $ sPRIEUldbl = """LE"""
2819 $ sPRIFUldbl = """LF"""
2820 $ sPRIGUldbl = """LG"""
2821 $ sPRIXU64 = """LX"""
2822 $ sPRIeldbl = """Le"""
2823 $ sPRIfldbl = """Lf"""
2824 $ sPRIgldbl = """Lg"""
2825 $ sPRIi64 = """Li"""
2826 $ sPRIo64 = """Lo"""
2827 $ sPRIu64 = """Lu"""
2828 $ sPRIx64 = """Lx"""
2830 $ quadtype = "long long"
2831 $ uquadtype = "unsigned long long"
2832 $ quadkind = "QUAD_IS_LONG_LONG"
2833 $ d_frexpl = "define"
2834 $ d_isnan = "define"
2835 $ d_isnanl = "define"
2836 $ d_modfl = "define"
2838 $ d_PRId64 = "undef"
2839 $ d_PRIEUldbl = "define"
2840 $ d_PRIFUldbl = "define"
2841 $ d_PRIGUldbl = "define"
2842 $ d_PRIXU64 = "undef"
2843 $ d_PRIeldbl = "define"
2844 $ d_PRIfldbl = "undef"
2845 $ d_PRIgldbl = "undef"
2846 $ d_PRIu64 = "undef"
2847 $ d_PRIo64 = "undef"
2848 $ d_PRIx64 = "undef"
2850 $ sPRIEUldbl = """E"""
2851 $ sPRIFUldbl = """F"""
2852 $ sPRIGUldbl = """G"""
2853 $ sPRIXU64 = """lX"""
2854 $ sPRIeldbl = """e"""
2855 $ sPRIfldbl = """f"""
2856 $ sPRIgldbl = """g"""
2863 $ uquadtype = "unsigned long"
2864 $ quadkind = "QUAD_IS_LONG"
2865 $ d_frexpl = "undef"
2867 $ d_isnanl = "undef"
2870 $ d_SCNfldbl = d_PRIfldbl
2871 $ sSCNfldbl = sPRIfldbl ! expect consistency
2873 $! Now some that we build up
2877 $ IF use_5005_threads
2879 $ arch = "''arch'-thread"
2880 $ archname = "''archname'-thread"
2881 $ d_old_pthread_create_joinable = "undef"
2882 $ old_pthread_create_joinable = " "
2883 $ use5005threads = "define"
2884 $ useithreads = "undef"
2886 $ arch = "''arch'-ithread"
2887 $ archname = "''archname'-ithread"
2888 $ d_old_pthread_create_joinable = "undef"
2889 $ old_pthread_create_joinable = " "
2890 $ use5005threads = "undef"
2891 $ useithreads = "define"
2894 $ d_old_pthread_create_joinable = "undef"
2895 $ old_pthread_create_joinable = " "
2896 $ use5005threads = "undef"
2897 $ useithreads = "undef"
2900 $! Some that we need to invoke the compiler for
2903 $! handy construction aliases/symbols
2905 $ OS := "open/write CONFIG []try.c"
2906 $ WS := "write CONFIG"
2907 $ CS := "close CONFIG"
2908 $ DS := "delete/nolog/noconfirm []try.*;*"
2910 $ good_compile = %X10B90001
2913 $ open/write OPTCHAN []try.opt
2914 $ write OPTCHAN "Gnu_CC:[000000]gcclib.olb/library"
2915 $ write OPTCHAN "Sys$Share:VAXCRTL/Share"
2918 $ good_compile = %X10000001
2922 $ good_compile = %X15F60001
2924 $ good_link = %X10000001
2925 $ tmp = "" ! null string default
2927 $ GOTO beyond_compile_ok
2929 $! Check for type sizes
2934 $ WS "#if defined(__DECC) || defined(__DECCXX)"
2935 $ WS "#include <stdlib.h>"
2937 $ WS "#include <stdio.h>"
2940 $ WS "printf(""%d\n"", sizeof(''tmp'));"
2947 $!: locate header file
2951 $ WS "#if defined(__DECC) || defined(__DECCXX)"
2952 $ WS "#include <stdlib.h>"
2954 $ WS "#include <stdio.h>"
2955 $ WS "#include <''tmp'>"
2958 $ WS "printf(""define\n"");"
2965 $!: define an alternate in-header-list? function
2969 $ IF compile_status .EQ. good_compile .AND. link_status .EQ. good_link
2971 $ echo4 "<''tmp'> found."
2974 $ echo4 "<''tmp'> NOT found."
2979 $!: define an is-in-libc? function
2982 $ IF compile_status .EQ. good_compile .AND. link_status .EQ. good_link
2984 $ echo4 "''tmp'() found."
2987 $ echo4 "''tmp'() NOT found."
2992 $!: define a shorthand compile call
2996 $ IF compile_status .EQ. good_compile .AND. link_status .EQ. good_link
2998 $ OPEN/WRITE CONFIG []try.out
2999 $ DEFINE/USER_MODE SYS$ERROR CONFIG
3000 $ DEFINE/USER_MODE SYS$OUTPUT CONFIG
3003 $ OPEN/READ CONFIG []try.out
3006 $ DELETE/NOLOG/NOCONFIRM []try.out;
3007 $ DELETE/NOLOG/NOCONFIRM []try.exe;
3009 $ tmp = "" ! null string default
3015 $ DEFINE/USER_MODE SYS$ERROR _NLA0:
3016 $ DEFINE/USER_MODE SYS$OUTPUT _NLA0:
3020 $ 'ld' try.obj,try.opt/opt
3021 $ link_status = $status
3024 $ link_status = $status
3027 $ IF F$SEARCH("try.obj") .NES. "" THEN DELETE/NOLOG/NOCONFIRM try.obj;
3030 $!: define a shorthand compile call for compilations that should be ok.
3032 $ DEFINE/USER_MODE SYS$ERROR _NLA0:
3033 $ DEFINE/USER_MODE SYS$OUTPUT _NLA0:
3036 $ compile_status = $status
3038 $ DELETE/NOLOG/NOCONFIRM try.c;
3043 $! Check for __STDC__
3046 $ WS "#if defined(__DECC) || defined(__DECCXX)"
3047 $ WS "#include <stdlib.h>"
3049 $ WS "#include <stdio.h>"
3052 $ WS "#ifdef __STDC__"
3053 $ WS "printf(""42\n"");"
3055 $ WS "printf(""1\n"");"
3062 $ IF F$INTEGER(tmp) .eq. 42
3064 $ echo4 "Your C compiler and pre-processor defines the symbol:"
3068 $! Check for double size
3070 $ echo4 "Checking to see how big your double precision numbers are..."
3072 $ GOSUB type_size_check
3074 $ echo "Your double is ''doublesize' bytes long."
3076 $! Check for long double size
3079 $ WS "#if defined(__DECC) || defined(__DECCXX)"
3080 $ WS "#include <stdlib.h>"
3082 $ WS "#include <stdio.h>"
3085 $ WS "printf(""%d\n"", sizeof(long double));"
3089 $ echo4 "Checking to see if you have long double..."
3091 $ IF link_status .NE. good_link
3095 $ echo "You do not have long double."
3097 $ echo "You have long double."
3098 $ echo4 "Checking to see how big your long doubles are..."
3101 $ d_longdbl = "define"
3102 $ echo "Your long doubles are ''longdblsize' bytes long."
3105 $!: check for long long
3107 $ WS "#if defined(__DECC) || defined(__DECCXX)"
3108 $ WS "#include <stdlib.h>"
3110 $ WS "#include <stdio.h>"
3113 $ WS "printf(""%d\n"", sizeof(long long));"
3117 $ echo4 "Checking to see if you have long long..."
3119 $ IF link_status .NE. good_link
3122 $ d_longlong="undef"
3123 $ echo "You do not have long long."
3125 $ echo "You have long long."
3126 $ echo4 "Checking to see how big your long longs are..."
3128 $ longlongsize = tmp
3129 $ d_longlong = "define"
3130 $ echo "Your long longs are ''longlongsize' bytes long."
3133 $! Check the prototype for getgid
3135 $ echo "Looking for the type for group ids returned by getgid()."
3137 $ WS "#if defined(__DECC) || defined(__DECCXX)"
3138 $ WS "#include <stdlib.h>"
3140 $ WS "#include <stdio.h>"
3141 $ WS "#include <types.h>"
3149 $ IF compile_status .NE. good_compile
3151 $! Okay, gid_t failed. Must be unsigned int
3152 $ gidtype = "unsigned int"
3153 $ echo4 "assuming ""''gidtype'""."
3156 $ echo4 "gid_t found."
3159 $! Check to see if we've got dev_t
3161 $ echo "Looking for the type for dev."
3163 $ WS "#if defined(__DECC) || defined(__DECCXX)"
3164 $ WS "#include <stdlib.h>"
3166 $ WS "#include <stdio.h>"
3167 $ WS "#include <types.h>"
3175 $ IF compile_status .NE. good_compile
3177 $! Okay, dev_t failed. Must be unsigned int
3178 $ devtype = "unsigned int"
3179 $ echo4 "assuming ""''devtype'""."
3182 $ echo4 "dev_t found."
3185 $! Check to see if we've got unistd.h (which we ought to, but you never know)
3192 $!: see if this is a libutil.h system
3198 $! Check to see if we've got shadow.h (probably not, but...)
3204 $! Check to see if we've got socks.h (probably not, but...)
3210 $! Check the prototype for select
3212 $ IF Has_Dec_C_Sockets .OR. Has_Socketshr
3215 $ WS "#if defined(__DECC) || defined(__DECCXX)"
3216 $ WS "#include <stdlib.h>"
3218 $ WS "#include <stdio.h>"
3219 $ WS "#include <types.h>"
3220 $ IF i_unistd .EQS. "define" THEN WS "#include <unistd.h>"
3223 $ WS "#include <socketshr.h>"
3225 $ WS "#include <time.h>"
3226 $ WS "#include <socket.h>"
3233 $ WS "bar = select(2, foo, foo, foo, NULL);"
3238 $ IF compile_status .NE. good_compile
3240 $! Okay, select failed. Must be an int *
3241 $ selecttype = "int *"
3242 $ echo4 "select() NOT found."
3244 $ selecttype="fd_set *"
3245 $ echo4 "select() found."
3248 $ ! No sockets, so stick in an int * : no select, so pick a harmless default
3249 $ selecttype = "int *"
3252 $! Check to see if fd_set exists
3254 $ echo "Checking to see how well your C compiler handles fd_set and friends ..."
3256 $ WS "#if defined(__DECC) || defined(__DECCXX)"
3257 $ WS "#include <stdlib.h>"
3259 $ WS "#include <stdio.h>"
3260 $ WS "#include <types.h>"
3263 $ WS "#include <socketshr.h>"
3265 $ IF Has_Dec_C_Sockets
3267 $ WS "#include <time.h>"
3268 $ WS "#include <socket.h>"
3278 $ IF compile_status .ne. good_compile
3280 $! Okay, fd_set failed. Must not exist
3281 $ d_fd_set = "undef"
3282 $ echo4 "Hmm, your compiler has some difficulty with fd_set."
3285 $ echo4 "Well, your system knows about the normal fd_set typedef..."
3288 $! Check for inttypes.h
3290 $ tmp = "inttypes.h"
3294 $! Check to see if off64_t exists
3296 $ echo4 "Checking to see if you have off64_t..."
3298 $ WS "#if defined(__DECC) || defined(__DECCXX)"
3299 $ WS "#include <stdlib.h>"
3301 $ WS "#include <stdio.h>"
3302 $ WS "#include <types.h>"
3303 $ WS "#''i_inttypes' IIH"
3305 $ WS "#include <inttypes.h>"
3314 $ IF compile_status .EQ. good_compile
3316 $ d_off64_t="define"
3317 $ echo "You have off64_t."
3319 $ d_off64_t = "undef"
3320 $ echo "You do not have off64_t."
3323 $! Check to see if fpos64_t exists
3325 $ echo4 "Checking to see if you have fpos64_t..."
3327 $ WS "#if defined(__DECC) || defined(__DECCXX)"
3328 $ WS "#include <stdlib.h>"
3330 $ WS "#include <stdio.h>"
3331 $ WS "#include <types.h>"
3332 $ WS "#''i_inttypes' IIH"
3334 $ WS "#include <inttypes.h>"
3338 $ WS "fpos64_t bar;"
3343 $ IF compile_status .EQ. good_compile
3345 $ d_fpos64_t="define"
3346 $ echo "You have fpos64_t."
3348 $ d_fpos64_t = "undef"
3349 $ echo "You do not have fpos64_t."
3352 $! Check to see if int64_t exists
3354 $ echo4 "Checking to see if you have int64_t..."
3356 $ WS "#if defined(__DECC) || defined(__DECCXX)"
3357 $ WS "#include <stdlib.h>"
3359 $ WS "#include <stdio.h>"
3360 $ WS "#include <types.h>"
3361 $ WS "#''i_inttypes' IIH"
3363 $ WS "#include <inttypes.h>"
3372 $ IF compile_status .EQ. good_compile
3374 $ d_int64_t="define"
3375 $ echo "You have int64_t."
3377 $ d_int64_t = "undef"
3378 $ echo "You do not have int64_t."
3381 $!: see if this is a netdb.h system
3382 $ IF Has_Dec_C_Sockets
3389 $! Check for h_errno
3391 $ echo4 "Checking to see if you have h_errno..."
3393 $ WS "#if defined(__DECC) || defined(__DECCXX)"
3394 $ WS "#include <stdlib.h>"
3396 $ WS "#include <stdio.h>"
3397 $ IF i_unistd .EQS. "define" THEN WS "#include <unistd.h>"
3398 $ IF i_netdb .EQS. "define" THEN WS "#include <netdb.h>"
3406 $ IF compile_status .EQ. good_compile .AND. link_status .EQ. good_link
3409 $ echo "You have h_errno."
3412 $ echo "You do not have h_errno."
3415 $! Check to see if gethostname exists
3417 $ IF Has_Dec_C_Sockets .OR. Has_Socketshr
3420 $ WS "#if defined(__DECC) || defined(__DECCXX)"
3421 $ WS "#include <stdlib.h>"
3423 $ WS "#include <stdio.h>"
3424 $ WS "#include <types.h>"
3427 $ WS "#include <socketshr.h>"
3429 $ WS "#include <time.h>"
3430 $ WS "#include <socket.h>"
3434 $ WS "char name[100];"
3435 $ WS "int bar, baz;"
3437 $ WS "baz = gethostname(name, bar);"
3442 $ IF compile_status .EQ. good_compile .AND. link_status .EQ. good_link
3444 $ d_gethname="define"
3445 $ echo4 "gethostname() found."
3447 $ d_gethname="undef"
3450 $ ! No sockets, so no gethname
3451 $ d_gethname = "undef"
3454 $! Check for sys/file.h
3456 $ tmp = "sys/file.h"
3460 $! Check for sys/utsname.h
3462 $ tmp = "sys/utsname.h"
3464 $ i_sysutsname = tmp
3466 $! Check for syslog.h
3478 $! Check for sys/uio.h
3484 $! Check for sys/mode.h
3486 $ tmp = "sys/mode.h"
3490 $! Check for sys/access.h
3492 $ tmp = "sys/access.h"
3496 $! Check for sys/security.h
3498 $ tmp = "sys/security.h"
3502 $! Check for fcntl.h
3511 $ WS "#if defined(__DECC) || defined(__DECCXX)"
3512 $ WS "#include <stdlib.h>"
3514 $ WS "#include <stdio.h>"
3515 $ WS "#include <fcntl.h>"
3518 $ WS "fcntl(1,2,3);"
3526 $! Check for fcntl locking capability
3528 $ echo4 "Checking if fcntl-based file locking works... "
3530 $ IF d_fcntl .EQS. "define"
3533 $ WS "#include <stdio.h>"
3534 $ WS "#if defined(__DECC) || defined(__DECCXX)"
3535 $ WS "#include <stdlib.h>"
3537 $ WS "#include <fcntl.h>"
3538 $ WS "#include <unistd.h>"
3540 $ WS "#if defined(F_SETLK) && defined(F_SETLKW)"
3541 $ WS " struct flock flock;"
3542 $ WS " int retval, fd;"
3543 $ WS " fd = open(""try.c"", O_RDONLY);"
3544 $ WS " flock.l_type = F_RDLCK;"
3545 $ WS " flock.l_whence = SEEK_SET;"
3546 $ WS " flock.l_start = flock.l_len = 0;"
3547 $ WS " retval = fcntl(fd, F_SETLK, &flock);"
3549 $ WS " (retval < 0 ? printf(""undef\n"") : printf(""define\n""));"
3551 $ WS " printf(""undef\n"");"
3556 $ IF compile_status .EQ. good_compile .AND. link_status .EQ. good_link
3559 $ IF tmp .EQS. "define"
3561 $ echo4 "Yes, it seems to work."
3563 $ echo4 "Nope, it didn't work."
3566 $ echo4 "I'm unable to compile the test program, so I'll assume not."
3570 $ echo4 "Nope, since you don't even have fcntl()."
3572 $ d_fcntl_can_lock = tmp
3577 $ WS "#if defined(__DECC) || defined(__DECCXX)"
3578 $ WS "#include <stdlib.h>"
3580 $ WS "#include <string.h>"
3583 $ WS "char * place;"
3584 $ WS "place = memchr(""foo"", 47, 3)"
3592 $! Check for strtoull
3595 $ WS "#if defined(__DECC) || defined(__DECCXX)"
3596 $ WS "#include <stdlib.h>"
3598 $ WS "#include <string.h>"
3601 $ WS "unsigned __int64 result;"
3602 $ WS "result = strtoull(""123123"", NULL, 10);"
3610 $! Check for strtouq
3613 $ WS "#if defined(__DECC) || defined(__DECCXX)"
3614 $ WS "#include <stdlib.h>"
3616 $ WS "#include <string.h>"
3619 $ WS "unsigned __int64 result;"
3620 $ WS "result = strtouq(""123123"", NULL, 10);"
3628 $! Check for strtoll
3631 $ WS "#if defined(__DECC) || defined(__DECCXX)"
3632 $ WS "#include <stdlib.h>"
3634 $ WS "#include <string.h>"
3637 $ WS "__int64 result;"
3638 $ WS "result = strtoll(""123123"", NULL, 10);"
3649 $ WS "#if defined(__DECC) || defined(__DECCXX)"
3650 $ WS "#include <stdlib.h>"
3652 $ WS "#include <string.h>"
3655 $ WS "__int64 result;"
3656 $ WS "result = strtoq(""123123"", NULL, 10);"
3667 $ WS "#if defined(__DECC) || defined(__DECCXX)"
3668 $ WS "#include <stdlib.h>"
3670 $ WS "#include <string.h>"
3673 $ WS "__int64 result;"
3674 $ WS "result = strtoq(""123123"", NULL, 10);"
3682 $! Check for strtold
3685 $ WS "#if defined(__DECC) || defined(__DECCXX)"
3686 $ WS "#include <stdlib.h>"
3688 $ WS "#include <string.h>"
3691 $ WS "long double result;"
3692 $ WS "result = strtold(""123123"", NULL, 10);"
3703 $ WS "#if defined(__DECC) || defined(__DECCXX)"
3704 $ WS "#include <stdlib.h>"
3706 $ WS "#include <string.h>"
3709 $ WS " __int64 result;"
3710 $ WS "result = atoll(""123123"");"
3721 $ WS "#if defined(__DECC) || defined(__DECCXX)"
3722 $ WS "#include <stdlib.h>"
3724 $ WS "#include <string.h>"
3728 $ WS "result = atolf(""123123"");"
3739 $ WS "#if defined(__DECC) || defined(__DECCXX)"
3740 $ WS "#include <stdlib.h>"
3742 $ WS "#include <stdio.h>"
3745 $ WS "access(""foo"", F_OK);"
3756 $ WS "#if defined(__DECC) || defined(__DECCXX)"
3757 $ WS "#include <stdlib.h>"
3759 $ WS "#include <stdio.h>"
3760 $ WS "#include <strings.h>"
3763 $ WS "char foo[10];"
3764 $ WS "bzero(foo, 10);"
3775 $ WS "#if defined(__DECC) || defined(__DECCXX)"
3776 $ WS "#include <stdlib.h>"
3778 $ WS "#include <stdio.h>"
3779 $ WS "#include <strings.h>"
3782 $ WS "char foo[10], bar[10];"
3783 $ WS "bcopy(""foo"", bar, 3);"
3791 $! Check for mkstemp
3794 $ WS "#if defined(__DECC) || defined(__DECCXX)"
3795 $ WS "#include <stdlib.h>"
3797 $ WS "#include <stdio.h>"
3800 $ WS "mkstemp(""foo"");"
3808 $! Check for mkstemps
3811 $ WS "#if defined(__DECC) || defined(__DECCXX)"
3812 $ WS "#include <stdlib.h>"
3814 $ WS "#include <stdio.h>"
3817 $ WS "mkstemps(""foo"", 1);"
3828 $ WS "#if defined(__DECC) || defined(__DECCXX)"
3829 $ WS "#include <stdlib.h>"
3831 $ WS "#include <stdio.h>"
3832 $ WS "#include <iconv.h>"
3835 $ WS " iconv_t cd = (iconv_t)0;"
3836 $ WS " char *inbuf, *outbuf;"
3837 $ WS " size_t inleft, outleft;"
3838 $ WS " iconv(cd, &inbuf, &inleft, &outbuf, &outleft);"
3843 $ IF compile_status .ne. good_compile
3848 $ IF link_status .ne. good_link
3857 $ IF i_iconv .eqs. "define"
3858 $ THEN echo4 "<iconv.h> found."
3859 $ ELSE echo4 "<iconv.h> NOT found."
3862 $! Check for mkdtemp
3865 $ WS "#if defined(__DECC) || defined(__DECCXX)"
3866 $ WS "#include <stdlib.h>"
3868 $ WS "#include <stdio.h>"
3871 $ WS "mkdtemp(""foo"");"
3879 $! Check for setvbuf
3882 $ WS "#if defined(__DECC) || defined(__DECCXX)"
3883 $ WS "#include <stdlib.h>"
3885 $ WS "#include <stdio.h>"
3889 $ WS "char Buffer[99];"
3890 $ WS "foo = fopen(""foo"", ""r"");"
3891 $ WS "setvbuf(foo, Buffer, 0, 0);"
3899 $! see if sfio.h is available
3900 $! see if sfio library is available
3901 $! Ok, but do we want to use it.
3902 $! IF F$TYPE(usesfio) .EQS. "" THEN usesfio = "undef"
3903 $! IF val .EQS. "define"
3905 $! IF usesfio .EQS. "define"
3909 $! echo "''package' can use the sfio library, but it is experimental."
3910 $! IF useperlio .EQS. "undef"
3912 $! echo "For sfio also the PerlIO abstraction layer is needed."
3913 $! echo "Earlier you said you would not want that."
3915 $! rp="You seem to have sfio available, do you want to try using it? [''dflt'] "
3917 $! IF ans .EQS. "" THEN ans = dflt
3920 $! echo "Ok, turning on both sfio and PerlIO, then."
3921 $! useperlio="define"
3924 $! echo "Ok, avoiding sfio this time. I'll use stdio instead."
3928 $! IF usesfio .EQS. "define"
3930 $! echo4 "Sorry, cannot find sfio on this machine."
3931 $! echo4 "Ignoring your setting of usesfio=''usesfio'."
3939 $ WS "#if defined(__DECC) || defined(__DECCXX)"
3940 $ WS "#include <stdlib.h>"
3942 $ WS "#include <stdio.h>"
3945 $ WS "setenv(""FOO"", ""BAR"", 0);"
3953 $! Check for setproctitle
3956 $ WS "#if defined(__DECC) || defined(__DECCXX)"
3957 $ WS "#include <stdlib.h>"
3959 $ WS "#include <stdio.h>"
3962 $ WS "setproctitle(""%s"", ""FOO"");"
3966 $ tmp = "setproctitle"
3968 $ d_setproctitle = tmp
3970 $! Check for <netinet/in.h>
3972 $ IF Has_Dec_C_Sockets .or. Has_Socketshr
3974 $ tmp = "netinet/in.h"
3981 $! Check for <netinet/tcp.h>
3983 $ IF Has_Dec_C_Sockets .or. Has_Socketshr
3985 $ tmp = "netinet/tcp.h"
3987 $ i_netinettcp = tmp
3989 $ i_netinettcp="undef"
3992 $! Check for endhostent
3994 $ IF Has_Dec_C_Sockets .or. Has_Socketshr
3997 $ WS "#if defined(__DECC) || defined(__DECCXX)"
3998 $ WS "#include <stdlib.h>"
4000 $ WS "#include <stdio.h>"
4002 $ THEN WS "#include <socketshr.h>"
4003 $ ELSE IF i_netdb .EQS. "define" THEN WS "#include <netdb.h>"
4007 $ WS "endhostent();"
4011 $ tmp = "endhostent"
4018 $! Check for endnetent
4020 $ IF Has_Dec_C_Sockets .or. Has_Socketshr
4023 $ WS "#if defined(__DECC) || defined(__DECCXX)"
4024 $ WS "#include <stdlib.h>"
4026 $ WS "#include <stdio.h>"
4028 $ THEN WS "#include <socketshr.h>"
4029 $ ELSE IF i_netdb .EQS. "define" THEN WS "#include <netdb.h>"
4044 $! Check for endprotoent
4046 $ IF Has_Dec_C_Sockets .OR. Has_Socketshr
4049 $ WS "#if defined(__DECC) || defined(__DECCXX)"
4050 $ WS "#include <stdlib.h>"
4052 $ WS "#include <stdio.h>"
4054 $ THEN WS "#include <socketshr.h>"
4055 $ ELSE IF i_netdb .EQS. "define" THEN WS "#include <netdb.h>"
4059 $ WS "endprotoent();"
4063 $ tmp = "endprotoent"
4070 $! Check for endservent
4072 $ IF Has_Dec_C_Sockets .OR. Has_Socketshr
4075 $ WS "#if defined(__DECC) || defined(__DECCXX)"
4076 $ WS "#include <stdlib.h>"
4078 $ WS "#include <stdio.h>"
4080 $ THEN WS "#include <socketshr.h>"
4081 $ ELSE IF i_netdb .EQS. "define" THEN WS "#include <netdb.h>"
4085 $ WS "endservent();"
4089 $ tmp = "endservent"
4096 $! Check for sethostent
4098 $ IF Has_Dec_C_Sockets .OR. Has_Socketshr
4101 $ WS "#if defined(__DECC) || defined(__DECCXX)"
4102 $ WS "#include <stdlib.h>"
4104 $ WS "#include <stdio.h>"
4106 $ THEN WS "#include <socketshr.h>"
4107 $ ELSE IF i_netdb .EQS. "define" THEN WS "#include <netdb.h>"
4111 $ WS "sethostent(1);"
4115 $ tmp = "sethostent"
4122 $! Check for setnetent
4124 $ IF Has_Dec_C_Sockets .OR. Has_Socketshr
4127 $ WS "#if defined(__DECC) || defined(__DECCXX)"
4128 $ WS "#include <stdlib.h>"
4130 $ WS "#include <stdio.h>"
4132 $ THEN WS "#include <socketshr.h>"
4133 $ ELSE IF i_netdb .EQS. "define" THEN WS "#include <netdb.h>"
4137 $ WS "setnetent(1);"
4148 $! Check for setprotoent
4150 $ IF Has_Dec_C_Sockets .OR. Has_Socketshr
4153 $ WS "#if defined(__DECC) || defined(__DECCXX)"
4154 $ WS "#include <stdlib.h>"
4156 $ WS "#include <stdio.h>"
4158 $ THEN WS "#include <socketshr.h>"
4159 $ ELSE IF i_netdb .EQS. "define" THEN WS "#include <netdb.h>"
4163 $ WS "setprotoent(1);"
4167 $ tmp = "setprotoent"
4174 $! Check for setservent
4176 $ IF Has_Dec_C_Sockets .OR. Has_Socketshr
4179 $ WS "#if defined(__DECC) || defined(__DECCXX)"
4180 $ WS "#include <stdlib.h>"
4182 $ WS "#include <stdio.h>"
4184 $ THEN WS "#include <socketshr.h>"
4185 $ ELSE IF i_netdb .EQS. "define" THEN WS "#include <netdb.h>"
4189 $ WS "setservent(1);"
4193 $ tmp = "setservent"
4200 $! Check for gethostent
4202 $ IF Has_Dec_C_Sockets .OR. Has_Socketshr
4205 $ WS "#if defined(__DECC) || defined(__DECCXX)"
4206 $ WS "#include <stdlib.h>"
4208 $ WS "#include <stdio.h>"
4210 $ THEN WS "#include <socketshr.h>"
4211 $ ELSE IF i_netdb .EQS. "define" THEN WS "#include <netdb.h>"
4215 $ WS "gethostent();"
4219 $ tmp = "gethostent"
4226 $! Check for getnetent
4228 $ IF Has_Dec_C_Sockets .OR. Has_Socketshr
4231 $ WS "#if defined(__DECC) || defined(__DECCXX)"
4232 $ WS "#include <stdlib.h>"
4234 $ WS "#include <stdio.h>"
4236 $ THEN WS "#include <socketshr.h>"
4237 $ ELSE IF i_netdb .EQS. "define" THEN WS "#include <netdb.h>"
4252 $! Check for getprotoent
4254 $ IF Has_Dec_C_Sockets .OR. Has_Socketshr
4257 $ WS "#if defined(__DECC) || defined(__DECCXX)"
4258 $ WS "#include <stdlib.h>"
4260 $ WS "#include <stdio.h>"
4262 $ THEN WS "#include <socketshr.h>"
4263 $ ELSE IF i_netdb .EQS. "define" THEN WS "#include <netdb.h>"
4267 $ WS "getprotoent();"
4271 $ tmp = "getprotoent"
4278 $! Check for getservent
4280 $ IF Has_Dec_C_Sockets .OR. Has_Socketshr
4283 $ WS "#if defined(__DECC) || defined(__DECCXX)"
4284 $ WS "#include <stdlib.h>"
4286 $ WS "#include <stdio.h>"
4288 $ THEN WS "#include <socketshr.h>"
4289 $ ELSE IF i_netdb .EQS. "define" THEN WS "#include <netdb.h>"
4293 $ WS "getservent();"
4297 $ tmp = "getservent"
4304 $! Check for socklen_t
4306 $ IF Has_Dec_C_Sockets .OR. Has_Socketshr
4308 $ echo4 "Checking to see if you have socklen_t..."
4310 $ WS "#if defined(__DECC) || defined(__DECCXX)"
4311 $ WS "#include <stdlib.h>"
4313 $ WS "#include <stdio.h>"
4315 $ THEN WS "#include <socketshr.h>"
4316 $ ELSE IF i_netdb .EQS. "define" THEN WS "#include <netdb.h>"
4320 $ WS "socklen_t x = 16;"
4325 $ IF compile_status .EQ. good_compile .AND. link_status .EQ. good_link
4327 $ d_socklen_t="define"
4328 $ echo "You have socklen_t."
4330 $ d_socklen_t="undef"
4331 $ echo "You do not have socklen_t."
4334 $ d_socklen_t="undef"
4337 $! Check for pthread_yield
4342 $ WS "#if defined(__DECC) || defined(__DECCXX)"
4343 $ WS "#include <stdlib.h>"
4345 $ WS "#include <pthread.h>"
4346 $ WS "#include <stdio.h>"
4349 $ WS "pthread_yield();"
4353 $ tmp = "pthread_yield"
4355 $ d_pthread_yield = tmp
4357 $ d_pthread_yield="undef"
4360 $! Check for sched_yield
4365 $ WS "#if defined(__DECC) || defined(__DECCXX)"
4366 $ WS "#include <stdlib.h>"
4368 $ WS "#include <pthread.h>"
4369 $ WS "#include <stdio.h>"
4372 $ WS "sched_yield();"
4376 $ tmp = "sched_yield"
4378 $ d_sched_yield = tmp
4379 $ IF d_sched_yield .EQS. "define"
4380 $ THEN sched_yield = "sched_yield"
4381 $ ELSE sched_yield = " "
4384 $ d_sched_yield="undef"
4388 $! Check for generic pointer size
4390 $ echo4 "Checking to see how big your pointers are..."
4392 $ WS "#if defined(__DECC) || defined(__DECCXX)"
4393 $ WS "#include <stdlib.h>"
4395 $ WS "#include <stdio.h>"
4399 $ WS "foo = sizeof(char *);"
4400 $ WS "printf(""%d\n"", foo);"
4405 $ GOSUB type_size_check
4407 $ echo "Your pointers are ''ptrsize' bytes long."
4409 $! Check for size_t size
4413 $ echo4 "Checking the size of ''zzz'..."
4414 $ GOSUB type_size_check
4416 $ echo "Your ''zzz' size is ''sizesize' bytes."
4418 $! Check rand48 and its ilk
4420 $ echo4 "Looking for a random number function..."
4422 $ WS "#if defined(__DECC) || defined(__DECCXX)"
4423 $ WS "#include <stdlib.h>"
4425 $ WS "#include <stdio.h>"
4428 $ WS "srand48(12L);"
4433 $ IF compile_status .EQ. good_compile .AND. link_status .EQ. good_link
4435 $ drand01 = "drand48()"
4436 $ randseedtype = "long int"
4437 $ seedfunc = "srand48"
4438 $ echo4 "Good, found drand48()."
4439 $ d_drand48proto = "define"
4441 $ d_drand48proto = "undef"
4442 $ drand01="random()"
4443 $ randseedtype = "unsigned"
4444 $ seedfunc = "srandom"
4446 $ WS "#if defined(__DECC) || defined(__DECCXX)"
4447 $ WS "#include <stdlib.h>"
4449 $ WS "#include <stdio.h>"
4457 $ IF compile_status .EQ. good_compile .AND. link_status .EQ. good_link
4459 $ echo4 "OK, found random()."
4461 $ drand01="(((float)rand())/((float)RAND_MAX))"
4462 $ randseedtype = "unsigned"
4463 $ seedfunc = "srand"
4464 $ echo4 "Yick, looks like I have to use rand()."
4467 $! Done with compiler checks. Clean up.
4468 $ IF F$SEARCH("try.c") .NES."" THEN DELETE/NOLOG/NOCONFIRM try.c;*
4469 $ IF F$SEARCH("try.obj").NES."" THEN DELETE/NOLOG/NOCONFIRM try.obj;*
4470 $ IF F$SEARCH("try.exe").NES."" THEN DELETE/NOLOG/NOCONFIRM try.exe;*
4471 $ IF F$SEARCH("try.opt").NES."" THEN DELETE/NOLOG/NOCONFIRM try.opt;*
4472 $ IF F$SEARCH("try.out").NES."" THEN DELETE/NOLOG/NOCONFIRM try.out;*
4475 $ CALL Cxx_demangler_cleanup
4478 $! Some that are compiler or VMS version sensitive
4483 $ d_attribut="define"
4487 $ d_attribut="undef"
4490 $! Dec C >= 5.2 and VMS ver >= 7.0
4491 $ IF (Using_Dec_C).AND.(F$INTEGER(Dec_C_Version).GE.50200000).AND.(vms_ver .GES. "7.0")
4494 $ d_gettimeod="define"
4496 $ d_sigaction="define"
4497 $ d_truncate="define"
4501 $ sig_name="ZERO HUP INT QUIT ILL TRAP IOT EMT FPE KILL BUS SEGV SYS PIPE ALRM TERM ABRT USR1 USR2 SPARE18 SPARE19 CHLD CONT STOP TSTP TTIN TTOU DEBUG SPARE27 SPARE28 SPARE29 SPARE30 SPARE31 SPARE32 RTMIN RTMAX"",0"
4502 $ psnwc1="""ZERO"",""HUP"",""INT"",""QUIT"",""ILL"",""TRAP"",""IOT"",""EMT"",""FPE"",""KILL"",""BUS"",""SEGV"",""SYS"","
4503 $ psnwc2="""PIPE"",""ALRM"",""TERM"",""ABRT"",""USR1"",""USR2"",""SPARE18"",""SPARE19"",""CHLD"",""CONT"",""STOP"",""TSTP"","
4504 $ psnwc3="""TTIN"",""TTOU"",""DEBUG"",""SPARE27"",""SPARE28"",""SPARE29"",""SPARE30"",""SPARE31"",""SPARE32"",""RTMIN"",""RTMAX"",0"
4505 $ sig_name_init = psnwc1 + psnwc2 + psnwc3
4506 $ sig_num="0 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 6 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 64"",0"
4507 $ sig_num_init="0,1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,6,16,17,18,19,20,21,22,23,24,25,26,27,28,29,30,31,32,33,64,0"
4508 $! perl_sig_num_with_commas=sig_num_init
4510 $ d_pathconf="define"
4511 $ d_fpathconf="define"
4512 $ d_sysconf="define"
4513 $ d_sigsetjmp="define"
4515 $ pidtype="unsigned int"
4516 $ d_gettimeod="undef"
4519 $ d_sigaction="undef"
4520 $ d_truncate="undef"
4523 $ sig_name="ZERO HUP INT QUIT ILL TRAP IOT EMT FPE KILL BUS SEGV SYS PIPE ALRM TERM ABRT USR1 USR2"",0"
4524 $ psnwc1="""ZERO"",""HUP"",""INT"",""QUIT"",""ILL"",""TRAP"",""IOT"",""EMT"",""FPE"",""KILL"",""BUS"",""SEGV"",""SYS"","
4525 $ psnwc2="""PIPE"",""ALRM"",""TERM"",""ABRT"",""USR1"",""USR2"",0"
4526 $ sig_name_init = psnwc1 + psnwc2
4527 $ sig_num="0 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 6 16 17"",0"
4528 $ sig_num_init="0,1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,6,16,17,0"
4529 $! perl_sig_num_with_commas=sig_num_init
4530 $ uidtype="unsigned int"
4531 $ d_pathconf="undef"
4532 $ d_fpathconf="undef"
4534 $ d_sigsetjmp="undef"
4540 $ d_mbstowcs="define"
4542 $ d_stdiobase="define"
4543 $ d_stdio_cnt_lval="define"
4544 $ d_stdio_ptr_lval="define"
4545 $ d_stdstdio="define"
4546 $ d_wcstombs="define"
4549 $ d_strcoll="define"
4550 $ d_strxfrm="define"
4553 $ d_locconv="define"
4554 $ d_setlocale="define"
4555 $ vms_cc_type="decc"
4557 $ d_mbstowcs="undef"
4559 $ d_stdiobase="undef"
4560 $ d_stdio_cnt_lval="undef"
4561 $ d_stdio_ptr_lval="undef"
4562 $ d_stdstdio="undef"
4563 $ d_wcstombs="undef"
4571 $ d_setlocale="undef"
4573 $ d_stdio_ptr_lval_sets_cnt="undef"
4574 $ d_stdio_ptr_lval_nochange_cnt="undef"
4577 $ if Has_Socketshr .OR. Has_Dec_C_Sockets
4579 $ d_vms_do_sockets="define"
4583 $ netdb_hlen_type="int"
4584 $ netdb_host_type="char *"
4585 $ netdb_name_type="char *"
4586 $ netdb_net_type="long"
4587 $ d_gethbyaddr="define"
4588 $ d_gethbyname="define"
4589 $ d_getnbyaddr="define"
4590 $ d_getnbyname="define"
4591 $ d_getpbynumber="define"
4592 $ d_getpbyname="define"
4593 $ d_getsbyport="define"
4594 $ d_getsbyname="define"
4595 $ d_gethostprotos="define"
4596 $ d_getnetprotos="define"
4597 $ d_getprotoprotos="define"
4598 $ d_getservprotos="define"
4599 $ IF Using_Dec_C .OR. using_cxx
4601 $ socksizetype="unsigned int"
4603 $ socksizetype="int *"
4606 $ d_vms_do_sockets="undef"
4610 $ netdb_hlen_type="int"
4611 $ netdb_host_type="char *"
4612 $ netdb_name_type="char *"
4613 $ netdb_net_type="long"
4614 $ d_gethbyaddr="undef"
4615 $ d_gethbyname="undef"
4616 $ d_getnbyaddr="undef"
4617 $ d_getnbyname="undef"
4618 $ d_getpbynumber="undef"
4619 $ d_getpbyname="undef"
4620 $ d_getsbyport="undef"
4621 $ d_getsbyname="undef"
4622 $ d_gethostprotos="undef"
4623 $ d_getnetprotos="undef"
4624 $ d_getprotoprotos="undef"
4625 $ d_getservprotos="undef"
4626 $ socksizetype="undef"
4631 $ usethreads="define"
4632 $ d_pthreads_created_joinable="define"
4633 $ if (vms_ver .GES. "7.0")
4635 $ d_oldpthreads="undef"
4637 $ d_oldpthreads="define"
4640 $ d_oldpthreads="undef"
4641 $ usethreads="undef"
4642 $ d_pthreads_created_joinable="undef"
4645 $! new (5.005_62++) typedefs for primitives
4647 $ echo "Choosing the C types to be used for Perl's internal types..."
4649 $ uvtype="unsigned long"
4651 $ u8type="unsigned char"
4653 $ u16type="unsigned short"
4655 $ u32type="unsigned int"
4656 $ i64type="long long"
4657 $ u64type="unsigned long long"
4660 $ IF use64bitint .OR. use64bitint .EQS. "define"
4662 $ ivtype = "''i64type'"
4663 $ uvtype = "''u64type'"
4664 $ nvtype="long double"
4671 $ GOSUB type_size_check
4673 $ IF use64bitint .OR. use64bitint .EQS. "define" THEN i64size = tmp
4674 $ IF ivtype .eqs. "long"
4675 $ THEN longsize = tmp
4678 $ GOSUB type_size_check
4683 $ GOSUB type_size_check
4685 $ IF use64bitint .OR. use64bitint .EQS. "define" THEN u64size = tmp
4688 $ GOSUB type_size_check
4692 $ GOSUB type_size_check
4695 $ tmp = "''i16type'"
4696 $ GOSUB type_size_check
4698 $ IF i16type .eqs. "short"
4699 $ THEN shortsize = tmp
4702 $ gosub type_size_check
4706 $ tmp = "''u16type'"
4707 $ GOSUB type_size_check
4710 $ tmp = "''i32type'"
4711 $ GOSUB type_size_check
4713 $ IF i32type .eqs. "int"
4714 $ THEN intsize = tmp
4717 $ gosub type_size_check
4721 $ tmp = "''u32type'"
4722 $ gosub type_size_check
4726 $ GOSUB type_size_check
4729 $ echo "(IV will be ""''ivtype'"", ''ivsize' bytes)"
4730 $ echo "(UV will be ""''uvtype'"", ''uvsize' bytes)"
4731 $ echo "(NV will be ""''nvtype'"", ''nvsize' bytes)"
4733 $ echo4 "Checking whether your NVs can preserve your UVs..."
4735 $ WS "#if defined(__DECC) || defined(__DECCXX)"
4736 $ WS "#include <stdlib.h>"
4738 $ WS "#include <stdio.h>"
4740 $ WS " ''uvtype' k = (''uvtype')~0, l;"
4741 $ WS " ''nvtype' d;"
4743 $ WS " d = (''nvtype')l;"
4744 $ WS " l = (''uvtype')d;"
4746 $ WS " printf(""preserve\n"");"
4751 $ IF tmp .EQS. "preserve"
4753 $ d_nv_preserves_uv = "define"
4754 $ echo "Yes, they can."
4755 $ d_nv_preserves_uv_bits = F$STRING(F$INTEGER(uvsize) * 8)
4757 $ d_nv_preserves_uv = "undef"
4758 $ echo "No, they can't."
4759 $ echo4 "Checking how many bits of your UVs your NVs can preserve..."
4761 $ WS "#if defined(__DECC) || defined(__DECCXX)"
4762 $ WS "#include <stdlib.h>"
4764 $ WS "#include <stdio.h>"
4766 $ WS " ''uvtype' u = 0;"
4767 $ WS " int n = 8 * ''uvsize';"
4769 $ WS " for (i = 0; i < n; i++) {"
4770 $ WS " u = u << 1 | (''uvtype')1;"
4771 $ WS " if ((''uvtype')(''nvtype')u != u)"
4774 $ WS " printf(""%d\n"", i);"
4778 $ d_nv_preserves_uv_bits = tmp
4782 $ ivdformat="""ld"""
4783 $ uvuformat="""lu"""
4784 $ uvoformat="""lo"""
4785 $ uvxformat="""lx"""
4791 $! Finally the composite ones. All config
4793 $ myuname="''osname' ''myname' ''osvers' ''F$EDIT(hwname, "TRIM")'"
4795 $ IF Using_Dec_C .AND. (.NOT. using_cxx)
4797 $ ccflags="/Include=[]/Standard=Relaxed_ANSI/Prefix=All/Obj=''obj_ext'/NoList''ccflags'"
4799 $ i_dirent = "undef"
4802 $ i_dirent = "define"
4803 $ ccflags="/Include=[]/Standard=ANSI/Prefix=All/Obj=''obj_ext'/NoList''ccflags'"
4805 $ IF use_vmsdebug_perl
4807 $ optimize="/Debug/NoOpt"
4814 $! Okay, we've got everything configured. Now go write out a config.sh.
4815 $ basename_config_sh = F$PARSE(config_sh,,,"NAME",)+F$PARSE(config_sh,,,"TYPE",)
4816 $ echo4 "Creating ''basename_config_sh'..."
4817 $ open/write CONFIG 'config_sh'
4818 $ WC := write CONFIG
4820 $! ##BEGIN WRITE NEW CONSTANTS HERE##
4824 $ WC "# This file was produced by Configure.COM on a ''osname' system."
4826 $ WC "# Package name : ''package'"
4827 $ WC "# Source directory : ''src'"
4828 $ WC "# Configuration time: " + cf_time
4829 $ WC "# Configuration by : " + cf_by
4830 $ WC "# Target system : " + myuname
4832 $ WC "CONFIG='true'"
4833 $ WC "Makefile_SH='" + Makefile_SH + "'"
4834 $ WC "Mcc='" + Mcc + "'"
4835 $! WC "PERL_SUBVERSION='" + subversion + "'" ! VMS specific to descrip_mms.template
4836 $ WC "PERL_VERSION='" + patchlevel + "'" ! VMS specific to descrip_mms.template
4837 $ WC "alignbytes='" + alignbytes + "'"
4838 $ WC "aphostname='" + "'"
4840 $ WC "archlib='" + archlib + "'"
4841 $ WC "archlibexp='" + archlibexp + "'"
4842 $ WC "archname='" + archname + "'"
4843 $ WC "baserev='" + baserev + "'"
4844 $ WC "bin='" + bin + "'"
4845 $ WC "binexp='" + binexp + "'"
4846 $ WC "builddir='" + builddir + "'"
4847 $ WC "byteorder='1234'"
4848 $ WC "castflags='0'"
4849 $ WC "cc='" + perl_cc + "'"
4850 $ WC "cccdlflags='" + cccdlflags + "'"
4851 $ WC "ccdlflags='" + ccdlflags + "'"
4852 $ WC "ccflags='" + ccflags + "'"
4853 $ WC "ccversion='" + ccversion + "'"
4854 $ WC "cf_by='" + cf_by + "'"
4855 $ WC "cf_email='" + cf_email + "'"
4856 $ WC "cf_time='" + cf_time + "'"
4857 $ WC "config_args='" + config_args + "'"
4858 $ WC "config_sh='" + config_sh + "'"
4859 $ WC "cpp_stuff='" + cpp_stuff + "'"
4860 $ WC "cpplast='" + cpplast + "'"
4861 $ WC "cppminus='" + cppminus + "'"
4862 $ WC "cpprun='" + cpprun + "'"
4863 $ WC "cppstdin='" + cppstdin + "'"
4864 $ WC "crosscompile='undef'"
4865 $ WC "d__fwalk='undef'"
4866 $ WC "d_Gconvert='my_gconvert(x,n,t,b)'"
4867 $ WC "d_PRId64='" + d_PRId64 + "'"
4868 $ WC "d_PRIEldbl='" + d_PRIEUldbl + "'"
4869 $ WC "d_PRIFldbl='" + d_PRIFUldbl + "'"
4870 $ WC "d_PRIGldbl='" + d_PRIGUldbl + "'"
4871 $ WC "d_PRIX64='" + d_PRIXU64 + "'"
4872 $ WC "d_PRIeldbl='" + d_PRIeldbl + "'"
4873 $ WC "d_PRIfldbl='" + d_PRIfldbl + "'"
4874 $ WC "d_PRIgldbl='" + d_PRIgldbl + "'"
4875 $ WC "d_PRIo64='" + d_PRIo64 + "'"
4876 $ WC "d_PRIu64='" + d_PRIu64 + "'"
4877 $ WC "d_PRIx64='" + d_PRIx64 + "'"
4878 $ WC "d_SCNfldbl='" + d_SCNfldbl + "'"
4879 $ WC "d_access='" + d_access + "'"
4880 $ WC "d_accessx='undef'"
4881 $ WC "d_alarm='define'"
4882 $ WC "d_archlib='define'"
4883 $ WC "d_atolf='" + d_atolf + "'"
4884 $ WC "d_atoll='" + d_atoll + "'"
4885 $ WC "d_attribut='" + d_attribut + "'"
4886 $ WC "d_bcmp='" + d_bcmp + "'"
4887 $ WC "d_bcopy='" + d_bcopy + "'"
4888 $ WC "d_bincompat3='undef'"
4889 $ WC "d_bincompat5005='undef'"
4890 $ WC "d_bsdgetpgrp='undef'"
4891 $! WC "d_bsdpgrp='undef'"
4892 $ WC "d_bsdsetpgrp='undef'"
4893 $ WC "d_bzero='" + d_bzero + "'"
4894 $ WC "d_casti32='define'"
4895 $ WC "d_castneg='define'"
4896 $ WC "d_charvspr='undef'"
4897 $ WC "d_chown='define'"
4898 $ WC "d_chroot='undef'"
4899 $ WC "d_chsize='undef'"
4900 $ WC "d_cmsghdr_s='undef'"
4901 $ WC "d_const='define'"
4902 $ WC "d_crypt='define'"
4903 $ WC "d_csh='undef'"
4904 $ WC "d_cuserid='define'"
4905 $ WC "d_dbl_dig='define'"
4906 $ WC "d_difftime='define'"
4907 $ WC "d_dirnamlen='define'"
4908 $ WC "d_dlerror='undef'"
4909 $ WC "d_dlsymun='undef'"
4910 $ WC "d_dosuid='undef'"
4911 $ WC "d_drand48proto='" + d_drand48proto + "'"
4912 $ WC "d_dup2='define'"
4913 $ WC "d_eaccess='undef'"
4914 $ WC "d_endgrent='define'"
4915 $ WC "d_endhent='" + d_endhent + "'"
4916 $ WC "d_endnent='" + d_endnent + "'"
4917 $ WC "d_endpent='" + d_endpent + "'"
4918 $ WC "d_endpwent='define'"
4919 $ WC "d_endsent='" + d_endsent + "'"
4920 $ WC "d_eofnblk='undef'"
4921 $ WC "d_eunice='undef'"
4922 $ WC "d_fchmod='undef'"
4923 $ WC "d_fchown='undef'"
4924 $ WC "d_fcntl='" + d_fcntl + "'"
4925 $ WC "d_fcntl_can_lock='" + d_fcntl_can_lock + "'"
4926 $ WC "d_fd_set='" + d_fd_set + "'"
4927 $ WC "d_fgetpos='define'"
4928 $ WC "d_flexfnam='define'"
4929 $ WC "d_flock='undef'"
4930 $ WC "d_fork='undef'"
4931 $ WC "d_fpathconf='" + d_fpathconf + "'"
4932 $ WC "d_fpos64_t='" + d_fpos64_t + "'"
4933 $ WC "d_frexpl='" + d_frexpl + "'"
4934 $ WC "d_fs_data_s='undef'"
4935 $ WC "d_fseeko='undef'"
4936 $ WC "d_fsetpos='define'"
4937 $ WC "d_fstatfs='undef'"
4938 $ WC "d_fstatvfs='undef'"
4939 $ WC "d_fsync='undef'"
4940 $ WC "d_ftello='undef'"
4941 $ WC "d_getcwd='undef'"
4942 $ WC "d_getespwnam='undef'"
4943 $ WC "d_getfsstat='undef'"
4944 $ WC "d_getgrent='define'"
4945 $ WC "d_getgrps='undef'"
4946 $ WC "d_gethbyaddr='" + d_gethbyaddr + "'"
4947 $ WC "d_gethbyname='" + d_gethbyname + "'"
4948 $ WC "d_gethent='" + d_gethent + "'"
4949 $ WC "d_gethname='" + d_gethname + "'"
4950 $ WC "d_gethostprotos='" + d_gethostprotos + "'"
4951 $ WC "d_getlogin='define'"
4952 $ WC "d_getmnt='undef'"
4953 $ WC "d_getmntent='undef'"
4954 $ WC "d_getnbyaddr='" + d_getnbyaddr + "'"
4955 $ WC "d_getnbyname='" + d_getnbyname + "'"
4956 $ WC "d_getnent='" + d_getnent + "'"
4957 $ WC "d_getnetprotos='" + d_getnetprotos + "'"
4958 $ WC "d_getpagsz='undef'"
4959 $ WC "d_getpbyname='" + d_getpbyname + "'"
4960 $ WC "d_getpbynumber='" + d_getpbynumber + "'"
4961 $ WC "d_getpent='" + d_getpent + "'"
4962 $ WC "d_getpgid='undef'"
4963 $ WC "d_getpgrp2='undef'"
4964 $ WC "d_getpgrp='undef'"
4965 $ WC "d_getppid='undef'"
4966 $ WC "d_getprior='undef'"
4967 $ WC "d_getprotoprotos='" + d_getprotoprotos + "'"
4968 $ WC "d_getprpwnam='undef'"
4969 $ WC "d_getpwent='define'"
4970 $ WC "d_getsbyname='" + d_getsbyname + "'"
4971 $ WC "d_getsbyport='" + d_getsbyport + "'"
4972 $ WC "d_getsent='" + d_getsent + "'"
4973 $ WC "d_getservprotos='" + d_getservprotos + "'"
4974 $ WC "d_getspnam='undef'"
4975 $ WC "d_gettimeod='" + d_gettimeod + "'"
4976 $ WC "d_gnulibc='undef'"
4977 $ WC "d_grpasswd='undef'"
4978 $ WC "d_hasmntopt='undef'"
4979 $ WC "d_htonl='" + d_htonl + "'"
4980 $ WC "d_iconv='" + d_iconv +"'"
4981 $ WC "d_index='" + d_index + "'"
4982 $ WC "d_inetaton='undef'"
4983 $ WC "d_int64_t='" + d_int64_t + "'"
4984 $ WC "d_isascii='define'"
4985 $ WC "d_isnan='" + d_isnan + "'"
4986 $ WC "d_isnanl='" + d_isnanl + "'"
4987 $ WC "d_killpg='undef'"
4988 $ WC "d_lchown='undef'"
4989 $ WC "d_ldbl_dig='define'"
4990 $ WC "d_link='undef'"
4991 $ WC "d_llseek='undef'"
4992 $ WC "d_locconv='" + d_locconv + "'"
4993 $ WC "d_lockf='undef'"
4994 $ WC "d_longdbl='" + d_longdbl + "'"
4995 $ WC "d_longlong='" + d_longlong + "'"
4996 $ WC "d_lseekproto='define'"
4997 $ WC "d_lstat='undef'"
4998 $ WC "d_madvise='undef'"
4999 $ WC "d_mblen='" + d_mblen + "'"
5000 $ WC "d_mbstowcs='" + d_mbstowcs + "'"
5001 $ WC "d_mbtowc='" + d_mbtowc + "'"
5002 $ WC "d_memchr='" + d_memchr + "'"
5003 $ WC "d_memcmp='define'"
5004 $ WC "d_memcpy='define'"
5005 $ WC "d_memmove='define'"
5006 $ WC "d_memset='define'"
5007 $ WC "d_mkdir='define'"
5008 $ WC "d_mkdtemp='" + d_mkdtemp + "'"
5009 $ WC "d_mkfifo='undef'"
5010 $ WC "d_mknod='undef'"
5011 $ WC "d_mkstemp='" + d_mkstemp + "'"
5012 $ WC "d_mkstemps='" + d_mkstemps + "'"
5013 $ WC "d_mktime='" + d_mktime + "'"
5014 $ WC "d_mmap='undef'"
5015 $ WC "d_modfl='" + d_modfl + "'"
5016 $ WC "d_mprotect='undef'"
5017 $ WC "d_msg='undef'"
5018 $ WC "d_msg_ctrunc='undef'"
5019 $ WC "d_msg_dontroute='undef'"
5020 $ WC "d_msg_oob='undef'"
5021 $ WC "d_msg_peek='undef'"
5022 $ WC "d_msg_proxy='undef'"
5023 $ WC "d_msghdr_s='undef'"
5024 $ WC "d_msync='undef'"
5025 $ WC "d_munmap='undef'"
5026 $ WC "d_mymalloc='" + d_mymalloc + "'"
5027 $ WC "d_nice='define'"
5028 $ WC "d_nv_preserves_uv='" + d_nv_preserves_uv + "'"
5029 $ WC "d_nv_preserves_uv_bits='" + d_nv_preserves_uv_bits + "'"
5030 $ WC "d_off64_t='" + d_off64_t + "'"
5031 $ WC "d_old_pthread_create_joinable='" + d_old_pthread_create_joinable + "'"
5032 $ WC "d_oldarchlib='define'"
5033 $ WC "d_oldpthreads='" + d_oldpthreads + "'"
5034 $ WC "d_open3='define'"
5035 $ WC "d_pathconf='" + d_pathconf + "'"
5036 $ WC "d_pause='define'"
5037 $ WC "d_perl_otherlibdirs='undef'"
5038 $ WC "d_phostname='undef'"
5039 $ WC "d_pipe='define'"
5040 $ WC "d_poll='undef'"
5041 $ WC "d_pthread_yield='" + d_pthread_yield + "'"
5042 $ WC "d_pthreads_created_joinable='" + d_pthreads_created_joinable + "'"
5043 $ WC "d_pwage='undef'"
5044 $ WC "d_pwchange='undef'"
5045 $ WC "d_pwclass='undef'"
5046 $ WC "d_pwcomment='define'"
5047 $ WC "d_pwexpire='undef'"
5048 $ WC "d_pwgecos='define'"
5049 $ WC "d_pwpasswd='define'"
5050 $ WC "d_pwquota='undef'"
5051 $ WC "d_qgcvt='undef'"
5052 $ WC "d_quad='" + d_quad + "'"
5053 $ WC "d_readdir='define'"
5054 $ WC "d_readlink='undef'"
5055 $ WC "d_readv='undef'"
5056 $ WC "d_recvmsg='undef'"
5057 $ WC "d_rename='define'"
5058 $ WC "d_rewinddir='define'"
5059 $ WC "d_rmdir='define'"
5060 $ WC "d_safebcpy='undef'"
5061 $ WC "d_safemcpy='define'"
5062 $ WC "d_sanemcmp='define'"
5063 $ WC "d_sbrkproto='undef'"
5064 $ WC "d_sched_yield='" + d_sched_yield + "'"
5065 $ WC "d_scm_rights='undef'"
5066 $ WC "d_seekdir='define'"
5067 $ WC "d_select='" + d_select + "'"
5068 $ WC "d_sem='undef'"
5069 $ WC "d_semctl_semid_ds='undef'"
5070 $ WC "d_semctl_semun='undef'"
5071 $ WC "d_sendmsg='undef'"
5072 $ WC "d_setegid='undef'"
5073 $ WC "d_setenv='" + d_setenv + "'"
5074 $ WC "d_seteuid='undef'"
5075 $ WC "d_setgrent='undef'"
5076 $ WC "d_setgrps='undef'"
5077 $ WC "d_sethent='" + d_sethent + "'"
5078 $ WC "d_setlinebuf='undef'"
5079 $ WC "d_setlocale='" + d_setlocale + "'"
5080 $ WC "d_setnent='" + d_setnent + "'"
5081 $ WC "d_setpent='" + d_setpent + "'"
5082 $ WC "d_setpgid='undef'"
5083 $ WC "d_setpgrp2='undef'"
5084 $ WC "d_setpgrp='undef'"
5085 $ WC "d_setprior='undef'"
5086 $ WC "d_setproctitle='" + d_setproctitle + "'"
5087 $ WC "d_setpwent='define'"
5088 $ WC "d_setregid='undef'"
5089 $ WC "d_setresgid='undef'"
5090 $ WC "d_setresuid='undef'"
5091 $ WC "d_setreuid='undef'"
5092 $ WC "d_setrgid='undef'"
5093 $ WC "d_setruid='undef'"
5094 $ WC "d_setsent='" + d_setsent + "'"
5095 $ WC "d_setsid='undef'"
5096 $ WC "d_setvbuf='" + d_setvbuf + "'"
5097 $ WC "d_sfio='undef'"
5098 $ WC "d_shm='undef'"
5099 $ WC "d_shmatprototype='undef'"
5100 $ WC "d_sigaction='" + d_sigaction + "'"
5101 $ WC "d_sigsetjmp='" + d_sigsetjmp + "'"
5102 $ WC "d_socket='" + d_socket + "'"
5103 $ WC "d_socklen_t='" + d_socklen_t + "'"
5104 $ WC "d_sockpair='undef'"
5105 $ WC "d_socks5_init='undef'"
5106 $ WC "d_sqrtl='define'"
5107 $ WC "d_statblks='undef'"
5108 $ WC "d_statfs_f_flags='undef'"
5109 $ WC "d_statfs_s='undef'"
5110 $ WC "d_statfsflags='undef'"
5111 $ WC "d_stdio_cnt_lval='" + d_stdio_cnt_lval + "'"
5112 $ WC "d_stdio_ptr_lval='" + d_stdio_ptr_lval + "'"
5113 $ WC "d_stdio_ptr_lval_sets_cnt='" + d_stdio_ptr_lval_sets_cnt + "'"
5114 $ WC "d_stdio_ptr_lval_nochange_cnt='" + d_stdio_ptr_lval_nochange_cnt + "'"
5115 $ WC "d_stdio_stream_array='undef'"
5116 $ WC "d_stdiobase='" + d_stdiobase + "'"
5117 $ WC "d_stdstdio='" + d_stdstdio + "'"
5118 $ WC "d_strchr='define'"
5119 $ WC "d_strcoll='" + d_strcoll + "'"
5120 $ WC "d_strctcpy='define'"
5121 $ WC "d_strerrm='strerror((e),vaxc$errno)'"
5122 $ WC "d_strerror='define'"
5123 $ WC "d_strtod='define'"
5124 $ WC "d_strtol='define'"
5125 $ WC "d_strtold='" + d_strtold + "'"
5126 $ WC "d_strtoll='" + d_strtoll + "'"
5127 $ WC "d_strtoq='define'"
5128 $ WC "d_strtoul='define'"
5129 $ WC "d_strtoull='" + d_strtoull + "'"
5130 $ WC "d_strtouq='" + d_strtouq + "'"
5131 $ WC "d_strxfrm='" + d_strxfrm + "'"
5132 $ WC "d_suidsafe='undef'"
5133 $ WC "d_symlink='undef'"
5134 $ WC "d_syscall='undef'"
5135 $ WC "d_sysconf='" + d_sysconf + "'"
5136 $ WC "d_syserrlst='undef'"
5137 $ WC "d_system='define'"
5138 $ WC "d_tcgetpgrp='undef'"
5139 $ WC "d_tcsetpgrp='undef'"
5140 $ WC "d_telldir='define'"
5141 $ WC "d_telldirproto='define'"
5142 $ WC "d_times='define'"
5143 $ WC "d_truncate='" + d_truncate + "'"
5144 $ WC "d_tzname='undef'"
5145 $ WC "d_umask='define'"
5146 $ WC "d_uname='" + d_uname + "'"
5147 $ WC "d_union_semun='undef'"
5148 $ WC "d_unlink_all_versions='undef'"
5149 $ WC "d_ustat='undef'"
5150 $ WC "d_vendorarch='undef'"
5151 $ WC "d_vendorlib='undef'"
5152 $ WC "d_vfork='define'"
5153 $ WC "d_vms_case_sensitive_symbols='" + d_vms_be_case_sensitive + "'" ! VMS
5154 $ WC "d_vms_do_sockets='" + d_vms_do_sockets + "'" ! VMS
5155 $ WC "d_void_closedir='define'"
5156 $ WC "d_volatile='define'"
5157 $ WC "d_vprintf='define'"
5158 $ WC "d_wait4='" + d_wait4 + "'"
5159 $ WC "d_waitpid='define'"
5160 $ WC "d_wcstombs='" + d_wcstombs + "'"
5161 $ WC "d_wctomb='" + d_wctomb + "'"
5162 $ WC "d_writev='undef'"
5163 $ WC "db_hashtype=' '"
5164 $ WC "db_prefixtype=' '"
5165 $ WC "dbgprefix='" + dbgprefix + "'"
5166 $ WC "defvoidused='15'"
5167 $ WC "devtype='" + devtype + "'"
5168 $ WC "direntrytype='struct dirent'"
5169 $ WC "dlext='" + dlext + "'"
5170 $ WC "dlobj='" + dlobj + "'"
5171 $ WC "dlsrc='dl_vms.c'"
5172 $ WC "doublesize='" + doublesize + "'"
5173 $ WC "drand01='" + drand01 + "'"
5174 $ WC "dynamic_ext='" + extensions + "'"
5176 $ WC "ebcdic='undef'"
5177 $ WC "embedmymalloc='" + mymalloc + "'"
5178 $ WC "eunicefix=':'"
5179 $ WC "exe_ext='" + exe_ext + "'"
5180 $ WC "extensions='" + extensions + "'"
5181 $ WC "fflushNULL='define'"
5182 $ WC "fflushall='undef'"
5183 $ WC "fpostype='fpos_t'"
5184 $ WC "freetype='void'"
5185 $ WC "full_ar='" + "'"
5186 $ WC "full_csh='" + " '"
5187 $ WC "full_sed='_NLA0:'"
5188 $ WC "gccversion='" + gccversion + "'"
5189 $ WC "gidformat='lu'"
5192 $ WC "gidtype='" + gidtype + "'"
5193 $ WC "groupstype='Gid_t'"
5195 $ WC "hintfile='" + "'"
5196 $ WC "i16size='" + i16size + "'"
5197 $ WC "i16type='" + i16type + "'"
5198 $ WC "i32size='" + i32size + "'"
5199 $ WC "i32type='" + i32type + "'"
5200 $ WC "i64size='" + i64size + "'"
5201 $ WC "i64type='" + i64type + "'"
5202 $ WC "i8size='" + i8size + "'"
5203 $ WC "i8type='" + i8type + "'"
5204 $ WC "i_arpainet='undef'"
5205 $ WC "i_dbm='undef'"
5206 $ WC "i_dirent='" + i_dirent + "'"
5207 $ WC "i_dlfcn='undef'"
5208 $ WC "i_fcntl='" + i_fcntl + "'"
5209 $ WC "i_float='define'"
5210 $ WC "i_grp='undef'"
5211 $ WC "i_iconv='" + i_iconv +"'"
5212 $ WC "i_ieeefp='undef'"
5213 $ WC "i_inttypes='" + i_inttypes + "'"
5214 $ WC "i_libutil='" + i_libutil + "'"
5215 $ WC "i_limits='define'"
5216 $ WC "i_locale='" + i_locale + "'"
5217 $ WC "i_machcthr='undef'"
5218 $ WC "i_machcthreads='undef'"
5219 $ WC "i_math='define'"
5220 $ WC "i_memory='undef'"
5221 $ WC "i_mntent='undef'"
5222 $ WC "i_ndbm='undef'"
5223 $ WC "i_netdb='" + i_netdb + "'"
5224 $ WC "i_neterrno='define'"
5225 $ WC "i_netinettcp='" + i_netinettcp + "'"
5226 $ WC "i_niin='" + i_niin + "'"
5227 $ WC "i_poll='" + i_poll + "'"
5228 $ WC "i_prot='undef'"
5229 $ WC "i_pthread='define'"
5230 $ WC "i_pwd='undef'"
5231 $ WC "i_rpcsvcdbm='undef'"
5232 $ WC "i_sfio='undef'"
5233 $ WC "i_sgtty='undef'"
5234 $ WC "i_shadow='" + i_shadow + "'"
5235 $ WC "i_socks='" + i_socks + "'"
5236 $ WC "i_stdarg='define'"
5237 $ WC "i_stddef='define'"
5238 $ WC "i_stdlib='define'"
5239 $ WC "i_string='define'"
5240 $ WC "i_sunmath='undef'"
5241 $ WC "i_sysaccess='" + i_sysaccess + "'"
5242 $ WC "i_sysdir='undef'"
5243 $ WC "i_sysfile='" + i_sysfile + "'"
5244 $ WC "i_sysioctl='undef'"
5245 $ WC "i_syslog='" + i_syslog + "'"
5246 $ WC "i_sysmman='undef'"
5247 $ WC "i_sysmode='" + i_sysmode + "'"
5248 $ WC "i_sysmount='undef'"
5249 $ WC "i_sysndir='undef'"
5250 $ WC "i_sysparam='undef'"
5251 $ WC "i_sysresrc='undef'"
5252 $ WC "i_syssecrt='" + i_syssecrt + "'"
5253 $ WC "i_sysselct='undef'"
5254 $ WC "i_sysstat='define'"
5255 $ WC "i_sysstatfs='undef'"
5256 $ WC "i_sysstatvfs='undef'"
5257 $ WC "i_systime='undef'"
5258 $ WC "i_systimek='undef'"
5259 $ WC "i_systimes='undef'"
5260 $ WC "i_systypes='define'"
5261 $ WC "i_sysuio='" + i_sysuio + "'"
5262 $ WC "i_sysun='undef'"
5263 $ WC "i_sysutsname='" + i_sysutsname + "'"
5264 $ WC "i_sysvfs='undef'"
5265 $ WC "i_syswait='undef'"
5266 $ WC "i_termio='undef'"
5267 $ WC "i_termios='undef'"
5268 $ WC "i_time='define'"
5269 $ WC "i_unistd='" + i_unistd + "'"
5270 $ WC "i_ustat='undef'"
5271 $ WC "i_utime='undef'"
5272 $ WC "i_values='undef'"
5273 $ WC "i_varargs='undef'"
5274 $ WC "i_vfork='undef'"
5275 $ WC "inc_version_list='0'"
5276 $ WC "inc_version_list_init='0'"
5277 $ WC "installarchlib='" + installarchlib + "'"
5278 $ WC "installbin='" + installbin + "'"
5279 $ WC "installman1dir='" + installman1dir + "'"
5280 $ WC "installman3dir='" + installman3dir + "'"
5281 $ WC "installprivlib='" + installprivlib + "'"
5282 $ WC "installscript='" + installscript + "'"
5283 $ WC "installsitearch='" + installsitearch + "'"
5284 $ WC "installsitelib='" + installsitelib + "'"
5285 $ WC "installusrbinperl='undef'"
5286 $ WC "intsize='" + intsize + "'"
5287 $ WC "ivdformat='" + ivdformat + "'"
5288 $ WC "ivsize='" + ivsize + "'"
5289 $ WC "ivtype='" + ivtype + "'"
5290 $ WC "known_extensions='" + known_extensions + "'"
5291 $ WC "ld='" + ld + "'"
5292 $ WC "lddlflags='/Share'"
5293 $ WC "ldflags='/NoTrace/NoMap'"
5294 $ WC "lib_ext='" + lib_ext + "'"
5295 $ WC "libc='" + libc + "'"
5296 $ WC "libpth='/sys$share /sys$library'"
5297 $ WC "libs='" + libs + "'"
5298 $ WC "longdblsize='" + longdblsize + "'"
5299 $ WC "longlongsize='" + longlongsize + "'"
5300 $ WC "longsize='" + longsize + "'"
5301 $ WC "lseeksize='4'"
5302 $ WC "lseektype='int'"
5304 $ WC "make='" + make + "'"
5305 $ WC "malloctype='void *'"
5306 $ WC "man1ext='rno'"
5307 $ WC "man3ext='rno'"
5308 $ WC "mmaptype=' " + "'"
5309 $ WC "modetype='unsigned int'"
5310 $ WC "multiarch='undef'"
5311 $ WC "mydomain='" + mydomain + "'"
5312 $ WC "myhostname='" + myhostname + "'"
5313 $ WC "myuname='" + myuname + "'"
5314 $ WC "need_va_copy='undef'"
5315 $ WC "netdb_hlen_type='" + netdb_hlen_type + "'"
5316 $ WC "netdb_host_type='" + netdb_host_type + "'"
5317 $ WC "netdb_name_type='" + netdb_name_type + "'"
5318 $ WC "netdb_net_type='" + netdb_net_type + "'"
5319 $ WC "nveformat='" + nveformat + "'"
5320 $ WC "nvfformat='" + nvfformat + "'"
5321 $ WC "nvgformat='" + nvgformat + "'"
5322 $ WC "nvsize='" + nvsize + "'"
5323 $ WC "nvtype='" + nvtype + "'"
5324 $ WC "o_nonblock=' '"
5325 $ WC "obj_ext='" + obj_ext + "'"
5326 $ WC "old_pthread_create_joinable='" + old_pthread_create_joinable + "'"
5327 $ WC "oldarchlib='" + oldarchlib + "'"
5328 $ WC "oldarchlibexp='" + oldarchlibexp + "'"
5329 $ WC "optimize='" + optimize + "'"
5330 $ WC "osname='" + osname + "'"
5331 $ WC "osvers='" + osvers + "'"
5332 $ WC "otherlibdirs='" + "'"
5333 $ WC "package='" + package + "'"
5334 $ WC "pager='" + pager + "'"
5335 $ WC "patchlevel='" + patchlevel + "'"
5337 $ WC "perl_root='" + perl_root + "'" ! VMS specific $trnlnm()
5338 $ WC "perladmin='" + perladmin + "'"
5339 $ WC "perllibs='" + perllibs + "'"
5340 $ WC "pgflquota='" + pgflquota + "'"
5341 $ WC "pidtype='" + pidtype + "'"
5342 $ WC "pm_apiversion='" + version + "'"
5343 $! WC "prefix='" + vms_prefix + "'"
5344 $ WC "prefix='" + prefix + "'"
5345 $ WC "privlib='" + privlib + "'"
5346 $ WC "privlibexp='" + privlibexp + "'"
5347 $ WC "prototype='define'"
5348 $ WC "ptrsize='" + ptrsize + "'"
5349 $ WC "quadkind='" + quadkind + "'"
5350 $ WC "quadtype='" + quadtype + "'"
5351 $ WC "randbits='31'"
5352 $ WC "randseedtype='" + randseedtype + "'"
5353 $ WC "ranlib='" + "'"
5354 $ WC "rd_nodata=' '"
5355 $ WC "revision='" + revision + "'"
5356 $ WC "sPRId64='" + sPRId64 + "'"
5357 $ WC "sPRIEldbl='" + sPRIEUldbl + "'"
5358 $ WC "sPRIFldbl='" + sPRIFUldbl + "'"
5359 $ WC "sPRIGldbl='" + sPRIGUldbl + "'"
5360 $ WC "sPRIX64='" + sPRIXU64 + "'"
5361 $ WC "sPRIeldbl='" + sPRIeldbl + "'"
5362 $ WC "sPRIfldbl='" + sPRIfldbl + "'"
5363 $ WC "sPRIgldbl='" + sPRIgldbl + "'"
5364 $! WC "sPRIi64='" + sPRIi64 + "'"
5365 $ WC "sPRIo64='" + sPRIo64 + "'"
5366 $ WC "sPRIu64='" + sPRIu64 + "'"
5367 $ WC "sPRIx64='" + sPRIx64 + "'"
5368 $ WC "sSCNfldbl='" + sSCNfldbl + "'"
5369 $ WC "sched_yield='" + sched_yield + "'"
5370 $ WC "seedfunc='" + seedfunc + "'"
5371 $ WC "selectminbits='32'"
5372 $ WC "selecttype='" + selecttype + "'"
5374 $ WC "shmattype='" + "'"
5375 $ WC "shortsize='" + shortsize + "'"
5376 $ WC "shrplib='define'"
5377 $ WC "sig_name='" + sig_name + "'"
5378 $ tmp = "sig_name_init='" + sig_name_init + "'"
5381 $ WC "sig_num='" + sig_num + "'"
5382 $ WC "sig_num_init='" + sig_num_init + "'"
5383 $ WC "signal_t='" + signal_t + "'"
5384 $ WC "sitearch='" + sitearch + "'"
5385 $ WC "sitearchexp='" + sitearchexp + "'"
5386 $ WC "sitelib='" + sitelib + "'"
5387 $ WC "sitelib_stem='" + sitelib_stem + "'"
5388 $ WC "sitelibexp='" + sitelibexp + "'"
5389 $ WC "sizesize='" + sizesize + "'"
5390 $ WC "sizetype='size_t'"
5391 $ WC "so='" + so + "'"
5392 $ WC "socksizetype='" + socksizetype + "'"
5393 $ WC "spitshell='write sys$output '"
5394 $ WC "src='" + src + "'"
5395 $ WC "ssizetype='int'"
5396 $ WC "startperl=" + startperl ! This one's special--no enclosing single quotes
5397 $ WC "static_ext='" + static_ext + "'"
5398 $ WC "stdchar='" + stdchar + "'"
5399 $ WC "stdio_base='((*fp)->_base)'"
5400 $ WC "stdio_bufsiz='((*fp)->_cnt + (*fp)->_ptr - (*fp)->_base)'"
5401 $ WC "stdio_cnt='((*fp)->_cnt)'"
5402 $ WC "stdio_ptr='((*fp)->_ptr)'"
5403 $ WC "stdio_stream_array=' " + "'"
5404 $ WC "subversion='" + subversion + "'"
5405 $ WC "timetype='" + timetype + "'"
5406 $ WC "u16size='" + u16size + "'"
5407 $ WC "u16type='" + u16type + "'"
5408 $ WC "u32size='" + u32size + "'"
5409 $ WC "u32type='" + u32type + "'"
5410 $ WC "u64size='" + u64size + "'"
5411 $ WC "u64type='" + u64type + "'"
5412 $ WC "u8size='" + u8size + "'"
5413 $ WC "u8type='" + u8type + "'"
5414 $ WC "uidformat='lu'"
5417 $ WC "uidtype='" + uidtype + "'"
5418 $ WC "uquadtype='" + uquadtype + "'"
5419 $ WC "use5005threads='" + use5005threads + "'"
5420 $ WC "use64bitall='" + use64bitall + "'"
5421 $ WC "use64bitint='" + use64bitint + "'"
5422 $ WC "usedebugging_perl='" + use_debugging_perl + "'"
5423 $ WC "usedl='" + usedl + "'"
5424 $ WC "useithreads='" + useithreads + "'"
5425 $ WC "uselargefiles='" + uselargefiles + "'"
5426 $ WC "uselongdouble='" + uselongdouble + "'"
5427 $ WC "usemorebits='" + usemorebits + "'"
5428 $ WC "usemultiplicity='" + usemultiplicity + "'"
5429 $ WC "usemymalloc='" + usemymalloc + "'"
5430 $ WC "useperlio='" + useperlio + "'"
5431 $ WC "useposix='false'"
5432 $ WC "usesocks='undef'"
5433 $ WC "usethreads='" + usethreads + "'"
5434 $ WC "usevfork='true'"
5435 $ WC "uvoformat='" + uvoformat + "'"
5436 $ WC "uvsize='" + uvsize + "'"
5437 $ WC "uvtype='" + uvtype + "'"
5438 $ WC "uvuformat='" + uvuformat + "'"
5439 $ WC "uvxformat='" + uvxformat + "'"
5440 $ WC "vendorarchexp='" + "'"
5441 $ WC "vendorlib_stem='" + "'"
5442 $ WC "vendorlibexp='" + "'"
5443 $ WC "version='" + version + "'"
5444 $ WC "vms_cc_type='" + vms_cc_type + "'" ! VMS specific
5445 $ WC "vms_prefix='" + vms_prefix + "'" ! VMS specific
5446 $ WC "vms_ver='" + vms_ver + "'" ! VMS specific
5447 $ WC "voidflags='15'"
5448 $ WC "xs_apiversion='" + version + "'"
5449 $ WC "CONFIGDOTSH='true'"
5451 $! ##END WRITE NEW CONSTANTS HERE##
5455 $! Okay, we've gotten here. Build munchconfig.exe
5456 $ COPY/NOLOG [-.vms]munchconfig.c []
5457 $ COPY/NOLOG [-.vms]'Makefile_SH' []
5458 $ 'Perl_CC' munchconfig.c
5461 $ OPEN/WRITE CONFIG []munchconfig.opt
5464 $ WRITE CONFIG "Gnu_CC:[000000]gcclib.olb/library"
5466 $ WRITE CONFIG "Sys$Share:VAXCRTL/Share"
5468 $ 'ld' munchconfig.obj,munchconfig.opt/opt
5469 $ DELETE/NOLOG/NOCONFIRM munchconfig.opt;
5471 $ 'ld' munchconfig.obj
5473 $ IF F$SEARCH("munchconfig.obj") .NES. "" THEN DELETE/NOLOG/NOCONFIRM munchconfig.obj;
5474 $ IF F$SEARCH("munchconfig.c") .NES. "" THEN DELETE/NOLOG/NOCONFIRM munchconfig.c;
5477 $ CALL Cxx_demangler_cleanup
5480 $ IF alldone .EQS. ""
5485 If you'd like to make any changes to the config.sh file before I begin
5486 to configure things, answer yes to the following question.
5490 $ rp="Do you wish to edit ''basename_config_sh'? [''dflt'] "
5492 $ IF ans .EQS. "" then ans = dflt
5496 $ echo4 "Be sure to type LOGOUT after you have edited the file,"
5497 $ echo4 "then this procedure will resume."
5499 $ default = F$ENVIRONMENT("DEFAULT")
5500 $ DIRECTORY 'config_sh'
5503 $ SET DEFAULT 'default'
5508 $ echo4 "Adding ''osname' specific preprocessor commands."
5510 $ ! we need an fdl file
5511 $ CREATE [-]CONFIG.FDL
5516 $ CREATE /FDL=[-]CONFIG.FDL [-]CONFIG.LOCAL
5517 $ ! First spit out the header info with the local defines (to get
5518 $ ! around the 255 character command line limit)
5519 $ OPEN/APPEND CONFIG [-]config.local
5520 $ IF use_debugging_perl THEN WC "#define DEBUGGING"
5521 $ IF use_two_pot_malloc THEN WC "#define TWO_POT_OPTIMIZE"
5522 $ IF mymalloc THEN WC "#define EMBEDMYMALLOC"
5523 $ IF use_pack_malloc THEN WC "#define PACK_MALLOC"
5524 $ IF use_debugmalloc THEN WC "#define DEBUGGING_MSTATS"
5525 $ IF Using_Gnu_C THEN WC "#define GNUC_ATTRIBUTE_CHECK"
5526 $ IF (Has_Dec_C_Sockets)
5528 $ WC "#define VMS_DO_SOCKETS"
5529 $ WC "#define DECCRTL_SOCKETS"
5531 $ IF Has_Socketshr THEN WC "#define VMS_DO_SOCKETS"
5533 $! This is VMS-specific for now
5534 $ WC "#''d_setenv' HAS_SETENV"
5535 $ IF d_secintgenv THEN WC "#define SECURE_INTERNAL_GETENV"
5536 $ IF d_alwdeftype THEN WC "#define ALWAYS_DEFTYPES"
5537 $ IF use64bitint .OR. use64bitint .EQS. "define"
5539 $ WC "#define USE_64_BIT_INT"
5540 $ WC "#define USE_LONG_DOUBLE"
5542 $ IF use64bitall .OR. use64bitall .EQS. "define" THEN -
5543 WC "#define USE_64_BIT_ALL"
5544 $ IF be_case_sensitive THEN WC "#define VMS_WE_ARE_CASE_SENSITIVE"
5545 $ IF d_herrno .EQS. "undef" THEN WC "#define NEED_AN_H_ERRNO"
5546 $ WC "#define HAS_ENVGETENV"
5547 $ WC "#define PERL_EXTERNAL_GLOB"
5550 $ echo4 "Doing variable substitutions on .SH files..."
5551 $ echo4 "Extracting config.h (with variable substitutions)"
5553 $! Now build the normal config.h
5554 $ DEFINE/USER_MODE sys$output [-]config.main
5555 $ mcr []munchconfig 'config_sh' [-]config_h.sh
5556 $ ! Concatenate them together
5557 $ copy [-]config.local,[-]config.main [-]config.h
5559 $ DELETE/NOLOG [-]CONFIG.MAIN;*
5560 $ DELETE/NOLOG [-]CONFIG.LOCAL;*
5561 $ DELETE/NOLOG [-]CONFIG.FDL;*
5565 $ DECC_REPLACE = "DECC=decc=1"
5567 $ DECC_REPLACE = "DECC="
5571 $ DECCXX_REPLACE = "DECCXX=DECCXX=1"
5573 $ DECCXX_REPLACE = "DECCXX="
5577 $ GNUC_REPLACE = "GNUC=gnuc=1"
5579 $ GNUC_REPLACE = "GNUC="
5581 $ IF Has_Dec_C_Sockets
5583 $ SOCKET_REPLACE = "SOCKET=DECC_SOCKETS=1"
5587 $ SOCKET_REPLACE = "SOCKET=SOCKETSHR_SOCKETS=1"
5589 $ SOCKET_REPLACE = "SOCKET="
5594 $ IF (vms_ver .LES. "6.2")
5596 $ THREAD_REPLACE = "THREAD=OLDTHREADED=1"
5598 $ THREAD_REPLACE = "THREAD=THREADED=1"
5601 $ THREAD_REPLACE = "THREAD="
5605 $ MALLOC_REPLACE = "MALLOC=MALLOC=1"
5607 $ MALLOC_REPLACE = "MALLOC="
5609 $ echo4 "Extracting ''defmakefile' (with variable substitutions)"
5610 $ DEFINE/USER_MODE sys$output 'UUmakefile'
5611 $ mcr []munchconfig 'config_sh' 'Makefile_SH' "''DECC_REPLACE'" -
5612 "''DECCXX_REPLACE'" "''ARCH_TYPE'" "''GNUC_REPLACE'" "''SOCKET_REPLACE'" -
5613 "''THREAD_REPLACE'" "''C_Compiler_Replace'" "''MALLOC_REPLACE'" -
5614 "''Thread_Live_Dangerously'" "PV=''version'" "FLAGS=FLAGS=''extra_flags'"
5615 $! Clean up after ourselves
5616 $ DELETE/NOLOG/NOCONFIRM []munchconfig.exe;
5617 $ echo4 "Extracting make_ext.com (without variable substitutions)"
5618 $ Create Sys$Disk:[-]make_ext.com
5619 $ Deck/Dollar="$EndOfTpl$"
5621 $! NOTE: This file is extracted as part of the VMS configuration process.
5622 $! Any changes made to it directly will be lost. If you need to make any
5623 $! changes, please edit the template in Configure.Com instead.
5624 $ def = F$Environment("Default")
5625 $ exts1 = F$Edit(p1,"Compress")
5626 $ p2 = F$Edit(p2,"Upcase,Compress,Trim")
5627 $ If F$Locate("MCR ",p2).eq.0 Then p2 = F$Extract(3,255,p2)
5628 $ miniperl = "$" + F$Search(F$Parse(p2,".Exe"))
5630 $ if f$type('p3') .nes. "" then makeutil = 'p3'
5631 $ targ = F$Edit(p4,"Lowercase")
5634 $ ext = F$Element(i," ",p1)
5635 $ If ext .eqs. " " Then Goto done
5636 $ Define/User_mode Perl_Env_Tables CLISYM_LOCAL
5639 ($extdir = $ENV{'ext'}) =~ s/::/./g;
5641 if ($extdir =~ /^vms/i) { $extdir =~ s/vms/.vms.ext/i; }
5642 else { $extdir = ".ext.$extdir"; }
5643 ($ENV{'extdir'} = "[$extdir]");
5644 ($ENV{'up'} = ('-') x ($extdir =~ tr/././));
5646 $ Set Default &extdir
5648 $ If F$Locate("clean",targ) .eqs. F$Length(targ)
5650 $ Write Sys$Output ""
5651 $ Write Sys$Output " Making ''ext' (dynamic)"
5652 $ On Error Then Goto done
5653 $ If F$Search("Descrip.MMS") .eqs. ""
5657 $ If F$CvTime(F$File("Descrip.MMS","rdt")) .lts. -
5658 F$CvTime(F$File("Makefile.PL","rdt")) Then redesc = 1
5661 $ Write Sys$Output "''targ'ing ''ext' . . ."
5662 $ On Error Then Continue
5665 miniperl "-I[''up'.lib]" Makefile.PL "INST_LIB=[''up'.lib]" "INST_ARCHLIB=[''up'.lib]"
5678 $! Warn of dangerous symbols or logical names
5680 $Bad_environment: SUBROUTINE
5682 $ IF p2 .eqs. "SYMBOL"
5684 $ IF f$type('p1') .nes. "" THEN Bad_env := SYMBOL
5686 $ IF f$trnlnm(p1) .nes. "" THEN Bad_env := LOGICAL
5688 $ IF Bad_env .eqs. "SYMBOL" .or. Bad_env .eqs. "LOGICAL"
5690 $ IF f$search("config.msg") .nes. ""
5692 $ OPEN/APPEND CONFIG config.msg
5694 $ OPEN/WRITE CONFIG config.msg
5696 $ IF Bad_env .eqs. "SYMBOL"
5699 $ WRITE CONFIG "Symbol name ''p1' found in environment as " + &p1
5700 $ WRITE CONFIG " delete before building ''package' via:"
5701 $ WRITE CONFIG " $ DELETE/SYMBOL/GLOBAL ''p1'"
5702 $ IF f$locate("""",&p1) .ge. f$length(&p1)
5704 $ WRITE CONFIG " after building, testing, and installing ''package'"
5705 $ WRITE CONFIG " restore the symbol with:"
5706 $ WRITE CONFIG " $ ''p1' == """ + &p1 + """"
5709 $ IF Bad_env .eqs. "LOGICAL"
5712 $ WRITE CONFIG "Logical name ''p1' found in environment as " + f$trnlnm(p1)
5713 $ WRITE CONFIG " deassign before building ''package'"
5719 $ ENDSUBROUTINE ! Bad_environment
5721 $ echo4 "Checking for dangerous pre-existing global symbols and logical names."
5722 $ CALL Bad_environment "TMP"
5723 $ CALL Bad_environment "LIB"
5724 $ CALL Bad_environment "T"
5725 $ CALL Bad_environment "FOO"
5726 $ CALL Bad_environment "EXT"
5727 $ CALL Bad_environment "TEST" "SYMBOL"
5728 $ IF f$search("config.msg") .eqs. "" THEN echo "OK."
5730 $! %Config-I-VMS, write perl_setup.com here
5732 $ IF (.NOT.perl_symbol)
5734 $ file_2_find = "[-]''packageup'.cld"
5736 $ echo4 "The perl.cld file is now being written..."
5737 $ OPEN/WRITE CONFIG 'file_2_find'
5739 $ IF ((sharedperl) .AND. (F$GETSYI("HW_MODEL") .GE. 1024)) THEN ext := .AXE
5740 $ IF (use_vmsdebug_perl)
5742 $ WRITE CONFIG "define verb dbgperl"
5743 $ WRITE CONFIG F$FAO("!_!AS","image ''vms_prefix':[000000]dbgperl''ext'")
5744 $ WRITE CONFIG F$FAO("!_!AS","cliflags (foreign)")
5746 $ WRITE CONFIG "define verb perl"
5747 $ WRITE CONFIG F$FAO("!_!AS","image ''vms_prefix':[000000]ndbgPerl''ext'")
5748 $ WRITE CONFIG F$FAO("!_!AS","cliflags (foreign)")
5750 $ WRITE CONFIG "define verb perl"
5751 $ WRITE CONFIG F$FAO("!_!AS","image ''vms_prefix':[000000]perl''ext'")
5752 $ WRITE CONFIG F$FAO("!_!AS","cliflags (foreign)")
5755 $ ENDIF ! (.NOT.perl_symbol)
5757 $ echo4 "The perl_setup.com file is now being written..."
5758 $ file_2_find = "[-]perl_setup.com"
5759 $ OPEN/WRITE CONFIG 'file_2_find'
5761 $ WRITE CONFIG "$! Perl_Setup.com ''cf_time'"
5762 $ IF cf_email.NES.perladmin
5764 $ WRITE CONFIG "$! perl configured by ''cf_email'"
5766 $ WRITE CONFIG "$! This perl configured & administered by ''perladmin'"
5769 $ prefix = prefix - "000000."
5770 $ IF F$LOCATE(".]",prefix) .EQ. F$LENGTH(prefix) THEN -
5771 prefix = prefix - "]" + ".]"
5772 $ WRITE CONFIG "$ define/translation=concealed ''vms_prefix' ''prefix'"
5773 $ WRITE CONFIG "$ ext = "".exe"""
5776 $ write config "$ if f$getsyi(""HW_MODEL"") .ge. 1024 then ext = "".AXE"""
5780 $ IF (use_vmsdebug_perl)
5782 $ WRITE CONFIG "$ dbgperl :== $''vms_prefix':[000000]dbgPerl'ext'"
5783 $ WRITE CONFIG "$ perl :== $''vms_prefix':[000000]ndbgPerl'ext'"
5784 $ WRITE CONFIG "$ define dbgPerlShr ''vms_prefix':[000000]dbgPerlShr'ext'"
5786 $ WRITE CONFIG "$ perl :== $''vms_prefix':[000000]Perl'ext'"
5787 $ WRITE CONFIG "$ define PerlShr ''vms_prefix':[000000]PerlShr'ext'"
5789 $ ELSE ! .NOT.perl_symbol
5790 $ IF (use_vmsdebug_perl)
5792 $ WRITE CONFIG "$ define dbgPerlShr ''vms_prefix':[000000]dbgPerlShr'ext'"
5794 $ WRITE CONFIG "$ define PerlShr ''vms_prefix':[000000]PerlShr'ext'"
5796 $ IF perl_verb .EQS. "PROCESS"
5798 $ WRITE CONFIG "$ set command ''vms_prefix':[000000]''packageup'.CLD"
5800 $ ENDIF ! perl_symbol
5801 $ WRITE CONFIG "$ define/nolog pod2text ''vms_prefix':[lib.pod]pod2text.com"
5802 $ WRITE CONFIG "$ define/nolog pod2html ''vms_prefix':[lib.pod]pod2html.com"
5803 $ WRITE CONFIG "$ define/nolog pod2man ''vms_prefix':[lib.pod]pod2man.com"
5807 $ WRITE CONFIG "$ define SYS$TIMEZONE_DIFFERENTIAL ''tzd'"
5808 $ ELSE !leave in but commented out (in case setting was from perl :-)
5809 $ WRITE CONFIG "$! define SYS$TIMEZONE_DIFFERENTIAL ''tzd'"
5812 $ WRITE CONFIG "$! Symbols for commonly used scripts:"
5816 $ WRITE CONFIG "$ Perldoc == ""'"+"'Perl' ''vms_prefix':[lib.pod]Perldoc.com -t"""
5817 $ WRITE CONFIG "$ pod2text == ""'"+"'Perl' pod2text"""
5818 $ WRITE CONFIG "$ pod2html == ""'"+"'Perl' pod2html"""
5819 $ WRITE CONFIG "$ pod2latex == ""'"+"'Perl' ''vms_prefix':[lib.pod]pod2latex.com"""
5820 $ WRITE CONFIG "$!pod2man == ""'"+"'Perl' pod2man"""
5821 $ WRITE CONFIG "$!Perlbug == ""'"+"'Perl' ''vms_prefix':[lib]Perlbug.com"""
5822 $ WRITE CONFIG "$ c2ph == ""'"+"'Perl' ''vms_prefix':[utils]c2ph.com"""
5823 $ IF F$LOCATE("Devel::DProf",extensions) .LT. F$LENGTH(extensions)
5825 $ WRITE CONFIG "$ dprofpp == ""'"+"'Perl' ''vms_prefix':[utils]dprofpp.com"""
5827 $ WRITE CONFIG "$ h2ph == ""'"+"'Perl' ''vms_prefix':[utils]h2ph.com"""
5828 $ WRITE CONFIG "$ h2xs == ""'"+"'Perl' ''vms_prefix':[utils]h2xs.com"""
5829 $ WRITE CONFIG "$!perlcc == ""'"+"'Perl' ''vms_prefix':[utils]perlcc.com"""
5830 $ WRITE CONFIG "$ splain == ""'"+"'Perl' ''vms_prefix':[utils]splain.com"""
5832 $ WRITE CONFIG "$ Perldoc == ""Perl ''vms_prefix':[lib.pod]Perldoc.com -t"""
5833 $ WRITE CONFIG "$ pod2text == ""Perl pod2text"""
5834 $ WRITE CONFIG "$ pod2html == ""Perl pod2html"""
5835 $ WRITE CONFIG "$ pod2latex == ""Perl ''vms_prefix':[lib.pod]pod2latex.com"""
5836 $ WRITE CONFIG "$!pod2man == ""Perl pod2man"""
5837 $ WRITE CONFIG "$!Perlbug == ""Perl ''vms_prefix':[lib]Perlbug.com"""
5838 $ WRITE CONFIG "$ c2ph == ""Perl ''vms_prefix':[utils]c2ph.com"""
5839 $ IF F$LOCATE("Devel::DProf",extensions) .LT. F$LENGTH(extensions)
5841 $ WRITE CONFIG "$ dprofpp == ""Perl ''vms_prefix':[utils]dprofpp.com"""
5843 $ WRITE CONFIG "$ h2ph == ""Perl ''vms_prefix':[utils]h2ph.com"""
5844 $ WRITE CONFIG "$ h2xs == ""Perl ''vms_prefix':[utils]h2xs.com"""
5845 $ WRITE CONFIG "$!perlcc == ""Perl ''vms_prefix':[utils]perlcc.com"""
5846 $ WRITE CONFIG "$ splain == ""Perl ''vms_prefix':[utils]splain.com"""
5851 $ echo "The file can be found at:"
5852 $ echo4 " ''F$SEARCH(file_2_find)'"
5853 $ echo "Add that file (or an @ call to it) to your [SY]LOGIN.COM"
5854 $ echo "when you are satisfied with a successful compilation,"
5855 $ echo "testing, and installation of your perl."
5857 $ IF ((.NOT.perl_symbol) .AND. (perl_verb .EQS. "DCLTABLES"))
5859 $ file_2_find = "[-]''packageup'_install.com"
5860 $ OPEN/WRITE CONFIG 'file_2_find'
5861 $ WRITE CONFIG "$ set command perl /table=sys$common:[syslib]dcltables.exe -"
5862 $ WRITE CONFIG " /output=sys$common:[syslib]dcltables.exe"
5863 $ WRITE CONFIG "$ install replace sys$common:[syslib]dcltables.exe"
5866 $ echo4 "In order to install the ''packageup' verb into DCLTABLES run:"
5867 $ echo4 " @ ''F$SEARCH(file_2_find)'"
5868 $ echo4 "after a successful build, test, and install. Do so with CMKRNL privilege."
5872 $!figure out where we "are" by parsing 'vms_default_directory_name'
5874 $ set_def_command = ""
5875 $ dflt = F$ENVIRONMENT("DEFAULT") - ".UU]"
5876 $ tmp = vms_default_directory_name - dflt - "]"
5878 $ IF tmp .EQS. "" THEN GOTO Beyond_set_def_loop
5880 $ tmp1 = F$ELEMENT(i,".",tmp)
5881 $ IF tmp1 .EQS. "." THEN GOTO Beyond_set_def_loop
5883 $ THEN set_def_command = "set default [-"
5884 $ ELSE set_def_command = set_def_command + "-"
5888 $Beyond_set_def_loop:
5889 $ IF set_def_command.NES.""
5891 $ set_def_command = set_def_command - "-" + "]"
5893 $ echo4 "In order to build ''package' you must now issue the commands:"
5895 $ echo4 " ''set_def_command'"
5898 $ echo4 "In order to build ''package' you must now issue the command:"
5901 $ echo4 " ''make'''makefile'", macros
5904 $ IF ( F$SEARCH("config.msg").NES."" )
5906 $ echo "Hmm. I also noted the following information while running:"
5909 $ SET PROTECTION=(SYSTEM:RWED,OWNER:RWED) config.msg
5910 $ DELETE/NOLOG/NOCONFIRM config.msg;
5916 $ DEASSIGN SYS$OUTPUT
5917 $! DEASSIGN SYS$ERROR
5919 $ IF F$GETJPI("","FILCNT").NE.vms_filcnt THEN CLOSE CONFIG
5920 $ IF F$GETJPI("","FILCNT").NE.vms_filcnt
5921 $ THEN WRITE SYS$ERROR "%Config-W-VMS, WARNING: There is a file still open"
5923 $ dflt = F$ENVIRONMENT("DEFAULT")
5924 $ IF F$LOCATE("UU]",dflt).EQS.(F$LENGTH(dflt)-3)
5926 $ IF ( F$SEARCH("[]*.*").NES."" ) THEN DELETE/NOLOG/NOCONFIRM []*.*;*
5928 $ SET PROTECTION=(SYSTEM:RWED,OWNER:RWED) UU.DIR
5929 $ DELETE/NOLOG/NOCONFIRM UU.DIR;
5931 $ SET DEFAULT 'vms_default_directory_name' !be kind rewind
5934 $!: End of Configure