2 $! - build a config.sh for VMS Perl.
3 $! - use built config.sh to take config_h.SH -> config.h
4 $! - also take vms/descrip_mms.template -> descrip.mms (VMS Makefile)
6 $! Note for folks from other platforms changing things in here:
7 $! Fancy changes (based on compiler capabilities or VMS version or
8 $! whatever) are tricky, so go ahead and punt on those.
10 $! Simple changes, though (say, always setting something to 1, or undef,
11 $! or something like that) are straightforward. Adding a new item for the
12 $! ultimately created config.sh requires adding two lines to this file.
14 $! First, a line in the format:
16 $! after the line tagged ##ADD NEW CONSTANTS HERE##. Replace foo with the
17 $! variable name as it appears in config.sh.
19 $! Second, add a line in the format:
20 $! $ WC "foo='" + perl_foo + "'"
21 $! after the line tagged ##WRITE NEW CONSTANTS HERE##. Careful of the
22 $! quoting, as it can be tricky.
24 $! This .COM file expects to be called by configure.com, and thus expects
25 $! a few symbols in the environment. Notably:
27 $! One of: Using_Dec_C, Using_Gnu_C set to "YES"
28 $! Dec_C_Version set to the Dec C version (defaults to 0 if not specified)
29 $! Has_Socketshr set to "T" if using socketshr
30 $! Has_Dec_C_Sockets set to "T" if using Dec C sockets
31 $! Use_Threads set to "T" if they're using threads
32 $! C_Compiler_Invoke is the command needed to invoke the C compiler
34 $! We'll be playing with Sys$Output; don't clutter it
37 $! Set Dec_C_Version to something
38 $ WRITE_RESULT := "WRITE SYS$OUTPUT ""%CONFIG-I-RESULT "" + "
39 $ echo = "Write Sys$Output "
40 $ Dec_C_Version := "''Dec_C_Version'"
41 $ Dec_C_Version = Dec_C_Version + 0
42 $ Vms_Ver := "''f$extract(1,3, f$getsyi(""version""))'"
43 $ perl_extensions := "''extensions'"
44 $ IF F$LENGTH(Mcc) .EQ. 0 THEN Mcc := "cc"
45 $ MCC = f$edit(mcc, "UPCASE")
46 $ C_Compiler_Replace := "CC=CC=''Mcc'''CC_flags'"
49 $ Checkcc := "''Mcc'/prefix=all"
53 $ cc_flags = cc_flags + extra_flags
54 $ IF be_case_sensitive
56 $ d_vms_be_case_sensitive = "define"
58 $ d_vms_be_case_sensitive = "undef"
62 $ perl_usemultiplicity = "define"
64 $ perl_usemultiplicity = "undef"
66 $! Some constant defaults.
67 $ hwname = f$getsyi("HW_NAME")
69 $ IF myname .EQS. "" THEN myname = F$TRNLNM("SYS$NODE")
71 $! ##ADD NEW CONSTANTS HERE##
72 $ perl_d_isnan= = "define"
76 $ perl_gidformat = "lu"
79 $ perl_groupstype = "Gid_t"
80 $ perl_stdio_stream_array = ""
81 $ perl_uidformat = "lu"
84 $ perl_d_getcwd = "undef"
85 $ perl_d_nv_preserves_uv = "define"
86 $ perl_d_fs_data_s = "undef"
87 $ perl_d_getmnt = "undef"
88 $ perl_d_sqrtl = "define"
89 $ perl_d_statfs_f_flags = "undef"
90 $ perl_d_statfs_s = "undef"
91 $ perl_d_ustat = "undef"
92 $ perl_i_ieeefp = "undef"
93 $ perl_i_sunmath = "undef"
94 $ perl_i_sysstatfs = "undef"
95 $ perl_i_sysvfs = "undef"
96 $ perl_i_ustat = "undef"
97 $ perl_d_llseek="undef"
98 $ perl_d_iconv="undef"
99 $ perl_d_madvise="undef"
100 $ perl_selectminbits="32"
101 $ perl_d_vendorarch="undef"
102 $ perl_vendorarchexp=""
103 $ perl_d_msync="undef"
104 $ perl_d_mprotect="undef"
105 $ perl_d_munmap="undef"
106 $ perl_crosscompile="undef"
107 $ perl_multiarch="undef"
108 $ perl_d_mmap="undef"
109 $ perl_i_sysmman="undef"
110 $ perl_d_telldirproto="define"
111 $ perl_i_sysmount="undef"
112 $ perl_d_bincompat="undef"
113 $ perl_d_endspent="undef
114 $ perl_d_getspent="undef
115 $ perl_d_getspnam="undef
116 $ perl_d_setspent="undef
117 $ perl_d_fstatfs="undef"
118 $ perl_d_getfsstat="undef"
119 $ perl_i_machcthreads="undef"
120 $ perl_i_pthread="define"
121 $ perl_d_fstatvfs="undef"
122 $ perl_usesocks="undef"
123 $ perl_d_vendorlib="undef"
124 $ perl_vendorlibexp=""
125 $ perl_vendorlib_stem=""
126 $ perl_d_statfsflags="undef"
127 $ perl_i_sysstatvfs="undef"
128 $ perl_i_mntent="undef"
129 $ perl_d_getmntent="undef"
130 $ perl_d_hasmntopt="undef"
131 $ perl_package="''package'"
132 $ perl_baserev = "''baserev'"
134 $ perl_installusrbinperl="undef"
136 $ perl_d_fseeko="undef"
137 $ perl_d_ftello="undef"
138 $ perl_d_qgcvt="undef"
139 $ perl_d_readv="undef"
140 $ perl_d_writev="undef"
141 $ perl_i_machcthr="undef"
142 $ perl_i_netdb="undef"
143 $ perl_d_gnulibc="undef"
147 $ perl_drand01 = "drand48()"
148 $ perl_randseedtype = "long int"
149 $ perl_seedfunc = "srand48"
150 $ perl_d_msg_ctrunc = "undef"
151 $ perl_d_msg_dontroute = "undef"
152 $ perl_d_msg_oob = "undef"
153 $ perl_d_msg_peek = "undef"
154 $ perl_d_msg_proxy = "undef"
155 $ perl_d_scm_rights = "undef"
156 $ perl_d_sendmsg = "undef"
157 $ perl_d_recvmsg = "undef"
158 $ perl_d_msghdr_s = "undef"
159 $ perl_d_cmsghdr_s = "undef"
162 $ perl_use64bitint = "define"
163 $ perl_uselargefiles = "define"
164 $ perl_uselongdouble = "define"
165 $ perl_usemorebits = "define"
167 $ perl_use64bitint = "undef"
168 $ perl_uselargefiles = "undef"
169 $ perl_uselongdouble = "undef"
170 $ perl_usemorebits = "undef"
174 $ perl_use64bitall = "define"
176 $ perl_use64bitall = "undef"
178 $ perl_d_drand48proto = "define"
179 $ perl_d_lseekproto = "define"
180 $ perl_libpth="/sys$share /sys$library"
182 $ perl_lddlflags="/Share"
188 $ perl_i_arpainet="undef"
189 $ perl_d_grpasswd="undef"
190 $ perl_d_setgrent="undef"
191 $ perl_d_getgrent="define"
192 $ perl_d_endgrent="define"
193 $ perl_d_pwpasswd="define"
194 $ perl_d_setpwent="define"
195 $ perl_d_getpwent="define"
196 $ perl_d_endpwent="define"
197 $ perl_d_phostname="undef"
198 $ perl_d_accessx="undef"
199 $ perl_d_eaccess="undef"
200 $ perl_ebcdic="undef"
202 $ perl_shrplib="define"
203 $ perl_usemymalloc=mymalloc
204 $ perl_usevfork="true"
205 $ perl_useposix="false"
206 $ perl_spitshell="write sys$output "
207 $ perl_dlsrc="dl_vms.c"
210 $ perl_prefix="perl_root"
211 $ perl_binexp="''perl_prefix':[000000]"
212 $ perl_builddir="''perl_prefix':[000000]"
213 $ perl_installbin="''perl_prefix':[000000]"
214 $ perl_installscript="''perl_prefix':[utils]"
215 $ perl_installman1dir="''perl_prefix':[man.man1]"
216 $ perl_installman3dir="''perl_prefix':[man.man3]"
217 $ perl_installprivlib="''perl_prefix':[lib]"
218 $ perl_installsitelib="''perl_prefix':[lib.site_perl]"
221 $ perl_d_sockpair="undef"
222 $ perl_i_neterrno="define"
223 $ perl_ldflags="/NoTrace/NoMap"
224 $ perl_d_lchown="undef"
225 $ perl_d_mknod="undef"
226 $ perl_d_union_semun="undef"
227 $ perl_d_semctl_semun="undef"
228 $ perl_d_semctl_semid_ds="undef"
229 $ IF (sharedperl .AND. F$GETSYI("HW_MODEL") .GE. 1024)
231 $ perl_obj_ext=".abj"
234 $ perl_exe_ext=".axe"
235 $ perl_lib_ext=".alb"
237 $ perl_obj_ext=".obj"
240 $ perl_exe_ext=".exe"
241 $ perl_lib_ext=".olb"
243 $ perl_dlobj="dl_vms''perl_obj_ext'"
245 $ perl_d_archlib="define"
246 $ perl_d_bincompat3="undef"
247 $ perl_cppstdin="''Perl_CC'/noobj/preprocess=sys$output sys$input"
249 $ perl_cpprun="''Perl_CC'/noobj/preprocess=sys$output sys$input"
252 $ perl_d_castneg="define"
254 $ perl_d_chsize="undef"
255 $ perl_d_const="define"
256 $ perl_d_crypt="define"
257 $ perl_byteorder="1234"
260 $ perl_d_dup2="define"
261 $ perl_d_fchmod="undef"
262 $ perl_d_fchown="undef"
263 $ perl_d_fcntl="undef"
264 $ perl_d_fgetpos="define"
265 $ perl_d_flexfnam="define"
266 $ perl_d_flock="undef"
267 $ perl_d_fsetpos="define"
268 $ perl_d_getgrps="undef"
269 $ perl_d_setgrps="undef"
270 $ perl_d_getprior="undef"
271 $ perl_d_killpg="undef"
272 $ perl_d_link="undef"
273 $ perl_d_lstat="undef"
274 $ perl_d_lockf="undef"
275 $ perl_d_memcmp="define"
276 $ perl_d_memcpy="define"
277 $ perl_d_memmove="define"
278 $ perl_d_memset="define"
279 $ perl_d_mkdir="define"
281 $ perl_d_open3="define"
282 $ perl_d_poll="undef"
283 $ perl_d_readdir="define"
284 $ perl_d_seekdir="define"
285 $ perl_d_telldir="define"
286 $ perl_d_rewinddir="define"
287 $ perl_d_rename="define"
288 $ perl_d_rmdir="define"
290 $ perl_d_setegid="undef"
291 $ perl_d_seteuid="undef"
292 $ perl_d_setprior="undef"
293 $ perl_d_setregid="undef"
294 $ perl_d_setresgid="undef"
295 $ perl_d_setreuid="undef"
296 $ perl_d_setresuid="undef"
297 $ perl_d_setrgid="undef"
298 $ perl_d_setruid="undef"
299 $ perl_d_setsid="undef"
301 $ perl_d_shmatprototype="undef"
302 $ perl_d_statblks="undef"
303 $ perl_stdio_ptr="((*fp)->_ptr)"
304 $ perl_stdio_cnt="((*fp)->_cnt)"
305 $ perl_stdio_base="((*fp)->_base)"
306 $ perl_stdio_bufsiz="((*fp)->_cnt + (*fp)->_ptr - (*fp)->_base)"
307 $ perl_d_strctcpy="define"
308 $ perl_d_strerror="define"
309 $ perl_d_syserrlst="undef"
310 $ perl_d_strerrm="strerror((e),vaxc$errno)"
311 $ perl_d_symlink="undef"
312 $ perl_d_syscall="undef"
313 $ perl_d_system="define"
314 $ perl_timetype="time_t"
315 $ perl_d_vfork="define"
316 $ perl_signal_t="void"
317 $ perl_d_volatile="define"
318 $ perl_d_vprintf="define"
319 $ perl_d_charvspr="undef"
320 $ perl_d_waitpid="define"
321 $ perl_i_dirent="undef"
322 $ perl_d_dirnamlen="define"
323 $ perl_direntrytype="struct dirent"
324 $ perl_i_fcntl="undef"
326 $ perl_i_limits="define"
327 $ perl_i_memory="undef"
328 $ perl_i_ndbm="undef"
329 $ perl_i_stdarg="define"
331 $ perl_d_pwquota="undef"
332 $ perl_d_pwage="undef"
333 $ perl_d_pwchange="undef"
334 $ perl_d_pwclass="undef"
335 $ perl_d_pwexpire="undef"
336 $ perl_d_pwcomment="define"
337 $ perl_i_stddef="define"
338 $ perl_i_stdlib="define"
339 $ perl_i_string="define"
340 $ perl_i_sysdir="undef"
341 $ perl_i_sysfile="undef"
342 $ perl_i_sysioctl="undef"
343 $ perl_i_sysndir="undef"
344 $ perl_i_sysresrc="undef"
345 $ perl_i_sysselct="undef"
347 $ perl_i_rpcsvcdbm="undef"
348 $ perl_i_sfio="undef"
349 $ perl_i_sysstat="define"
350 $ perl_i_systimes="undef"
351 $ perl_i_systypes="define"
352 $ perl_i_sysun="undef"
353 $ perl_i_syswait="undef"
354 $ perl_i_termio="undef"
355 $ perl_i_sgtty="undef"
356 $ perl_i_termios="undef"
357 $ perl_i_time="define"
358 $ perl_i_systime="undef"
359 $ perl_i_systimek="undef"
360 $! perl_i_unistd="undef"
361 $ perl_i_utime="undef"
362 $ perl_i_varargs="undef"
363 $ perl_i_vfork="undef"
364 $ perl_prototype="define"
366 $ perl_stdchar="char"
367 $ perl_d_unlink_all_versions="undef"
368 $ perl_full_sed="_NLA0:"
369 $ perl_bin="/''perl_prefix'/000000"
370 $ perl_binexp="''perl_prefix':[000000]"
371 $ perl_d_alarm="define"
372 $ perl_d_casti32="define"
373 $ perl_d_chown="define"
374 $ perl_d_chroot="undef"
375 $ perl_d_cuserid="define"
376 $ perl_d_dbl_dig="define"
377 $ perl_d_ldbl_dig="define"
378 $ perl_d_difftime="define"
379 $ perl_d_fork="undef"
380 $ perl_d_getlogin="define"
381 $ perl_d_getppid="undef"
382 $ perl_d_nice="define"
383 $ perl_d_pause="define"
384 $ perl_d_pipe="define"
385 $ perl_d_readlink="undef"
386 $ perl_d_setlinebuf="undef"
387 $ perl_d_strchr="define"
388 $ perl_d_strtod="define"
389 $ perl_d_strtol="define"
390 $ perl_d_strtoul="define"
391 $ perl_d_tcgetpgrp="undef"
392 $ perl_d_tcsetpgrp="undef"
393 $ perl_d_times="define"
394 $ perl_d_tzname="undef"
395 $ perl_d_umask="define"
396 $ perl_fpostype="fpos_t"
397 $ perl_i_dlfcn="undef"
398 $ perl_i_float="define"
399 $ perl_i_math="define"
400 $ perl_lseektype="int"
401 $ perl_i_values="undef"
402 $ perl_malloctype="void *"
403 $ perl_freetype="void"
406 $ perl_d_mymalloc="define"
408 $ perl_d_mymalloc="undef"
411 $ perl_modetype="unsigned int"
412 $ perl_ssizetype="int"
413 $ perl_o_nonblock=" "
416 $ perl_d_eofnblk="undef"
417 $ perl_d_oldarchlib="define"
418 $ perl_privlibexp="''perl_prefix':[lib]"
419 $ perl_privlib="''perl_prefix':[lib]"
420 $ perl_sitelibexp="''perl_prefix':[lib.site_perl]"
421 $ perl_sitelib="''perl_prefix':[lib.site_perl]"
422 $ perl_sitelib_stem="''perl_prefix':[lib.site_perl]"
423 $ perl_sizetype="size_t"
424 $ perl_i_sysparam="undef"
425 $ perl_d_void_closedir="define"
426 $ perl_d_dlerror="undef"
427 $ perl_d_dlsymun="undef"
428 $ perl_d_suidsafe="undef"
429 $ perl_d_dosuid="undef"
430 $ perl_d_inetaton="undef"
431 $ perl_d_isascii="define"
432 $ perl_d_mkfifo="undef"
433 $ perl_d_safebcpy="undef"
434 $ perl_d_safemcpy="define"
435 $ perl_d_sanemcmp="define"
436 $ perl_d_setpgrp="undef"
437 $ perl_d_bsdsetpgrp="undef"
438 $ perl_d_bsdpgrp="undef"
439 $ perl_d_setpgid="undef"
440 $ perl_d_setpgrp2="undef"
441 $ perl_d_Gconvert="my_gconvert(x,n,t,b)"
442 $ perl_d_getpgid="undef"
443 $ perl_d_getpgrp="undef"
444 $ perl_d_bsdgetpgrp="undef"
445 $ perl_d_getpgrp2="undef"
446 $ perl_d_sfio="undef"
447 $ perl_usedl="define"
448 $ perl_startperl="""$ perl 'f$env(\""procedure\"")' 'p1' 'p2' 'p3' 'p4' 'p5' 'p6' 'p7' 'p8' !\n$ exit++ + ++$status != 0 and $exit = $status = undef;"""
449 $ perl_db_hashtype=" "
450 $ perl_db_prefixtype=" "
451 $ perl_useperlio="undef"
452 $ perl_defvoidused="15"
453 $ perl_voidflags="15"
454 $ perl_d_eunice="undef"
455 $ perl_d_pwgecos="define"
456 $ IF ((Use_Threads) .AND. (VMS_VER .LES. "6.2"))
458 $ perl_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"
464 $ perl_libc="(DECCRTL)"
474 $ perl_d_PRIfldbl = "define"
475 $ perl_d_PRIgldbl = "define"
476 $ perl_d_PRId64 = "define"
477 $ perl_d_PRIu64 = "define"
478 $ perl_d_PRIo64 = "define"
479 $ perl_d_PRIx64 = "define"
480 $ perl_sPRIfldbl = """Lf"""
481 $ perl_sPRIgldbl = """Lg"""
482 $ perl_sPRId64 = """Ld"""
483 $ perl_sPRIu64 = """Lu"""
484 $ perl_sPRIo64 = """Lo"""
485 $ perl_sPRIx64 = """Lx"""
486 $ perl_d_quad = "define"
487 $ perl_quadtype = "long long"
488 $ perl_uquadtype = "unsigned long long"
489 $ perl_quadkind = "QUAD_IS_LONG_LONG"
490 $ perl_d_frexpl = "define"
491 $ perl_d_isnanl = "define"
492 $ perl_d_modfl = "define"
494 $ perl_d_PRIfldbl = "undef"
495 $ perl_d_PRIgldbl = "undef"
496 $ perl_d_PRId64 = "undef"
497 $ perl_d_PRIu64 = "undef"
498 $ perl_d_PRIo64 = "undef"
499 $ perl_d_PRIx64 = "undef"
500 $ perl_sPRIfldbl = ""
501 $ perl_sPRIgldbl = ""
506 $ perl_d_quad = "undef"
507 $ perl_quadtype = "long"
508 $ perl_uquadtype = "unsigned long"
509 $ perl_quadkind = "QUAD_IS_LONG"
510 $ perl_d_frexpl = "undef"
511 $ perl_d_isnanl = "undef"
512 $ perl_d_modfl = "undef"
515 $! Now some that we build up
519 $ if use_5005_threads
521 $ arch = "''arch'-thread"
522 $ archname = "''archname'-thread"
523 $ perl_d_old_pthread_create_joinable = "undef"
524 $ perl_old_pthread_create_joinable = " "
525 $ perl_use5005threads = "define"
526 $ perl_useithreads = "undef"
528 $ arch = "''arch'-ithread"
529 $ archname = "''archname'-ithread"
530 $ perl_d_old_pthread_create_joinable = "undef"
531 $ perl_old_pthread_create_joinable = " "
532 $ perl_use5005threads = "undef"
533 $ perl_useithreads = "define"
536 $ perl_d_old_pthread_create_joinable = "undef"
537 $ perl_old_pthread_create_joinable = " "
538 $ perl_use5005threads = "undef"
539 $ perl_useithreads = "undef"
542 $! Some that we need to invoke the compiler for
543 $ OS := "open/write SOURCECHAN []temp.c"
544 $ WS := "write SOURCECHAN"
545 $ CS := "close SOURCECHAN"
546 $ DS := "delete/nolog []temp.*;*"
550 $ open/write OPTCHAN []temp.opt
551 $ write OPTCHAN "Gnu_CC:[000000]gcclib.olb/library"
552 $ write OPTCHAN "Sys$Share:VAXCRTL/Share"
557 $! Check for __STDC__
561 $ WS "#include <stdlib.h>
563 $ WS "#include <stdio.h>
566 $ WS "#ifdef __STDC__
567 $ WS "printf(""42\n"");
569 $ WS "printf(""1\n"");
574 $ DEFINE SYS$ERROR _NLA0:
575 $ DEFINE SYS$OUTPUT _NLA0:
576 $ ON ERROR THEN CONTINUE
577 $ ON WARNING THEN CONTINUE
581 $ link temp.obj,temp.opt/opt
585 $ DEASSIGN SYS$OUTPUT
587 $ OPEN/WRITE TEMPOUT [-.uu]tempout.lis
588 $ DEFINE SYS$ERROR TEMPOUT
589 $ DEFINE SYS$OUTPUT TEMPOUT
592 $ DEASSIGN SYS$OUTPUT
594 $ OPEN/READ TEMPOUT [-.uu]tempout.lis
597 $ DELETE/NOLOG [-.uu]tempout.lis;
598 $ perl_cpp_stuff=line
599 $ WRITE_RESULT "cpp_stuff is ''perl_cpp_stuff'"
601 $! Check for double size
605 $ WS "#include <stdlib.h>
607 $ WS "#include <stdio.h>
611 $ WS "foo = sizeof(double);
612 $ WS "printf(""%d\n"", foo);
616 $ DEFINE SYS$ERROR _NLA0:
617 $ DEFINE SYS$OUTPUT _NLA0:
618 $ ON ERROR THEN CONTINUE
619 $ ON WARNING THEN CONTINUE
623 $ link temp.obj,temp.opt/opt
627 $ OPEN/WRITE TEMPOUT [-.uu]tempout.lis
628 $ DEASSIGN SYS$OUTPUT
630 $ DEFINE SYS$ERROR TEMPOUT
631 $ DEFINE SYS$OUTPUT TEMPOUT
634 $ DEASSIGN SYS$OUTPUT
636 $ OPEN/READ TEMPOUT [-.uu]tempout.lis
639 $ DELETE/NOLOG [-.uu]tempout.lis;
641 $ perl_doublesize=line
642 $ WRITE_RESULT "doublesize is ''perl_doublesize'"
644 $! Check for long double size
648 $ WS "#include <stdlib.h>
650 $ WS "#include <stdio.h>
653 $ WS "printf(""%d\n"", sizeof(long double));
657 $ DEFINE SYS$ERROR _NLA0:
658 $ DEFINE SYS$OUTPUT _NLA0:
659 $ ON ERROR THEN CONTINUE
660 $ ON WARNING THEN CONTINUE
662 $ teststatus = f$extract(9,1,$status)
663 $ if (teststatus.nes."1")
665 $ perl_longdblsize="0"
666 $ perl_d_longdbl="undef"
668 $ ON ERROR THEN CONTINUE
669 $ ON WARNING THEN CONTINUE
672 $ link temp.obj,temp.opt/opt
676 $ teststatus = f$extract(9,1,$status)
677 $ DEASSIGN SYS$OUTPUT
679 $ IF (teststatus.nes."1")
681 $ perl_longdblsize="0"
682 $ perl_d_longdbl="undef"
684 $ OPEN/WRITE TEMPOUT [-.uu]tempout.lis
685 $ DEFINE SYS$ERROR TEMPOUT
686 $ DEFINE SYS$OUTPUT TEMPOUT
689 $ DEASSIGN SYS$OUTPUT
691 $ OPEN/READ TEMPOUT [-.uu]tempout.lis
694 $ DELETE/NOLOG [-.uu]tempout.lis;
695 $ perl_longdblsize=line
696 $ perl_d_longdbl="define"
699 $ WRITE_RESULT "longdblsize is ''perl_longdblsize'"
700 $ WRITE_RESULT "d_longdbl is ''perl_d_longdbl'"
702 $! Check for long long existance and size
706 $ WS "#include <stdlib.h>
708 $ WS "#include <stdio.h>
711 $ WS "printf(""%d\n"", sizeof(long long));
715 $ DEFINE SYS$ERROR _NLA0:
716 $ DEFINE SYS$OUTPUT _NLA0:
717 $ on error then continue
718 $ on warning then continue
722 $ link temp.obj,temp.opt/opt
726 $ teststatus = f$extract(9,1,$status)
727 $ DEASSIGN SYS$OUTPUT
729 $ if (teststatus.nes."1")
731 $ perl_longlongsize="0"
732 $ perl_d_longlong="undef"
734 $ OPEN/WRITE TEMPOUT [-.uu]tempout.lis
735 $ DEFINE SYS$ERROR TEMPOUT
736 $ DEFINE SYS$OUTPUT TEMPOUT
739 $ DEASSIGN SYS$OUTPUT
741 $ OPEN/READ TEMPOUT [-.uu]tempout.lis
744 $ DELETE/NOLOG [-.uu]tempout.lis;
745 $ perl_longlongsize=line
746 $ perl_d_longlong="define"
748 $ WRITE_RESULT "longlongsize is ''perl_longlongsize'"
749 $ WRITE_RESULT "d_longlong is ''perl_d_longlong'"
751 $! Check the prototype for getgid
755 $ WS "#include <stdlib.h>
757 $ WS "#include <stdio.h>
758 $ WS "#include <types.h>
759 $ WS "#include <unistd.h>
766 $ DEFINE SYS$ERROR _NLA0:
767 $ DEFINE SYS$OUTPUT _NLA0:
768 $ on error then continue
769 $ on warning then continue
771 $ teststatus = f$extract(9,1,$status)
772 $ DEASSIGN SYS$OUTPUT
774 $ if (teststatus.nes."1")
776 $! Okay, gid_t failed. Must be unsigned int
777 $ perl_gidtype = "unsigned int"
779 $ perl_gidtype = "gid_t"
781 $ WRITE_RESULT "Gid_t is ''perl_gidtype'"
783 $! Check to see if we've got dev_t
787 $ WS "#include <stdlib.h>
789 $ WS "#include <stdio.h>
790 $ WS "#include <types.h>
791 $ WS "#include <unistd.h>
798 $ DEFINE SYS$ERROR _NLA0:
799 $ DEFINE SYS$OUTPUT _NLA0:
800 $ on error then continue
801 $ on warning then continue
803 $ teststatus = f$extract(9,1,$status)
804 $ DEASSIGN SYS$OUTPUT
806 $ if (teststatus.nes."1")
808 $! Okay, dev_t failed. Must be unsigned int
809 $ perl_devtype = "unsigned int"
811 $ perl_devtype = "dev_t"
813 $ WRITE_RESULT "Dev_t is ''perl_devtype'"
815 $! Check to see if we've got unistd.h (which we ought to, but you never know)
819 $ WS "#include <stdlib.h>
821 $ WS "#include <unistd.h>
827 $ DEFINE SYS$ERROR _NLA0:
828 $ DEFINE SYS$OUTPUT _NLA0:
829 $ on error then continue
830 $ on warning then continue
832 $ teststatus = f$extract(9,1,$status)
833 $ DEASSIGN SYS$OUTPUT
835 $ if (teststatus.nes."1")
837 $! Okay, failed. Must not have it
838 $ perl_i_unistd = "undef"
840 $ perl_i_unistd = "define"
842 $ WRITE_RESULT "i_unistd is ''perl_i_unistd'"
844 $! Check to see if we've got shadow.h (probably not, but...)
848 $ WS "#include <stdlib.h>
850 $ WS "#include <shadow.h>
856 $ DEFINE SYS$ERROR _NLA0:
857 $ DEFINE SYS$OUTPUT _NLA0:
858 $ on error then continue
859 $ on warning then continue
861 $ teststatus = f$extract(9,1,$status)
862 $ DEASSIGN SYS$OUTPUT
864 $ if (teststatus.nes."1")
866 $! Okay, failed. Must not have it
867 $ perl_i_shadow = "undef"
869 $ perl_i_shadow = "define"
871 $ WRITE_RESULT "i_shadow is ''perl_i_shadow'"
873 $! Check to see if we've got socks.h (probably not, but...)
877 $ WS "#include <stdlib.h>
879 $ WS "#include <socks.h>
885 $ DEFINE SYS$ERROR _NLA0:
886 $ DEFINE SYS$OUTPUT _NLA0:
887 $ on error then continue
888 $ on warning then continue
890 $ teststatus = f$extract(9,1,$status)
891 $ DEASSIGN SYS$OUTPUT
893 $ if (teststatus.nes."1")
895 $! Okay, failed. Must not have it
896 $ perl_i_socks = "undef"
898 $ perl_i_socks = "define"
900 $ WRITE_RESULT "i_socks is ''perl_i_socks'"
902 $! Check the prototype for select
904 $ IF Has_Dec_C_Sockets .OR. Has_Socketshr
908 $ WS "#include <stdlib.h>
910 $ WS "#include <stdio.h>
911 $ WS "#include <types.h>
912 $ WS "#include <unistd.h>
915 $ WS "#include <socketshr.h>"
917 $ WS "#include <time.h>
918 $ WS "#include <socket.h>
925 $ WS "bar = select(2, foo, foo, foo, NULL);
929 $ DEFINE SYS$ERROR _NLA0:
930 $ DEFINE SYS$OUTPUT _NLA0:
931 $ on error then continue
932 $ on warning then continue
934 $ teststatus = f$extract(9,1,$status)
935 $ DEASSIGN SYS$OUTPUT
937 $ if (teststatus.nes."1")
939 $! Okay, fd_set failed. Must be an int
940 $ perl_selecttype = "int *"
942 $ perl_selecttype="fd_set *"
945 $ ! No sockets, so stick in an int *
946 $ perl_selecttype = "int *"
948 $ WRITE_RESULT "selectype is ''perl_selecttype'"
950 $! Check to see if fd_set exists
954 $ WS "#include <stdlib.h>
956 $ WS "#include <stdio.h>
957 $ WS "#include <types.h>
958 $ WS "#include <unistd.h>
961 $ WS "#include <socketshr.h>"
963 $ IF Has_Dec_C_Sockets
965 $ WS "#include <time.h>
966 $ WS "#include <socket.h>
975 $ DEFINE SYS$ERROR _NLA0:
976 $ DEFINE SYS$OUTPUT _NLA0:
977 $ on error then continue
978 $ on warning then continue
980 $ teststatus = f$extract(9,1,$status)
981 $ DEASSIGN SYS$OUTPUT
983 $ if (teststatus.nes."1")
985 $! Okay, fd_set failed. Must not exist
986 $ perl_d_fd_set = "undef"
988 $ perl_d_fd_set="define"
990 $ WRITE_RESULT "d_fd_set is ''perl_d_fd_set'"
992 $! Check for inttypes.h
996 $ WS "#include <stdlib.h>
998 $ WS "#include <stdio.h>
999 $ WS "#include <unistd.h>
1000 $ WS "#include <inttypes.h>
1006 $ DEFINE SYS$ERROR _NLA0:
1007 $ DEFINE SYS$OUTPUT _NLA0:
1008 $ on error then continue
1009 $ on warning then continue
1011 $ savedstatus = $status
1012 $ teststatus = f$extract(9,1,savedstatus)
1013 $ if (teststatus.nes."1")
1015 $ perl_i_inttypes="undef"
1016 $ DEASSIGN SYS$OUTPUT
1017 $ DEASSIGN SYS$ERROR
1021 $ link temp.obj,temp.opt/opt
1025 $ savedstatus = $status
1026 $ teststatus = f$extract(9,1,savedstatus)
1027 $ DEASSIGN SYS$OUTPUT
1028 $ DEASSIGN SYS$ERROR
1029 $ if (teststatus.nes."1")
1031 $ perl_i_inttypes="undef"
1033 $ perl_i_inttypes="define"
1036 $ WRITE_RESULT "i_inttypes is ''perl_i_inttypes'"
1038 $! Check for h_errno
1042 $ WS "#include <stdlib.h>
1044 $ WS "#include <stdio.h>
1045 $ WS "#include <unistd.h>
1046 $ WS "#include <netdb.h>
1053 $ DEFINE SYS$ERROR _NLA0:
1054 $ DEFINE SYS$OUTPUT _NLA0:
1055 $ on error then continue
1056 $ on warning then continue
1058 $ savedstatus = $status
1059 $ teststatus = f$extract(9,1,savedstatus)
1060 $ if (teststatus.nes."1")
1062 $ perl_d_herrno="undef"
1063 $ DEASSIGN SYS$OUTPUT
1064 $ DEASSIGN SYS$ERROR
1068 $ link temp.obj,temp.opt/opt
1072 $ savedstatus = $status
1073 $ teststatus = f$extract(9,1,savedstatus)
1074 $ DEASSIGN SYS$OUTPUT
1075 $ DEASSIGN SYS$ERROR
1076 $ if (teststatus.nes."1")
1078 $ perl_d_herrno="undef"
1080 $ perl_d_herrno="define"
1083 $ WRITE_RESULT "d_herrno is ''perl_d_herrno'"
1085 $! Check to see if int64_t exists
1089 $ WS "#include <stdlib.h>
1091 $ WS "#include <stdio.h>
1092 $ WS "#include <types.h>
1093 $ WS "#''perl_i_inttypes IIH
1095 $ WS "#include <inttypes.h>
1097 $ WS "#include <unistd.h>
1104 $ DEFINE SYS$ERROR _NLA0:
1105 $ DEFINE SYS$OUTPUT _NLA0:
1106 $ on error then continue
1107 $ on warning then continue
1109 $ teststatus = f$extract(9,1,$status)
1110 $ DEASSIGN SYS$OUTPUT
1111 $ DEASSIGN SYS$ERROR
1112 $ if (teststatus.nes."1")
1114 $! Okay, int64_t failed. Must not exist
1115 $ perl_d_int64_t = "undef"
1117 $ perl_d_int64_t="define"
1119 $ WRITE_RESULT "d_int64_t is ''perl_d_int64_t'"
1121 $! Check to see if off64_t exists
1125 $ WS "#include <stdlib.h>
1127 $ WS "#include <stdio.h>
1128 $ WS "#include <types.h>
1129 $ WS "#''perl_i_inttypes IIH
1131 $ WS "#include <inttypes.h>
1133 $ WS "#include <unistd.h>
1140 $ DEFINE SYS$ERROR _NLA0:
1141 $ DEFINE SYS$OUTPUT _NLA0:
1142 $ on error then continue
1143 $ on warning then continue
1145 $ teststatus = f$extract(9,1,$status)
1146 $ DEASSIGN SYS$OUTPUT
1147 $ DEASSIGN SYS$ERROR
1148 $ if (teststatus.nes."1")
1150 $! Okay, off64_t failed. Must not exist
1151 $ perl_d_off64_t = "undef"
1153 $ perl_d_off64_t="define"
1155 $ WRITE_RESULT "d_off64_t is ''perl_d_off64_t'"
1157 $! Check to see if fpos64_t exists
1161 $ WS "#include <stdlib.h>
1163 $ WS "#include <stdio.h>
1164 $ WS "#include <types.h>
1165 $ WS "#''perl_i_inttypes IIH
1167 $ WS "#include <inttypes.h>
1169 $ WS "#include <unistd.h>
1176 $ DEFINE SYS$ERROR _NLA0:
1177 $ DEFINE SYS$OUTPUT _NLA0:
1178 $ on error then continue
1179 $ on warning then continue
1181 $ teststatus = f$extract(9,1,$status)
1182 $ DEASSIGN SYS$OUTPUT
1183 $ DEASSIGN SYS$ERROR
1184 $ if (teststatus.nes."1")
1186 $! Okay, fpos64_t failed. Must not exist
1187 $ perl_d_fpos64_t = "undef"
1189 $ perl_d_fpos64_t="define"
1191 $ WRITE_RESULT "d_fpos64_t is ''perl_d_fpos64_t'"
1193 $! Check to see if gethostname exists
1195 $ IF (Has_Dec_C_Sockets .OR. Has_Socketshr)
1199 $ WS "#include <stdlib.h>
1201 $ WS "#include <stdio.h>
1202 $ WS "#include <types.h>
1203 $ WS "#include <unistd.h>
1206 $ WS "#include <socketshr.h>"
1208 $ WS "#include <time.h>
1209 $ WS "#include <socket.h>
1213 $ WS "char name[100];
1216 $ WS "baz = gethostname(name, bar);
1220 $ DEFINE SYS$ERROR _NLA0:
1221 $ DEFINE SYS$OUTPUT _NLA0:
1222 $ on error then continue
1223 $ on warning then continue
1225 $ teststatus = f$extract(9,1,$status)
1226 $ DEASSIGN SYS$OUTPUT
1227 $ DEASSIGN SYS$ERROR
1228 $ if (teststatus.nes."1")
1230 $! Okay, compile failed. Must not have it
1231 $ perl_d_gethname = "undef"
1235 $ link temp.obj,temp.opt/opt
1239 $ savedstatus = $status
1240 $ teststatus = f$extract(9,1,savedstatus)
1241 $ if (teststatus.nes."1")
1243 $ perl_d_gethname="undef"
1245 $ perl_d_gethname="define"
1249 $ ! No sockets, so no gethname
1250 $ perl_d_gethname = "undef"
1252 $ WRITE_RESULT "d_gethname is ''perl_d_gethname'"
1254 $! Check for sys/file.h
1258 $ WS "#include <stdlib.h>
1260 $ WS "#include <stdio.h>
1261 $ WS "#include <unistd.h>
1262 $ WS "#include <sys/file.h>
1268 $ DEFINE SYS$ERROR _NLA0:
1269 $ DEFINE SYS$OUTPUT _NLA0:
1270 $ on error then continue
1271 $ on warning then continue
1273 $ savedstatus = $status
1274 $ teststatus = f$extract(9,1,savedstatus)
1275 $ if (teststatus.nes."1")
1277 $ perl_i_sysfile="undef"
1278 $ DEASSIGN SYS$OUTPUT
1279 $ DEASSIGN SYS$ERROR
1283 $ link temp.obj,temp.opt/opt
1287 $ savedstatus = $status
1288 $ teststatus = f$extract(9,1,savedstatus)
1289 $ DEASSIGN SYS$OUTPUT
1290 $ DEASSIGN SYS$ERROR
1291 $ if (teststatus.nes."1")
1293 $ perl_i_sysfile="undef"
1295 $ perl_i_sysfile="define"
1298 $ WRITE_RESULT "i_sysfile is ''perl_i_sysfile'"
1300 $! Check for sys/utsname.h
1304 $ WS "#include <stdlib.h>
1306 $ WS "#include <stdio.h>
1307 $ WS "#include <unistd.h>
1308 $ WS "#include <sys/utsname.h>
1314 $ DEFINE SYS$ERROR _NLA0:
1315 $ DEFINE SYS$OUTPUT _NLA0:
1316 $ on error then continue
1317 $ on warning then continue
1319 $ savedstatus = $status
1320 $ teststatus = f$extract(9,1,savedstatus)
1321 $ if (teststatus.nes."1")
1323 $ perl_i_sysutsname="undef"
1324 $ DEASSIGN SYS$OUTPUT
1325 $ DEASSIGN SYS$ERROR
1329 $ link temp.obj,temp.opt/opt
1333 $ savedstatus = $status
1334 $ teststatus = f$extract(9,1,savedstatus)
1335 $ DEASSIGN SYS$OUTPUT
1336 $ DEASSIGN SYS$ERROR
1337 $ if (teststatus.nes."1")
1339 $ perl_i_sysutsname="undef"
1341 $ perl_i_sysutsname="define"
1344 $ WRITE_RESULT "i_sysutsname is ''perl_i_sysutsname'"
1346 $! Check for syslog.h
1350 $ WS "#include <stdlib.h>
1352 $ WS "#include <stdio.h>
1353 $ WS "#include <unistd.h>
1354 $ WS "#include <syslog.h>
1360 $ DEFINE SYS$ERROR _NLA0:
1361 $ DEFINE SYS$OUTPUT _NLA0:
1362 $ on error then continue
1363 $ on warning then continue
1365 $ savedstatus = $status
1366 $ teststatus = f$extract(9,1,savedstatus)
1367 $ if (teststatus.nes."1")
1369 $ perl_i_syslog="undef"
1370 $ DEASSIGN SYS$OUTPUT
1371 $ DEASSIGN SYS$ERROR
1375 $ link temp.obj,temp.opt/opt
1379 $ savedstatus = $status
1380 $ teststatus = f$extract(9,1,savedstatus)
1381 $ DEASSIGN SYS$OUTPUT
1382 $ DEASSIGN SYS$ERROR
1383 $ if (teststatus.nes."1")
1385 $ perl_i_syslog="undef"
1387 $ perl_i_syslog="define"
1390 $ WRITE_RESULT "i_syslog is ''perl_i_syslog'"
1396 $ WS "#include <stdlib.h>
1398 $ WS "#include <stdio.h>
1399 $ WS "#include <unistd.h>
1400 $ WS "#include <poll.h>
1406 $ DEFINE SYS$ERROR _NLA0:
1407 $ DEFINE SYS$OUTPUT _NLA0:
1408 $ on error then continue
1409 $ on warning then continue
1411 $ savedstatus = $status
1412 $ teststatus = f$extract(9,1,savedstatus)
1413 $ if (teststatus.nes."1")
1415 $ perl_i_poll="undef"
1416 $ DEASSIGN SYS$OUTPUT
1417 $ DEASSIGN SYS$ERROR
1421 $ link temp.obj,temp.opt/opt
1425 $ savedstatus = $status
1426 $ teststatus = f$extract(9,1,savedstatus)
1427 $ DEASSIGN SYS$OUTPUT
1428 $ DEASSIGN SYS$ERROR
1429 $ if (teststatus.nes."1")
1431 $ perl_i_poll="undef"
1433 $ perl_i_poll="define"
1436 $ WRITE_RESULT "i_poll is ''perl_i_poll'"
1438 $! Check for sys/uio.h
1442 $ WS "#include <stdlib.h>
1444 $ WS "#include <stdio.h>
1445 $ WS "#include <unistd.h>
1446 $ WS "#include <sys/uio.h>
1452 $ DEFINE SYS$ERROR _NLA0:
1453 $ DEFINE SYS$OUTPUT _NLA0:
1454 $ on error then continue
1455 $ on warning then continue
1457 $ savedstatus = $status
1458 $ teststatus = f$extract(9,1,savedstatus)
1459 $ if (teststatus.nes."1")
1461 $ perl_i_sysuio="undef"
1462 $ DEASSIGN SYS$OUTPUT
1463 $ DEASSIGN SYS$ERROR
1467 $ link temp.obj,temp.opt/opt
1471 $ savedstatus = $status
1472 $ teststatus = f$extract(9,1,savedstatus)
1473 $ DEASSIGN SYS$OUTPUT
1474 $ DEASSIGN SYS$ERROR
1475 $ if (teststatus.nes."1")
1477 $ perl_i_sysuio="undef"
1479 $ perl_i_sysuio="define"
1482 $ WRITE_RESULT "i_sysuio is ''perl_i_sysuio'"
1484 $! Check for sys/mode.h
1488 $ WS "#include <stdlib.h>
1490 $ WS "#include <stdio.h>
1491 $ WS "#include <unistd.h>
1492 $ WS "#include <sys/mode.h>
1498 $ DEFINE SYS$ERROR _NLA0:
1499 $ DEFINE SYS$OUTPUT _NLA0:
1500 $ on error then continue
1501 $ on warning then continue
1503 $ savedstatus = $status
1504 $ teststatus = f$extract(9,1,savedstatus)
1505 $ if (teststatus.nes."1")
1507 $ perl_i_sysmode="undef"
1508 $ DEASSIGN SYS$OUTPUT
1509 $ DEASSIGN SYS$ERROR
1511 $ If (Needs_Opt.eqs."Yes")
1513 $ link temp.obj,temp.opt/opt
1517 $ savedstatus = $status
1518 $ teststatus = f$extract(9,1,savedstatus)
1519 $ DEASSIGN SYS$OUTPUT
1520 $ DEASSIGN SYS$ERROR
1521 $ if (teststatus.nes."1")
1523 $ perl_i_sysmode="undef"
1525 $ perl_i_sysmode="define"
1528 $ WRITE_RESULT "i_sysmode is ''perl_i_sysmode'"
1530 $! Check for sys/access.h
1534 $ WS "#include <stdlib.h>
1536 $ WS "#include <stdio.h>
1537 $ WS "#include <unistd.h>
1538 $ WS "#include <sys/access.h>
1544 $ DEFINE SYS$ERROR _NLA0:
1545 $ DEFINE SYS$OUTPUT _NLA0:
1546 $ on error then continue
1547 $ on warning then continue
1549 $ savedstatus = $status
1550 $ teststatus = f$extract(9,1,savedstatus)
1551 $ if (teststatus.nes."1")
1553 $ perl_i_sysaccess="undef"
1554 $ DEASSIGN SYS$OUTPUT
1555 $ DEASSIGN SYS$ERROR
1557 $ If (Needs_Opt.eqs."Yes")
1559 $ link temp.obj,temp.opt/opt
1563 $ savedstatus = $status
1564 $ teststatus = f$extract(9,1,savedstatus)
1565 $ DEASSIGN SYS$OUTPUT
1566 $ DEASSIGN SYS$ERROR
1567 $ if (teststatus.nes."1")
1569 $ perl_i_sysaccess="undef"
1571 $ perl_i_sysaccess="define"
1574 $ WRITE_RESULT "i_sysaccess is ''perl_i_sysaccess'"
1576 $! Check for sys/security.h
1580 $ WS "#include <stdlib.h>
1582 $ WS "#include <stdio.h>
1583 $ WS "#include <unistd.h>
1584 $ WS "#include <sys/security.h>
1590 $ DEFINE SYS$ERROR _NLA0:
1591 $ DEFINE SYS$OUTPUT _NLA0:
1592 $ on error then continue
1593 $ on warning then continue
1595 $ savedstatus = $status
1596 $ teststatus = f$extract(9,1,savedstatus)
1597 $ if (teststatus.nes."1")
1599 $ perl_i_syssecrt="undef"
1600 $ DEASSIGN SYS$OUTPUT
1601 $ DEASSIGN SYS$ERROR
1603 $ If (Needs_Opt.eqs."Yes")
1605 $ link temp.obj,temp.opt/opt
1609 $ savedstatus = $status
1610 $ teststatus = f$extract(9,1,savedstatus)
1611 $ DEASSIGN SYS$OUTPUT
1612 $ DEASSIGN SYS$ERROR
1613 $ if (teststatus.nes."1")
1615 $ perl_i_syssecrt="undef"
1617 $ perl_i_syssecrt="define"
1620 $ WRITE_RESULT "i_syssecrt is ''perl_i_syssecrt'"
1622 $! Check for fcntl.h
1626 $ WS "#include <stdlib.h>
1628 $ WS "#include <stdio.h>
1629 $ WS "#include <unistd.h>
1630 $ WS "#include <fcntl.h>
1636 $ DEFINE SYS$ERROR _NLA0:
1637 $ DEFINE SYS$OUTPUT _NLA0:
1638 $ on error then continue
1639 $ on warning then continue
1641 $ savedstatus = $status
1642 $ teststatus = f$extract(9,1,savedstatus)
1643 $ if (teststatus.nes."1")
1645 $ perl_i_fcntl="undef"
1646 $ DEASSIGN SYS$OUTPUT
1647 $ DEASSIGN SYS$ERROR
1649 $ If (Needs_Opt.eqs."Yes")
1651 $ link temp.obj,temp.opt/opt
1655 $ savedstatus = $status
1656 $ teststatus = f$extract(9,1,savedstatus)
1657 $ DEASSIGN SYS$OUTPUT
1658 $ DEASSIGN SYS$ERROR
1659 $ if (teststatus.nes."1")
1661 $ perl_i_fcntl="undef"
1663 $ perl_i_fcntl="define"
1666 $ WRITE_RESULT "i_fcntl is ''perl_i_fcntl'"
1672 $ WS "#include <stdlib.h>
1674 $ WS "#include <stdio.h>
1675 $ WS "#include <unistd.h>
1676 $ WS "#include <fcntl.h>
1683 $ DEFINE SYS$ERROR _NLA0:
1684 $ DEFINE SYS$OUTPUT _NLA0:
1685 $ on error then continue
1686 $ on warning then continue
1688 $ savedstatus = $status
1689 $ teststatus = f$extract(9,1,savedstatus)
1690 $ if (teststatus.nes."1")
1692 $ perl_d_fcntl="undef"
1693 $ DEASSIGN SYS$OUTPUT
1694 $ DEASSIGN SYS$ERROR
1696 $ If (Needs_Opt.eqs."Yes")
1698 $ link temp.obj,temp.opt/opt
1702 $ savedstatus = $status
1703 $ teststatus = f$extract(9,1,savedstatus)
1704 $ DEASSIGN SYS$OUTPUT
1705 $ DEASSIGN SYS$ERROR
1706 $ if (teststatus.nes."1")
1708 $ perl_d_fcntl="undef"
1710 $ perl_d_fcntl="define"
1713 $ WRITE_RESULT "d_fcntl is ''perl_d_fcntl'"
1719 $ WS "#include <stdlib.h>
1721 $ WS "#include <string.h>
1725 $ WS "place = memchr(""foo"", 47, 3)
1729 $ DEFINE SYS$ERROR _NLA0:
1730 $ DEFINE SYS$OUTPUT _NLA0:
1731 $ on error then continue
1732 $ on warning then continue
1734 $ savedstatus = $status
1735 $ teststatus = f$extract(9,1,savedstatus)
1736 $ if (teststatus.nes."1")
1738 $ perl_d_memchr="undef"
1739 $ DEASSIGN SYS$OUTPUT
1740 $ DEASSIGN SYS$ERROR
1742 $ If (Needs_Opt.eqs."Yes")
1744 $ link temp.obj,temp.opt/opt
1748 $ savedstatus = $status
1749 $ teststatus = f$extract(9,1,savedstatus)
1750 $ DEASSIGN SYS$OUTPUT
1751 $ DEASSIGN SYS$ERROR
1752 $ if (teststatus.nes."1")
1754 $ perl_d_memchr="undef"
1756 $ perl_d_memchr="define"
1759 $ WRITE_RESULT "d_memchr is ''perl_d_memchr'"
1761 $! Check for strtoull
1765 $ WS "#include <stdlib.h>
1767 $ WS "#include <string.h>
1770 $ WS "unsigned __int64 result;
1771 $ WS "result = strtoull(""123123"", NULL, 10);
1775 $ DEFINE SYS$ERROR _NLA0:
1776 $ DEFINE SYS$OUTPUT _NLA0:
1777 $ on error then continue
1778 $ on warning then continue
1780 $ savedstatus = $status
1781 $ teststatus = f$extract(9,1,savedstatus)
1782 $ if (teststatus.nes."1")
1784 $ perl_d_strtoull="undef"
1785 $ DEASSIGN SYS$OUTPUT
1786 $ DEASSIGN SYS$ERROR
1788 $ If (Needs_Opt.eqs."Yes")
1790 $ link temp.obj,temp.opt/opt
1794 $ savedstatus = $status
1795 $ teststatus = f$extract(9,1,savedstatus)
1796 $ DEASSIGN SYS$OUTPUT
1797 $ DEASSIGN SYS$ERROR
1798 $ if (teststatus.nes."1")
1800 $ perl_d_strtoull="undef"
1802 $ perl_d_strtoull="define"
1805 $ WRITE_RESULT "d_strtoull is ''perl_d_strtoull'"
1807 $! Check for strtouq
1811 $ WS "#include <stdlib.h>
1813 $ WS "#include <string.h>
1816 $ WS "unsigned __int64 result;
1817 $ WS "result = strtouq(""123123"", NULL, 10);
1821 $ DEFINE SYS$ERROR _NLA0:
1822 $ DEFINE SYS$OUTPUT _NLA0:
1823 $ on error then continue
1824 $ on warning then continue
1826 $ savedstatus = $status
1827 $ teststatus = f$extract(9,1,savedstatus)
1828 $ if (teststatus.nes."1")
1830 $ perl_d_strtouq="undef"
1831 $ DEASSIGN SYS$OUTPUT
1832 $ DEASSIGN SYS$ERROR
1834 $ If (Needs_Opt.eqs."Yes")
1836 $ link temp.obj,temp.opt/opt
1840 $ savedstatus = $status
1841 $ teststatus = f$extract(9,1,savedstatus)
1842 $ DEASSIGN SYS$OUTPUT
1843 $ DEASSIGN SYS$ERROR
1844 $ if (teststatus.nes."1")
1846 $ perl_d_strtouq="undef"
1848 $ perl_d_strtouq="define"
1851 $ WRITE_RESULT "d_strtouq is ''perl_d_strtouq'"
1853 $! Check for strtoll
1857 $ WS "#include <stdlib.h>
1859 $ WS "#include <string.h>
1862 $ WS "__int64 result;
1863 $ WS "result = strtoll(""123123"", NULL, 10);
1867 $ DEFINE SYS$ERROR _NLA0:
1868 $ DEFINE SYS$OUTPUT _NLA0:
1869 $ on error then continue
1870 $ on warning then continue
1872 $ savedstatus = $status
1873 $ teststatus = f$extract(9,1,savedstatus)
1874 $ if (teststatus.nes."1")
1876 $ perl_d_strtoll="undef"
1877 $ DEASSIGN SYS$OUTPUT
1878 $ DEASSIGN SYS$ERROR
1880 $ If (Needs_Opt.eqs."Yes")
1882 $ link temp.obj,temp.opt/opt
1886 $ savedstatus = $status
1887 $ teststatus = f$extract(9,1,savedstatus)
1888 $ DEASSIGN SYS$OUTPUT
1889 $ DEASSIGN SYS$ERROR
1890 $ if (teststatus.nes."1")
1892 $ perl_d_strtoll="undef"
1894 $ perl_d_strtoll="define"
1897 $ WRITE_RESULT "d_strtoll is ''perl_d_strtoll'"
1899 $! Check for strtold
1903 $ WS "#include <stdlib.h>
1905 $ WS "#include <string.h>
1908 $ WS "long double result;
1909 $ WS "result = strtold(""123123"", NULL, 10);
1913 $ DEFINE SYS$ERROR _NLA0:
1914 $ DEFINE SYS$OUTPUT _NLA0:
1915 $ on error then continue
1916 $ on warning then continue
1918 $ savedstatus = $status
1919 $ teststatus = f$extract(9,1,savedstatus)
1920 $ if (teststatus.nes."1")
1922 $ perl_d_strtold="undef"
1923 $ DEASSIGN SYS$OUTPUT
1924 $ DEASSIGN SYS$ERROR
1926 $ If (Needs_Opt.eqs."Yes")
1928 $ link temp.obj,temp.opt/opt
1932 $ savedstatus = $status
1933 $ teststatus = f$extract(9,1,savedstatus)
1934 $ DEASSIGN SYS$OUTPUT
1935 $ DEASSIGN SYS$ERROR
1936 $ if (teststatus.nes."1")
1938 $ perl_d_strtold="undef"
1940 $ perl_d_strtold="define"
1943 $ WRITE_RESULT "d_strtold is ''perl_d_strtold'"
1949 $ WS "#include <stdlib.h>
1951 $ WS "#include <string.h>
1954 $ WS " __int64 result;
1955 $ WS "result = atoll(""123123"");
1959 $ DEFINE SYS$ERROR _NLA0:
1960 $ DEFINE SYS$OUTPUT _NLA0:
1961 $ on error then continue
1962 $ on warning then continue
1964 $ savedstatus = $status
1965 $ teststatus = f$extract(9,1,savedstatus)
1966 $ if (teststatus.nes."1")
1968 $ perl_d_atoll="undef"
1969 $ DEASSIGN SYS$OUTPUT
1970 $ DEASSIGN SYS$ERROR
1972 $ If (Needs_Opt.eqs."Yes")
1974 $ link temp.obj,temp.opt/opt
1978 $ savedstatus = $status
1979 $ teststatus = f$extract(9,1,savedstatus)
1980 $ DEASSIGN SYS$OUTPUT
1981 $ DEASSIGN SYS$ERROR
1982 $ if (teststatus.nes."1")
1984 $ perl_d_atoll="undef"
1986 $ perl_d_atoll="define"
1989 $ WRITE_RESULT "d_atoll is ''perl_d_atoll'"
1995 $ WS "#include <stdlib.h>
1997 $ WS "#include <string.h>
2001 $ WS "result = atolf(""123123"");
2005 $ DEFINE SYS$ERROR _NLA0:
2006 $ DEFINE SYS$OUTPUT _NLA0:
2007 $ on error then continue
2008 $ on warning then continue
2010 $ savedstatus = $status
2011 $ teststatus = f$extract(9,1,savedstatus)
2012 $ if (teststatus.nes."1")
2014 $ perl_d_atolf="undef"
2015 $ DEASSIGN SYS$OUTPUT
2016 $ DEASSIGN SYS$ERROR
2018 $ If (Needs_Opt.eqs."Yes")
2020 $ link temp.obj,temp.opt/opt
2024 $ savedstatus = $status
2025 $ teststatus = f$extract(9,1,savedstatus)
2026 $ DEASSIGN SYS$OUTPUT
2027 $ DEASSIGN SYS$ERROR
2028 $ if (teststatus.nes."1")
2030 $ perl_d_atolf="undef"
2032 $ perl_d_atolf="define"
2035 $ WRITE_RESULT "d_atolf is ''perl_d_atolf'"
2041 $ WS "#include <stdlib.h>
2043 $ WS "#include <stdio.h>
2044 $ WS "#include <unistd.h>
2047 $ WS "access("foo", F_OK);
2051 $ DEFINE SYS$ERROR _NLA0:
2052 $ DEFINE SYS$OUTPUT _NLA0:
2053 $ on error then continue
2054 $ on warning then continue
2056 $ savedstatus = $status
2057 $ teststatus = f$extract(9,1,savedstatus)
2058 $ if (teststatus.nes."1")
2060 $ perl_d_access="undef"
2061 $ DEASSIGN SYS$OUTPUT
2062 $ DEASSIGN SYS$ERROR
2064 $ If (Needs_Opt.eqs."Yes")
2066 $ link temp.obj,temp.opt/opt
2070 $ savedstatus = $status
2071 $ teststatus = f$extract(9,1,savedstatus)
2072 $ DEASSIGN SYS$OUTPUT
2073 $ DEASSIGN SYS$ERROR
2074 $ if (teststatus.nes."1")
2076 $ perl_d_access="undef"
2078 $ perl_d_access="define"
2081 $ WRITE_RESULT "d_access is ''perl_d_access'"
2087 $ WS "#include <stdlib.h>
2089 $ WS "#include <stdio.h>
2090 $ WS "#include <strings.h>
2094 $ WS "bzero(foo, 10);
2098 $ DEFINE SYS$ERROR _NLA0:
2099 $ DEFINE SYS$OUTPUT _NLA0:
2100 $ on error then continue
2101 $ on warning then continue
2103 $ savedstatus = $status
2104 $ teststatus = f$extract(9,1,savedstatus)
2105 $ if (teststatus.nes."1")
2107 $ perl_d_bzero="undef"
2108 $ DEASSIGN SYS$OUTPUT
2109 $ DEASSIGN SYS$ERROR
2111 $ If (Needs_Opt.eqs."Yes")
2113 $ link temp.obj,temp.opt/opt
2117 $ savedstatus = $status
2118 $ teststatus = f$extract(9,1,savedstatus)
2119 $ DEASSIGN SYS$OUTPUT
2120 $ DEASSIGN SYS$ERROR
2121 $ if (teststatus.nes."1")
2123 $ perl_d_bzero="undef"
2125 $ perl_d_bzero="define"
2128 $ WRITE_RESULT "d_bzero is ''perl_d_bzero'"
2134 $ WS "#include <stdlib.h>
2136 $ WS "#include <stdio.h>
2137 $ WS "#include <strings.h>
2140 $ WS "char foo[10], bar[10];
2141 $ WS "bcopy(""foo"", bar, 3);
2145 $ DEFINE SYS$ERROR _NLA0:
2146 $ DEFINE SYS$OUTPUT _NLA0:
2147 $ on error then continue
2148 $ on warning then continue
2150 $ savedstatus = $status
2151 $ teststatus = f$extract(9,1,savedstatus)
2152 $ if (teststatus.nes."1")
2154 $ perl_d_bcopy="undef"
2155 $ DEASSIGN SYS$OUTPUT
2156 $ DEASSIGN SYS$ERROR
2158 $ If (Needs_Opt.eqs."Yes")
2160 $ link temp.obj,temp.opt/opt
2164 $ savedstatus = $status
2165 $ teststatus = f$extract(9,1,savedstatus)
2166 $ DEASSIGN SYS$OUTPUT
2167 $ DEASSIGN SYS$ERROR
2168 $ if (teststatus.nes."1")
2170 $ perl_d_bcopy="undef"
2172 $ perl_d_bcopy="define"
2175 $ WRITE_RESULT "d_bcopy is ''perl_d_bcopy'"
2177 $! Check for mkstemp
2181 $ WS "#include <stdlib.h>
2183 $ WS "#include <stdio.h>
2186 $ WS "mkstemp(""foo"");
2190 $ DEFINE SYS$ERROR _NLA0:
2191 $ DEFINE SYS$OUTPUT _NLA0:
2192 $ on error then continue
2193 $ on warning then continue
2195 $ If (Needs_Opt.eqs."Yes")
2197 $ link temp.obj,temp.opt/opt
2201 $ savedstatus = $status
2202 $ teststatus = f$extract(9,1,savedstatus)
2203 $ DEASSIGN SYS$OUTPUT
2204 $ DEASSIGN SYS$ERROR
2205 $ if (teststatus.nes."1")
2207 $ perl_d_mkstemp="undef"
2209 $ perl_d_mkstemp="define"
2211 $ WRITE_RESULT "d_mkstemp is ''perl_d_mkstemp'"
2213 $! Check for mkstemps
2217 $ WS "#include <stdlib.h>
2219 $ WS "#include <stdio.h>
2222 $ WS "mkstemps(""foo"", 1);
2226 $ DEFINE SYS$ERROR _NLA0:
2227 $ DEFINE SYS$OUTPUT _NLA0:
2228 $ on error then continue
2229 $ on warning then continue
2231 $ If (Needs_Opt.eqs."Yes")
2233 $ link temp.obj,temp.opt/opt
2237 $ savedstatus = $status
2238 $ teststatus = f$extract(9,1,savedstatus)
2239 $ DEASSIGN SYS$OUTPUT
2240 $ DEASSIGN SYS$ERROR
2241 $ if (teststatus.nes."1")
2243 $ perl_d_mkstemps="undef"
2245 $ perl_d_mkstemps="define"
2247 $ WRITE_RESULT "d_mkstemps is ''perl_d_mkstemps'"
2253 $ WS "#include <stdlib.h>
2255 $ WS "#include <stdio.h>
2256 $ WS "#include <iconv.h>
2259 $ WS " iconv_t cd = (iconv_t)0;"
2260 $ WS " char *inbuf, *outbuf;"
2261 $ WS " size_t inleft, outleft;"
2262 $ WS " iconv(cd, &inbuf, &inleft, &outbuf, &outleft);"
2266 $ DEFINE SYS$ERROR _NLA0:
2267 $ DEFINE SYS$OUTPUT _NLA0:
2268 $ on error then continue
2269 $ on warning then continue
2271 $ savedstatus = $status
2272 $ teststatus = f$extract(9,1,savedstatus)
2273 $ if (teststatus.nes."1")
2275 $ perl_d_iconv="undef"
2276 $ perl_i_iconv="undef"
2277 $ DEASSIGN SYS$OUTPUT
2278 $ DEASSIGN SYS$ERROR
2280 $ If (Needs_Opt.eqs."Yes")
2282 $ link temp.obj,temp.opt/opt
2286 $ savedstatus = $status
2287 $ teststatus = f$extract(9,1,savedstatus)
2288 $ DEASSIGN SYS$OUTPUT
2289 $ DEASSIGN SYS$ERROR
2290 $ if (teststatus.nes."1")
2292 $ perl_d_iconv="undef"
2293 $ perl_i_iconv="undef"
2295 $ perl_d_iconv="define"
2296 $ perl_i_iconv="define"
2299 $ WRITE_RESULT "d_iconv is ''perl_d_iconv'"
2300 $ WRITE_RESULT "i_iconv is ''perl_i_iconv'"
2302 $! Check for mkdtemp
2306 $ WS "#include <stdlib.h>
2308 $ WS "#include <stdio.h>
2311 $ WS "mkdtemp(""foo"");
2315 $ DEFINE SYS$ERROR _NLA0:
2316 $ DEFINE SYS$OUTPUT _NLA0:
2317 $ on error then continue
2318 $ on warning then continue
2320 $ If (Needs_Opt.eqs."Yes")
2322 $ link temp.obj,temp.opt/opt
2326 $ savedstatus = $status
2327 $ teststatus = f$extract(9,1,savedstatus)
2328 $ DEASSIGN SYS$OUTPUT
2329 $ DEASSIGN SYS$ERROR
2330 $ if (teststatus.nes."1")
2332 $ perl_d_mkdtemp="undef"
2334 $ perl_d_mkdtemp="define"
2336 $ WRITE_RESULT "d_mkdtemp is ''perl_d_mkdtemp'"
2338 $! Check for setvbuf
2342 $ WS "#include <stdlib.h>
2344 $ WS "#include <stdio.h>
2348 $ WS "char Buffer[99];
2349 $ WS "foo = fopen(""foo"", ""r"");
2350 $ WS "setvbuf(foo, Buffer, 0, 0);
2354 $ DEFINE SYS$ERROR _NLA0:
2355 $ DEFINE SYS$OUTPUT _NLA0:
2356 $ on error then continue
2357 $ on warning then continue
2359 $ If (Needs_Opt.eqs."Yes")
2361 $ link temp.obj,temp.opt/opt
2365 $ teststatus = f$extract(9,1,$status)
2366 $ DEASSIGN SYS$OUTPUT
2367 $ DEASSIGN SYS$ERROR
2368 $ if (teststatus.nes."1")
2370 $ perl_d_setvbuf="undef"
2372 $ perl_d_setvbuf="define"
2374 $ WRITE_RESULT "d_setvbuf is ''perl_d_setvbuf'"
2380 $ WS "#include <stdlib.h>
2382 $ WS "#include <stdio.h>
2385 $ WS "setenv(""FOO"", ""BAR"", 0);
2389 $ DEFINE SYS$ERROR _NLA0:
2390 $ DEFINE SYS$OUTPUT _NLA0:
2391 $ on error then continue
2392 $ on warning then continue
2394 $ If (Needs_Opt.eqs."Yes")
2396 $ link temp,temp/opt
2400 $ teststatus = f$extract(9,1,$status)
2401 $ DEASSIGN SYS$OUTPUT
2402 $ DEASSIGN SYS$ERROR
2403 $ if (teststatus.nes."1")
2405 $ perl_d_setenv="undef"
2407 $ perl_d_setenv="define"
2409 $ WRITE_RESULT "d_setenv is ''perl_d_setenv'"
2411 $! Check for <netinet/in.h>
2413 $ if ("''Has_Dec_C_Sockets'".eqs."T").or.("''Has_Socketshr'".eqs."T")
2417 $ WS "#include <stdlib.h>
2419 $ WS "#include <stdio.h>
2420 $ if ("''Has_Socketshr'".eqs."T")
2422 $ WS "#include <socketshr.h>"
2424 $ WS "#include <netdb.h>
2426 $ WS "#include <netinet/in.h>"
2432 $ DEFINE SYS$ERROR _NLA0:
2433 $ DEFINE SYS$OUTPUT _NLA0:
2434 $ on error then continue
2435 $ on warning then continue
2437 $ If (Needs_Opt.eqs."Yes")
2439 $ link temp.obj,temp.opt/opt
2443 $ teststatus = f$extract(9,1,$status)
2444 $ DEASSIGN SYS$OUTPUT
2445 $ DEASSIGN SYS$ERROR
2446 $ if (teststatus.nes."1")
2448 $ perl_i_niin="undef"
2450 $ perl_i_niin="define"
2453 $ perl_i_niin="undef"
2455 $ WRITE_RESULT "i_niin is ''perl_i_niin'"
2457 $! Check for <netinet/tcp.h>
2459 $ if ("''Has_Dec_C_Sockets'".eqs."T").or.("''Has_Socketshr'".eqs."T")
2463 $ WS "#include <stdlib.h>
2465 $ WS "#include <stdio.h>
2466 $ if ("''Has_Socketshr'".eqs."T")
2468 $ WS "#include <socketshr.h>"
2470 $ WS "#include <netdb.h>
2472 $ WS "#include <netinet/tcp.h>"
2478 $ DEFINE SYS$ERROR _NLA0:
2479 $ DEFINE SYS$OUTPUT _NLA0:
2480 $ on error then continue
2481 $ on warning then continue
2483 $ If (Needs_Opt.eqs."Yes")
2485 $ link temp.obj,temp.opt/opt
2489 $ teststatus = f$extract(9,1,$status)
2490 $ DEASSIGN SYS$OUTPUT
2491 $ DEASSIGN SYS$ERROR
2492 $ if (teststatus.nes."1")
2494 $ perl_i_netinettcp="undef"
2496 $ perl_i_netinettcp="define"
2499 $ perl_i_netinettcp="undef"
2501 $ WRITE_RESULT "i_netinettcp is ''perl_i_netinettcp'"
2503 $! Check for endhostent
2505 $ if ("''Has_Dec_C_Sockets'".eqs."T").or.("''Has_Socketshr'".eqs."T")
2509 $ WS "#include <stdlib.h>
2511 $ WS "#include <stdio.h>
2512 $ if ("''Has_Socketshr'".eqs."T")
2514 $ WS "#include <socketshr.h>"
2516 $ WS "#include <netdb.h>
2524 $ DEFINE SYS$ERROR _NLA0:
2525 $ DEFINE SYS$OUTPUT _NLA0:
2526 $ on error then continue
2527 $ on warning then continue
2529 $ If (Needs_Opt.eqs."Yes")
2531 $ link temp.obj,temp.opt/opt
2535 $ teststatus = f$extract(9,1,$status)
2536 $ DEASSIGN SYS$OUTPUT
2537 $ DEASSIGN SYS$ERROR
2538 $ if (teststatus.nes."1")
2540 $ perl_d_endhent="undef"
2542 $ perl_d_endhent="define"
2545 $ perl_d_endhent="undef"
2547 $ WRITE_RESULT "d_endhent is ''perl_d_endhent'"
2549 $! Check for endnetent
2551 $ if ("''Has_Dec_C_Sockets'".eqs."T").or.("''Has_Socketshr'".eqs."T")
2555 $ WS "#include <stdlib.h>
2557 $ WS "#include <stdio.h>
2558 $ if ("''Has_Socketshr'".eqs."T")
2560 $ WS "#include <socketshr.h>"
2562 $ WS "#include <netdb.h>
2570 $ DEFINE SYS$ERROR _NLA0:
2571 $ DEFINE SYS$OUTPUT _NLA0:
2572 $ on error then continue
2573 $ on warning then continue
2575 $ If (Needs_Opt.eqs."Yes")
2577 $ link temp.obj,temp.opt/opt
2581 $ teststatus = f$extract(9,1,$status)
2582 $ DEASSIGN SYS$OUTPUT
2583 $ DEASSIGN SYS$ERROR
2584 $ if (teststatus.nes."1")
2586 $ perl_d_endnent="undef"
2588 $ perl_d_endnent="define"
2591 $ perl_d_endnent="undef"
2593 $ WRITE_RESULT "d_endnent is ''perl_d_endnent'"
2595 $! Check for endprotoent
2597 $ if ("''Has_Dec_C_Sockets'".eqs."T").or.("''Has_Socketshr'".eqs."T")
2601 $ WS "#include <stdlib.h>
2603 $ WS "#include <stdio.h>
2604 $ if ("''Has_Socketshr'".eqs."T")
2606 $ WS "#include <socketshr.h>"
2608 $ WS "#include <netdb.h>
2612 $ WS "endprotoent();
2616 $ DEFINE SYS$ERROR _NLA0:
2617 $ DEFINE SYS$OUTPUT _NLA0:
2618 $ on error then continue
2619 $ on warning then continue
2621 $ If (Needs_Opt.eqs."Yes")
2623 $ link temp.obj,temp.opt/opt
2627 $ teststatus = f$extract(9,1,$status)
2628 $ DEASSIGN SYS$OUTPUT
2629 $ DEASSIGN SYS$ERROR
2630 $ if (teststatus.nes."1")
2632 $ perl_d_endpent="undef"
2634 $ perl_d_endpent="define"
2637 $ perl_d_endpent="undef"
2639 $ WRITE_RESULT "d_endpent is ''perl_d_endpent'"
2641 $! Check for endservent
2643 $ if ("''Has_Dec_C_Sockets'".eqs."T").or.("''Has_Socketshr'".eqs."T")
2647 $ WS "#include <stdlib.h>
2649 $ WS "#include <stdio.h>
2650 $ if ("''Has_Socketshr'".eqs."T")
2652 $ WS "#include <socketshr.h>"
2654 $ WS "#include <netdb.h>
2662 $ DEFINE SYS$ERROR _NLA0:
2663 $ DEFINE SYS$OUTPUT _NLA0:
2664 $ on error then continue
2665 $ on warning then continue
2667 $ If (Needs_Opt.eqs."Yes")
2669 $ link temp.obj,temp.opt/opt
2673 $ teststatus = f$extract(9,1,$status)
2674 $ DEASSIGN SYS$OUTPUT
2675 $ DEASSIGN SYS$ERROR
2676 $ if (teststatus.nes."1")
2678 $ perl_d_endsent="undef"
2680 $ perl_d_endsent="define"
2683 $ perl_d_endsent="undef"
2685 $ WRITE_RESULT "d_endsent is ''perl_d_endsent'"
2687 $! Check for sethostent
2689 $ if ("''Has_Dec_C_Sockets'".eqs."T").or.("''Has_Socketshr'".eqs."T")
2693 $ WS "#include <stdlib.h>
2695 $ WS "#include <stdio.h>
2696 $ if ("''Has_Socketshr'".eqs."T")
2698 $ WS "#include <socketshr.h>"
2700 $ WS "#include <netdb.h>
2704 $ WS "sethostent(1);
2708 $ DEFINE SYS$ERROR _NLA0:
2709 $ DEFINE SYS$OUTPUT _NLA0:
2710 $ on error then continue
2711 $ on warning then continue
2713 $ If (Needs_Opt.eqs."Yes")
2715 $ link temp.obj,temp.opt/opt
2719 $ teststatus = f$extract(9,1,$status)
2720 $ DEASSIGN SYS$OUTPUT
2721 $ DEASSIGN SYS$ERROR
2722 $ if (teststatus.nes."1")
2724 $ perl_d_sethent="undef"
2726 $ perl_d_sethent="define"
2729 $ perl_d_sethent="undef"
2731 $ WRITE_RESULT "d_sethent is ''perl_d_sethent'"
2733 $! Check for setnetent
2735 $ if ("''Has_Dec_C_Sockets'".eqs."T").or.("''Has_Socketshr'".eqs."T")
2739 $ WS "#include <stdlib.h>
2741 $ WS "#include <stdio.h>
2742 $ if ("''Has_Socketshr'".eqs."T")
2744 $ WS "#include <socketshr.h>"
2746 $ WS "#include <netdb.h>
2754 $ DEFINE SYS$ERROR _NLA0:
2755 $ DEFINE SYS$OUTPUT _NLA0:
2756 $ on error then continue
2757 $ on warning then continue
2759 $ If (Needs_Opt.eqs."Yes")
2761 $ link temp.obj,temp.opt/opt
2765 $ teststatus = f$extract(9,1,$status)
2766 $ DEASSIGN SYS$OUTPUT
2767 $ DEASSIGN SYS$ERROR
2768 $ if (teststatus.nes."1")
2770 $ perl_d_setnent="undef"
2772 $ perl_d_setnent="define"
2775 $ perl_d_setnent="undef"
2777 $ WRITE_RESULT "d_setnent is ''perl_d_setnent'"
2779 $! Check for setprotoent
2781 $ if ("''Has_Dec_C_Sockets'".eqs."T").or.("''Has_Socketshr'".eqs."T")
2785 $ WS "#include <stdlib.h>
2787 $ WS "#include <stdio.h>
2788 $ if ("''Has_Socketshr'".eqs."T")
2790 $ WS "#include <socketshr.h>"
2792 $ WS "#include <netdb.h>
2796 $ WS "setprotoent(1);
2800 $ DEFINE SYS$ERROR _NLA0:
2801 $ DEFINE SYS$OUTPUT _NLA0:
2802 $ on error then continue
2803 $ on warning then continue
2805 $ If (Needs_Opt.eqs."Yes")
2807 $ link temp.obj,temp.opt/opt
2811 $ teststatus = f$extract(9,1,$status)
2812 $ DEASSIGN SYS$OUTPUT
2813 $ DEASSIGN SYS$ERROR
2814 $ if (teststatus.nes."1")
2816 $ perl_d_setpent="undef"
2818 $ perl_d_setpent="define"
2821 $ perl_d_setpent="undef"
2823 $ WRITE_RESULT "d_setpent is ''perl_d_setpent'"
2825 $! Check for setservent
2827 $ if ("''Has_Dec_C_Sockets'".eqs."T").or.("''Has_Socketshr'".eqs."T")
2831 $ WS "#include <stdlib.h>
2833 $ WS "#include <stdio.h>
2834 $ if ("''Has_Socketshr'".eqs."T")
2836 $ WS "#include <socketshr.h>"
2838 $ WS "#include <netdb.h>
2842 $ WS "setservent(1);
2846 $ DEFINE SYS$ERROR _NLA0:
2847 $ DEFINE SYS$OUTPUT _NLA0:
2848 $ on error then continue
2849 $ on warning then continue
2851 $ If (Needs_Opt.eqs."Yes")
2853 $ link temp.obj,temp.opt/opt
2857 $ teststatus = f$extract(9,1,$status)
2858 $ DEASSIGN SYS$OUTPUT
2859 $ DEASSIGN SYS$ERROR
2860 $ if (teststatus.nes."1")
2862 $ perl_d_setsent="undef"
2864 $ perl_d_setsent="define"
2867 $ perl_d_setsent="undef"
2869 $ WRITE_RESULT "d_setsent is ''perl_d_setsent'"
2871 $! Check for gethostent
2873 $ if ("''Has_Dec_C_Sockets'".eqs."T").or.("''Has_Socketshr'".eqs."T")
2877 $ WS "#include <stdlib.h>
2879 $ WS "#include <stdio.h>
2880 $ if ("''Has_Socketshr'".eqs."T")
2882 $ WS "#include <socketshr.h>"
2884 $ WS "#include <netdb.h>
2892 $ DEFINE SYS$ERROR _NLA0:
2893 $ DEFINE SYS$OUTPUT _NLA0:
2894 $ on error then continue
2895 $ on warning then continue
2897 $ If (Needs_Opt.eqs."Yes")
2899 $ link temp.obj,temp.opt/opt
2903 $ teststatus = f$extract(9,1,$status)
2904 $ DEASSIGN SYS$OUTPUT
2905 $ DEASSIGN SYS$ERROR
2906 $ if (teststatus.nes."1")
2908 $ perl_d_gethent="undef"
2910 $ perl_d_gethent="define"
2913 $ perl_d_gethent="undef"
2915 $ WRITE_RESULT "d_gethent is ''perl_d_gethent'"
2917 $! Check for getnetent
2919 $ if ("''Has_Dec_C_Sockets'".eqs."T").or.("''Has_Socketshr'".eqs."T")
2923 $ WS "#include <stdlib.h>
2925 $ WS "#include <stdio.h>
2926 $ if ("''Has_Socketshr'".eqs."T")
2928 $ WS "#include <socketshr.h>"
2930 $ WS "#include <netdb.h>
2938 $ DEFINE SYS$ERROR _NLA0:
2939 $ DEFINE SYS$OUTPUT _NLA0:
2940 $ on error then continue
2941 $ on warning then continue
2943 $ If (Needs_Opt.eqs."Yes")
2945 $ link temp.obj,temp.opt/opt
2949 $ teststatus = f$extract(9,1,$status)
2950 $ DEASSIGN SYS$OUTPUT
2951 $ DEASSIGN SYS$ERROR
2952 $ if (teststatus.nes."1")
2954 $ perl_d_getnent="undef"
2956 $ perl_d_getnent="define"
2959 $ perl_d_getnent="undef"
2961 $ WRITE_RESULT "d_getnent is ''perl_d_getnent'"
2963 $! Check for getprotoent
2965 $ if ("''Has_Dec_C_Sockets'".eqs."T").or.("''Has_Socketshr'".eqs."T")
2969 $ WS "#include <stdlib.h>
2971 $ WS "#include <stdio.h>
2972 $ if ("''Has_Socketshr'".eqs."T")
2974 $ WS "#include <socketshr.h>"
2976 $ WS "#include <netdb.h>
2980 $ WS "getprotoent();
2984 $ DEFINE SYS$ERROR _NLA0:
2985 $ DEFINE SYS$OUTPUT _NLA0:
2986 $ on error then continue
2987 $ on warning then continue
2989 $ If (Needs_Opt.eqs."Yes")
2991 $ link temp.obj,temp.opt/opt
2995 $ teststatus = f$extract(9,1,$status)
2996 $ DEASSIGN SYS$OUTPUT
2997 $ DEASSIGN SYS$ERROR
2998 $ if (teststatus.nes."1")
3000 $ perl_d_getpent="undef"
3002 $ perl_d_getpent="define"
3005 $ perl_d_getpent="undef"
3007 $ WRITE_RESULT "d_getpent is ''perl_d_getpent'"
3009 $! Check for getservent
3011 $ if ("''Has_Dec_C_Sockets'".eqs."T").or.("''Has_Socketshr'".eqs."T")
3015 $ WS "#include <stdlib.h>
3017 $ WS "#include <stdio.h>
3018 $ if ("''Has_Socketshr'".eqs."T")
3020 $ WS "#include <socketshr.h>"
3022 $ WS "#include <netdb.h>
3030 $ DEFINE SYS$ERROR _NLA0:
3031 $ DEFINE SYS$OUTPUT _NLA0:
3032 $ on error then continue
3033 $ on warning then continue
3035 $ If (Needs_Opt.eqs."Yes")
3037 $ link temp.obj,temp.opt/opt
3041 $ teststatus = f$extract(9,1,$status)
3042 $ DEASSIGN SYS$OUTPUT
3043 $ DEASSIGN SYS$ERROR
3044 $ if (teststatus.nes."1")
3046 $ perl_d_getsent="undef"
3048 $ perl_d_getsent="define"
3051 $ perl_d_getsent="undef"
3053 $ WRITE_RESULT "d_getsent is ''perl_d_getsent'"
3055 $! Check for socklen_t
3057 $ if ("''Has_Dec_C_Sockets'".eqs."T").or.("''Has_Socketshr'".eqs."T")
3061 $ WS "#include <stdlib.h>
3063 $ WS "#include <stdio.h>
3064 $ IF ("''Has_Socketshr'".eqs."T")
3066 $ WS "#include <socketshr.h>"
3068 $ WS "#include <netdb.h>
3072 $ WS "socklen_t x = 16;
3076 $ DEFINE SYS$ERROR _NLA0:
3077 $ DEFINE SYS$OUTPUT _NLA0:
3078 $ on error then continue
3079 $ on warning then continue
3081 $ If (Needs_Opt.eqs."Yes")
3083 $ link temp.obj,temp.opt/opt
3087 $ teststatus = f$extract(9,1,$status)
3088 $ DEASSIGN SYS$OUTPUT
3089 $ DEASSIGN SYS$ERROR
3090 $ if (teststatus.nes."1")
3092 $ perl_d_socklen_t="undef"
3094 $ perl_d_socklen_t="define"
3097 $ perl_d_socklen_t="undef"
3099 $ WRITE_RESULT "d_socklen_t is ''perl_d_socklen_t'"
3101 $! Check for pthread_yield
3103 $ if ("''use_threads'".eqs."T")
3107 $ WS "#include <stdlib.h>
3109 $ WS "#include <pthread.h>
3110 $ WS "#include <stdio.h>
3113 $ WS "pthread_yield();
3117 $ DEFINE SYS$ERROR _NLA0:
3118 $ DEFINE SYS$OUTPUT _NLA0:
3119 $ on error then continue
3120 $ on warning then continue
3122 $ teststatus = f$extract(9,1,$status)
3123 $ DEASSIGN SYS$OUTPUT
3124 $ DEASSIGN SYS$ERROR
3125 $ if (teststatus.nes."1")
3127 $ perl_d_pthread_yield="undef"
3129 $ perl_d_pthread_yield="define"
3132 $ perl_d_pthread_yield="undef"
3134 $ WRITE_RESULT "d_pthread_yield is ''perl_d_pthread_yield'"
3136 $! Check for sched_yield
3138 $ if ("''use_threads'".eqs."T")
3142 $ WS "#include <stdlib.h>
3144 $ WS "#include <pthread.h>
3145 $ WS "#include <stdio.h>
3148 $ WS "sched_yield();
3152 $ DEFINE SYS$ERROR _NLA0:
3153 $ DEFINE SYS$OUTPUT _NLA0:
3154 $ on error then continue
3155 $ on warning then continue
3157 $ teststatus = f$extract(9,1,$status)
3158 $ DEASSIGN SYS$OUTPUT
3159 $ DEASSIGN SYS$ERROR
3160 $ if (teststatus.nes."1")
3162 $ perl_d_sched_yield="undef"
3163 $ perl_sched_yield = " "
3165 $ perl_d_sched_yield="define"
3166 $ perl_sched_yield = "sched_yield"
3169 $ perl_d_sched_yield="undef"
3170 $ perl_sched_yield = " "
3172 $ WRITE_RESULT "d_sched_yield is ''perl_d_sched_yield'"
3173 $ WRITE_RESULT "sched_yield is ''perl_sched_yield'"
3175 $! Check for generic pointer size
3179 $ WS "#include <stdlib.h>
3181 $ WS "#include <stdio.h>
3185 $ WS "foo = sizeof(char *);
3186 $ WS "printf(""%d\n"", foo);
3190 $ DEFINE SYS$ERROR _NLA0:
3191 $ DEFINE SYS$OUTPUT _NLA0:
3192 $ ON ERROR THEN CONTINUE
3193 $ ON WARNING THEN CONTINUE
3195 $ If (Needs_Opt.eqs."Yes")
3197 $ link temp.obj,temp.opt/opt
3201 $ OPEN/WRITE TEMPOUT [-.uu]tempout.lis
3202 $ DEASSIGN SYS$OUTPUT
3203 $ DEASSIGN SYS$ERROR
3204 $ DEFINE SYS$ERROR TEMPOUT
3205 $ DEFINE SYS$OUTPUT TEMPOUT
3208 $ DEASSIGN SYS$OUTPUT
3209 $ DEASSIGN SYS$ERROR
3210 $ OPEN/READ TEMPOUT [-.uu]tempout.lis
3213 $ DELETE/NOLOG [-.uu]tempout.lis;
3216 $ WRITE_RESULT "ptrsize is ''perl_ptrsize'"
3218 $! Check for size_t size
3222 $ WS "#include <stdlib.h>
3224 $ WS "#include <stdio.h>
3228 $ WS "foo = sizeof(size_t);
3229 $ WS "printf(""%d\n"", foo);
3233 $ DEFINE SYS$ERROR _NLA0:
3234 $ DEFINE SYS$OUTPUT _NLA0:
3235 $ ON ERROR THEN CONTINUE
3236 $ ON WARNING THEN CONTINUE
3240 $ link temp.obj,temp.opt/opt
3244 $ OPEN/WRITE TEMPOUT [-.uu]tempout.lis
3245 $ DEASSIGN SYS$OUTPUT
3246 $ DEASSIGN SYS$ERROR
3247 $ DEFINE SYS$ERROR TEMPOUT
3248 $ DEFINE SYS$OUTPUT TEMPOUT
3251 $ DEASSIGN SYS$OUTPUT
3252 $ DEASSIGN SYS$ERROR
3253 $ OPEN/READ TEMPOUT [-.uu]tempout.lis
3256 $ DELETE/NOLOG [-.uu]tempout.lis;
3258 $ perl_sizesize=line
3259 $ WRITE_RESULT "sizesize is ''perl_sizesize'"
3261 $! Check rand48 and its ilk
3265 $ WS "#include <stdlib.h>
3267 $ WS "#include <stdio.h>
3270 $ WS "srand48(12L);"
3275 $ DEFINE SYS$ERROR _NLA0:
3276 $ DEFINE SYS$OUTPUT _NLA0:
3277 $ ON ERROR THEN CONTINUE
3278 $ ON WARNING THEN CONTINUE
3280 $ If (Needs_Opt.eqs."Yes")
3282 $ link temp,temp.opt/opt
3286 $ teststatus = f$extract(9,1,$status)
3287 $ DEASSIGN SYS$OUTPUT
3288 $ DEASSIGN SYS$ERROR
3289 $ if (teststatus.nes."1")
3291 $ perl_drand01="random()"
3292 $ perl_randseedtype = "unsigned"
3293 $ perl_seedfunc = "srandom"
3297 $ WS "#include <stdlib.h>
3299 $ WS "#include <stdio.h>
3306 $! copy temp.c sys$output
3308 $ DEFINE SYS$ERROR _NLA0:
3309 $ DEFINE SYS$OUTPUT _NLA0:
3310 $ ON ERROR THEN CONTINUE
3311 $ ON WARNING THEN CONTINUE
3313 $ If (Needs_Opt.eqs."Yes")
3315 $ link temp,temp.opt/opt
3319 $ teststatus = f$extract(9,1,$status)
3320 $ DEASSIGN SYS$OUTPUT
3321 $ DEASSIGN SYS$ERROR
3322 $ if (teststatus.nes."1")
3324 $ perl_drand01="(((float)rand())/((float)RAND_MAX))"
3325 $ perl_randseedtype = "unsigned"
3326 $ perl_seedfunc = "srand"
3328 $ WRITE_RESULT "drand01 is ''perl_drand01'"
3331 $! Done with compiler checks. Clean up.
3332 $ if f$search("temp.c").nes."" then DELETE/NOLOG temp.c;*
3333 $ if f$search("temp.obj").nes."" then DELETE/NOLOG temp.obj;*
3334 $ if f$search("temp.exe").nes."" then DELETE/NOLOG temp.exe;*
3335 $ if f$search("temp.opt").nes."" then DELETE/NOLOG Temp.opt;*
3338 $! Some that are compiler or VMS version sensitive
3341 $ IF "''Using_Gnu_C'".EQS."Yes"
3343 $ perl_d_attribut="define"
3344 $ perl_vms_cc_type="gcc"
3346 $ perl_vms_cc_type="cc"
3347 $ perl_d_attribut="undef"
3350 $! Dec C >= 5.2 and VMS ver >= 7.0
3351 $ IF (Using_Dec_C).AND.(F$INTEGER(Dec_C_Version).GE.50200000).AND.(VMS_VER .GES. "7.0")
3353 $ perl_d_bcmp="define"
3354 $ perl_d_gettimeod="define"
3355 $ perl_d_uname="define"
3356 $ perl_d_sigaction="define"
3357 $ perl_d_truncate="define"
3358 $ perl_d_wait4="define"
3359 $ perl_d_index="define"
3360 $ perl_pidtype="pid_t"
3361 $ perl_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"
3362 $ psnwc1="""ZERO"",""HUP"",""INT"",""QUIT"",""ILL"",""TRAP"",""IOT"",""EMT"",""FPE"",""KILL"",""BUS"",""SEGV"",""SYS"","
3363 $ psnwc2="""PIPE"",""ALRM"",""TERM"",""ABRT"",""USR1"",""USR2"",""SPARE18"",""SPARE19"",""CHLD"",""CONT"",""STOP"",""TSTP"","
3364 $ psnwc3="""TTIN"",""TTOU"",""DEBUG"",""SPARE27"",""SPARE28"",""SPARE29"",""SPARE30"",""SPARE31"",""SPARE32"",""RTMIN"",""RTMAX"",0"
3365 $perl_sig_name_with_commas = psnwc1 + psnwc2 + psnwc3
3366 $ perl_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"
3367 $ perl_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"
3368 $ perl_sig_num_with_commas=perl_sig_num_init
3369 $ perl_uidtype="uid_t"
3370 $ perl_d_pathconf="define"
3371 $ perl_d_fpathconf="define"
3372 $ perl_d_sysconf="define"
3373 $ perl_d_sigsetjmp="define"
3375 $ perl_pidtype="unsigned int"
3376 $ perl_d_gettimeod="undef"
3377 $ perl_d_bcmp="undef"
3378 $ perl_d_uname="undef"
3379 $ perl_d_sigaction="undef"
3380 $ perl_d_truncate="undef"
3381 $ perl_d_wait4="undef"
3382 $ perl_d_index="undef"
3383 $ perl_sig_name="ZERO HUP INT QUIT ILL TRAP IOT EMT FPE KILL BUS SEGV SYS PIPE ALRM TERM ABRT USR1 USR2"",0"
3384 $ psnwc1="""ZERO"",""HUP"",""INT"",""QUIT"",""ILL"",""TRAP"",""IOT"",""EMT"",""FPE"",""KILL"",""BUS"",""SEGV"",""SYS"","
3385 $ psnwc2="""PIPE"",""ALRM"",""TERM"",""ABRT"",""USR1"",""USR2"",0"
3386 $ perl_sig_name_with_commas = psnwc1 + psnwc2
3387 $ perl_sig_num="0 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 6 16 17"",0"
3388 $ perl_sig_num_init="0,1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,6,16,17,0"
3389 $ perl_sig_num_with_commas=perl_sig_num_init
3390 $ perl_uidtype="unsigned int"
3391 $ perl_d_pathconf="undef"
3392 $ perl_d_fpathconf="undef"
3393 $ perl_d_sysconf="undef"
3394 $ perl_d_sigsetjmp="undef"
3398 $ IF ("''Using_Dec_C'".EQS."Yes")
3400 $ perl_d_mbstowcs="define"
3401 $ perl_d_mbtowc="define"
3402 $ perl_d_stdiobase="define"
3403 $ perl_d_stdio_ptr_lval="define"
3404 $ perl_d_stdio_cnt_lval="define"
3405 $ perl_d_stdstdio="define"
3406 $ perl_d_wcstombs="define"
3407 $ perl_d_mblen="define"
3408 $ perl_d_mktime="define"
3409 $ perl_d_strcoll="define"
3410 $ perl_d_strxfrm="define"
3411 $ perl_d_wctomb="define"
3412 $ perl_i_locale="define"
3413 $ perl_d_locconv="define"
3414 $ perl_d_setlocale="define"
3415 $ perl_vms_cc_type="decc"
3417 $ perl_d_mbstowcs="undef"
3418 $ perl_d_mbtowc="undef"
3419 $ perl_d_stdiobase="undef"
3420 $ perl_d_stdio_ptr_lval="undef"
3421 $ perl_d_stdio_cnt_lval="undef"
3422 $ perl_d_stdstdio="undef"
3423 $ perl_d_wcstombs="undef"
3424 $ perl_d_mblen="undef"
3425 $ perl_d_mktime="undef"
3426 $ perl_d_strcoll="undef"
3427 $ perl_d_strxfrm="undef"
3428 $ perl_d_wctomb="undef"
3429 $ perl_i_locale="undef"
3430 $ perl_d_locconv="undef"
3431 $ perl_d_setlocale="undef"
3435 $ if ("''Has_Socketshr'".EQS."T").OR.("''Has_Dec_C_Sockets'".EQS."T")
3437 $ perl_d_vms_do_sockets="define"
3438 $ perl_d_htonl="define"
3439 $ perl_d_socket="define"
3440 $ perl_d_select="define"
3441 $ perl_netdb_host_type="char *"
3442 $ perl_netdb_hlen_type="int"
3443 $ perl_netdb_name_type="char *"
3444 $ perl_netdb_net_type="long"
3445 $ perl_d_gethbyaddr="define"
3446 $ perl_d_gethbyname="define"
3447 $ perl_d_getnbyaddr="define"
3448 $ perl_d_getnbyname="define"
3449 $ perl_d_getpbynumber="define"
3450 $ perl_d_getpbyname="define"
3451 $ perl_d_getsbyport="define"
3452 $ perl_d_getsbyname="define"
3453 $ perl_d_gethostprotos="define"
3454 $ perl_d_getnetprotos="define"
3455 $ perl_d_getprotoprotos="define"
3456 $ perl_d_getservprotos="define"
3457 $ IF ("''Using_Dec_C'".EQS."Yes")
3459 $ perl_socksizetype="unsigned int"
3461 $ perl_socksizetype="int *"
3464 $ perl_d_vms_do_sockets="undef"
3465 $ perl_d_htonl="undef"
3466 $ perl_d_socket="undef"
3467 $ perl_d_select="undef"
3468 $ perl_netdb_host_type="char *"
3469 $ perl_netdb_hlen_type="int"
3470 $ perl_netdb_name_type="char *"
3471 $ perl_netdb_net_type="long"
3472 $ perl_d_gethbyaddr="undef"
3473 $ perl_d_gethbyname="undef"
3474 $ perl_d_getnbyaddr="undef"
3475 $ perl_d_getnbyname="undef"
3476 $ perl_d_getpbynumber="undef"
3477 $ perl_d_getpbyname="undef"
3478 $ perl_d_getsbyport="undef"
3479 $ perl_d_getsbyname="undef"
3480 $ perl_d_gethostprotos="undef"
3481 $ perl_d_getnetprotos="undef"
3482 $ perl_d_getprotoprotos="undef"
3483 $ perl_d_getservprotos="undef"
3484 $ perl_socksizetype="undef"
3489 $ perl_usethreads="define"
3490 $ perl_d_pthreads_created_joinable="define"
3491 $ if (VMS_VER .GES. "7.0")
3493 $ perl_d_oldpthreads="undef"
3495 $ perl_d_oldpthreads="define"
3498 $ perl_d_oldpthreads="undef"
3499 $ perl_usethreads="undef"
3501 $ perl_d_pthreads_created_joinable="undef"
3504 $! new (5.005_62++) typedefs for primitives
3506 $ perl_ivtype="long"
3507 $ perl_uvtype="unsigned long"
3508 $ perl_i8type="char"
3509 $ perl_u8type="unsigned char"
3510 $ perl_i16type="short"
3511 $ perl_u16type="unsigned short"
3512 $ perl_i32type="int"
3513 $ perl_u32type="unsigned int"
3514 $ perl_i64type="long long"
3515 $ perl_u64type="unsigned long long"
3516 $ perl_nvtype="double"
3518 $ GOTO beyond_type_size_check
3522 $! Check for type sizes
3526 $ WS "#include <stdlib.h>
3528 $ WS "#include <stdio.h>
3531 $ WS "printf(""%d\n"", sizeof(''type'));"
3535 $ DEFINE SYS$ERROR _NLA0:
3536 $ DEFINE SYS$OUTPUT _NLA0:
3537 $ ON ERROR THEN CONTINUE
3538 $ ON WARNING THEN CONTINUE
3540 $ If (Needs_Opt.eqs."Yes")
3542 $ link temp.obj,temp.opt/opt
3546 $ OPEN/WRITE TEMPOUT [-.uu]tempout.lis
3547 $ DEASSIGN SYS$OUTPUT
3548 $ DEASSIGN SYS$ERROR
3549 $ DEFINE SYS$ERROR TEMPOUT
3550 $ DEFINE SYS$OUTPUT TEMPOUT
3553 $ DEASSIGN SYS$OUTPUT
3554 $ DEASSIGN SYS$ERROR
3555 $ OPEN/READ TEMPOUT [-.uu]tempout.lis
3558 $ DELETE/NOLOG [-.uu]tempout.lis;
3559 $ WRITE_RESULT "''size_name' is ''line'"
3563 $beyond_type_size_check:
3566 $ type = "''perl_ivtype'"
3567 $ size_name = "ivsize"
3568 $ gosub type_size_check
3569 $ perl_ivsize="''line'"
3570 $ IF type .eqs. "long"
3571 $ THEN perl_longsize = "''line'"
3574 $ size_name = "longsize"
3575 $ gosub type_size_check
3576 $ perl_longsize="''line'"
3579 $ type = "''perl_uvtype'"
3580 $ size_name = "uvsize"
3581 $ gosub type_size_check
3582 $ perl_uvsize="''line'"
3584 $ type = "''perl_i8type'"
3585 $ size_name = "i8size"
3586 $ gosub type_size_check
3587 $ perl_i8size="''line'"
3589 $ type = "''perl_u8type'"
3590 $ size_name = "u8size"
3591 $ gosub type_size_check
3592 $ perl_u8size="''line'"
3594 $ type = "''perl_i16type'"
3595 $ size_name = "i16size"
3596 $ gosub type_size_check
3597 $ perl_i16size="''line'"
3598 $ IF type .eqs. "short"
3599 $ THEN perl_shortsize="''line'"
3601 $ type = "''perl_i16type'"
3602 $ size_name = "shortsize"
3603 $ gosub type_size_check
3604 $ perl_shortsize="''line'"
3607 $ type = "''perl_u16type'"
3608 $ size_name = "u16size"
3609 $ gosub type_size_check
3610 $ perl_u16size="''line'"
3612 $ type = "''perl_i32type'"
3613 $ size_name = "i32size"
3614 $ gosub type_size_check
3615 $ perl_i32size="''line'"
3616 $ IF type .eqs. "int"
3617 $ THEN perl_intsize="''perl_i32size'"
3620 $ size_name = "intsize"
3621 $ gosub type_size_check
3622 $ perl_intsize="''line'"
3625 $ type = "''perl_u32type'"
3626 $ size_name = "u32size"
3627 $ gosub type_size_check
3628 $ perl_u32size="''line'"
3632 $ type = "''perl_i64type'"
3633 $ size_name = "i64size"
3634 $ gosub type_size_check
3635 $ perl_i64size="''line'"
3636 $ perl_ivtype="''perl_i64type'"
3638 $ type = "''perl_u64type'"
3639 $ size_name = "u64size"
3640 $ gosub type_size_check
3641 $ perl_u64size="''line'"
3642 $ perl_uvtype="''perl_u64type'"
3643 $ perl_nvtype="long double"
3645 $ perl_i64size="undef"
3646 $ perl_u64size="undef"
3649 $ perl_ivdformat="""ld"""
3650 $ perl_uvuformat="""lu"""
3651 $ perl_uvoformat="""lo"""
3652 $ perl_uvxformat="""lx"""
3654 $! Finally the composite ones. All config
3655 $ perl_installarchlib="''perl_prefix':[lib.''archname'.''version']"
3656 $ perl_installsitearch="''perl_prefix':[lib.site_perl.''archname']"
3657 $ perl_myhostname="''myhostname'"
3658 $ perl_mydomain="''mydomain'"
3659 $ perl_perladmin="''perladmin'"
3660 $ perl_myuname:="''osname' ''myname' ''osvers' ''f$edit(hwname, "TRIM")'"
3661 $ perl_archlibexp="''perl_prefix':[lib.''archname'.''version']"
3662 $ perl_archlib="''perl_prefix':[lib.''archname'.''version']"
3663 $ perl_oldarchlibexp="''perl_prefix':[lib.''archname']"
3664 $ perl_oldarchlib="''perl_prefix':[lib.''archname']"
3665 $ perl_sitearchexp="''perl_prefix':[lib.site_perl.''archname']"
3666 $ perl_sitearch="''perl_prefix':[lib.site_perl.''archname']"
3669 $ perl_ccflags="/Include=[]/Standard=Relaxed_ANSI/Prefix=All/Obj=''perl_obj_ext'/NoList''cc_flags'"
3671 $ if use_vmsdebug_perl .eqs. "Y"
3673 $ perl_optimize="/Debug/NoOpt"
3674 $ perl_dbgprefix = "DBG"
3677 $ perl_dbgprefix = ""
3680 $! Okay, we've got everything configured. Now go write out a config.sh.
3681 $ echo4 "Creating config.sh..."
3682 $ open/write CONFIG [-]config.sh
3683 $ WC := "write CONFIG"
3685 $ WC "# This file generated by Configure.COM on a VMS system."
3686 $ WC "# Time: " + cf_time
3688 $ WC "CONFIGDOTSH=true"
3689 $ WC "package='" + perl_package + "'"
3690 $ WC "config_args='" + config_args + "'"
3691 $ WC "d_nv_preserves_uv='" + perl_d_nv_preserves_uv + "'"
3692 $ WC "use5005threads='" + perl_use5005threads + "'"
3693 $ WC "useithreads='" + perl_useithreads + "'"
3694 $ WC "CONFIG='" + perl_config + "'"
3695 $ WC "cf_time='" + cf_time + "'"
3696 $ WC "cf_by='" + cf_by + "'"
3697 $ WC "cpp_stuff='" + perl_cpp_stuff + "'"
3698 $ WC "ccdlflags='" + perl_ccdlflags + "'"
3699 $ WC "cccdlflags='" + perl_cccdlflags + "'"
3700 $ WC "mab='" + perl_mab + "'"
3701 $ WC "libpth='" + perl_libpth + "'"
3702 $ WC "ld='" + perl_ld + "'"
3703 $ WC "lddlflags='" + perl_lddlflags + "'"
3704 $ WC "ranlib='" + perl_ranlib + "'"
3705 $ WC "ar='" + perl_ar + "'"
3706 $ WC "full_ar='" + perl_full_ar + "'"
3707 $ WC "eunicefix='" + perl_eunicefix + "'"
3708 $ WC "hint='" + perl_hint +"'"
3709 $ WC "hintfile='" + perl_hintfile + "'"
3710 $ WC "shrplib='" + perl_shrplib + "'"
3711 $ WC "usemymalloc='" + perl_usemymalloc + "'"
3712 $ WC "usevfork='" + perl_usevfork + "'"
3713 $ WC "useposix='false'"
3714 $ WC "spitshell='write sys$output '"
3715 $ WC "dlsrc='dl_vms.c'"
3716 $ WC "binexp='" + perl_binexp + "'"
3717 $ WC "man1ext='" + perl_man1ext + "'"
3718 $ WC "man3ext='" + perl_man3ext + "'"
3719 $ WC "archname='" + archname + "'"
3720 $ WC "osvers='" + osvers + "'"
3721 $ WC "prefix='" + perl_prefix + "'"
3722 $ WC "builddir='" + perl_builddir + "'"
3723 $ WC "installbin='" + perl_installbin + "'"
3724 $ WC "installscript='" + perl_installscript + "'"
3725 $ WC "installman1dir='" + perl_installman1dir + "'"
3726 $ WC "installman3dir='" + perl_installman3dir + "'"
3727 $ WC "installprivlib='" + perl_installprivlib + "'"
3728 $ WC "installarchlib='" + perl_installarchlib + "'"
3729 $ WC "installsitelib='" + perl_installsitelib + "'"
3730 $ WC "installsitearch='" + perl_installsitearch + "'"
3731 $ WC "path_sep='" + perl_path_sep + "'"
3732 $ WC "vms_cc_type='" + perl_vms_cc_type + "'"
3733 $ WC "d_attribut='" + perl_d_attribut + "'"
3734 $ WC "cc='" + perl_cc + "'"
3735 $ WC "ccflags='" + perl_ccflags + "'"
3736 $ WC "optimize='" + perl_optimize + "'"
3737 $ WC "dbgprefix='" + perl_dbgprefix + "'"
3738 $ WC "d_vms_do_sockets='" + perl_d_vms_do_sockets + "'"
3739 $ WC "d_socket='" + perl_d_socket + "'"
3740 $ WC "d_sockpair='" + perl_d_sockpair + "'"
3741 $ WC "d_gethent='" + perl_d_gethent + "'"
3742 $ WC "d_getsent='" + perl_d_getsent + "'"
3743 $ WC "d_socklen_t='" + perl_d_socklen_t + "'"
3744 $ WC "d_select='" + perl_d_select + "'"
3745 $ WC "i_niin='" + perl_i_niin + "'"
3746 $ WC "i_netinettcp='" + perl_i_netinettcp + "'"
3747 $ WC "i_neterrno='" + perl_i_neterrno + "'"
3748 $ WC "d_stdstdio='" + perl_d_stdstdio + "'"
3749 $ WC "d_stdio_ptr_lval='" + perl_d_stdio_ptr_lval + "'"
3750 $ WC "d_stdio_cnt_lval='" + perl_d_stdio_cnt_lval + "'"
3751 $ WC "d_stdiobase='" + perl_d_stdiobase + "'"
3752 $ WC "d_locconv='" + perl_d_locconv + "'"
3753 $ WC "d_setlocale='" + perl_d_setlocale + "'"
3754 $ WC "i_locale='" + perl_i_locale + "'"
3755 $ WC "d_mbstowcs='" + perl_d_mbstowcs + "'"
3756 $ WC "d_mbtowc='" + perl_d_mbtowc + "'"
3757 $ WC "d_wcstombs='" + perl_d_wcstombs + "'"
3758 $ WC "d_wctomb='" + perl_d_wctomb + "'"
3759 $ WC "d_mblen='" + perl_d_mblen + "'"
3760 $ WC "d_mktime='" + perl_d_mktime + "'"
3761 $ WC "d_strcoll='" + perl_d_strcoll + "'"
3762 $ WC "d_strxfrm='" + perl_d_strxfrm + "'"
3763 $ WC "ldflags='" + perl_ldflags + "'"
3764 $ WC "dlobj='" + perl_dlobj + "'"
3765 $ WC "obj_ext='" + perl_obj_ext + "'"
3766 $ WC "so='" + perl_so + "'"
3767 $ WC "dlext='" + perl_dlext + "'"
3768 $ WC "exe_ext='" + perl_exe_ext + "'"
3769 $ WC "lib_ext='" + perl_lib_ext + "'"
3770 $ WC "myhostname='" + perl_myhostname + "'"
3771 $ WC "mydomain='" + perl_mydomain + "'"
3772 $ WC "perladmin='" + perl_perladmin + "'"
3773 $ WC "cf_email='" + cf_email + "'"
3774 $ WC "myuname='" + perl_myuname + "'"
3775 $ WC "alignbytes='" + alignbytes + "'"
3776 $ WC "osname='" + perl_osname + "'"
3777 $ WC "d_archlib='" + perl_d_archlib + "'"
3778 $ WC "archlibexp='" + perl_archlibexp + "'"
3779 $ WC "archlib='" + perl_archlib + "'"
3780 $ WC "archname='" + archname + "'"
3781 $ WC "d_bincompat3='" + perl_d_bincompat3 + "'"
3782 $ WC "cppstdin='" + perl_cppstdin + "'"
3783 $ WC "cppminus='" + perl_cppminus + "'"
3784 $ WC "cpprun='" + perl_cpprun + "'"
3785 $ WC "cpplast='" + perl_cpplast + "'"
3786 $ WC "d_bcmp='" + perl_d_bcmp + "'"
3787 $ WC "d_bcopy='" + perl_d_bcopy + "'"
3788 $ WC "d_bzero='" + perl_d_bzero + "'"
3789 $ WC "d_castneg='" + perl_d_castneg + "'"
3790 $ WC "castflags='" + perl_castflags + "'"
3791 $ WC "d_chsize='" + perl_d_chsize + "'"
3792 $ WC "d_const='" + perl_d_const + "'"
3793 $ WC "d_crypt='" + perl_d_crypt + "'"
3794 $ WC "byteorder='" + perl_byteorder + "'"
3795 $ WC "full_csh='" + perl_full_csh + "'"
3796 $ WC "d_csh='" + perl_d_csh + "'"
3797 $ WC "d_dup2='" + perl_d_dup2 + "'"
3798 $ WC "d_fchmod='" + perl_d_fchmod + "'"
3799 $ WC "d_fchown='" + perl_d_fchown + "'"
3800 $ WC "d_fcntl='" + perl_d_fcntl + "'"
3801 $ WC "d_fgetpos='" + perl_d_fgetpos + "'"
3802 $ WC "d_flexfnam='" + perl_d_flexfnam + "'"
3803 $ WC "d_flock='" + perl_d_flock + "'"
3804 $ WC "d_fsetpos='" + perl_d_fsetpos + "'"
3805 $ WC "d_gettimeod='" + perl_d_gettimeod + "'"
3806 $ WC "d_getgrps='" + perl_d_getgrps + "'"
3807 $ WC "d_setgrps='" + perl_d_setgrps + "'"
3808 $ WC "groupstype='" + perl_groupstype + "'"
3809 $ WC "d_uname='" + perl_d_uname + "'"
3810 $ WC "d_getprior='" + perl_d_getprior + "'"
3811 $ WC "d_killpg='" + perl_d_killpg + "'"
3812 $ WC "d_link='" + perl_d_link + "'"
3813 $ WC "d_lstat='" + perl_d_lstat + "'"
3814 $ WC "d_lockf='" + perl_d_lockf + "'"
3815 $ WC "d_memcmp='" + perl_d_memcmp + "'"
3816 $ WC "d_memcpy='" + perl_d_memcpy + "'"
3817 $ WC "d_memmove='" + perl_d_memmove + "'"
3818 $ WC "d_memset='" + perl_d_memset + "'"
3819 $ WC "d_mkdir='" + perl_d_mkdir + "'"
3820 $ WC "d_msg='" + perl_d_msg + "'"
3821 $ WC "d_open3='" + perl_d_open3 + "'"
3822 $ WC "d_poll='" + perl_d_poll + "'"
3823 $ WC "d_readdir='" + perl_d_readdir + "'"
3824 $ WC "d_seekdir='" + perl_d_seekdir + "'"
3825 $ WC "d_telldir='" + perl_d_telldir + "'"
3826 $ WC "d_rewinddir='" + perl_d_rewinddir + "'"
3827 $ WC "d_rename='" + perl_d_rename + "'"
3828 $ WC "d_rmdir='" + perl_d_rmdir + "'"
3829 $ WC "d_sem='" + perl_d_sem + "'"
3830 $ WC "d_setegid='" + perl_d_setegid + "'"
3831 $ WC "d_seteuid='" + perl_d_seteuid + "'"
3832 $ WC "d_setprior='" + perl_d_setprior + "'"
3833 $ WC "d_setregid='" + perl_d_setregid + "'"
3834 $ WC "d_setresgid='" + perl_d_setresgid + "'"
3835 $ WC "d_setreuid='" + perl_d_setreuid + "'"
3836 $ WC "d_setresuid='" + perl_d_setresuid + "'"
3837 $ WC "d_setrgid='" + perl_d_setrgid + "'"
3838 $ WC "d_setruid='" + perl_d_setruid + "'"
3839 $ WC "d_setsid='" + perl_d_setsid + "'"
3840 $ WC "d_shm='" + perl_d_shm + "'"
3841 $ WC "d_shmatprototype='" + perl_d_shmatprototype + "'"
3842 $ WC "shmattype='" + perl_shmattype + "'"
3843 $ WC "d_sigaction='" + perl_d_sigaction + "'"
3844 $ WC "d_statblks='" + perl_d_statblks + "'"
3845 $ WC "stdio_ptr='" + perl_stdio_ptr + "'"
3846 $ WC "stdio_cnt='" + perl_stdio_cnt + "'"
3847 $ WC "stdio_base='" + perl_stdio_base + "'"
3848 $ WC "stdio_bufsiz='" + perl_stdio_bufsiz + "'"
3849 $ WC "d_strctcpy='" + perl_d_strctcpy + "'"
3850 $ WC "d_strerror='" + perl_d_strerror + "'"
3851 $ WC "d_syserrlst='" + perl_d_syserrlst + "'"
3852 $ WC "d_strerrm='" + perl_d_strerrm + "'"
3853 $ WC "d_symlink='" + perl_d_symlink + "'"
3854 $ WC "d_syscall='" + perl_d_syscall + "'"
3855 $ WC "d_system='" + perl_d_system + "'"
3856 $ WC "timetype='" + perl_timetype + "'"
3857 $ WC "d_truncate='" + perl_d_truncate + "'"
3858 $ WC "d_vfork='" + perl_d_vfork + "'"
3859 $ WC "signal_t='" + perl_signal_t + "'"
3860 $ WC "d_volatile='" + perl_d_volatile + "'"
3861 $ WC "d_vprintf='" + perl_d_vprintf + "'"
3862 $ WC "d_charvspr='" + perl_d_charvspr + "'"
3863 $ WC "d_wait4='" + perl_d_wait4 + "'"
3864 $ WC "d_waitpid='" + perl_d_waitpid + "'"
3865 $ WC "i_dirent='" + perl_i_dirent + "'"
3866 $ WC "d_dirnamlen='" + perl_d_dirnamlen + "'"
3867 $ WC "direntrytype='" + perl_direntrytype + "'"
3868 $ WC "i_fcntl='" + perl_i_fcntl + "'"
3869 $ WC "i_grp='" + perl_i_grp + "'"
3870 $ WC "i_limits='" + perl_i_limits + "'"
3871 $ WC "i_memory='" + perl_i_memory + "'"
3872 $ WC "i_ndbm='" + perl_i_ndbm + "'"
3873 $ WC "i_stdarg='" + perl_i_stdarg + "'"
3874 $ WC "i_pwd='" + perl_i_pwd + "'"
3875 $ WC "d_pwquota='" + perl_d_pwquota + "'"
3876 $ WC "d_pwage='" + perl_d_pwage + "'"
3877 $ WC "d_pwchange='" + perl_d_pwchange + "'"
3878 $ WC "d_pwclass='" + perl_d_pwclass + "'"
3879 $ WC "d_pwexpire='" + perl_d_pwexpire + "'"
3880 $ WC "d_pwcomment='" + perl_d_pwcomment + "'"
3881 $ WC "i_stddef='" + perl_i_stddef + "'"
3882 $ WC "i_stdlib='" + perl_i_stdlib + "'"
3883 $ WC "i_string='" + perl_i_string + "'"
3884 $ WC "i_sysdir='" + perl_i_sysdir + "'"
3885 $ WC "i_sysfile='" + perl_i_sysfile + "'"
3886 $ WC "i_sysioctl='" + perl_i_sysioctl + "'"
3887 $ WC "i_sysndir='" + perl_i_sysndir + "'"
3888 $ WC "i_sysresrc='" + perl_i_sysresrc + "'"
3889 $ WC "i_sysselct='" + perl_i_sysselct + "'"
3890 $ WC "i_dbm='" + perl_i_dbm + "'"
3891 $ WC "i_rpcsvcdbm='" + perl_i_rpcsvcdbm + "'"
3892 $ WC "i_sfio='" + perl_i_sfio + "'"
3893 $ WC "i_sysstat='" + perl_i_sysstat + "'"
3894 $ WC "i_systimes='" + perl_i_systimes + "'"
3895 $ WC "i_systypes='" + perl_i_systypes + "'"
3896 $ WC "i_sysun='" + perl_i_sysun + "'"
3897 $ WC "i_syswait='" + perl_i_syswait + "'"
3898 $ WC "i_termio='" + perl_i_termio + "'"
3899 $ WC "i_sgtty='" + perl_i_sgtty + "'"
3900 $ WC "i_termios='" + perl_i_termios + "'"
3901 $ WC "i_time='" + perl_i_time + "'"
3902 $ WC "i_systime='" + perl_i_systime + "'"
3903 $ WC "i_systimek='" + perl_i_systimek + "'"
3904 $ WC "i_unistd='" + perl_i_unistd + "'"
3905 $ WC "i_utime='" + perl_i_utime + "'"
3906 $ WC "i_varargs='" + perl_i_varargs + "'"
3907 $ WC "i_vfork='" + perl_i_vfork + "'"
3908 $ WC "prototype='" + perl_prototype + "'"
3909 $ WC "randbits='" + perl_randbits +"'"
3910 $ WC "selecttype='" + perl_selecttype + "'"
3911 $ WC "selectminbits='" + perl_selectminbits + "'"
3912 $ WC "stdchar='" + perl_stdchar + "'"
3913 $ WC "d_unlink_all_versions='" + perl_d_unlink_all_versions + "'"
3914 $ WC "full_sed='" + perl_full_sed + "'"
3915 $ WC "bin='" + perl_bin + "'"
3916 $ WC "binexp='" + perl_binexp + "'"
3917 $ WC "d_alarm='" + perl_d_alarm + "'"
3918 $ WC "d_casti32='" + perl_d_casti32 + "'"
3919 $ WC "d_chown='" + perl_d_chown + "'"
3920 $ WC "d_chroot='" + perl_d_chroot + "'"
3921 $ WC "d_cuserid='" + perl_d_cuserid + "'"
3922 $ WC "d_dbl_dig='" + perl_d_dbl_dig + "'"
3923 $ WC "d_ldbl_dig='" + perl_d_ldbl_dig + "'"
3924 $ WC "d_difftime='" + perl_d_difftime + "'"
3925 $ WC "d_fork='" + perl_d_fork + "'"
3926 $ WC "d_getlogin='" + perl_d_getlogin + "'"
3927 $ WC "d_getppid='" + perl_d_getppid + "'"
3928 $ WC "d_htonl='" + perl_d_htonl + "'"
3929 $ WC "d_nice='" + perl_d_nice + "'"
3930 $ WC "d_pause='" + perl_d_pause + "'"
3931 $ WC "d_pipe='" + perl_d_pipe + "'"
3932 $ WC "d_readlink='" + perl_d_readlink + "'"
3933 $ WC "d_setlinebuf='" + perl_d_setlinebuf + "'"
3934 $ WC "d_strchr='" + perl_d_strchr + "'"
3935 $ WC "d_index='" + perl_d_index + "'"
3936 $ WC "d_strtod='" + perl_d_strtod + "'"
3937 $ WC "d_strtol='" + perl_d_strtol + "'"
3938 $ WC "d_strtoul='" + perl_d_strtoul + "'"
3939 $ WC "d_tcgetpgrp='" + perl_d_tcgetpgrp + "'"
3940 $ WC "d_tcsetpgrp='" + perl_d_tcsetpgrp + "'"
3941 $ WC "d_times='" + perl_d_times + "'"
3942 $ WC "d_tzname='" + perl_d_tzname + "'"
3943 $ WC "d_umask='" + perl_d_umask + "'"
3944 $ WC "fpostype='" + perl_fpostype + "'"
3945 $ WC "i_dlfcn='" + perl_i_dlfcn + "'"
3946 $ WC "i_float='" + perl_i_float + "'"
3947 $ WC "i_math='" + perl_i_math + "'"
3948 $ WC "intsize='" + perl_intsize + "'"
3949 $ WC "longsize='" + perl_longsize + "'"
3950 $ WC "shortsize='" + perl_shortsize + "'"
3951 $ WC "lseektype='" + perl_lseektype + "'"
3952 $ WC "lseeksize='4'"
3953 $ WC "i_values='" + perl_i_values + "'"
3954 $ WC "malloctype='" + perl_malloctype + "'"
3955 $ WC "freetype='" + perl_freetype + "'"
3956 $ WC "d_mymalloc='" + perl_d_mymalloc + "'"
3957 $ WC "sh='" + perl_sh + "'"
3958 $ WC "sig_name='" + perl_sig_name + "'"
3959 $ WC "sig_num='" + perl_sig_num + "'"
3960 $ tempsym = "sig_name_init='" + perl_sig_name_with_commas + "'"
3962 $ WC "modetype='" + perl_modetype + "'"
3963 $ WC "ssizetype='" + perl_ssizetype + "'"
3964 $ WC "o_nonblock='" + perl_o_nonblock + "'"
3965 $ WC "eagain='" + perl_eagain + "'"
3966 $ WC "rd_nodata='" + perl_rd_nodata + "'"
3967 $ WC "d_eofnblk='" + perl_d_eofnblk + "'"
3968 $ WC "d_oldarchlib='" + perl_d_oldarchlib + "'"
3969 $ WC "oldarchlibexp='" + perl_oldarchlibexp + "'"
3970 $ WC "oldarchlib='" + perl_oldarchlib + "'"
3971 $ WC "privlibexp='" + perl_privlibexp + "'"
3972 $ WC "privlib='" + perl_privlib + "'"
3973 $ WC "sitelibexp='" + perl_sitelibexp + "'"
3974 $ WC "sitelib='" + perl_sitelib + "'"
3975 $ WC "sitelib_stem='" + perl_sitelib_stem + "'"
3976 $ WC "sitearchexp='" + perl_sitearchexp + "'"
3977 $ WC "sitearch='" + perl_sitearch + "'"
3978 $ WC "sizetype='" + perl_sizetype + "'"
3979 $ WC "i_sysparam='" + perl_i_sysparam + "'"
3980 $ WC "d_void_closedir='" + perl_d_void_closedir + "'"
3981 $ WC "d_dlerror='" + perl_d_dlerror + "'"
3982 $ WC "d_dlsymun='" + perl_d_dlsymun + "'"
3983 $ WC "d_suidsafe='" + perl_d_suidsafe + "'"
3984 $ WC "d_dosuid='" + perl_d_dosuid + "'"
3985 $ WC "d_inetaton='" + perl_d_inetaton + "'"
3986 $ WC "d_int64_t='" + perl_d_int64_t + "'"
3987 $ WC "d_isascii='" + perl_d_isascii + "'"
3988 $ WC "d_mkfifo='" + perl_d_mkfifo + "'"
3989 $ WC "d_pathconf='" + perl_d_pathconf + "'"
3990 $ WC "d_fpathconf='" + perl_d_fpathconf + "'"
3991 $ WC "d_safebcpy='" + perl_d_safebcpy + "'"
3992 $ WC "d_safemcpy='" + perl_d_safemcpy + "'"
3993 $ WC "d_sanemcmp='" + perl_d_sanemcmp + "'"
3994 $ WC "d_setpgrp='" + perl_d_setpgrp + "'"
3995 $ WC "d_bsdsetpgrp='" + perl_d_bsdsetpgrp + "'"
3996 $ WC "d_bsdpgrp='" + perl_d_bsdpgrp + "'"
3997 $ WC "d_setpgid='" + perl_d_setpgid + "'"
3998 $ WC "d_setpgrp2='" + perl_d_setpgrp2 + "'"
3999 $ WC "d_sysconf='" + perl_d_sysconf + "'"
4000 $ WC "d_Gconvert='" + perl_d_Gconvert + "'"
4001 $ WC "d_getpgid='" + perl_d_getpgid + "'"
4002 $ WC "d_getpgrp='" + perl_d_getpgrp + "'"
4003 $ WC "d_bsdgetpgrp='" + perl_d_bsdgetpgrp + "'"
4004 $ WC "d_getpgrp2='" + perl_d_getpgrp2 + "'"
4005 $ WC "d_sfio='" + perl_d_sfio + "'"
4006 $ WC "d_sigsetjmp='" + perl_d_sigsetjmp + "'"
4007 $ WC "usedl='" + perl_usedl + "'"
4008 $ WC "startperl=" + perl_startperl ! This one's special--no enclosing single quotes
4009 $ WC "db_hashtype='" + perl_db_hashtype + "'"
4010 $ WC "db_prefixtype='" + perl_db_prefixtype + "'"
4011 $ WC "useperlio='" + perl_useperlio + "'"
4012 $ WC "defvoidused='" + perl_defvoidused + "'"
4013 $ WC "voidflags='" + perl_voidflags + "'"
4014 $ WC "d_eunice='" + perl_d_eunice + "'"
4015 $ WC "libs='" + perl_libs + "'"
4016 $ WC "libc='" + perl_libc + "'"
4017 $ WC "xs_apiversion='" + version + "'"
4018 $ WC "pm_apiversion='" + version + "'"
4019 $ WC "PERL_VERSION='" + patchlevel + "'"
4020 $ WC "PERL_SUBVERSION='" + subversion + "'"
4021 $ WC "pager='" + perl_pager + "'"
4022 $ WC "uidtype='" + perl_uidtype + "'"
4023 $ WC "uidformat='" + perl_uidformat + "'"
4024 $ WC "uidsize='" + perl_uidsize + "'"
4025 $ WC "uidsign='" + perl_uidsign + "'"
4026 $ WC "gidtype='" + perl_gidtype + "'"
4027 $ WC "gidformat='" + perl_gidformat + "'"
4028 $ WC "gidsize='" + perl_gidsize + "'"
4029 $ WC "gidsign='" + perl_gidsign + "'"
4030 $ WC "usethreads='" + perl_usethreads + "'"
4031 $ WC "d_pthread_yield='" + perl_d_pthread_yield + "'"
4032 $ WC "d_pthreads_created_joinable='" + perl_d_pthreads_created_joinable + "'"
4033 $ WC "d_gnulibc='" + perl_d_gnulibc + "'"
4034 $ WC "i_netdb='" + perl_i_netdb + "'"
4035 $ WC "pidtype='" + perl_pidtype + "'"
4036 $ WC "netdb_host_type='" + perl_netdb_host_type + "'"
4037 $ WC "netdb_hlen_type='" + perl_netdb_hlen_type + "'"
4038 $ WC "netdb_name_type='" + perl_netdb_name_type + "'"
4039 $ WC "netdb_net_type='" + perl_netdb_net_type + "'"
4040 $ WC "socksizetype='" + perl_socksizetype + "'"
4041 $ WC "baserev='" + perl_baserev + "'"
4042 $ WC "doublesize='" + perl_doublesize + "'"
4043 $ WC "ptrsize='" + perl_ptrsize + "'"
4044 $ WC "d_gethbyaddr='" + perl_d_gethbyaddr + "'"
4045 $ WC "d_gethbyname='" + perl_d_gethbyname + "'"
4046 $ WC "d_getnbyaddr='" + perl_d_getnbyaddr + "'"
4047 $ WC "d_getnbyname='" + perl_d_getnbyname + "'"
4048 $ WC "d_getpbynumber='" + perl_d_getpbynumber + "'"
4049 $ WC "d_getpbyname='" + perl_d_getpbyname + "'"
4050 $ WC "d_getsbyport='" + perl_d_getsbyport + "'"
4051 $ WC "d_getsbyname='" + perl_d_getsbyname + "'"
4052 $ WC "d_sethent='" + perl_d_sethent + "'"
4053 $ WC "d_oldpthreads='" + perl_d_oldpthreads + "'"
4054 $ WC "d_longdbl='" + perl_d_longdbl + "'"
4055 $ WC "longdblsize='" + perl_longdblsize + "'"
4056 $ WC "d_longlong='" + perl_d_longlong + "'"
4057 $ WC "longlongsize='" + perl_longlongsize + "'"
4058 $ WC "d_mkstemp='" + perl_d_mkstemp + "'"
4059 $ WC "d_mkstemps='" + perl_d_mkstemps + "'"
4060 $ WC "d_mkdtemp='" + perl_d_mkdtemp + "'"
4061 $ WC "d_setvbuf='" + perl_d_setvbuf + "'"
4062 $ WC "d_setenv='" + perl_d_setenv + "'"
4063 $ WC "d_endhent='" + perl_d_endhent + "'"
4064 $ WC "d_endnent='" + perl_d_endsent + "'"
4065 $ WC "d_endpent='" + perl_d_endpent + "'"
4066 $ WC "d_endsent='" + perl_d_endsent + "'"
4067 $ WC "d_gethent='" + perl_d_gethent + "'"
4068 $ WC "d_getnent='" + perl_d_getsent + "'"
4069 $ WC "d_getpent='" + perl_d_getpent + "'"
4070 $ WC "d_getsent='" + perl_d_getsent + "'"
4071 $ WC "d_sethent='" + perl_d_sethent + "'"
4072 $ WC "d_setnent='" + perl_d_setsent + "'"
4073 $ WC "d_setpent='" + perl_d_setpent + "'"
4074 $ WC "ebcdic='" + perl_ebcdic + "'"
4075 $ WC "d_setsent='" + perl_d_setsent + "'"
4076 $ WC "d_gethostprotos='" + perl_d_gethostprotos + "'"
4077 $ WC "d_getnetprotos='" + perl_d_getnetprotos + "'"
4078 $ WC "d_getprotoprotos='" + perl_d_getprotoprotos + "'"
4079 $ WC "d_getservprotos='" + perl_d_getservprotos + "'"
4080 $ WC "d_pwgecos='" + perl_d_pwgecos + "'"
4081 $ WC "d_sched_yield='" + perl_d_sched_yield + "'"
4082 $ WC "d_lchown='" + perl_d_lchown + "'"
4083 $ WC "d_union_semun='" + perl_d_union_semun + "'"
4084 $ WC "i_arpainet='" + perl_i_arpainet + "'"
4085 $ WC "d_grpasswd='" + perl_d_grpasswd + "'"
4086 $ WC "d_setgrent='" + perl_d_setgrent + "'"
4087 $ WC "d_getgrent='" + perl_d_getgrent + "'"
4088 $ WC "d_endgrent='" + perl_d_endgrent + "'"
4089 $ WC "d_pwpasswd='" + perl_d_pwpasswd + "'"
4090 $ WC "d_setpwent='" + perl_d_setpwent + "'"
4091 $ WC "d_getpwent='" + perl_d_getpwent + "'"
4092 $ WC "d_endpwent='" + perl_d_endpwent + "'"
4093 $ WC "d_semctl_semun='" + perl_d_semctl_semun + "'"
4094 $ WC "d_semctl_semid_ds='" + perl_d_semctl_semid_ds + "'"
4095 $ WC "extensions='" + perl_extensions + "'"
4096 $ WC "known_extensions='" + perl_known_extensions + "'"
4097 $ WC "static_ext='" + "'"
4098 $ WC "dynamic_ext='" + perl_extensions + "'"
4099 $ WC "d_mknod='" + perl_d_mknod + "'"
4100 $ WC "devtype='" + perl_devtype + "'"
4101 $ WC "d_gethname='" + perl_d_gethname + "'"
4102 $ WC "d_phostname='" + perl_d_phostname + "'"
4103 $ WC "aphostname='" + perl_aphostname + "'"
4104 $ WC "d_accessx='" + perl_d_accessx + "'"
4105 $ WC "d_eaccess='" + perl_d_eaccess + "'"
4106 $ WC "i_ieeefp='" + perl_i_ieeefp + "'"
4107 $ WC "i_sunmath='" + perl_i_sunmath + "'"
4108 $ WC "i_sysaccess='" + perl_i_sysaccess + "'"
4109 $ WC "i_syssecrt='" + perl_i_syssecrt + "'"
4110 $ WC "d_fd_set='" + perl_d_fd_set + "'"
4111 $ WC "d_access='" + perl_d_access + "'"
4112 $ WC "d_msg_ctrunc='" + perl_d_msg_ctrunc + "'"
4113 $ WC "d_msg_dontroute='" + perl_d_msg_dontroute + "'"
4114 $ WC "d_msg_oob='" + perl_d_msg_oob + "'"
4115 $ WC "d_msg_peek='" + perl_d_msg_peek + "'"
4116 $ WC "d_msg_proxy='" + perl_d_msg_proxy + "'"
4117 $ WC "d_scm_rights='" + perl_d_scm_rights + "'"
4118 $ WC "d_sendmsg='" + perl_d_sendmsg + "'"
4119 $ WC "d_recvmsg='" + perl_d_recvmsg + "'"
4120 $ WC "d_msghdr_s='" + perl_d_msghdr_s + "'"
4121 $ WC "d_cmsghdr_s='" + perl_d_cmsghdr_s + "'"
4122 $ WC "i_sysuio='" + perl_i_sysuio + "'"
4123 $ WC "d_fseeko='" + perl_d_fseeko + "'"
4124 $ WC "d_ftello='" + perl_d_ftello + "'"
4125 $ WC "d_qgcvt='" + perl_d_qgcvt + "'"
4126 $ WC "d_readv='" + perl_d_readv + "'"
4127 $ WC "d_writev='" + perl_d_writev + "'"
4128 $ WC "i_machcthr='" + perl_i_machcthr + "'"
4129 $ WC "usemultiplicity='" + perl_usemultiplicity + "'"
4130 $ WC "i_poll='" + perl_i_poll + "'"
4131 $ WC "i_inttypes='" + perl_i_inttypes + "'"
4132 $ WC "d_off64_t='" + perl_d_off64_t + "'"
4133 $ WC "d_fpos64_t='" + perl_d_fpos64_t + "'"
4134 $ WC "use64bitall='" + perl_use64bitall + "'"
4135 $ WC "use64bitint='" + perl_use64bitint + "'"
4136 $ WC "d_drand48proto='" + perl_d_drand48proto + "'"
4137 $ WC "d_lseekproto='" + perl_d_drand48proto + "'"
4138 $ WC "d_old_pthread_create_joinable='" + perl_d_old_pthread_create_joinable + "'"
4139 $ WC "old_pthread_create_joinable='" + perl_old_pthread_create_joinable + "'"
4140 $ WC "drand01='" + perl_drand01 + "'"
4141 $ WC "randseedtype='" + perl_randseedtype + "'"
4142 $ WC "seedfunc='" + perl_seedfunc + "'"
4143 $ WC "sig_num_init='" + perl_sig_num_with_commas + "'"
4144 $ WC "i_sysmount='" + perl_i_sysmount + "'"
4145 $ WC "d_fstatfs='" + perl_d_fstatfs + "'"
4146 $ WC "d_getfsstat='" + perl_d_getfsstat + "'"
4147 $ WC "d_memchr='" + perl_d_memchr + "'"
4148 $ WC "d_statfsflags='" + perl_d_statfsflags + "'"
4149 $ WC "fflushNULL='define'"
4150 $ WC "fflushall='undef'"
4151 $ WC "d_stdio_stream_array='undef'"
4152 $ WC "stdio_stream_array='" + perl_stdio_stream_array + "'"
4153 $ WC "i_sysstatvfs='" + perl_i_sysstatvfs + "'"
4154 $ WC "i_syslog='" + perl_i_syslog + "'"
4155 $ WC "i_sysmode='" + perl_i_sysmode + "'"
4156 $ WC "i_sysutsname='" + perl_i_sysutsname + "'"
4157 $ WC "i_machcthreads='" + perl_i_machcthreads + "'"
4158 $ WC "i_pthread='" + perl_i_pthread + "'"
4159 $ WC "d_fstatvfs='" + perl_d_fstatvfs + "'"
4160 $ WC "i_mntent='" + perl_i_mntent + "'"
4161 $ WC "d_getmntent='" + perl_d_getmntent + "'"
4162 $ WC "d_hasmntopt='" + perl_d_hasmntopt + "'"
4163 $ WC "d_telldirproto='" + perl_d_telldirproto + "'"
4164 $ WC "d_madvise='" + perl_d_madvise + "'"
4165 $ WC "d_msync='" + perl_d_msync + "'"
4166 $ WC "d_mprotect='" + perl_d_mprotect + "'"
4167 $ WC "d_munmap='" + perl_d_munmap + "'"
4168 $ WC "d_mmap='" + perl_d_mmap + "'"
4169 $ WC "mmaptype='" + perl_mmaptype + "'"
4170 $ WC "i_sysmman='" + perl_i_sysmman + "'"
4171 $ WC "installusrbinperl='" + perl_installusrbinperl + "'"
4172 $! WC "selectminbits='" + perl_selectminbits + "'"
4173 $ WC "crosscompile='" + perl_crosscompile + "'"
4174 $ WC "multiarch='" + perl_multiarch + "'"
4175 $ WC "sched_yield='" + perl_sched_yield + "'"
4176 $ WC "d_strtoull='" + perl_d_strtoull + "'"
4177 $ WC "d_strtouq='" + perl_d_strtouq + "'"
4178 $ WC "d_strtoll='" + perl_d_strtoll + "'"
4179 $ WC "d_strtold='" + perl_d_strtold + "'"
4180 $ WC "usesocks='" + perl_usesocks + "'"
4181 $ WC "d_vendorlib='" + perl_d_vendorlib + "'"
4182 $ WC "vendorlibexp='" + perl_vendorlibexp + "'"
4183 $ WC "vendorlib_stem='" + perl_vendorlib_stem + "'"
4184 $ WC "d_atolf='" + perl_d_atolf + "'"
4185 $ WC "d_atoll='" + perl_d_atoll + "'"
4186 $ WC "d_bincompat5005='" + perl_d_bincompat + "'"
4187 $ WC "d_endspent='" + perl_d_endspent + "'"
4188 $ WC "d_getspent='" + perl_d_getspent + "'"
4189 $ WC "d_getspnam='" + perl_d_getspnam + "'"
4190 $ WC "d_setspent='" + perl_d_setspent + "'"
4191 $ WC "i_shadow='" + perl_i_shadow + "'"
4192 $ WC "i_socks='" + perl_i_socks + "'"
4193 $ WC "d_PRIfldbl='" + perl_d_PRIfldbl + "'"
4194 $ WC "d_PRIgldbl='" + perl_d_PRIgldbl + "'"
4195 $ WC "d_PRId64='" + perl_d_PRId64 + "'"
4196 $ WC "d_PRIu64='" + perl_d_PRIu64 + "'"
4197 $ WC "d_PRIo64='" + perl_d_PRIo64 + "'"
4198 $ WC "d_PRIx64='" + perl_d_PRIx64 + "'"
4199 $ WC "sPRIfldbl='" + perl_sPRIfldbl + "'"
4200 $ WC "sPRIgldbl='" + perl_sPRIgldbl + "'"
4201 $ WC "sPRId64='" + perl_sPRId64 + "'"
4202 $ WC "sPRIu64='" + perl_sPRIu64 + "'"
4203 $ WC "sPRIo64='" + perl_sPRIo64 + "'"
4204 $ WC "sPRIx64='" + perl_sPRIx64 + "'"
4205 $ WC "d_llseek='" + perl_d_llseek + "'"
4206 $ WC "d_iconv='" + perl_d_iconv +"'"
4207 $ WC "i_iconv='" + perl_i_iconv +"'"
4208 $ WC "inc_version_list='0'"
4209 $ WC "inc_version_list_init='0'"
4210 $ WC "uselargefiles='" + perl_uselargefiles + "'"
4211 $ WC "uselongdouble='" + perl_uselongdouble + "'"
4212 $ WC "usemorebits='" + perl_usemorebits + "'"
4213 $ WC "d_quad='" + perl_d_quad + "'"
4214 $ WC "quadtype='" + perl_quadtype + "'"
4215 $ WC "uquadtype='" + perl_uquadtype + "'"
4216 $ WC "quadkind='" + perl_quadkind + "'"
4217 $ WC "d_fs_data_s='" + perl_d_fs_data_s + "'"
4218 $ WC "d_getcwd='" + perl_d_getcwd + "'"
4219 $ WC "d_getmnt='" + perl_d_getmnt + "'"
4220 $ WC "d_sqrtl='" + perl_d_sqrtl + "'"
4221 $ WC "d_statfs_f_flags='" + perl_d_statfs_f_flags + "'"
4222 $ WC "d_statfs_s='" + perl_d_statfs_s + "'"
4223 $ WC "d_ustat='" + perl_d_ustat + "'"
4224 $ WC "d_vendorarch='" + perl_d_vendorarch + "'"
4225 $ WC "vendorarchexp='" + perl_vendorarchexp + "'"
4226 $ WC "i_sysstatfs='" + perl_i_sysstatfs + "'"
4227 $ WC "i_sysvfs='" + perl_i_sysvfs + "'"
4228 $ WC "i_ustat='" + perl_i_ustat + "'"
4229 $ WC "ivtype='" + perl_ivtype + "'"
4230 $ WC "uvtype='" + perl_uvtype + "'"
4231 $ WC "i8type='" + perl_i8type + "'"
4232 $ WC "i16type='" + perl_i16type + "'"
4233 $ WC "u8type='" + perl_u8type + "'"
4234 $ WC "u16type='" + perl_u16type + "'"
4235 $ WC "i32type='" + perl_i32type + "'"
4236 $ WC "u32type='" + perl_u32type + "'"
4237 $ WC "i64type='" + perl_i64type + "'"
4238 $ WC "u64type='" + perl_u64type + "'"
4239 $ WC "nvtype='" + perl_nvtype + "'"
4240 $ WC "ivsize='" + perl_ivsize + "'"
4241 $ WC "uvsize='" + perl_uvsize + "'"
4242 $ WC "i8size='" + perl_i8size + "'"
4243 $ WC "u8size='" + perl_u8size + "'"
4244 $ WC "i16size='" + perl_i16size + "'"
4245 $ WC "u16size='" + perl_u16size + "'"
4246 $ WC "i32size='" + perl_i32size + "'"
4247 $ WC "u32size='" + perl_u32size + "'"
4248 $ WC "i64size='" + perl_i64size + "'"
4249 $ WC "u64size='" + perl_u64size + "'"
4250 $ WC "ivdformat='" + perl_ivdformat + "'"
4251 $ WC "uvuformat='" + perl_uvuformat + "'"
4252 $ WC "uvoformat='" + perl_uvoformat + "'"
4253 $ WC "uvxformat='" + perl_uvxformat + "'"
4254 $ WC "d_vms_case_sensitive_symbols='" + d_vms_be_case_sensitive + "'"
4255 $ WC "sizesize='" + perl_sizesize + "'"
4256 $ WC "d_frexpl='" + perl_d_frexpl + "'"
4257 $ WC "d_isnan='" + perl_d_isnan + "'"
4258 $ WC "d_isnanl='" + perl_d_isnanl + "'"
4259 $ WC "d_modfl='" + perl_d_modfl + "'"
4261 $! ##WRITE NEW CONSTANTS HERE##
4265 $! Okay, we've gotten here. Build munchconfig and run it
4266 $ 'Perl_CC' munchconfig.c
4267 $ If (Needs_Opt.eqs."Yes")
4269 $ open/write OPTCHAN []munchconfig.opt
4270 $ IF ("''using_gnu_c'".eqs."Yes")
4272 $ write OPTCHAN "Gnu_CC:[000000]gcclib.olb/library"
4274 $ write OPTCHAN "Sys$Share:VAXCRTL/Share"
4276 $ link munchconfig.obj,munchconfig.opt/opt
4277 $ delete munchconfig.opt;*
4279 $ link munchconfig.obj
4282 $ echo "Doing variable substitutions on .SH files..."
4283 $ echo "Extracting config.h (with variable substitutions)"
4285 $ ! we need an fdl file
4286 $ CREATE [-]CONFIG.FDL
4289 $ CREATE /FDL=[-]CONFIG.FDL [-]CONFIG.LOCAL
4290 $ ! First spit out the header info with the local defines (to get
4291 $ ! around the 255 character command line limit)
4292 $ OPEN/APPEND CONFIG [-]config.local
4293 $ IF use_debugging_perl THEN WC "#define DEBUGGING"
4294 $ IF use_two_pot_malloc THEN WC "#define TWO_POT_OPTIMIZE"
4295 $ IF mymalloc THEN WC "#define EMBEDMYMALLOC"
4296 $ IF use_pack_malloc THEN WC "#define PACK_MALLOC"
4297 $ IF use_debugmalloc THEN WC "#define DEBUGGING_MSTATS"
4298 $ IF Using_Gnu_C THEN WC "#define GNUC_ATTRIBUTE_CHECK"
4299 $ IF (Has_Dec_C_Sockets)
4301 $ WC "#define VMS_DO_SOCKETS"
4302 $ WC "#define DECCRTL_SOCKETS"
4304 $ IF Has_Socketshr THEN WC "#define VMS_DO_SOCKETS"
4306 $! This is VMS-specific for now
4307 $ WC "#''perl_d_setenv' HAS_SETENV"
4308 $ IF d_secintgenv THEN WC "#define SECURE_INTERNAL_GETENV"
4309 $ if d_alwdeftype THEN WC "#define ALWAYS_DEFTYPES"
4312 $ WC "#define USE_64_BIT_INT"
4313 $ WC "#define USE_LONG_DOUBLE"
4315 $ IF use64bitall THEN WC "#define USE_64_BIT_ALL"
4316 $ IF be_case_sensitive THEN WC "#define VMS_WE_ARE_CASE_SENSITIVE"
4317 $ if perl_d_herrno .eqs. "undef"
4319 $ WC "#define NEED_AN_H_ERRNO"
4321 $ WC "#define HAS_ENVGETENV"
4322 $ WC "#define PERL_EXTERNAL_GLOB"
4325 $! Now build the normal config.h
4326 $ define/user sys$output [-]config.main
4327 $ mcr []munchconfig [-]config.sh [-]config_h.sh
4328 $ ! Concatenate them together
4329 $ copy [-]config.local,[-]config.main [-]config.h
4331 $ DELETE/NOLOG [-]CONFIG.MAIN;*
4332 $ DELETE/NOLOG [-]CONFIG.LOCAL;*
4333 $ DELETE/NOLOG [-]CONFIG.FDL;*
4337 $ DECC_REPLACE = "DECC=decc=1"
4339 $ DECC_REPLACE = "DECC="
4343 $ GNUC_REPLACE = "GNUC=gnuc=1"
4345 $ GNUC_REPLACE = "GNUC="
4347 $ IF Has_Dec_C_Sockets
4349 $ SOCKET_REPLACE = "SOCKET=DECC_SOCKETS=1"
4353 $ SOCKET_REPLACE = "SOCKET=SOCKETSHR_SOCKETS=1"
4355 $ SOCKET_REPLACE = "SOCKET="
4360 $ IF (VMS_VER .LES. "6.2")
4362 $ THREAD_REPLACE = "THREAD=OLDTHREADED=1"
4364 $ THREAD_REPLACE = "THREAD=THREADED=1"
4367 $ THREAD_REPLACE = "THREAD="
4371 $ MALLOC_REPLACE = "MALLOC=MALLOC=1"
4373 $ MALLOC_REPLACE = "MALLOC="
4375 $ echo "Extracting ''defmakefile' (with variable substitutions)"
4377 $ define/user sys$output 'UUmakefile
4378 $ mcr []munchconfig [-]config.sh descrip_mms.template "''DECC_REPLACE'" "''ARCH_TYPE'" "''GNUC_REPLACE'" "''SOCKET_REPLACE'" "''THREAD_REPLACE'" -
4379 "''C_Compiler_Replace'" "''MALLOC_REPLACE'" "''Thread_Live_Dangerously'" "PV=''version'" "FLAGS=FLAGS=''extra_flags'"
4380 $ echo "Extracting Build_Ext.Com (without variable substitutions)"
4381 $ Create Sys$Disk:[-]Build_Ext.Com
4382 $ Deck/Dollar="$EndOfTpl$"
4384 $! NOTE: This file is extracted as part of the VMS configuration process.
4385 $! Any changes made to it directly will be lost. If you need to make any
4386 $! changes, please edit the template in [.vms]SubConfigure.Com instead.
4387 $ def = F$Environment("Default")
4388 $ exts1 = F$Edit(p1,"Compress")
4389 $ p2 = F$Edit(p2,"Upcase,Compress,Trim")
4390 $ If F$Locate("MCR ",p2).eq.0 Then p2 = F$Extract(3,255,p2)
4391 $ miniperl = "$" + F$Search(F$Parse(p2,".Exe"))
4393 $ if f$type('p3') .nes. "" then makeutil = 'p3'
4394 $ targ = F$Edit(p4,"Lowercase")
4397 $ ext = F$Element(i," ",p1)
4398 $ If ext .eqs. " " Then Goto done
4399 $ Define/User Perl_Env_Tables CLISYM_LOCAL
4401 ($extdir = $ENV{'ext'}) =~ s/::/./g;
4403 if ($extdir =~ /^vms/i) { $extdir =~ s/vms/.vms.ext/i; }
4404 else { $extdir = ".ext.$extdir"; }
4405 ($ENV{'extdir'} = "[$extdir]");
4406 ($ENV{'up'} = ('-') x ($extdir =~ tr/././));
4407 $ Set Default &extdir
4409 $ If F$Locate("clean",targ) .eqs. F$Length(targ)
4411 $ Write Sys$Output "Building ''ext' . . ."
4412 $ On Error Then Goto done
4413 $ If F$Search("Descrip.MMS") .eqs. ""
4417 $ If F$CvTime(F$File("Descrip.MMS","rdt")) .lts. -
4418 F$CvTime(F$File("Makefile.PL","rdt")) Then redesc = 1
4421 $ Write Sys$Output "''targ'ing ''ext' . . ."
4422 $ On Error Then Continue
4425 miniperl "-I[''up'.lib]" Makefile.PL "INST_LIB=[''up'.lib]" "INST_ARCHLIB=[''up'.lib]"
4439 $! Clean up after ourselves
4440 $ DELETE/NOLOG/NOCONFIRM munchconfig.exe;
4441 $ DELETE/NOLOG/NOCONFIRM munchconfig.obj;