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 $ vms_filcnt = F$GETJPI ("","FILCNT")
63 $!: compute my invocation name
64 $ me = F$ENVIRONMENT("PROCEDURE")
66 $! Many null statements (begin with colon ':') in the Bourne shell version of
67 $! this script serve as comments/placeholders. I have retained some of the ones
68 $! that will help you compare this .COM file to the sh version - as well as
69 $! leave placeholders for future improvements to this .COM file.
70 $! sfn = VMS "skipped for now"
72 $!: Proper PATH separator !sfn
73 $!: Proper PATH setting !sfn
74 $!: Sanity checks !sfn "Say '@''$me''"
75 $!: On HP-UX, large Configure scripts may exercise a bug in /bin/sh !sfn
76 $!: Configure runs within the UU subdirectory !->after find MANIFEST
77 $! <big long list of default values (mostly null)>
78 $!: We must find out about Eunice early !(?)
79 $!: list of known cpp symbols, sorted alphabetically !sfn
81 $!: default library list !sfn
82 $! <no hints files in use (yet?)>
83 $!: Extra object files, if any, needed on this platform. !sfn
84 $!: Possible local include directories to search. !sfn
85 $!: Set locincpth to "" in a hint file to defeat local include searches. !sfn
86 $!locincpth="/usr/local/include /opt/local/include /usr/gnu/include" !sfn
87 $!locincpth="$locincpth /opt/gnu/include /usr/GNU/include /opt/GNU/include"
88 $!: no include file wanted by default !sfn
90 $!: Possible local library directories to search. !sfn
91 $!loclibpth="/usr/local/lib /opt/local/lib /usr/gnu/lib" !sfn
92 $!loclibpth="$loclibpth /opt/gnu/lib /usr/GNU/lib /opt/GNU/lib" !sfn
93 $!: general looking path for locating libraries !sfn
94 $!glibpth="/lib/pa1.1 /usr/shlib /usr/lib/large /lib /usr/lib" !sfn
95 $!glibpth="$glibpth $xlibpth /lib/large /usr/lib/small /lib/small" !sfn
96 $!glibpth="$glibpth /usr/ccs/lib /usr/ucblib /usr/shlib" !sfn
97 $!: Private path used by Configure to find libraries. Its value !sfn
98 $!: is prepended to libpth. This variable takes care of special !sfn
99 $!: machines, like the mips. Usually, it should be empty. !sfn
101 $!: full support for void wanted by default !sfn
102 $!defvoidused=15 !sfn
103 $!: List of libraries we want. !sfn
104 $!libswanted='net socket inet nsl nm ndbm gdbm dbm db malloc dl' !sfn
105 $!libswanted="$libswanted dld ld sun m c cposix posix ndir dir crypt" !sfn
106 $!libswanted="$libswanted ucb bsd BSD PW x" !sfn
107 $!: We probably want to search /usr/shlib before most other libraries. !sfn
108 $!: This is only used by the lib/ExtUtils/MakeMaker.pm routine extliblist. !sfn
109 $!glibpth=`echo " $glibpth " | sed -e 's! /usr/shlib ! !'` !sfn
110 $!glibpth="/usr/shlib $glibpth" !sfn
111 $!: Do not use vfork unless overridden by a hint file. !sfn
112 $!usevfork=false !sfn
113 $!: script used to extract .SH files with variable substitutions !sfn
114 $!: produce awk script to parse command line options !sfn
115 $!sfn (assume no sed awk) see below
116 $!: process the command line options
118 $!: set up default values
122 $ IF F$TYPE(config_sh) .EQS. "" THEN config_sh=""
135 $ use_5005_threads = "N"
141 $ THEN !one or more switches was thrown
148 $ config_args = config_args + F$FAO(" !AS",P'i')
151 $ IF (i.LT.9) THEN GOTO Param_loop !DCL allows P1..P8
155 $ IF (F$EXTRACT(0,1,P'i') .EQS. "-") THEN P'i' = P'i' - "-"
156 $ IF (F$EXTRACT(0,1,P'i') .EQS. "/") THEN P'i' = P'i' - "/"
157 $Remove_quotation_mark:
159 $ IF F$LOCATE("""",P'i') .LT. F$LENGTH(P'i') THEN GOTO Remove_quotation_mark
160 $ gotopt = "f" !"alse"
161 $ gotshortopt = "f" !"alse"
162 $ IF (F$EXTRACT(0,1,P'i') .EQS. "d")
165 $ gotopt = "t" !"rue"
167 $ gotshortopt = "t" !"rue"
169 $ IF (F$EXTRACT(0,1,P'i') .EQS. "e")
176 $ IF (F$EXTRACT(0,1,P'i') .EQS. "f") ! "-f"
180 $ IF (F$SEARCH(config_sh).NES."")
182 $ test_config_sh = F$FILE_ATTRIBUTES(config_sh,"PRO")
183 $ IF (F$LOCATE("R",test_config_sh).NE.F$LENGTH(test_config_sh))
186 $ CONTINUE !at this point check UIC && if test allows...
189 $ echo "''me': cannot read config file ''config_sh'."
193 $ echo "''me': cannot read config file ''config_sh'."
198 $ IF (F$EXTRACT(0,1,P'i') .EQS. "h") ! "-h"
205 $ IF (F$EXTRACT(0,1,P'i') .EQS. "m") ! "-m"
212 $ IF (F$EXTRACT(0,1,P'i') .EQS. "r") ! "-r"
219 $ IF (F$EXTRACT(0,1,P'i') .EQS. "s") ! "-s"
226 $ IF (F$EXTRACT(0,1,P'i') .EQS. "E") ! "-E"
231 $ IF (F$EXTRACT(0,1,P'i') .EQS. "K") ! "-K"
238 $ IF (F$EXTRACT(0,1,P'i') .EQS. "O") ! "-O"
245 $ IF (F$EXTRACT(0,1,P'i') .EQS. "S") ! "-S"
247 $ extractsh = "true" !VMS? Yes with munchconfig
252 $ IF (F$EXTRACT(0,1,P'i') .EQS. "D") ! "-D"
255 $ IF (F$LOCATE("=",P'i') .EQ. F$LENGTH(P'i'))
257 $ tmp = P'i' + "=""define"""
261 $ IF (F$LOCATE("=",P'i') .EQ. (F$LENGTH(P'i') - 1))
263 $ me = F$PARSE(me,,,"NAME") + F$PARSE(me,,,"TYPE")
264 $ echo "''me': use ""-Usymbol=val"" not ""-Dsymbol=""."
265 $ echo "''me': ignoring -D",P'i'
267 $ tmp = F$EXTRACT(0,F$LOCATE("=",P'i'),P'i')
268 $ tmp = tmp + "=""" + F$EXTRACT(F$LOCATE("=",P'i')+1,F$LENGTH(P'i'),P'i') + """"
275 $ IF (F$EXTRACT(0,1,P'i') .EQS. "U") ! "-U"
278 $ IF (F$LOCATE("=",P'i') .EQ. F$LENGTH(P'i'))
280 $ tmp = P'i' + "="""""
284 $ IF (F$LOCATE("=",P'i') .LT. (F$LENGTH(P'i') - 1))
286 $ me = F$PARSE(me,,,"NAME") + F$PARSE(me,,,"TYPE")
287 $ echo "''me': use ""-Dsymbol=val"" not ""-Usymbol=val""."
288 $ echo "''me': ignoring -U",P'i'
290 $ tmp = P'i' + "=""undef"""
297 $ IF (F$EXTRACT(0,1,P'i') .EQS. "V")
299 $ me = F$PARSE(me,,,"NAME") + F$PARSE(me,,,"TYPE")
300 $ echo "''me' generated by an unknown version of EDT."
306 $ echo "''me': unknown option ",P'i'
309 $ IF (F$LENGTH(P'i').GT.0).AND.(gotshortopt) THEN i = i - 1 !clustered switch
311 $ IF (i .LT. (bang + 1)) THEN GOTO Opt_loop
313 $ ENDIF ! (P1 .NES. "")
314 $ config_args = F$EDIT(config_args,"TRIM")
318 $ me = F$PARSE(me,,,"DIRECTORY")+ F$PARSE(me,,,"NAME")
319 $ echo "Usage: @''me' [-dehmr""EKOSV""] [-fconfig.sh] [""-Dsymbol""] [""-Dsymbol=value""]"
320 $ echo " [-Usymbol] [-Usymbol=]"
323 "-d" : use defaults for all answers.
324 "-e" : go on without questioning past the production of config.sh. *
325 "-f" : specify an alternate default configuration file.
326 "-h" : print this help message and exit (with an error status).
327 "-m" : skip the MANIFEST check to see that all files are present
328 "-r" : reuse C symbols value if possible (skips costly nm extraction).*
329 "-s" : silent mode, only echoes questions and essential information.
330 -"D" : define symbol to have some value: *
331 -"Dsymbol" symbol gets the value 'define'
332 -"Dsymbol=value" symbol gets the value 'value'
333 -E : stop at the end of questions, after having produced config.sh. *
334 -K : do not use unless you know what you are doing.
335 -O : let -D and -U override definitions from loaded configuration file. *
336 -S : perform variable substitutions on all .SH files (can mix with -f) *
337 -"U" : undefine symbol: *
338 -"Usymbol" symbol gets the value 'undef'
339 -"Usymbol=" symbol gets completely empty
340 -V : print version number and exit (with a zero status).
342 $ echo "%Config-I-VMS, lower case switches must be enclosed"
343 $ echo "-Config-I-VMS, in double quotation marks, e.g.:"
344 $ echo "-Config-I-VMS, @Configure ""-des"""
345 $ echo "-Config-I-VMS, * indicates switch may not be fully implemented for VMS."
346 $ SET DEFAULT 'vms_default_directory_name' !be kind rewind
348 $ EXIT 3 ! $STATUS = "%X00000003" (informational)
354 $ IF F$Mode() .eqs. "BATCH"
356 $ STDOUT = F$GetQuI("DISPLAY_JOB","LOG_SPECIFICATION",,"THIS_JOB")
357 $ WRITE SYS$OUTPUT "Warning: Executing in batch mode. To avoid file locking conflicts,"
358 $ WRITE SYS$OUTPUT "output intended for SYS$OUTPUT will be sent to a new version"
359 $ WRITE SYS$OUTPUT STDOUT
361 $ STDOUT = F$TRNLNM("SYS$OUTPUT")
363 $ DEFINE SYS$OUTPUT "_NLA0:"
364 $ echo4 = "write STDOUT "
365 $ cat4 = "TYPE/OUTPUT=''STDOUT'"
366 $ open/write/share=read STDOUT 'STDOUT'
374 $ echo4 = "write SYS$OUTPUT "
378 $!: run the defines and the undefines, if any, but leave the file out there...
379 $! Unfortunately Configure.COM in DCL is not yet set up to do this -
384 $ packageup = F$EDIT((package - "5"),"UPCASE")
386 $!: Eunice requires " " instead of "", can you believe it
389 $ echo "Beginning of configuration questions for ''package'."
392 $!: Some greps do not return status, grrr.
393 $ contains = "SEARCH"
395 $!: first determine how to suppress newline on echo command !cant DCL is record oriented
396 $! echo "Checking ''echo' to see how to suppress newlines..."
397 $! echo "giving up..."
398 $! echo "The star should be here-->*"
400 $!: Now test for existence of everything in MANIFEST
402 $ echo4 "First let's make sure your kit is complete. Checking..."
405 $! Here I assume we are in the [foo.PERLxxx...] tree
406 $! because the search routine simply does set def [-] if necessary.
407 $ file_2_find = "MANIFEST" !I hope this one is not in [foo.PERL5xxx.VMS...]
409 $ manifestfound = F$SEARCH(file_2_find)
410 $ IF (manifestfound .EQS. "")
412 $ IF F$PARSE(F$ENVIRONMENT("DEFAULT"),,,"DIRECTORY",).NES."[000000]"
415 $ GOTO Research_manifest
418 $ echo "There is no MANIFEST file. I hope your kit is complete !"
420 $ GOTO Beyond_manifest
423 $! MANIFEST. has been found and we have set def'ed there -
424 $! time to bail out before it's too late.
425 $ tmp = f$extract(1,3,f$edit(f$getsyi("VERSION"),"TRIM,COLLAPSE"))
426 $ IF (tmp .GES. "7.2") .AND. (F$GETSYI("HW_MODEL") .GE. 1024) THEN GOTO Beyond_depth_check
427 $ IF (F$ELEMENT(max_allowed_dir_depth,".",F$ENVIRONMENT("Default")).nes.".")
431 %Config-E-VMS, ERROR:
432 Sorry! It apears as though your perl build sub-directory is already too
433 deep into the VMS file system. Please try moving stuff into a shallower
434 directory (or altering the "max_allowed_dir_depth" parameter).
436 $ echo4 "ABORTING..."
437 $ SET DEFAULT 'vms_default_directory_name' !be kind rewind
439 $ EXIT !2 !$STATUS = "%X00000002" (error)
443 $! after finding MANIFEST let's create (but not yet enter) the UU subdirectory
445 $ IF (manifestfound .NES. "")
447 $ IF ( F$SEARCH("UU.DIR").EQS."" )
449 $ CREATE/DIRECTORY [.UU]
451 $ IF ( F$SEARCH("[.UU]*.*").NES."" ) THEN DELETE/NOLOG [.UU]*.*;*
453 $!: Configure runs within the UU subdirectory
456 $! a little redundancy never hurt anybody?
457 $ file_2_find = "[-]" + file_2_find
458 $ manifestfound = F$SEARCH(file_2_find)
460 $ OPEN/WRITE MISSING MISSING.
461 $!change to "FALSE" if you wish to skip the manifest search
462 $!(which after all is rather slow in DCL :-)
465 $ echo "Skipping MANIFEST check as requested"
468 $ OPEN/READ CONFIG 'manifestfound'
470 $ READ/END_OF_FILE = Done_manifest CONFIG line
471 $! This algorithm turns "foo/bar/baz.c" into "[.foo.bar]baz.c"
472 $! pvhp@lns62.lns.cornell.edu 10-JUN-1996 20:31:46
473 $! 2-MAR-1998 15:46:11 Improved to turn "foo/bar/baz.c.buz"
474 $! into "[.foo.bar]baz.c_buz as happens with vmstar and unzip
475 $ line = F$EDIT(line,"TRIM, COMPRESS")
476 $ file_2_find = F$EXTRACT(0,F$LOCATE(" ",line),line)
477 $ IF F$LOCATE("/",file_2_find) .NE. F$LENGTH(file_2_find)
479 $Re_strip_line_manifest:
480 $ loca = F$LOCATE("/",file_2_find)
481 $ ante = F$EXTRACT(0,loca,file_2_find)
482 $ post = F$EXTRACT(loca,F$LENGTH(file_2_find),file_2_find)
483 $ test_this = ante + "." + (post - "/")
484 $ IF F$LOCATE("/",test_this) .NE. F$LENGTH(test_this)
486 $ file_2_find = ante + "." + (post - "/")
487 $ GOTO Re_strip_line_manifest
489 $ file_2_find = ante + "]" + (post - "/")
491 $ file_2_find = "[-."+file_2_find
493 $ file_2_find = "[-]" + file_2_find
496 $ dirname = F$EXTRACT(0,F$LOCATE("]",file_2_find),file_2_find) + "]"
497 $ file_2_find = file_2_find - dirname
500 $ dot_ele = F$ELEMENT(dots,".",file_2_find)
501 $ IF dot_ele .EQS. "." THEN GOTO Eo_dot_loop
503 $ THEN basename = f$extract(0,f$locate(".",file_2_find),file_2_find) + "."
504 $ ELSE basename = basename + dot_ele + "_"
509 $ IF (((f$length(file_2_find)+1) .eq. f$length(basename)) .and. -
510 (f$extract(f$length(basename)-1,1,basename) .eqs. "_")) THEN -
511 basename = f$extract(0,f$length(basename)-1,basename)
512 $ file_2_find = dirname + basename
514 $ found = F$SEARCH(file_2_find)
515 $ IF (found .EQS. "" .AND. dots .GT. 2)
517 $! 17-DEC-1999 Improved to turn "[.foo.bar]baz.c_buz" into
518 $! "[.foo.bar]baz_c.buz" to cover unzipped archives and put
519 $! "[.foo.bar]baz.c_buz,baz_c.buz" into missing list if neither is found.
520 $ basename[f$locate(".",basename),1] := _
521 $ dot_ele = F$ELEMENT(dots - 1,"_",basename)
523 f$extract(0,f$length(basename)-(f$length(dot_ele)+1),basename) -
525 $ found = F$SEARCH(dirname + basename)
526 $ file_2_find = file_2_find + "," + basename
528 $ IF (found .EQS. "")
530 $ WRITE MISSING file_2_find
531 $ IF ((F$LENGTH(miss_list)+F$LENGTH(file_2_find)).LT.250)
533 $ miss_list = miss_list + "," + file_2_find
536 $ GOTO Read_loop_manifest
541 $ ENDIF ! (manifestfound .NES. "")
543 $ IF (miss_list .NES. "")
545 $ echo "Some of the files not found include:"
548 $ IF ((miss_list .NES. "").OR.(manifestfound .EQS. ""))
554 THIS PACKAGE SEEMS TO BE INCOMPLETE.
556 You have the option of continuing the configuration process, despite the
557 distinct possibility that your kit is damaged, by typing 'y'es. If you
558 do, don't blame me if something goes wrong. I advise you to type 'n'o
559 and contact the author (dan@sidhe.org)
562 $ READ SYS$COMMAND/PROMPT="Continue? [n] " ans
565 $ echo4 "Continuing..."
567 $ echo4 "ABORTING..."
571 $ echo4 "Looks good..."
572 $ DELETE/NOLOG MISSING.;
573 $ ENDIF ! (miss_list .NES. "")
574 $ ENDIF ! (manifestfound .EQS. "") ELSE
576 $! after finding MANIFEST (see above)
577 $!: Configure runs within the UU subdirectory
579 $!: compute the number of columns on the terminal for proper question formatting
580 $! (sfn, will assume 80-ish)
582 $!: set up the echo used in my read !sfn
583 $!: now set up to do reads with possible shell escape and default assignment !sfn
592 $ If (.NOT. silent) Then echo ""
593 $ READ SYS$COMMAND/PROMPT="''rp'" ans
594 $ IF (ans .EQS. "&-d")
596 $ echo4 "(OK, I will run with -d after this question.)"
597 $ IF (.NOT. silent) THEN echo ""
598 $ READ SYS$COMMAND/PROMPT="''rp'" ans
601 $ IF (ans .EQS. "&-s")
603 $ echo4 "(OK, I will run with -s after this question.)"
605 $ READ SYS$COMMAND/PROMPT="''rp'" ans
614 $!: create .config dir to save info across Configure sessions
615 $ IF ( F$SEARCH("[-]CONFIG.DIR").EQS."" )
617 $ CREATE/DIRECTORY [-.CONFIG]
618 $ OPEN/WRITE CONFIG [-.CONFIG]README.
620 "This directory created by Configure to save information that should"
622 "persist across sessions."
625 "You may safely delete it if you wish."
629 $ IF F$TYPE(usedevel) .EQS. "" THEN usedevel := n
630 $ patchlevel_h = F$SEARCH("[-]patchlevel.h")
631 $ IF (patchlevel_h.NES."")
633 $ SEARCH 'patchlevel_h' "define","PERL_VERSION","epoch"/match=and/out=[]ver.out
634 $ IF .NOT. usedevel .AND. usedevel .NES. "define"
636 $ OPEN/READ CONFIG []ver.out
639 $ tmp = F$EDIT(line,"TRIM,COMPRESS")
640 $ xpatchlevel = F$INTEGER(F$ELEMENT(2," ",tmp))
641 $ line = xpatchlevel / 2
642 $ tmp = xpatchlevel - ( line * 2 )
645 $ echo4 "patchlevel is " + F$STRING(xpatchlevel)
648 *** WHOA THERE!!! ***
650 This is an UNSTABLE DEVELOPMENT release.
651 (The patchlevel, is odd--as opposed to even,
652 and that signifies a development release. If you want a
653 maintenance release, you want an even-numbered release.)
655 Do ***NOT*** install this into production use.
656 Data corruption and crashes are possible.
658 It is most seriously suggested that you do not continue any further
659 unless you want to help in developing and debugging Perl.
663 $ rp="Do you really want to continue? [''dflt'] "
664 $ IF (fastread) THEN fastread := FALSE
666 $ IF ans .EQS. "" THEN ans = dflt
669 $ echo4 "Okay, continuing."
672 $ DELETE/NOLOG/NOCONFIRM []ver.out;
679 $ DELETE/NOLOG/NOCONFIRM []ver.out;
681 $!: general instructions
684 $ user = F$EDIT(F$GETJPI("","USERNAME"),"TRIM,COLLAPSE")
685 $ IF .NOT.(F$SEARCH("[-.CONFIG]INSTRUCT.").EQS."")
687 $ messages = F$ENVIRONMENT("MESSAGE")
688 $ SET MESSAGE/NOFAC/NOSEV/NOIDENT/NOTEXT
689 $ contains /NOOUTPUT [-.CONFIG]INSTRUCT. 'user'
690 $ IF .NOT.($status.EQ.%X08D78053)
694 $ rp = "Would you like to see the instructions? [''dflt'] "
696 $ if .NOT.ans THEN needman=""
698 $ SET MESSAGE 'messages'
700 $ if (fastread.AND.silent.AND.(alldone.eqs."cont")) THEN needman=""
707 This installation shell script will examine your system and ask you questions
708 to determine how the perl5 package should be installed. If you get
709 stuck on a question, you may use a ^C or ^Y shell escape to STOP this
710 process, edit something, then restart this process as you just did.
711 Many of the questions will have default answers in square
712 brackets; typing carriage return will give you the default.
715 $ READ SYS$COMMAND/PROMPT="Type carriage return to continue " ans
719 In a hurry? You may run '@Configure "-d"'. This will bypass nearly all
720 the questions and use the computed defaults (or the previous answers provided
721 there was already a config.sh file). Type '@Configure "-h"' for a list of
725 $ READ SYS$COMMAND/PROMPT="Type carriage return to continue " ans
729 Much effort has been expended to ensure that this shell script will
730 run on any VMS system. If despite that it blows up on yours, your
731 best bet is to edit Configure.com and @ it again. Whatever problems
732 you have with Configure.com, let me (dan@sidhe.org) know how I blew
736 $!This installation script affects things in two ways:
738 $!1) it may do direct variable substitutions on some of the files included
740 $!2) it builds a config.h file for inclusion in C programs. You may edit
741 $! any of these files as the need arises after running this script.
743 $!If you make a mistake on a question, there is no easy way to back up to it
746 $ READ SYS$COMMAND/PROMPT="Type carriage return to continue " ans
747 $ IF (F$SEARCH("[-.CONFIG]INSTRUCT.").EQS."")
749 $ OPEN/WRITE CONFIG [-.CONFIG]INSTRUCT.
753 $ ENDIF !(needman .EQS. "true")
755 $!: see if sh knows # comments !sfn
757 $!: figure out how to guarantee sh startup !sfn
758 $!: find out where common programs are !sfn
759 $!loclist="awk/cat/comm/cp/echo/expr/find/grep/ln/ls/mkdir/rm/sed/sort/touch/tr/uniq"
760 $!trylist="byacc/cpp/csh/date/egrep/less/line/more/nroff/perl/pg/sendmail/test/uname"
761 $! echo "I don't know where '$file' is, and my life depends on it."
762 $! echo "Go find a public domain implementation or fix your PATH setting!"
764 $! echo "Don't worry if any of the following aren't found..."
765 $!: determine whether symbolic links are supported !sfn
766 $!: see whether [:lower:] and [:upper:] are supported character classes !sfn
767 $!: set up the translation script tr, must be called with ./tr of course !sfn
769 $!: Try to determine whether config.sh was made on this system
770 $!: Get old answers from old config file if Configure was run on the
771 $!: same system, otherwise use the hints.
772 $ config_sh_es = "''config_sh'/[-]config.sh/[-.vms]config.vms/"
776 $ config_sh = F$ELEMENT(i,"/",config_sh_es)
778 $ IF (config_sh.NES."/").AND.(config_sh.NES."")
780 $ configshfound = F$SEARCH(config_sh)
781 $ IF (configshfound.NES."") THEN GOTO Config_sh_found
783 $ IF (i.LT.max) THEN GOTO Config_sh_look
784 $! genconfig.pl has "osname='VMS'"
785 $ osname = F$EDIT(F$GETSYI("NODE_SWTYPE"),"COLLAPSE")
786 $ IF (configshfound.EQS."")
788 $ config_sh = "[-]config.sh" ! the fallback default
789 $ GOTO Beyond_config_sh
792 $ IF F$TYPE(osname) .EQS. "" THEN osname = F$EDIT(F$GETSYI("NODE_SWTYPE"),"COLLAPSE")
793 $ IF F$TYPE(config_dflt) .EQS. "" THEN config_dflt = "n"
794 $ rp = "Shall I @ ''config_sh' for default answers? [''config_dflt'] "
796 $ IF ans .EQS. "" THEN ans = config_dflt
800 $ echo "Fetching default answers from ''config_sh'..."
802 $! This @ is why config_sh must employ DCL syntax. Note that for
803 $! symbols to be returned to this procedure they must be global.
804 $! Which implies that assignments must be of the :== or == variety.
805 $! Note further that the [-]config.sh file written by this procedure
806 $! employs shell syntax. In order to convert shell syntax to DCL
809 $! perl -ni -e "s/^#/!#/;s/='/==""/;s/'$/""/;print ""\$ $_"";" config.sh
811 $! However, watch out for sig_nam, sig_nam_init, sig_num, startperl
812 $! and any of the lower case double quoted variables such as the *format
813 $! variables in such a config."sh".
818 $ DELETE/SYMBOL config_dflt
820 $!we actually do not have "hints/" for VMS
824 $!First time through, eh? I have some defaults handy for the following systems:
827 $! echo " ","VMS_VAX"
828 $! echo " ","VMS_AXP"
829 $! : Now look for a hint file osname_osvers, unless one has been
830 $! : specified already.
833 $!You may give one or more space-separated answers, or "none" if appropriate.
834 $!If your OS version has no hints, DO NOT give a wrong version -- say "none".
836 $! READ SYS$COMMAND/PROMPT="Which of these apply, if any? " ans
840 $!: Restore computed paths !sfn
842 $! %Config-I-VMS, a necessary error trap (could be PC running VCL)
844 $ IF (osname .NES. "VMS")
846 $ echo4 "Hmm.. I wonder what ''osname' is (?)"
850 %Config-E-VMS, ERROR:
852 Err, you do not appear to be running VMS!
853 This procedure is intended to Configure the building of Perl for VMS.
856 $ READ SYS$COMMAND/PROMPT="Continue anyway? [n] " ans
859 $ echo4 "Continuing..."
861 $ echo4 "ABORTING..."
862 $ SET DEFAULT 'vms_default_directory_name' !be kind rewind
864 $ EXIT 2 !$STATUS = "%X00000002" (error)
866 $ ELSE !we are on VMS huzzah!
868 $ THEN TYPE SYS$INPUT:
871 Configure uses the operating system name and version to set some defaults.
872 The default value is probably right if the name rings a bell. Otherwise,
873 since spelling matters for me, either accept the default or answer "none"
877 $ rp = "Operating system name? [''osname'] "
881 $ IF (ans.NES.osname) !.AND.knowitall
883 $ echo4 "I'll go with ''osname' anyway..."
886 $ ENDIF !(osname .NES./.EQS. "VMS")
888 $!: who configured the system
889 $ cf_by = F$EDIT(user,"LOWERCASE")
890 $ osvers = F$EDIT(F$GETSYI("VERSION"),"TRIM")
892 $! Peter Prymmer has seen:
893 $! "SYS$TIMEZONE_DIFFERENTIAL" = "-46800" (sic)
894 $! "SYS$TIME_ZONE" = "EDT"
896 $! Charles Lane recommended:
897 $! "SYS$TIMEZONE_DIFFERENTIAL" = "-14400"
898 $! "NEWS_TIMEZONE" = "-0500"
899 $! "ST_TIMEZONE" = "EDT"
900 $! "JAN_TIME_ZONE" = "EST "
901 $! "MULTINET_TIMEZONE" = "EST"
902 $! "DAYLIGHT_SAVINGS" = "1"
904 $! Charles Bailey recommends (in ANU NEWS Doc Jan 1995):
906 $! "Multinet_Timezone"
907 $! "TCPware_Timezone"
910 $! This snippet o' DCL returns a string in default Unix `date` format,
911 $! and it will prompt to set SYS$TIMEZONE_DIFFERENTIAL.
913 $ MIN_TZO = -840 !units are minutes here
916 $ wkday = F$EXTRACT(0,3,F$CVTIME(,,"WEEKDAY"))
917 $ monn = F$CVTIME(,,"MONTH")
918 $ mday = F$EXTRACT(8,2,F$CVTIME(,,"DATE"))
919 $ hour = F$CVTIME(,,"HOUR")
920 $ min = F$CVTIME(,,"MINUTE")
921 $ sec = F$CVTIME(,,"SECOND")
922 $ year = F$CVTIME(,,"YEAR")
924 $ months = "/Jan/Feb/Mar/Apr/May/Jun/Jul/Aug/Sep/Oct/Nov/Dec/"
928 $ mon = F$ELEMENT(i,"/",months)
929 $ IF i.LT.monn THEN GOTO Mon_loop
932 $ systz = F$TRNLNM("SYS$TIMEZONE_DIFFERENTIAL")
935 $ tzhour = F$INTEGER(systz)/3600
936 $ tzmins = F$INTEGER(systz)/60
937 $ tzminrem = tzmins - tzhour*60
938 $ IF tzminrem.lt.0 THEN tzminrem = -1*tzminrem !keeps !2ZL happy
940 $ THEN signothetime = "+"
941 $ IF tzhour.EQ.0.AND.tzminrem.EQ.0
942 $ THEN direction = "on GMT/"
943 $ ELSE direction = "east of "
945 $ ELSE signothetime = "-"
946 $ tzhour = -1*tzhour !keeps !UL happy
947 $ direction = "west of "
950 $ echo "According to the setting of your ""SYS$TIMEZONE_DIFFERENTIAL"" (= ''systz')"
953 $ tzspan = "''tzhour' hours & ''tzminrem' minutes"
955 $ tzspan = "''tzhour' hours"
958 $ echo "Your system is ''tzspan' ''direction'UTC in England."
959 $ rp = "(''systz') Is this UTC Time Zone Offset correct? [''dflt'] "
961 $ IF ans.OR.(ans.EQS."")
965 $ GOTO Beyond_TimeZone
969 $ echo4 """SYS$TIMEZONE_DIFFERENTIAL"" does not appear to be DEFINEd on your system"
974 $ echo "Please tell me in hh:mm form what time offset from GMT/UTC in England"
975 $ echo "you are. As an example Eastern (US) Standard Time is -5:00 offset, but"
976 $ echo "Eastern Daylight Time (summer) is -4:00 offset."
978 $ rp = "Enter the Time Zone offset: [''dflt'] "
980 $ ans = F$Edit(ans,"collapse,trim,uncomment,upcase")
981 $ IF ans.EQS."" THEN ans = dflt
982 $ tzhour = F$ELEMENT(0,":","''ans'") !first
983 $ IF tzhour.EQS."" THEN tzhour = 0
984 $ tzhour = F$INTEGER(tzhour)
985 $ tzminrem = F$ELEMENT(1,":","''ans'") !second
988 $ tzminrem = F$INTEGER(tzminrem)
989 $ IF F$EXTRACT(0,1,"''ans'") .EQS. "-" THEN tzminrem = tzminrem * -1
993 $ tzmins = tzhour*60 + tzminrem
994 $ tzd = F$STRING(tzmins*60)
999 $ tzhour = -1*tzhour !keeps !UL happy
1000 $ signothetime = "-"
1002 $ IF (tzmins.GT.MAX_TZO).OR.(tzmins.LT.MIN_TZO)
1005 $ echo "%Config-W-VMS-TIMERANGE, Response must be in the range -14:00 to 14:00."
1010 $ tz = f$fao("UTC!AS!UL:!2ZL",signothetime,tzhour,tzminrem)
1011 $ cf_time = "''wkday' ''mon' ''mday' ''hour':''min':''sec' ''tz' ''year'"
1013 $!: determine the architecture name
1014 $! genconfig.pl has either archname='VMS_AXP' or 'VMS_VAX'
1015 $! Note that DCL in VMS V5.4 does not have F$GETSYI("ARCH_NAME")
1016 $! but does have F$GETSYI("HW_MODEL").
1018 $ IF (F$GETSYI("HW_MODEL") .LT. 1024)
1020 $ archname = "VMS_VAX"
1021 $ otherarch = "an Alpha"
1023 $ arch_type = "ARCH-TYPE=__VAX__"
1025 $ archname = "VMS_AXP"
1026 $ otherarch = "a VAX"
1028 $ arch_type = "ARCH-TYPE=__AXP__"
1030 $ rp = "What is your architecture name? [''archname'] "
1034 $ ans = F$EDIT(ans,"COLLAPSE, UPCASE")
1035 $ IF (ans.NES.archname) !.AND.knowitall
1037 $ echo4 "I'll go with ''archname' anyway..."
1041 $ vms_prefix = "perl_root"
1042 $ vms_prefixup = F$EDIT(vms_prefix,"UPCASE")
1043 $ rp = "Will you be sharing your ''vms_prefixup' with ''otherarch'? [''dflt'] "
1047 $ ans = F$EXTRACT(0,1,F$EDIT(ans,"COLLAPSE, UPCASE"))
1054 $ IF (archname.EQS."VMS_AXP")
1056 $ macros = macros + """AXE=1"","
1060 $!: is AFS running? !sfn
1061 $!: decide how portable to be. Allow command line overrides. !sfn
1062 $!: set up shell script to do ~ expansion !sfn
1063 $!: expand filename !sfn
1064 $!: now set up to get a file name !sfn
1066 $ IF F$TYPE(prefix) .EQS. ""
1068 $ prefix = F$ENVIRONMENT("DEFAULT") - ".UU]" + "]"
1069 $ prefix = F$PARSE(prefix,,,,"NO_CONCEAL") - "][" - ".;"
1070 $ prefixbase = prefix - "]"
1071 $ prefix = prefixbase + ".]"
1074 $!: determine root of directory hierarchy where package will be installed.
1079 $ echo "By default, ''package' will be installed in ''dflt', pod"
1080 $ echo "pages under ''prefixbase'.LIB.POD], etc..., i.e. with ''dflt' as prefix for"
1081 $ echo "all installation directories."
1082 $ echo "On ''osname' the prefix is used to DEFINE the ''vms_prefixup' prior to installation"
1083 $ echo "as well as during subsequent use of ''package' via ''packageup'_SETUP.COM."
1085 $ rp = "Installation prefix to use (for ''vms_prefixup')? [ ''dflt' ] "
1090 $ IF F$LOCATE(".]",ans) .EQ. F$LENGTH(ans) THEN prefix = prefix - "]" + ".]"
1094 $ perl_root = prefix
1096 $! Check here for pre-existing PERL_ROOT.
1097 $! -> ask if removal desired.
1098 $! Check here for writability of requested PERL_ROOT if it is not the default (cwd).
1099 $! -> recommend letting PERL_ROOT be PERL_SRC if requested PERL_ROOT is not writable.
1101 $ vms_skip_install = "true"
1104 $ rp = "Skip the remaining """"where install"""" questions? [''dflt'] "
1106 $ IF (.NOT.ans).AND.(ans.NES."") THEN vms_skip_install = "false"
1107 $ IF (.NOT.vms_skip_install)
1110 $!: set the prefixit variable, to compute a suitable default value
1112 $!: determine where private library files go
1113 $!: Usual default is /usr/local/lib/perl5. Also allow things like
1114 $!: /opt/perl/lib, since /opt/perl/lib/perl5 would be redundant.
1120 There are some auxiliary files for perl5 that need to be put into a
1121 private library directory that is accessible by everyone.
1124 $ IF F$TYPE(privlib) .NES. ""
1125 $ THEN dflt = privlib
1126 $ ELSE dflt = "''vms_prefix':[lib]"
1128 $ rp = "Pathname where the private library files will reside? "
1129 $ rp = F$FAO("!AS!/!AS",rp,"[ ''dflt' ] ")
1132 $ THEN privlib = ans
1133 $ ELSE privlib = dflt
1136 $ ENDIF !%Config-I-VMS, skip remaining "where install" questions
1138 $ perl_symbol = "true"
1144 $ echo "You may choose to write ''packageup'_SETUP.COM to assign a foreign"
1145 $ echo "symbol to invoke ''package', which is the usual method."
1146 $ echO "If you do not do so then you would need a DCL command verb at the"
1147 $ echo "process or the system wide level."
1149 $ rp = "Invoke perl as a global symbol foreign command? [''dflt'] "
1151 $ IF (.NOT.ans).AND.(ans.NES."") THEN perl_symbol = "false"
1153 $ IF (.NOT.perl_symbol)
1159 $ echo "Since you won't be using a symbol you must choose to put the ''packageup'"
1160 $ echo "verb in a per-process table or in the system wide DCLTABLES (which"
1161 $ echo "would require write privilege)."
1163 $ rp = "Invoke perl as a per process command verb? [ ''dflt' ] "
1165 $ IF (.NOT.ans).AND.(ans.NES."")
1166 $ THEN perl_verb = "DCLTABLES"
1167 $ ELSE perl_verb = "PROCESS"
1169 $ ENDIF ! (.NOT.perl_symbol)
1171 $!: set the base revision
1173 $ revision = baserev - ".0"
1174 $!: get the patchlevel
1176 $ echo4 "Getting the current patchlevel..."
1177 $ patchlevel_h = F$SEARCH("[-]patchlevel.h")
1178 $ IF (patchlevel_h.NES."")
1180 $ got_patch = "false"
1182 $ got_api_revision = "false"
1183 $ got_api_version = "false"
1184 $ got_api_subversion = "false"
1185 $ OPEN/READONLY CONFIG 'patchlevel_h'
1187 $ READ/END_Of_File=Close_patch/ERROR=Close_patch CONFIG line
1188 $ IF ((F$LOCATE("#define PERL_VERSION",line).NE.F$LENGTH(line)).AND.(.NOT.got_patch))
1190 $ line = F$EDIT(line,"COMPRESS, TRIM")
1191 $ patchlevel = F$ELEMENT(2," ",line)
1192 $ got_patch = "true"
1194 $ IF ((F$LOCATE("#define PERL_SUBVERSION",line).NE.F$LENGTH(line)).AND.(.NOT.got_sub))
1196 $ line = F$EDIT(line,"COMPRESS, TRIM")
1197 $ subversion = F$ELEMENT(2," ",line)
1200 $ IF ((F$LOCATE("#define PERL_API_REVISION",line).NE.F$LENGTH(line)).AND.(.NOT.got_api_revision))
1202 $ line = F$EDIT(line,"COMPRESS, TRIM")
1203 $ api_revision = F$ELEMENT(2," ",line)
1204 $ got_api_revision = "true"
1206 $ IF ((F$LOCATE("#define PERL_API_VERSION",line).NE.F$LENGTH(line)).AND.(.NOT.got_api_version))
1208 $ line = F$EDIT(line,"COMPRESS, TRIM")
1209 $ api_version = F$ELEMENT(2," ",line)
1210 $ got_api_version = "true"
1212 $ IF ((F$LOCATE("#define PERL_API_SUBVERSION",line).NE.F$LENGTH(line)).AND.(.NOT.got_api_subversion))
1214 $ line = F$EDIT(line,"COMPRESS, TRIM")
1215 $ api_subversion = F$ELEMENT(2," ",line)
1216 $ got_api_subversion = "true"
1218 $ IF (.NOT.got_patch).OR.(.NOT.got_sub) THEN GOTO Patchlevel_h_loop
1225 $ IF (F$STRING(subversion) .NES. "0")
1227 $ echo "(You have ''package' revision ''revision' patchlevel ''patchlevel' subversion ''subversion'.)"
1229 $ echo "(You have ''package' revision ''revision' patchlevel ''patchlevel'.)"
1232 $ version = revision + "_" + patchlevel + "_" + subversion
1234 $ IF (.NOT.vms_skip_install)
1236 $!: set the prefixup variable, to restore leading tilde escape !sfn
1238 $!: determine where public architecture dependent libraries go
1242 $ echo "''package' contains architecture-dependent library files. If you are"
1248 sharing libraries in a heterogeneous environment, you might store
1249 these files in a separate location. Otherwise, you can just include
1250 them with the rest of the public library files.
1253 $ IF F$TYPE(archlib) .NES. ""
1254 $ THEN dflt = archlib
1255 $ ELSE dflt = privlib - "]" + "." + archname + "." + version + "]"
1257 $ rp = "Where do you want to put the public architecture-dependent libraries? "
1258 $ rp = F$FAO("!AS!/!AS",rp,"[ ''dflt' ] ")
1261 $ THEN archlib = ans
1262 $ ELSE archlib = dflt
1265 $ ENDIF !%Config-I-VMS, skip "where install" questions
1267 $! This quotation from Configure has to be included on VMS:
1272 There is, however, a strange, musty smell in the air that reminds me of
1273 something...hmm...yes...I've got it...there's a VMS nearby, or I'm a Blit.
1275 $ IF (.NOT.vms_skip_install)
1277 $!: it so happens the Eunice I know will not run shell scripts in Unix format
1279 $!: see if setuid scripts can be secure !sfn
1280 $!: now see if they want to do setuid emulation !sfn
1282 $!: determine where site specific libraries go.
1288 The installation process will also create a directory for
1289 site-specific extensions and modules. Some users find it convenient
1290 to place all local files in this directory rather than in the main
1291 distribution directory.
1294 $ IF F$TYPE(sitelib) .NES. ""
1295 $ THEN dflt = sitelib
1296 $ ELSE dflt = privlib - "]" + ".SITE_PERL]"
1298 $ rp = "Pathname for the site-specific library files? "
1299 $ rp = F$FAO("!AS!/!AS",rp,"[ ''dflt' ] ")
1302 $ THEN sitelib = ans
1303 $ ELSE sitelib = dflt
1306 $!: determine where site specific architecture-dependent libraries go.
1308 $ THEN TYPE SYS$INPUT:
1311 The installation process will also create a directory for
1312 architecture-dependent site-specific extensions and modules.
1315 $ IF F$TYPE(sitearch) .NES. ""
1316 $ THEN dflt = sitearch
1317 $ ELSE dflt = sitelib - "]" + "." + archname + "]"
1319 $ rp = "Pathname for the site-specific architecture-dependent library files? "
1320 $ rp = F$FAO("!AS!/!AS",rp,"[ ''dflt' ] ")
1323 $ THEN sitearch = ans
1324 $ ELSE sitearch = dflt
1327 $!: determine where old public architecture dependent libraries might be
1329 $!: determine where public executables go
1330 $ IF F$TYPE(bin) .NES. ""
1332 $! ELSE dflt = prefix - ".]" + ".BIN]"
1333 $ ELSE dflt = "/''vms_prefix'/000000"
1335 $ rp = "Pathname where the public executables will reside? "
1336 $ rp = F$FAO("!AS!/!AS",rp,"[ ''dflt' ] ")
1343 $!: determine where manual pages are on this system
1344 $!: What suffix to use on installed man pages
1345 $!: see if we can have long filenames
1346 $!: determine where library module manual pages go
1347 $!: What suffix to use on installed man pages
1348 $!: see what memory models we can support
1350 $ ELSE ! skipping "where install" questions, we must set some symbols
1351 $ IF F$TYPE(archlib).EQS."" THEN -
1352 archlib="''vms_prefix':[lib.''archname'.''version']"
1353 $ IF F$TYPE(bin) .EQS. "" THEN -
1354 bin="/''vms_prefix'/000000"
1355 $ IF F$TYPE(privlib) .EQS. "" THEN -
1356 privlib ="''vms_prefix':[lib]"
1357 $ IF F$TYPE(sitearch) .EQS. "" THEN -
1358 sitearch="''vms_prefix':[lib.site_perl.''archname']"
1359 $ IF F$TYPE(sitelib) .EQS. "" THEN -
1360 sitelib ="''vms_prefix':[lib.site_perl]"
1361 $ ENDIF !%Config-I-VMS, skip "where install" questions
1363 $! These derived locations can be set whether we've opted to
1364 $! skip the where install questions or not.
1366 $ IF F$TYPE(archlibexp) .EQS. "" THEN -
1367 archlibexp="''vms_prefix':[lib.''archname'.''version']"
1368 $ IF F$TYPE(binexp) .EQS. "" THEN -
1369 binexp ="''vms_prefix':[000000]"
1370 $ IF F$TYPE(builddir) .EQS. "" THEN -
1371 builddir ="''vms_prefix':[000000]"
1372 $ IF F$TYPE(installarchlib) .EQS. "" THEN -
1373 installarchlib="''vms_prefix':[lib.''archname'.''version']"
1374 $ IF F$TYPE(installbin) .EQS. "" THEN -
1375 installbin ="''vms_prefix':[000000]"
1376 $ IF F$TYPE(installscript) .EQS. "" THEN -
1377 installscript ="''vms_prefix':[utils]"
1378 $ IF F$TYPE(installman1dir) .EQS. "" THEN -
1379 installman1dir ="''vms_prefix':[man.man1]"
1380 $ IF F$TYPE(installman3dir) .EQS. "" THEN -
1381 installman3dir ="''vms_prefix':[man.man3]"
1382 $ IF F$TYPE(installprivlib) .EQS. "" THEN -
1383 installprivlib ="''vms_prefix':[lib]"
1384 $ IF F$TYPE(installsitearch) .EQS. "" THEN -
1385 installsitearch="''vms_prefix':[lib.site_perl.''archname']"
1386 $ IF F$TYPE(installsitelib) .EQS. "" THEN -
1387 installsitelib ="''vms_prefix':[lib.site_perl]"
1388 $ IF F$TYPE(oldarchlib) .EQS. "" THEN -
1389 oldarchlib="''vms_prefix':[lib.''archname']"
1390 $ IF F$TYPE(oldarchlibexp) .EQS. "" THEN -
1391 oldarchlibexp="''vms_prefix':[lib.''archname']"
1392 $ IF F$TYPE(privlibexp) .EQS. "" THEN -
1393 privlibexp ="''vms_prefix':[lib]"
1394 $ IF F$TYPE(sitearchexp) .EQS. "" THEN -
1395 sitearchexp ="''vms_prefix':[lib.site_perl.''archname']"
1396 $ IF F$TYPE(sitelib_stem) .EQS. "" THEN -
1397 sitelib_stem ="''vms_prefix':[lib.site_perl]"
1398 $ IF F$TYPE(sitelibexp) .EQS. "" THEN -
1399 sitelibexp ="''vms_prefix':[lib.site_perl]"
1401 $!: see if we need a special compiler
1402 $! cc_list = "cc/decc|gcc" !%Config-I-VMS, compiler symbols/commands
1406 $ vms_cc_available = ""
1408 $ OPEN/WRITE CONFIG ccvms.c
1409 $ WRITE CONFIG "#ifdef __DECC"
1410 $ WRITE CONFIG "#include <stdlib.h>" !DECC is sooo picky
1411 $ WRITE CONFIG "#endif"
1412 $ WRITE CONFIG "#include <stdio.h>"
1413 $ WRITE CONFIG "int main() {"
1414 $ WRITE CONFIG "#ifdef __DECC"
1415 $ WRITE CONFIG " printf(""/DECC\n"");"
1416 $ WRITE CONFIG "#else"
1417 $ WRITE CONFIG " printf(""/VAXC\n"");"
1418 $ WRITE CONFIG "#endif"
1419 $ WRITE CONFIG " exit(0);"
1423 $! DEFINE SYS$ERROR _NLA0:
1424 $! DEFINE SYS$OUTPUT _NLA0:
1425 $ cc/NoObj/list=ccvms.lis ccvms.c
1427 $! DEASSIGN SYS$OUTPUT
1428 $! DEASSIGN SYS$ERROR
1429 $ IF (silent) THEN GOSUB Shut_up
1430 $ IF tmp.NE.%X10B90001
1432 $ IF tmp.NE.%X10000001
1434 $ nocc = "t" !%X10000001 is return from gcc
1435 $ GOTO Gcc_initial_check
1440 $ IF .NOT.silent THEN echo ""
1441 $ echo "Default ""cc"" is ''line' ''archsufx' ''F$GETSYI("VERSION")'"
1442 $ IF F$LOCATE("VAX",line).NE.F$LENGTH(line)
1446 $ echo "Will try cc/decc..."
1448 $ DEFINE/USER_MODE SYS$ERROR NL:
1449 $ DEFINE/USER_MODE SYS$OUTPUT NL:
1451 $ cc/decc/NoObj/list=ccvms.lis ccvms.c
1454 $ IF (silent) THEN GOSUB Shut_up
1455 $ IF tmp.NE.%X10B90001
1457 $ echo "Apparently you don't have that one."
1460 $ echo "You also have: ''line' ''archsufx' ''F$GETSYI("VERSION")'"
1461 $ vms_cc_available = vms_cc_available + "cc/decc "
1464 $ IF (F$LOCATE("DEC",line).NE.F$LENGTH(line)).or.(F$LOCATE("Compaq",line).NE.F$LENGTH(line))
1466 $ vms_cc_dflt = "/decc"
1467 $ vms_cc_available = vms_cc_available + "cc/decc "
1472 $ echo "Checking for gcc"
1473 $ OPEN/WRITE CONFIG gccvers.lis
1474 $ DEFINE/USER_MODE SYS$ERROR CONFIG
1475 $ DEFINE/USER_MODE SYS$OUTPUT CONFIG
1476 $ 'gcc_symbol'/noobj/version _nla0:
1478 $ IF (silent) THEN GOSUB Shut_up
1480 $ IF (tmp.NE.%X10000001).and.(tmp.ne.%X00030001)
1482 $ echo "Symbol ""''gcc_symbol'"" is not defined. I guess you do not have it."
1483 $ DELETE/NOLOG/NOCONFIRM gccvers.lis;
1484 $ GOTO Cxx_initial_check
1486 $ OPEN/READ CONFIG gccvers.lis
1488 $ READ/END_OF_FILE=GCC_List_End CONFIG line
1489 $ GOTO GCC_List_Read
1493 $ vms_cc_available = vms_cc_available + "''gcc_symbol' "
1494 $ DELETE/NOLOG/NOCONFIRM gccvers.lis;
1498 $! Do note that [vms]perl source files have a ways to go before they will
1499 $! compile under CXX.
1500 $! In order to test Configure.com with CXX invoke it with "-Dtry_cxx" on
1501 $! the command line.
1503 $ IF F$TYPE(try_cxx) .EQS. "" THEN try_cxx := n
1504 $ IF try_cxx .OR. try_cxx .EQS. "define"
1508 $ echo "Checking for CXX..."
1509 $ OPEN/WRITE CONFIG ccvms.c
1510 $ WRITE CONFIG "#include <iostream>"
1511 $ WRITE CONFIG "int main() {"
1512 $ WRITE CONFIG "#ifdef __DECCXX"
1513 $ WRITE CONFIG " cout << __DECCXX, endl;"
1514 $ WRITE CONFIG "#else"
1515 $ WRITE CONFIG " cout << 0,endl;"
1516 $ WRITE CONFIG "#endif"
1517 $! Todo: add G++ identifier check ??
1518 $ WRITE CONFIG " return(0);"
1522 $ DEFINE/USER_MODE SYS$OUTPUT NL:
1523 $ DEFINE/USER_MODE SYS$ERROR NL:
1527 $! success $status with:
1528 $! DEC C++ V1.1-001 on VMS VAX V5.5-2
1529 $! DEC C++ V5.6-013 on OpenVMS VAX V7.1
1530 $! DEC C++ V6.1-003 on OpenVMS Alpha V7.1
1531 $! Compaq C++ V6.2-016 for OpenVMS Alpha V7.2-1
1532 $ IF tmp .eq. %X15F60001
1536 $ DEFINE/USER_MODE SYS$OUTPUT NL:
1537 $ DEFINE/USER_MODE SYS$ERROR NL:
1541 $ ! success $status with:
1542 $ ! link && DEC C++ V1.1-001 on VMS VAX V5.5-2
1543 $ ! link && DEC C++ V5.6-013 on OpenVMS VAX V7.1
1544 $ IF tmp .eq. %X10000001
1547 $ vms_cc_available = vms_cc_available + "cxx "
1548 $ echo "CXX and LINK are available."
1550 $ IF F$SEARCH("ccvms.exe") .NES. "" THEN DELETE/NOLOG/NOCONFIRM ccvms.exe;
1552 $ DEFINE/USER_MODE SYS$OUTPUT NL:
1553 $ DEFINE/USER_MODE SYS$ERROR NL:
1557 $ ! success $status with:
1558 $ ! cxxlink && DEC C++ V6.1-003 on OpenVMS Alpha V7.1
1559 $ ! cxxlink && Compaq C++ V6.2-016 for OpenVMS Alpha V7.2-1
1560 $ IF tmp .eq. %X10000001
1562 $ ld_try = "cxxlink"
1563 $ vms_cc_available = vms_cc_available + "cxx "
1564 $ echo "CXX and CXXLINK are available."
1567 $ IF F$SEARCH("ccvms.exe") .NES. "" THEN DELETE/NOLOG/NOCONFIRM ccvms.exe;
1571 $ DELETE/NOLOG/NOCONFIRM ccvms.c;
1572 $ IF F$SEARCH("ccvms.obj") .NES. "" THEN DELETE/NOLOG/NOCONFIRM ccvms.obj;
1573 $ CALL Cxx_demangler_cleanup
1575 $ ENDIF ! 1 .eq. 0 or 1 .eq. 1
1578 $ DELETE/NOLOG/NOCONFIRM ccvms.*;
1580 $!: see if we need a special compiler
1582 $ echo "Available compiler(s):"
1583 $ echo "( ''vms_cc_available')"
1586 $ dflt = "cc''vms_cc_dflt'" !-> "cc" in case first compile went OK
1590 $ rp = "Use which C compiler? [''dflt'] "
1594 $ ans = F$EDIT(ans,"TRIM, COMPRESS, LOWERCASE")
1596 $ IF (F$LOCATE("dec",ans).NE.F$LENGTH(ans)).or.(F$LOCATE("compaq",ans).NE.F$LENGTH(ans))
1600 $ C_COMPILER_Replace = "CC=cc=''Mcc'"
1602 $ IF F$LOCATE("cxx",F$EDIT(ans,"COLLAPSE,LOWERCASE")) .NE. F$LENGTH(ans)
1607 $ C_COMPILER_Replace = "CC=cc=''Mcc'"
1611 $ IF F$LOCATE("dec",dflt) .NE. F$LENGTH(dflt) .or. -
1612 F$LOCATE("compaq",dflt) .NE. F$LENGTH(dflt)
1614 $ C_COMPILER_Replace = "CC=cc=''Mcc'"
1619 $ IF Mcc .EQS. "cc/decc"
1622 $ C_COMPILER_Replace = "CC=cc=''Mcc'"
1628 $ IF Mcc .EQS. "cc/decc"
1631 $ C_COMPILER_Replace = "CC=cc=''Mcc'"
1633 $ IF Mcc .EQS. "gcc"
1636 $ C_COMPILER_Replace = "CC=cc=''Mcc'"
1639 $Decc_Version_check:
1644 $ echo4 "Checking for the Dec C version number..."
1645 $ OPEN/WRITE CONFIG deccvers.c
1646 $ WRITE CONFIG "#include <stdlib.h>" !DECC is sooo picky
1647 $ WRITE CONFIG "#include <stdio.h>"
1648 $ WRITE CONFIG "int main() {"
1649 $ WRITE CONFIG "#ifdef __DECC"
1650 $ WRITE CONFIG "#ifdef __DECC_VER"
1651 $ WRITE CONFIG " printf(""%i\n"", __DECC_VER);"
1652 $ WRITE CONFIG "#else"
1653 $ WRITE CONFIG " printf(""%i\n"", ""1"");"
1654 $ WRITE CONFIG "#endif"
1655 $ WRITE CONFIG "#endif"
1656 $ WRITE CONFIG " exit(0);"
1660 $ DEFINE/USER_MODE SYS$ERROR NL:
1661 $ DEFINE/USER_MODE SYS$OUTPUT NL:
1664 $ IF (silent) THEN GOSUB Shut_up
1665 $ DEFINE/USER_MODE SYS$ERROR NL:
1666 $ DEFINE/USER_MODE SYS$OUTPUT NL:
1669 $ IF (silent) THEN GOSUB Shut_up
1670 $ OPEN/WRITE CONFIG deccvers.out
1671 $ DEFINE/USER_MODE SYS$ERROR CONFIG
1672 $ DEFINE/USER_MODE SYS$OUTPUT CONFIG
1673 $ mcr []deccvers.exe
1677 $ IF (silent) THEN GOSUB Shut_up
1678 $ OPEN/READ CONFIG deccvers.out
1679 $ READ/END_OF_FILE=Dec_c_cleanup CONFIG line
1682 $ echo "You are using Dec C ''line'"
1684 $ Dec_C_Version = F$INTEGER(line)
1685 $ IF Dec_C_Version .GE. 60200000
1687 $ echo4 "adding /NOANSI_ALIAS qualifier to ccflags."
1688 $ ccflags = ccflags + "/NOANSI_ALIAS"
1690 $ DELETE/NOLOG/NOCONFIRM deccvers.*;
1696 $ vaxcrtl_olb = F$SEARCH("SYS$LIBRARY:VAXCRTL.OLB")
1697 $ vaxcrtl_exe = F$SEARCH("SYS$SHARE:VAXCRTL.EXE")
1698 $ gcclib_olb = F$SEARCH("GNU_CC:[000000]GCCLIB.OLB")
1699 $ IF gcclib_olb .EQS. ""
1701 $! These objects/libs come w/ gcc 2.7.2 for AXP:
1702 $ tmp = F$SEARCH("GNU_CC:[000000]libgcc2.olb")
1703 $ IF tmp .NES. "" then gcclib_olb = tmp
1704 $ tmp = F$SEARCH("GNU_CC:[000000]libgcclib.olb")
1707 $ IF gcclib_olb .EQS. ""
1708 $ THEN gcclib_olb = tmp
1709 $ ELSE gcclib_olb = gcclib_olb + "/lib," + tmp
1712 $ tmp = F$SEARCH("SYS$LIBRARY:VAXCRTL.OLB")
1715 $ IF gcclib_olb .EQS. ""
1716 $ THEN gcclib_olb = tmp
1717 $ ELSE gcclib_olb = gcclib_olb + "/lib," + tmp
1720 $ tmp = F$SEARCH("GNU_CC:[000000]crt0.obj")
1723 $ IF gcclib_olb .EQS. ""
1724 $ THEN gcclib_olb = tmp
1725 $ ELSE gcclib_olb = gcclib_olb + "/lib," + tmp
1728 $ IF gcclib_olb .EQS. vaxcrtl_olb THEN gcclib_olb = "" !goofy order of axplibs
1730 $ gcclib_olb = gcclib_olb + "/lib"
1732 $ IF gcclib_olb .NES. "" .AND. -
1733 (vaxcrtl_olb .NES. "" .OR. -
1734 vaxcrtl_exe .NES. "" )
1737 $ echo4 "Checking for GNU cc in disguise and/or its version number..." !>&4
1738 $ OPEN/WRITE CONFIG gccvers.c
1739 $ WRITE CONFIG "#include <stdio.h>"
1740 $ WRITE CONFIG "int main() {"
1741 $ WRITE CONFIG "#ifdef __GNUC__"
1742 $ WRITE CONFIG "#ifdef __VERSION__"
1743 $ WRITE CONFIG " printf(""%s\n"", __VERSION__);"
1744 $ WRITE CONFIG "#else"
1745 $ WRITE CONFIG " printf(""%s\n"", ""1"");"
1746 $ WRITE CONFIG "#endif"
1747 $ WRITE CONFIG "#endif"
1748 $ WRITE CONFIG " exit(0);"
1751 $ DEFINE SYS$ERROR _NLA0:
1752 $ DEFINE SYS$OUTPUT _NLA0:
1755 $ DEASSIGN SYS$ERROR _NLA0:
1756 $ DEASSIGN SYS$OUTPUT _NLA0:
1757 $ IF (silent) THEN GOSUB Shut_up
1758 $ DEFINE SYS$ERROR _NLA0:
1759 $ DEFINE SYS$OUTPUT _NLA0:
1760 $ IF vaxcrtl_exe .EQS. ""
1762 $ IF F$LOCATE("VAXCRTL",gcclib_olb).NE.F$LENGTH(gcclib_olb)
1764 $ link gccvers.obj,'gcclib_olb',SYS$LIBRARY:VAXCRTL/Library
1767 $ link gccvers.obj,'gcclib_olb'
1771 $ OPEN/WRITE CONFIG GCCVERS.OPT
1772 $ WRITE CONFIG "SYS$SHARE:VAXCRTL/SHARE"
1774 $ link gccvers.obj,GCCVERS.OPT/OPT,'gcclib_olb'
1777 $ DEASSIGN SYS$ERROR
1778 $ DEASSIGN SYS$OUTPUT
1779 $ IF (silent) THEN GOSUB Shut_up
1780 $ OPEN/WRITE CONFIG gccvers.out
1781 $ DEFINE SYS$ERROR CONFIG
1782 $ DEFINE SYS$OUTPUT CONFIG
1786 $ DEASSIGN SYS$OUTPUT
1787 $ DEASSIGN SYS$ERROR
1788 $ IF (silent) THEN GOSUB Shut_up
1789 $ OPEN/READ CONFIG gccvers.out
1790 $ READ/END_OF_FILE=Gcc_cleanup CONFIG line
1793 $ DELETE/NOLOG/NOCONFIRM gccvers.*;
1794 $ IF F$LOCATE("GNU C version ",line).NE.F$LENGTH(line)
1796 $ echo "You are not using GNU cc."
1799 $ echo "You are using GNU cc ''line'"
1802 $ C_COMPILER_Replace = "CC=cc=''Mcc'"
1810 $ OPEN/WRITE CONFIG cxxvers.c
1811 $ WRITE CONFIG "#include <stdio.h>"
1812 $ WRITE CONFIG "int main() {"
1813 $ WRITE CONFIG "#ifdef __DECCXX_VER"
1814 $ WRITE CONFIG " printf(""%i\n"", __DECCXX_VER);"
1815 $ WRITE CONFIG "#else"
1816 $ WRITE CONFIG " printf(""%i\n"", ""0"");"
1817 $ WRITE CONFIG "#endif"
1818 $ WRITE CONFIG " return(0);"
1822 $ DEFINE/USER_MODE SYS$ERROR NL:
1823 $ DEFINE/USER_MODE SYS$OUTPUT NL:
1827 $ IF (silent) THEN GOSUB Shut_up
1829 $ DEFINE/USER_MODE SYS$ERROR NL:
1830 $ DEFINE/USER_MODE SYS$OUTPUT NL:
1834 $ IF (silent) THEN GOSUB Shut_up
1835 $ OPEN/WRITE CONFIG cxxvers.out
1837 $ DEFINE/USER_MODE SYS$ERROR CONFIG
1838 $ DEFINE/USER_MODE SYS$OUTPUT CONFIG
1843 $ IF (silent) THEN GOSUB Shut_up
1844 $ OPEN/READ CONFIG cxxvers.out
1845 $ READ/END_OF_FILE=Cxx_cleanup CONFIG line
1848 $ DELETE/NOLOG/NOCONFIRM cxxvers.*;
1849 $ echo "You are using CXX ''line'"
1852 $ CALL Cxx_demangler_cleanup
1855 $Cxx_demangler_cleanup: SUBROUTINE
1857 $! If we do build with CXX these demangler Dbs will be left all over.
1858 $! However, configure.com does try to remove the [.UU] sub directory.
1859 $! Be sure to set default to the correct place before calling this sub.
1862 $ IF F$SEARCH("[.CXX_REPOSITORY]*.*") .NES. "" THEN DELETE/NOLOG/NOCONFIRM [.CXX_REPOSITORY]*.*;*
1863 $ IF F$SEARCH("CXX_REPOSITORY.DIR") .NES. ""
1865 $ SET PROTECTION=(SYSTEM:RWED,OWNER:RWED) CXX_REPOSITORY.DIR
1866 $ DELETE/NOLOG/NOCONFIRM CXX_REPOSITORY.DIR;
1870 $ ENDSUBROUTINE ! Cxx_demangler_cleanup
1875 $ OPEN/READ CONFIG ccvms.lis
1877 $ IF (F$GETSYI("HW_MODEL") .LT. 1024)
1885 $ line = F$EDIT(line,"TRIM,COMPRESS")
1886 $ line = line - "Page 1" ! occurs at end all compilers
1887 $ line = line - "CCVMS " ! filename appears w/ VAXC
1888 $ line = line - "Source Listing " ! Seen w/ AXP DECC
1889 $ tmp = F$EXTRACT(0,20,line) !timestamp, e.g. "30-JUL-1996 21:12:54 "
1891 $ line = F$EDIT(line,"TRIM") !bit redundant but we're in no big hurry
1892 $ DELETE/NOLOG/NOCONFIRM ccvms.lis;
1896 $!: What should the include directory be ? (.TLB text libraries)
1898 $ rp = "Where are the include files you want to use? "
1899 $ IF f$length( rp + "[''dflt'] " ).gt.76
1900 $ THEN rp = F$FAO("!AS!/!AS",rp,"[''dflt'] ")
1901 $ ELSE rp = rp + "[''dflt'] "
1906 $!: see if we have to deal with yellow pages, now NIS.
1907 $!: now get the host name
1910 $ echo4 "Figuring out host name..." !>&4
1912 $ IF myhostname.eqs."" THEN myhostname = F$TRNLNM("ARPANET_HOST_NAME")
1913 $ IF myhostname.eqs."" THEN myhostname = F$TRNLNM("INTERNET_HOST_NAME")
1914 $ IF myhostname.eqs."" THEN myhostname = F$TRNLNM("MULTINET_HOST_NAME")
1915 $ IF myhostname.eqs."" THEN myhostname = F$TRNLNM("UCX$INET_HOST_NAME")
1916 $ IF myhostname.eqs."".and. -
1917 F$TRNLNM("UCX$INET_HOST") .nes. "" .and. -
1918 F$TRNLNM("UCX$INET_DOMAIN") .nes. "" THEN -
1919 myhostname = F$TRNLNM("UCX$INET_HOST") + "." + F$TRNLNM("UCX$INET_DOMAIN")
1920 $ IF myhostname.eqs."" THEN myhostname = F$TRNLNM("TCPWARE_DOMAINNAME")
1921 $ IF myhostname.eqs."" THEN myhostname = F$TRNLNM("NEWS_ADDRESS")
1922 $ IF myhostname.eqs."" THEN myhostname = F$TRNLNM("SYS$NODE") - "::"
1923 $ IF myhostname.eqs."" THEN myhostname = F$EDIT(F$GETSYI("SCSNODE"),"TRIM")
1924 $!: you do not want to know about this
1926 $ rp = "Your host name appears to be """"''myhostname'"""". Right? "
1928 $ IF (.not.ans).and.(ans.NES."")
1930 $ READ SYS$COMMAND/PROMPT= -
1931 "Please type the (one word) name of your host: " ans
1934 $!: translate upper to lower if necessary
1935 $ myhostname = F$EDIT(myhostname,"COLLAPSE")
1936 $ mylowhostname = F$EDIT(myhostname," LOWERCASE")
1937 $ IF mylowhostname.NES.myhostname
1939 $ echo "(Normalizing case in your host name)"
1940 $ myhostname = mylowhostname
1943 $ fp = F$LOCATE(".",myhostname)
1944 $ mydomain = F$EXTRACT(fp,(F$LENGTH(myhostname)-fp)+1,myhostname)
1945 $ IF mydomain.NES."" !no periods in DECnet names like "MYDECNODE::"
1947 $ rp = "What is your domain name? [''mydomain'] "
1949 $ IF ans .nes. "" THEN mydomain = ans
1950 $!: translate upper to lower if necessary
1951 $ mydomain = F$EDIT(mydomain,"COLLAPSE")
1952 $ mylowdomain = F$EDIT(mydomain," LOWERCASE")
1953 $ IF mylowdomain.NES.mydomain
1955 $ echo "(Normalizing case in your domain name)"
1956 $ mydomain = mylowdomain
1959 $ myhostname = myhostname - mydomain
1960 $ echo "(Trimming domain name from host name--host name is now ''myhostname')"
1966 I need to get your e-mail address in Internet format if possible, i.e.
1967 something like user@host.domain. Please answer accurately since I have
1968 no easy means to double check it. The default value provided below
1969 is most probably close to the reality but may not be valid from outside
1970 your organization...
1973 $ dflt = "''cf_by'@''myhostname'"+"''mydomain'"
1974 $ rp = "What is your e-mail address? [''dflt'] "
1977 $ THEN cf_email = ans
1978 $ ELSE cf_email = dflt
1986 If you or somebody else will be maintaining perl at your site, please
1987 fill in the correct e-mail address here so that they may be contacted
1988 if necessary. Currently, the "perlbug" program included with perl
1989 will send mail to this address in addition to perlbug@perl.com. You may
1990 enter "none" for no administrator.
1993 $ dflt = "''cf_email'"
1994 $ rp = "Perl administrator e-mail address [''dflt'] "
1997 $ THEN perladmin = ans
1998 $ ELSE perladmin = dflt
2001 $!: determine where public executable scripts go
2002 $!: determine perl absolute location
2003 $!: figure out how to guarantee perl startup
2005 $!: see how we invoke the C preprocessor
2007 $! echo4 "Now, how can we feed standard input to your C preprocessor..." !>&4
2008 $!: Set private lib path
2009 $!: Now check and see which directories actually exist, avoiding duplicates
2010 $!: determine optimize, if desired, or use for debug flag also
2011 $!: We will not override a previous value, but we might want to
2012 $!: augment a hint file
2013 $!: the following weeds options from ccflags that are of no interest to cpp
2014 $!: flags used in final linking phase
2015 $!: Try to guess additional flags to pick up local libraries.
2018 $! echo4 "Checking your choice of C compiler and flags for coherency..." !>&4
2019 $!: compute shared library extension
2020 $!: Looking for optional libraries
2021 $!: see if nm is to be used to determine whether a symbol is defined or not
2022 $!: get list of predefined functions in a handy place
2023 $!: see if we have sigaction
2024 $!: see whether socketshr exists
2025 $ IF (F$SEARCH(F$PARSE("SocketShr","Sys$Share:.Exe")).NES."")
2027 $ Has_socketshr = "T"
2029 $ echo4 "Hmm... Looks like you have SOCKETSHR Berkeley networking support."
2031 $ Has_socketshr = "F"
2033 $ IF (Dec_C_Version .GE. 50200000) .or. using_cxx
2035 $ Has_Dec_C_Sockets = "T"
2037 $ echo4 "Hmm... Looks like you have Dec C Berkeley networking support."
2039 $ Has_Dec_C_Sockets = "F"
2041 $ ! Hey, we've got both. Default to Dec C, then, since it's better
2042 $ IF Has_socketshr .OR. Has_Dec_C_Sockets
2045 $ echo "You have sockets available. Which socket stack do you want to"
2046 $ echo "build into Perl?"
2047 $ IF Has_Dec_C_Sockets
2051 $ dflt = "SOCKETSHR"
2053 $ rp = "Choose socket stack (NONE"
2054 $ IF Has_socketshr THEN rp = rp + ",SOCKETSHR"
2055 $ IF Has_Dec_C_Sockets THEN rp = rp + ",DECC"
2056 $ rp = rp + ") [''dflt'] "
2058 $ IF ans .EQS. "" THEN ans = "''dflt'"
2059 $ Has_Dec_C_Sockets = "F"
2060 $ Has_socketshr = "F"
2061 $ ans = F$EDIT(ans,"TRIM,COMPRESS,LOWERCASE")
2062 $ IF ans.eqs."decc" then Has_Dec_C_Sockets = "T"
2063 $ IF ans.eqs."socketshr" then Has_socketshr = "T"
2065 $ IF Has_Dec_C_Sockets .or. Has_socketshr
2067 $ static_ext = f$edit(static_ext+" "+"Socket","trim,compress")
2071 $! Ask if they want to build with VMS_DEBUG perl
2073 $ echo "Perl can be built to run under the VMS debugger."
2074 $ echo "You should only select this option if you are debugging"
2075 $ echo "perl itself. This can be a useful feature if you are "
2076 $ echo "embedding perl in a program."
2078 $ rp = "Build a VMS-DEBUG version of Perl? [''dflt'] "
2080 $ IF ans.eqs."" then ans = dflt
2081 $ IF F$EXTRACT(0, 1, F$EDIT(ans,"COLLAPSE,UPCASE")) .eqs. "Y"
2083 $ use_vmsdebug_perl = "Y"
2084 $ macros = macros + """__DEBUG__=1"","
2086 $ use_vmsdebug_perl = "N"
2089 $! Ask if they want to build with DEBUGGING
2091 $ echo "Perl can be built with extra runtime debugging enabled. This"
2092 $ echo "enables the -D switch, at the cost of some performance. It"
2093 $ echo "was mandatory on perl 5.005 and before on VMS, but is now"
2094 $ echo "optional. If you do not generally use it you should probably"
2095 $ echo "leave this off and gain a bit of extra speed."
2097 $ rp = "Build a DEBUGGING version of Perl? [''dflt'] "
2099 $ IF ans.eqs."" then ans = dflt
2100 $ IF F$EXTRACT(0, 1, F$EDIT(ans,"COLLAPSE,UPCASE")) .eqs. "Y"
2102 $ use_debugging_perl = "Y"
2104 $ use_debugging_perl = "N"
2107 $! Ask if they want to build with MULTIPLICITY
2109 $ echo "Perl can be built so that multiple Perl interpreters can coexist"
2110 $ echo "within the same Perl executable."
2111 $ echo "There is some performance overhead, however, so you"
2112 $ echo "probably do not want to choose this unless you are going to be"
2113 $ echo "doing things with embedded perl."
2115 $ rp = "Build Perl for multiplicity? [''dflt'] "
2117 $ IF ans.eqs."" then ans = dflt
2120 $ usemultiplicity="define"
2122 $ usemultiplicity="undef"
2125 $! Ask if they want to build with 64-bit support
2126 $ IF (archname.eqs."VMS_AXP").and.("''f$extract(1,3, f$getsyi(""version""))'".ges."7.1")
2128 $ dflt = use64bitint
2130 $ echo "You can have native 64-bit long integers."
2132 $ echo "Perl can be built to take advantage of 64-bit integer types"
2133 $ echo "on some systems, which provide a much larger range for perl's"
2134 $ echo "mathematical operations. (Note that does *not* enable 64-bit"
2135 $ echo "fileops at the moment, as Dec C doesn't do that yet)."
2136 $ echo "Choosing this option will most probably introduce binary incompatibilities."
2138 $ echo "If this does not make any sense to you, just accept the default ''dflt'."
2139 $ rp = "Try to use 64-bit integers, if available? [''dflt'] "
2141 $ IF ans .EQS. "" THEN ans = dflt
2143 $ THEN use64bitint="Y"
2144 $ ELSE use64bitint="N"
2148 $ dflt = use64bitall
2150 $ echo "Since you chose 64-bitness you may want to try maximal 64-bitness."
2151 $ echo "What you have chosen is minimal 64-bitness which means just enough"
2152 $ echo "to get 64-bit integers. The maximal means using as much 64-bitness"
2153 $ echo "as is possible on the platform. This in turn means even more binary"
2154 $ echo "incompatibilities. On the other hand, your platform may not have"
2155 $ echo "any more maximal 64-bitness than what you already have chosen."
2157 $ echo "If this does not make any sense to you, just accept the default ''dflt'."
2158 $ rp = "Try to use full 64-bit support, if available? [''dflt'] "
2160 $ IF ans .EQS. "" THEN ans = dflt
2162 $ THEN use64bitall="Y"
2163 $ ELSE use64bitall="N"
2166 $ ENDIF ! AXP && >= 7.1
2168 $! Ask about threads, if appropriate
2169 $ IF Using_Dec_C .OR. using_cxx
2172 $ echo "This version of Perl can be built with threads. While really nifty,"
2173 $ echo "they are a beta feature, and there is a speed penalty for perl"
2174 $ echo "programs if you build with threads *even if you do not use them*."
2176 $ rp = "Build with threads? [''dflt'] "
2178 $ if ans.eqs."" then ans = dflt
2179 $ if (f$extract(0, 1, "''ans'").eqs."Y").or.(f$extract(0, 1, "''ans'").eqs."y")
2182 $ ! Shall we do the 5.005-stype threads, or IThreads?
2183 $ echo "As of 5.5.640, Perl has two different internal threading"
2184 $ echo "implementations, the 5.005 version (5005threads) and an"
2185 $ echo "interpreter-based version (ithreads) that has one"
2186 $ echo "interpreter per thread. Both are very experimental. This"
2187 $ echo "arrangement exists to help developers work out which one"
2190 $ echo "If you are a casual user, you probably do not want"
2191 $ echo "interpreter-threads at this time. There doesn't yet exist"
2192 $ echo "a way to create threads from within Perl in this model,"
2193 $ echo "i.e., ""use Thread;"" will NOT work."
2196 $ rp = "Build with Interpreter threads? [''dflt'] "
2198 $ if ans.eqs."" then ans = dflt
2199 $ if (f$extract(0, 1, "''ans'").eqs."Y").or.(f$extract(0, 1, "''ans'").eqs."y")
2202 $ use_5005_threads="N"
2205 $ use_5005_threads="Y"
2207 $ ! Are they on VMS 7.1 on an alpha?
2208 $ if (archname.eqs."VMS_AXP").and.("''f$extract(1,3, f$getsyi(""version""))'".ges."7.1")
2211 $ echo "Threaded perl can be linked to use multiple kernel threads"
2212 $ echo "and system upcalls on VMS 7.1+ on Alpha systems. This feature"
2213 $ echo "allows multiple threads to execute simultaneously on an SMP"
2214 $ echo "system as well as preventing a single thread from blocking"
2215 $ echo "all the threads in a program, even on a single-processor"
2216 $ echo "machine. Unfortunately, this feature isn't safe on an"
2217 $ echo "unpatched 7.1 system (several OS patches were required when"
2218 $ echo "this procedure was written)."
2220 $ rp = "Enable multiple kernel threads and upcalls? [''dflt'] "
2222 $ if ans.eqs."" then ans="''dflt'"
2223 $ if f$extract(0, 1, f$edit(ans,"TRIM,COMPRESS,UPCASE")).eqs."Y"
2225 $ Thread_Live_Dangerously = "MT=MT=1"
2230 $ IF archname .EQS. "VMS_AXP"
2234 $ echo "By default, perl (and pretty much everything else on VMS) uses"
2235 $ echo "case-insensitive linker symbols. Which is to say, when the"
2236 $ echo "underlying C code makes a call to a routine called Perl_foo in"
2237 $ echo "the source, the name in the object modules or shareable images"
2238 $ echo "is really PERL_FOO. There are some packages that use an"
2239 $ echo "embedded perl interpreter that instead require case-sensitive"
2240 $ echo "linker symbols."
2242 $ echo "If you have no idea what this means, and do not have"
2243 $ echo "any program requiring anything, choose the default."
2244 $ dflt = be_case_sensitive
2245 $ rp = "Build with case-sensitive symbols? [''dflt'] "
2247 $ IF ans .EQS. "" THEN ans="''dflt'"
2248 $ be_case_sensitive = "''ans'"
2251 $ echo "Perl normally uses G_FLOAT format floating point numbers"
2252 $ echo "internally, as do most things on VMS. You can, however, build"
2253 $ echo "with IEEE floating point numbers instead if you need to."
2254 $ dflt = use_ieee_math
2255 $ rp = "Use IEEE math? [''dflt'] "
2257 $ IF ans .eqs. "" THEN ans = "''dflt'"
2258 $ use_ieee_math = "''ans'"
2262 $ echo "Your compiler may want other flags. For this question you should include"
2263 $ echo "/INCLUDE=(whatever) and /DEFINE=(whatever), flags and any other flags"
2264 $ echo "or qualifiers used by the compiler."
2266 $ echo "To use no flags, specify the word ""none""."
2267 $ dflt = user_c_flags
2268 $ rp = "Any additional cc flags? [''dflt'] "
2270 $ IF ans .EQS. "" THEN ans = "''dflt'"
2271 $ IF ans .EQS. "none" THEN ans = ""
2272 $ user_c_flags = "''ans'"
2274 $! Ask whether they want to use secure logical translation when tainting
2276 $ echo "As Perl starts up, it checks several logical names, such as"
2277 $ echo "PERL5LIB and PERL_ENV_TABLES, which allow you to modify aspects"
2278 $ echo "of its behavior. For additional security, you may limit this"
2279 $ echo "process to executive- and kernel-mode translation when tainting"
2280 $ echo "is enabled. In this case, logical names normally skipped when"
2281 $ echo "tainting is enabled (e.g. PERL5OPTS) are translated as well."
2282 $ echo "If you do not choose to do this, the usual order of access modes"
2283 $ echo "is used for logical name translation."
2285 $ echo "This restriction does not apply to the %ENV hash or to implicit"
2286 $ echo "logical name translation during parsing of file specifications;"
2287 $ echo "these always use the normal sequence of access modes for logical"
2288 $ echo "name translation."
2290 $ rp = "Use secure logical name translation? [''dflt'] "
2292 $ IF ans .eqs. "" THEN ans = dflt
2294 $ THEN d_secintgenv := Y
2295 $ ELSE d_secintgenv := N
2298 $! Ask whether they want to default filetypes
2300 $ echo "When you pass the name of a program to Perl on the command line,"
2301 $ echo "it generally doesn't supply any defaults unless the -S command"
2302 $ echo "line switch is specified. In keeping with the VMS tradition of"
2303 $ echo "default file types, however, you can configure Perl to try default"
2304 $ echo "file types of nothing, .pl, and .com, in that order (e.g. typing"
2305 $ echo """$ perl foo"" would cause Perl to look for foo., then foo.pl, and"
2306 $ echo "finally foo.com)."
2308 $ echo "This is currently broken in some configurations. Only enable it if"
2309 $ echo "you know what you are doing."
2311 $ rp = "Always use default file types? [''dflt'] "
2313 $ IF ans .EQS. "" THEN ans = dflt
2315 $ THEN d_alwdeftype := Y
2316 $ ELSE d_alwdeftype := N
2318 $! Ask if they want to use perl's memory allocator
2320 $ echo "Perl has a built-in memory allocator that is tuned for normal"
2321 $ echo "memory usage. It is oftentimes better than the standard system"
2322 $ echo "memory allocator. It also has the advantage of providing memory"
2323 $ echo "allocation statistics, if you choose to enable them."
2325 $ IF F$TYPE(usemymalloc) .EQS. "STRING"
2327 $ IF usemymalloc THEN dflt = "y"
2329 $ rp = "Do you wish to attempt to use the malloc that comes with ''package'? [''dflt'] "
2331 $ IF ans .eqs. "" THEN ans = dflt
2333 $ THEN mymalloc := Y
2334 $ ELSE mymalloc := N
2338 $ IF use_debugging_perl
2341 $ echo "Perl can keep statistics on memory usage if you choose to use"
2342 $ echo "them. This is useful for debugging, but does have some"
2343 $ echo "performance overhead."
2345 $ rp = "Do you want the debugging memory allocator? [''dflt'] "
2347 $ IF ans .eqs. "" THEN ans = "''dflt'"
2348 $ use_debugmalloc = f$extract(0, 1, f$edit(ans, "COLLAPSE,UPCASE"))
2350 $ ! Check which memory allocator we want
2352 $ echo "There are currently three different memory allocators: the"
2353 $ echo "default (which is a pretty good general-purpose memory manager),"
2354 $ echo "the TWO_POT allocator (which is optimized to save memory for"
2355 $ echo "larger allocations), and PACK_MALLOC (which is optimized to save"
2356 $ echo "memory for smaller allocations). They're all good, but if your"
2357 $ echo "usage tends towards larger chunks use TWO_POT, otherwise use"
2358 $ echo "PACK_MALLOC."
2360 $ rp = "Memory allocator (DEFAULT, TWO_POT, PACK_MALLOC) [''dflt'] "
2362 $ if ans.eqs."" then ans = "''dflt'"
2363 $ if ans.eqs."TWO_POT" then use_two_pot_malloc = "Y"
2364 $ if ans.eqs."PACK_MALLOC" then use_pack_malloc = "Y"
2367 $! Ask for their default list of extensions to build
2369 $ echo "It is time to specify which modules you want to build into"
2370 $ echo "perl. Most of these are standard and should be chosen, though"
2371 $ echo "you might, for example, want to build GDBM_File instead of"
2372 $ echo "SDBM_File if you have the GDBM library built on your machine."
2374 $ echo "Which modules do you want to build into perl?"
2375 $! we need to add Byteloader to this list:
2376 $ 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"
2377 $ IF Using_Dec_C .OR. using_cxx
2379 $ dflt = dflt + " POSIX"
2383 $ if ans.eqs."" then ans = "''dflt'"
2387 $ x = f$elem(j," ",ans)
2389 $ if x .eqs. " " then goto exloop1
2391 $ k = f$locate("::",x)
2392 $ if k .ge. f$len(x) then goto exloop2
2393 $ x = f$extract(0,k,x) + "/" + f$extract(k+2,f$len(x)-2,x)
2399 $ ans = f$edit(a,"trim")
2404 $ x = f$elem(j," ",dflt)
2406 $ if x .eqs. " " then goto exloop3
2408 $ k = f$locate("::",x)
2409 $ if k .ge. f$len(x) then goto exloop4
2410 $ x = f$extract(0,k,x) + "/" + f$extract(k+2,f$len(x)-2,x)
2416 $ dflt = f$edit(a,"trim")
2418 $ extensions = "''ans'"
2419 $ known_extensions = "''dflt'"
2421 $! %Config-I-VMS, determine build/make utility here (make gmake mmk mms)
2423 $ echo "Checking your ""make"" utilities..."
2424 $! If the 'build' that you use is not here add it and it's test
2425 $! switch to the _END_ of these strings (and increment max_build)
2426 $! (e.g. builders = builders + "/FOOMAKE"
2427 $! probers = probers + " -fooVersionSwitch"
2428 $! ) & please let me know about it.
2429 $ builders = "IMAKE/GNUMAKE/MGMAKE/GMAKE/MAKE/MMS/MMK"
2430 $ probers = "-f Makefile. -v!-f Makefile. -v!-f Makefile. -v!-f Makefile. -v!-f Makefile. -v!/IDENT!/IDENT"
2436 $ OPEN/WRITE/ERROR=Open_error CONFIG Makefile.
2437 $ WRITE CONFIG "dont_make_anything_yet:"
2438 $ WRITE CONFIG F$FAO("!_")
2441 $ messages = F$ENVIRONMENT("MESSAGE")
2443 $ build = F$ELEMENT(n,"/",builders)
2444 $ probe = F$ELEMENT(n,"!",probers)
2445 $ echo "Testing whether you have ''build' on your system..."
2447 $! Noted with GNU Make version 3.60 that the $status and $severity
2448 $! with the 'probe' Makefile appear to be: $STATUS == "%X1000000C"
2449 $! $SEVERITY == "4".
2452 $ ON CONTROL_Y THEN GOTO Reenable_messages_build
2453 $ SET MESSAGE/NOFAC/NOSEV/NOIDENT/NOTEXT
2455 $ IF ($SEVERITY .EQ. 1) ! not adequate?
2458 $ IF (build .EQS. orig_dflt)
2460 $ default_set = "TRUE"
2463 $ ok_builders = ok_builders + " " + build
2464 $ IF (.NOT. default_set) THEN dflt = build
2468 $Reenable_messages_build:
2469 $ SET MESSAGE 'messages'
2472 $ IF (n .LT. max_build) THEN GOTO Build_probe
2475 $ IF (ok_builders .NES. "")
2477 $ echo "Here is the list of builders you can apparently use:"
2478 $ echo "(",ok_builders," )"
2479 $ rp = "Which """"make"""" utility do you wish to use? [''dflt'] "
2481 $ ans = F$EDIT(ans,"TRIM, COMPRESS")
2482 $ ans = F$EXTRACT(0,F$LOCATE(" ",ans),ans) !throw out "-f Makefile." here
2491 %Config-E-VMS, ERROR:
2492 Well this looks pretty serious. Perl5 cannot be compiled without a "make"
2493 utility of some sort and after checking my "builders" list I cannot find
2494 the symbol or command you use on your system to compile programs.
2497 $ READ SYS$COMMAND/PROMPT="Which ""MMS"" do you use? " ans
2498 $ ans = F$EDIT(ans,"TRIM, COMPRESS")
2499 $ ans = F$EXTRACT(0,F$LOCATE(" ",ans),ans) !throw out "-f Makefile." here
2502 $ echo "I do not know where ""make"" is, and my life depends on it."
2503 $ echo "Go find a make program or fix your DCL$PATH setting!"
2504 $ echo "ABORTING..."
2505 $ SET DEFAULT 'vms_default_directory_name' !be kind rewind
2507 $ EXIT 2 !$STATUS = "%X00000002" (error)
2513 $ DELETE/NOLOG Makefile.;
2519 There seems to be trouble. I just tried to create a file in
2521 $ echo4 'F$ENVIRONMENT("DEFAULT")'
2524 but was unsuccessful. I am stopping now. Please check that directories'
2525 PROTECTION bits. I will leave you in the directory where you started
2528 $ echo4 "ABORTING..."
2534 $! echo " Very well I will proceed with ""''build'"""
2535 $ make = F$EDIT(build,"UPCASE")
2537 $!: locate the preferred pager for this system
2538 $!pagers = "most|more|less|type/page"
2539 $ dflt = "type/page"
2540 $! assume that the presence of a most symbol indicates the presence
2542 $ IF F$TYPE(most) .EQS. "STRING" THEN dflt = "most"
2543 $ IF F$TYPE(pager) .EQS. "STRING" THEN dflt = pager
2544 $ rp="What pager is used on your system? [''dflt'] "
2551 $! update [.vms]config.vms here
2553 $! update makefile here
2554 $! echo4 "Updating makefile..."
2556 $ IF (make .EQS. "MMS").OR.(make .EQS. "MMK")
2558 $ makefile = "" !wrt MANIFEST dir
2559 $ UUmakefile = "[-]DESCRIP.MMS" !wrt CWD dir
2560 $ DEFmakefile = "DESCRIP.MMS" !wrt DEF dir (?)
2561 $ Makefile_SH = "descrip_mms.template"
2563 $ makefile = " -f Makefile." !wrt MANIFEST dir
2564 $ UUmakefile = "[-]Makefile." !wrt CWD dir
2565 $ DEFmakefile = "Makefile." !wrt DEF dir (?)
2566 $ Makefile_SH = "Makefile.in"
2569 $ IF macros .NES. ""
2571 $ tmp = F$LENGTH(macros)
2572 $ macros = F$EXTRACT(0,(tmp-1),macros) !miss trailing comma
2573 $ macros = "/macro=(" + macros + ")"
2575 $! Build up the extra C flags
2579 $ extra_flags = "''extra_flags'" + "/float=ieee/ieee=denorm_results"
2581 $ IF be_case_sensitive
2583 $ extra_flags = "''extra_flags'" + "/Names=As_Is"
2585 $ extra_flags = "''extra_flags'" + "''user_c_flags'"
2587 $ min_pgflquota = "100000"
2588 $ pgflquota = F$STRING(F$GETJPI("","PGFLQUOTA"))
2589 $ IF pgflquota .LES. min_pgflquota
2591 $ echo4 "Your PGFLQUOTA of ''pgflquota' appears too small to build ''package'."
2592 $ READ SYS$COMMAND/PROMPT="Continue? [n] " ans
2595 $ echo4 "Continuing..."
2597 $ echo4 "ABORTING..."
2603 $ echo4 "Checking the C run-time library."
2605 $! Former SUBCONFIGURE.COM
2607 $! - build a config.sh for VMS Perl.
2608 $! - use built config.sh to take config_h.SH -> config.h
2609 $! - also take vms/descrip_mms.template -> descrip.mms (VMS Makefile)
2610 $! vms/Makefile.in -> Makefile. (VMS GNU Makefile?)
2611 $! vms/Makefile.SH -> Makefile. (VMS GNU Makefile?)
2612 $! - build make_ext.com extension builder procedure.
2614 $! Note for folks from other platforms changing things in here:
2616 $! Fancy changes (based on compiler capabilities or VMS version or
2617 $! whatever) are tricky, so go ahead and punt on those.
2619 $! Simple changes, though (say, always setting something to 1, or undef,
2620 $! or something like that) are straightforward. Adding a new constant
2621 $! item for the ultimately created config.sh requires at least one
2622 $! (possibly more) line(s) to this file.
2624 $! Add a line in the format:
2626 $! $ WC "foo='undef'"
2628 $! somewhere between the line tagged '##BEGIN WRITE NEW CONSTANTS HERE##'
2629 $! and the one tagged '##END WRITE NEW CONSTANTS HERE##' (note the order
2630 $! is sorted ASCII and corresponds to the output of config.sh in the
2631 $! Bourne shell version of Configure).
2632 $! Be very careful with quoting, as it can be tricky.
2633 $! For example if instead of a constant string like 'undef' or 'define'
2634 $! you wanted to add something to VMS's config.sh that looks like:
2638 $! then add a line that looks like this before the
2639 $! '##END WRITE NEW CONSTANTS HERE##' tagged line:
2641 $! $ WC "blank_string='" + "'"
2643 $! (+ is the string concatenator and "''var'" has the effect
2644 $! of "${var}" in perl or sh, but "'const'" is not interpolated).
2646 $! Note that unitialized variables, such as a line like:
2648 $! $ WC "new_var='" + new_var + "'"
2650 $! should be avoided unless new_var has a value assigned prior
2651 $! to that line (think of perl's -w warnings).
2653 $! %DCL-W-UNDSYM, undefined symbol - check validity and spelling
2657 $ vms_ver = F$EXTRACT(1,3, osvers)
2658 $ IF F$LENGTH(Mcc) .EQ. 0 THEN Mcc := "cc"
2659 $ MCC = f$edit(mcc, "UPCASE")
2660 $ C_Compiler_Replace := "CC=CC=''Mcc'''ccflags'"
2663 $ Checkcc := "''Mcc'/prefix=all"
2669 $ Checkcc := "''Mcc'"
2672 $ ccflags = ccflags + extra_flags
2673 $ IF be_case_sensitive
2675 $ d_vms_be_case_sensitive = "define"
2677 $ d_vms_be_case_sensitive = "undef"
2679 $! Some constant defaults.
2680 $ hwname = f$getsyi("HW_NAME")
2681 $ myname = myhostname
2682 $ IF myname .EQS. "" THEN myname = F$TRNLNM("SYS$NODE")
2687 $ IF use64bitint .OR. use64bitint .EQS. "define"
2689 $ use64bitint = "define"
2690 $ uselargefiles = "define"
2691 $ uselongdouble = "define"
2692 $ usemorebits = "define"
2694 $ use64bitint = "undef"
2695 $ uselargefiles = "undef"
2696 $ uselongdouble = "undef"
2697 $ usemorebits = "undef"
2699 $ IF use64bitall .OR. use64bitall .EQS. "define"
2701 $ use64bitall = "define"
2703 $ use64bitall = "undef"
2706 $ usemymalloc=mymalloc
2710 $ IF (sharedperl .AND. F$GETSYI("HW_MODEL") .GE. 1024)
2724 $ dlobj="dl_vms''obj_ext'"
2726 $ cppstdin="''perl_cc'/noobj/preprocess=sys$output sys$input"
2728 $ cpprun="''perl_cc'/noobj/preprocess=sys$output sys$input"
2736 $ THEN d_mymalloc="define"
2737 $ ELSE d_mymalloc="undef"
2741 $ startperl="""$ perl 'f$env(\""procedure\"")' \""'"+"'p1'\"" \""'"+"'p2'\"" \""'"+"'p3'\"" \""'"+"'p4'\"" \""'"+"'p5'\"" \""'"+"'p6'\"" \""'"+"'p7'\"" \""'"+"'p8'\""!\n"
2742 $ startperl=startperl + "$ exit++ + ++$status!=0 and $exit=$status=undef; while($#ARGV != -1 and $ARGV[$#ARGV] eq '"+"'){pop @ARGV;}"""
2744 $ IF ((Use_Threads) .AND. (vms_ver .LES. "6.2"))
2746 $ 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"
2750 $ IF Using_Dec_C .OR. using_cxx
2757 $! perllibs should be libs with all non-core libs (such as gdbm) removed.
2763 $ IF use64bitint .OR. use64bitint .EQS. "define"
2765 $ d_PRId64 = "define"
2766 $ d_PRIEUldbl = "define"
2767 $ d_PRIFUldbl = "define"
2768 $ d_PRIGUldbl = "define"
2769 $ d_PRIeldbl = "define"
2770 $ d_PRIfldbl = "define"
2771 $ d_PRIgldbl = "define"
2772 $ d_PRIu64 = "define"
2773 $ d_PRIo64 = "define"
2774 $ d_PRIx64 = "define"
2775 $ sPRId64 = """Ld"""
2776 $ sPRIEUldbl = """LE"""
2777 $ sPRIFUldbl = """LF"""
2778 $ sPRIGUldbl = """LG"""
2779 $ sPRIXU64 = """LX"""
2780 $ sPRIeldbl = """Le"""
2781 $ sPRIfldbl = """Lf"""
2782 $ sPRIgldbl = """Lg"""
2783 $ sPRIi64 = """Li"""
2784 $ sPRIo64 = """Lo"""
2785 $ sPRIu64 = """Lu"""
2786 $ sPRIx64 = """Lx"""
2788 $ quadtype = "long long"
2789 $ uquadtype = "unsigned long long"
2790 $ quadkind = "QUAD_IS_LONG_LONG"
2791 $ d_frexpl = "define"
2792 $ d_isnan = "define"
2793 $ d_isnanl = "define"
2794 $ d_modfl = "define"
2796 $ d_PRId64 = "undef"
2797 $ d_PRIEUldbl = "define"
2798 $ d_PRIFUldbl = "define"
2799 $ d_PRIGUldbl = "define"
2800 $ d_PRIXU64 = "undef"
2801 $ d_PRIeldbl = "define"
2802 $ d_PRIfldbl = "undef"
2803 $ d_PRIgldbl = "undef"
2804 $ d_PRIu64 = "undef"
2805 $ d_PRIo64 = "undef"
2806 $ d_PRIx64 = "undef"
2808 $ sPRIEUldbl = """E"""
2809 $ sPRIFUldbl = """F"""
2810 $ sPRIGUldbl = """G"""
2811 $ sPRIXU64 = """lX"""
2812 $ sPRIeldbl = """e"""
2813 $ sPRIfldbl = """f"""
2814 $ sPRIgldbl = """g"""
2821 $ uquadtype = "unsigned long"
2822 $ quadkind = "QUAD_IS_LONG"
2823 $ d_frexpl = "undef"
2825 $ d_isnanl = "undef"
2828 $ d_SCNfldbl = d_PRIfldbl
2829 $ sSCNfldbl = sPRIfldbl ! expect consistency
2831 $! Now some that we build up
2835 $ IF use_5005_threads
2837 $ arch = "''arch'-thread"
2838 $ archname = "''archname'-thread"
2839 $ d_old_pthread_create_joinable = "undef"
2840 $ old_pthread_create_joinable = " "
2841 $ use5005threads = "define"
2842 $ useithreads = "undef"
2844 $ arch = "''arch'-ithread"
2845 $ archname = "''archname'-ithread"
2846 $ d_old_pthread_create_joinable = "undef"
2847 $ old_pthread_create_joinable = " "
2848 $ use5005threads = "undef"
2849 $ useithreads = "define"
2852 $ d_old_pthread_create_joinable = "undef"
2853 $ old_pthread_create_joinable = " "
2854 $ use5005threads = "undef"
2855 $ useithreads = "undef"
2858 $! Some that we need to invoke the compiler for
2861 $! handy construction aliases/symbols
2863 $ OS := "open/write CONFIG []try.c"
2864 $ WS := "write CONFIG"
2865 $ CS := "close CONFIG"
2866 $ DS := "delete/nolog/noconfirm []try.*;*"
2868 $ good_compile = %X10B90001
2871 $ open/write OPTCHAN []try.opt
2872 $ write OPTCHAN "Gnu_CC:[000000]gcclib.olb/library"
2873 $ write OPTCHAN "Sys$Share:VAXCRTL/Share"
2876 $ good_compile = %X10000001
2880 $ good_compile = %X15F60001
2882 $ good_link = %X10000001
2883 $ tmp = "" ! null string default
2885 $ GOTO beyond_compile_ok
2887 $! Check for type sizes
2892 $ WS "#if defined(__DECC) || defined(__DECCXX)"
2893 $ WS "#include <stdlib.h>"
2895 $ WS "#include <stdio.h>"
2898 $ WS "printf(""%d\n"", sizeof(''tmp'));"
2905 $!: locate header file
2909 $ WS "#if defined(__DECC) || defined(__DECCXX)"
2910 $ WS "#include <stdlib.h>"
2912 $ WS "#include <stdio.h>"
2913 $ WS "#include <''tmp'>"
2916 $ WS "printf(""define\n"");"
2923 $!: define an alternate in-header-list? function
2927 $ IF compile_status .EQ. good_compile .AND. link_status .EQ. good_link
2929 $ echo4 "<''tmp'> found."
2932 $ echo4 "<''tmp'> NOT found."
2937 $!: define an is-in-libc? function
2940 $ IF compile_status .EQ. good_compile .AND. link_status .EQ. good_link
2942 $ echo4 "''tmp'() found."
2945 $ echo4 "''tmp'() NOT found."
2950 $!: define a shorthand compile call
2954 $ IF compile_status .EQ. good_compile .AND. link_status .EQ. good_link
2956 $ OPEN/WRITE CONFIG []try.out
2957 $ DEFINE/USER_MODE SYS$ERROR CONFIG
2958 $ DEFINE/USER_MODE SYS$OUTPUT CONFIG
2961 $ OPEN/READ CONFIG []try.out
2964 $ DELETE/NOLOG/NOCONFIRM []try.out;
2965 $ DELETE/NOLOG/NOCONFIRM []try.exe;
2967 $ tmp = "" ! null string default
2973 $ DEFINE/USER_MODE SYS$ERROR _NLA0:
2974 $ DEFINE/USER_MODE SYS$OUTPUT _NLA0:
2978 $ 'ld' try.obj,try.opt/opt
2979 $ link_status = $status
2982 $ link_status = $status
2985 $ IF F$SEARCH("try.obj") .NES. "" THEN DELETE/NOLOG/NOCONFIRM try.obj;
2988 $!: define a shorthand compile call for compilations that should be ok.
2990 $ DEFINE/USER_MODE SYS$ERROR _NLA0:
2991 $ DEFINE/USER_MODE SYS$OUTPUT _NLA0:
2994 $ compile_status = $status
2996 $ DELETE/NOLOG/NOCONFIRM try.c;
3001 $! Check for __STDC__
3004 $ WS "#if defined(__DECC) || defined(__DECCXX)"
3005 $ WS "#include <stdlib.h>"
3007 $ WS "#include <stdio.h>"
3010 $ WS "#ifdef __STDC__"
3011 $ WS "printf(""42\n"");"
3013 $ WS "printf(""1\n"");"
3020 $ IF F$INTEGER(tmp) .eq. 42
3022 $ echo4 "Your C compiler and pre-processor defines the symbol:"
3026 $! Check for double size
3028 $ echo4 "Checking to see how big your double precision numbers are..."
3030 $ GOSUB type_size_check
3032 $ echo "Your double is ''doublesize' bytes long."
3034 $! Check for long double size
3037 $ WS "#if defined(__DECC) || defined(__DECCXX)"
3038 $ WS "#include <stdlib.h>"
3040 $ WS "#include <stdio.h>"
3043 $ WS "printf(""%d\n"", sizeof(long double));"
3047 $ echo4 "Checking to see if you have long double..."
3049 $ IF link_status .NE. good_link
3053 $ echo "You do not have long double."
3055 $ echo "You have long double."
3056 $ echo4 "Checking to see how big your long doubles are..."
3059 $ d_longdbl = "define"
3060 $ echo "Your long doubles are ''longdblsize' bytes long."
3063 $!: check for long long
3065 $ WS "#if defined(__DECC) || defined(__DECCXX)"
3066 $ WS "#include <stdlib.h>"
3068 $ WS "#include <stdio.h>"
3071 $ WS "printf(""%d\n"", sizeof(long long));"
3075 $ echo4 "Checking to see if you have long long..."
3077 $ IF link_status .NE. good_link
3080 $ d_longlong="undef"
3081 $ echo "You do not have long long."
3083 $ echo "You have long long."
3084 $ echo4 "Checking to see how big your long longs are..."
3086 $ longlongsize = tmp
3087 $ d_longlong = "define"
3088 $ echo "Your long longs are ''longlongsize' bytes long."
3091 $! Check the prototype for getgid
3093 $ echo "Looking for the type for group ids returned by getgid()."
3095 $ WS "#if defined(__DECC) || defined(__DECCXX)"
3096 $ WS "#include <stdlib.h>"
3098 $ WS "#include <stdio.h>"
3099 $ WS "#include <types.h>"
3107 $ IF compile_status .NE. good_compile
3109 $! Okay, gid_t failed. Must be unsigned int
3110 $ gidtype = "unsigned int"
3111 $ echo4 "assuming ""''gidtype'""."
3114 $ echo4 "gid_t found."
3117 $! Check to see if we've got dev_t
3119 $ echo "Looking for the type for dev."
3121 $ WS "#if defined(__DECC) || defined(__DECCXX)"
3122 $ WS "#include <stdlib.h>"
3124 $ WS "#include <stdio.h>"
3125 $ WS "#include <types.h>"
3133 $ IF compile_status .NE. good_compile
3135 $! Okay, dev_t failed. Must be unsigned int
3136 $ devtype = "unsigned int"
3137 $ echo4 "assuming ""''devtype'""."
3140 $ echo4 "dev_t found."
3143 $! Check to see if we've got unistd.h (which we ought to, but you never know)
3150 $!: see if this is a libutil.h system
3156 $! Check to see if we've got shadow.h (probably not, but...)
3162 $! Check to see if we've got socks.h (probably not, but...)
3168 $! Check the prototype for select
3170 $ IF Has_Dec_C_Sockets .OR. Has_Socketshr
3173 $ WS "#if defined(__DECC) || defined(__DECCXX)"
3174 $ WS "#include <stdlib.h>"
3176 $ WS "#include <stdio.h>"
3177 $ WS "#include <types.h>"
3178 $ IF i_unistd .EQS. "define" THEN WS "#include <unistd.h>"
3181 $ WS "#include <socketshr.h>"
3183 $ WS "#include <time.h>"
3184 $ WS "#include <socket.h>"
3191 $ WS "bar = select(2, foo, foo, foo, NULL);"
3196 $ IF compile_status .NE. good_compile
3198 $! Okay, select failed. Must be an int *
3199 $ selecttype = "int *"
3200 $ echo4 "select() NOT found."
3202 $ selecttype="fd_set *"
3203 $ echo4 "select() found."
3206 $ ! No sockets, so stick in an int * : no select, so pick a harmless default
3207 $ selecttype = "int *"
3210 $! Check to see if fd_set exists
3212 $ echo "Checking to see how well your C compiler handles fd_set and friends ..."
3214 $ WS "#if defined(__DECC) || defined(__DECCXX)"
3215 $ WS "#include <stdlib.h>"
3217 $ WS "#include <stdio.h>"
3218 $ WS "#include <types.h>"
3221 $ WS "#include <socketshr.h>"
3223 $ IF Has_Dec_C_Sockets
3225 $ WS "#include <time.h>"
3226 $ WS "#include <socket.h>"
3236 $ IF compile_status .ne. good_compile
3238 $! Okay, fd_set failed. Must not exist
3239 $ d_fd_set = "undef"
3240 $ echo4 "Hmm, your compiler has some difficulty with fd_set."
3243 $ echo4 "Well, your system knows about the normal fd_set typedef..."
3246 $! Check for inttypes.h
3248 $ tmp = "inttypes.h"
3252 $! Check to see if off64_t exists
3254 $ echo4 "Checking to see if you have off64_t..."
3256 $ WS "#if defined(__DECC) || defined(__DECCXX)"
3257 $ WS "#include <stdlib.h>"
3259 $ WS "#include <stdio.h>"
3260 $ WS "#include <types.h>"
3261 $ WS "#''i_inttypes' IIH"
3263 $ WS "#include <inttypes.h>"
3272 $ IF compile_status .EQ. good_compile
3274 $ d_off64_t="define"
3275 $ echo "You have off64_t."
3277 $ d_off64_t = "undef"
3278 $ echo "You do not have off64_t."
3281 $! Check to see if fpos64_t exists
3283 $ echo4 "Checking to see if you have fpos64_t..."
3285 $ WS "#if defined(__DECC) || defined(__DECCXX)"
3286 $ WS "#include <stdlib.h>"
3288 $ WS "#include <stdio.h>"
3289 $ WS "#include <types.h>"
3290 $ WS "#''i_inttypes' IIH"
3292 $ WS "#include <inttypes.h>"
3296 $ WS "fpos64_t bar;"
3301 $ IF compile_status .EQ. good_compile
3303 $ d_fpos64_t="define"
3304 $ echo "You have fpos64_t."
3306 $ d_fpos64_t = "undef"
3307 $ echo "You do not have fpos64_t."
3310 $! Check to see if int64_t exists
3312 $ echo4 "Checking to see if you have int64_t..."
3314 $ WS "#if defined(__DECC) || defined(__DECCXX)"
3315 $ WS "#include <stdlib.h>"
3317 $ WS "#include <stdio.h>"
3318 $ WS "#include <types.h>"
3319 $ WS "#''i_inttypes' IIH"
3321 $ WS "#include <inttypes.h>"
3330 $ IF compile_status .EQ. good_compile
3332 $ d_int64_t="define"
3333 $ echo "You have int64_t."
3335 $ d_int64_t = "undef"
3336 $ echo "You do not have int64_t."
3339 $!: see if this is a netdb.h system
3340 $ IF Has_Dec_C_Sockets
3347 $! Check for h_errno
3349 $ echo4 "Checking to see if you have h_errno..."
3351 $ WS "#if defined(__DECC) || defined(__DECCXX)"
3352 $ WS "#include <stdlib.h>"
3354 $ WS "#include <stdio.h>"
3355 $ IF i_unistd .EQS. "define" THEN WS "#include <unistd.h>"
3356 $ IF i_netdb .EQS. "define" THEN WS "#include <netdb.h>"
3364 $ IF compile_status .EQ. good_compile .AND. link_status .EQ. good_link
3367 $ echo "You have h_errno."
3370 $ echo "You do not have h_errno."
3373 $! Check to see if gethostname exists
3375 $ IF Has_Dec_C_Sockets .OR. Has_Socketshr
3378 $ WS "#if defined(__DECC) || defined(__DECCXX)"
3379 $ WS "#include <stdlib.h>"
3381 $ WS "#include <stdio.h>"
3382 $ WS "#include <types.h>"
3385 $ WS "#include <socketshr.h>"
3387 $ WS "#include <time.h>"
3388 $ WS "#include <socket.h>"
3392 $ WS "char name[100];"
3393 $ WS "int bar, baz;"
3395 $ WS "baz = gethostname(name, bar);"
3400 $ IF compile_status .EQ. good_compile .AND. link_status .EQ. good_link
3402 $ d_gethname="define"
3403 $ echo4 "gethostname() found."
3405 $ d_gethname="undef"
3408 $ ! No sockets, so no gethname
3409 $ d_gethname = "undef"
3412 $! Check for sys/file.h
3414 $ tmp = "sys/file.h"
3418 $! Check for sys/utsname.h
3420 $ tmp = "sys/utsname.h"
3422 $ i_sysutsname = tmp
3424 $! Check for syslog.h
3436 $! Check for sys/uio.h
3442 $! Check for sys/mode.h
3444 $ tmp = "sys/mode.h"
3448 $! Check for sys/access.h
3450 $ tmp = "sys/access.h"
3454 $! Check for sys/security.h
3456 $ tmp = "sys/security.h"
3460 $! Check for fcntl.h
3469 $ WS "#if defined(__DECC) || defined(__DECCXX)"
3470 $ WS "#include <stdlib.h>"
3472 $ WS "#include <stdio.h>"
3473 $ WS "#include <fcntl.h>"
3476 $ WS "fcntl(1,2,3);"
3484 $! Check for fcntl locking capability
3486 $ echo4 "Checking if fcntl-based file locking works... "
3488 $ IF d_fcntl .EQS. "define"
3491 $ WS "#include <stdio.h>"
3492 $ WS "#if defined(__DECC) || defined(__DECCXX)"
3493 $ WS "#include <stdlib.h>"
3495 $ WS "#include <fcntl.h>"
3496 $ WS "#include <unistd.h>"
3498 $ WS "#if defined(F_SETLK) && defined(F_SETLKW)"
3499 $ WS " struct flock flock;"
3500 $ WS " int retval, fd;"
3501 $ WS " fd = open(""try.c"", O_RDONLY);"
3502 $ WS " flock.l_type = F_RDLCK;"
3503 $ WS " flock.l_whence = SEEK_SET;"
3504 $ WS " flock.l_start = flock.l_len = 0;"
3505 $ WS " retval = fcntl(fd, F_SETLK, &flock);"
3507 $ WS " (retval < 0 ? printf(""undef\n"") : printf(""define\n""));"
3509 $ WS " printf(""undef\n"");"
3514 $ IF compile_status .EQ. good_compile .AND. link_status .EQ. good_link
3517 $ IF tmp .EQS. "define"
3519 $ echo4 "Yes, it seems to work."
3521 $ echo4 "Nope, it didn't work."
3524 $ echo4 "I'm unable to compile the test program, so I'll assume not."
3528 $ echo4 "Nope, since you don't even have fcntl()."
3530 $ d_fcntl_can_lock = tmp
3535 $ WS "#if defined(__DECC) || defined(__DECCXX)"
3536 $ WS "#include <stdlib.h>"
3538 $ WS "#include <string.h>"
3541 $ WS "char * place;"
3542 $ WS "place = memchr(""foo"", 47, 3)"
3550 $! Check for strtoull
3553 $ WS "#if defined(__DECC) || defined(__DECCXX)"
3554 $ WS "#include <stdlib.h>"
3556 $ WS "#include <string.h>"
3559 $ WS "unsigned __int64 result;"
3560 $ WS "result = strtoull(""123123"", NULL, 10);"
3568 $! Check for strtouq
3571 $ WS "#if defined(__DECC) || defined(__DECCXX)"
3572 $ WS "#include <stdlib.h>"
3574 $ WS "#include <string.h>"
3577 $ WS "unsigned __int64 result;"
3578 $ WS "result = strtouq(""123123"", NULL, 10);"
3586 $! Check for strtoll
3589 $ WS "#if defined(__DECC) || defined(__DECCXX)"
3590 $ WS "#include <stdlib.h>"
3592 $ WS "#include <string.h>"
3595 $ WS "__int64 result;"
3596 $ WS "result = strtoll(""123123"", NULL, 10);"
3607 $ WS "#if defined(__DECC) || defined(__DECCXX)"
3608 $ WS "#include <stdlib.h>"
3610 $ WS "#include <string.h>"
3613 $ WS "__int64 result;"
3614 $ WS "result = strtoq(""123123"", NULL, 10);"
3625 $ WS "#if defined(__DECC) || defined(__DECCXX)"
3626 $ WS "#include <stdlib.h>"
3628 $ WS "#include <string.h>"
3631 $ WS "__int64 result;"
3632 $ WS "result = strtoq(""123123"", NULL, 10);"
3640 $! Check for strtold
3643 $ WS "#if defined(__DECC) || defined(__DECCXX)"
3644 $ WS "#include <stdlib.h>"
3646 $ WS "#include <string.h>"
3649 $ WS "long double result;"
3650 $ WS "result = strtold(""123123"", NULL, 10);"
3661 $ WS "#if defined(__DECC) || defined(__DECCXX)"
3662 $ WS "#include <stdlib.h>"
3664 $ WS "#include <string.h>"
3667 $ WS " __int64 result;"
3668 $ WS "result = atoll(""123123"");"
3679 $ WS "#if defined(__DECC) || defined(__DECCXX)"
3680 $ WS "#include <stdlib.h>"
3682 $ WS "#include <string.h>"
3686 $ WS "result = atolf(""123123"");"
3697 $ WS "#if defined(__DECC) || defined(__DECCXX)"
3698 $ WS "#include <stdlib.h>"
3700 $ WS "#include <stdio.h>"
3703 $ WS "access(""foo"", F_OK);"
3714 $ WS "#if defined(__DECC) || defined(__DECCXX)"
3715 $ WS "#include <stdlib.h>"
3717 $ WS "#include <stdio.h>"
3718 $ WS "#include <strings.h>"
3721 $ WS "char foo[10];"
3722 $ WS "bzero(foo, 10);"
3733 $ WS "#if defined(__DECC) || defined(__DECCXX)"
3734 $ WS "#include <stdlib.h>"
3736 $ WS "#include <stdio.h>"
3737 $ WS "#include <strings.h>"
3740 $ WS "char foo[10], bar[10];"
3741 $ WS "bcopy(""foo"", bar, 3);"
3749 $! Check for mkstemp
3752 $ WS "#if defined(__DECC) || defined(__DECCXX)"
3753 $ WS "#include <stdlib.h>"
3755 $ WS "#include <stdio.h>"
3758 $ WS "mkstemp(""foo"");"
3766 $! Check for mkstemps
3769 $ WS "#if defined(__DECC) || defined(__DECCXX)"
3770 $ WS "#include <stdlib.h>"
3772 $ WS "#include <stdio.h>"
3775 $ WS "mkstemps(""foo"", 1);"
3786 $ WS "#if defined(__DECC) || defined(__DECCXX)"
3787 $ WS "#include <stdlib.h>"
3789 $ WS "#include <stdio.h>"
3790 $ WS "#include <iconv.h>"
3793 $ WS " iconv_t cd = (iconv_t)0;"
3794 $ WS " char *inbuf, *outbuf;"
3795 $ WS " size_t inleft, outleft;"
3796 $ WS " iconv(cd, &inbuf, &inleft, &outbuf, &outleft);"
3801 $ IF compile_status .ne. good_compile
3806 $ IF link_status .ne. good_link
3815 $ IF i_iconv .eqs. "define"
3816 $ THEN echo4 "<iconv.h> found."
3817 $ ELSE echo4 "<iconv.h> NOT found."
3820 $! Check for mkdtemp
3823 $ WS "#if defined(__DECC) || defined(__DECCXX)"
3824 $ WS "#include <stdlib.h>"
3826 $ WS "#include <stdio.h>"
3829 $ WS "mkdtemp(""foo"");"
3837 $! Check for setvbuf
3840 $ WS "#if defined(__DECC) || defined(__DECCXX)"
3841 $ WS "#include <stdlib.h>"
3843 $ WS "#include <stdio.h>"
3847 $ WS "char Buffer[99];"
3848 $ WS "foo = fopen(""foo"", ""r"");"
3849 $ WS "setvbuf(foo, Buffer, 0, 0);"
3860 $ WS "#if defined(__DECC) || defined(__DECCXX)"
3861 $ WS "#include <stdlib.h>"
3863 $ WS "#include <stdio.h>"
3866 $ WS "setenv(""FOO"", ""BAR"", 0);"
3874 $! Check for setproctitle
3877 $ WS "#if defined(__DECC) || defined(__DECCXX)"
3878 $ WS "#include <stdlib.h>"
3880 $ WS "#include <stdio.h>"
3883 $ WS "setproctitle(""%s"", ""FOO"");"
3887 $ tmp = "setproctitle"
3889 $ d_setproctitle = tmp
3891 $! Check for <netinet/in.h>
3893 $ IF Has_Dec_C_Sockets .or. Has_Socketshr
3895 $ tmp = "netinet/in.h"
3902 $! Check for <netinet/tcp.h>
3904 $ IF Has_Dec_C_Sockets .or. Has_Socketshr
3906 $ tmp = "netinet/tcp.h"
3908 $ i_netinettcp = tmp
3910 $ i_netinettcp="undef"
3913 $! Check for endhostent
3915 $ IF Has_Dec_C_Sockets .or. Has_Socketshr
3918 $ WS "#if defined(__DECC) || defined(__DECCXX)"
3919 $ WS "#include <stdlib.h>"
3921 $ WS "#include <stdio.h>"
3923 $ THEN WS "#include <socketshr.h>"
3924 $ ELSE IF i_netdb .EQS. "define" THEN WS "#include <netdb.h>"
3928 $ WS "endhostent();"
3932 $ tmp = "endhostent"
3939 $! Check for endnetent
3941 $ IF Has_Dec_C_Sockets .or. Has_Socketshr
3944 $ WS "#if defined(__DECC) || defined(__DECCXX)"
3945 $ WS "#include <stdlib.h>"
3947 $ WS "#include <stdio.h>"
3949 $ THEN WS "#include <socketshr.h>"
3950 $ ELSE IF i_netdb .EQS. "define" THEN WS "#include <netdb.h>"
3965 $! Check for endprotoent
3967 $ IF Has_Dec_C_Sockets .OR. Has_Socketshr
3970 $ WS "#if defined(__DECC) || defined(__DECCXX)"
3971 $ WS "#include <stdlib.h>"
3973 $ WS "#include <stdio.h>"
3975 $ THEN WS "#include <socketshr.h>"
3976 $ ELSE IF i_netdb .EQS. "define" THEN WS "#include <netdb.h>"
3980 $ WS "endprotoent();"
3984 $ tmp = "endprotoent"
3991 $! Check for endservent
3993 $ IF Has_Dec_C_Sockets .OR. Has_Socketshr
3996 $ WS "#if defined(__DECC) || defined(__DECCXX)"
3997 $ WS "#include <stdlib.h>"
3999 $ WS "#include <stdio.h>"
4001 $ THEN WS "#include <socketshr.h>"
4002 $ ELSE IF i_netdb .EQS. "define" THEN WS "#include <netdb.h>"
4006 $ WS "endservent();"
4010 $ tmp = "endservent"
4017 $! Check for sethostent
4019 $ IF Has_Dec_C_Sockets .OR. Has_Socketshr
4022 $ WS "#if defined(__DECC) || defined(__DECCXX)"
4023 $ WS "#include <stdlib.h>"
4025 $ WS "#include <stdio.h>"
4027 $ THEN WS "#include <socketshr.h>"
4028 $ ELSE IF i_netdb .EQS. "define" THEN WS "#include <netdb.h>"
4032 $ WS "sethostent(1);"
4036 $ tmp = "sethostent"
4043 $! Check for setnetent
4045 $ IF Has_Dec_C_Sockets .OR. Has_Socketshr
4048 $ WS "#if defined(__DECC) || defined(__DECCXX)"
4049 $ WS "#include <stdlib.h>"
4051 $ WS "#include <stdio.h>"
4053 $ THEN WS "#include <socketshr.h>"
4054 $ ELSE IF i_netdb .EQS. "define" THEN WS "#include <netdb.h>"
4058 $ WS "setnetent(1);"
4069 $! Check for setprotoent
4071 $ IF Has_Dec_C_Sockets .OR. Has_Socketshr
4074 $ WS "#if defined(__DECC) || defined(__DECCXX)"
4075 $ WS "#include <stdlib.h>"
4077 $ WS "#include <stdio.h>"
4079 $ THEN WS "#include <socketshr.h>"
4080 $ ELSE IF i_netdb .EQS. "define" THEN WS "#include <netdb.h>"
4084 $ WS "setprotoent(1);"
4088 $ tmp = "setprotoent"
4095 $! Check for setservent
4097 $ IF Has_Dec_C_Sockets .OR. Has_Socketshr
4100 $ WS "#if defined(__DECC) || defined(__DECCXX)"
4101 $ WS "#include <stdlib.h>"
4103 $ WS "#include <stdio.h>"
4105 $ THEN WS "#include <socketshr.h>"
4106 $ ELSE IF i_netdb .EQS. "define" THEN WS "#include <netdb.h>"
4110 $ WS "setservent(1);"
4114 $ tmp = "setservent"
4121 $! Check for gethostent
4123 $ IF Has_Dec_C_Sockets .OR. Has_Socketshr
4126 $ WS "#if defined(__DECC) || defined(__DECCXX)"
4127 $ WS "#include <stdlib.h>"
4129 $ WS "#include <stdio.h>"
4131 $ THEN WS "#include <socketshr.h>"
4132 $ ELSE IF i_netdb .EQS. "define" THEN WS "#include <netdb.h>"
4136 $ WS "gethostent();"
4140 $ tmp = "gethostent"
4147 $! Check for getnetent
4149 $ IF Has_Dec_C_Sockets .OR. Has_Socketshr
4152 $ WS "#if defined(__DECC) || defined(__DECCXX)"
4153 $ WS "#include <stdlib.h>"
4155 $ WS "#include <stdio.h>"
4157 $ THEN WS "#include <socketshr.h>"
4158 $ ELSE IF i_netdb .EQS. "define" THEN WS "#include <netdb.h>"
4173 $! Check for getprotoent
4175 $ IF Has_Dec_C_Sockets .OR. Has_Socketshr
4178 $ WS "#if defined(__DECC) || defined(__DECCXX)"
4179 $ WS "#include <stdlib.h>"
4181 $ WS "#include <stdio.h>"
4183 $ THEN WS "#include <socketshr.h>"
4184 $ ELSE IF i_netdb .EQS. "define" THEN WS "#include <netdb.h>"
4188 $ WS "getprotoent();"
4192 $ tmp = "getprotoent"
4199 $! Check for getservent
4201 $ IF Has_Dec_C_Sockets .OR. Has_Socketshr
4204 $ WS "#if defined(__DECC) || defined(__DECCXX)"
4205 $ WS "#include <stdlib.h>"
4207 $ WS "#include <stdio.h>"
4209 $ THEN WS "#include <socketshr.h>"
4210 $ ELSE IF i_netdb .EQS. "define" THEN WS "#include <netdb.h>"
4214 $ WS "getservent();"
4218 $ tmp = "getservent"
4225 $! Check for socklen_t
4227 $ IF Has_Dec_C_Sockets .OR. Has_Socketshr
4229 $ echo4 "Checking to see if you have socklen_t..."
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>"
4241 $ WS "socklen_t x = 16;"
4246 $ IF compile_status .EQ. good_compile .AND. link_status .EQ. good_link
4248 $ d_socklen_t="define"
4249 $ echo "You have socklen_t."
4251 $ d_socklen_t="undef"
4252 $ echo "You do not have socklen_t."
4255 $ d_socklen_t="undef"
4258 $! Check for pthread_yield
4263 $ WS "#if defined(__DECC) || defined(__DECCXX)"
4264 $ WS "#include <stdlib.h>"
4266 $ WS "#include <pthread.h>"
4267 $ WS "#include <stdio.h>"
4270 $ WS "pthread_yield();"
4274 $ tmp = "pthread_yield"
4276 $ d_pthread_yield = tmp
4278 $ d_pthread_yield="undef"
4281 $! Check for sched_yield
4286 $ WS "#if defined(__DECC) || defined(__DECCXX)"
4287 $ WS "#include <stdlib.h>"
4289 $ WS "#include <pthread.h>"
4290 $ WS "#include <stdio.h>"
4293 $ WS "sched_yield();"
4297 $ tmp = "sched_yield"
4299 $ d_sched_yield = tmp
4300 $ IF d_sched_yield .EQS. "define"
4301 $ THEN sched_yield = "sched_yield"
4302 $ ELSE sched_yield = " "
4305 $ d_sched_yield="undef"
4309 $! Check for generic pointer size
4311 $ echo4 "Checking to see how big your pointers are..."
4313 $ WS "#if defined(__DECC) || defined(__DECCXX)"
4314 $ WS "#include <stdlib.h>"
4316 $ WS "#include <stdio.h>"
4320 $ WS "foo = sizeof(char *);"
4321 $ WS "printf(""%d\n"", foo);"
4326 $ GOSUB type_size_check
4328 $ echo "Your pointers are ''ptrsize' bytes long."
4330 $! Check for size_t size
4334 $ echo4 "Checking the size of ''zzz'..."
4335 $ GOSUB type_size_check
4337 $ echo "Your ''zzz' size is ''sizesize' bytes."
4339 $! Check rand48 and its ilk
4341 $ echo4 "Looking for a random number function..."
4343 $ WS "#if defined(__DECC) || defined(__DECCXX)"
4344 $ WS "#include <stdlib.h>"
4346 $ WS "#include <stdio.h>"
4349 $ WS "srand48(12L);"
4354 $ IF compile_status .EQ. good_compile .AND. link_status .EQ. good_link
4356 $ drand01 = "drand48()"
4357 $ randseedtype = "long int"
4358 $ seedfunc = "srand48"
4359 $ echo4 "Good, found drand48()."
4360 $ d_drand48proto = "define"
4362 $ d_drand48proto = "undef"
4363 $ drand01="random()"
4364 $ randseedtype = "unsigned"
4365 $ seedfunc = "srandom"
4367 $ WS "#if defined(__DECC) || defined(__DECCXX)"
4368 $ WS "#include <stdlib.h>"
4370 $ WS "#include <stdio.h>"
4378 $ IF compile_status .EQ. good_compile .AND. link_status .EQ. good_link
4380 $ echo4 "OK, found random()."
4382 $ drand01="(((float)rand())/((float)RAND_MAX))"
4383 $ randseedtype = "unsigned"
4384 $ seedfunc = "srand"
4385 $ echo4 "Yick, looks like I have to use rand()."
4388 $! Done with compiler checks. Clean up.
4389 $ IF F$SEARCH("try.c") .NES."" THEN DELETE/NOLOG/NOCONFIRM try.c;*
4390 $ IF F$SEARCH("try.obj").NES."" THEN DELETE/NOLOG/NOCONFIRM try.obj;*
4391 $ IF F$SEARCH("try.exe").NES."" THEN DELETE/NOLOG/NOCONFIRM try.exe;*
4392 $ IF F$SEARCH("try.opt").NES."" THEN DELETE/NOLOG/NOCONFIRM try.opt;*
4393 $ IF F$SEARCH("try.out").NES."" THEN DELETE/NOLOG/NOCONFIRM try.out;*
4396 $ CALL Cxx_demangler_cleanup
4399 $! Some that are compiler or VMS version sensitive
4404 $ d_attribut="define"
4408 $ d_attribut="undef"
4411 $! Dec C >= 5.2 and VMS ver >= 7.0
4412 $ IF (Using_Dec_C).AND.(F$INTEGER(Dec_C_Version).GE.50200000).AND.(vms_ver .GES. "7.0")
4415 $ d_gettimeod="define"
4417 $ d_sigaction="define"
4418 $ d_truncate="define"
4422 $ 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"
4423 $ psnwc1="""ZERO"",""HUP"",""INT"",""QUIT"",""ILL"",""TRAP"",""IOT"",""EMT"",""FPE"",""KILL"",""BUS"",""SEGV"",""SYS"","
4424 $ psnwc2="""PIPE"",""ALRM"",""TERM"",""ABRT"",""USR1"",""USR2"",""SPARE18"",""SPARE19"",""CHLD"",""CONT"",""STOP"",""TSTP"","
4425 $ psnwc3="""TTIN"",""TTOU"",""DEBUG"",""SPARE27"",""SPARE28"",""SPARE29"",""SPARE30"",""SPARE31"",""SPARE32"",""RTMIN"",""RTMAX"",0"
4426 $ sig_name_init = psnwc1 + psnwc2 + psnwc3
4427 $ 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"
4428 $ 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"
4429 $! perl_sig_num_with_commas=sig_num_init
4431 $ d_pathconf="define"
4432 $ d_fpathconf="define"
4433 $ d_sysconf="define"
4434 $ d_sigsetjmp="define"
4436 $ pidtype="unsigned int"
4437 $ d_gettimeod="undef"
4440 $ d_sigaction="undef"
4441 $ d_truncate="undef"
4444 $ sig_name="ZERO HUP INT QUIT ILL TRAP IOT EMT FPE KILL BUS SEGV SYS PIPE ALRM TERM ABRT USR1 USR2"",0"
4445 $ psnwc1="""ZERO"",""HUP"",""INT"",""QUIT"",""ILL"",""TRAP"",""IOT"",""EMT"",""FPE"",""KILL"",""BUS"",""SEGV"",""SYS"","
4446 $ psnwc2="""PIPE"",""ALRM"",""TERM"",""ABRT"",""USR1"",""USR2"",0"
4447 $ sig_name_init = psnwc1 + psnwc2
4448 $ sig_num="0 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 6 16 17"",0"
4449 $ sig_num_init="0,1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,6,16,17,0"
4450 $! perl_sig_num_with_commas=sig_num_init
4451 $ uidtype="unsigned int"
4452 $ d_pathconf="undef"
4453 $ d_fpathconf="undef"
4455 $ d_sigsetjmp="undef"
4461 $ d_mbstowcs="define"
4463 $ d_stdiobase="define"
4464 $ d_stdio_cnt_lval="define"
4465 $ d_stdio_ptr_lval="define"
4466 $ d_stdstdio="define"
4467 $ d_wcstombs="define"
4470 $ d_strcoll="define"
4471 $ d_strxfrm="define"
4474 $ d_locconv="define"
4475 $ d_setlocale="define"
4476 $ vms_cc_type="decc"
4478 $ d_mbstowcs="undef"
4480 $ d_stdiobase="undef"
4481 $ d_stdio_cnt_lval="undef"
4482 $ d_stdio_ptr_lval="undef"
4483 $ d_stdstdio="undef"
4484 $ d_wcstombs="undef"
4492 $ d_setlocale="undef"
4494 $ d_stdio_ptr_lval_sets_cnt="undef"
4495 $ d_stdio_ptr_lval_nochange_cnt="undef"
4498 $ if Has_Socketshr .OR. Has_Dec_C_Sockets
4500 $ d_vms_do_sockets="define"
4504 $ netdb_hlen_type="int"
4505 $ netdb_host_type="char *"
4506 $ netdb_name_type="char *"
4507 $ netdb_net_type="long"
4508 $ d_gethbyaddr="define"
4509 $ d_gethbyname="define"
4510 $ d_getnbyaddr="define"
4511 $ d_getnbyname="define"
4512 $ d_getpbynumber="define"
4513 $ d_getpbyname="define"
4514 $ d_getsbyport="define"
4515 $ d_getsbyname="define"
4516 $ d_gethostprotos="define"
4517 $ d_getnetprotos="define"
4518 $ d_getprotoprotos="define"
4519 $ d_getservprotos="define"
4520 $ IF Using_Dec_C .OR. using_cxx
4522 $ socksizetype="unsigned int"
4524 $ socksizetype="int *"
4527 $ d_vms_do_sockets="undef"
4531 $ netdb_hlen_type="int"
4532 $ netdb_host_type="char *"
4533 $ netdb_name_type="char *"
4534 $ netdb_net_type="long"
4535 $ d_gethbyaddr="undef"
4536 $ d_gethbyname="undef"
4537 $ d_getnbyaddr="undef"
4538 $ d_getnbyname="undef"
4539 $ d_getpbynumber="undef"
4540 $ d_getpbyname="undef"
4541 $ d_getsbyport="undef"
4542 $ d_getsbyname="undef"
4543 $ d_gethostprotos="undef"
4544 $ d_getnetprotos="undef"
4545 $ d_getprotoprotos="undef"
4546 $ d_getservprotos="undef"
4547 $ socksizetype="undef"
4552 $ usethreads="define"
4553 $ d_pthreads_created_joinable="define"
4554 $ if (vms_ver .GES. "7.0")
4556 $ d_oldpthreads="undef"
4558 $ d_oldpthreads="define"
4561 $ d_oldpthreads="undef"
4562 $ usethreads="undef"
4563 $ d_pthreads_created_joinable="undef"
4566 $! new (5.005_62++) typedefs for primitives
4568 $ echo "Choosing the C types to be used for Perl's internal types..."
4570 $ uvtype="unsigned long"
4572 $ u8type="unsigned char"
4574 $ u16type="unsigned short"
4576 $ u32type="unsigned int"
4577 $ i64type="long long"
4578 $ u64type="unsigned long long"
4581 $ IF use64bitint .OR. use64bitint .EQS. "define"
4583 $ ivtype = "''i64type'"
4584 $ uvtype = "''u64type'"
4585 $ nvtype="long double"
4592 $ GOSUB type_size_check
4594 $ IF use64bitint .OR. use64bitint .EQS. "define" THEN i64size = tmp
4595 $ IF ivtype .eqs. "long"
4596 $ THEN longsize = tmp
4599 $ GOSUB type_size_check
4604 $ GOSUB type_size_check
4606 $ IF use64bitint .OR. use64bitint .EQS. "define" THEN u64size = tmp
4609 $ GOSUB type_size_check
4613 $ GOSUB type_size_check
4616 $ tmp = "''i16type'"
4617 $ GOSUB type_size_check
4619 $ IF i16type .eqs. "short"
4620 $ THEN shortsize = tmp
4623 $ gosub type_size_check
4627 $ tmp = "''u16type'"
4628 $ GOSUB type_size_check
4631 $ tmp = "''i32type'"
4632 $ GOSUB type_size_check
4634 $ IF i32type .eqs. "int"
4635 $ THEN intsize = tmp
4638 $ gosub type_size_check
4642 $ tmp = "''u32type'"
4643 $ gosub type_size_check
4647 $ GOSUB type_size_check
4650 $ echo "(IV will be ""''ivtype'"", ''ivsize' bytes)"
4651 $ echo "(UV will be ""''uvtype'"", ''uvsize' bytes)"
4652 $ echo "(NV will be ""''nvtype'"", ''nvsize' bytes)"
4654 $ echo4 "Checking whether your NVs can preserve your UVs..."
4656 $ WS "#if defined(__DECC) || defined(__DECCXX)"
4657 $ WS "#include <stdlib.h>"
4659 $ WS "#include <stdio.h>"
4661 $ WS " ''uvtype' k = (''uvtype')~0, l;"
4662 $ WS " ''nvtype' d;"
4664 $ WS " d = (''nvtype')l;"
4665 $ WS " l = (''uvtype')d;"
4667 $ WS " printf(""preserve\n"");"
4672 $ IF tmp .EQS. "preserve"
4674 $ d_nv_preserves_uv = "define"
4675 $ echo "Yes, they can."
4676 $ d_nv_preserves_uv_bits = F$STRING(F$INTEGER(uvsize) * 8)
4678 $ d_nv_preserves_uv = "undef"
4679 $ echo "No, they can't."
4680 $ echo4 "Checking how many bits of your UVs your NVs can preserve..."
4682 $ WS "#if defined(__DECC) || defined(__DECCXX)"
4683 $ WS "#include <stdlib.h>"
4685 $ WS "#include <stdio.h>"
4687 $ WS " ''uvtype' u = 0;"
4688 $ WS " int n = 8 * ''uvsize';"
4690 $ WS " for (i = 0; i < n; i++) {"
4691 $ WS " u = u << 1 | (''uvtype')1;"
4692 $ WS " if ((''uvtype')(''nvtype')u != u)"
4695 $ WS " printf(""%d\n"", i);"
4699 $ d_nv_preserves_uv_bits = tmp
4703 $ ivdformat="""ld"""
4704 $ uvuformat="""lu"""
4705 $ uvoformat="""lo"""
4706 $ uvxformat="""lx"""
4712 $! Finally the composite ones. All config
4714 $ myuname="''osname' ''myname' ''osvers' ''F$EDIT(hwname, "TRIM")'"
4716 $ IF Using_Dec_C .AND. (.NOT. using_cxx)
4718 $ ccflags="/Include=[]/Standard=Relaxed_ANSI/Prefix=All/Obj=''obj_ext'/NoList''ccflags'"
4720 $ i_dirent = "undef"
4723 $ i_dirent = "define"
4724 $ ccflags="/Include=[]/Standard=ANSI/Prefix=All/Obj=''obj_ext'/NoList''ccflags'"
4726 $ IF use_vmsdebug_perl
4728 $ optimize="/Debug/NoOpt"
4735 $! Okay, we've got everything configured. Now go write out a config.sh.
4736 $ basename_config_sh = F$PARSE(config_sh,,,"NAME",)+F$PARSE(config_sh,,,"TYPE",)
4737 $ echo4 "Creating ''basename_config_sh'..."
4738 $ open/write CONFIG 'config_sh'
4739 $ WC := write CONFIG
4741 $! ##BEGIN WRITE NEW CONSTANTS HERE##
4745 $ WC "# This file was produced by Configure.COM on a ''osname' system."
4747 $ WC "# Package name : ''package'"
4748 $ WC "# Source directory : ''src'"
4749 $ WC "# Configuration time: " + cf_time
4750 $ WC "# Configuration by : " + cf_by
4751 $ WC "# Target system : " + myuname
4753 $ WC "CONFIG='true'"
4754 $ WC "Makefile_SH='" + Makefile_SH + "'"
4755 $ WC "Mcc='" + Mcc + "'"
4756 $! WC "PERL_SUBVERSION='" + subversion + "'" ! VMS specific to descrip_mms.template
4757 $ WC "PERL_VERSION='" + patchlevel + "'" ! VMS specific to descrip_mms.template
4758 $ WC "alignbytes='" + alignbytes + "'"
4759 $ WC "aphostname='" + "'"
4761 $ WC "archlib='" + archlib + "'"
4762 $ WC "archlibexp='" + archlibexp + "'"
4763 $ WC "archname='" + archname + "'"
4764 $ WC "baserev='" + baserev + "'"
4765 $ WC "bin='" + bin + "'"
4766 $ WC "binexp='" + binexp + "'"
4767 $ WC "builddir='" + builddir + "'"
4768 $ WC "byteorder='1234'"
4769 $ WC "castflags='0'"
4770 $ WC "cc='" + perl_cc + "'"
4771 $ WC "cccdlflags='" + cccdlflags + "'"
4772 $ WC "ccdlflags='" + ccdlflags + "'"
4773 $ WC "ccflags='" + ccflags + "'"
4774 $ WC "ccversion='" + ccversion + "'"
4775 $ WC "cf_by='" + cf_by + "'"
4776 $ WC "cf_email='" + cf_email + "'"
4777 $ WC "cf_time='" + cf_time + "'"
4778 $ WC "config_args='" + config_args + "'"
4779 $ WC "config_sh='" + config_sh + "'"
4780 $ WC "cpp_stuff='" + cpp_stuff + "'"
4781 $ WC "cpplast='" + cpplast + "'"
4782 $ WC "cppminus='" + cppminus + "'"
4783 $ WC "cpprun='" + cpprun + "'"
4784 $ WC "cppstdin='" + cppstdin + "'"
4785 $ WC "crosscompile='undef'"
4786 $ WC "d__fwalk='undef'"
4787 $ WC "d_Gconvert='my_gconvert(x,n,t,b)'"
4788 $ WC "d_PRId64='" + d_PRId64 + "'"
4789 $ WC "d_PRIEldbl='" + d_PRIEUldbl + "'"
4790 $ WC "d_PRIFldbl='" + d_PRIFUldbl + "'"
4791 $ WC "d_PRIGldbl='" + d_PRIGUldbl + "'"
4792 $ WC "d_PRIX64='" + d_PRIXU64 + "'"
4793 $ WC "d_PRIeldbl='" + d_PRIeldbl + "'"
4794 $ WC "d_PRIfldbl='" + d_PRIfldbl + "'"
4795 $ WC "d_PRIgldbl='" + d_PRIgldbl + "'"
4796 $ WC "d_PRIo64='" + d_PRIo64 + "'"
4797 $ WC "d_PRIu64='" + d_PRIu64 + "'"
4798 $ WC "d_PRIx64='" + d_PRIx64 + "'"
4799 $ WC "d_SCNfldbl='" + d_SCNfldbl + "'"
4800 $ WC "d_access='" + d_access + "'"
4801 $ WC "d_accessx='undef'"
4802 $ WC "d_alarm='define'"
4803 $ WC "d_archlib='define'"
4804 $ WC "d_atolf='" + d_atolf + "'"
4805 $ WC "d_atoll='" + d_atoll + "'"
4806 $ WC "d_attribut='" + d_attribut + "'"
4807 $ WC "d_bcmp='" + d_bcmp + "'"
4808 $ WC "d_bcopy='" + d_bcopy + "'"
4809 $ WC "d_bincompat3='undef'"
4810 $ WC "d_bincompat5005='undef'"
4811 $ WC "d_bsdgetpgrp='undef'"
4812 $! WC "d_bsdpgrp='undef'"
4813 $ WC "d_bsdsetpgrp='undef'"
4814 $ WC "d_bzero='" + d_bzero + "'"
4815 $ WC "d_casti32='define'"
4816 $ WC "d_castneg='define'"
4817 $ WC "d_charvspr='undef'"
4818 $ WC "d_chown='define'"
4819 $ WC "d_chroot='undef'"
4820 $ WC "d_chsize='undef'"
4821 $ WC "d_cmsghdr_s='undef'"
4822 $ WC "d_const='define'"
4823 $ WC "d_crypt='define'"
4824 $ WC "d_csh='undef'"
4825 $ WC "d_cuserid='define'"
4826 $ WC "d_dbl_dig='define'"
4827 $ WC "d_difftime='define'"
4828 $ WC "d_dirnamlen='define'"
4829 $ WC "d_dlerror='undef'"
4830 $ WC "d_dlsymun='undef'"
4831 $ WC "d_dosuid='undef'"
4832 $ WC "d_drand48proto='" + d_drand48proto + "'"
4833 $ WC "d_dup2='define'"
4834 $ WC "d_eaccess='undef'"
4835 $ WC "d_endgrent='define'"
4836 $ WC "d_endhent='" + d_endhent + "'"
4837 $ WC "d_endnent='" + d_endnent + "'"
4838 $ WC "d_endpent='" + d_endpent + "'"
4839 $ WC "d_endpwent='define'"
4840 $ WC "d_endsent='" + d_endsent + "'"
4841 $ WC "d_eofnblk='undef'"
4842 $ WC "d_eunice='undef'"
4843 $ WC "d_fchmod='undef'"
4844 $ WC "d_fchown='undef'"
4845 $ WC "d_fcntl='" + d_fcntl + "'"
4846 $ WC "d_fcntl_can_lock='" + d_fcntl_can_lock + "'"
4847 $ WC "d_fd_set='" + d_fd_set + "'"
4848 $ WC "d_fgetpos='define'"
4849 $ WC "d_flexfnam='define'"
4850 $ WC "d_flock='undef'"
4851 $ WC "d_fork='undef'"
4852 $ WC "d_fpathconf='" + d_fpathconf + "'"
4853 $ WC "d_fpos64_t='" + d_fpos64_t + "'"
4854 $ WC "d_frexpl='" + d_frexpl + "'"
4855 $ WC "d_fs_data_s='undef'"
4856 $ WC "d_fseeko='undef'"
4857 $ WC "d_fsetpos='define'"
4858 $ WC "d_fstatfs='undef'"
4859 $ WC "d_fstatvfs='undef'"
4860 $ WC "d_fsync='undef'"
4861 $ WC "d_ftello='undef'"
4862 $ WC "d_getcwd='undef'"
4863 $ WC "d_getespwnam='undef'"
4864 $ WC "d_getfsstat='undef'"
4865 $ WC "d_getgrent='define'"
4866 $ WC "d_getgrps='undef'"
4867 $ WC "d_gethbyaddr='" + d_gethbyaddr + "'"
4868 $ WC "d_gethbyname='" + d_gethbyname + "'"
4869 $ WC "d_gethent='" + d_gethent + "'"
4870 $ WC "d_gethname='" + d_gethname + "'"
4871 $ WC "d_gethostprotos='" + d_gethostprotos + "'"
4872 $ WC "d_getlogin='define'"
4873 $ WC "d_getmnt='undef'"
4874 $ WC "d_getmntent='undef'"
4875 $ WC "d_getnbyaddr='" + d_getnbyaddr + "'"
4876 $ WC "d_getnbyname='" + d_getnbyname + "'"
4877 $ WC "d_getnent='" + d_getnent + "'"
4878 $ WC "d_getnetprotos='" + d_getnetprotos + "'"
4879 $ WC "d_getpagsz='undef'"
4880 $ WC "d_getpbyname='" + d_getpbyname + "'"
4881 $ WC "d_getpbynumber='" + d_getpbynumber + "'"
4882 $ WC "d_getpent='" + d_getpent + "'"
4883 $ WC "d_getpgid='undef'"
4884 $ WC "d_getpgrp2='undef'"
4885 $ WC "d_getpgrp='undef'"
4886 $ WC "d_getppid='undef'"
4887 $ WC "d_getprior='undef'"
4888 $ WC "d_getprotoprotos='" + d_getprotoprotos + "'"
4889 $ WC "d_getprpwnam='undef'"
4890 $ WC "d_getpwent='define'"
4891 $ WC "d_getsbyname='" + d_getsbyname + "'"
4892 $ WC "d_getsbyport='" + d_getsbyport + "'"
4893 $ WC "d_getsent='" + d_getsent + "'"
4894 $ WC "d_getservprotos='" + d_getservprotos + "'"
4895 $ WC "d_getspnam='undef'"
4896 $ WC "d_gettimeod='" + d_gettimeod + "'"
4897 $ WC "d_gnulibc='undef'"
4898 $ WC "d_grpasswd='undef'"
4899 $ WC "d_hasmntopt='undef'"
4900 $ WC "d_htonl='" + d_htonl + "'"
4901 $ WC "d_iconv='" + d_iconv +"'"
4902 $ WC "d_index='" + d_index + "'"
4903 $ WC "d_inetaton='undef'"
4904 $ WC "d_int64_t='" + d_int64_t + "'"
4905 $ WC "d_isascii='define'"
4906 $ WC "d_isnan='" + d_isnan + "'"
4907 $ WC "d_isnanl='" + d_isnanl + "'"
4908 $ WC "d_killpg='undef'"
4909 $ WC "d_lchown='undef'"
4910 $ WC "d_ldbl_dig='define'"
4911 $ WC "d_link='undef'"
4912 $ WC "d_llseek='undef'"
4913 $ WC "d_locconv='" + d_locconv + "'"
4914 $ WC "d_lockf='undef'"
4915 $ WC "d_longdbl='" + d_longdbl + "'"
4916 $ WC "d_longlong='" + d_longlong + "'"
4917 $ WC "d_lseekproto='define'"
4918 $ WC "d_lstat='undef'"
4919 $ WC "d_madvise='undef'"
4920 $ WC "d_mblen='" + d_mblen + "'"
4921 $ WC "d_mbstowcs='" + d_mbstowcs + "'"
4922 $ WC "d_mbtowc='" + d_mbtowc + "'"
4923 $ WC "d_memchr='" + d_memchr + "'"
4924 $ WC "d_memcmp='define'"
4925 $ WC "d_memcpy='define'"
4926 $ WC "d_memmove='define'"
4927 $ WC "d_memset='define'"
4928 $ WC "d_mkdir='define'"
4929 $ WC "d_mkdtemp='" + d_mkdtemp + "'"
4930 $ WC "d_mkfifo='undef'"
4931 $ WC "d_mknod='undef'"
4932 $ WC "d_mkstemp='" + d_mkstemp + "'"
4933 $ WC "d_mkstemps='" + d_mkstemps + "'"
4934 $ WC "d_mktime='" + d_mktime + "'"
4935 $ WC "d_mmap='undef'"
4936 $ WC "d_modfl='" + d_modfl + "'"
4937 $ WC "d_mprotect='undef'"
4938 $ WC "d_msg='undef'"
4939 $ WC "d_msg_ctrunc='undef'"
4940 $ WC "d_msg_dontroute='undef'"
4941 $ WC "d_msg_oob='undef'"
4942 $ WC "d_msg_peek='undef'"
4943 $ WC "d_msg_proxy='undef'"
4944 $ WC "d_msghdr_s='undef'"
4945 $ WC "d_msync='undef'"
4946 $ WC "d_munmap='undef'"
4947 $ WC "d_mymalloc='" + d_mymalloc + "'"
4948 $ WC "d_nice='define'"
4949 $ WC "d_nv_preserves_uv='" + d_nv_preserves_uv + "'"
4950 $ WC "d_nv_preserves_uv_bits='" + d_nv_preserves_uv_bits + "'"
4951 $ WC "d_off64_t='" + d_off64_t + "'"
4952 $ WC "d_old_pthread_create_joinable='" + d_old_pthread_create_joinable + "'"
4953 $ WC "d_oldarchlib='define'"
4954 $ WC "d_oldpthreads='" + d_oldpthreads + "'"
4955 $ WC "d_open3='define'"
4956 $ WC "d_pathconf='" + d_pathconf + "'"
4957 $ WC "d_pause='define'"
4958 $ WC "d_perl_otherlibdirs='undef'"
4959 $ WC "d_phostname='undef'"
4960 $ WC "d_pipe='define'"
4961 $ WC "d_poll='undef'"
4962 $ WC "d_pthread_yield='" + d_pthread_yield + "'"
4963 $ WC "d_pthreads_created_joinable='" + d_pthreads_created_joinable + "'"
4964 $ WC "d_pwage='undef'"
4965 $ WC "d_pwchange='undef'"
4966 $ WC "d_pwclass='undef'"
4967 $ WC "d_pwcomment='define'"
4968 $ WC "d_pwexpire='undef'"
4969 $ WC "d_pwgecos='define'"
4970 $ WC "d_pwpasswd='define'"
4971 $ WC "d_pwquota='undef'"
4972 $ WC "d_qgcvt='undef'"
4973 $ WC "d_quad='" + d_quad + "'"
4974 $ WC "d_readdir='define'"
4975 $ WC "d_readlink='undef'"
4976 $ WC "d_readv='undef'"
4977 $ WC "d_recvmsg='undef'"
4978 $ WC "d_rename='define'"
4979 $ WC "d_rewinddir='define'"
4980 $ WC "d_rmdir='define'"
4981 $ WC "d_safebcpy='undef'"
4982 $ WC "d_safemcpy='define'"
4983 $ WC "d_sanemcmp='define'"
4984 $ WC "d_sbrkproto='undef'"
4985 $ WC "d_sched_yield='" + d_sched_yield + "'"
4986 $ WC "d_scm_rights='undef'"
4987 $ WC "d_seekdir='define'"
4988 $ WC "d_select='" + d_select + "'"
4989 $ WC "d_sem='undef'"
4990 $ WC "d_semctl_semid_ds='undef'"
4991 $ WC "d_semctl_semun='undef'"
4992 $ WC "d_sendmsg='undef'"
4993 $ WC "d_setegid='undef'"
4994 $ WC "d_setenv='" + d_setenv + "'"
4995 $ WC "d_seteuid='undef'"
4996 $ WC "d_setgrent='undef'"
4997 $ WC "d_setgrps='undef'"
4998 $ WC "d_sethent='" + d_sethent + "'"
4999 $ WC "d_setlinebuf='undef'"
5000 $ WC "d_setlocale='" + d_setlocale + "'"
5001 $ WC "d_setnent='" + d_setnent + "'"
5002 $ WC "d_setpent='" + d_setpent + "'"
5003 $ WC "d_setpgid='undef'"
5004 $ WC "d_setpgrp2='undef'"
5005 $ WC "d_setpgrp='undef'"
5006 $ WC "d_setprior='undef'"
5007 $ WC "d_setproctitle='" + d_setproctitle + "'"
5008 $ WC "d_setpwent='define'"
5009 $ WC "d_setregid='undef'"
5010 $ WC "d_setresgid='undef'"
5011 $ WC "d_setresuid='undef'"
5012 $ WC "d_setreuid='undef'"
5013 $ WC "d_setrgid='undef'"
5014 $ WC "d_setruid='undef'"
5015 $ WC "d_setsent='" + d_setsent + "'"
5016 $ WC "d_setsid='undef'"
5017 $ WC "d_setvbuf='" + d_setvbuf + "'"
5018 $ WC "d_sfio='undef'"
5019 $ WC "d_shm='undef'"
5020 $ WC "d_shmatprototype='undef'"
5021 $ WC "d_sigaction='" + d_sigaction + "'"
5022 $ WC "d_sigsetjmp='" + d_sigsetjmp + "'"
5023 $ WC "d_socket='" + d_socket + "'"
5024 $ WC "d_socklen_t='" + d_socklen_t + "'"
5025 $ WC "d_sockpair='undef'"
5026 $ WC "d_socks5_init='undef'"
5027 $ WC "d_sqrtl='define'"
5028 $ WC "d_statblks='undef'"
5029 $ WC "d_statfs_f_flags='undef'"
5030 $ WC "d_statfs_s='undef'"
5031 $ WC "d_statfsflags='undef'"
5032 $ WC "d_stdio_cnt_lval='" + d_stdio_cnt_lval + "'"
5033 $ WC "d_stdio_ptr_lval='" + d_stdio_ptr_lval + "'"
5034 $ WC "d_stdio_ptr_lval_sets_cnt='" + d_stdio_ptr_lval_sets_cnt + "'"
5035 $ WC "d_stdio_ptr_lval_nochange_cnt='" + d_stdio_ptr_lval_nochange_cnt + "'"
5036 $ WC "d_stdio_stream_array='undef'"
5037 $ WC "d_stdiobase='" + d_stdiobase + "'"
5038 $ WC "d_stdstdio='" + d_stdstdio + "'"
5039 $ WC "d_strchr='define'"
5040 $ WC "d_strcoll='" + d_strcoll + "'"
5041 $ WC "d_strctcpy='define'"
5042 $ WC "d_strerrm='strerror((e),vaxc$errno)'"
5043 $ WC "d_strerror='define'"
5044 $ WC "d_strtod='define'"
5045 $ WC "d_strtol='define'"
5046 $ WC "d_strtold='" + d_strtold + "'"
5047 $ WC "d_strtoll='" + d_strtoll + "'"
5048 $ WC "d_strtoq='define'"
5049 $ WC "d_strtoul='define'"
5050 $ WC "d_strtoull='" + d_strtoull + "'"
5051 $ WC "d_strtouq='" + d_strtouq + "'"
5052 $ WC "d_strxfrm='" + d_strxfrm + "'"
5053 $ WC "d_suidsafe='undef'"
5054 $ WC "d_symlink='undef'"
5055 $ WC "d_syscall='undef'"
5056 $ WC "d_sysconf='" + d_sysconf + "'"
5057 $ WC "d_syserrlst='undef'"
5058 $ WC "d_system='define'"
5059 $ WC "d_tcgetpgrp='undef'"
5060 $ WC "d_tcsetpgrp='undef'"
5061 $ WC "d_telldir='define'"
5062 $ WC "d_telldirproto='define'"
5063 $ WC "d_times='define'"
5064 $ WC "d_truncate='" + d_truncate + "'"
5065 $ WC "d_tzname='undef'"
5066 $ WC "d_umask='define'"
5067 $ WC "d_uname='" + d_uname + "'"
5068 $ WC "d_union_semun='undef'"
5069 $ WC "d_unlink_all_versions='undef'"
5070 $ WC "d_ustat='undef'"
5071 $ WC "d_vendorarch='undef'"
5072 $ WC "d_vendorlib='undef'"
5073 $ WC "d_vfork='define'"
5074 $ WC "d_vms_case_sensitive_symbols='" + d_vms_be_case_sensitive + "'" ! VMS
5075 $ WC "d_vms_do_sockets='" + d_vms_do_sockets + "'" ! VMS
5076 $ WC "d_void_closedir='define'"
5077 $ WC "d_volatile='define'"
5078 $ WC "d_vprintf='define'"
5079 $ WC "d_wait4='" + d_wait4 + "'"
5080 $ WC "d_waitpid='define'"
5081 $ WC "d_wcstombs='" + d_wcstombs + "'"
5082 $ WC "d_wctomb='" + d_wctomb + "'"
5083 $ WC "d_writev='undef'"
5084 $ WC "db_hashtype=' '"
5085 $ WC "db_prefixtype=' '"
5086 $ WC "dbgprefix='" + dbgprefix + "'"
5087 $ WC "defvoidused='15'"
5088 $ WC "devtype='" + devtype + "'"
5089 $ WC "direntrytype='struct dirent'"
5090 $ WC "dlext='" + dlext + "'"
5091 $ WC "dlobj='" + dlobj + "'"
5092 $ WC "dlsrc='dl_vms.c'"
5093 $ WC "doublesize='" + doublesize + "'"
5094 $ WC "drand01='" + drand01 + "'"
5095 $ WC "dynamic_ext='" + extensions + "'"
5097 $ WC "ebcdic='undef'"
5098 $ WC "embedmymalloc='" + mymalloc + "'"
5099 $ WC "eunicefix=':'"
5100 $ WC "exe_ext='" + exe_ext + "'"
5101 $ WC "extensions='" + extensions + "'"
5102 $ WC "fflushNULL='define'"
5103 $ WC "fflushall='undef'"
5104 $ WC "fpostype='fpos_t'"
5105 $ WC "freetype='void'"
5106 $ WC "full_ar='" + "'"
5107 $ WC "full_csh='" + " '"
5108 $ WC "full_sed='_NLA0:'"
5109 $ WC "gccversion='" + gccversion + "'"
5110 $ WC "gidformat='lu'"
5113 $ WC "gidtype='" + gidtype + "'"
5114 $ WC "groupstype='Gid_t'"
5116 $ WC "hintfile='" + "'"
5117 $ WC "i16size='" + i16size + "'"
5118 $ WC "i16type='" + i16type + "'"
5119 $ WC "i32size='" + i32size + "'"
5120 $ WC "i32type='" + i32type + "'"
5121 $ WC "i64size='" + i64size + "'"
5122 $ WC "i64type='" + i64type + "'"
5123 $ WC "i8size='" + i8size + "'"
5124 $ WC "i8type='" + i8type + "'"
5125 $ WC "i_arpainet='undef'"
5126 $ WC "i_dbm='undef'"
5127 $ WC "i_dirent='" + i_dirent + "'"
5128 $ WC "i_dlfcn='undef'"
5129 $ WC "i_fcntl='" + i_fcntl + "'"
5130 $ WC "i_float='define'"
5131 $ WC "i_grp='undef'"
5132 $ WC "i_iconv='" + i_iconv +"'"
5133 $ WC "i_ieeefp='undef'"
5134 $ WC "i_inttypes='" + i_inttypes + "'"
5135 $ WC "i_libutil='" + i_libutil + "'"
5136 $ WC "i_limits='define'"
5137 $ WC "i_locale='" + i_locale + "'"
5138 $ WC "i_machcthr='undef'"
5139 $ WC "i_machcthreads='undef'"
5140 $ WC "i_math='define'"
5141 $ WC "i_memory='undef'"
5142 $ WC "i_mntent='undef'"
5143 $ WC "i_ndbm='undef'"
5144 $ WC "i_netdb='" + i_netdb + "'"
5145 $ WC "i_neterrno='define'"
5146 $ WC "i_netinettcp='" + i_netinettcp + "'"
5147 $ WC "i_niin='" + i_niin + "'"
5148 $ WC "i_poll='" + i_poll + "'"
5149 $ WC "i_prot='undef'"
5150 $ WC "i_pthread='define'"
5151 $ WC "i_pwd='undef'"
5152 $ WC "i_rpcsvcdbm='undef'"
5153 $ WC "i_sfio='undef'"
5154 $ WC "i_sgtty='undef'"
5155 $ WC "i_shadow='" + i_shadow + "'"
5156 $ WC "i_socks='" + i_socks + "'"
5157 $ WC "i_stdarg='define'"
5158 $ WC "i_stddef='define'"
5159 $ WC "i_stdlib='define'"
5160 $ WC "i_string='define'"
5161 $ WC "i_sunmath='undef'"
5162 $ WC "i_sysaccess='" + i_sysaccess + "'"
5163 $ WC "i_sysdir='undef'"
5164 $ WC "i_sysfile='" + i_sysfile + "'"
5165 $ WC "i_sysioctl='undef'"
5166 $ WC "i_syslog='" + i_syslog + "'"
5167 $ WC "i_sysmman='undef'"
5168 $ WC "i_sysmode='" + i_sysmode + "'"
5169 $ WC "i_sysmount='undef'"
5170 $ WC "i_sysndir='undef'"
5171 $ WC "i_sysparam='undef'"
5172 $ WC "i_sysresrc='undef'"
5173 $ WC "i_syssecrt='" + i_syssecrt + "'"
5174 $ WC "i_sysselct='undef'"
5175 $ WC "i_sysstat='define'"
5176 $ WC "i_sysstatfs='undef'"
5177 $ WC "i_sysstatvfs='undef'"
5178 $ WC "i_systime='undef'"
5179 $ WC "i_systimek='undef'"
5180 $ WC "i_systimes='undef'"
5181 $ WC "i_systypes='define'"
5182 $ WC "i_sysuio='" + i_sysuio + "'"
5183 $ WC "i_sysun='undef'"
5184 $ WC "i_sysutsname='" + i_sysutsname + "'"
5185 $ WC "i_sysvfs='undef'"
5186 $ WC "i_syswait='undef'"
5187 $ WC "i_termio='undef'"
5188 $ WC "i_termios='undef'"
5189 $ WC "i_time='define'"
5190 $ WC "i_unistd='" + i_unistd + "'"
5191 $ WC "i_ustat='undef'"
5192 $ WC "i_utime='undef'"
5193 $ WC "i_values='undef'"
5194 $ WC "i_varargs='undef'"
5195 $ WC "i_vfork='undef'"
5196 $ WC "inc_version_list='0'"
5197 $ WC "inc_version_list_init='0'"
5198 $ WC "installarchlib='" + installarchlib + "'"
5199 $ WC "installbin='" + installbin + "'"
5200 $ WC "installman1dir='" + installman1dir + "'"
5201 $ WC "installman3dir='" + installman3dir + "'"
5202 $ WC "installprivlib='" + installprivlib + "'"
5203 $ WC "installscript='" + installscript + "'"
5204 $ WC "installsitearch='" + installsitearch + "'"
5205 $ WC "installsitelib='" + installsitelib + "'"
5206 $ WC "installusrbinperl='undef'"
5207 $ WC "intsize='" + intsize + "'"
5208 $ WC "ivdformat='" + ivdformat + "'"
5209 $ WC "ivsize='" + ivsize + "'"
5210 $ WC "ivtype='" + ivtype + "'"
5211 $ WC "known_extensions='" + known_extensions + "'"
5212 $ WC "ld='" + ld + "'"
5213 $ WC "lddlflags='/Share'"
5214 $ WC "ldflags='/NoTrace/NoMap'"
5215 $ WC "lib_ext='" + lib_ext + "'"
5216 $ WC "libc='" + libc + "'"
5217 $ WC "libpth='/sys$share /sys$library'"
5218 $ WC "libs='" + libs + "'"
5219 $ WC "longdblsize='" + longdblsize + "'"
5220 $ WC "longlongsize='" + longlongsize + "'"
5221 $ WC "longsize='" + longsize + "'"
5222 $ WC "lseeksize='4'"
5223 $ WC "lseektype='int'"
5225 $ WC "make='" + make + "'"
5226 $ WC "malloctype='void *'"
5227 $ WC "man1ext='rno'"
5228 $ WC "man3ext='rno'"
5229 $ WC "mmaptype=' " + "'"
5230 $ WC "modetype='unsigned int'"
5231 $ WC "multiarch='undef'"
5232 $ WC "mydomain='" + mydomain + "'"
5233 $ WC "myhostname='" + myhostname + "'"
5234 $ WC "myuname='" + myuname + "'"
5235 $ WC "need_va_copy='undef'"
5236 $ WC "netdb_hlen_type='" + netdb_hlen_type + "'"
5237 $ WC "netdb_host_type='" + netdb_host_type + "'"
5238 $ WC "netdb_name_type='" + netdb_name_type + "'"
5239 $ WC "netdb_net_type='" + netdb_net_type + "'"
5240 $ WC "nveformat='" + nveformat + "'"
5241 $ WC "nvfformat='" + nvfformat + "'"
5242 $ WC "nvgformat='" + nvgformat + "'"
5243 $ WC "nvsize='" + nvsize + "'"
5244 $ WC "nvtype='" + nvtype + "'"
5245 $ WC "o_nonblock=' '"
5246 $ WC "obj_ext='" + obj_ext + "'"
5247 $ WC "old_pthread_create_joinable='" + old_pthread_create_joinable + "'"
5248 $ WC "oldarchlib='" + oldarchlib + "'"
5249 $ WC "oldarchlibexp='" + oldarchlibexp + "'"
5250 $ WC "optimize='" + optimize + "'"
5251 $ WC "osname='" + osname + "'"
5252 $ WC "osvers='" + osvers + "'"
5253 $ WC "otherlibdirs='" + "'"
5254 $ WC "package='" + package + "'"
5255 $ WC "pager='" + pager + "'"
5256 $ WC "patchlevel='" + patchlevel + "'"
5258 $ WC "perl_root='" + perl_root + "'" ! VMS specific $trnlnm()
5259 $ WC "perladmin='" + perladmin + "'"
5260 $ WC "perllibs='" + perllibs + "'"
5261 $ WC "pgflquota='" + pgflquota + "'"
5262 $ WC "pidtype='" + pidtype + "'"
5263 $ WC "pm_apiversion='" + version + "'"
5264 $! WC "prefix='" + vms_prefix + "'"
5265 $ WC "prefix='" + prefix + "'"
5266 $ WC "privlib='" + privlib + "'"
5267 $ WC "privlibexp='" + privlibexp + "'"
5268 $ WC "prototype='define'"
5269 $ WC "ptrsize='" + ptrsize + "'"
5270 $ WC "quadkind='" + quadkind + "'"
5271 $ WC "quadtype='" + quadtype + "'"
5272 $ WC "randbits='31'"
5273 $ WC "randseedtype='" + randseedtype + "'"
5274 $ WC "ranlib='" + "'"
5275 $ WC "rd_nodata=' '"
5276 $ WC "revision='" + revision + "'"
5277 $ WC "sPRId64='" + sPRId64 + "'"
5278 $ WC "sPRIEldbl='" + sPRIEUldbl + "'"
5279 $ WC "sPRIFldbl='" + sPRIFUldbl + "'"
5280 $ WC "sPRIGldbl='" + sPRIGUldbl + "'"
5281 $ WC "sPRIX64='" + sPRIXU64 + "'"
5282 $ WC "sPRIeldbl='" + sPRIeldbl + "'"
5283 $ WC "sPRIfldbl='" + sPRIfldbl + "'"
5284 $ WC "sPRIgldbl='" + sPRIgldbl + "'"
5285 $! WC "sPRIi64='" + sPRIi64 + "'"
5286 $ WC "sPRIo64='" + sPRIo64 + "'"
5287 $ WC "sPRIu64='" + sPRIu64 + "'"
5288 $ WC "sPRIx64='" + sPRIx64 + "'"
5289 $ WC "sSCNfldbl='" + sSCNfldbl + "'"
5290 $ WC "sched_yield='" + sched_yield + "'"
5291 $ WC "seedfunc='" + seedfunc + "'"
5292 $ WC "selectminbits='32'"
5293 $ WC "selecttype='" + selecttype + "'"
5295 $ WC "shmattype='" + "'"
5296 $ WC "shortsize='" + shortsize + "'"
5297 $ WC "shrplib='define'"
5298 $ WC "sig_name='" + sig_name + "'"
5299 $ tmp = "sig_name_init='" + sig_name_init + "'"
5302 $ WC "sig_num='" + sig_num + "'"
5303 $ WC "sig_num_init='" + sig_num_init + "'"
5304 $ WC "signal_t='" + signal_t + "'"
5305 $ WC "sitearch='" + sitearch + "'"
5306 $ WC "sitearchexp='" + sitearchexp + "'"
5307 $ WC "sitelib='" + sitelib + "'"
5308 $ WC "sitelib_stem='" + sitelib_stem + "'"
5309 $ WC "sitelibexp='" + sitelibexp + "'"
5310 $ WC "sizesize='" + sizesize + "'"
5311 $ WC "sizetype='size_t'"
5312 $ WC "so='" + so + "'"
5313 $ WC "socksizetype='" + socksizetype + "'"
5314 $ WC "spitshell='write sys$output '"
5315 $ WC "src='" + src + "'"
5316 $ WC "ssizetype='int'"
5317 $ WC "startperl=" + startperl ! This one's special--no enclosing single quotes
5318 $ WC "static_ext='" + static_ext + "'"
5319 $ WC "stdchar='" + stdchar + "'"
5320 $ WC "stdio_base='((*fp)->_base)'"
5321 $ WC "stdio_bufsiz='((*fp)->_cnt + (*fp)->_ptr - (*fp)->_base)'"
5322 $ WC "stdio_cnt='((*fp)->_cnt)'"
5323 $ WC "stdio_ptr='((*fp)->_ptr)'"
5324 $ WC "stdio_stream_array=' " + "'"
5325 $ WC "subversion='" + subversion + "'"
5326 $ WC "timetype='" + timetype + "'"
5327 $ WC "u16size='" + u16size + "'"
5328 $ WC "u16type='" + u16type + "'"
5329 $ WC "u32size='" + u32size + "'"
5330 $ WC "u32type='" + u32type + "'"
5331 $ WC "u64size='" + u64size + "'"
5332 $ WC "u64type='" + u64type + "'"
5333 $ WC "u8size='" + u8size + "'"
5334 $ WC "u8type='" + u8type + "'"
5335 $ WC "uidformat='lu'"
5338 $ WC "uidtype='" + uidtype + "'"
5339 $ WC "uquadtype='" + uquadtype + "'"
5340 $ WC "use5005threads='" + use5005threads + "'"
5341 $ WC "use64bitall='" + use64bitall + "'"
5342 $ WC "use64bitint='" + use64bitint + "'"
5343 $ WC "usedebugging_perl='" + use_debugging_perl + "'"
5344 $ WC "usedl='" + usedl + "'"
5345 $ WC "useithreads='" + useithreads + "'"
5346 $ WC "uselargefiles='" + uselargefiles + "'"
5347 $ WC "uselongdouble='" + uselongdouble + "'"
5348 $ WC "usemorebits='" + usemorebits + "'"
5349 $ WC "usemultiplicity='" + usemultiplicity + "'"
5350 $ WC "usemymalloc='" + usemymalloc + "'"
5351 $ WC "useperlio='undef'"
5352 $ WC "useposix='false'"
5353 $ WC "usesocks='undef'"
5354 $ WC "usethreads='" + usethreads + "'"
5355 $ WC "usevfork='true'"
5356 $ WC "uvoformat='" + uvoformat + "'"
5357 $ WC "uvsize='" + uvsize + "'"
5358 $ WC "uvtype='" + uvtype + "'"
5359 $ WC "uvuformat='" + uvuformat + "'"
5360 $ WC "uvxformat='" + uvxformat + "'"
5361 $ WC "vendorarchexp='" + "'"
5362 $ WC "vendorlib_stem='" + "'"
5363 $ WC "vendorlibexp='" + "'"
5364 $ WC "version='" + version + "'"
5365 $ WC "vms_cc_type='" + vms_cc_type + "'" ! VMS specific
5366 $ WC "vms_prefix='" + vms_prefix + "'" ! VMS specific
5367 $ WC "vms_ver='" + vms_ver + "'" ! VMS specific
5368 $ WC "voidflags='15'"
5369 $ WC "xs_apiversion='" + version + "'"
5370 $ WC "CONFIGDOTSH='true'"
5372 $! ##END WRITE NEW CONSTANTS HERE##
5376 $! Okay, we've gotten here. Build munchconfig.exe
5377 $ COPY/NOLOG [-.vms]munchconfig.c []
5378 $ COPY/NOLOG [-.vms]'Makefile_SH' []
5379 $ 'Perl_CC' munchconfig.c
5382 $ OPEN/WRITE CONFIG []munchconfig.opt
5385 $ WRITE CONFIG "Gnu_CC:[000000]gcclib.olb/library"
5387 $ WRITE CONFIG "Sys$Share:VAXCRTL/Share"
5389 $ 'ld' munchconfig.obj,munchconfig.opt/opt
5390 $ DELETE/NOLOG/NOCONFIRM munchconfig.opt;
5392 $ 'ld' munchconfig.obj
5394 $ IF F$SEARCH("munchconfig.obj") .NES. "" THEN DELETE/NOLOG/NOCONFIRM munchconfig.obj;
5395 $ IF F$SEARCH("munchconfig.c") .NES. "" THEN DELETE/NOLOG/NOCONFIRM munchconfig.c;
5398 $ CALL Cxx_demangler_cleanup
5401 $ IF alldone .EQS. ""
5406 If you'd like to make any changes to the config.sh file before I begin
5407 to configure things, answer yes to the following question.
5411 $ rp="Do you wish to edit ''basename_config_sh'? [''dflt'] "
5413 $ IF ans .EQS. "" then ans = dflt
5417 $ echo4 "Be sure to type LOGOUT after you have edited the file,"
5418 $ echo4 "then this procedure will resume."
5420 $ default = F$ENVIRONMENT("DEFAULT")
5421 $ DIRECTORY 'config_sh'
5424 $ SET DEFAULT 'default'
5429 $ echo4 "Adding ''osname' specific preprocessor commands."
5431 $ ! we need an fdl file
5432 $ CREATE [-]CONFIG.FDL
5437 $ CREATE /FDL=[-]CONFIG.FDL [-]CONFIG.LOCAL
5438 $ ! First spit out the header info with the local defines (to get
5439 $ ! around the 255 character command line limit)
5440 $ OPEN/APPEND CONFIG [-]config.local
5441 $ IF use_debugging_perl THEN WC "#define DEBUGGING"
5442 $ IF use_two_pot_malloc THEN WC "#define TWO_POT_OPTIMIZE"
5443 $ IF mymalloc THEN WC "#define EMBEDMYMALLOC"
5444 $ IF use_pack_malloc THEN WC "#define PACK_MALLOC"
5445 $ IF use_debugmalloc THEN WC "#define DEBUGGING_MSTATS"
5446 $ IF Using_Gnu_C THEN WC "#define GNUC_ATTRIBUTE_CHECK"
5447 $ IF (Has_Dec_C_Sockets)
5449 $ WC "#define VMS_DO_SOCKETS"
5450 $ WC "#define DECCRTL_SOCKETS"
5452 $ IF Has_Socketshr THEN WC "#define VMS_DO_SOCKETS"
5454 $! This is VMS-specific for now
5455 $ WC "#''d_setenv' HAS_SETENV"
5456 $ IF d_secintgenv THEN WC "#define SECURE_INTERNAL_GETENV"
5457 $ IF d_alwdeftype THEN WC "#define ALWAYS_DEFTYPES"
5458 $ IF use64bitint .OR. use64bitint .EQS. "define"
5460 $ WC "#define USE_64_BIT_INT"
5461 $ WC "#define USE_LONG_DOUBLE"
5463 $ IF use64bitall .OR. use64bitall .EQS. "define" THEN -
5464 WC "#define USE_64_BIT_ALL"
5465 $ IF be_case_sensitive THEN WC "#define VMS_WE_ARE_CASE_SENSITIVE"
5466 $ IF d_herrno .EQS. "undef" THEN WC "#define NEED_AN_H_ERRNO"
5467 $ WC "#define HAS_ENVGETENV"
5468 $ WC "#define PERL_EXTERNAL_GLOB"
5471 $ echo4 "Doing variable substitutions on .SH files..."
5472 $ echo4 "Extracting config.h (with variable substitutions)"
5474 $! Now build the normal config.h
5475 $ DEFINE/USER_MODE sys$output [-]config.main
5476 $ mcr []munchconfig 'config_sh' [-]config_h.sh
5477 $ ! Concatenate them together
5478 $ copy [-]config.local,[-]config.main [-]config.h
5480 $ DELETE/NOLOG [-]CONFIG.MAIN;*
5481 $ DELETE/NOLOG [-]CONFIG.LOCAL;*
5482 $ DELETE/NOLOG [-]CONFIG.FDL;*
5486 $ DECC_REPLACE = "DECC=decc=1"
5488 $ DECC_REPLACE = "DECC="
5492 $ DECCXX_REPLACE = "DECCXX=DECCXX=1"
5494 $ DECCXX_REPLACE = "DECCXX="
5498 $ GNUC_REPLACE = "GNUC=gnuc=1"
5500 $ GNUC_REPLACE = "GNUC="
5502 $ IF Has_Dec_C_Sockets
5504 $ SOCKET_REPLACE = "SOCKET=DECC_SOCKETS=1"
5508 $ SOCKET_REPLACE = "SOCKET=SOCKETSHR_SOCKETS=1"
5510 $ SOCKET_REPLACE = "SOCKET="
5515 $ IF (vms_ver .LES. "6.2")
5517 $ THREAD_REPLACE = "THREAD=OLDTHREADED=1"
5519 $ THREAD_REPLACE = "THREAD=THREADED=1"
5522 $ THREAD_REPLACE = "THREAD="
5526 $ MALLOC_REPLACE = "MALLOC=MALLOC=1"
5528 $ MALLOC_REPLACE = "MALLOC="
5530 $ echo4 "Extracting ''defmakefile' (with variable substitutions)"
5531 $ DEFINE/USER_MODE sys$output 'UUmakefile'
5532 $ mcr []munchconfig 'config_sh' 'Makefile_SH' "''DECC_REPLACE'" -
5533 "''DECCXX_REPLACE'" "''ARCH_TYPE'" "''GNUC_REPLACE'" "''SOCKET_REPLACE'" -
5534 "''THREAD_REPLACE'" "''C_Compiler_Replace'" "''MALLOC_REPLACE'" -
5535 "''Thread_Live_Dangerously'" "PV=''version'" "FLAGS=FLAGS=''extra_flags'"
5536 $! Clean up after ourselves
5537 $ DELETE/NOLOG/NOCONFIRM []munchconfig.exe;
5538 $ echo4 "Extracting make_ext.com (without variable substitutions)"
5539 $ Create Sys$Disk:[-]make_ext.com
5540 $ Deck/Dollar="$EndOfTpl$"
5542 $! NOTE: This file is extracted as part of the VMS configuration process.
5543 $! Any changes made to it directly will be lost. If you need to make any
5544 $! changes, please edit the template in Configure.Com instead.
5545 $ def = F$Environment("Default")
5546 $ exts1 = F$Edit(p1,"Compress")
5547 $ p2 = F$Edit(p2,"Upcase,Compress,Trim")
5548 $ If F$Locate("MCR ",p2).eq.0 Then p2 = F$Extract(3,255,p2)
5549 $ miniperl = "$" + F$Search(F$Parse(p2,".Exe"))
5551 $ if f$type('p3') .nes. "" then makeutil = 'p3'
5552 $ targ = F$Edit(p4,"Lowercase")
5555 $ ext = F$Element(i," ",p1)
5556 $ If ext .eqs. " " Then Goto done
5557 $ Define/User_mode Perl_Env_Tables CLISYM_LOCAL
5560 ($extdir = $ENV{'ext'}) =~ s/::/./g;
5562 if ($extdir =~ /^vms/i) { $extdir =~ s/vms/.vms.ext/i; }
5563 else { $extdir = ".ext.$extdir"; }
5564 ($ENV{'extdir'} = "[$extdir]");
5565 ($ENV{'up'} = ('-') x ($extdir =~ tr/././));
5567 $ Set Default &extdir
5569 $ If F$Locate("clean",targ) .eqs. F$Length(targ)
5571 $ Write Sys$Output ""
5572 $ Write Sys$Output " Making ''ext' (dynamic)"
5573 $ On Error Then Goto done
5574 $ If F$Search("Descrip.MMS") .eqs. ""
5578 $ If F$CvTime(F$File("Descrip.MMS","rdt")) .lts. -
5579 F$CvTime(F$File("Makefile.PL","rdt")) Then redesc = 1
5582 $ Write Sys$Output "''targ'ing ''ext' . . ."
5583 $ On Error Then Continue
5586 miniperl "-I[''up'.lib]" Makefile.PL "INST_LIB=[''up'.lib]" "INST_ARCHLIB=[''up'.lib]"
5599 $! Warn of dangerous symbols or logical names
5601 $Bad_environment: SUBROUTINE
5603 $ IF p2 .eqs. "SYMBOL"
5605 $ IF f$type('p1') .nes. "" THEN Bad_env := SYMBOL
5607 $ IF f$trnlnm(p1) .nes. "" THEN Bad_env := LOGICAL
5609 $ IF Bad_env .eqs. "SYMBOL" .or. Bad_env .eqs. "LOGICAL"
5611 $ IF f$search("config.msg") .nes. ""
5613 $ OPEN/APPEND CONFIG config.msg
5615 $ OPEN/WRITE CONFIG config.msg
5617 $ IF Bad_env .eqs. "SYMBOL"
5620 $ WRITE CONFIG "Symbol name ''p1' found in environment as " + &p1
5621 $ WRITE CONFIG " delete before building ''package' via:"
5622 $ WRITE CONFIG " $ DELETE/SYMBOL/GLOBAL ''p1'"
5623 $ IF f$locate("""",&p1) .ge. f$length(&p1)
5625 $ WRITE CONFIG " after building, testing, and installing ''package'"
5626 $ WRITE CONFIG " restore the symbol with:"
5627 $ WRITE CONFIG " $ ''p1' == """ + &p1 + """"
5630 $ IF Bad_env .eqs. "LOGICAL"
5633 $ WRITE CONFIG "Logical name ''p1' found in environment as " + f$trnlnm(p1)
5634 $ WRITE CONFIG " deassign before building ''package'"
5640 $ ENDSUBROUTINE ! Bad_environment
5642 $ echo4 "Checking for dangerous pre-existing global symbols and logical names."
5643 $ CALL Bad_environment "TMP"
5644 $ CALL Bad_environment "LIB"
5645 $ CALL Bad_environment "T"
5646 $ CALL Bad_environment "FOO"
5647 $ CALL Bad_environment "EXT"
5648 $ CALL Bad_environment "TEST" "SYMBOL"
5649 $ IF f$search("config.msg") .eqs. "" THEN echo "OK."
5651 $! %Config-I-VMS, write perl_setup.com here
5653 $ IF (.NOT.perl_symbol)
5655 $ file_2_find = "[-]''packageup'.cld"
5657 $ echo4 "The perl.cld file is now being written..."
5658 $ OPEN/WRITE CONFIG 'file_2_find'
5660 $ IF ((sharedperl) .AND. (F$GETSYI("HW_MODEL") .GE. 1024)) THEN ext := .AXE
5661 $ IF (use_vmsdebug_perl)
5663 $ WRITE CONFIG "define verb dbgperl"
5664 $ WRITE CONFIG F$FAO("!_!AS","image ''vms_prefix':[000000]dbgperl''ext'")
5665 $ WRITE CONFIG F$FAO("!_!AS","cliflags (foreign)")
5667 $ WRITE CONFIG "define verb perl"
5668 $ WRITE CONFIG F$FAO("!_!AS","image ''vms_prefix':[000000]ndbgPerl''ext'")
5669 $ WRITE CONFIG F$FAO("!_!AS","cliflags (foreign)")
5671 $ WRITE CONFIG "define verb perl"
5672 $ WRITE CONFIG F$FAO("!_!AS","image ''vms_prefix':[000000]perl''ext'")
5673 $ WRITE CONFIG F$FAO("!_!AS","cliflags (foreign)")
5676 $ ENDIF ! (.NOT.perl_symbol)
5678 $ echo4 "The perl_setup.com file is now being written..."
5679 $ file_2_find = "[-]perl_setup.com"
5680 $ OPEN/WRITE CONFIG 'file_2_find'
5682 $ WRITE CONFIG "$! Perl_Setup.com ''cf_time'"
5683 $ IF cf_email.NES.perladmin
5685 $ WRITE CONFIG "$! perl configured by ''cf_email'"
5687 $ WRITE CONFIG "$! This perl configured & administered by ''perladmin'"
5690 $ prefix = prefix - "000000."
5691 $ IF F$LOCATE(".]",prefix) .EQ. F$LENGTH(prefix) THEN -
5692 prefix = prefix - "]" + ".]"
5693 $ WRITE CONFIG "$ define/translation=concealed ''vms_prefix' ''prefix'"
5694 $ WRITE CONFIG "$ ext = "".exe"""
5697 $ write config "$ if f$getsyi(""HW_MODEL"") .ge. 1024 then ext = "".AXE"""
5701 $ IF (use_vmsdebug_perl)
5703 $ WRITE CONFIG "$ dbgperl :== $''vms_prefix':[000000]dbgPerl'ext'"
5704 $ WRITE CONFIG "$ perl :== $''vms_prefix':[000000]ndbgPerl'ext'"
5705 $ WRITE CONFIG "$ define dbgPerlShr ''vms_prefix':[000000]dbgPerlShr'ext'"
5707 $ WRITE CONFIG "$ perl :== $''vms_prefix':[000000]Perl'ext'"
5708 $ WRITE CONFIG "$ define PerlShr ''vms_prefix':[000000]PerlShr'ext'"
5710 $ ELSE ! .NOT.perl_symbol
5711 $ IF (use_vmsdebug_perl)
5713 $ WRITE CONFIG "$ define dbgPerlShr ''vms_prefix':[000000]dbgPerlShr'ext'"
5715 $ WRITE CONFIG "$ define PerlShr ''vms_prefix':[000000]PerlShr'ext'"
5717 $ IF perl_verb .EQS. "PROCESS"
5719 $ WRITE CONFIG "$ set command ''vms_prefix':[000000]''packageup'.CLD"
5721 $ ENDIF ! perl_symbol
5722 $ WRITE CONFIG "$ define/nolog pod2text ''vms_prefix':[lib.pod]pod2text.com"
5723 $ WRITE CONFIG "$ define/nolog pod2html ''vms_prefix':[lib.pod]pod2html.com"
5724 $ WRITE CONFIG "$ define/nolog pod2man ''vms_prefix':[lib.pod]pod2man.com"
5728 $ WRITE CONFIG "$ define SYS$TIMEZONE_DIFFERENTIAL ''tzd'"
5729 $ ELSE !leave in but commented out (in case setting was from perl :-)
5730 $ WRITE CONFIG "$! define SYS$TIMEZONE_DIFFERENTIAL ''tzd'"
5733 $ WRITE CONFIG "$! Symbols for commonly used scripts:"
5737 $ WRITE CONFIG "$ Perldoc == ""'"+"'Perl' ''vms_prefix':[lib.pod]Perldoc.com -t"""
5738 $ WRITE CONFIG "$ pod2text == ""'"+"'Perl' pod2text"""
5739 $ WRITE CONFIG "$ pod2html == ""'"+"'Perl' pod2html"""
5740 $ WRITE CONFIG "$ pod2latex == ""'"+"'Perl' ''vms_prefix':[lib.pod]pod2latex.com"""
5741 $ WRITE CONFIG "$!pod2man == ""'"+"'Perl' pod2man"""
5742 $ WRITE CONFIG "$!Perlbug == ""'"+"'Perl' ''vms_prefix':[lib]Perlbug.com"""
5743 $ WRITE CONFIG "$ c2ph == ""'"+"'Perl' ''vms_prefix':[utils]c2ph.com"""
5744 $ IF F$LOCATE("Devel::DProf",extensions) .LT. F$LENGTH(extensions)
5746 $ WRITE CONFIG "$ dprofpp == ""'"+"'Perl' ''vms_prefix':[utils]dprofpp.com"""
5748 $ WRITE CONFIG "$ h2ph == ""'"+"'Perl' ''vms_prefix':[utils]h2ph.com"""
5749 $ WRITE CONFIG "$ h2xs == ""'"+"'Perl' ''vms_prefix':[utils]h2xs.com"""
5750 $ WRITE CONFIG "$!perlcc == ""'"+"'Perl' ''vms_prefix':[utils]perlcc.com"""
5751 $ WRITE CONFIG "$ splain == ""'"+"'Perl' ''vms_prefix':[utils]splain.com"""
5753 $ WRITE CONFIG "$ Perldoc == ""Perl ''vms_prefix':[lib.pod]Perldoc.com -t"""
5754 $ WRITE CONFIG "$ pod2text == ""Perl pod2text"""
5755 $ WRITE CONFIG "$ pod2html == ""Perl pod2html"""
5756 $ WRITE CONFIG "$ pod2latex == ""Perl ''vms_prefix':[lib.pod]pod2latex.com"""
5757 $ WRITE CONFIG "$!pod2man == ""Perl pod2man"""
5758 $ WRITE CONFIG "$!Perlbug == ""Perl ''vms_prefix':[lib]Perlbug.com"""
5759 $ WRITE CONFIG "$ c2ph == ""Perl ''vms_prefix':[utils]c2ph.com"""
5760 $ IF F$LOCATE("Devel::DProf",extensions) .LT. F$LENGTH(extensions)
5762 $ WRITE CONFIG "$ dprofpp == ""Perl ''vms_prefix':[utils]dprofpp.com"""
5764 $ WRITE CONFIG "$ h2ph == ""Perl ''vms_prefix':[utils]h2ph.com"""
5765 $ WRITE CONFIG "$ h2xs == ""Perl ''vms_prefix':[utils]h2xs.com"""
5766 $ WRITE CONFIG "$!perlcc == ""Perl ''vms_prefix':[utils]perlcc.com"""
5767 $ WRITE CONFIG "$ splain == ""Perl ''vms_prefix':[utils]splain.com"""
5772 $ echo "The file can be found at:"
5773 $ echo4 " ''F$SEARCH(file_2_find)'"
5774 $ echo "Add that file (or an @ call to it) to your [SY]LOGIN.COM"
5775 $ echo "when you are satisfied with a successful compilation,"
5776 $ echo "testing, and installation of your perl."
5778 $ IF ((.NOT.perl_symbol) .AND. (perl_verb .EQS. "DCLTABLES"))
5780 $ file_2_find = "[-]''packageup'_install.com"
5781 $ OPEN/WRITE CONFIG 'file_2_find'
5782 $ WRITE CONFIG "$ set command perl /table=sys$common:[syslib]dcltables.exe -"
5783 $ WRITE CONFIG " /output=sys$common:[syslib]dcltables.exe"
5784 $ WRITE CONFIG "$ install replace sys$common:[syslib]dcltables.exe"
5787 $ echo4 "In order to install the ''packageup' verb into DCLTABLES run:"
5788 $ echo4 " @ ''F$SEARCH(file_2_find)'"
5789 $ echo4 "after a successful build, test, and install. Do so with CMKRNL privilege."
5793 $!figure out where we "are" by parsing 'vms_default_directory_name'
5795 $ set_def_command = ""
5796 $ dflt = F$ENVIRONMENT("DEFAULT") - ".UU]"
5797 $ tmp = vms_default_directory_name - dflt - "]"
5799 $ IF tmp .EQS. "" THEN GOTO Beyond_set_def_loop
5801 $ tmp1 = F$ELEMENT(i,".",tmp)
5802 $ IF tmp1 .EQS. "." THEN GOTO Beyond_set_def_loop
5804 $ THEN set_def_command = "set default [-"
5805 $ ELSE set_def_command = set_def_command + "-"
5809 $Beyond_set_def_loop:
5810 $ IF set_def_command.NES.""
5812 $ set_def_command = set_def_command - "-" + "]"
5814 $ echo4 "In order to build ''package' you must now issue the commands:"
5816 $ echo4 " ''set_def_command'"
5819 $ echo4 "In order to build ''package' you must now issue the command:"
5822 $ echo4 " ''make'''makefile'", macros
5825 $ IF ( F$SEARCH("config.msg").NES."" )
5827 $ echo "Hmm. I also noted the following information while running:"
5830 $ SET PROTECTION=(SYSTEM:RWED,OWNER:RWED) config.msg
5831 $ DELETE/NOLOG/NOCONFIRM config.msg;
5837 $ DEASSIGN SYS$OUTPUT
5838 $! DEASSIGN SYS$ERROR
5840 $ IF F$GETJPI("","FILCNT").NE.vms_filcnt THEN CLOSE CONFIG
5841 $ IF F$GETJPI("","FILCNT").NE.vms_filcnt
5842 $ THEN WRITE SYS$ERROR "%Config-W-VMS, WARNING: There is a file still open"
5844 $ dflt = F$ENVIRONMENT("DEFAULT")
5845 $ IF F$LOCATE("UU]",dflt).EQS.(F$LENGTH(dflt)-3)
5847 $ IF ( F$SEARCH("[]*.*").NES."" ) THEN DELETE/NOLOG/NOCONFIRM []*.*;*
5849 $ SET PROTECTION=(SYSTEM:RWED,OWNER:RWED) UU.DIR
5850 $ DELETE/NOLOG/NOCONFIRM UU.DIR;
5852 $ SET DEFAULT 'vms_default_directory_name' !be kind rewind
5855 $!: End of Configure