1 $! SUBCONFIGURE.COM - build a config.sh for VMS Perl.
3 $! Note for folks from other platforms changing things in here:
4 $! Fancy changes (based on compiler capabilities or VMS version or
5 $! whatever) are tricky, so go ahead and punt on those.
7 $! Simple changes, though (say, always setting something to 1, or undef,
8 $! or something like that) are straightforward. Adding a new item for the
9 $! ultimately created config.sh requires adding two lines to this file.
11 $! First, a line in the format:
13 $! after the line tagged ##ADD NEW CONSTANTS HERE##. Replace foo with the
14 $! variable name as it appears in config.sh.
16 $! Second, add a line in the format:
17 $! $ WC "foo='" + perl_foo + "'"
18 $! after the line tagged ##WRITE NEW CONSTANTS HERE##. Careful of the
19 $! quoting, as it can be tricky.
21 $! This .COM file expects to be called by configure.com, and thus expects
22 $! a few symbols in the environment. Notably:
24 $! One of: Using_Dec_C, Using_Vax_C, Using_Gnu_C set to "YES"
25 $! Dec_C_Version set to the Dec C version (defaults to 0 if not specified)
26 $! Has_Socketshr set to "T" if using socketshr
27 $! Has_Dec_C_Sockets set to "T" if using Dec C sockets
28 $! Use_Threads set to "T" if they're using threads
29 $! C_Compiler_Invoke is the command needed to invoke the C compiler
31 $! Set Dec_C_Version to something
32 $ WRITE_RESULT := "WRITE SYS$OUTPUT ""%CONFIG-I-RESULT "" + "
33 $ echo = "Write Sys$Output "
34 $ Dec_C_Version := "''Dec_C_Version'"
35 $ Dec_C_Version = Dec_C_Version + 0
36 $ Vms_Ver := "''f$extract(1,3, f$getsyi(""version""))'"
37 $ perl_extensions := "''extensions'"
38 $ if f$length(Mcc) .eq. 0 then Mcc := "cc"
39 $ MCC = f$edit(mcc, "UPCASE")
42 $ C_Compiler_Replace := "CC="
44 $ C_Compiler_Replace := "CC=CC=''Mcc'"
46 $ if "''Using_Dec_C'" .eqs. "Yes"
48 $ Checkcc := "''Mcc'/prefix=all"
53 $ if use_multiplicity .eqs. "Y"
55 $ perl_usemultiplicity = "define"
57 $ perl_usemultiplicity = "undef"
59 $! Some constant defaults.
61 $ hwname = f$getsyi("HW_NAME")
63 $ if "''myname'" .eqs. "" THEN myname = f$trnlnm("SYS$NODE")
65 $! ##ADD NEW CONSTANTS HERE##
66 $ perl_d_madvise="undef"
67 $ perl_selectminbits=32
68 $ perl_d_msync="undef"
69 $ perl_d_mprotect="undef"
70 $ perl_d_munmap="undef"
71 $ perl_crosscompile="undef"
72 $ perl_multiarch="undef"
74 $ perl_i_sysmman="undef"
75 $ perl_d_telldirproto="define"
76 $ perl_i_sysmount="undef"
77 $ perl_d_bincompat="undef"
78 $ perl_d_endspent="undef
79 $ perl_d_getspent="undef
80 $ perl_d_getspnam="undef
81 $ perl_d_setspent="undef
82 $ perl_d_fstatfs="undef"
83 $ perl_i_machcthreads="undef"
84 $ perl_i_pthread="define"
85 $ perl_d_fstatvfs="undef"
86 $ perl_usesocks="undef"
87 $ perl_d_vendorlib="undef"
88 $ perl_vendorlibexp=""
89 $ perl_d_statfsflags="undef"
90 $ perl_i_sysstatvfs="undef"
91 $ perl_i_mntent="undef"
92 $ perl_d_getmntent="undef"
93 $ perl_d_hasmntopt="undef"
94 $ perl_package="''package'"
95 $ perl_baserev = "''baserev'"
97 $ perl_installusrbinperl="undef"
99 $ perl_d_fseeko="undef"
100 $ perl_d_ftello="undef"
101 $ perl_d_readv="undef"
102 $ perl_d_writev="undef"
103 $ perl_i_machcthr="undef"
104 $ perl_i_netdb="undef"
105 $ perl_d_gnulibc="undef"
106 $ perl_cf_by="unknown"
110 $ perl_drand01 = "drand48()"
111 $ perl_randseedtype = "long int"
112 $ perl_seedfunc = "srand48"
113 $ perl_d_msg_ctrunc = "undef"
114 $ perl_d_msg_dontroute = "undef"
115 $ perl_d_msg_oob = "undef"
116 $ perl_d_msg_peek = "undef"
117 $ perl_d_msg_proxy = "undef"
118 $ perl_d_scm_rights = "undef"
119 $ perl_d_sendmsg = "undef"
120 $ perl_d_recvmsg = "undef"
121 $ perl_d_msghdr_s = "undef"
122 $ perl_d_cmsghdr_s = "undef"
123 $ IF use_64bit .eqs. "Y"
125 $ perl_use64bits = "define"
127 $ perl_use64bits = "undef"
129 $ perl_d_drand48proto = "define"
130 $ perl_libpth="/sys$share /sys$library"
132 $ perl_lddlflags="/Share"
137 $ perl_i_arpainet="undef"
138 $ perl_d_grpasswd="undef"
139 $ perl_d_setgrent="undef"
140 $ perl_d_getgrent="define"
141 $ perl_d_endgrent="define"
142 $ perl_d_pwpasswd="define"
143 $ perl_d_setpwent="define"
144 $ perl_d_getpwent="define"
145 $ perl_d_endpwent="define"
146 $ perl_d_phostname="undef"
147 $ perl_d_accessx="undef"
148 $ perl_d_eaccess="undef"
149 $ perl_ebcdic="undef"
151 $ perl_shrplib="define"
152 $ perl_usemymalloc=mymalloc
153 $ perl_usevfork="true"
154 $ perl_useposix="false"
155 $ perl_spitshell="write sys$output "
156 $ perl_dlsrc="dl_vms.c"
159 $ perl_prefix="perl_root"
160 $ perl_binexp="''perl_prefix':[000000]"
161 $ perl_builddir="''perl_prefix':[000000]"
162 $ perl_installbin="''perl_prefix':[000000]"
163 $ perl_installscript="''perl_prefix':[utils]"
164 $ perl_installman1dir="''perl_prefix':[man.man1]"
165 $ perl_installman3dir="''perl_prefix':[man.man3]"
166 $ perl_installprivlib="''perl_prefix':[lib]"
167 $ perl_installsitelib="''perl_prefix':[lib.site_perl]"
170 $ perl_d_sockpair="undef"
171 $ perl_i_neterrno="define"
172 $ perl_ldflags="/NoTrace/NoMap"
173 $ perl_d_lchown="undef"
174 $ perl_d_mknod="undef"
175 $ perl_d_union_semun="undef"
176 $ perl_d_semctl_semun="undef"
177 $ perl_d_semctl_semid_ds="undef"
178 $ IF (sharedperl.EQS."Y")
180 $ perl_obj_ext=".abj"
183 $ perl_exe_ext=".axe"
184 $ perl_lib_ext=".alb"
186 $ perl_obj_ext=".obj"
189 $ perl_exe_ext=".exe"
190 $ perl_lib_ext=".olb"
192 $ perl_dlobj="dl_vms''perl_obj_ext'"
194 $ perl_d_archlib="define"
195 $ perl_d_bincompat3="undef"
196 $ perl_cppstdin="''Perl_CC'/noobj/preprocess=sys$output sys$input"
198 $ perl_d_castneg="define"
200 $ perl_d_chsize="undef"
201 $ perl_d_const="define"
202 $ perl_d_crypt="define"
203 $ perl_byteorder="1234"
206 $ perl_d_dup2="define"
207 $ perl_d_fchmod="undef"
208 $ perl_d_fchown="undef"
209 $ perl_d_fcntl="undef"
210 $ perl_d_fgetpos="define"
211 $ perl_d_flexfnam="define"
212 $ perl_d_flock="undef"
213 $ perl_d_fsetpos="define"
214 $ perl_d_getgrps="undef"
215 $ perl_d_setgrps="undef"
216 $ perl_d_getprior="undef"
217 $ perl_d_killpg="undef"
218 $ perl_d_link="undef"
219 $ perl_d_lstat="undef"
220 $ perl_d_lockf="undef"
221 $ perl_d_memcmp="define"
222 $ perl_d_memcpy="define"
223 $ perl_d_memmove="define"
224 $ perl_d_memset="define"
225 $ perl_d_mkdir="define"
227 $ perl_d_open3="define"
228 $ perl_d_poll="undef"
229 $ perl_d_readdir="define"
230 $ perl_d_seekdir="define"
231 $ perl_d_telldir="define"
232 $ perl_d_rewinddir="define"
233 $ perl_d_rename="define"
234 $ perl_d_rmdir="define"
236 $ perl_d_setegid="undef"
237 $ perl_d_seteuid="undef"
238 $ perl_d_setprior="undef"
239 $ perl_d_setregid="undef"
240 $ perl_d_setresgid="undef"
241 $ perl_d_setreuid="undef"
242 $ perl_d_setresuid="undef"
243 $ perl_d_setrgid="undef"
244 $ perl_d_setruid="undef"
245 $ perl_d_setsid="undef"
247 $ perl_d_shmatprototype="undef"
248 $ perl_d_statblks="undef"
249 $ perl_stdio_ptr="((*fp)->_ptr)"
250 $ perl_stdio_cnt="((*fp)->_cnt)"
251 $ perl_stdio_base="((*fp)->_base)"
252 $ perl_stdio_bufsiz="((*fp)->_cnt + (*fp)->_ptr - (*fp)->_base)"
253 $ perl_d_strctcpy="define"
254 $ perl_d_strerror="define"
255 $ perl_d_syserrlst="undef"
256 $ perl_d_strerrm="strerror((e),vaxc$errno)"
257 $ perl_d_symlink="undef"
258 $ perl_d_syscall="undef"
259 $ perl_d_system="define"
260 $ perl_timetype="time_t"
261 $ perl_d_vfork="define"
262 $ perl_signal_t="void"
263 $ perl_d_volatile="define"
264 $ perl_d_vprintf="define"
265 $ perl_d_charvspr="undef"
266 $ perl_d_waitpid="define"
267 $ perl_i_dirent="undef"
268 $ perl_d_dirnamlen="define"
269 $ perl_direntrytype="struct dirent"
270 $ perl_i_fcntl="undef"
272 $ perl_i_limits="define"
273 $ perl_i_memory="undef"
274 $ perl_i_ndbm="undef"
275 $ perl_i_stdarg="define"
277 $ perl_d_pwquota="undef"
278 $ perl_d_pwage="undef"
279 $ perl_d_pwchange="undef"
280 $ perl_d_pwclass="undef"
281 $ perl_d_pwexpire="undef"
282 $ perl_d_pwcomment="define"
283 $ perl_i_stddef="define"
284 $ perl_i_stdlib="define"
285 $ perl_i_string="define"
286 $ perl_i_sysdir="undef"
287 $ perl_i_sysfile="undef"
288 $ perl_i_sysioctl="undef"
289 $ perl_i_sysndir="undef"
290 $ perl_i_sysresrc="undef"
291 $ perl_i_sysselct="undef"
293 $ perl_i_rpcsvcdbm="undef"
294 $ perl_i_sfio="undef"
295 $ perl_i_sysstat="define"
296 $ perl_i_systimes="undef"
297 $ perl_i_systypes="define"
298 $ perl_i_sysun="undef"
299 $ perl_i_syswait="undef"
300 $ perl_i_termio="undef"
301 $ perl_i_sgtty="undef"
302 $ perl_i_termios="undef"
303 $ perl_i_time="define"
304 $ perl_i_systime="undef"
305 $ perl_i_systimek="undef"
306 $! perl_i_unistd="undef"
307 $ perl_i_utime="undef"
308 $ perl_i_varargs="undef"
309 $ perl_i_vfork="undef"
310 $ perl_prototype="define"
312 $ perl_stdchar="char"
313 $ perl_d_unlink_all_versions="undef"
314 $ perl_full_sed="_NLA0:"
315 $ perl_bin="/''perl_prefix'/000000"
316 $ perl_binexp="''perl_prefix':[000000]"
317 $ perl_d_alarm="define"
318 $ perl_d_casti32="define"
319 $ perl_d_chown="define"
320 $ perl_d_chroot="undef"
321 $ perl_d_cuserid="define"
322 $ perl_d_dbl_dig="define"
323 $ perl_d_difftime="define"
324 $ perl_d_fork="undef"
325 $ perl_d_getlogin="define"
326 $ perl_d_getppid="undef"
327 $ perl_d_nice="define"
328 $ perl_d_pause="define"
329 $ perl_d_pipe="define"
330 $ perl_d_readlink="undef"
331 $ perl_d_setlinebuf="undef"
332 $ perl_d_strchr="define"
333 $ perl_d_strtod="define"
334 $ perl_d_strtol="define"
335 $ perl_d_strtoul="define"
336 $ perl_d_tcgetpgrp="undef"
337 $ perl_d_tcsetpgrp="undef"
338 $ perl_d_times="define"
339 $ perl_d_tzname="undef"
340 $ perl_d_umask="define"
341 $ perl_fpostype="fpos_t"
342 $ perl_i_dlfcn="undef"
343 $ perl_i_float="define"
344 $ perl_i_math="define"
345 $ perl_lseektype="int"
346 $ perl_i_values="undef"
347 $ perl_malloctype="void *"
348 $ perl_freetype="void"
349 $ if "''mymalloc'".eqs."Y"
351 $ perl_d_mymalloc="define"
353 $ perl_d_mymalloc="undef"
356 $ perl_modetype="unsigned int"
357 $ perl_ssizetype="int"
358 $ perl_o_nonblock=" "
361 $ perl_d_eofnblk="undef"
362 $ perl_d_oldarchlib="define"
363 $ perl_privlibexp="''perl_prefix':[lib]"
364 $ perl_privlib="''perl_prefix':[lib]"
365 $ perl_sitelibexp="''perl_prefix':[lib.site_perl]"
366 $ perl_sitelib="''perl_prefix':[lib.site_perl]"
367 $ perl_sizetype="size_t"
368 $ perl_i_sysparam="undef"
369 $ perl_d_void_closedir="define"
370 $ perl_d_dlerror="undef"
371 $ perl_d_dlsymun="undef"
372 $ perl_d_suidsafe="undef"
373 $ perl_d_dosuid="undef"
374 $ perl_d_inetaton="undef"
375 $ perl_d_isascii="define"
376 $ perl_d_mkfifo="undef"
377 $ perl_d_safebcpy="undef"
378 $ perl_d_safemcpy="define"
379 $ perl_d_sanemcmp="define"
380 $ perl_d_setpgrp="undef"
381 $ perl_d_bsdsetpgrp="undef"
382 $ perl_d_bsdpgrp="undef"
383 $ perl_d_setpgid="undef"
384 $ perl_d_setpgrp2="undef"
385 $ perl_d_Gconvert="my_gconvert(x,n,t,b)"
386 $ perl_d_getpgid="undef"
387 $ perl_d_getpgrp="undef"
388 $ perl_d_bsdgetpgrp="undef"
389 $ perl_d_getpgrp2="undef"
390 $ perl_d_sfio="undef"
391 $ perl_usedl="define"
392 $ perl_startperl="""$ perl 'f$env(\""procedure\"")' 'p1' 'p2' 'p3' 'p4' 'p5' 'p6' 'p7' 'p8' !\n$ exit++ + ++$status != 0 and $exit = $status = undef;"""
393 $ perl_db_hashtype=" "
394 $ perl_db_prefixtype=" "
395 $ perl_useperlio="undef"
396 $ perl_defvoidused="15"
397 $ perl_voidflags="15"
398 $ perl_d_eunice="undef"
399 $ perl_d_pwgecos="define"
400 $ IF ("''Use_Threads'".eqs."T").and.("''VMS_VER'".LES."6.2")
402 $ 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"
406 $ IF ("''Using_Dec_C'".eqs."Yes")
408 $ perl_libc="(DECCRTL)"
412 $ perl_PATCHLEVEL="''patchlevel'"
413 $ perl_SUBVERSION="''subversion'"
418 $ if (use_64bit .eqs. "Y")
420 $ perl_d_PRIfldbl = "define"
421 $ perl_d_PRIgldbl = "define"
422 $ perl_d_PRId64 = "define"
423 $ perl_d_PRIu64 = "define"
424 $ perl_d_PRIo64 = "define"
425 $ perl_d_PRIx64 = "define"
426 $ perl_sPRIfldbl = """Lf"""
427 $ perl_sPRIgldbl = """Lg"""
428 $ perl_sPRId64 = """Ld"""
429 $ perl_sPRIu64 = """Lu"""
430 $ perl_sPRIo64 = """Lo"""
431 $ perl_sPRIx64 = """Lx"""
433 $ perl_d_PRIfldbl = "undef"
434 $ perl_d_PRIgldbl = "undef"
435 $ perl_d_PRId64 = "undef"
436 $ perl_d_PRIu64 = "undef"
437 $ perl_d_PRIo64 = "undef"
438 $ perl_d_PRIx64 = "undef"
439 $ perl_sPRIfldbl = ""
440 $ perl_sPRIgldbl = ""
448 $! Now some that we build up
450 $ LocalTime = f$time()
451 $ perl_cf_time= f$extract(0, 3, f$cvtime(LocalTime,, "WEEKDAY")) + " " + -
452 f$edit(f$cvtime(LocalTime, "ABSOLUTE", "MONTH"), "LOWERCASE") + -
453 " " + f$cvtime(LocalTime,, "DAY") + " " + f$cvtime(LocalTime,, "TIME") + -
454 " " + f$cvtime(LocalTime,, "YEAR")
455 $ if f$getsyi("HW_MODEL").ge.1024
457 $ perl_arch="VMS_AXP"
458 $ perl_archname="VMS_AXP"
459 $ perl_alignbytes="8"
461 $ perl_arch="VMS_VAX"
462 $ perl_archname="VMS_VAX"
463 $ perl_alignbytes="8"
465 $ if ("''Use_Threads'".eqs."T")
467 $ perl_arch = "''perl_arch'-thread"
468 $ perl_archname = "''perl_archname'-thread"
469 $ perl_d_old_pthread_create_joinable = "undef"
470 $ perl_old_pthread_create_joinable = " "
472 $ perl_d_old_pthread_create_joinable = "undef"
473 $ perl_old_pthread_create_joinable = " "
475 $ perl_osvers=f$edit(osvers, "TRIM")
476 $ if (perl_subversion + 0).eq.0
478 $ LocalPerlVer = "5_" + Perl_PATCHLEVEL
480 $ LocalPerlVer = "5_" + Perl_PATCHLEVEL + perl_subversion
483 $! Some that we need to invoke the compiler for
484 $ OS := "open/write SOURCECHAN []temp.c"
485 $ WS := "write SOURCECHAN"
486 $ CS := "close SOURCECHAN"
487 $ DS := "delete/nolog []temp.*;*"
489 $ if ("''using_vax_c'".eqs."Yes").or.("''using_gnu_c'".eqs."Yes")
491 $ open/write OPTCHAN []temp.opt
492 $ IF ("''using_gnu_c'".eqs."Yes")
494 $ write OPTCHAN "Gnu_CC:[000000]gcclib.olb/library"
496 $ write OPTCHAN "Sys$Share:VAXCRTL/Share"
501 $! Check for __STDC__
505 $ WS "#include <stdlib.h>
507 $ WS "#include <stdio.h>
510 $ WS "#ifdef __STDC__
511 $ WS "printf(""42\n"");
513 $ WS "printf(""1\n"");
518 $ DEFINE SYS$ERROR _NLA0:
519 $ DEFINE SYS$OUTPUT _NLA0:
520 $ ON ERROR THEN CONTINUE
521 $ ON WARNING THEN CONTINUE
523 $ If (Needs_Opt.eqs."Yes")
525 $ link temp.obj,temp.opt/opt
529 $ DEASSIGN SYS$OUTPUT
531 $ OPEN/WRITE TEMPOUT [-.uu]tempout.lis
532 $ DEFINE SYS$ERROR TEMPOUT
533 $ DEFINE SYS$OUTPUT TEMPOUT
536 $ DEASSIGN SYS$OUTPUT
538 $ OPEN/READ TEMPOUT [-.uu]tempout.lis
542 $ perl_cpp_stuff=line
543 $ WRITE_RESULT "cpp_stuff is ''perl_cpp_stuff'"
545 $! Check for double size
549 $ WS "#include <stdlib.h>
551 $ WS "#include <stdio.h>
555 $ WS "foo = sizeof(double);
556 $ WS "printf(""%d\n"", foo);
560 $ DEFINE SYS$ERROR _NLA0:
561 $ DEFINE SYS$OUTPUT _NLA0:
562 $ ON ERROR THEN CONTINUE
563 $ ON WARNING THEN CONTINUE
565 $ If (Needs_Opt.eqs."Yes")
567 $ link temp.obj,temp.opt/opt
572 $ OPEN/WRITE TEMPOUT [-.uu]tempout.lis
573 $ DEASSIGN SYS$OUTPUT
575 $ DEFINE SYS$ERROR TEMPOUT
576 $ DEFINE SYS$OUTPUT TEMPOUT
579 $ DEASSIGN SYS$OUTPUT
581 $ OPEN/READ TEMPOUT [-.uu]tempout.lis
585 $ perl_doublesize=line
586 $ WRITE_RESULT "doublesize is ''perl_doublesize'"
588 $! Check for long double size
592 $ WS "#include <stdlib.h>
594 $ WS "#include <stdio.h>
597 $ WS "printf(""%d\n"", sizeof(long double));
601 $ DEFINE SYS$ERROR _NLA0:
602 $ DEFINE SYS$OUTPUT _NLA0:
603 $ ON ERROR THEN CONTINUE
604 $ ON WARNING THEN CONTINUE
606 $ teststatus = f$extract(9,1,$status)
607 $ if (teststatus.nes."1")
609 $ perl_longdblsize="0"
610 $ perl_d_longdbl="undef"
612 $ ON ERROR THEN CONTINUE
613 $ ON WARNING THEN CONTINUE
614 $ If (Needs_Opt.eqs."Yes")
616 $ link temp.obj,temp.opt/opt
620 $ teststatus = f$extract(9,1,$status)
621 $ DEASSIGN SYS$OUTPUT
623 $ if (teststatus.nes."1")
625 $ perl_longdblsize="0"
626 $ perl_d_longdbl="undef"
628 $ OPEN/WRITE TEMPOUT [-.uu]tempout.lis
629 $ DEFINE SYS$ERROR TEMPOUT
630 $ DEFINE SYS$OUTPUT TEMPOUT
633 $ DEASSIGN SYS$OUTPUT
635 $ OPEN/READ TEMPOUT [-.uu]tempout.lis
639 $ perl_longdblsize=line
640 $ perl_d_longdbl="define"
643 $ WRITE_RESULT "longdblsize is ''perl_longdblsize'"
644 $ WRITE_RESULT "d_longdbl is ''perl_d_longdbl'"
646 $! Check for long long existance and size
650 $ WS "#include <stdlib.h>
652 $ WS "#include <stdio.h>
655 $ WS "printf(""%d\n"", sizeof(long long));
659 $ DEFINE SYS$ERROR _NLA0:
660 $ DEFINE SYS$OUTPUT _NLA0:
661 $ on error then continue
662 $ on warning then continue
664 $ If (Needs_Opt.eqs."Yes")
666 $ link temp.obj,temp.opt/opt
670 $ teststatus = f$extract(9,1,$status)
671 $ DEASSIGN SYS$OUTPUT
673 $ if (teststatus.nes."1")
675 $ perl_longlongsize="0"
676 $ perl_d_longlong="undef"
678 $ OPEN/WRITE TEMPOUT [-.uu]tempout.lis
679 $ DEFINE SYS$ERROR TEMPOUT
680 $ DEFINE SYS$OUTPUT TEMPOUT
683 $ DEASSIGN SYS$OUTPUT
685 $ OPEN/READ TEMPOUT [-.uu]tempout.lis
689 $ perl_longlongsize=line
690 $ perl_d_longlong="define"
692 $ WRITE_RESULT "longlongsize is ''perl_longlongsize'"
693 $ WRITE_RESULT "d_longlong is ''perl_d_longlong'"
695 $! Check for int size
699 $ WS "#include <stdlib.h>
701 $ WS "#include <stdio.h>
704 $ WS "printf(""%d\n"", sizeof(int));
708 $ DEFINE SYS$ERROR _NLA0:
709 $ DEFINE SYS$OUTPUT _NLA0:
710 $ on error then continue
711 $ on warning then continue
713 $ If (Needs_Opt.eqs."Yes")
715 $ link temp.obj,temp.opt/opt
719 $ If (Needs_Opt.eqs."Yes")
721 $ link temp.obj,temp.opt/opt
725 $ OPEN/WRITE TEMPOUT [-.uu]tempout.lis
726 $ DEASSIGN SYS$OUTPUT
728 $ DEFINE SYS$ERROR TEMPOUT
729 $ DEFINE SYS$OUTPUT TEMPOUT
732 $ DEASSIGN SYS$OUTPUT
734 $ OPEN/READ TEMPOUT [-.uu]tempout.lis
739 $ WRITE_RESULT "intsize is ''perl_intsize'"
741 $! Check for short size
745 $ WS "#include <stdlib.h>
747 $ WS "#include <stdio.h>
750 $ WS "printf(""%d\n"", sizeof(short));
754 $ DEFINE SYS$ERROR _NLA0:
755 $ DEFINE SYS$OUTPUT _NLA0:
756 $ on error then continue
757 $ on warning then continue
759 $ If (Needs_Opt.eqs."Yes")
761 $ link temp.obj,temp.opt/opt
765 $ OPEN/WRITE TEMPOUT [-.uu]tempout.lis
766 $ DEASSIGN SYS$OUTPUT
768 $ DEFINE SYS$ERROR TEMPOUT
769 $ DEFINE SYS$OUTPUT TEMPOUT
772 $ DEASSIGN SYS$OUTPUT
774 $ OPEN/READ TEMPOUT [-.uu]tempout.lis
778 $ perl_shortsize=line
779 $ WRITE_RESULT "shortsize is ''perl_shortsize'"
781 $! Check for long size
785 $ WS "#include <stdlib.h>
787 $ WS "#include <stdio.h>
791 $ WS "foo = sizeof(long);
792 $ WS "printf(""%d\n"", foo);
796 $ DEFINE SYS$ERROR _NLA0:
797 $ DEFINE SYS$OUTPUT _NLA0:
798 $ on error then continue
799 $ on warning then continue
801 $ If (Needs_Opt.eqs."Yes")
803 $ link temp.obj,temp.opt/opt
807 $ OPEN/WRITE TEMPOUT [-.uu]tempout.lis
808 $ DEASSIGN SYS$OUTPUT
810 $ DEFINE SYS$ERROR TEMPOUT
811 $ DEFINE SYS$OUTPUT TEMPOUT
814 $ DEASSIGN SYS$OUTPUT
816 $ OPEN/READ TEMPOUT [-.uu]tempout.lis
821 $ WRITE_RESULT "longsize is ''perl_longsize'"
823 $! Check the prototype for getgid
827 $ WS "#include <stdlib.h>
829 $ WS "#include <stdio.h>
830 $ WS "#include <types.h>
831 $ WS "#include <unistd.h>
838 $ DEFINE SYS$ERROR _NLA0:
839 $ DEFINE SYS$OUTPUT _NLA0:
840 $ on error then continue
841 $ on warning then continue
843 $ teststatus = f$extract(9,1,$status)
844 $ DEASSIGN SYS$OUTPUT
846 $ if (teststatus.nes."1")
848 $! Okay, gid_t failed. Must be unsigned int
849 $ perl_gidtype = "unsigned int"
851 $ perl_gidtype = "gid_t"
853 $ WRITE_RESULT "Gid_t is ''perl_gidtype'"
855 $! Check to see if we've got dev_t
859 $ WS "#include <stdlib.h>
861 $ WS "#include <stdio.h>
862 $ WS "#include <types.h>
863 $ WS "#include <unistd.h>
870 $ DEFINE SYS$ERROR _NLA0:
871 $ DEFINE SYS$OUTPUT _NLA0:
872 $ on error then continue
873 $ on warning then continue
875 $ teststatus = f$extract(9,1,$status)
876 $ DEASSIGN SYS$OUTPUT
878 $ if (teststatus.nes."1")
880 $! Okay, dev_t failed. Must be unsigned int
881 $ perl_devtype = "unsigned int"
883 $ perl_devtype = "dev_t"
885 $ WRITE_RESULT "Dev_t is ''perl_devtype'"
887 $! Check to see if we've got unistd.h (which we ought to, but you never know)
891 $ WS "#include <stdlib.h>
893 $ WS "#include <unistd.h>
899 $ DEFINE SYS$ERROR _NLA0:
900 $ DEFINE SYS$OUTPUT _NLA0:
901 $ on error then continue
902 $ on warning then continue
904 $ teststatus = f$extract(9,1,$status)
905 $ DEASSIGN SYS$OUTPUT
907 $ if (teststatus.nes."1")
909 $! Okay, failed. Must not have it
910 $ perl_i_unistd = "undef"
912 $ perl_i_unistd = "define"
915 $ WRITE_RESULT "i_unistd is ''perl_i_unistd'"
917 $! Check to see if we've got shadow.h (probably not, but...)
921 $ WS "#include <stdlib.h>
923 $ WS "#include <shadow.h>
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, failed. Must not have it
940 $ perl_i_shadow = "undef"
942 $ perl_i_shadow = "define"
945 $ WRITE_RESULT "i_shadow is ''perl_i_shadow'"
947 $! Check to see if we've got socks.h (probably not, but...)
951 $ WS "#include <stdlib.h>
953 $ WS "#include <socks.h>
959 $ DEFINE SYS$ERROR _NLA0:
960 $ DEFINE SYS$OUTPUT _NLA0:
961 $ on error then continue
962 $ on warning then continue
964 $ teststatus = f$extract(9,1,$status)
965 $ DEASSIGN SYS$OUTPUT
967 $ if (teststatus.nes."1")
969 $! Okay, failed. Must not have it
970 $ perl_i_socks = "undef"
972 $ perl_i_socks = "define"
975 $ WRITE_RESULT "i_socks is ''perl_i_socks'"
977 $! Check the prototype for select
979 $ if ("''Has_Dec_C_Sockets'".eqs."T").or.("''Has_Socketshr'".eqs."T")
983 $ WS "#include <stdlib.h>
985 $ WS "#include <stdio.h>
986 $ WS "#include <types.h>
987 $ WS "#include <unistd.h>
988 $ if ("''Has_Socketshr'".eqs."T")
990 $ WS "#include <socketshr.h>"
992 $ WS "#include <time.h>
993 $ WS "#include <socket.h>
1000 $ WS "bar = select(2, foo, foo, foo, NULL);
1004 $ DEFINE SYS$ERROR _NLA0:
1005 $ DEFINE SYS$OUTPUT _NLA0:
1006 $ on error then continue
1007 $ on warning then continue
1009 $ teststatus = f$extract(9,1,$status)
1010 $ DEASSIGN SYS$OUTPUT
1011 $ DEASSIGN SYS$ERROR
1012 $ if (teststatus.nes."1")
1014 $! Okay, fd_set failed. Must be an int
1015 $ perl_selecttype = "int *"
1017 $ perl_selecttype="fd_set *"
1020 $ ! No sockets, so stick in an int *
1021 $ perl_selecttype = "int *"
1023 $ WRITE_RESULT "selectype is ''perl_selecttype'"
1025 $! Check to see if fd_set exists
1029 $ WS "#include <stdlib.h>
1031 $ WS "#include <stdio.h>
1032 $ WS "#include <types.h>
1033 $ WS "#include <unistd.h>
1034 $ if ("''Has_Socketshr'".eqs."T")
1036 $ WS "#include <socketshr.h>"
1038 $ IF ("''Has_Dec_C_Sockets'".eqs."T")
1040 $ WS "#include <time.h>
1041 $ WS "#include <socket.h>
1050 $ DEFINE SYS$ERROR _NLA0:
1051 $ DEFINE SYS$OUTPUT _NLA0:
1052 $ on error then continue
1053 $ on warning then continue
1055 $ teststatus = f$extract(9,1,$status)
1056 $ DEASSIGN SYS$OUTPUT
1057 $ DEASSIGN SYS$ERROR
1058 $ if (teststatus.nes."1")
1060 $! Okay, fd_set failed. Must not exist
1061 $ perl_d_fd_set = "undef"
1063 $ perl_d_fd_set="define"
1065 $ WRITE_RESULT "d_fd_set is ''perl_d_fd_set'"
1067 $! Check for inttypes.h
1071 $ WS "#include <stdlib.h>
1073 $ WS "#include <stdio.h>
1074 $ WS "#include <unistd.h>
1075 $ WS "#include <inttypes.h>
1081 $ DEFINE SYS$ERROR _NLA0:
1082 $ DEFINE SYS$OUTPUT _NLA0:
1083 $ on error then continue
1084 $ on warning then continue
1086 $ savedstatus = $status
1087 $ teststatus = f$extract(9,1,savedstatus)
1088 $ if (teststatus.nes."1")
1090 $ perl_i_inttypes="undef"
1091 $ DEASSIGN SYS$OUTPUT
1092 $ DEASSIGN SYS$ERROR
1094 $ If (Needs_Opt.eqs."Yes")
1096 $ link temp.obj,temp.opt/opt
1100 $ savedstatus = $status
1101 $ teststatus = f$extract(9,1,savedstatus)
1102 $ DEASSIGN SYS$OUTPUT
1103 $ DEASSIGN SYS$ERROR
1104 $ if (teststatus.nes."1")
1106 $ perl_i_inttypes="undef"
1108 $ perl_i_inttypes="define"
1111 $ WRITE_RESULT "i_inttypes is ''perl_i_inttypes'"
1113 $! Check to see if int64_t exists
1117 $ WS "#include <stdlib.h>
1119 $ WS "#include <stdio.h>
1120 $ WS "#include <types.h>
1121 $ WS "#''perl_i_inttypes IIH
1123 $ WS "#include <inttypes.h>
1125 $ WS "#include <unistd.h>
1132 $ DEFINE SYS$ERROR _NLA0:
1133 $ DEFINE SYS$OUTPUT _NLA0:
1134 $ on error then continue
1135 $ on warning then continue
1137 $ teststatus = f$extract(9,1,$status)
1138 $ DEASSIGN SYS$OUTPUT
1139 $ DEASSIGN SYS$ERROR
1140 $ if (teststatus.nes."1")
1142 $! Okay, int64_t failed. Must not exist
1143 $ perl_d_int64t = "undef"
1145 $ perl_d_int64t="define"
1147 $ WRITE_RESULT "d_int64t is ''perl_d_int64t'"
1149 $! Check to see if off64_t exists
1153 $ WS "#include <stdlib.h>
1155 $ WS "#include <stdio.h>
1156 $ WS "#include <types.h>
1157 $ WS "#''perl_i_inttypes IIH
1159 $ WS "#include <inttypes.h>
1161 $ WS "#include <unistd.h>
1168 $ DEFINE SYS$ERROR _NLA0:
1169 $ DEFINE SYS$OUTPUT _NLA0:
1170 $ on error then continue
1171 $ on warning then continue
1173 $ teststatus = f$extract(9,1,$status)
1174 $ DEASSIGN SYS$OUTPUT
1175 $ DEASSIGN SYS$ERROR
1176 $ if (teststatus.nes."1")
1178 $! Okay, off64_t failed. Must not exist
1179 $ perl_d_off64_t = "undef"
1181 $ perl_d_off64_t="define"
1183 $ WRITE_RESULT "d_off64_t is ''perl_d_off64_t'"
1185 $! Check to see if gethostname exists
1187 $ if ("''Has_Dec_C_Sockets'".eqs."T").or.("''Has_Socketshr'".eqs."T")
1191 $ WS "#include <stdlib.h>
1193 $ WS "#include <stdio.h>
1194 $ WS "#include <types.h>
1195 $ WS "#include <unistd.h>
1196 $ if ("''Has_Socketshr'".eqs."T")
1198 $ WS "#include <socketshr.h>"
1200 $ WS "#include <time.h>
1201 $ WS "#include <socket.h>
1205 $ WS "char name[100];
1208 $ WS "baz = gethostname(name, bar);
1212 $ DEFINE SYS$ERROR _NLA0:
1213 $ DEFINE SYS$OUTPUT _NLA0:
1214 $ on error then continue
1215 $ on warning then continue
1217 $ teststatus = f$extract(9,1,$status)
1218 $ DEASSIGN SYS$OUTPUT
1219 $ DEASSIGN SYS$ERROR
1220 $ if (teststatus.nes."1")
1222 $! Okay, compile failed. Must not have it
1223 $ perl_dgethname = "undef"
1225 $ If (Needs_Opt.eqs."Yes")
1227 $ link temp.obj,temp.opt/opt
1231 $ savedstatus = $status
1232 $ teststatus = f$extract(9,1,savedstatus)
1233 $ if (teststatus.nes."1")
1235 $ perl_d_gethname="undef"
1237 $ perl_d_gethname="define"
1241 $ ! No sockets, so no gethname
1242 $ perl_d_gethname = "undef"
1244 $ WRITE_RESULT "d_gethname is ''perl_d_gethname'"
1246 $! Check for sys/file.h
1250 $ WS "#include <stdlib.h>
1252 $ WS "#include <stdio.h>
1253 $ WS "#include <unistd.h>
1254 $ WS "#include <sys/file.h>
1260 $ DEFINE SYS$ERROR _NLA0:
1261 $ DEFINE SYS$OUTPUT _NLA0:
1262 $ on error then continue
1263 $ on warning then continue
1265 $ savedstatus = $status
1266 $ teststatus = f$extract(9,1,savedstatus)
1267 $ if (teststatus.nes."1")
1269 $ perl_i_sysfile="undef"
1270 $ DEASSIGN SYS$OUTPUT
1271 $ DEASSIGN SYS$ERROR
1273 $ If (Needs_Opt.eqs."Yes")
1275 $ link temp.obj,temp.opt/opt
1279 $ savedstatus = $status
1280 $ teststatus = f$extract(9,1,savedstatus)
1281 $ DEASSIGN SYS$OUTPUT
1282 $ DEASSIGN SYS$ERROR
1283 $ if (teststatus.nes."1")
1285 $ perl_i_sysfile="undef"
1287 $ perl_i_sysfile="define"
1290 $ WRITE_RESULT "i_sysfile is ''perl_i_sysfile'"
1296 $ WS "#include <stdlib.h>
1298 $ WS "#include <stdio.h>
1299 $ WS "#include <unistd.h>
1300 $ WS "#include <poll.h>
1306 $ DEFINE SYS$ERROR _NLA0:
1307 $ DEFINE SYS$OUTPUT _NLA0:
1308 $ on error then continue
1309 $ on warning then continue
1311 $ savedstatus = $status
1312 $ teststatus = f$extract(9,1,savedstatus)
1313 $ if (teststatus.nes."1")
1315 $ perl_i_poll="undef"
1316 $ DEASSIGN SYS$OUTPUT
1317 $ DEASSIGN SYS$ERROR
1319 $ If (Needs_Opt.eqs."Yes")
1321 $ link temp.obj,temp.opt/opt
1325 $ savedstatus = $status
1326 $ teststatus = f$extract(9,1,savedstatus)
1327 $ DEASSIGN SYS$OUTPUT
1328 $ DEASSIGN SYS$ERROR
1329 $ if (teststatus.nes."1")
1331 $ perl_i_poll="undef"
1333 $ perl_i_poll="define"
1336 $ WRITE_RESULT "i_poll is ''perl_i_poll'"
1338 $! Check for sys/uio.h
1342 $ WS "#include <stdlib.h>
1344 $ WS "#include <stdio.h>
1345 $ WS "#include <unistd.h>
1346 $ WS "#include <sys/uio.h>
1352 $ DEFINE SYS$ERROR _NLA0:
1353 $ DEFINE SYS$OUTPUT _NLA0:
1354 $ on error then continue
1355 $ on warning then continue
1357 $ savedstatus = $status
1358 $ teststatus = f$extract(9,1,savedstatus)
1359 $ if (teststatus.nes."1")
1361 $ perl_i_sysuio="undef"
1362 $ DEASSIGN SYS$OUTPUT
1363 $ DEASSIGN SYS$ERROR
1365 $ If (Needs_Opt.eqs."Yes")
1367 $ link temp.obj,temp.opt/opt
1371 $ savedstatus = $status
1372 $ teststatus = f$extract(9,1,savedstatus)
1373 $ DEASSIGN SYS$OUTPUT
1374 $ DEASSIGN SYS$ERROR
1375 $ if (teststatus.nes."1")
1377 $ perl_i_sysuio="undef"
1379 $ perl_i_sysuio="define"
1382 $ WRITE_RESULT "i_sysuio is ''perl_i_sysuio'"
1384 $! Check for sys/access.h
1388 $ WS "#include <stdlib.h>
1390 $ WS "#include <stdio.h>
1391 $ WS "#include <unistd.h>
1392 $ WS "#include <sys/access.h>
1398 $ DEFINE SYS$ERROR _NLA0:
1399 $ DEFINE SYS$OUTPUT _NLA0:
1400 $ on error then continue
1401 $ on warning then continue
1403 $ savedstatus = $status
1404 $ teststatus = f$extract(9,1,savedstatus)
1405 $ if (teststatus.nes."1")
1407 $ perl_i_sysaccess="undef"
1408 $ DEASSIGN SYS$OUTPUT
1409 $ DEASSIGN SYS$ERROR
1411 $ If (Needs_Opt.eqs."Yes")
1413 $ link temp.obj,temp.opt/opt
1417 $ savedstatus = $status
1418 $ teststatus = f$extract(9,1,savedstatus)
1419 $ DEASSIGN SYS$OUTPUT
1420 $ DEASSIGN SYS$ERROR
1421 $ if (teststatus.nes."1")
1423 $ perl_i_sysaccess="undef"
1425 $ perl_i_sysaccess="define"
1428 $ WRITE_RESULT "i_sysaccess is ''perl_i_sysaccess'"
1430 $! Check for sys/security.h
1434 $ WS "#include <stdlib.h>
1436 $ WS "#include <stdio.h>
1437 $ WS "#include <unistd.h>
1438 $ WS "#include <sys/security.h>
1444 $ DEFINE SYS$ERROR _NLA0:
1445 $ DEFINE SYS$OUTPUT _NLA0:
1446 $ on error then continue
1447 $ on warning then continue
1449 $ savedstatus = $status
1450 $ teststatus = f$extract(9,1,savedstatus)
1451 $ if (teststatus.nes."1")
1453 $ perl_i_syssecrt="undef"
1454 $ DEASSIGN SYS$OUTPUT
1455 $ DEASSIGN SYS$ERROR
1457 $ If (Needs_Opt.eqs."Yes")
1459 $ link temp.obj,temp.opt/opt
1463 $ savedstatus = $status
1464 $ teststatus = f$extract(9,1,savedstatus)
1465 $ DEASSIGN SYS$OUTPUT
1466 $ DEASSIGN SYS$ERROR
1467 $ if (teststatus.nes."1")
1469 $ perl_i_syssecrt="undef"
1471 $ perl_i_syssecrt="define"
1474 $ WRITE_RESULT "i_syssecrt is ''perl_i_syssecrt'"
1476 $! Check for fcntl.h
1480 $ WS "#include <stdlib.h>
1482 $ WS "#include <stdio.h>
1483 $ WS "#include <unistd.h>
1484 $ WS "#include <fcntl.h>
1490 $ DEFINE SYS$ERROR _NLA0:
1491 $ DEFINE SYS$OUTPUT _NLA0:
1492 $ on error then continue
1493 $ on warning then continue
1495 $ savedstatus = $status
1496 $ teststatus = f$extract(9,1,savedstatus)
1497 $ if (teststatus.nes."1")
1499 $ perl_i_fcntl="undef"
1500 $ DEASSIGN SYS$OUTPUT
1501 $ DEASSIGN SYS$ERROR
1503 $ If (Needs_Opt.eqs."Yes")
1505 $ link temp.obj,temp.opt/opt
1509 $ savedstatus = $status
1510 $ teststatus = f$extract(9,1,savedstatus)
1511 $ DEASSIGN SYS$OUTPUT
1512 $ DEASSIGN SYS$ERROR
1513 $ if (teststatus.nes."1")
1515 $ perl_i_fcntl="undef"
1517 $ perl_i_fcntl="define"
1520 $ WRITE_RESULT "i_fcntl is ''perl_i_fcntl'"
1526 $ WS "#include <stdlib.h>
1528 $ WS "#include <stdio.h>
1529 $ WS "#include <unistd.h>
1530 $ WS "#include <fcntl.h>
1537 $ DEFINE SYS$ERROR _NLA0:
1538 $ DEFINE SYS$OUTPUT _NLA0:
1539 $ on error then continue
1540 $ on warning then continue
1542 $ savedstatus = $status
1543 $ teststatus = f$extract(9,1,savedstatus)
1544 $ if (teststatus.nes."1")
1546 $ perl_d_fcntl="undef"
1547 $ DEASSIGN SYS$OUTPUT
1548 $ DEASSIGN SYS$ERROR
1550 $ If (Needs_Opt.eqs."Yes")
1552 $ link temp.obj,temp.opt/opt
1556 $ savedstatus = $status
1557 $ teststatus = f$extract(9,1,savedstatus)
1558 $ DEASSIGN SYS$OUTPUT
1559 $ DEASSIGN SYS$ERROR
1560 $ if (teststatus.nes."1")
1562 $ perl_d_fcntl="undef"
1564 $ perl_d_fcntl="define"
1567 $ WRITE_RESULT "d_fcntl is ''perl_d_fcntl'"
1573 $ WS "#include <stdlib.h>
1575 $ WS "#include <string.h>
1579 $ WS "place = memchr(""foo"", 47, 3)
1583 $ DEFINE SYS$ERROR _NLA0:
1584 $ DEFINE SYS$OUTPUT _NLA0:
1585 $ on error then continue
1586 $ on warning then continue
1588 $ savedstatus = $status
1589 $ teststatus = f$extract(9,1,savedstatus)
1590 $ if (teststatus.nes."1")
1592 $ perl_d_memchr="undef"
1593 $ DEASSIGN SYS$OUTPUT
1594 $ DEASSIGN SYS$ERROR
1596 $ If (Needs_Opt.eqs."Yes")
1598 $ link temp.obj,temp.opt/opt
1602 $ savedstatus = $status
1603 $ teststatus = f$extract(9,1,savedstatus)
1604 $ DEASSIGN SYS$OUTPUT
1605 $ DEASSIGN SYS$ERROR
1606 $ if (teststatus.nes."1")
1608 $ perl_d_memchr="undef"
1610 $ perl_d_memchr="define"
1613 $ WRITE_RESULT "d_memchr is ''perl_d_memchr'"
1615 $! Check for strtoull
1619 $ WS "#include <stdlib.h>
1621 $ WS "#include <string.h>
1624 $ WS "unsigned __int64 result;
1625 $ WS "result = strtoull(""123123"", NULL, 10);
1629 $ DEFINE SYS$ERROR _NLA0:
1630 $ DEFINE SYS$OUTPUT _NLA0:
1631 $ on error then continue
1632 $ on warning then continue
1634 $ savedstatus = $status
1635 $ teststatus = f$extract(9,1,savedstatus)
1636 $ if (teststatus.nes."1")
1638 $ perl_d_strtoull="undef"
1639 $ DEASSIGN SYS$OUTPUT
1640 $ DEASSIGN SYS$ERROR
1642 $ If (Needs_Opt.eqs."Yes")
1644 $ link temp.obj,temp.opt/opt
1648 $ savedstatus = $status
1649 $ teststatus = f$extract(9,1,savedstatus)
1650 $ DEASSIGN SYS$OUTPUT
1651 $ DEASSIGN SYS$ERROR
1652 $ if (teststatus.nes."1")
1654 $ perl_d_strtoull="undef"
1656 $ perl_d_strtoull="define"
1659 $ WRITE_RESULT "d_strtoull is ''perl_d_strtoull'"
1665 $ WS "#include <stdlib.h>
1667 $ WS "#include <string.h>
1670 $ WS " __int64 result;
1671 $ WS "result = atoll(""123123"");
1675 $ DEFINE SYS$ERROR _NLA0:
1676 $ DEFINE SYS$OUTPUT _NLA0:
1677 $ on error then continue
1678 $ on warning then continue
1680 $ savedstatus = $status
1681 $ teststatus = f$extract(9,1,savedstatus)
1682 $ if (teststatus.nes."1")
1684 $ perl_d_atoll="undef"
1685 $ DEASSIGN SYS$OUTPUT
1686 $ DEASSIGN SYS$ERROR
1688 $ If (Needs_Opt.eqs."Yes")
1690 $ link temp.obj,temp.opt/opt
1694 $ savedstatus = $status
1695 $ teststatus = f$extract(9,1,savedstatus)
1696 $ DEASSIGN SYS$OUTPUT
1697 $ DEASSIGN SYS$ERROR
1698 $ if (teststatus.nes."1")
1700 $ perl_d_atoll="undef"
1702 $ perl_d_atoll="define"
1705 $ WRITE_RESULT "d_atoll is ''perl_d_atoll'"
1711 $ WS "#include <stdlib.h>
1713 $ WS "#include <string.h>
1717 $ WS "result = atolf(""123123"");
1721 $ DEFINE SYS$ERROR _NLA0:
1722 $ DEFINE SYS$OUTPUT _NLA0:
1723 $ on error then continue
1724 $ on warning then continue
1726 $ savedstatus = $status
1727 $ teststatus = f$extract(9,1,savedstatus)
1728 $ if (teststatus.nes."1")
1730 $ perl_d_atolf="undef"
1731 $ DEASSIGN SYS$OUTPUT
1732 $ DEASSIGN SYS$ERROR
1734 $ If (Needs_Opt.eqs."Yes")
1736 $ link temp.obj,temp.opt/opt
1740 $ savedstatus = $status
1741 $ teststatus = f$extract(9,1,savedstatus)
1742 $ DEASSIGN SYS$OUTPUT
1743 $ DEASSIGN SYS$ERROR
1744 $ if (teststatus.nes."1")
1746 $ perl_d_atolf="undef"
1748 $ perl_d_atolf="define"
1751 $ WRITE_RESULT "d_atolf is ''perl_d_atolf'"
1757 $ WS "#include <stdlib.h>
1759 $ WS "#include <stdio.h>
1760 $ WS "#include <unistd.h>
1763 $ WS "access("foo", F_OK);
1767 $ DEFINE SYS$ERROR _NLA0:
1768 $ DEFINE SYS$OUTPUT _NLA0:
1769 $ on error then continue
1770 $ on warning then continue
1772 $ savedstatus = $status
1773 $ teststatus = f$extract(9,1,savedstatus)
1774 $ if (teststatus.nes."1")
1776 $ perl_d_access="undef"
1777 $ DEASSIGN SYS$OUTPUT
1778 $ DEASSIGN SYS$ERROR
1780 $ If (Needs_Opt.eqs."Yes")
1782 $ link temp.obj,temp.opt/opt
1786 $ savedstatus = $status
1787 $ teststatus = f$extract(9,1,savedstatus)
1788 $ DEASSIGN SYS$OUTPUT
1789 $ DEASSIGN SYS$ERROR
1790 $ if (teststatus.nes."1")
1792 $ perl_d_access="undef"
1794 $ perl_d_access="define"
1797 $ WRITE_RESULT "d_access is ''perl_d_access'"
1803 $ WS "#include <stdlib.h>
1805 $ WS "#include <stdio.h>
1806 $ WS "#include <strings.h>
1810 $ WS "bzero(foo, 10);
1814 $ DEFINE SYS$ERROR _NLA0:
1815 $ DEFINE SYS$OUTPUT _NLA0:
1816 $ on error then continue
1817 $ on warning then continue
1819 $ savedstatus = $status
1820 $ teststatus = f$extract(9,1,savedstatus)
1821 $ if (teststatus.nes."1")
1823 $ perl_d_bzero="undef"
1824 $ DEASSIGN SYS$OUTPUT
1825 $ DEASSIGN SYS$ERROR
1827 $ If (Needs_Opt.eqs."Yes")
1829 $ link temp.obj,temp.opt/opt
1833 $ savedstatus = $status
1834 $ teststatus = f$extract(9,1,savedstatus)
1835 $ DEASSIGN SYS$OUTPUT
1836 $ DEASSIGN SYS$ERROR
1837 $ if (teststatus.nes."1")
1839 $ perl_d_bzero="undef"
1841 $ perl_d_bzero="define"
1844 $ WRITE_RESULT "d_bzero is ''perl_d_bzero'"
1850 $ WS "#include <stdlib.h>
1852 $ WS "#include <stdio.h>
1853 $ WS "#include <strings.h>
1856 $ WS "char foo[10], bar[10];
1857 $ WS "bcopy(""foo"", bar, 3);
1861 $ DEFINE SYS$ERROR _NLA0:
1862 $ DEFINE SYS$OUTPUT _NLA0:
1863 $ on error then continue
1864 $ on warning then continue
1866 $ savedstatus = $status
1867 $ teststatus = f$extract(9,1,savedstatus)
1868 $ if (teststatus.nes."1")
1870 $ perl_d_bcopy="undef"
1871 $ DEASSIGN SYS$OUTPUT
1872 $ DEASSIGN SYS$ERROR
1874 $ If (Needs_Opt.eqs."Yes")
1876 $ link temp.obj,temp.opt/opt
1880 $ savedstatus = $status
1881 $ teststatus = f$extract(9,1,savedstatus)
1882 $ DEASSIGN SYS$OUTPUT
1883 $ DEASSIGN SYS$ERROR
1884 $ if (teststatus.nes."1")
1886 $ perl_d_bcopy="undef"
1888 $ perl_d_bcopy="define"
1891 $ WRITE_RESULT "d_bcopy is ''perl_d_bcopy'"
1893 $! Check for mkstemp
1897 $ WS "#include <stdlib.h>
1899 $ WS "#include <stdio.h>
1902 $ WS "mkstemp(""foo"");
1906 $ DEFINE SYS$ERROR _NLA0:
1907 $ DEFINE SYS$OUTPUT _NLA0:
1908 $ on error then continue
1909 $ on warning then continue
1911 $ If (Needs_Opt.eqs."Yes")
1913 $ link temp.obj,temp.opt/opt
1917 $ savedstatus = $status
1918 $ teststatus = f$extract(9,1,savedstatus)
1919 $ DEASSIGN SYS$OUTPUT
1920 $ DEASSIGN SYS$ERROR
1921 $ if (teststatus.nes."1")
1923 $ perl_d_mkstemp="undef"
1925 $ perl_d_mkstemp="define"
1927 $ WRITE_RESULT "d_mkstemp is ''perl_d_mkstemp'"
1929 $! Check for setvbuf
1933 $ WS "#include <stdlib.h>
1935 $ WS "#include <stdio.h>
1939 $ WS "char Buffer[99];
1940 $ WS "foo = fopen(""foo"", ""r"");
1941 $ WS "setvbuf(foo, Buffer, 0, 0);
1945 $ DEFINE SYS$ERROR _NLA0:
1946 $ DEFINE SYS$OUTPUT _NLA0:
1947 $ on error then continue
1948 $ on warning then continue
1950 $ If (Needs_Opt.eqs."Yes")
1952 $ link temp.obj,temp.opt/opt
1956 $ teststatus = f$extract(9,1,$status)
1957 $ DEASSIGN SYS$OUTPUT
1958 $ DEASSIGN SYS$ERROR
1959 $ if (teststatus.nes."1")
1961 $ perl_d_setvbuf="undef"
1963 $ perl_d_setvbuf="define"
1965 $ WRITE_RESULT "d_setvbuf is ''perl_d_setvbuf'"
1971 $ WS "#include <stdlib.h>
1973 $ WS "#include <stdio.h>
1976 $ WS "setenv(""FOO"", ""BAR"", 0);
1980 $ DEFINE SYS$ERROR _NLA0:
1981 $ DEFINE SYS$OUTPUT _NLA0:
1982 $ on error then continue
1983 $ on warning then continue
1985 $ If (Needs_Opt.eqs."Yes")
1987 $ link temp,temp/opt
1991 $ teststatus = f$extract(9,1,$status)
1992 $ DEASSIGN SYS$OUTPUT
1993 $ DEASSIGN SYS$ERROR
1994 $ if (teststatus.nes."1")
1996 $ perl_d_setenv="undef"
1998 $ perl_d_setenv="define"
2000 $ WRITE_RESULT "d_setenv is ''perl_d_setenv'"
2002 $! Check for <netinet/in.h>
2004 $ if ("''Has_Dec_C_Sockets'".eqs."T").or.("''Has_Socketshr'".eqs."T")
2008 $ WS "#include <stdlib.h>
2010 $ WS "#include <stdio.h>
2011 $ if ("''Has_Socketshr'".eqs."T")
2013 $ WS "#include <socketshr.h>"
2015 $ WS "#include <netdb.h>
2017 $ WS "#include <netinet/in.h>"
2023 $ DEFINE SYS$ERROR _NLA0:
2024 $ DEFINE SYS$OUTPUT _NLA0:
2025 $ on error then continue
2026 $ on warning then continue
2028 $ If (Needs_Opt.eqs."Yes")
2030 $ link temp.obj,temp.opt/opt
2034 $ teststatus = f$extract(9,1,$status)
2035 $ DEASSIGN SYS$OUTPUT
2036 $ DEASSIGN SYS$ERROR
2037 $ if (teststatus.nes."1")
2039 $ perl_i_niin="undef"
2041 $ perl_i_niin="define"
2044 $ perl_i_niin="undef"
2046 $ WRITE_RESULT "i_niin is ''perl_i_niin'"
2048 $! Check for <netinet/tcp.h>
2050 $ if ("''Has_Dec_C_Sockets'".eqs."T").or.("''Has_Socketshr'".eqs."T")
2054 $ WS "#include <stdlib.h>
2056 $ WS "#include <stdio.h>
2057 $ if ("''Has_Socketshr'".eqs."T")
2059 $ WS "#include <socketshr.h>"
2061 $ WS "#include <netdb.h>
2063 $ WS "#include <netinet/tcp.h>"
2069 $ DEFINE SYS$ERROR _NLA0:
2070 $ DEFINE SYS$OUTPUT _NLA0:
2071 $ on error then continue
2072 $ on warning then continue
2074 $ If (Needs_Opt.eqs."Yes")
2076 $ link temp.obj,temp.opt/opt
2080 $ teststatus = f$extract(9,1,$status)
2081 $ DEASSIGN SYS$OUTPUT
2082 $ DEASSIGN SYS$ERROR
2083 $ if (teststatus.nes."1")
2085 $ perl_i_netinettcp="undef"
2087 $ perl_i_netinettcp="define"
2090 $ perl_i_netinettcp="undef"
2092 $ WRITE_RESULT "i_netinettcp is ''perl_i_netinettcp'"
2094 $! Check for endhostent
2096 $ if ("''Has_Dec_C_Sockets'".eqs."T").or.("''Has_Socketshr'".eqs."T")
2100 $ WS "#include <stdlib.h>
2102 $ WS "#include <stdio.h>
2103 $ if ("''Has_Socketshr'".eqs."T")
2105 $ WS "#include <socketshr.h>"
2107 $ WS "#include <netdb.h>
2115 $ DEFINE SYS$ERROR _NLA0:
2116 $ DEFINE SYS$OUTPUT _NLA0:
2117 $ on error then continue
2118 $ on warning then continue
2120 $ If (Needs_Opt.eqs."Yes")
2122 $ link temp.obj,temp.opt/opt
2126 $ teststatus = f$extract(9,1,$status)
2127 $ DEASSIGN SYS$OUTPUT
2128 $ DEASSIGN SYS$ERROR
2129 $ if (teststatus.nes."1")
2131 $ perl_d_endhent="undef"
2133 $ perl_d_endhent="define"
2136 $ perl_d_endhent="undef"
2138 $ WRITE_RESULT "d_endhent is ''perl_d_endhent'"
2140 $! Check for endnetent
2142 $ if ("''Has_Dec_C_Sockets'".eqs."T").or.("''Has_Socketshr'".eqs."T")
2146 $ WS "#include <stdlib.h>
2148 $ WS "#include <stdio.h>
2149 $ if ("''Has_Socketshr'".eqs."T")
2151 $ WS "#include <socketshr.h>"
2153 $ WS "#include <netdb.h>
2161 $ DEFINE SYS$ERROR _NLA0:
2162 $ DEFINE SYS$OUTPUT _NLA0:
2163 $ on error then continue
2164 $ on warning then continue
2166 $ If (Needs_Opt.eqs."Yes")
2168 $ link temp.obj,temp.opt/opt
2172 $ teststatus = f$extract(9,1,$status)
2173 $ DEASSIGN SYS$OUTPUT
2174 $ DEASSIGN SYS$ERROR
2175 $ if (teststatus.nes."1")
2177 $ perl_d_endnent="undef"
2179 $ perl_d_endnent="define"
2182 $ perl_d_endnent="undef"
2184 $ WRITE_RESULT "d_endnent is ''perl_d_endnent'"
2186 $! Check for endprotoent
2188 $ if ("''Has_Dec_C_Sockets'".eqs."T").or.("''Has_Socketshr'".eqs."T")
2192 $ WS "#include <stdlib.h>
2194 $ WS "#include <stdio.h>
2195 $ if ("''Has_Socketshr'".eqs."T")
2197 $ WS "#include <socketshr.h>"
2199 $ WS "#include <netdb.h>
2203 $ WS "endprotoent();
2207 $ DEFINE SYS$ERROR _NLA0:
2208 $ DEFINE SYS$OUTPUT _NLA0:
2209 $ on error then continue
2210 $ on warning then continue
2212 $ If (Needs_Opt.eqs."Yes")
2214 $ link temp.obj,temp.opt/opt
2218 $ teststatus = f$extract(9,1,$status)
2219 $ DEASSIGN SYS$OUTPUT
2220 $ DEASSIGN SYS$ERROR
2221 $ if (teststatus.nes."1")
2223 $ perl_d_endpent="undef"
2225 $ perl_d_endpent="define"
2228 $ perl_d_endpent="undef"
2230 $ WRITE_RESULT "d_endpent is ''perl_d_endpent'"
2232 $! Check for endservent
2234 $ if ("''Has_Dec_C_Sockets'".eqs."T").or.("''Has_Socketshr'".eqs."T")
2238 $ WS "#include <stdlib.h>
2240 $ WS "#include <stdio.h>
2241 $ if ("''Has_Socketshr'".eqs."T")
2243 $ WS "#include <socketshr.h>"
2245 $ WS "#include <netdb.h>
2253 $ DEFINE SYS$ERROR _NLA0:
2254 $ DEFINE SYS$OUTPUT _NLA0:
2255 $ on error then continue
2256 $ on warning then continue
2258 $ If (Needs_Opt.eqs."Yes")
2260 $ link temp.obj,temp.opt/opt
2264 $ teststatus = f$extract(9,1,$status)
2265 $ DEASSIGN SYS$OUTPUT
2266 $ DEASSIGN SYS$ERROR
2267 $ if (teststatus.nes."1")
2269 $ perl_d_endsent="undef"
2271 $ perl_d_endsent="define"
2274 $ perl_d_endsent="undef"
2276 $ WRITE_RESULT "d_endsent is ''perl_d_endsent'"
2278 $! Check for sethostent
2280 $ if ("''Has_Dec_C_Sockets'".eqs."T").or.("''Has_Socketshr'".eqs."T")
2284 $ WS "#include <stdlib.h>
2286 $ WS "#include <stdio.h>
2287 $ if ("''Has_Socketshr'".eqs."T")
2289 $ WS "#include <socketshr.h>"
2291 $ WS "#include <netdb.h>
2295 $ WS "sethostent(1);
2299 $ DEFINE SYS$ERROR _NLA0:
2300 $ DEFINE SYS$OUTPUT _NLA0:
2301 $ on error then continue
2302 $ on warning then continue
2304 $ If (Needs_Opt.eqs."Yes")
2306 $ link temp.obj,temp.opt/opt
2310 $ teststatus = f$extract(9,1,$status)
2311 $ DEASSIGN SYS$OUTPUT
2312 $ DEASSIGN SYS$ERROR
2313 $ if (teststatus.nes."1")
2315 $ perl_d_sethent="undef"
2317 $ perl_d_sethent="define"
2320 $ perl_d_sethent="undef"
2322 $ WRITE_RESULT "d_sethent is ''perl_d_sethent'"
2324 $! Check for setnetent
2326 $ if ("''Has_Dec_C_Sockets'".eqs."T").or.("''Has_Socketshr'".eqs."T")
2330 $ WS "#include <stdlib.h>
2332 $ WS "#include <stdio.h>
2333 $ if ("''Has_Socketshr'".eqs."T")
2335 $ WS "#include <socketshr.h>"
2337 $ WS "#include <netdb.h>
2345 $ DEFINE SYS$ERROR _NLA0:
2346 $ DEFINE SYS$OUTPUT _NLA0:
2347 $ on error then continue
2348 $ on warning then continue
2350 $ If (Needs_Opt.eqs."Yes")
2352 $ link temp.obj,temp.opt/opt
2356 $ teststatus = f$extract(9,1,$status)
2357 $ DEASSIGN SYS$OUTPUT
2358 $ DEASSIGN SYS$ERROR
2359 $ if (teststatus.nes."1")
2361 $ perl_d_setnent="undef"
2363 $ perl_d_setnent="define"
2366 $ perl_d_setnent="undef"
2368 $ WRITE_RESULT "d_setnent is ''perl_d_setnent'"
2370 $! Check for setprotoent
2372 $ if ("''Has_Dec_C_Sockets'".eqs."T").or.("''Has_Socketshr'".eqs."T")
2376 $ WS "#include <stdlib.h>
2378 $ WS "#include <stdio.h>
2379 $ if ("''Has_Socketshr'".eqs."T")
2381 $ WS "#include <socketshr.h>"
2383 $ WS "#include <netdb.h>
2387 $ WS "setprotoent(1);
2391 $ DEFINE SYS$ERROR _NLA0:
2392 $ DEFINE SYS$OUTPUT _NLA0:
2393 $ on error then continue
2394 $ on warning then continue
2396 $ If (Needs_Opt.eqs."Yes")
2398 $ link temp.obj,temp.opt/opt
2402 $ teststatus = f$extract(9,1,$status)
2403 $ DEASSIGN SYS$OUTPUT
2404 $ DEASSIGN SYS$ERROR
2405 $ if (teststatus.nes."1")
2407 $ perl_d_setpent="undef"
2409 $ perl_d_setpent="define"
2412 $ perl_d_setpent="undef"
2414 $ WRITE_RESULT "d_setpent is ''perl_d_setpent'"
2416 $! Check for setservent
2418 $ if ("''Has_Dec_C_Sockets'".eqs."T").or.("''Has_Socketshr'".eqs."T")
2422 $ WS "#include <stdlib.h>
2424 $ WS "#include <stdio.h>
2425 $ if ("''Has_Socketshr'".eqs."T")
2427 $ WS "#include <socketshr.h>"
2429 $ WS "#include <netdb.h>
2433 $ WS "setservent(1);
2437 $ DEFINE SYS$ERROR _NLA0:
2438 $ DEFINE SYS$OUTPUT _NLA0:
2439 $ on error then continue
2440 $ on warning then continue
2442 $ If (Needs_Opt.eqs."Yes")
2444 $ link temp.obj,temp.opt/opt
2448 $ teststatus = f$extract(9,1,$status)
2449 $ DEASSIGN SYS$OUTPUT
2450 $ DEASSIGN SYS$ERROR
2451 $ if (teststatus.nes."1")
2453 $ perl_d_setsent="undef"
2455 $ perl_d_setsent="define"
2458 $ perl_d_setsent="undef"
2460 $ WRITE_RESULT "d_setsent is ''perl_d_setsent'"
2462 $! Check for gethostent
2464 $ if ("''Has_Dec_C_Sockets'".eqs."T").or.("''Has_Socketshr'".eqs."T")
2468 $ WS "#include <stdlib.h>
2470 $ WS "#include <stdio.h>
2471 $ if ("''Has_Socketshr'".eqs."T")
2473 $ WS "#include <socketshr.h>"
2475 $ WS "#include <netdb.h>
2483 $ DEFINE SYS$ERROR _NLA0:
2484 $ DEFINE SYS$OUTPUT _NLA0:
2485 $ on error then continue
2486 $ on warning then continue
2488 $ If (Needs_Opt.eqs."Yes")
2490 $ link temp.obj,temp.opt/opt
2494 $ teststatus = f$extract(9,1,$status)
2495 $ DEASSIGN SYS$OUTPUT
2496 $ DEASSIGN SYS$ERROR
2497 $ if (teststatus.nes."1")
2499 $ perl_d_gethent="undef"
2501 $ perl_d_gethent="define"
2504 $ perl_d_gethent="undef"
2506 $ WRITE_RESULT "d_gethent is ''perl_d_gethent'"
2508 $! Check for getnetent
2510 $ if ("''Has_Dec_C_Sockets'".eqs."T").or.("''Has_Socketshr'".eqs."T")
2514 $ WS "#include <stdlib.h>
2516 $ WS "#include <stdio.h>
2517 $ if ("''Has_Socketshr'".eqs."T")
2519 $ WS "#include <socketshr.h>"
2521 $ WS "#include <netdb.h>
2529 $ DEFINE SYS$ERROR _NLA0:
2530 $ DEFINE SYS$OUTPUT _NLA0:
2531 $ on error then continue
2532 $ on warning then continue
2534 $ If (Needs_Opt.eqs."Yes")
2536 $ link temp.obj,temp.opt/opt
2540 $ teststatus = f$extract(9,1,$status)
2541 $ DEASSIGN SYS$OUTPUT
2542 $ DEASSIGN SYS$ERROR
2543 $ if (teststatus.nes."1")
2545 $ perl_d_getnent="undef"
2547 $ perl_d_getnent="define"
2550 $ perl_d_getnent="undef"
2552 $ WRITE_RESULT "d_getnent is ''perl_d_getnent'"
2554 $! Check for getprotoent
2556 $ if ("''Has_Dec_C_Sockets'".eqs."T").or.("''Has_Socketshr'".eqs."T")
2560 $ WS "#include <stdlib.h>
2562 $ WS "#include <stdio.h>
2563 $ if ("''Has_Socketshr'".eqs."T")
2565 $ WS "#include <socketshr.h>"
2567 $ WS "#include <netdb.h>
2571 $ WS "getprotoent();
2575 $ DEFINE SYS$ERROR _NLA0:
2576 $ DEFINE SYS$OUTPUT _NLA0:
2577 $ on error then continue
2578 $ on warning then continue
2580 $ If (Needs_Opt.eqs."Yes")
2582 $ link temp.obj,temp.opt/opt
2586 $ teststatus = f$extract(9,1,$status)
2587 $ DEASSIGN SYS$OUTPUT
2588 $ DEASSIGN SYS$ERROR
2589 $ if (teststatus.nes."1")
2591 $ perl_d_getpent="undef"
2593 $ perl_d_getpent="define"
2596 $ perl_d_getpent="undef"
2598 $ WRITE_RESULT "d_getpent is ''perl_d_getpent'"
2600 $! Check for getservent
2602 $ if ("''Has_Dec_C_Sockets'".eqs."T").or.("''Has_Socketshr'".eqs."T")
2606 $ WS "#include <stdlib.h>
2608 $ WS "#include <stdio.h>
2609 $ if ("''Has_Socketshr'".eqs."T")
2611 $ WS "#include <socketshr.h>"
2613 $ WS "#include <netdb.h>
2621 $ DEFINE SYS$ERROR _NLA0:
2622 $ DEFINE SYS$OUTPUT _NLA0:
2623 $ on error then continue
2624 $ on warning then continue
2626 $ If (Needs_Opt.eqs."Yes")
2628 $ link temp.obj,temp.opt/opt
2632 $ teststatus = f$extract(9,1,$status)
2633 $ DEASSIGN SYS$OUTPUT
2634 $ DEASSIGN SYS$ERROR
2635 $ if (teststatus.nes."1")
2637 $ perl_d_getsent="undef"
2639 $ perl_d_getsent="define"
2642 $ perl_d_getsent="undef"
2644 $ WRITE_RESULT "d_getsent is ''perl_d_getsent'"
2646 $! Check for pthread_yield
2648 $ if ("''use_threads'".eqs."T")
2652 $ WS "#include <stdlib.h>
2654 $ WS "#include <pthread.h>
2655 $ WS "#include <stdio.h>
2658 $ WS "pthread_yield();
2662 $ DEFINE SYS$ERROR _NLA0:
2663 $ DEFINE SYS$OUTPUT _NLA0:
2664 $ on error then continue
2665 $ on warning then continue
2667 $ teststatus = f$extract(9,1,$status)
2668 $ DEASSIGN SYS$OUTPUT
2669 $ DEASSIGN SYS$ERROR
2670 $ if (teststatus.nes."1")
2672 $ perl_d_pthread_yield="undef"
2674 $ perl_d_pthread_yield="define"
2677 $ perl_d_pthread_yield="undef"
2679 $ WRITE_RESULT "d_pthread_yield is ''perl_d_pthread_yield'"
2681 $! Check for sched_yield
2683 $ if ("''use_threads'".eqs."T")
2687 $ WS "#include <stdlib.h>
2689 $ WS "#include <pthread.h>
2690 $ WS "#include <stdio.h>
2693 $ WS "sched_yield();
2697 $ DEFINE SYS$ERROR _NLA0:
2698 $ DEFINE SYS$OUTPUT _NLA0:
2699 $ on error then continue
2700 $ on warning then continue
2702 $ teststatus = f$extract(9,1,$status)
2703 $ DEASSIGN SYS$OUTPUT
2704 $ DEASSIGN SYS$ERROR
2705 $ if (teststatus.nes."1")
2707 $ perl_d_sched_yield="undef"
2708 $ perl_sched_yield = " "
2710 $ perl_d_sched_yield="define"
2711 $ perl_sched_yield = "sched_yield"
2714 $ perl_d_sched_yield="undef"
2715 $ perl_sched_yield = " "
2717 $ WRITE_RESULT "d_sched_yield is ''perl_d_sched_yield'"
2718 $ WRITE_RESULT "sched_yield is ''perl_sched_yield'"
2720 $! Check for generic pointer size
2724 $ WS "#include <stdlib.h>
2726 $ WS "#include <stdio.h>
2730 $ WS "foo = sizeof(char *);
2731 $ WS "printf(""%d\n"", foo);
2735 $! copy temp.c sys$output
2737 $ DEFINE SYS$ERROR _NLA0:
2738 $ DEFINE SYS$OUTPUT _NLA0:
2739 $ ON ERROR THEN CONTINUE
2740 $ ON WARNING THEN CONTINUE
2742 $ If (Needs_Opt.eqs."Yes")
2744 $ link temp.obj,temp.opt/opt
2748 $ OPEN/WRITE TEMPOUT [-.uu]tempout.lis
2749 $ DEASSIGN SYS$OUTPUT
2750 $ DEASSIGN SYS$ERROR
2751 $ DEFINE SYS$ERROR TEMPOUT
2752 $ DEFINE SYS$OUTPUT TEMPOUT
2755 $ DEASSIGN SYS$OUTPUT
2756 $ DEASSIGN SYS$ERROR
2757 $ OPEN/READ TEMPOUT [-.uu]tempout.lis
2762 $ WRITE_RESULT "ptrsize is ''perl_ptrsize'"
2765 $! Check rand48 and its ilk
2769 $ WS "#include <stdlib.h>
2771 $ WS "#include <stdio.h>
2774 $ WS "srand48(12L);"
2778 $! copy temp.c sys$output
2780 $ DEFINE SYS$ERROR _NLA0:
2781 $ DEFINE SYS$OUTPUT _NLA0:
2782 $ ON ERROR THEN CONTINUE
2783 $ ON WARNING THEN CONTINUE
2785 $ If (Needs_Opt.eqs."Yes")
2787 $ link temp,temp.opt/opt
2791 $ teststatus = f$extract(9,1,$status)
2792 $ DEASSIGN SYS$OUTPUT
2793 $ DEASSIGN SYS$ERROR
2794 $ if (teststatus.nes."1")
2796 $ perl_drand01="random()"
2797 $ perl_randseedtype = "unsigned"
2798 $ perl_seedfunc = "srandom"
2802 $ WS "#include <stdlib.h>
2804 $ WS "#include <stdio.h>
2811 $! copy temp.c sys$output
2813 $ DEFINE SYS$ERROR _NLA0:
2814 $ DEFINE SYS$OUTPUT _NLA0:
2815 $ ON ERROR THEN CONTINUE
2816 $ ON WARNING THEN CONTINUE
2818 $ If (Needs_Opt.eqs."Yes")
2820 $ link temp,temp.opt/opt
2824 $ teststatus = f$extract(9,1,$status)
2825 $ DEASSIGN SYS$OUTPUT
2826 $ DEASSIGN SYS$ERROR
2827 $ if (teststatus.nes."1")
2829 $ perl_drand01="(((float)rand())/((float)RAND_MAX))"
2830 $ perl_randseedtype = "unsigned"
2831 $ perl_seedfunc = "srand"
2833 $ WRITE_RESULT "drand01 is ''perl_drand01'"
2836 $! Done with compiler checks. Clean up.
2837 $ if f$search("temp.c").nes."" then DELETE/NOLOG temp.c;*
2838 $ if f$search("temp.obj").nes."" then DELETE/NOLOG temp.obj;*
2839 $ if f$search("temp.exe").nes."" then DELETE/NOLOG temp.exe;*
2840 $ if f$search("temp.opt").nes."" then DELETE/NOLOG Temp.opt;*
2843 $! Some that are compiler or VMS version sensitive
2846 $ IF "''Using_Gnu_C'".EQS."Yes"
2848 $ perl_d_attribut="define"
2849 $ perl_vms_cc_type="gcc"
2851 $ perl_d_attribut="undef"
2854 $! Dec C >= 5.2 and VMS ver >= 7.0
2855 $ IF ("''Using_Dec_C'".EQS."Yes").AND.(F$INTEGER(Dec_C_Version).GE.50200000).AND.("''VMS_VER'".GES."7.0")
2857 $ perl_d_bcmp="define"
2858 $ perl_d_gettimeod="define"
2859 $ perl_d_uname="define"
2860 $ perl_d_sigaction="define"
2861 $ perl_d_truncate="define"
2862 $ perl_d_wait4="define"
2863 $ perl_d_index="define"
2864 $ perl_pidtype="pid_t"
2865 $ 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"
2866 $ psnwc1="""ZERO"",""HUP"",""INT"",""QUIT"",""ILL"",""TRAP"",""IOT"",""EMT"",""FPE"",""KILL"",""BUS"",""SEGV"",""SYS"","
2867 $ psnwc2="""PIPE"",""ALRM"",""TERM"",""ABRT"",""USR1"",""USR2"",""SPARE18"",""SPARE19"",""CHLD"",""CONT"",""STOP"",""TSTP"","
2868 $ psnwc3="""TTIN"",""TTOU"",""DEBUG"",""SPARE27"",""SPARE28"",""SPARE29"",""SPARE30"",""SPARE31"",""SPARE32"",""RTMIN"",""RTMAX"",0"
2869 $perl_sig_name_with_commas = psnwc1 + psnwc2 + psnwc3
2870 $ 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"
2871 $ 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"
2872 $ perl_sig_num_with_commas=perl_sig_num_init
2873 $ perl_uidtype="uid_t"
2874 $ perl_d_pathconf="define"
2875 $ perl_d_fpathconf="define"
2876 $ perl_d_sysconf="define"
2877 $ perl_d_sigsetjmp="define"
2879 $ perl_pidtype="unsigned int"
2880 $ perl_d_gettimeod="undef"
2881 $ perl_d_bcmp="undef"
2882 $ perl_d_uname="undef"
2883 $ perl_d_sigaction="undef"
2884 $ perl_d_truncate="undef"
2885 $ perl_d_wait4="undef"
2886 $ perl_d_index="undef"
2887 $ perl_sig_name="ZERO HUP INT QUIT ILL TRAP IOT EMT FPE KILL BUS SEGV SYS PIPE ALRM TERM ABRT USR1 USR2"",0"
2888 $ psnwc1="""ZERO"",""HUP"",""INT"",""QUIT"",""ILL"",""TRAP"",""IOT"",""EMT"",""FPE"",""KILL"",""BUS"",""SEGV"",""SYS"","
2889 $ psnwc2="""PIPE"",""ALRM"",""TERM"",""ABRT"",""USR1"",""USR2"",0"
2890 $ perl_sig_name_with_commas = psnwc1 + psnwc2
2891 $ perl_sig_num="0 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 6 16 17"",0"
2892 $ perl_sig_num_init="0,1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,6,16,17,0"
2893 $ perl_sig_num_with_commas=perl_sig_num_init
2894 $ perl_uidtype="unsigned int"
2895 $ perl_d_pathconf="undef"
2896 $ perl_d_fpathconf="undef"
2897 $ perl_d_sysconf="undef"
2898 $ perl_d_sigsetjmp="undef"
2902 $ IF ("''Using_Dec_C'".EQS."Yes")
2904 $ perl_d_mbstowcs="define"
2905 $ perl_d_mbtowc="define"
2906 $ perl_d_stdiobase="define"
2907 $ perl_d_stdio_ptr_lval="define"
2908 $ perl_d_stdio_cnt_lval="define"
2909 $ perl_d_stdstdio="define"
2910 $ perl_d_wcstombs="define"
2911 $ perl_d_mblen="define"
2912 $ perl_d_mktime="define"
2913 $ perl_d_strcoll="define"
2914 $ perl_d_strxfrm="define"
2915 $ perl_d_wctomb="define"
2916 $ perl_i_locale="define"
2917 $ perl_d_locconv="define"
2918 $ perl_d_setlocale="define"
2919 $ perl_vms_cc_type="decc"
2921 $ perl_d_mbstowcs="undef"
2922 $ perl_d_mbtowc="undef"
2923 $ perl_d_stdiobase="undef"
2924 $ perl_d_stdio_ptr_lval="undef"
2925 $ perl_d_stdio_cnt_lval="undef"
2926 $ perl_d_stdstdio="undef"
2927 $ perl_d_wcstombs="undef"
2928 $ perl_d_mblen="undef"
2929 $ perl_d_mktime="undef"
2930 $ perl_d_strcoll="undef"
2931 $ perl_d_strxfrm="undef"
2932 $ perl_d_wctomb="undef"
2933 $ perl_i_locale="undef"
2934 $ perl_d_locconv="undef"
2935 $ perl_d_setlocale="undef"
2939 $ if ("''Using_Vax_C'".EQS."Yes")
2941 $ perl_vms_cc_type="vaxc"
2946 $ if ("''Has_Socketshr'".EQS."T").OR.("''Has_Dec_C_Sockets'".EQS."T")
2948 $ perl_d_vms_do_sockets="define"
2949 $ perl_d_htonl="define"
2950 $ perl_d_socket="define"
2951 $ perl_d_select="define"
2952 $ perl_netdb_host_type="char *"
2953 $ perl_netdb_hlen_type="int"
2954 $ perl_netdb_name_type="char *"
2955 $ perl_netdb_net_type="long"
2956 $ perl_d_gethbyaddr="define"
2957 $ perl_d_gethbyname="define"
2958 $ perl_d_getnbyaddr="define"
2959 $ perl_d_getnbyname="define"
2960 $ perl_d_getpbynumber="define"
2961 $ perl_d_getpbyname="define"
2962 $ perl_d_getsbyport="define"
2963 $ perl_d_getsbyname="define"
2964 $ perl_d_gethostprotos="define"
2965 $ perl_d_getnetprotos="define"
2966 $ perl_d_getprotoprotos="define"
2967 $ perl_d_getservprotos="define"
2969 $ perl_d_vms_do_sockets="undef"
2970 $ perl_d_htonl="undef"
2971 $ perl_d_socket="undef"
2972 $ perl_d_select="undef"
2973 $ perl_netdb_host_type="char *"
2974 $ perl_netdb_hlen_type="int"
2975 $ perl_netdb_name_type="char *"
2976 $ perl_netdb_net_type="long"
2977 $ perl_d_gethbyaddr="undef"
2978 $ perl_d_gethbyname="undef"
2979 $ perl_d_getnbyaddr="undef"
2980 $ perl_d_getnbyname="undef"
2981 $ perl_d_getpbynumber="undef"
2982 $ perl_d_getpbyname="undef"
2983 $ perl_d_getsbyport="undef"
2984 $ perl_d_getsbyname="undef"
2985 $ perl_d_gethostprotos="undef"
2986 $ perl_d_getnetprotos="undef"
2987 $ perl_d_getprotoprotos="undef"
2988 $ perl_d_getservprotos="undef"
2991 $ if ("''use_threads'".eqs."T")
2993 $ perl_usethreads="define"
2994 $ perl_d_pthreads_created_joinable="define"
2995 $ if ("''VMS_VER'".ges."7.0")
2997 $ perl_d_oldpthreads="undef"
2999 $ perl_d_oldpthreads="define"
3002 $ perl_d_oldpthreads="undef"
3003 $ perl_usethreads="undef"
3005 $ perl_d_pthreads_created_joinable="undef"
3009 $! Finally the composite ones. All config
3010 $ perl_installarchlib="''perl_prefix':[lib.''perl_arch'.''localperlver']"
3011 $ perl_installsitearch="''perl_prefix':[lib.site_perl.''perl_arch']"
3012 $ perl_myhostname="''myhostname'"
3013 $ perl_mydomain="''mydomain'"
3014 $ perl_perladmin="''perladmin'"
3015 $ perl_cf_email="''cf_email'"
3016 $ perl_myuname:="VMS ''myname' ''f$edit(perl_osvers, "TRIM")' ''f$edit(hwname, "TRIM")'"
3017 $ perl_archlibexp="''perl_prefix':[lib.''perl_arch'.''localperlver']"
3018 $ perl_archlib="''perl_prefix':[lib.''perl_arch'.''lovalperlver']"
3019 $ perl_oldarchlibexp="''perl_prefix':[lib.''perl_arch']"
3020 $ perl_oldarchlib="''perl_prefix':[lib.''perl_arch']"
3021 $ perl_sitearchexp="''perl_prefix':[lib.site_perl.''perl_arch']"
3022 $ perl_sitearch="''perl_prefix':[lib.site_perl.''perl_arch']"
3023 $ if "''Using_Dec_C'" .eqs. "Yes"
3025 $ perl_ccflags="/Include=[]/Standard=Relaxed_ANSI/Prefix=All/Obj=''perl_obj_ext'/NoList''cc_flags'"
3027 $ IF "''Using_Vax_C'" .eqs. "Yes"
3029 $ perl_ccflags="/Include=[]/Obj=''perl_obj_ext'/NoList''cc_flags'"
3032 $ if use_vmsdebug_perl .eqs. "Y"
3034 $ perl_optimize="/Debug/NoOpt"
3035 $ perl_dbgprefix = "DBG"
3038 $ perl_dbgprefix = ""
3041 $! Finally clean off any leading zeros from the patchlevel or subversion
3042 $ perl_patchlevel = perl_patchlevel + 0
3043 $ perl_subversion = perl_subversion + 0
3045 $! Okay, we've got everything configured. Now go write out a config.sh.
3046 $ open/write CONFIGSH [-]config.sh
3047 $ WC := "write CONFIGSH"
3049 $ WC "# This file generated by Configure.COM on a VMS system."
3050 $ WC "# Time: " + perl_cf_time
3052 $ WC "CONFIGDOTSH=true"
3053 $ WC "package='" + perl_package + "'"
3054 $ WC "CONFIG='" + perl_config + "'"
3055 $ WC "cf_time='" + perl_cf_time + "'"
3056 $ WC "cf_by='" + perl_cf_by+ "'"
3057 $ WC "cpp_stuff='" + perl_cpp_stuff + "'"
3058 $ WC "ccdlflags='" + perl_ccdlflags + "'"
3059 $ WC "cccdlflags='" + perl_cccdlflags + "'"
3060 $ WC "mab='" + perl_mab + "'"
3061 $ WC "libpth='" + perl_libpth + "'"
3062 $ WC "ld='" + perl_ld + "'"
3063 $ WC "lddlflags='" + perl_lddlflags + "'"
3064 $ WC "ranlib='" + perl_ranlib + "'"
3065 $ WC "ar='" + perl_ar + "'"
3066 $ WC "eunicefix='" + perl_eunicefix + "'"
3067 $ WC "hint='" + perl_hint +"'"
3068 $ WC "hintfile='" + perl_hintfile + "'"
3069 $ WC "shrplib='" + perl_shrplib + "'"
3070 $ WC "usemymalloc='" + perl_usemymalloc + "'"
3071 $ WC "usevfork='" + perl_usevfork + "'"
3072 $ WC "useposix='false'"
3073 $ WC "spitshell='write sys$output '"
3074 $ WC "dlsrc='dl_vms.c'"
3075 $ WC "binexp='" + perl_binexp + "'"
3076 $ WC "man1ext='" + perl_man1ext + "'"
3077 $ WC "man3ext='" + perl_man3ext + "'"
3078 $ WC "arch='" + perl_arch + "'"
3079 $ WC "archname='" + perl_archname + "'"
3080 $ WC "osvers='" + perl_osvers + "'"
3081 $ WC "prefix='" + perl_prefix + "'"
3082 $ WC "builddir='" + perl_builddir + "'"
3083 $ WC "installbin='" + perl_installbin + "'"
3084 $ WC "installscript='" + perl_installscript + "'"
3085 $ WC "installman1dir='" + perl_installman1dir + "'"
3086 $ WC "installman3dir='" + perl_installman3dir + "'"
3087 $ WC "installprivlib='" + perl_installprivlib + "'"
3088 $ WC "installarchlib='" + perl_installarchlib + "'"
3089 $ WC "installsitelib='" + perl_installsitelib + "'"
3090 $ WC "installsitearch='" + perl_installsitearch + "'"
3091 $ WC "path_sep='" + perl_path_sep + "'"
3092 $ WC "vms_cc_type='" + perl_vms_cc_type + "'"
3093 $ WC "d_attribut='" + perl_d_attribut + "'"
3094 $ WC "cc='" + perl_cc + "'"
3095 $ WC "ccflags='" + perl_ccflags + "'"
3096 $ WC "optimize='" + perl_optimize + "'"
3097 $ WC "dbgprefix='" + perl_dbgprefix + "'"
3098 $ WC "d_vms_do_sockets='" + perl_d_vms_do_sockets + "'"
3099 $ WC "d_socket='" + perl_d_socket + "'"
3100 $ WC "d_sockpair='" + perl_d_sockpair + "'"
3101 $ WC "d_gethent='" + perl_d_gethent + "'"
3102 $ WC "d_getsent='" + perl_d_getsent + "'"
3103 $ WC "d_select='" + perl_d_select + "'"
3104 $ WC "i_niin='" + perl_i_niin + "'"
3105 $ WC "i_netinettcp='" + perl_i_netinettcp + "'"
3106 $ WC "i_neterrno='" + perl_i_neterrno + "'"
3107 $ WC "d_stdstdio='" + perl_d_stdstdio + "'"
3108 $ WC "d_stdio_ptr_lval='" + perl_d_stdio_ptr_lval + "'"
3109 $ WC "d_stdio_cnt_lval='" + perl_d_stdio_cnt_lval + "'"
3110 $ WC "d_stdiobase='" + perl_d_stdiobase + "'"
3111 $ WC "d_locconv='" + perl_d_locconv + "'"
3112 $ WC "d_setlocale='" + perl_d_setlocale + "'"
3113 $ WC "i_locale='" + perl_i_locale + "'"
3114 $ WC "d_mbstowcs='" + perl_d_mbstowcs + "'"
3115 $ WC "d_mbtowc='" + perl_d_mbtowc + "'"
3116 $ WC "d_wcstombs='" + perl_d_wcstombs + "'"
3117 $ WC "d_wctomb='" + perl_d_wctomb + "'"
3118 $ WC "d_mblen='" + perl_d_mblen + "'"
3119 $ WC "d_mktime='" + perl_d_mktime + "'"
3120 $ WC "d_strcoll='" + perl_d_strcoll + "'"
3121 $ WC "d_strxfrm='" + perl_d_strxfrm + "'"
3122 $ WC "ldflags='" + perl_ldflags + "'"
3123 $ WC "dlobj='" + perl_dlobj + "'"
3124 $ WC "obj_ext='" + perl_obj_ext + "'"
3125 $ WC "so='" + perl_so + "'"
3126 $ WC "dlext='" + perl_dlext + "'"
3127 $ WC "exe_ext='" + perl_exe_ext + "'"
3128 $ WC "lib_ext='" + perl_lib_ext + "'"
3129 $ WC "myhostname='" + perl_myhostname + "'"
3130 $ WC "mydomain='" + perl_mydomain + "'"
3131 $ WC "perladmin='" + perl_perladmin + "'"
3132 $ WC "cf_email='" + perl_cf_email + "'"
3133 $ WC "myuname='" + perl_myuname + "'"
3134 $ WC "alignbytes='" + perl_alignbytes + "'"
3135 $ WC "osname='" + perl_osname + "'"
3136 $ WC "d_archlib='" + perl_d_archlib + "'"
3137 $ WC "archlibexp='" + perl_archlibexp + "'"
3138 $ WC "archlib='" + perl_archlib + "'"
3139 $ WC "archname='" + perl_archname + "'"
3140 $ WC "d_bincompat3='" + perl_d_bincompat3 + "'"
3141 $ WC "cppstdin='" + perl_cppstdin + "'"
3142 $ WC "cppminus='" + perl_cppminus + "'"
3143 $ WC "d_bcmp='" + perl_d_bcmp + "'"
3144 $ WC "d_bcopy='" + perl_d_bcopy + "'"
3145 $ WC "d_bzero='" + perl_d_bzero + "'"
3146 $ WC "d_castneg='" + perl_d_castneg + "'"
3147 $ WC "castflags='" + perl_castflags + "'"
3148 $ WC "d_chsize='" + perl_d_chsize + "'"
3149 $ WC "d_const='" + perl_d_const + "'"
3150 $ WC "d_crypt='" + perl_d_crypt + "'"
3151 $ WC "byteorder='" + perl_byteorder + "'"
3152 $ WC "full_csh='" + perl_full_csh + "'"
3153 $ WC "d_csh='" + perl_d_csh + "'"
3154 $ WC "d_dup2='" + perl_d_dup2 + "'"
3155 $ WC "d_fchmod='" + perl_d_fchmod + "'"
3156 $ WC "d_fchown='" + perl_d_fchown + "'"
3157 $ WC "d_fcntl='" + perl_d_fcntl + "'"
3158 $ WC "d_fgetpos='" + perl_d_fgetpos + "'"
3159 $ WC "d_flexfnam='" + perl_d_flexfnam + "'"
3160 $ WC "d_flock='" + perl_d_flock + "'"
3161 $ WC "d_fsetpos='" + perl_d_fsetpos + "'"
3162 $ WC "d_gettimeod='" + perl_d_gettimeod + "'"
3163 $ WC "d_getgrps='" + perl_d_getgrps + "'"
3164 $ WC "d_setgrps='" + perl_d_setgrps + "'"
3165 $ WC "d_uname='" + perl_d_uname + "'"
3166 $ WC "d_getprior='" + perl_d_getprior + "'"
3167 $ WC "d_killpg='" + perl_d_killpg + "'"
3168 $ WC "d_link='" + perl_d_link + "'"
3169 $ WC "d_lstat='" + perl_d_lstat + "'"
3170 $ WC "d_lockf='" + perl_d_lockf + "'"
3171 $ WC "d_memcmp='" + perl_d_memcmp + "'"
3172 $ WC "d_memcpy='" + perl_d_memcpy + "'"
3173 $ WC "d_memmove='" + perl_d_memmove + "'"
3174 $ WC "d_memset='" + perl_d_memset + "'"
3175 $ WC "d_mkdir='" + perl_d_mkdir + "'"
3176 $ WC "d_msg='" + perl_d_msg + "'"
3177 $ WC "d_open3='" + perl_d_open3 + "'"
3178 $ WC "d_poll='" + perl_d_poll + "'"
3179 $ WC "d_readdir='" + perl_d_readdir + "'"
3180 $ WC "d_seekdir='" + perl_d_seekdir + "'"
3181 $ WC "d_telldir='" + perl_d_telldir + "'"
3182 $ WC "d_rewinddir='" + perl_d_rewinddir + "'"
3183 $ WC "d_rename='" + perl_d_rename + "'"
3184 $ WC "d_rmdir='" + perl_d_rmdir + "'"
3185 $ WC "d_sem='" + perl_d_sem + "'"
3186 $ WC "d_setegid='" + perl_d_setegid + "'"
3187 $ WC "d_seteuid='" + perl_d_seteuid + "'"
3188 $ WC "d_setprior='" + perl_d_setprior + "'"
3189 $ WC "d_setregid='" + perl_d_setregid + "'"
3190 $ WC "d_setresgid='" + perl_d_setresgid + "'"
3191 $ WC "d_setreuid='" + perl_d_setreuid + "'"
3192 $ WC "d_setresuid='" + perl_d_setresuid + "'"
3193 $ WC "d_setrgid='" + perl_d_setrgid + "'"
3194 $ WC "d_setruid='" + perl_d_setruid + "'"
3195 $ WC "d_setsid='" + perl_d_setsid + "'"
3196 $ WC "d_shm='" + perl_d_shm + "'"
3197 $ WC "d_shmatprototype='" + perl_d_shmatprototype + "'"
3198 $ WC "d_sigaction='" + perl_d_sigaction + "'"
3199 $ WC "d_statblks='" + perl_d_statblks + "'"
3200 $ WC "stdio_ptr='" + perl_stdio_ptr + "'"
3201 $ WC "stdio_cnt='" + perl_stdio_cnt + "'"
3202 $ WC "stdio_base='" + perl_stdio_base + "'"
3203 $ WC "stdio_bufsiz='" + perl_stdio_bufsiz + "'"
3204 $ WC "d_strctcpy='" + perl_d_strctcpy + "'"
3205 $ WC "d_strerror='" + perl_d_strerror + "'"
3206 $ WC "d_syserrlst='" + perl_d_syserrlst + "'"
3207 $ WC "d_strerrm='" + perl_d_strerrm + "'"
3208 $ WC "d_symlink='" + perl_d_symlink + "'"
3209 $ WC "d_syscall='" + perl_d_syscall + "'"
3210 $ WC "d_system='" + perl_d_system + "'"
3211 $ WC "timetype='" + perl_timetype + "'"
3212 $ WC "d_truncate='" + perl_d_truncate + "'"
3213 $ WC "d_vfork='" + perl_d_vfork + "'"
3214 $ WC "signal_t='" + perl_signal_t + "'"
3215 $ WC "d_volatile='" + perl_d_volatile + "'"
3216 $ WC "d_vprintf='" + perl_d_vprintf + "'"
3217 $ WC "d_charvspr='" + perl_d_charvspr + "'"
3218 $ WC "d_wait4='" + perl_d_wait4 + "'"
3219 $ WC "d_waitpid='" + perl_d_waitpid + "'"
3220 $ WC "i_dirent='" + perl_i_dirent + "'"
3221 $ WC "d_dirnamlen='" + perl_d_dirnamlen + "'"
3222 $ WC "direntrytype='" + perl_direntrytype + "'"
3223 $ WC "i_fcntl='" + perl_i_fcntl + "'"
3224 $ WC "i_grp='" + perl_i_grp + "'"
3225 $ WC "i_limits='" + perl_i_limits + "'"
3226 $ WC "i_memory='" + perl_i_memory + "'"
3227 $ WC "i_ndbm='" + perl_i_ndbm + "'"
3228 $ WC "i_stdarg='" + perl_i_stdarg + "'"
3229 $ WC "i_pwd='" + perl_i_pwd + "'"
3230 $ WC "d_pwquota='" + perl_d_pwquota + "'"
3231 $ WC "d_pwage='" + perl_d_pwage + "'"
3232 $ WC "d_pwchange='" + perl_d_pwchange + "'"
3233 $ WC "d_pwclass='" + perl_d_pwclass + "'"
3234 $ WC "d_pwexpire='" + perl_d_pwexpire + "'"
3235 $ WC "d_pwcomment='" + perl_d_pwcomment + "'"
3236 $ WC "i_stddef='" + perl_i_stddef + "'"
3237 $ WC "i_stdlib='" + perl_i_stdlib + "'"
3238 $ WC "i_string='" + perl_i_string + "'"
3239 $ WC "i_sysdir='" + perl_i_sysdir + "'"
3240 $ WC "i_sysfile='" + perl_i_sysfile + "'"
3241 $ WC "i_sysioctl='" + perl_i_sysioctl + "'"
3242 $ WC "i_sysndir='" + perl_i_sysndir + "'"
3243 $ WC "i_sysresrc='" + perl_i_sysresrc + "'"
3244 $ WC "i_sysselct='" + perl_i_sysselct + "'"
3245 $ WC "i_dbm='" + perl_i_dbm + "'"
3246 $ WC "i_rpcsvcdbm='" + perl_i_rpcsvcdbm + "'"
3247 $ WC "i_sfio='" + perl_i_sfio + "'"
3248 $ WC "i_sysstat='" + perl_i_sysstat + "'"
3249 $ WC "i_systimes='" + perl_i_systimes + "'"
3250 $ WC "i_systypes='" + perl_i_systypes + "'"
3251 $ WC "i_sysun='" + perl_i_sysun + "'"
3252 $ WC "i_syswait='" + perl_i_syswait + "'"
3253 $ WC "i_termio='" + perl_i_termio + "'"
3254 $ WC "i_sgtty='" + perl_i_sgtty + "'"
3255 $ WC "i_termios='" + perl_i_termios + "'"
3256 $ WC "i_time='" + perl_i_time + "'"
3257 $ WC "i_systime='" + perl_i_systime + "'"
3258 $ WC "i_systimek='" + perl_i_systimek + "'"
3259 $ WC "i_unistd='" + perl_i_unistd + "'"
3260 $ WC "i_utime='" + perl_i_utime + "'"
3261 $ WC "i_varargs='" + perl_i_varargs + "'"
3262 $ WC "i_vfork='" + perl_i_vfork + "'"
3263 $ WC "prototype='" + perl_prototype + "'"
3264 $ WC "randbits='" + perl_randbits +"'"
3265 $ WC "selecttype='" + perl_selecttype + "'"
3266 $ WC "stdchar='" + perl_stdchar + "'"
3267 $ WC "d_unlink_all_versions='" + perl_d_unlink_all_versions + "'"
3268 $ WC "full_sed='" + perl_full_sed + "'"
3269 $ WC "bin='" + perl_bin + "'"
3270 $ WC "binexp='" + perl_binexp + "'"
3271 $ WC "d_alarm='" + perl_d_alarm + "'"
3272 $ WC "d_casti32='" + perl_d_casti32 + "'"
3273 $ WC "d_chown='" + perl_d_chown + "'"
3274 $ WC "d_chroot='" + perl_d_chroot + "'"
3275 $ WC "d_cuserid='" + perl_d_cuserid + "'"
3276 $ WC "d_dbl_dig='" + perl_d_dbl_dig + "'"
3277 $ WC "d_difftime='" + perl_d_difftime + "'"
3278 $ WC "d_fork='" + perl_d_fork + "'"
3279 $ WC "d_getlogin='" + perl_d_getlogin + "'"
3280 $ WC "d_getppid='" + perl_d_getppid + "'"
3281 $ WC "d_htonl='" + perl_d_htonl + "'"
3282 $ WC "d_nice='" + perl_d_nice + "'"
3283 $ WC "d_pause='" + perl_d_pause + "'"
3284 $ WC "d_pipe='" + perl_d_pipe + "'"
3285 $ WC "d_readlink='" + perl_d_readlink + "'"
3286 $ WC "d_setlinebuf='" + perl_d_setlinebuf + "'"
3287 $ WC "d_strchr='" + perl_d_strchr + "'"
3288 $ WC "d_index='" + perl_d_index + "'"
3289 $ WC "d_strtod='" + perl_d_strtod + "'"
3290 $ WC "d_strtol='" + perl_d_strtol + "'"
3291 $ WC "d_strtoul='" + perl_d_strtoul + "'"
3292 $ WC "d_tcgetpgrp='" + perl_d_tcgetpgrp + "'"
3293 $ WC "d_tcsetpgrp='" + perl_d_tcsetpgrp + "'"
3294 $ WC "d_times='" + perl_d_times + "'"
3295 $ WC "d_tzname='" + perl_d_tzname + "'"
3296 $ WC "d_umask='" + perl_d_umask + "'"
3297 $ WC "fpostype='" + perl_fpostype + "'"
3298 $ WC "i_dlfcn='" + perl_i_dlfcn + "'"
3299 $ WC "i_float='" + perl_i_float + "'"
3300 $ WC "i_math='" + perl_i_math + "'"
3301 $ WC "intsize='" + perl_intsize + "'"
3302 $ WC "longsize='" + perl_longsize + "'"
3303 $ WC "shortsize='" + perl_shortsize + "'"
3304 $ WC "lseektype='" + perl_lseektype + "'"
3305 $ WC "lseeksize='4'"
3306 $ WC "i_values='" + perl_i_values + "'"
3307 $ WC "malloctype='" + perl_malloctype + "'"
3308 $ WC "freetype='" + perl_freetype + "'"
3309 $ WC "d_mymalloc='" + perl_d_mymalloc + "'"
3310 $ WC "sh='" + perl_sh + "'"
3311 $ WC "sig_name='" + perl_sig_name + "'"
3312 $ WC "sig_num='" + perl_sig_num + "'"
3313 $ tempsym = "sig_name_init='" + perl_sig_name_with_commas + "'"
3315 $ WC "modetype='" + perl_modetype + "'"
3316 $ WC "ssizetype='" + perl_ssizetype + "'"
3317 $ WC "o_nonblock='" + perl_o_nonblock + "'"
3318 $ WC "eagain='" + perl_eagain + "'"
3319 $ WC "rd_nodata='" + perl_rd_nodata + "'"
3320 $ WC "d_eofnblk='" + perl_d_eofnblk + "'"
3321 $ WC "d_oldarchlib='" + perl_d_oldarchlib + "'"
3322 $ WC "oldarchlibexp='" + perl_oldarchlibexp + "'"
3323 $ WC "oldarchlib='" + perl_oldarchlib + "'"
3324 $ WC "privlibexp='" + perl_privlibexp + "'"
3325 $ WC "privlib='" + perl_privlib + "'"
3326 $ WC "sitelibexp='" + perl_sitelibexp + "'"
3327 $ WC "sitelib='" + perl_sitelib + "'"
3328 $ WC "sitearchexp='" + perl_sitearchexp + "'"
3329 $ WC "sitearch='" + perl_sitearch + "'"
3330 $ WC "sizetype='" + perl_sizetype + "'"
3331 $ WC "i_sysparam='" + perl_i_sysparam + "'"
3332 $ WC "d_void_closedir='" + perl_d_void_closedir + "'"
3333 $ WC "d_dlerror='" + perl_d_dlerror + "'"
3334 $ WC "d_dlsymun='" + perl_d_dlsymun + "'"
3335 $ WC "d_suidsafe='" + perl_d_suidsafe + "'"
3336 $ WC "d_dosuid='" + perl_d_dosuid + "'"
3337 $ WC "d_inetaton='" + perl_d_inetaton + "'"
3338 $ WC "d_isascii='" + perl_d_isascii + "'"
3339 $ WC "d_mkfifo='" + perl_d_mkfifo + "'"
3340 $ WC "d_pathconf='" + perl_d_pathconf + "'"
3341 $ WC "d_fpathconf='" + perl_d_fpathconf + "'"
3342 $ WC "d_safebcpy='" + perl_d_safebcpy + "'"
3343 $ WC "d_safemcpy='" + perl_d_safemcpy + "'"
3344 $ WC "d_sanemcmp='" + perl_d_sanemcmp + "'"
3345 $ WC "d_setpgrp='" + perl_d_setpgrp + "'"
3346 $ WC "d_bsdsetpgrp='" + perl_d_bsdsetpgrp + "'"
3347 $ WC "d_bsdpgrp='" + perl_d_bsdpgrp + "'"
3348 $ WC "d_setpgid='" + perl_d_setpgid + "'"
3349 $ WC "d_setpgrp2='" + perl_d_setpgrp2 + "'"
3350 $ WC "d_sysconf='" + perl_d_sysconf + "'"
3351 $ WC "d_Gconvert='" + perl_d_Gconvert + "'"
3352 $ WC "d_getpgid='" + perl_d_getpgid + "'"
3353 $ WC "d_getpgrp='" + perl_d_getpgrp + "'"
3354 $ WC "d_bsdgetpgrp='" + perl_d_bsdgetpgrp + "'"
3355 $ WC "d_getpgrp2='" + perl_d_getpgrp2 + "'"
3356 $ WC "d_sfio='" + perl_d_sfio + "'"
3357 $ WC "d_sigsetjmp='" + perl_d_sigsetjmp + "'"
3358 $ WC "usedl='" + perl_usedl + "'"
3359 $ WC "startperl=" + perl_startperl ! This one's special--no enclosing single quotes
3360 $ WC "db_hashtype='" + perl_db_hashtype + "'"
3361 $ WC "db_prefixtype='" + perl_db_prefixtype + "'"
3362 $ WC "useperlio='" + perl_useperlio + "'"
3363 $ WC "defvoidused='" + perl_defvoidused + "'"
3364 $ WC "voidflags='" + perl_voidflags + "'"
3365 $ WC "d_eunice='" + perl_d_eunice + "'"
3366 $ WC "libs='" + perl_libs + "'"
3367 $ WC "libc='" + perl_libc + "'"
3368 $ tempstring = "PERL_VERSION='" + "''perl_patchlevel'" + "'"
3370 $ tempstring = "PERL_SUBVERSION='" + "''perl_patchlevel'" + "'"
3372 $ tempstring = "PATCHLEVEL='" + "''perl_patchlevel'" + "'"
3374 $ tempstring = "SUBVERSION='" + "''perl_SUBVERSION'" + "'"
3376 $ WC "pager='" + perl_pager + "'"
3377 $ WC "uidtype='" + perl_uidtype + "'"
3378 $ WC "gidtype='" + perl_gidtype + "'"
3379 $ WC "usethreads='" + perl_usethreads + "'"
3380 $ WC "d_pthread_yield='" + perl_d_pthread_yield + "'"
3381 $ WC "d_pthreads_created_joinable='" + perl_d_pthreads_created_joinable + "'"
3382 $ WC "d_gnulibc='" + perl_d_gnulibc + "'"
3383 $ WC "i_netdb='" + perl_i_netdb + "'"
3384 $ WC "pidtype='" + perl_pidtype + "'"
3385 $ WC "netdb_host_type='" + perl_netdb_host_type + "'"
3386 $ WC "netdb_hlen_type='" + perl_netdb_hlen_type + "'"
3387 $ WC "netdb_name_type='" + perl_netdb_name_type + "'"
3388 $ WC "netdb_net_type='" + perl_netdb_net_type + "'"
3389 $ WC "baserev='" + perl_baserev + "'"
3390 $ WC "doublesize='" + perl_doublesize + "'"
3391 $ WC "ptrsize='" + perl_ptrsize + "'"
3392 $ WC "d_gethbyaddr='" + perl_d_gethbyaddr + "'"
3393 $ WC "d_gethbyname='" + perl_d_gethbyname + "'"
3394 $ WC "d_getnbyaddr='" + perl_d_getnbyaddr + "'"
3395 $ WC "d_getnbyname='" + perl_d_getnbyname + "'"
3396 $ WC "d_getpbynumber='" + perl_d_getpbynumber + "'"
3397 $ WC "d_getpbyname='" + perl_d_getpbyname + "'"
3398 $ WC "d_getsbyport='" + perl_d_getsbyport + "'"
3399 $ WC "d_getsbyname='" + perl_d_getsbyname + "'"
3400 $ WC "d_sethent='" + perl_d_sethent + "'"
3401 $ WC "d_oldpthreads='" + perl_d_oldpthreads + "'"
3402 $ WC "d_longdbl='" + perl_d_longdbl + "'"
3403 $ WC "longdblsize='" + perl_longdblsize + "'"
3404 $ WC "d_longlong='" + perl_d_longlong + "'"
3405 $ WC "longlongsize='" + perl_longlongsize + "'"
3406 $ WC "d_mkstemp='" + perl_d_mkstemp + "'"
3407 $ WC "d_setvbuf='" + perl_d_setvbuf + "'"
3408 $ WC "d_setenv='" + perl_d_setenv + "'"
3409 $ WC "d_endhent='" + perl_d_endhent + "'"
3410 $ WC "d_endnent='" + perl_d_endsent + "'"
3411 $ WC "d_endpent='" + perl_d_endpent + "'"
3412 $ WC "d_endsent='" + perl_d_endsent + "'"
3413 $ WC "d_gethent='" + perl_d_gethent + "'"
3414 $ WC "d_getnent='" + perl_d_getsent + "'"
3415 $ WC "d_getpent='" + perl_d_getpent + "'"
3416 $ WC "d_getsent='" + perl_d_getsent + "'"
3417 $ WC "d_sethent='" + perl_d_sethent + "'"
3418 $ WC "d_setnent='" + perl_d_setsent + "'"
3419 $ WC "d_setpent='" + perl_d_setpent + "'"
3420 $ WC "ebcdic='" + perl_ebcdic + "'"
3421 $ WC "d_setsent='" + perl_d_setsent + "'"
3422 $ WC "d_gethostprotos='" + perl_d_gethostprotos + "'"
3423 $ WC "d_getnetprotos='" + perl_d_getnetprotos + "'"
3424 $ WC "d_getprotoprotos='" + perl_d_getprotoprotos + "'"
3425 $ WC "d_getservprotos='" + perl_d_getservprotos + "'"
3426 $ WC "d_pwgecos='" + perl_d_pwgecos + "'"
3427 $ WC "d_sched_yield='" + perl_d_sched_yield + "'"
3428 $ WC "d_lchown='" + perl_d_lchown + "'"
3429 $ WC "d_union_semun='" + perl_d_union_semun + "'"
3430 $ WC "i_arpainet='" + perl_i_arpainet + "'"
3431 $ WC "d_grpasswd='" + perl_d_grpasswd + "'"
3432 $ WC "d_setgrent='" + perl_d_setgrent + "'"
3433 $ WC "d_getgrent='" + perl_d_getgrent + "'"
3434 $ WC "d_endgrent='" + perl_d_endgrent + "'"
3435 $ WC "d_pwpasswd='" + perl_d_pwpasswd + "'"
3436 $ WC "d_setpwent='" + perl_d_setpwent + "'"
3437 $ WC "d_getpwent='" + perl_d_getpwent + "'"
3438 $ WC "d_endpwent='" + perl_d_endpwent + "'"
3439 $ WC "d_semctl_semun='" + perl_d_semctl_semun + "'"
3440 $ WC "d_semctl_semid_ds='" + perl_d_semctl_semid_ds + "'"
3441 $ WC "extensions='" + perl_extensions + "'"
3442 $ WC "d_mknod='" + perl_d_mknod + "'"
3443 $ WC "devtype='" + perl_devtype + "'"
3444 $ WC "d_gethname='" + perl_d_gethname + "'"
3445 $ WC "d_phostname='" + perl_d_phostname + "'"
3446 $ WC "d_accessx='" + perl_d_accessx + "'"
3447 $ WC "d_eaccess='" + perl_d_eaccess + "'"
3448 $ WC "i_sysaccess='" + perl_i_sysaccess + "'"
3449 $ WC "i_syssecrt='" + perl_i_syssecrt + "'"
3450 $ WC "d_fd_set='" + perl_d_fd_set + "'"
3451 $ WC "d_access='" + perl_d_access + "'"
3452 $ WC "d_msg_ctrunc='" + perl_d_msg_ctrunc + "'"
3453 $ WC "d_msg_dontroute='" + perl_d_msg_dontroute + "'"
3454 $ WC "d_msg_oob='" + perl_d_msg_oob + "'"
3455 $ WC "d_msg_peek='" + perl_d_msg_peek + "'"
3456 $ WC "d_msg_proxy='" + perl_d_msg_proxy + "'"
3457 $ WC "d_scm_rights='" + perl_d_scm_rights + "'"
3458 $ WC "d_sendmsg='" + perl_d_sendmsg + "'"
3459 $ WC "d_recvmsg='" + perl_d_recvmsg + "'"
3460 $ WC "d_msghdr_s='" + perl_d_msghdr_s + "'"
3461 $ WC "d_cmsghdr_s='" + perl_d_cmsghdr_s + "'"
3462 $ WC "i_sysuio='" + perl_i_sysuio + "'"
3463 $ WC "d_fseeko='" + perl_d_fseeko + "'"
3464 $ WC "d_ftello='" + perl_d_ftello + "'"
3465 $ WC "d_readv='" + perl_d_readv + "'"
3466 $ WC "d_writev='" + perl_d_writev + "'"
3467 $ WC "i_machcthr='" + perl_i_machcthr + "'"
3468 $ WC "usemultiplicity='" + perl_usemultiplicity + "'"
3469 $ WC "i_poll='" + perl_i_poll + "'"
3470 $ WC "i_inttypes='" + perl_i_inttypes + "'"
3471 $ WC "d_int64t='" + perl_d_int64t + "'"
3472 $ WC "d_off64_t='" + perl_d_off64_t + "'"
3473 $ WC "use64bits='" + perl_use64bits + "'"
3474 $ WC "d_drand48proto='" + perl_d_drand48proto + "'"
3475 $ WC "d_old_pthread_create_joinable='" + perl_d_old_pthread_create_joinable + "'"
3476 $ WC "old_pthread_create_joinable='" + perl_old_pthread_create_joinable + "'"
3477 $ WC "drand01='" + perl_drand01 + "'"
3478 $ WC "randseedtype='" + perl_randseedtype + "'"
3479 $ WC "seedfunc='" + perl_seedfunc + "'"
3480 $ WC "sig_num_init='" + perl_sig_num_with_commas + "'"
3481 $ WC "i_sysmount='" + perl_i_sysmount + "'"
3482 $ WC "d_fstatfs='" + perl_d_fstatfs + "'"
3483 $ WC "d_memchr='" + perl_d_memchr + "'"
3484 $ WC "d_statfsflags='" + perl_d_statfsflags + "'"
3485 $ WC "fflushNULL='define'"
3486 $ WC "fflushall='undef'"
3487 $ WC "d_stdio_stream_array='undef'"
3488 $ WC "i_sysstatvfs='" + perl_i_sysstatvfs + "'"
3489 $ WC "i_machcthreads='" + perl_i_machcthreads + "'"
3490 $ WC "i_pthread='" + perl_i_pthread + "'"
3491 $ WC "d_fstatvfs='" + perl_d_fstatvfs + "'"
3492 $ WC "i_mntent='" + perl_i_mntent + "'"
3493 $ WC "d_getmntent='" + perl_d_getmntent + "'"
3494 $ WC "d_hasmntopt='" + perl_d_hasmntopt + "'"
3495 $ WC "d_telldirproto='" + perl_d_telldirproto + "'"
3496 $ WC "d_madvise='" + perl_d_madvise + "'"
3497 $ WC "d_msync='" + perl_d_msync + "'"
3498 $ WC "d_mprotect='" + perl_d_mprotect + "'"
3499 $ WC "d_munmap='" + perl_d_munmap + "'"
3500 $ WC "d_mmap='" + perl_d_mmap + "'"
3501 $ WC "i_sysmman='" + perl_i_sysmman + "'"
3502 $ WC "installusrbinperl='" + perl_installusrbinperl + "'"
3503 $! WC "selectminbits='" + perl_selectminbits + "'"
3504 $ WC "crosscompile='" + perl_crosscompile + "'"
3505 $ WC "multiarch='" + perl_multiarch + "'"
3506 $ WC "sched_yield='" + perl_sched_yield + "'"
3507 $ WC "d_strtoull='" + perl_d_strtoull + "'"
3508 $ WC "usesocks='" + perl_usesocks + "'"
3509 $ WC "d_vendorlib='" + perl_d_vendorlib + "'"
3510 $ WC "vendorlibexp='" + perl_vendorlibexp + "'"
3511 $ WC "d_atolf='" + perl_d_atolf + "'"
3512 $ WC "d_atoll='" + perl_d_atoll + "'"
3513 $ WC "d_bincompat5005='" + perl_d_bincompat + "'"
3514 $ WC "d_endspent='" + perl_d_endspent + "'"
3515 $ WC "d_getspent='" + perl_d_getspent + "'"
3516 $ WC "d_getspnam='" + perl_d_getspnam + "'"
3517 $ WC "d_setspent='" + perl_d_setspent + "'"
3518 $ WC "i_shadow='" + perl_i_shadow + "'"
3519 $ WC "i_socks='" + perl_i_socks + "'"
3520 $ WC "d_PRIfldbl='" + perl_d_PRIfldbl + "'"
3521 $ WC "d_PRIgldbl='" + perl_d_PRIgldbl + "'"
3522 $ WC "d_PRId64='" + perl_d_PRId64 + "'"
3523 $ WC "d_PRIu64='" + perl_d_PRIu64 + "'"
3524 $ WC "d_PRIo64='" + perl_d_PRIo64 + "'"
3525 $ WC "d_PRIx64='" + perl_d_PRIx64 + "'"
3526 $ WC "sPRIfldbl='" + perl_sPRIfldbl + "'"
3527 $ WC "sPRIgldbl='" + perl_sPRIgldbl + "'"
3528 $ WC "sPRId64='" + perl_sPRId64 + "'"
3529 $ WC "sPRIu64='" + perl_sPRIu64 + "'"
3530 $ WC "sPRIo64='" + perl_sPRIo64 + "'"
3531 $ WC "sPRIx64='" + perl_sPRIx64 + "'"
3533 $! ##WRITE NEW CONSTANTS HERE##
3537 $! Okay, we've gotten here. Build munchconfig and run it
3538 $ 'Perl_CC'/debug munchconfig.c
3539 $ If (Needs_Opt.eqs."Yes")
3541 $ open/write OPTCHAN []munchconfig.opt
3542 $ IF ("''using_gnu_c'".eqs."Yes")
3544 $ write OPTCHAN "Gnu_CC:[000000]gcclib.olb/library"
3546 $ write OPTCHAN "Sys$Share:VAXCRTL/Share"
3548 $ link munchconfig.obj,munchconfig.opt/opt
3549 $ delete munchconfig.opt;*
3551 $ link munchconfig.obj
3554 $ echo "Writing config.h"
3556 $ ! we need an fdl file
3557 $ CREATE [-]CONFIG.FDL
3560 $ CREATE /FDL=[-]CONFIG.FDL [-]CONFIG.LOCAL
3561 $ ! First spit out the header info with the local defines (to get
3562 $ ! around the 255 character command line limit)
3563 $ OPEN/APPEND CONFIG [-]config.local
3564 $ if use_debugging_perl.eqs."Y"
3566 $ WRITE CONFIG "#define DEBUGGING"
3568 $ if use_two_pot_malloc.eqs."Y"
3570 $ WRITE CONFIG "#define TWO_POT_OPTIMIZE"
3572 $ if mymalloc.eqs."Y"
3574 $ WRITE CONFIG "#define EMBEDMYMALLOC"
3576 $ if use_pack_malloc.eqs."Y"
3578 $ WRITE CONFIG "#define PACK_MALLOC"
3580 $ if use_debugmalloc.eqs."Y"
3582 $ write config "#define DEBUGGING_MSTATS"
3584 $ if "''Using_Gnu_C'" .eqs."Yes"
3586 $ WRITE CONFIG "#define GNUC_ATTRIBUTE_CHECK"
3588 $ if "''Has_Dec_C_Sockets'".eqs."T"
3590 $ WRITE CONFIG "#define VMS_DO_SOCKETS"
3591 $ WRITE CONFIG "#define DECCRTL_SOCKETS"
3593 $ if "''Has_Socketshr'".eqs."T"
3595 $ WRITE CONFIG "#define VMS_DO_SOCKETS"
3597 $! This is VMS-specific for now
3598 $ WRITE CONFIG "#''perl_d_setenv' HAS_SETENV"
3599 $ if d_alwdeftype.eqs."Y"
3601 $ WRITE CONFIG "#define SECURE_INTERNAL_GETENV"
3603 $ WRITE CONFIG "#undef SECURE_INTERNAL_GETENV"
3605 $ if d_secintgenv.eqs."Y"
3607 $ WRITE CONFIG "#define ALWAYS_DEFTYPES"
3609 $ WRITE CONFIG "#undef ALWAYS_DEFTYPES"
3611 $ if use_64bit.eqs."Y"
3613 $ WRITE CONFIG "#define USE_LONG_LONG"
3614 $ WRITE CONFIG "#define USE_LONG_DOUBLE"
3616 $ WRITE CONFIG "#define HAS_ENVGETENV"
3619 $! Now build the normal config.h
3620 $ define/user sys$output [-]config.main
3621 $ mcr []munchconfig [-]config.sh [-]config_h.sh
3622 $ ! Concatenate them together
3623 $ copy [-]config.local,[-]config.main [-]config.h
3625 $ DELETE/NOLOG [-]CONFIG.MAIN;*
3626 $ DELETE/NOLOG [-]CONFIG.LOCAL;*
3627 $ DELETE/NOLOG [-]CONFIG.FDL;*
3629 $ if "''Using_Dec_C'" .eqs."Yes"
3631 $ DECC_REPLACE = "DECC=decc=1"
3633 $ DECC_REPLACE = "DECC="
3635 $ if "''Using_Gnu_C'" .eqs."Yes"
3637 $ GNUC_REPLACE = "GNUC=gnuc=1"
3639 $ GNUC_REPLACE = "GNUC="
3641 $ if "''Has_Dec_C_Sockets'" .eqs."T"
3643 $ SOCKET_REPLACE = "SOCKET=DECC_SOCKETS=1"
3645 $ if "''Has_Socketshr'" .eqs."T"
3647 $ SOCKET_REPLACE = "SOCKET=SOCKETSHR_SOCKETS=1"
3649 $ SOCKET_REPLACE = "SOCKET="
3652 $ IF ("''Use_Threads'".eqs."T")
3654 $ if ("''VMS_VER'".LES."6.2")
3656 $ THREAD_REPLACE = "THREAD=OLDTHREADED=1"
3658 $ THREAD_REPLACE = "THREAD=THREADED=1"
3661 $ THREAD_REPLACE = "THREAD="
3663 $ if mymalloc.eqs."Y"
3665 $ MALLOC_REPLACE = "MALLOC=MALLOC=1"
3667 $ MALLOC_REPLACE = "MALLOC="
3669 $ if f$getsyi("HW_MODEL").ge.1024
3671 $ ARCH_TYPE = "ARCH-TYPE=__AXP__"
3673 $ ARCH_TYPE = "ARCH-TYPE=__VAX__"
3675 $ echo "Writing DESCRIP.MMS"
3677 $ define/user sys$output [-]descrip.mms
3678 $ mcr []munchconfig [-]config.sh descrip_mms.template "''DECC_REPLACE'" "''ARCH_TYPE'" "''GNUC_REPLACE'" "''SOCKET_REPLACE'" "''THREAD_REPLACE'" "''C_Compiler_Replace'" "''MALLOC_REPLACE'" "''Thread_Live_Dangerously'" "PV=''LocalPerlVer'"
3679 $ echo "Extracting Build_Ext.Com"
3680 $ Create Sys$Disk:[-]Build_Ext.Com
3681 $ Deck/Dollar="$EndOfTpl$"
3683 $! NOTE: This files is extracted as part of the VMS configuration process.
3684 $! Any changes made to it directly will be lost. If you need to make any
3685 $! changes, please edit the template in [.vms]SubConfigure.Com instead.
3686 $ def = F$Environment("Default")
3687 $ exts1 = F$Edit(p1,"Compress")
3688 $ p2 = F$Edit(p2,"Upcase,Compress,Trim")
3689 $ If F$Locate("MCR ",p2).eq.0 Then p2 = F$Extract(3,255,p2)
3690 $ miniperl = "$" + F$Search(F$Parse(p2,".Exe"))
3692 $ if f$type('p3') .nes. "" then makeutil = 'p3'
3693 $ targ = F$Edit(p4,"Lowercase")
3696 $ ext = F$Element(i," ",p1)
3697 $ If ext .eqs. " " Then Goto done
3698 $ Define/User Perl_Env_Tables CLISYM_LOCAL
3700 ($extdir = $ENV{'ext'}) =~ s/::/./g;
3701 if ($extdir =~ /^vms/i) { $extdir =~ s/vms/.vms.ext/i; }
3702 else { $extdir = ".ext.$extdir"; }
3703 ($ENV{'extdir'} = "[$extdir]");
3704 ($ENV{'up'} = ('-') x ($extdir =~ tr/././));
3705 $ Set Default &extdir
3707 $ If F$Locate("clean",targ) .eqs. F$Length(targ)
3709 $ Write Sys$Output "Building ''ext' . . ."
3710 $ On Error Then Goto done
3711 $ If F$Search("Descrip.MMS") .eqs. ""
3715 $ If F$CvTime(F$File("Descrip.MMS","rdt")) .lts. -
3716 F$CvTime(F$File("Makefile.PL","rdt")) Then redesc = 1
3719 $ Write Sys$Output "''targ'ing ''ext' . . ."
3720 $ On Error Then Continue
3723 miniperl "-I[''up'.lib]" Makefile.PL "INST_LIB=[''up'.lib]" "INST_ARCHLIB=[''up'.lib]"
3737 $! Clean up after ourselves
3738 $ delete/nolog munchconfig.exe;*
3739 $ delete/nolog munchconfig.obj;*