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='" + 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"
404 $ perl_d_perl_otherlibdirs="undef"
405 $ perl_otherlibdirs=""
408 $ perl_d_mymalloc="define"
410 $ perl_d_mymalloc="undef"
413 $ perl_modetype="unsigned int"
414 $ perl_ssizetype="int"
415 $ perl_o_nonblock=" "
418 $ perl_d_eofnblk="undef"
419 $ perl_d_oldarchlib="define"
420 $ perl_privlibexp="''perl_prefix':[lib]"
421 $ perl_privlib="''perl_prefix':[lib]"
422 $ perl_sitelibexp="''perl_prefix':[lib.site_perl]"
423 $ perl_sitelib="''perl_prefix':[lib.site_perl]"
424 $ perl_sitelib_stem="''perl_prefix':[lib.site_perl]"
425 $ perl_sizetype="size_t"
426 $ perl_i_sysparam="undef"
427 $ perl_d_void_closedir="define"
428 $ perl_d_dlerror="undef"
429 $ perl_d_dlsymun="undef"
430 $ perl_d_suidsafe="undef"
431 $ perl_d_dosuid="undef"
432 $ perl_d_inetaton="undef"
433 $ perl_d_isascii="define"
434 $ perl_d_mkfifo="undef"
435 $ perl_d_safebcpy="undef"
436 $ perl_d_safemcpy="define"
437 $ perl_d_sanemcmp="define"
438 $ perl_d_setpgrp="undef"
439 $ perl_d_bsdsetpgrp="undef"
440 $ perl_d_bsdpgrp="undef"
441 $ perl_d_setpgid="undef"
442 $ perl_d_setpgrp2="undef"
443 $ perl_d_Gconvert="my_gconvert(x,n,t,b)"
444 $ perl_d_getpgid="undef"
445 $ perl_d_getpgrp="undef"
446 $ perl_d_bsdgetpgrp="undef"
447 $ perl_d_getpgrp2="undef"
448 $ perl_d_sfio="undef"
449 $ perl_usedl="define"
450 $ perl_startperl="""$ perl 'f$env(\""procedure\"")' 'p1' 'p2' 'p3' 'p4' 'p5' 'p6' 'p7' 'p8' !\n$ exit++ + ++$status != 0 and $exit = $status = undef;"""
451 $ perl_db_hashtype=" "
452 $ perl_db_prefixtype=" "
453 $ perl_useperlio="undef"
454 $ perl_defvoidused="15"
455 $ perl_voidflags="15"
456 $ perl_d_eunice="undef"
457 $ perl_d_pwgecos="define"
458 $ IF ((Use_Threads) .AND. (VMS_VER .LES. "6.2"))
460 $ 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"
466 $ perl_libc="(DECCRTL)"
476 $ perl_d_PRIfldbl = "define"
477 $ perl_d_PRIgldbl = "define"
478 $ perl_d_PRId64 = "define"
479 $ perl_d_PRIu64 = "define"
480 $ perl_d_PRIo64 = "define"
481 $ perl_d_PRIx64 = "define"
482 $ perl_sPRIfldbl = """Lf"""
483 $ perl_sPRIgldbl = """Lg"""
484 $ perl_sPRId64 = """Ld"""
485 $ perl_sPRIu64 = """Lu"""
486 $ perl_sPRIo64 = """Lo"""
487 $ perl_sPRIx64 = """Lx"""
488 $ perl_d_quad = "define"
489 $ perl_quadtype = "long long"
490 $ perl_uquadtype = "unsigned long long"
491 $ perl_quadkind = "QUAD_IS_LONG_LONG"
492 $ perl_d_frexpl = "define"
493 $ perl_d_isnanl = "define"
494 $ perl_d_modfl = "define"
496 $ perl_d_PRIfldbl = "undef"
497 $ perl_d_PRIgldbl = "undef"
498 $ perl_d_PRId64 = "undef"
499 $ perl_d_PRIu64 = "undef"
500 $ perl_d_PRIo64 = "undef"
501 $ perl_d_PRIx64 = "undef"
502 $ perl_sPRIfldbl = ""
503 $ perl_sPRIgldbl = ""
508 $ perl_d_quad = "undef"
509 $ perl_quadtype = "long"
510 $ perl_uquadtype = "unsigned long"
511 $ perl_quadkind = "QUAD_IS_LONG"
512 $ perl_d_frexpl = "undef"
513 $ perl_d_isnanl = "undef"
514 $ perl_d_modfl = "undef"
517 $! Now some that we build up
521 $ if use_5005_threads
523 $ arch = "''arch'-thread"
524 $ archname = "''archname'-thread"
525 $ perl_d_old_pthread_create_joinable = "undef"
526 $ perl_old_pthread_create_joinable = " "
527 $ perl_use5005threads = "define"
528 $ perl_useithreads = "undef"
530 $ arch = "''arch'-ithread"
531 $ archname = "''archname'-ithread"
532 $ perl_d_old_pthread_create_joinable = "undef"
533 $ perl_old_pthread_create_joinable = " "
534 $ perl_use5005threads = "undef"
535 $ perl_useithreads = "define"
538 $ perl_d_old_pthread_create_joinable = "undef"
539 $ perl_old_pthread_create_joinable = " "
540 $ perl_use5005threads = "undef"
541 $ perl_useithreads = "undef"
544 $! Some that we need to invoke the compiler for
545 $ OS := "open/write SOURCECHAN []temp.c"
546 $ WS := "write SOURCECHAN"
547 $ CS := "close SOURCECHAN"
548 $ DS := "delete/nolog []temp.*;*"
552 $ open/write OPTCHAN []temp.opt
553 $ write OPTCHAN "Gnu_CC:[000000]gcclib.olb/library"
554 $ write OPTCHAN "Sys$Share:VAXCRTL/Share"
559 $! Check for __STDC__
563 $ WS "#include <stdlib.h>
565 $ WS "#include <stdio.h>
568 $ WS "#ifdef __STDC__
569 $ WS "printf(""42\n"");
571 $ WS "printf(""1\n"");
576 $ DEFINE SYS$ERROR _NLA0:
577 $ DEFINE SYS$OUTPUT _NLA0:
578 $ ON ERROR THEN CONTINUE
579 $ ON WARNING THEN CONTINUE
583 $ link temp.obj,temp.opt/opt
587 $ DEASSIGN SYS$OUTPUT
589 $ OPEN/WRITE TEMPOUT [-.uu]tempout.lis
590 $ DEFINE SYS$ERROR TEMPOUT
591 $ DEFINE SYS$OUTPUT TEMPOUT
594 $ DEASSIGN SYS$OUTPUT
596 $ OPEN/READ TEMPOUT [-.uu]tempout.lis
599 $ DELETE/NOLOG [-.uu]tempout.lis;
600 $ perl_cpp_stuff=line
601 $ WRITE_RESULT "cpp_stuff is ''perl_cpp_stuff'"
603 $! Check for double size
607 $ WS "#include <stdlib.h>
609 $ WS "#include <stdio.h>
613 $ WS "foo = sizeof(double);
614 $ WS "printf(""%d\n"", foo);
618 $ DEFINE SYS$ERROR _NLA0:
619 $ DEFINE SYS$OUTPUT _NLA0:
620 $ ON ERROR THEN CONTINUE
621 $ ON WARNING THEN CONTINUE
625 $ link temp.obj,temp.opt/opt
629 $ OPEN/WRITE TEMPOUT [-.uu]tempout.lis
630 $ DEASSIGN SYS$OUTPUT
632 $ DEFINE SYS$ERROR TEMPOUT
633 $ DEFINE SYS$OUTPUT TEMPOUT
636 $ DEASSIGN SYS$OUTPUT
638 $ OPEN/READ TEMPOUT [-.uu]tempout.lis
641 $ DELETE/NOLOG [-.uu]tempout.lis;
643 $ perl_doublesize=line
644 $ WRITE_RESULT "doublesize is ''perl_doublesize'"
646 $! Check for long double size
650 $ WS "#include <stdlib.h>
652 $ WS "#include <stdio.h>
655 $ WS "printf(""%d\n"", sizeof(long double));
659 $ DEFINE SYS$ERROR _NLA0:
660 $ DEFINE SYS$OUTPUT _NLA0:
661 $ ON ERROR THEN CONTINUE
662 $ ON WARNING THEN CONTINUE
664 $ teststatus = f$extract(9,1,$status)
665 $ if (teststatus.nes."1")
667 $ perl_longdblsize="0"
668 $ perl_d_longdbl="undef"
670 $ ON ERROR THEN CONTINUE
671 $ ON WARNING THEN CONTINUE
674 $ link temp.obj,temp.opt/opt
678 $ teststatus = f$extract(9,1,$status)
679 $ DEASSIGN SYS$OUTPUT
681 $ IF (teststatus.nes."1")
683 $ perl_longdblsize="0"
684 $ perl_d_longdbl="undef"
686 $ OPEN/WRITE TEMPOUT [-.uu]tempout.lis
687 $ DEFINE SYS$ERROR TEMPOUT
688 $ DEFINE SYS$OUTPUT TEMPOUT
691 $ DEASSIGN SYS$OUTPUT
693 $ OPEN/READ TEMPOUT [-.uu]tempout.lis
696 $ DELETE/NOLOG [-.uu]tempout.lis;
697 $ perl_longdblsize=line
698 $ perl_d_longdbl="define"
701 $ WRITE_RESULT "longdblsize is ''perl_longdblsize'"
702 $ WRITE_RESULT "d_longdbl is ''perl_d_longdbl'"
704 $! Check for long long existance and size
708 $ WS "#include <stdlib.h>
710 $ WS "#include <stdio.h>
713 $ WS "printf(""%d\n"", sizeof(long long));
717 $ DEFINE SYS$ERROR _NLA0:
718 $ DEFINE SYS$OUTPUT _NLA0:
719 $ on error then continue
720 $ on warning then continue
724 $ link temp.obj,temp.opt/opt
728 $ teststatus = f$extract(9,1,$status)
729 $ DEASSIGN SYS$OUTPUT
731 $ if (teststatus.nes."1")
733 $ perl_longlongsize="0"
734 $ perl_d_longlong="undef"
736 $ OPEN/WRITE TEMPOUT [-.uu]tempout.lis
737 $ DEFINE SYS$ERROR TEMPOUT
738 $ DEFINE SYS$OUTPUT TEMPOUT
741 $ DEASSIGN SYS$OUTPUT
743 $ OPEN/READ TEMPOUT [-.uu]tempout.lis
746 $ DELETE/NOLOG [-.uu]tempout.lis;
747 $ perl_longlongsize=line
748 $ perl_d_longlong="define"
750 $ WRITE_RESULT "longlongsize is ''perl_longlongsize'"
751 $ WRITE_RESULT "d_longlong is ''perl_d_longlong'"
753 $! Check the prototype for getgid
757 $ WS "#include <stdlib.h>
759 $ WS "#include <stdio.h>
760 $ WS "#include <types.h>
761 $ WS "#include <unistd.h>
768 $ DEFINE SYS$ERROR _NLA0:
769 $ DEFINE SYS$OUTPUT _NLA0:
770 $ on error then continue
771 $ on warning then continue
773 $ teststatus = f$extract(9,1,$status)
774 $ DEASSIGN SYS$OUTPUT
776 $ if (teststatus.nes."1")
778 $! Okay, gid_t failed. Must be unsigned int
779 $ perl_gidtype = "unsigned int"
781 $ perl_gidtype = "gid_t"
783 $ WRITE_RESULT "Gid_t is ''perl_gidtype'"
785 $! Check to see if we've got dev_t
789 $ WS "#include <stdlib.h>
791 $ WS "#include <stdio.h>
792 $ WS "#include <types.h>
793 $ WS "#include <unistd.h>
800 $ DEFINE SYS$ERROR _NLA0:
801 $ DEFINE SYS$OUTPUT _NLA0:
802 $ on error then continue
803 $ on warning then continue
805 $ teststatus = f$extract(9,1,$status)
806 $ DEASSIGN SYS$OUTPUT
808 $ if (teststatus.nes."1")
810 $! Okay, dev_t failed. Must be unsigned int
811 $ perl_devtype = "unsigned int"
813 $ perl_devtype = "dev_t"
815 $ WRITE_RESULT "Dev_t is ''perl_devtype'"
817 $! Check to see if we've got unistd.h (which we ought to, but you never know)
821 $ WS "#include <stdlib.h>
823 $ WS "#include <unistd.h>
829 $ DEFINE SYS$ERROR _NLA0:
830 $ DEFINE SYS$OUTPUT _NLA0:
831 $ on error then continue
832 $ on warning then continue
834 $ teststatus = f$extract(9,1,$status)
835 $ DEASSIGN SYS$OUTPUT
837 $ if (teststatus.nes."1")
839 $! Okay, failed. Must not have it
840 $ perl_i_unistd = "undef"
842 $ perl_i_unistd = "define"
844 $ WRITE_RESULT "i_unistd is ''perl_i_unistd'"
846 $! Check to see if we've got shadow.h (probably not, but...)
850 $ WS "#include <stdlib.h>
852 $ WS "#include <shadow.h>
858 $ DEFINE SYS$ERROR _NLA0:
859 $ DEFINE SYS$OUTPUT _NLA0:
860 $ on error then continue
861 $ on warning then continue
863 $ teststatus = f$extract(9,1,$status)
864 $ DEASSIGN SYS$OUTPUT
866 $ if (teststatus.nes."1")
868 $! Okay, failed. Must not have it
869 $ perl_i_shadow = "undef"
871 $ perl_i_shadow = "define"
873 $ WRITE_RESULT "i_shadow is ''perl_i_shadow'"
875 $! Check to see if we've got socks.h (probably not, but...)
879 $ WS "#include <stdlib.h>
881 $ WS "#include <socks.h>
887 $ DEFINE SYS$ERROR _NLA0:
888 $ DEFINE SYS$OUTPUT _NLA0:
889 $ on error then continue
890 $ on warning then continue
892 $ teststatus = f$extract(9,1,$status)
893 $ DEASSIGN SYS$OUTPUT
895 $ if (teststatus.nes."1")
897 $! Okay, failed. Must not have it
898 $ perl_i_socks = "undef"
900 $ perl_i_socks = "define"
902 $ WRITE_RESULT "i_socks is ''perl_i_socks'"
904 $! Check the prototype for select
906 $ IF Has_Dec_C_Sockets .OR. Has_Socketshr
910 $ WS "#include <stdlib.h>
912 $ WS "#include <stdio.h>
913 $ WS "#include <types.h>
914 $ WS "#include <unistd.h>
917 $ WS "#include <socketshr.h>"
919 $ WS "#include <time.h>
920 $ WS "#include <socket.h>
927 $ WS "bar = select(2, foo, foo, foo, NULL);
931 $ DEFINE SYS$ERROR _NLA0:
932 $ DEFINE SYS$OUTPUT _NLA0:
933 $ on error then continue
934 $ on warning then continue
936 $ teststatus = f$extract(9,1,$status)
937 $ DEASSIGN SYS$OUTPUT
939 $ if (teststatus.nes."1")
941 $! Okay, fd_set failed. Must be an int
942 $ perl_selecttype = "int *"
944 $ perl_selecttype="fd_set *"
947 $ ! No sockets, so stick in an int *
948 $ perl_selecttype = "int *"
950 $ WRITE_RESULT "selectype is ''perl_selecttype'"
952 $! Check to see if fd_set exists
956 $ WS "#include <stdlib.h>
958 $ WS "#include <stdio.h>
959 $ WS "#include <types.h>
960 $ WS "#include <unistd.h>
963 $ WS "#include <socketshr.h>"
965 $ IF Has_Dec_C_Sockets
967 $ WS "#include <time.h>
968 $ WS "#include <socket.h>
977 $ DEFINE SYS$ERROR _NLA0:
978 $ DEFINE SYS$OUTPUT _NLA0:
979 $ on error then continue
980 $ on warning then continue
982 $ teststatus = f$extract(9,1,$status)
983 $ DEASSIGN SYS$OUTPUT
985 $ if (teststatus.nes."1")
987 $! Okay, fd_set failed. Must not exist
988 $ perl_d_fd_set = "undef"
990 $ perl_d_fd_set="define"
992 $ WRITE_RESULT "d_fd_set is ''perl_d_fd_set'"
994 $! Check for inttypes.h
998 $ WS "#include <stdlib.h>
1000 $ WS "#include <stdio.h>
1001 $ WS "#include <unistd.h>
1002 $ WS "#include <inttypes.h>
1008 $ DEFINE SYS$ERROR _NLA0:
1009 $ DEFINE SYS$OUTPUT _NLA0:
1010 $ on error then continue
1011 $ on warning then continue
1013 $ savedstatus = $status
1014 $ teststatus = f$extract(9,1,savedstatus)
1015 $ if (teststatus.nes."1")
1017 $ perl_i_inttypes="undef"
1018 $ DEASSIGN SYS$OUTPUT
1019 $ DEASSIGN SYS$ERROR
1023 $ link temp.obj,temp.opt/opt
1027 $ savedstatus = $status
1028 $ teststatus = f$extract(9,1,savedstatus)
1029 $ DEASSIGN SYS$OUTPUT
1030 $ DEASSIGN SYS$ERROR
1031 $ if (teststatus.nes."1")
1033 $ perl_i_inttypes="undef"
1035 $ perl_i_inttypes="define"
1038 $ WRITE_RESULT "i_inttypes is ''perl_i_inttypes'"
1040 $! Check for h_errno
1044 $ WS "#include <stdlib.h>
1046 $ WS "#include <stdio.h>
1047 $ WS "#include <unistd.h>
1048 $ WS "#include <netdb.h>
1055 $ DEFINE SYS$ERROR _NLA0:
1056 $ DEFINE SYS$OUTPUT _NLA0:
1057 $ on error then continue
1058 $ on warning then continue
1060 $ savedstatus = $status
1061 $ teststatus = f$extract(9,1,savedstatus)
1062 $ if (teststatus.nes."1")
1064 $ perl_d_herrno="undef"
1065 $ DEASSIGN SYS$OUTPUT
1066 $ DEASSIGN SYS$ERROR
1070 $ link temp.obj,temp.opt/opt
1074 $ savedstatus = $status
1075 $ teststatus = f$extract(9,1,savedstatus)
1076 $ DEASSIGN SYS$OUTPUT
1077 $ DEASSIGN SYS$ERROR
1078 $ if (teststatus.nes."1")
1080 $ perl_d_herrno="undef"
1082 $ perl_d_herrno="define"
1085 $ WRITE_RESULT "d_herrno is ''perl_d_herrno'"
1087 $! Check to see if int64_t exists
1091 $ WS "#include <stdlib.h>
1093 $ WS "#include <stdio.h>
1094 $ WS "#include <types.h>
1095 $ WS "#''perl_i_inttypes IIH
1097 $ WS "#include <inttypes.h>
1099 $ WS "#include <unistd.h>
1106 $ DEFINE SYS$ERROR _NLA0:
1107 $ DEFINE SYS$OUTPUT _NLA0:
1108 $ on error then continue
1109 $ on warning then continue
1111 $ teststatus = f$extract(9,1,$status)
1112 $ DEASSIGN SYS$OUTPUT
1113 $ DEASSIGN SYS$ERROR
1114 $ if (teststatus.nes."1")
1116 $! Okay, int64_t failed. Must not exist
1117 $ perl_d_int64_t = "undef"
1119 $ perl_d_int64_t="define"
1121 $ WRITE_RESULT "d_int64_t is ''perl_d_int64_t'"
1123 $! Check to see if off64_t exists
1127 $ WS "#include <stdlib.h>
1129 $ WS "#include <stdio.h>
1130 $ WS "#include <types.h>
1131 $ WS "#''perl_i_inttypes IIH
1133 $ WS "#include <inttypes.h>
1135 $ WS "#include <unistd.h>
1142 $ DEFINE SYS$ERROR _NLA0:
1143 $ DEFINE SYS$OUTPUT _NLA0:
1144 $ on error then continue
1145 $ on warning then continue
1147 $ teststatus = f$extract(9,1,$status)
1148 $ DEASSIGN SYS$OUTPUT
1149 $ DEASSIGN SYS$ERROR
1150 $ if (teststatus.nes."1")
1152 $! Okay, off64_t failed. Must not exist
1153 $ perl_d_off64_t = "undef"
1155 $ perl_d_off64_t="define"
1157 $ WRITE_RESULT "d_off64_t is ''perl_d_off64_t'"
1159 $! Check to see if fpos64_t exists
1163 $ WS "#include <stdlib.h>
1165 $ WS "#include <stdio.h>
1166 $ WS "#include <types.h>
1167 $ WS "#''perl_i_inttypes IIH
1169 $ WS "#include <inttypes.h>
1171 $ WS "#include <unistd.h>
1178 $ DEFINE SYS$ERROR _NLA0:
1179 $ DEFINE SYS$OUTPUT _NLA0:
1180 $ on error then continue
1181 $ on warning then continue
1183 $ teststatus = f$extract(9,1,$status)
1184 $ DEASSIGN SYS$OUTPUT
1185 $ DEASSIGN SYS$ERROR
1186 $ if (teststatus.nes."1")
1188 $! Okay, fpos64_t failed. Must not exist
1189 $ perl_d_fpos64_t = "undef"
1191 $ perl_d_fpos64_t="define"
1193 $ WRITE_RESULT "d_fpos64_t is ''perl_d_fpos64_t'"
1195 $! Check to see if gethostname exists
1197 $ IF (Has_Dec_C_Sockets .OR. Has_Socketshr)
1201 $ WS "#include <stdlib.h>
1203 $ WS "#include <stdio.h>
1204 $ WS "#include <types.h>
1205 $ WS "#include <unistd.h>
1208 $ WS "#include <socketshr.h>"
1210 $ WS "#include <time.h>
1211 $ WS "#include <socket.h>
1215 $ WS "char name[100];
1218 $ WS "baz = gethostname(name, bar);
1222 $ DEFINE SYS$ERROR _NLA0:
1223 $ DEFINE SYS$OUTPUT _NLA0:
1224 $ on error then continue
1225 $ on warning then continue
1227 $ teststatus = f$extract(9,1,$status)
1228 $ DEASSIGN SYS$OUTPUT
1229 $ DEASSIGN SYS$ERROR
1230 $ if (teststatus.nes."1")
1232 $! Okay, compile failed. Must not have it
1233 $ perl_d_gethname = "undef"
1237 $ link temp.obj,temp.opt/opt
1241 $ savedstatus = $status
1242 $ teststatus = f$extract(9,1,savedstatus)
1243 $ if (teststatus.nes."1")
1245 $ perl_d_gethname="undef"
1247 $ perl_d_gethname="define"
1251 $ ! No sockets, so no gethname
1252 $ perl_d_gethname = "undef"
1254 $ WRITE_RESULT "d_gethname is ''perl_d_gethname'"
1256 $! Check for sys/file.h
1260 $ WS "#include <stdlib.h>
1262 $ WS "#include <stdio.h>
1263 $ WS "#include <unistd.h>
1264 $ WS "#include <sys/file.h>
1270 $ DEFINE SYS$ERROR _NLA0:
1271 $ DEFINE SYS$OUTPUT _NLA0:
1272 $ on error then continue
1273 $ on warning then continue
1275 $ savedstatus = $status
1276 $ teststatus = f$extract(9,1,savedstatus)
1277 $ if (teststatus.nes."1")
1279 $ perl_i_sysfile="undef"
1280 $ DEASSIGN SYS$OUTPUT
1281 $ DEASSIGN SYS$ERROR
1285 $ link temp.obj,temp.opt/opt
1289 $ savedstatus = $status
1290 $ teststatus = f$extract(9,1,savedstatus)
1291 $ DEASSIGN SYS$OUTPUT
1292 $ DEASSIGN SYS$ERROR
1293 $ if (teststatus.nes."1")
1295 $ perl_i_sysfile="undef"
1297 $ perl_i_sysfile="define"
1300 $ WRITE_RESULT "i_sysfile is ''perl_i_sysfile'"
1302 $! Check for sys/utsname.h
1306 $ WS "#include <stdlib.h>
1308 $ WS "#include <stdio.h>
1309 $ WS "#include <unistd.h>
1310 $ WS "#include <sys/utsname.h>
1316 $ DEFINE SYS$ERROR _NLA0:
1317 $ DEFINE SYS$OUTPUT _NLA0:
1318 $ on error then continue
1319 $ on warning then continue
1321 $ savedstatus = $status
1322 $ teststatus = f$extract(9,1,savedstatus)
1323 $ if (teststatus.nes."1")
1325 $ perl_i_sysutsname="undef"
1326 $ DEASSIGN SYS$OUTPUT
1327 $ DEASSIGN SYS$ERROR
1331 $ link temp.obj,temp.opt/opt
1335 $ savedstatus = $status
1336 $ teststatus = f$extract(9,1,savedstatus)
1337 $ DEASSIGN SYS$OUTPUT
1338 $ DEASSIGN SYS$ERROR
1339 $ if (teststatus.nes."1")
1341 $ perl_i_sysutsname="undef"
1343 $ perl_i_sysutsname="define"
1346 $ WRITE_RESULT "i_sysutsname is ''perl_i_sysutsname'"
1348 $! Check for syslog.h
1352 $ WS "#include <stdlib.h>
1354 $ WS "#include <stdio.h>
1355 $ WS "#include <unistd.h>
1356 $ WS "#include <syslog.h>
1362 $ DEFINE SYS$ERROR _NLA0:
1363 $ DEFINE SYS$OUTPUT _NLA0:
1364 $ on error then continue
1365 $ on warning then continue
1367 $ savedstatus = $status
1368 $ teststatus = f$extract(9,1,savedstatus)
1369 $ if (teststatus.nes."1")
1371 $ perl_i_syslog="undef"
1372 $ DEASSIGN SYS$OUTPUT
1373 $ DEASSIGN SYS$ERROR
1377 $ link temp.obj,temp.opt/opt
1381 $ savedstatus = $status
1382 $ teststatus = f$extract(9,1,savedstatus)
1383 $ DEASSIGN SYS$OUTPUT
1384 $ DEASSIGN SYS$ERROR
1385 $ if (teststatus.nes."1")
1387 $ perl_i_syslog="undef"
1389 $ perl_i_syslog="define"
1392 $ WRITE_RESULT "i_syslog is ''perl_i_syslog'"
1398 $ WS "#include <stdlib.h>
1400 $ WS "#include <stdio.h>
1401 $ WS "#include <unistd.h>
1402 $ WS "#include <poll.h>
1408 $ DEFINE SYS$ERROR _NLA0:
1409 $ DEFINE SYS$OUTPUT _NLA0:
1410 $ on error then continue
1411 $ on warning then continue
1413 $ savedstatus = $status
1414 $ teststatus = f$extract(9,1,savedstatus)
1415 $ if (teststatus.nes."1")
1417 $ perl_i_poll="undef"
1418 $ DEASSIGN SYS$OUTPUT
1419 $ DEASSIGN SYS$ERROR
1423 $ link temp.obj,temp.opt/opt
1427 $ savedstatus = $status
1428 $ teststatus = f$extract(9,1,savedstatus)
1429 $ DEASSIGN SYS$OUTPUT
1430 $ DEASSIGN SYS$ERROR
1431 $ if (teststatus.nes."1")
1433 $ perl_i_poll="undef"
1435 $ perl_i_poll="define"
1438 $ WRITE_RESULT "i_poll is ''perl_i_poll'"
1440 $! Check for sys/uio.h
1444 $ WS "#include <stdlib.h>
1446 $ WS "#include <stdio.h>
1447 $ WS "#include <unistd.h>
1448 $ WS "#include <sys/uio.h>
1454 $ DEFINE SYS$ERROR _NLA0:
1455 $ DEFINE SYS$OUTPUT _NLA0:
1456 $ on error then continue
1457 $ on warning then continue
1459 $ savedstatus = $status
1460 $ teststatus = f$extract(9,1,savedstatus)
1461 $ if (teststatus.nes."1")
1463 $ perl_i_sysuio="undef"
1464 $ DEASSIGN SYS$OUTPUT
1465 $ DEASSIGN SYS$ERROR
1469 $ link temp.obj,temp.opt/opt
1473 $ savedstatus = $status
1474 $ teststatus = f$extract(9,1,savedstatus)
1475 $ DEASSIGN SYS$OUTPUT
1476 $ DEASSIGN SYS$ERROR
1477 $ if (teststatus.nes."1")
1479 $ perl_i_sysuio="undef"
1481 $ perl_i_sysuio="define"
1484 $ WRITE_RESULT "i_sysuio is ''perl_i_sysuio'"
1486 $! Check for sys/mode.h
1490 $ WS "#include <stdlib.h>
1492 $ WS "#include <stdio.h>
1493 $ WS "#include <unistd.h>
1494 $ WS "#include <sys/mode.h>
1500 $ DEFINE SYS$ERROR _NLA0:
1501 $ DEFINE SYS$OUTPUT _NLA0:
1502 $ on error then continue
1503 $ on warning then continue
1505 $ savedstatus = $status
1506 $ teststatus = f$extract(9,1,savedstatus)
1507 $ if (teststatus.nes."1")
1509 $ perl_i_sysmode="undef"
1510 $ DEASSIGN SYS$OUTPUT
1511 $ DEASSIGN SYS$ERROR
1513 $ If (Needs_Opt.eqs."Yes")
1515 $ link temp.obj,temp.opt/opt
1519 $ savedstatus = $status
1520 $ teststatus = f$extract(9,1,savedstatus)
1521 $ DEASSIGN SYS$OUTPUT
1522 $ DEASSIGN SYS$ERROR
1523 $ if (teststatus.nes."1")
1525 $ perl_i_sysmode="undef"
1527 $ perl_i_sysmode="define"
1530 $ WRITE_RESULT "i_sysmode is ''perl_i_sysmode'"
1532 $! Check for sys/access.h
1536 $ WS "#include <stdlib.h>
1538 $ WS "#include <stdio.h>
1539 $ WS "#include <unistd.h>
1540 $ WS "#include <sys/access.h>
1546 $ DEFINE SYS$ERROR _NLA0:
1547 $ DEFINE SYS$OUTPUT _NLA0:
1548 $ on error then continue
1549 $ on warning then continue
1551 $ savedstatus = $status
1552 $ teststatus = f$extract(9,1,savedstatus)
1553 $ if (teststatus.nes."1")
1555 $ perl_i_sysaccess="undef"
1556 $ DEASSIGN SYS$OUTPUT
1557 $ DEASSIGN SYS$ERROR
1559 $ If (Needs_Opt.eqs."Yes")
1561 $ link temp.obj,temp.opt/opt
1565 $ savedstatus = $status
1566 $ teststatus = f$extract(9,1,savedstatus)
1567 $ DEASSIGN SYS$OUTPUT
1568 $ DEASSIGN SYS$ERROR
1569 $ if (teststatus.nes."1")
1571 $ perl_i_sysaccess="undef"
1573 $ perl_i_sysaccess="define"
1576 $ WRITE_RESULT "i_sysaccess is ''perl_i_sysaccess'"
1578 $! Check for sys/security.h
1582 $ WS "#include <stdlib.h>
1584 $ WS "#include <stdio.h>
1585 $ WS "#include <unistd.h>
1586 $ WS "#include <sys/security.h>
1592 $ DEFINE SYS$ERROR _NLA0:
1593 $ DEFINE SYS$OUTPUT _NLA0:
1594 $ on error then continue
1595 $ on warning then continue
1597 $ savedstatus = $status
1598 $ teststatus = f$extract(9,1,savedstatus)
1599 $ if (teststatus.nes."1")
1601 $ perl_i_syssecrt="undef"
1602 $ DEASSIGN SYS$OUTPUT
1603 $ DEASSIGN SYS$ERROR
1605 $ If (Needs_Opt.eqs."Yes")
1607 $ link temp.obj,temp.opt/opt
1611 $ savedstatus = $status
1612 $ teststatus = f$extract(9,1,savedstatus)
1613 $ DEASSIGN SYS$OUTPUT
1614 $ DEASSIGN SYS$ERROR
1615 $ if (teststatus.nes."1")
1617 $ perl_i_syssecrt="undef"
1619 $ perl_i_syssecrt="define"
1622 $ WRITE_RESULT "i_syssecrt is ''perl_i_syssecrt'"
1624 $! Check for fcntl.h
1628 $ WS "#include <stdlib.h>
1630 $ WS "#include <stdio.h>
1631 $ WS "#include <unistd.h>
1632 $ WS "#include <fcntl.h>
1638 $ DEFINE SYS$ERROR _NLA0:
1639 $ DEFINE SYS$OUTPUT _NLA0:
1640 $ on error then continue
1641 $ on warning then continue
1643 $ savedstatus = $status
1644 $ teststatus = f$extract(9,1,savedstatus)
1645 $ if (teststatus.nes."1")
1647 $ perl_i_fcntl="undef"
1648 $ DEASSIGN SYS$OUTPUT
1649 $ DEASSIGN SYS$ERROR
1651 $ If (Needs_Opt.eqs."Yes")
1653 $ link temp.obj,temp.opt/opt
1657 $ savedstatus = $status
1658 $ teststatus = f$extract(9,1,savedstatus)
1659 $ DEASSIGN SYS$OUTPUT
1660 $ DEASSIGN SYS$ERROR
1661 $ if (teststatus.nes."1")
1663 $ perl_i_fcntl="undef"
1665 $ perl_i_fcntl="define"
1668 $ WRITE_RESULT "i_fcntl is ''perl_i_fcntl'"
1674 $ WS "#include <stdlib.h>
1676 $ WS "#include <stdio.h>
1677 $ WS "#include <unistd.h>
1678 $ WS "#include <fcntl.h>
1685 $ DEFINE SYS$ERROR _NLA0:
1686 $ DEFINE SYS$OUTPUT _NLA0:
1687 $ on error then continue
1688 $ on warning then continue
1690 $ savedstatus = $status
1691 $ teststatus = f$extract(9,1,savedstatus)
1692 $ if (teststatus.nes."1")
1694 $ perl_d_fcntl="undef"
1695 $ DEASSIGN SYS$OUTPUT
1696 $ DEASSIGN SYS$ERROR
1698 $ If (Needs_Opt.eqs."Yes")
1700 $ link temp.obj,temp.opt/opt
1704 $ savedstatus = $status
1705 $ teststatus = f$extract(9,1,savedstatus)
1706 $ DEASSIGN SYS$OUTPUT
1707 $ DEASSIGN SYS$ERROR
1708 $ if (teststatus.nes."1")
1710 $ perl_d_fcntl="undef"
1712 $ perl_d_fcntl="define"
1715 $ WRITE_RESULT "d_fcntl is ''perl_d_fcntl'"
1721 $ WS "#include <stdlib.h>
1723 $ WS "#include <string.h>
1727 $ WS "place = memchr(""foo"", 47, 3)
1731 $ DEFINE SYS$ERROR _NLA0:
1732 $ DEFINE SYS$OUTPUT _NLA0:
1733 $ on error then continue
1734 $ on warning then continue
1736 $ savedstatus = $status
1737 $ teststatus = f$extract(9,1,savedstatus)
1738 $ if (teststatus.nes."1")
1740 $ perl_d_memchr="undef"
1741 $ DEASSIGN SYS$OUTPUT
1742 $ DEASSIGN SYS$ERROR
1744 $ If (Needs_Opt.eqs."Yes")
1746 $ link temp.obj,temp.opt/opt
1750 $ savedstatus = $status
1751 $ teststatus = f$extract(9,1,savedstatus)
1752 $ DEASSIGN SYS$OUTPUT
1753 $ DEASSIGN SYS$ERROR
1754 $ if (teststatus.nes."1")
1756 $ perl_d_memchr="undef"
1758 $ perl_d_memchr="define"
1761 $ WRITE_RESULT "d_memchr is ''perl_d_memchr'"
1763 $! Check for strtoull
1767 $ WS "#include <stdlib.h>
1769 $ WS "#include <string.h>
1772 $ WS "unsigned __int64 result;
1773 $ WS "result = strtoull(""123123"", NULL, 10);
1777 $ DEFINE SYS$ERROR _NLA0:
1778 $ DEFINE SYS$OUTPUT _NLA0:
1779 $ on error then continue
1780 $ on warning then continue
1782 $ savedstatus = $status
1783 $ teststatus = f$extract(9,1,savedstatus)
1784 $ if (teststatus.nes."1")
1786 $ perl_d_strtoull="undef"
1787 $ DEASSIGN SYS$OUTPUT
1788 $ DEASSIGN SYS$ERROR
1790 $ If (Needs_Opt.eqs."Yes")
1792 $ link temp.obj,temp.opt/opt
1796 $ savedstatus = $status
1797 $ teststatus = f$extract(9,1,savedstatus)
1798 $ DEASSIGN SYS$OUTPUT
1799 $ DEASSIGN SYS$ERROR
1800 $ if (teststatus.nes."1")
1802 $ perl_d_strtoull="undef"
1804 $ perl_d_strtoull="define"
1807 $ WRITE_RESULT "d_strtoull is ''perl_d_strtoull'"
1809 $! Check for strtouq
1813 $ WS "#include <stdlib.h>
1815 $ WS "#include <string.h>
1818 $ WS "unsigned __int64 result;
1819 $ WS "result = strtouq(""123123"", NULL, 10);
1823 $ DEFINE SYS$ERROR _NLA0:
1824 $ DEFINE SYS$OUTPUT _NLA0:
1825 $ on error then continue
1826 $ on warning then continue
1828 $ savedstatus = $status
1829 $ teststatus = f$extract(9,1,savedstatus)
1830 $ if (teststatus.nes."1")
1832 $ perl_d_strtouq="undef"
1833 $ DEASSIGN SYS$OUTPUT
1834 $ DEASSIGN SYS$ERROR
1836 $ If (Needs_Opt.eqs."Yes")
1838 $ link temp.obj,temp.opt/opt
1842 $ savedstatus = $status
1843 $ teststatus = f$extract(9,1,savedstatus)
1844 $ DEASSIGN SYS$OUTPUT
1845 $ DEASSIGN SYS$ERROR
1846 $ if (teststatus.nes."1")
1848 $ perl_d_strtouq="undef"
1850 $ perl_d_strtouq="define"
1853 $ WRITE_RESULT "d_strtouq is ''perl_d_strtouq'"
1855 $! Check for strtoll
1859 $ WS "#include <stdlib.h>
1861 $ WS "#include <string.h>
1864 $ WS "__int64 result;
1865 $ WS "result = strtoll(""123123"", NULL, 10);
1869 $ DEFINE SYS$ERROR _NLA0:
1870 $ DEFINE SYS$OUTPUT _NLA0:
1871 $ on error then continue
1872 $ on warning then continue
1874 $ savedstatus = $status
1875 $ teststatus = f$extract(9,1,savedstatus)
1876 $ if (teststatus.nes."1")
1878 $ perl_d_strtoll="undef"
1879 $ DEASSIGN SYS$OUTPUT
1880 $ DEASSIGN SYS$ERROR
1882 $ If (Needs_Opt.eqs."Yes")
1884 $ link temp.obj,temp.opt/opt
1888 $ savedstatus = $status
1889 $ teststatus = f$extract(9,1,savedstatus)
1890 $ DEASSIGN SYS$OUTPUT
1891 $ DEASSIGN SYS$ERROR
1892 $ if (teststatus.nes."1")
1894 $ perl_d_strtoll="undef"
1896 $ perl_d_strtoll="define"
1899 $ WRITE_RESULT "d_strtoll is ''perl_d_strtoll'"
1901 $! Check for strtold
1905 $ WS "#include <stdlib.h>
1907 $ WS "#include <string.h>
1910 $ WS "long double result;
1911 $ WS "result = strtold(""123123"", NULL, 10);
1915 $ DEFINE SYS$ERROR _NLA0:
1916 $ DEFINE SYS$OUTPUT _NLA0:
1917 $ on error then continue
1918 $ on warning then continue
1920 $ savedstatus = $status
1921 $ teststatus = f$extract(9,1,savedstatus)
1922 $ if (teststatus.nes."1")
1924 $ perl_d_strtold="undef"
1925 $ DEASSIGN SYS$OUTPUT
1926 $ DEASSIGN SYS$ERROR
1928 $ If (Needs_Opt.eqs."Yes")
1930 $ link temp.obj,temp.opt/opt
1934 $ savedstatus = $status
1935 $ teststatus = f$extract(9,1,savedstatus)
1936 $ DEASSIGN SYS$OUTPUT
1937 $ DEASSIGN SYS$ERROR
1938 $ if (teststatus.nes."1")
1940 $ perl_d_strtold="undef"
1942 $ perl_d_strtold="define"
1945 $ WRITE_RESULT "d_strtold is ''perl_d_strtold'"
1951 $ WS "#include <stdlib.h>
1953 $ WS "#include <string.h>
1956 $ WS " __int64 result;
1957 $ WS "result = atoll(""123123"");
1961 $ DEFINE SYS$ERROR _NLA0:
1962 $ DEFINE SYS$OUTPUT _NLA0:
1963 $ on error then continue
1964 $ on warning then continue
1966 $ savedstatus = $status
1967 $ teststatus = f$extract(9,1,savedstatus)
1968 $ if (teststatus.nes."1")
1970 $ perl_d_atoll="undef"
1971 $ DEASSIGN SYS$OUTPUT
1972 $ DEASSIGN SYS$ERROR
1974 $ If (Needs_Opt.eqs."Yes")
1976 $ link temp.obj,temp.opt/opt
1980 $ savedstatus = $status
1981 $ teststatus = f$extract(9,1,savedstatus)
1982 $ DEASSIGN SYS$OUTPUT
1983 $ DEASSIGN SYS$ERROR
1984 $ if (teststatus.nes."1")
1986 $ perl_d_atoll="undef"
1988 $ perl_d_atoll="define"
1991 $ WRITE_RESULT "d_atoll is ''perl_d_atoll'"
1997 $ WS "#include <stdlib.h>
1999 $ WS "#include <string.h>
2003 $ WS "result = atolf(""123123"");
2007 $ DEFINE SYS$ERROR _NLA0:
2008 $ DEFINE SYS$OUTPUT _NLA0:
2009 $ on error then continue
2010 $ on warning then continue
2012 $ savedstatus = $status
2013 $ teststatus = f$extract(9,1,savedstatus)
2014 $ if (teststatus.nes."1")
2016 $ perl_d_atolf="undef"
2017 $ DEASSIGN SYS$OUTPUT
2018 $ DEASSIGN SYS$ERROR
2020 $ If (Needs_Opt.eqs."Yes")
2022 $ link temp.obj,temp.opt/opt
2026 $ savedstatus = $status
2027 $ teststatus = f$extract(9,1,savedstatus)
2028 $ DEASSIGN SYS$OUTPUT
2029 $ DEASSIGN SYS$ERROR
2030 $ if (teststatus.nes."1")
2032 $ perl_d_atolf="undef"
2034 $ perl_d_atolf="define"
2037 $ WRITE_RESULT "d_atolf is ''perl_d_atolf'"
2043 $ WS "#include <stdlib.h>
2045 $ WS "#include <stdio.h>
2046 $ WS "#include <unistd.h>
2049 $ WS "access("foo", F_OK);
2053 $ DEFINE SYS$ERROR _NLA0:
2054 $ DEFINE SYS$OUTPUT _NLA0:
2055 $ on error then continue
2056 $ on warning then continue
2058 $ savedstatus = $status
2059 $ teststatus = f$extract(9,1,savedstatus)
2060 $ if (teststatus.nes."1")
2062 $ perl_d_access="undef"
2063 $ DEASSIGN SYS$OUTPUT
2064 $ DEASSIGN SYS$ERROR
2066 $ If (Needs_Opt.eqs."Yes")
2068 $ link temp.obj,temp.opt/opt
2072 $ savedstatus = $status
2073 $ teststatus = f$extract(9,1,savedstatus)
2074 $ DEASSIGN SYS$OUTPUT
2075 $ DEASSIGN SYS$ERROR
2076 $ if (teststatus.nes."1")
2078 $ perl_d_access="undef"
2080 $ perl_d_access="define"
2083 $ WRITE_RESULT "d_access is ''perl_d_access'"
2089 $ WS "#include <stdlib.h>
2091 $ WS "#include <stdio.h>
2092 $ WS "#include <strings.h>
2096 $ WS "bzero(foo, 10);
2100 $ DEFINE SYS$ERROR _NLA0:
2101 $ DEFINE SYS$OUTPUT _NLA0:
2102 $ on error then continue
2103 $ on warning then continue
2105 $ savedstatus = $status
2106 $ teststatus = f$extract(9,1,savedstatus)
2107 $ if (teststatus.nes."1")
2109 $ perl_d_bzero="undef"
2110 $ DEASSIGN SYS$OUTPUT
2111 $ DEASSIGN SYS$ERROR
2113 $ If (Needs_Opt.eqs."Yes")
2115 $ link temp.obj,temp.opt/opt
2119 $ savedstatus = $status
2120 $ teststatus = f$extract(9,1,savedstatus)
2121 $ DEASSIGN SYS$OUTPUT
2122 $ DEASSIGN SYS$ERROR
2123 $ if (teststatus.nes."1")
2125 $ perl_d_bzero="undef"
2127 $ perl_d_bzero="define"
2130 $ WRITE_RESULT "d_bzero is ''perl_d_bzero'"
2136 $ WS "#include <stdlib.h>
2138 $ WS "#include <stdio.h>
2139 $ WS "#include <strings.h>
2142 $ WS "char foo[10], bar[10];
2143 $ WS "bcopy(""foo"", bar, 3);
2147 $ DEFINE SYS$ERROR _NLA0:
2148 $ DEFINE SYS$OUTPUT _NLA0:
2149 $ on error then continue
2150 $ on warning then continue
2152 $ savedstatus = $status
2153 $ teststatus = f$extract(9,1,savedstatus)
2154 $ if (teststatus.nes."1")
2156 $ perl_d_bcopy="undef"
2157 $ DEASSIGN SYS$OUTPUT
2158 $ DEASSIGN SYS$ERROR
2160 $ If (Needs_Opt.eqs."Yes")
2162 $ link temp.obj,temp.opt/opt
2166 $ savedstatus = $status
2167 $ teststatus = f$extract(9,1,savedstatus)
2168 $ DEASSIGN SYS$OUTPUT
2169 $ DEASSIGN SYS$ERROR
2170 $ if (teststatus.nes."1")
2172 $ perl_d_bcopy="undef"
2174 $ perl_d_bcopy="define"
2177 $ WRITE_RESULT "d_bcopy is ''perl_d_bcopy'"
2179 $! Check for mkstemp
2183 $ WS "#include <stdlib.h>
2185 $ WS "#include <stdio.h>
2188 $ WS "mkstemp(""foo"");
2192 $ DEFINE SYS$ERROR _NLA0:
2193 $ DEFINE SYS$OUTPUT _NLA0:
2194 $ on error then continue
2195 $ on warning then continue
2197 $ If (Needs_Opt.eqs."Yes")
2199 $ link temp.obj,temp.opt/opt
2203 $ savedstatus = $status
2204 $ teststatus = f$extract(9,1,savedstatus)
2205 $ DEASSIGN SYS$OUTPUT
2206 $ DEASSIGN SYS$ERROR
2207 $ if (teststatus.nes."1")
2209 $ perl_d_mkstemp="undef"
2211 $ perl_d_mkstemp="define"
2213 $ WRITE_RESULT "d_mkstemp is ''perl_d_mkstemp'"
2215 $! Check for mkstemps
2219 $ WS "#include <stdlib.h>
2221 $ WS "#include <stdio.h>
2224 $ WS "mkstemps(""foo"", 1);
2228 $ DEFINE SYS$ERROR _NLA0:
2229 $ DEFINE SYS$OUTPUT _NLA0:
2230 $ on error then continue
2231 $ on warning then continue
2233 $ If (Needs_Opt.eqs."Yes")
2235 $ link temp.obj,temp.opt/opt
2239 $ savedstatus = $status
2240 $ teststatus = f$extract(9,1,savedstatus)
2241 $ DEASSIGN SYS$OUTPUT
2242 $ DEASSIGN SYS$ERROR
2243 $ if (teststatus.nes."1")
2245 $ perl_d_mkstemps="undef"
2247 $ perl_d_mkstemps="define"
2249 $ WRITE_RESULT "d_mkstemps is ''perl_d_mkstemps'"
2255 $ WS "#include <stdlib.h>
2257 $ WS "#include <stdio.h>
2258 $ WS "#include <iconv.h>
2261 $ WS " iconv_t cd = (iconv_t)0;"
2262 $ WS " char *inbuf, *outbuf;"
2263 $ WS " size_t inleft, outleft;"
2264 $ WS " iconv(cd, &inbuf, &inleft, &outbuf, &outleft);"
2268 $ DEFINE SYS$ERROR _NLA0:
2269 $ DEFINE SYS$OUTPUT _NLA0:
2270 $ on error then continue
2271 $ on warning then continue
2273 $ savedstatus = $status
2274 $ teststatus = f$extract(9,1,savedstatus)
2275 $ if (teststatus.nes."1")
2277 $ perl_d_iconv="undef"
2278 $ perl_i_iconv="undef"
2279 $ DEASSIGN SYS$OUTPUT
2280 $ DEASSIGN SYS$ERROR
2282 $ If (Needs_Opt.eqs."Yes")
2284 $ link temp.obj,temp.opt/opt
2288 $ savedstatus = $status
2289 $ teststatus = f$extract(9,1,savedstatus)
2290 $ DEASSIGN SYS$OUTPUT
2291 $ DEASSIGN SYS$ERROR
2292 $ if (teststatus.nes."1")
2294 $ perl_d_iconv="undef"
2295 $ perl_i_iconv="undef"
2297 $ perl_d_iconv="define"
2298 $ perl_i_iconv="define"
2301 $ WRITE_RESULT "d_iconv is ''perl_d_iconv'"
2302 $ WRITE_RESULT "i_iconv is ''perl_i_iconv'"
2304 $! Check for mkdtemp
2308 $ WS "#include <stdlib.h>
2310 $ WS "#include <stdio.h>
2313 $ WS "mkdtemp(""foo"");
2317 $ DEFINE SYS$ERROR _NLA0:
2318 $ DEFINE SYS$OUTPUT _NLA0:
2319 $ on error then continue
2320 $ on warning then continue
2322 $ If (Needs_Opt.eqs."Yes")
2324 $ link temp.obj,temp.opt/opt
2328 $ savedstatus = $status
2329 $ teststatus = f$extract(9,1,savedstatus)
2330 $ DEASSIGN SYS$OUTPUT
2331 $ DEASSIGN SYS$ERROR
2332 $ if (teststatus.nes."1")
2334 $ perl_d_mkdtemp="undef"
2336 $ perl_d_mkdtemp="define"
2338 $ WRITE_RESULT "d_mkdtemp is ''perl_d_mkdtemp'"
2340 $! Check for setvbuf
2344 $ WS "#include <stdlib.h>
2346 $ WS "#include <stdio.h>
2350 $ WS "char Buffer[99];
2351 $ WS "foo = fopen(""foo"", ""r"");
2352 $ WS "setvbuf(foo, Buffer, 0, 0);
2356 $ DEFINE SYS$ERROR _NLA0:
2357 $ DEFINE SYS$OUTPUT _NLA0:
2358 $ on error then continue
2359 $ on warning then continue
2361 $ If (Needs_Opt.eqs."Yes")
2363 $ link temp.obj,temp.opt/opt
2367 $ teststatus = f$extract(9,1,$status)
2368 $ DEASSIGN SYS$OUTPUT
2369 $ DEASSIGN SYS$ERROR
2370 $ if (teststatus.nes."1")
2372 $ perl_d_setvbuf="undef"
2374 $ perl_d_setvbuf="define"
2376 $ WRITE_RESULT "d_setvbuf is ''perl_d_setvbuf'"
2382 $ WS "#include <stdlib.h>
2384 $ WS "#include <stdio.h>
2387 $ WS "setenv(""FOO"", ""BAR"", 0);
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,temp/opt
2402 $ teststatus = f$extract(9,1,$status)
2403 $ DEASSIGN SYS$OUTPUT
2404 $ DEASSIGN SYS$ERROR
2405 $ if (teststatus.nes."1")
2407 $ perl_d_setenv="undef"
2409 $ perl_d_setenv="define"
2411 $ WRITE_RESULT "d_setenv is ''perl_d_setenv'"
2413 $! Check for <netinet/in.h>
2415 $ if ("''Has_Dec_C_Sockets'".eqs."T").or.("''Has_Socketshr'".eqs."T")
2419 $ WS "#include <stdlib.h>
2421 $ WS "#include <stdio.h>
2422 $ if ("''Has_Socketshr'".eqs."T")
2424 $ WS "#include <socketshr.h>"
2426 $ WS "#include <netdb.h>
2428 $ WS "#include <netinet/in.h>"
2434 $ DEFINE SYS$ERROR _NLA0:
2435 $ DEFINE SYS$OUTPUT _NLA0:
2436 $ on error then continue
2437 $ on warning then continue
2439 $ If (Needs_Opt.eqs."Yes")
2441 $ link temp.obj,temp.opt/opt
2445 $ teststatus = f$extract(9,1,$status)
2446 $ DEASSIGN SYS$OUTPUT
2447 $ DEASSIGN SYS$ERROR
2448 $ if (teststatus.nes."1")
2450 $ perl_i_niin="undef"
2452 $ perl_i_niin="define"
2455 $ perl_i_niin="undef"
2457 $ WRITE_RESULT "i_niin is ''perl_i_niin'"
2459 $! Check for <netinet/tcp.h>
2461 $ if ("''Has_Dec_C_Sockets'".eqs."T").or.("''Has_Socketshr'".eqs."T")
2465 $ WS "#include <stdlib.h>
2467 $ WS "#include <stdio.h>
2468 $ if ("''Has_Socketshr'".eqs."T")
2470 $ WS "#include <socketshr.h>"
2472 $ WS "#include <netdb.h>
2474 $ WS "#include <netinet/tcp.h>"
2480 $ DEFINE SYS$ERROR _NLA0:
2481 $ DEFINE SYS$OUTPUT _NLA0:
2482 $ on error then continue
2483 $ on warning then continue
2485 $ If (Needs_Opt.eqs."Yes")
2487 $ link temp.obj,temp.opt/opt
2491 $ teststatus = f$extract(9,1,$status)
2492 $ DEASSIGN SYS$OUTPUT
2493 $ DEASSIGN SYS$ERROR
2494 $ if (teststatus.nes."1")
2496 $ perl_i_netinettcp="undef"
2498 $ perl_i_netinettcp="define"
2501 $ perl_i_netinettcp="undef"
2503 $ WRITE_RESULT "i_netinettcp is ''perl_i_netinettcp'"
2505 $! Check for endhostent
2507 $ if ("''Has_Dec_C_Sockets'".eqs."T").or.("''Has_Socketshr'".eqs."T")
2511 $ WS "#include <stdlib.h>
2513 $ WS "#include <stdio.h>
2514 $ if ("''Has_Socketshr'".eqs."T")
2516 $ WS "#include <socketshr.h>"
2518 $ WS "#include <netdb.h>
2526 $ DEFINE SYS$ERROR _NLA0:
2527 $ DEFINE SYS$OUTPUT _NLA0:
2528 $ on error then continue
2529 $ on warning then continue
2531 $ If (Needs_Opt.eqs."Yes")
2533 $ link temp.obj,temp.opt/opt
2537 $ teststatus = f$extract(9,1,$status)
2538 $ DEASSIGN SYS$OUTPUT
2539 $ DEASSIGN SYS$ERROR
2540 $ if (teststatus.nes."1")
2542 $ perl_d_endhent="undef"
2544 $ perl_d_endhent="define"
2547 $ perl_d_endhent="undef"
2549 $ WRITE_RESULT "d_endhent is ''perl_d_endhent'"
2551 $! Check for endnetent
2553 $ if ("''Has_Dec_C_Sockets'".eqs."T").or.("''Has_Socketshr'".eqs."T")
2557 $ WS "#include <stdlib.h>
2559 $ WS "#include <stdio.h>
2560 $ if ("''Has_Socketshr'".eqs."T")
2562 $ WS "#include <socketshr.h>"
2564 $ WS "#include <netdb.h>
2572 $ DEFINE SYS$ERROR _NLA0:
2573 $ DEFINE SYS$OUTPUT _NLA0:
2574 $ on error then continue
2575 $ on warning then continue
2577 $ If (Needs_Opt.eqs."Yes")
2579 $ link temp.obj,temp.opt/opt
2583 $ teststatus = f$extract(9,1,$status)
2584 $ DEASSIGN SYS$OUTPUT
2585 $ DEASSIGN SYS$ERROR
2586 $ if (teststatus.nes."1")
2588 $ perl_d_endnent="undef"
2590 $ perl_d_endnent="define"
2593 $ perl_d_endnent="undef"
2595 $ WRITE_RESULT "d_endnent is ''perl_d_endnent'"
2597 $! Check for endprotoent
2599 $ if ("''Has_Dec_C_Sockets'".eqs."T").or.("''Has_Socketshr'".eqs."T")
2603 $ WS "#include <stdlib.h>
2605 $ WS "#include <stdio.h>
2606 $ if ("''Has_Socketshr'".eqs."T")
2608 $ WS "#include <socketshr.h>"
2610 $ WS "#include <netdb.h>
2614 $ WS "endprotoent();
2618 $ DEFINE SYS$ERROR _NLA0:
2619 $ DEFINE SYS$OUTPUT _NLA0:
2620 $ on error then continue
2621 $ on warning then continue
2623 $ If (Needs_Opt.eqs."Yes")
2625 $ link temp.obj,temp.opt/opt
2629 $ teststatus = f$extract(9,1,$status)
2630 $ DEASSIGN SYS$OUTPUT
2631 $ DEASSIGN SYS$ERROR
2632 $ if (teststatus.nes."1")
2634 $ perl_d_endpent="undef"
2636 $ perl_d_endpent="define"
2639 $ perl_d_endpent="undef"
2641 $ WRITE_RESULT "d_endpent is ''perl_d_endpent'"
2643 $! Check for endservent
2645 $ if ("''Has_Dec_C_Sockets'".eqs."T").or.("''Has_Socketshr'".eqs."T")
2649 $ WS "#include <stdlib.h>
2651 $ WS "#include <stdio.h>
2652 $ if ("''Has_Socketshr'".eqs."T")
2654 $ WS "#include <socketshr.h>"
2656 $ WS "#include <netdb.h>
2664 $ DEFINE SYS$ERROR _NLA0:
2665 $ DEFINE SYS$OUTPUT _NLA0:
2666 $ on error then continue
2667 $ on warning then continue
2669 $ If (Needs_Opt.eqs."Yes")
2671 $ link temp.obj,temp.opt/opt
2675 $ teststatus = f$extract(9,1,$status)
2676 $ DEASSIGN SYS$OUTPUT
2677 $ DEASSIGN SYS$ERROR
2678 $ if (teststatus.nes."1")
2680 $ perl_d_endsent="undef"
2682 $ perl_d_endsent="define"
2685 $ perl_d_endsent="undef"
2687 $ WRITE_RESULT "d_endsent is ''perl_d_endsent'"
2689 $! Check for sethostent
2691 $ if ("''Has_Dec_C_Sockets'".eqs."T").or.("''Has_Socketshr'".eqs."T")
2695 $ WS "#include <stdlib.h>
2697 $ WS "#include <stdio.h>
2698 $ if ("''Has_Socketshr'".eqs."T")
2700 $ WS "#include <socketshr.h>"
2702 $ WS "#include <netdb.h>
2706 $ WS "sethostent(1);
2710 $ DEFINE SYS$ERROR _NLA0:
2711 $ DEFINE SYS$OUTPUT _NLA0:
2712 $ on error then continue
2713 $ on warning then continue
2715 $ If (Needs_Opt.eqs."Yes")
2717 $ link temp.obj,temp.opt/opt
2721 $ teststatus = f$extract(9,1,$status)
2722 $ DEASSIGN SYS$OUTPUT
2723 $ DEASSIGN SYS$ERROR
2724 $ if (teststatus.nes."1")
2726 $ perl_d_sethent="undef"
2728 $ perl_d_sethent="define"
2731 $ perl_d_sethent="undef"
2733 $ WRITE_RESULT "d_sethent is ''perl_d_sethent'"
2735 $! Check for setnetent
2737 $ if ("''Has_Dec_C_Sockets'".eqs."T").or.("''Has_Socketshr'".eqs."T")
2741 $ WS "#include <stdlib.h>
2743 $ WS "#include <stdio.h>
2744 $ if ("''Has_Socketshr'".eqs."T")
2746 $ WS "#include <socketshr.h>"
2748 $ WS "#include <netdb.h>
2756 $ DEFINE SYS$ERROR _NLA0:
2757 $ DEFINE SYS$OUTPUT _NLA0:
2758 $ on error then continue
2759 $ on warning then continue
2761 $ If (Needs_Opt.eqs."Yes")
2763 $ link temp.obj,temp.opt/opt
2767 $ teststatus = f$extract(9,1,$status)
2768 $ DEASSIGN SYS$OUTPUT
2769 $ DEASSIGN SYS$ERROR
2770 $ if (teststatus.nes."1")
2772 $ perl_d_setnent="undef"
2774 $ perl_d_setnent="define"
2777 $ perl_d_setnent="undef"
2779 $ WRITE_RESULT "d_setnent is ''perl_d_setnent'"
2781 $! Check for setprotoent
2783 $ if ("''Has_Dec_C_Sockets'".eqs."T").or.("''Has_Socketshr'".eqs."T")
2787 $ WS "#include <stdlib.h>
2789 $ WS "#include <stdio.h>
2790 $ if ("''Has_Socketshr'".eqs."T")
2792 $ WS "#include <socketshr.h>"
2794 $ WS "#include <netdb.h>
2798 $ WS "setprotoent(1);
2802 $ DEFINE SYS$ERROR _NLA0:
2803 $ DEFINE SYS$OUTPUT _NLA0:
2804 $ on error then continue
2805 $ on warning then continue
2807 $ If (Needs_Opt.eqs."Yes")
2809 $ link temp.obj,temp.opt/opt
2813 $ teststatus = f$extract(9,1,$status)
2814 $ DEASSIGN SYS$OUTPUT
2815 $ DEASSIGN SYS$ERROR
2816 $ if (teststatus.nes."1")
2818 $ perl_d_setpent="undef"
2820 $ perl_d_setpent="define"
2823 $ perl_d_setpent="undef"
2825 $ WRITE_RESULT "d_setpent is ''perl_d_setpent'"
2827 $! Check for setservent
2829 $ if ("''Has_Dec_C_Sockets'".eqs."T").or.("''Has_Socketshr'".eqs."T")
2833 $ WS "#include <stdlib.h>
2835 $ WS "#include <stdio.h>
2836 $ if ("''Has_Socketshr'".eqs."T")
2838 $ WS "#include <socketshr.h>"
2840 $ WS "#include <netdb.h>
2844 $ WS "setservent(1);
2848 $ DEFINE SYS$ERROR _NLA0:
2849 $ DEFINE SYS$OUTPUT _NLA0:
2850 $ on error then continue
2851 $ on warning then continue
2853 $ If (Needs_Opt.eqs."Yes")
2855 $ link temp.obj,temp.opt/opt
2859 $ teststatus = f$extract(9,1,$status)
2860 $ DEASSIGN SYS$OUTPUT
2861 $ DEASSIGN SYS$ERROR
2862 $ if (teststatus.nes."1")
2864 $ perl_d_setsent="undef"
2866 $ perl_d_setsent="define"
2869 $ perl_d_setsent="undef"
2871 $ WRITE_RESULT "d_setsent is ''perl_d_setsent'"
2873 $! Check for gethostent
2875 $ if ("''Has_Dec_C_Sockets'".eqs."T").or.("''Has_Socketshr'".eqs."T")
2879 $ WS "#include <stdlib.h>
2881 $ WS "#include <stdio.h>
2882 $ if ("''Has_Socketshr'".eqs."T")
2884 $ WS "#include <socketshr.h>"
2886 $ WS "#include <netdb.h>
2894 $ DEFINE SYS$ERROR _NLA0:
2895 $ DEFINE SYS$OUTPUT _NLA0:
2896 $ on error then continue
2897 $ on warning then continue
2899 $ If (Needs_Opt.eqs."Yes")
2901 $ link temp.obj,temp.opt/opt
2905 $ teststatus = f$extract(9,1,$status)
2906 $ DEASSIGN SYS$OUTPUT
2907 $ DEASSIGN SYS$ERROR
2908 $ if (teststatus.nes."1")
2910 $ perl_d_gethent="undef"
2912 $ perl_d_gethent="define"
2915 $ perl_d_gethent="undef"
2917 $ WRITE_RESULT "d_gethent is ''perl_d_gethent'"
2919 $! Check for getnetent
2921 $ if ("''Has_Dec_C_Sockets'".eqs."T").or.("''Has_Socketshr'".eqs."T")
2925 $ WS "#include <stdlib.h>
2927 $ WS "#include <stdio.h>
2928 $ if ("''Has_Socketshr'".eqs."T")
2930 $ WS "#include <socketshr.h>"
2932 $ WS "#include <netdb.h>
2940 $ DEFINE SYS$ERROR _NLA0:
2941 $ DEFINE SYS$OUTPUT _NLA0:
2942 $ on error then continue
2943 $ on warning then continue
2945 $ If (Needs_Opt.eqs."Yes")
2947 $ link temp.obj,temp.opt/opt
2951 $ teststatus = f$extract(9,1,$status)
2952 $ DEASSIGN SYS$OUTPUT
2953 $ DEASSIGN SYS$ERROR
2954 $ if (teststatus.nes."1")
2956 $ perl_d_getnent="undef"
2958 $ perl_d_getnent="define"
2961 $ perl_d_getnent="undef"
2963 $ WRITE_RESULT "d_getnent is ''perl_d_getnent'"
2965 $! Check for getprotoent
2967 $ if ("''Has_Dec_C_Sockets'".eqs."T").or.("''Has_Socketshr'".eqs."T")
2971 $ WS "#include <stdlib.h>
2973 $ WS "#include <stdio.h>
2974 $ if ("''Has_Socketshr'".eqs."T")
2976 $ WS "#include <socketshr.h>"
2978 $ WS "#include <netdb.h>
2982 $ WS "getprotoent();
2986 $ DEFINE SYS$ERROR _NLA0:
2987 $ DEFINE SYS$OUTPUT _NLA0:
2988 $ on error then continue
2989 $ on warning then continue
2991 $ If (Needs_Opt.eqs."Yes")
2993 $ link temp.obj,temp.opt/opt
2997 $ teststatus = f$extract(9,1,$status)
2998 $ DEASSIGN SYS$OUTPUT
2999 $ DEASSIGN SYS$ERROR
3000 $ if (teststatus.nes."1")
3002 $ perl_d_getpent="undef"
3004 $ perl_d_getpent="define"
3007 $ perl_d_getpent="undef"
3009 $ WRITE_RESULT "d_getpent is ''perl_d_getpent'"
3011 $! Check for getservent
3013 $ if ("''Has_Dec_C_Sockets'".eqs."T").or.("''Has_Socketshr'".eqs."T")
3017 $ WS "#include <stdlib.h>
3019 $ WS "#include <stdio.h>
3020 $ if ("''Has_Socketshr'".eqs."T")
3022 $ WS "#include <socketshr.h>"
3024 $ WS "#include <netdb.h>
3032 $ DEFINE SYS$ERROR _NLA0:
3033 $ DEFINE SYS$OUTPUT _NLA0:
3034 $ on error then continue
3035 $ on warning then continue
3037 $ If (Needs_Opt.eqs."Yes")
3039 $ link temp.obj,temp.opt/opt
3043 $ teststatus = f$extract(9,1,$status)
3044 $ DEASSIGN SYS$OUTPUT
3045 $ DEASSIGN SYS$ERROR
3046 $ if (teststatus.nes."1")
3048 $ perl_d_getsent="undef"
3050 $ perl_d_getsent="define"
3053 $ perl_d_getsent="undef"
3055 $ WRITE_RESULT "d_getsent is ''perl_d_getsent'"
3057 $! Check for socklen_t
3059 $ if ("''Has_Dec_C_Sockets'".eqs."T").or.("''Has_Socketshr'".eqs."T")
3063 $ WS "#include <stdlib.h>
3065 $ WS "#include <stdio.h>
3066 $ IF ("''Has_Socketshr'".eqs."T")
3068 $ WS "#include <socketshr.h>"
3070 $ WS "#include <netdb.h>
3074 $ WS "socklen_t x = 16;
3078 $ DEFINE SYS$ERROR _NLA0:
3079 $ DEFINE SYS$OUTPUT _NLA0:
3080 $ on error then continue
3081 $ on warning then continue
3083 $ If (Needs_Opt.eqs."Yes")
3085 $ link temp.obj,temp.opt/opt
3089 $ teststatus = f$extract(9,1,$status)
3090 $ DEASSIGN SYS$OUTPUT
3091 $ DEASSIGN SYS$ERROR
3092 $ if (teststatus.nes."1")
3094 $ perl_d_socklen_t="undef"
3096 $ perl_d_socklen_t="define"
3099 $ perl_d_socklen_t="undef"
3101 $ WRITE_RESULT "d_socklen_t is ''perl_d_socklen_t'"
3103 $! Check for pthread_yield
3105 $ if ("''use_threads'".eqs."T")
3109 $ WS "#include <stdlib.h>
3111 $ WS "#include <pthread.h>
3112 $ WS "#include <stdio.h>
3115 $ WS "pthread_yield();
3119 $ DEFINE SYS$ERROR _NLA0:
3120 $ DEFINE SYS$OUTPUT _NLA0:
3121 $ on error then continue
3122 $ on warning then continue
3124 $ teststatus = f$extract(9,1,$status)
3125 $ DEASSIGN SYS$OUTPUT
3126 $ DEASSIGN SYS$ERROR
3127 $ if (teststatus.nes."1")
3129 $ perl_d_pthread_yield="undef"
3131 $ perl_d_pthread_yield="define"
3134 $ perl_d_pthread_yield="undef"
3136 $ WRITE_RESULT "d_pthread_yield is ''perl_d_pthread_yield'"
3138 $! Check for sched_yield
3140 $ if ("''use_threads'".eqs."T")
3144 $ WS "#include <stdlib.h>
3146 $ WS "#include <pthread.h>
3147 $ WS "#include <stdio.h>
3150 $ WS "sched_yield();
3154 $ DEFINE SYS$ERROR _NLA0:
3155 $ DEFINE SYS$OUTPUT _NLA0:
3156 $ on error then continue
3157 $ on warning then continue
3159 $ teststatus = f$extract(9,1,$status)
3160 $ DEASSIGN SYS$OUTPUT
3161 $ DEASSIGN SYS$ERROR
3162 $ if (teststatus.nes."1")
3164 $ perl_d_sched_yield="undef"
3165 $ perl_sched_yield = " "
3167 $ perl_d_sched_yield="define"
3168 $ perl_sched_yield = "sched_yield"
3171 $ perl_d_sched_yield="undef"
3172 $ perl_sched_yield = " "
3174 $ WRITE_RESULT "d_sched_yield is ''perl_d_sched_yield'"
3175 $ WRITE_RESULT "sched_yield is ''perl_sched_yield'"
3177 $! Check for generic pointer size
3181 $ WS "#include <stdlib.h>
3183 $ WS "#include <stdio.h>
3187 $ WS "foo = sizeof(char *);
3188 $ WS "printf(""%d\n"", foo);
3192 $ DEFINE SYS$ERROR _NLA0:
3193 $ DEFINE SYS$OUTPUT _NLA0:
3194 $ ON ERROR THEN CONTINUE
3195 $ ON WARNING THEN CONTINUE
3197 $ If (Needs_Opt.eqs."Yes")
3199 $ link temp.obj,temp.opt/opt
3203 $ OPEN/WRITE TEMPOUT [-.uu]tempout.lis
3204 $ DEASSIGN SYS$OUTPUT
3205 $ DEASSIGN SYS$ERROR
3206 $ DEFINE SYS$ERROR TEMPOUT
3207 $ DEFINE SYS$OUTPUT TEMPOUT
3210 $ DEASSIGN SYS$OUTPUT
3211 $ DEASSIGN SYS$ERROR
3212 $ OPEN/READ TEMPOUT [-.uu]tempout.lis
3215 $ DELETE/NOLOG [-.uu]tempout.lis;
3218 $ WRITE_RESULT "ptrsize is ''perl_ptrsize'"
3220 $! Check for size_t size
3224 $ WS "#include <stdlib.h>
3226 $ WS "#include <stdio.h>
3230 $ WS "foo = sizeof(size_t);
3231 $ WS "printf(""%d\n"", foo);
3235 $ DEFINE SYS$ERROR _NLA0:
3236 $ DEFINE SYS$OUTPUT _NLA0:
3237 $ ON ERROR THEN CONTINUE
3238 $ ON WARNING THEN CONTINUE
3242 $ link temp.obj,temp.opt/opt
3246 $ OPEN/WRITE TEMPOUT [-.uu]tempout.lis
3247 $ DEASSIGN SYS$OUTPUT
3248 $ DEASSIGN SYS$ERROR
3249 $ DEFINE SYS$ERROR TEMPOUT
3250 $ DEFINE SYS$OUTPUT TEMPOUT
3253 $ DEASSIGN SYS$OUTPUT
3254 $ DEASSIGN SYS$ERROR
3255 $ OPEN/READ TEMPOUT [-.uu]tempout.lis
3258 $ DELETE/NOLOG [-.uu]tempout.lis;
3260 $ perl_sizesize=line
3261 $ WRITE_RESULT "sizesize is ''perl_sizesize'"
3263 $! Check rand48 and its ilk
3267 $ WS "#include <stdlib.h>
3269 $ WS "#include <stdio.h>
3272 $ WS "srand48(12L);"
3277 $ DEFINE SYS$ERROR _NLA0:
3278 $ DEFINE SYS$OUTPUT _NLA0:
3279 $ ON ERROR THEN CONTINUE
3280 $ ON WARNING THEN CONTINUE
3282 $ If (Needs_Opt.eqs."Yes")
3284 $ link temp,temp.opt/opt
3288 $ teststatus = f$extract(9,1,$status)
3289 $ DEASSIGN SYS$OUTPUT
3290 $ DEASSIGN SYS$ERROR
3291 $ if (teststatus.nes."1")
3293 $ perl_drand01="random()"
3294 $ perl_randseedtype = "unsigned"
3295 $ perl_seedfunc = "srandom"
3299 $ WS "#include <stdlib.h>
3301 $ WS "#include <stdio.h>
3308 $! copy temp.c sys$output
3310 $ DEFINE SYS$ERROR _NLA0:
3311 $ DEFINE SYS$OUTPUT _NLA0:
3312 $ ON ERROR THEN CONTINUE
3313 $ ON WARNING THEN CONTINUE
3315 $ If (Needs_Opt.eqs."Yes")
3317 $ link temp,temp.opt/opt
3321 $ teststatus = f$extract(9,1,$status)
3322 $ DEASSIGN SYS$OUTPUT
3323 $ DEASSIGN SYS$ERROR
3324 $ if (teststatus.nes."1")
3326 $ perl_drand01="(((float)rand())/((float)RAND_MAX))"
3327 $ perl_randseedtype = "unsigned"
3328 $ perl_seedfunc = "srand"
3330 $ WRITE_RESULT "drand01 is ''perl_drand01'"
3333 $! Done with compiler checks. Clean up.
3334 $ if f$search("temp.c").nes."" then DELETE/NOLOG temp.c;*
3335 $ if f$search("temp.obj").nes."" then DELETE/NOLOG temp.obj;*
3336 $ if f$search("temp.exe").nes."" then DELETE/NOLOG temp.exe;*
3337 $ if f$search("temp.opt").nes."" then DELETE/NOLOG Temp.opt;*
3340 $! Some that are compiler or VMS version sensitive
3343 $ IF "''Using_Gnu_C'".EQS."Yes"
3345 $ perl_d_attribut="define"
3346 $ perl_vms_cc_type="gcc"
3348 $ perl_vms_cc_type="cc"
3349 $ perl_d_attribut="undef"
3352 $! Dec C >= 5.2 and VMS ver >= 7.0
3353 $ IF (Using_Dec_C).AND.(F$INTEGER(Dec_C_Version).GE.50200000).AND.(VMS_VER .GES. "7.0")
3355 $ perl_d_bcmp="define"
3356 $ perl_d_gettimeod="define"
3357 $ perl_d_uname="define"
3358 $ perl_d_sigaction="define"
3359 $ perl_d_truncate="define"
3360 $ perl_d_wait4="define"
3361 $ perl_d_index="define"
3362 $ perl_pidtype="pid_t"
3363 $ 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"
3364 $ psnwc1="""ZERO"",""HUP"",""INT"",""QUIT"",""ILL"",""TRAP"",""IOT"",""EMT"",""FPE"",""KILL"",""BUS"",""SEGV"",""SYS"","
3365 $ psnwc2="""PIPE"",""ALRM"",""TERM"",""ABRT"",""USR1"",""USR2"",""SPARE18"",""SPARE19"",""CHLD"",""CONT"",""STOP"",""TSTP"","
3366 $ psnwc3="""TTIN"",""TTOU"",""DEBUG"",""SPARE27"",""SPARE28"",""SPARE29"",""SPARE30"",""SPARE31"",""SPARE32"",""RTMIN"",""RTMAX"",0"
3367 $perl_sig_name_with_commas = psnwc1 + psnwc2 + psnwc3
3368 $ 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"
3369 $ 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"
3370 $ perl_sig_num_with_commas=perl_sig_num_init
3371 $ perl_uidtype="uid_t"
3372 $ perl_d_pathconf="define"
3373 $ perl_d_fpathconf="define"
3374 $ perl_d_sysconf="define"
3375 $ perl_d_sigsetjmp="define"
3377 $ perl_pidtype="unsigned int"
3378 $ perl_d_gettimeod="undef"
3379 $ perl_d_bcmp="undef"
3380 $ perl_d_uname="undef"
3381 $ perl_d_sigaction="undef"
3382 $ perl_d_truncate="undef"
3383 $ perl_d_wait4="undef"
3384 $ perl_d_index="undef"
3385 $ perl_sig_name="ZERO HUP INT QUIT ILL TRAP IOT EMT FPE KILL BUS SEGV SYS PIPE ALRM TERM ABRT USR1 USR2"",0"
3386 $ psnwc1="""ZERO"",""HUP"",""INT"",""QUIT"",""ILL"",""TRAP"",""IOT"",""EMT"",""FPE"",""KILL"",""BUS"",""SEGV"",""SYS"","
3387 $ psnwc2="""PIPE"",""ALRM"",""TERM"",""ABRT"",""USR1"",""USR2"",0"
3388 $ perl_sig_name_with_commas = psnwc1 + psnwc2
3389 $ perl_sig_num="0 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 6 16 17"",0"
3390 $ perl_sig_num_init="0,1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,6,16,17,0"
3391 $ perl_sig_num_with_commas=perl_sig_num_init
3392 $ perl_uidtype="unsigned int"
3393 $ perl_d_pathconf="undef"
3394 $ perl_d_fpathconf="undef"
3395 $ perl_d_sysconf="undef"
3396 $ perl_d_sigsetjmp="undef"
3400 $ IF ("''Using_Dec_C'".EQS."Yes")
3402 $ perl_d_mbstowcs="define"
3403 $ perl_d_mbtowc="define"
3404 $ perl_d_stdiobase="define"
3405 $ perl_d_stdio_ptr_lval="define"
3406 $ perl_d_stdio_cnt_lval="define"
3407 $ perl_d_stdstdio="define"
3408 $ perl_d_wcstombs="define"
3409 $ perl_d_mblen="define"
3410 $ perl_d_mktime="define"
3411 $ perl_d_strcoll="define"
3412 $ perl_d_strxfrm="define"
3413 $ perl_d_wctomb="define"
3414 $ perl_i_locale="define"
3415 $ perl_d_locconv="define"
3416 $ perl_d_setlocale="define"
3417 $ perl_vms_cc_type="decc"
3419 $ perl_d_mbstowcs="undef"
3420 $ perl_d_mbtowc="undef"
3421 $ perl_d_stdiobase="undef"
3422 $ perl_d_stdio_ptr_lval="undef"
3423 $ perl_d_stdio_cnt_lval="undef"
3424 $ perl_d_stdstdio="undef"
3425 $ perl_d_wcstombs="undef"
3426 $ perl_d_mblen="undef"
3427 $ perl_d_mktime="undef"
3428 $ perl_d_strcoll="undef"
3429 $ perl_d_strxfrm="undef"
3430 $ perl_d_wctomb="undef"
3431 $ perl_i_locale="undef"
3432 $ perl_d_locconv="undef"
3433 $ perl_d_setlocale="undef"
3437 $ if ("''Has_Socketshr'".EQS."T").OR.("''Has_Dec_C_Sockets'".EQS."T")
3439 $ perl_d_vms_do_sockets="define"
3440 $ perl_d_htonl="define"
3441 $ perl_d_socket="define"
3442 $ perl_d_select="define"
3443 $ perl_netdb_host_type="char *"
3444 $ perl_netdb_hlen_type="int"
3445 $ perl_netdb_name_type="char *"
3446 $ perl_netdb_net_type="long"
3447 $ perl_d_gethbyaddr="define"
3448 $ perl_d_gethbyname="define"
3449 $ perl_d_getnbyaddr="define"
3450 $ perl_d_getnbyname="define"
3451 $ perl_d_getpbynumber="define"
3452 $ perl_d_getpbyname="define"
3453 $ perl_d_getsbyport="define"
3454 $ perl_d_getsbyname="define"
3455 $ perl_d_gethostprotos="define"
3456 $ perl_d_getnetprotos="define"
3457 $ perl_d_getprotoprotos="define"
3458 $ perl_d_getservprotos="define"
3459 $ IF ("''Using_Dec_C'".EQS."Yes")
3461 $ perl_socksizetype="unsigned int"
3463 $ perl_socksizetype="int *"
3466 $ perl_d_vms_do_sockets="undef"
3467 $ perl_d_htonl="undef"
3468 $ perl_d_socket="undef"
3469 $ perl_d_select="undef"
3470 $ perl_netdb_host_type="char *"
3471 $ perl_netdb_hlen_type="int"
3472 $ perl_netdb_name_type="char *"
3473 $ perl_netdb_net_type="long"
3474 $ perl_d_gethbyaddr="undef"
3475 $ perl_d_gethbyname="undef"
3476 $ perl_d_getnbyaddr="undef"
3477 $ perl_d_getnbyname="undef"
3478 $ perl_d_getpbynumber="undef"
3479 $ perl_d_getpbyname="undef"
3480 $ perl_d_getsbyport="undef"
3481 $ perl_d_getsbyname="undef"
3482 $ perl_d_gethostprotos="undef"
3483 $ perl_d_getnetprotos="undef"
3484 $ perl_d_getprotoprotos="undef"
3485 $ perl_d_getservprotos="undef"
3486 $ perl_socksizetype="undef"
3491 $ perl_usethreads="define"
3492 $ perl_d_pthreads_created_joinable="define"
3493 $ if (VMS_VER .GES. "7.0")
3495 $ perl_d_oldpthreads="undef"
3497 $ perl_d_oldpthreads="define"
3500 $ perl_d_oldpthreads="undef"
3501 $ perl_usethreads="undef"
3503 $ perl_d_pthreads_created_joinable="undef"
3506 $! new (5.005_62++) typedefs for primitives
3508 $ perl_ivtype="long"
3509 $ perl_uvtype="unsigned long"
3510 $ perl_i8type="char"
3511 $ perl_u8type="unsigned char"
3512 $ perl_i16type="short"
3513 $ perl_u16type="unsigned short"
3514 $ perl_i32type="int"
3515 $ perl_u32type="unsigned int"
3516 $ perl_i64type="long long"
3517 $ perl_u64type="unsigned long long"
3518 $ perl_nvtype="double"
3520 $ GOTO beyond_type_size_check
3524 $! Check for type sizes
3528 $ WS "#include <stdlib.h>
3530 $ WS "#include <stdio.h>
3533 $ WS "printf(""%d\n"", sizeof(''type'));"
3537 $ DEFINE SYS$ERROR _NLA0:
3538 $ DEFINE SYS$OUTPUT _NLA0:
3539 $ ON ERROR THEN CONTINUE
3540 $ ON WARNING THEN CONTINUE
3542 $ If (Needs_Opt.eqs."Yes")
3544 $ link temp.obj,temp.opt/opt
3548 $ OPEN/WRITE TEMPOUT [-.uu]tempout.lis
3549 $ DEASSIGN SYS$OUTPUT
3550 $ DEASSIGN SYS$ERROR
3551 $ DEFINE SYS$ERROR TEMPOUT
3552 $ DEFINE SYS$OUTPUT TEMPOUT
3555 $ DEASSIGN SYS$OUTPUT
3556 $ DEASSIGN SYS$ERROR
3557 $ OPEN/READ TEMPOUT [-.uu]tempout.lis
3560 $ DELETE/NOLOG [-.uu]tempout.lis;
3561 $ WRITE_RESULT "''size_name' is ''line'"
3565 $beyond_type_size_check:
3568 $ type = "''perl_ivtype'"
3569 $ size_name = "ivsize"
3570 $ gosub type_size_check
3571 $ perl_ivsize="''line'"
3572 $ IF type .eqs. "long"
3573 $ THEN perl_longsize = "''line'"
3576 $ size_name = "longsize"
3577 $ gosub type_size_check
3578 $ perl_longsize="''line'"
3581 $ type = "''perl_uvtype'"
3582 $ size_name = "uvsize"
3583 $ gosub type_size_check
3584 $ perl_uvsize="''line'"
3586 $ type = "''perl_i8type'"
3587 $ size_name = "i8size"
3588 $ gosub type_size_check
3589 $ perl_i8size="''line'"
3591 $ type = "''perl_u8type'"
3592 $ size_name = "u8size"
3593 $ gosub type_size_check
3594 $ perl_u8size="''line'"
3596 $ type = "''perl_i16type'"
3597 $ size_name = "i16size"
3598 $ gosub type_size_check
3599 $ perl_i16size="''line'"
3600 $ IF type .eqs. "short"
3601 $ THEN perl_shortsize="''line'"
3603 $ type = "''perl_i16type'"
3604 $ size_name = "shortsize"
3605 $ gosub type_size_check
3606 $ perl_shortsize="''line'"
3609 $ type = "''perl_u16type'"
3610 $ size_name = "u16size"
3611 $ gosub type_size_check
3612 $ perl_u16size="''line'"
3614 $ type = "''perl_i32type'"
3615 $ size_name = "i32size"
3616 $ gosub type_size_check
3617 $ perl_i32size="''line'"
3618 $ IF type .eqs. "int"
3619 $ THEN perl_intsize="''perl_i32size'"
3622 $ size_name = "intsize"
3623 $ gosub type_size_check
3624 $ perl_intsize="''line'"
3627 $ type = "''perl_u32type'"
3628 $ size_name = "u32size"
3629 $ gosub type_size_check
3630 $ perl_u32size="''line'"
3634 $ type = "''perl_i64type'"
3635 $ size_name = "i64size"
3636 $ gosub type_size_check
3637 $ perl_i64size="''line'"
3638 $ perl_ivtype="''perl_i64type'"
3640 $ type = "''perl_u64type'"
3641 $ size_name = "u64size"
3642 $ gosub type_size_check
3643 $ perl_u64size="''line'"
3644 $ perl_uvtype="''perl_u64type'"
3645 $ perl_nvtype="long double"
3647 $ perl_i64size="undef"
3648 $ perl_u64size="undef"
3651 $ perl_ivdformat="""ld"""
3652 $ perl_uvuformat="""lu"""
3653 $ perl_uvoformat="""lo"""
3654 $ perl_uvxformat="""lx"""
3656 $! Finally the composite ones. All config
3657 $ perl_installarchlib="''perl_prefix':[lib.''archname'.''version']"
3658 $ perl_installsitearch="''perl_prefix':[lib.site_perl.''archname']"
3659 $ perl_myhostname="''myhostname'"
3660 $ perl_mydomain="''mydomain'"
3661 $ perl_perladmin="''perladmin'"
3662 $ perl_myuname:="''osname' ''myname' ''osvers' ''f$edit(hwname, "TRIM")'"
3663 $ perl_archlibexp="''perl_prefix':[lib.''archname'.''version']"
3664 $ perl_archlib="''perl_prefix':[lib.''archname'.''version']"
3665 $ perl_oldarchlibexp="''perl_prefix':[lib.''archname']"
3666 $ perl_oldarchlib="''perl_prefix':[lib.''archname']"
3667 $ perl_sitearchexp="''perl_prefix':[lib.site_perl.''archname']"
3668 $ perl_sitearch="''perl_prefix':[lib.site_perl.''archname']"
3671 $ perl_ccflags="/Include=[]/Standard=Relaxed_ANSI/Prefix=All/Obj=''perl_obj_ext'/NoList''cc_flags'"
3673 $ if use_vmsdebug_perl .eqs. "Y"
3675 $ perl_optimize="/Debug/NoOpt"
3676 $ perl_dbgprefix = "DBG"
3679 $ perl_dbgprefix = ""
3682 $! Okay, we've got everything configured. Now go write out a config.sh.
3683 $ echo4 "Creating config.sh..."
3684 $ open/write CONFIG [-]config.sh
3685 $ WC := "write CONFIG"
3687 $ WC "# This file generated by Configure.COM on a VMS system."
3688 $ WC "# Time: " + cf_time
3690 $ WC "CONFIGDOTSH=true"
3691 $ WC "package='" + perl_package + "'"
3692 $ WC "config_args='" + config_args + "'"
3693 $ WC "d_nv_preserves_uv='" + perl_d_nv_preserves_uv + "'"
3694 $ WC "use5005threads='" + perl_use5005threads + "'"
3695 $ WC "useithreads='" + perl_useithreads + "'"
3696 $ WC "CONFIG='" + perl_config + "'"
3697 $ WC "cf_time='" + cf_time + "'"
3698 $ WC "cf_by='" + cf_by + "'"
3699 $ WC "cpp_stuff='" + perl_cpp_stuff + "'"
3700 $ WC "ccdlflags='" + perl_ccdlflags + "'"
3701 $ WC "cccdlflags='" + perl_cccdlflags + "'"
3702 $ WC "mab='" + perl_mab + "'"
3703 $ WC "libpth='" + perl_libpth + "'"
3704 $ WC "ld='" + perl_ld + "'"
3705 $ WC "lddlflags='" + perl_lddlflags + "'"
3706 $ WC "ranlib='" + perl_ranlib + "'"
3707 $ WC "ar='" + perl_ar + "'"
3708 $ WC "full_ar='" + perl_full_ar + "'"
3709 $ WC "eunicefix='" + perl_eunicefix + "'"
3710 $ WC "hint='" + perl_hint +"'"
3711 $ WC "hintfile='" + perl_hintfile + "'"
3712 $ WC "shrplib='" + perl_shrplib + "'"
3713 $ WC "usemymalloc='" + perl_usemymalloc + "'"
3714 $ WC "usevfork='" + perl_usevfork + "'"
3715 $ WC "useposix='false'"
3716 $ WC "spitshell='write sys$output '"
3717 $ WC "dlsrc='dl_vms.c'"
3718 $ WC "binexp='" + perl_binexp + "'"
3719 $ WC "man1ext='" + perl_man1ext + "'"
3720 $ WC "man3ext='" + perl_man3ext + "'"
3721 $ WC "archname='" + archname + "'"
3722 $ WC "osvers='" + osvers + "'"
3723 $ WC "prefix='" + perl_prefix + "'"
3724 $ WC "builddir='" + perl_builddir + "'"
3725 $ WC "installbin='" + perl_installbin + "'"
3726 $ WC "installscript='" + perl_installscript + "'"
3727 $ WC "installman1dir='" + perl_installman1dir + "'"
3728 $ WC "installman3dir='" + perl_installman3dir + "'"
3729 $ WC "installprivlib='" + perl_installprivlib + "'"
3730 $ WC "installarchlib='" + perl_installarchlib + "'"
3731 $ WC "installsitelib='" + perl_installsitelib + "'"
3732 $ WC "installsitearch='" + perl_installsitearch + "'"
3733 $ WC "path_sep='" + perl_path_sep + "'"
3734 $ WC "vms_cc_type='" + perl_vms_cc_type + "'"
3735 $ WC "d_attribut='" + perl_d_attribut + "'"
3736 $ WC "cc='" + perl_cc + "'"
3737 $ WC "ccflags='" + perl_ccflags + "'"
3738 $ WC "optimize='" + perl_optimize + "'"
3739 $ WC "dbgprefix='" + perl_dbgprefix + "'"
3740 $ WC "d_vms_do_sockets='" + perl_d_vms_do_sockets + "'"
3741 $ WC "d_socket='" + perl_d_socket + "'"
3742 $ WC "d_sockpair='" + perl_d_sockpair + "'"
3743 $ WC "d_gethent='" + perl_d_gethent + "'"
3744 $ WC "d_getsent='" + perl_d_getsent + "'"
3745 $ WC "d_socklen_t='" + perl_d_socklen_t + "'"
3746 $ WC "d_select='" + perl_d_select + "'"
3747 $ WC "i_niin='" + perl_i_niin + "'"
3748 $ WC "i_netinettcp='" + perl_i_netinettcp + "'"
3749 $ WC "i_neterrno='" + perl_i_neterrno + "'"
3750 $ WC "d_stdstdio='" + perl_d_stdstdio + "'"
3751 $ WC "d_stdio_ptr_lval='" + perl_d_stdio_ptr_lval + "'"
3752 $ WC "d_stdio_cnt_lval='" + perl_d_stdio_cnt_lval + "'"
3753 $ WC "d_stdiobase='" + perl_d_stdiobase + "'"
3754 $ WC "d_locconv='" + perl_d_locconv + "'"
3755 $ WC "d_setlocale='" + perl_d_setlocale + "'"
3756 $ WC "i_locale='" + perl_i_locale + "'"
3757 $ WC "d_mbstowcs='" + perl_d_mbstowcs + "'"
3758 $ WC "d_mbtowc='" + perl_d_mbtowc + "'"
3759 $ WC "d_wcstombs='" + perl_d_wcstombs + "'"
3760 $ WC "d_wctomb='" + perl_d_wctomb + "'"
3761 $ WC "d_mblen='" + perl_d_mblen + "'"
3762 $ WC "d_mktime='" + perl_d_mktime + "'"
3763 $ WC "d_strcoll='" + perl_d_strcoll + "'"
3764 $ WC "d_strxfrm='" + perl_d_strxfrm + "'"
3765 $ WC "ldflags='" + perl_ldflags + "'"
3766 $ WC "dlobj='" + perl_dlobj + "'"
3767 $ WC "obj_ext='" + perl_obj_ext + "'"
3768 $ WC "so='" + perl_so + "'"
3769 $ WC "dlext='" + perl_dlext + "'"
3770 $ WC "exe_ext='" + perl_exe_ext + "'"
3771 $ WC "lib_ext='" + perl_lib_ext + "'"
3772 $ WC "myhostname='" + perl_myhostname + "'"
3773 $ WC "mydomain='" + perl_mydomain + "'"
3774 $ WC "perladmin='" + perl_perladmin + "'"
3775 $ WC "cf_email='" + cf_email + "'"
3776 $ WC "myuname='" + perl_myuname + "'"
3777 $ WC "alignbytes='" + alignbytes + "'"
3778 $ WC "osname='" + perl_osname + "'"
3779 $ WC "d_archlib='" + perl_d_archlib + "'"
3780 $ WC "archlibexp='" + perl_archlibexp + "'"
3781 $ WC "archlib='" + perl_archlib + "'"
3782 $ WC "archname='" + archname + "'"
3783 $ WC "d_bincompat3='" + perl_d_bincompat3 + "'"
3784 $ WC "cppstdin='" + perl_cppstdin + "'"
3785 $ WC "cppminus='" + perl_cppminus + "'"
3786 $ WC "cpprun='" + perl_cpprun + "'"
3787 $ WC "cpplast='" + perl_cpplast + "'"
3788 $ WC "d_bcmp='" + perl_d_bcmp + "'"
3789 $ WC "d_bcopy='" + perl_d_bcopy + "'"
3790 $ WC "d_bzero='" + perl_d_bzero + "'"
3791 $ WC "d_castneg='" + perl_d_castneg + "'"
3792 $ WC "castflags='" + perl_castflags + "'"
3793 $ WC "d_chsize='" + perl_d_chsize + "'"
3794 $ WC "d_const='" + perl_d_const + "'"
3795 $ WC "d_crypt='" + perl_d_crypt + "'"
3796 $ WC "byteorder='" + perl_byteorder + "'"
3797 $ WC "full_csh='" + perl_full_csh + "'"
3798 $ WC "d_csh='" + perl_d_csh + "'"
3799 $ WC "d_dup2='" + perl_d_dup2 + "'"
3800 $ WC "d_fchmod='" + perl_d_fchmod + "'"
3801 $ WC "d_fchown='" + perl_d_fchown + "'"
3802 $ WC "d_fcntl='" + perl_d_fcntl + "'"
3803 $ WC "d_fgetpos='" + perl_d_fgetpos + "'"
3804 $ WC "d_flexfnam='" + perl_d_flexfnam + "'"
3805 $ WC "d_flock='" + perl_d_flock + "'"
3806 $ WC "d_fsetpos='" + perl_d_fsetpos + "'"
3807 $ WC "d_gettimeod='" + perl_d_gettimeod + "'"
3808 $ WC "d_getgrps='" + perl_d_getgrps + "'"
3809 $ WC "d_setgrps='" + perl_d_setgrps + "'"
3810 $ WC "groupstype='" + perl_groupstype + "'"
3811 $ WC "d_uname='" + perl_d_uname + "'"
3812 $ WC "d_getprior='" + perl_d_getprior + "'"
3813 $ WC "d_killpg='" + perl_d_killpg + "'"
3814 $ WC "d_link='" + perl_d_link + "'"
3815 $ WC "d_lstat='" + perl_d_lstat + "'"
3816 $ WC "d_lockf='" + perl_d_lockf + "'"
3817 $ WC "d_memcmp='" + perl_d_memcmp + "'"
3818 $ WC "d_memcpy='" + perl_d_memcpy + "'"
3819 $ WC "d_memmove='" + perl_d_memmove + "'"
3820 $ WC "d_memset='" + perl_d_memset + "'"
3821 $ WC "d_mkdir='" + perl_d_mkdir + "'"
3822 $ WC "d_msg='" + perl_d_msg + "'"
3823 $ WC "d_open3='" + perl_d_open3 + "'"
3824 $ WC "d_poll='" + perl_d_poll + "'"
3825 $ WC "d_perl_otherlibdirs='" + perl_d_perl_otherlibdirs + "'"
3826 $ WC "otherlibdirs='" + perl_otherlibdirs + "'"
3827 $ WC "d_readdir='" + perl_d_readdir + "'"
3828 $ WC "d_seekdir='" + perl_d_seekdir + "'"
3829 $ WC "d_telldir='" + perl_d_telldir + "'"
3830 $ WC "d_rewinddir='" + perl_d_rewinddir + "'"
3831 $ WC "d_rename='" + perl_d_rename + "'"
3832 $ WC "d_rmdir='" + perl_d_rmdir + "'"
3833 $ WC "d_sem='" + perl_d_sem + "'"
3834 $ WC "d_setegid='" + perl_d_setegid + "'"
3835 $ WC "d_seteuid='" + perl_d_seteuid + "'"
3836 $ WC "d_setprior='" + perl_d_setprior + "'"
3837 $ WC "d_setregid='" + perl_d_setregid + "'"
3838 $ WC "d_setresgid='" + perl_d_setresgid + "'"
3839 $ WC "d_setreuid='" + perl_d_setreuid + "'"
3840 $ WC "d_setresuid='" + perl_d_setresuid + "'"
3841 $ WC "d_setrgid='" + perl_d_setrgid + "'"
3842 $ WC "d_setruid='" + perl_d_setruid + "'"
3843 $ WC "d_setsid='" + perl_d_setsid + "'"
3844 $ WC "d_shm='" + perl_d_shm + "'"
3845 $ WC "d_shmatprototype='" + perl_d_shmatprototype + "'"
3846 $ WC "shmattype='" + perl_shmattype + "'"
3847 $ WC "d_sigaction='" + perl_d_sigaction + "'"
3848 $ WC "d_statblks='" + perl_d_statblks + "'"
3849 $ WC "stdio_ptr='" + perl_stdio_ptr + "'"
3850 $ WC "stdio_cnt='" + perl_stdio_cnt + "'"
3851 $ WC "stdio_base='" + perl_stdio_base + "'"
3852 $ WC "stdio_bufsiz='" + perl_stdio_bufsiz + "'"
3853 $ WC "d_strctcpy='" + perl_d_strctcpy + "'"
3854 $ WC "d_strerror='" + perl_d_strerror + "'"
3855 $ WC "d_syserrlst='" + perl_d_syserrlst + "'"
3856 $ WC "d_strerrm='" + perl_d_strerrm + "'"
3857 $ WC "d_symlink='" + perl_d_symlink + "'"
3858 $ WC "d_syscall='" + perl_d_syscall + "'"
3859 $ WC "d_system='" + perl_d_system + "'"
3860 $ WC "timetype='" + perl_timetype + "'"
3861 $ WC "d_truncate='" + perl_d_truncate + "'"
3862 $ WC "d_vfork='" + perl_d_vfork + "'"
3863 $ WC "signal_t='" + perl_signal_t + "'"
3864 $ WC "d_volatile='" + perl_d_volatile + "'"
3865 $ WC "d_vprintf='" + perl_d_vprintf + "'"
3866 $ WC "d_charvspr='" + perl_d_charvspr + "'"
3867 $ WC "d_wait4='" + perl_d_wait4 + "'"
3868 $ WC "d_waitpid='" + perl_d_waitpid + "'"
3869 $ WC "i_dirent='" + perl_i_dirent + "'"
3870 $ WC "d_dirnamlen='" + perl_d_dirnamlen + "'"
3871 $ WC "direntrytype='" + perl_direntrytype + "'"
3872 $ WC "i_fcntl='" + perl_i_fcntl + "'"
3873 $ WC "i_grp='" + perl_i_grp + "'"
3874 $ WC "i_limits='" + perl_i_limits + "'"
3875 $ WC "i_memory='" + perl_i_memory + "'"
3876 $ WC "i_ndbm='" + perl_i_ndbm + "'"
3877 $ WC "i_stdarg='" + perl_i_stdarg + "'"
3878 $ WC "i_pwd='" + perl_i_pwd + "'"
3879 $ WC "d_pwquota='" + perl_d_pwquota + "'"
3880 $ WC "d_pwage='" + perl_d_pwage + "'"
3881 $ WC "d_pwchange='" + perl_d_pwchange + "'"
3882 $ WC "d_pwclass='" + perl_d_pwclass + "'"
3883 $ WC "d_pwexpire='" + perl_d_pwexpire + "'"
3884 $ WC "d_pwcomment='" + perl_d_pwcomment + "'"
3885 $ WC "i_stddef='" + perl_i_stddef + "'"
3886 $ WC "i_stdlib='" + perl_i_stdlib + "'"
3887 $ WC "i_string='" + perl_i_string + "'"
3888 $ WC "i_sysdir='" + perl_i_sysdir + "'"
3889 $ WC "i_sysfile='" + perl_i_sysfile + "'"
3890 $ WC "i_sysioctl='" + perl_i_sysioctl + "'"
3891 $ WC "i_sysndir='" + perl_i_sysndir + "'"
3892 $ WC "i_sysresrc='" + perl_i_sysresrc + "'"
3893 $ WC "i_sysselct='" + perl_i_sysselct + "'"
3894 $ WC "i_dbm='" + perl_i_dbm + "'"
3895 $ WC "i_rpcsvcdbm='" + perl_i_rpcsvcdbm + "'"
3896 $ WC "i_sfio='" + perl_i_sfio + "'"
3897 $ WC "i_sysstat='" + perl_i_sysstat + "'"
3898 $ WC "i_systimes='" + perl_i_systimes + "'"
3899 $ WC "i_systypes='" + perl_i_systypes + "'"
3900 $ WC "i_sysun='" + perl_i_sysun + "'"
3901 $ WC "i_syswait='" + perl_i_syswait + "'"
3902 $ WC "i_termio='" + perl_i_termio + "'"
3903 $ WC "i_sgtty='" + perl_i_sgtty + "'"
3904 $ WC "i_termios='" + perl_i_termios + "'"
3905 $ WC "i_time='" + perl_i_time + "'"
3906 $ WC "i_systime='" + perl_i_systime + "'"
3907 $ WC "i_systimek='" + perl_i_systimek + "'"
3908 $ WC "i_unistd='" + perl_i_unistd + "'"
3909 $ WC "i_utime='" + perl_i_utime + "'"
3910 $ WC "i_varargs='" + perl_i_varargs + "'"
3911 $ WC "i_vfork='" + perl_i_vfork + "'"
3912 $ WC "prototype='" + perl_prototype + "'"
3913 $ WC "randbits='" + perl_randbits +"'"
3914 $ WC "selecttype='" + perl_selecttype + "'"
3915 $ WC "selectminbits='" + perl_selectminbits + "'"
3916 $ WC "stdchar='" + perl_stdchar + "'"
3917 $ WC "d_unlink_all_versions='" + perl_d_unlink_all_versions + "'"
3918 $ WC "full_sed='" + perl_full_sed + "'"
3919 $ WC "bin='" + perl_bin + "'"
3920 $ WC "binexp='" + perl_binexp + "'"
3921 $ WC "d_alarm='" + perl_d_alarm + "'"
3922 $ WC "d_casti32='" + perl_d_casti32 + "'"
3923 $ WC "d_chown='" + perl_d_chown + "'"
3924 $ WC "d_chroot='" + perl_d_chroot + "'"
3925 $ WC "d_cuserid='" + perl_d_cuserid + "'"
3926 $ WC "d_dbl_dig='" + perl_d_dbl_dig + "'"
3927 $ WC "d_ldbl_dig='" + perl_d_ldbl_dig + "'"
3928 $ WC "d_difftime='" + perl_d_difftime + "'"
3929 $ WC "d_fork='" + perl_d_fork + "'"
3930 $ WC "d_getlogin='" + perl_d_getlogin + "'"
3931 $ WC "d_getppid='" + perl_d_getppid + "'"
3932 $ WC "d_htonl='" + perl_d_htonl + "'"
3933 $ WC "d_nice='" + perl_d_nice + "'"
3934 $ WC "d_pause='" + perl_d_pause + "'"
3935 $ WC "d_pipe='" + perl_d_pipe + "'"
3936 $ WC "d_readlink='" + perl_d_readlink + "'"
3937 $ WC "d_setlinebuf='" + perl_d_setlinebuf + "'"
3938 $ WC "d_strchr='" + perl_d_strchr + "'"
3939 $ WC "d_index='" + perl_d_index + "'"
3940 $ WC "d_strtod='" + perl_d_strtod + "'"
3941 $ WC "d_strtol='" + perl_d_strtol + "'"
3942 $ WC "d_strtoul='" + perl_d_strtoul + "'"
3943 $ WC "d_tcgetpgrp='" + perl_d_tcgetpgrp + "'"
3944 $ WC "d_tcsetpgrp='" + perl_d_tcsetpgrp + "'"
3945 $ WC "d_times='" + perl_d_times + "'"
3946 $ WC "d_tzname='" + perl_d_tzname + "'"
3947 $ WC "d_umask='" + perl_d_umask + "'"
3948 $ WC "fpostype='" + perl_fpostype + "'"
3949 $ WC "i_dlfcn='" + perl_i_dlfcn + "'"
3950 $ WC "i_float='" + perl_i_float + "'"
3951 $ WC "i_math='" + perl_i_math + "'"
3952 $ WC "intsize='" + perl_intsize + "'"
3953 $ WC "longsize='" + perl_longsize + "'"
3954 $ WC "shortsize='" + perl_shortsize + "'"
3955 $ WC "lseektype='" + perl_lseektype + "'"
3956 $ WC "lseeksize='4'"
3957 $ WC "i_values='" + perl_i_values + "'"
3958 $ WC "malloctype='" + perl_malloctype + "'"
3959 $ WC "freetype='" + perl_freetype + "'"
3960 $ WC "d_mymalloc='" + perl_d_mymalloc + "'"
3961 $ WC "sh='" + perl_sh + "'"
3962 $ WC "sig_name='" + perl_sig_name + "'"
3963 $ WC "sig_num='" + perl_sig_num + "'"
3964 $ tempsym = "sig_name_init='" + perl_sig_name_with_commas + "'"
3966 $ WC "modetype='" + perl_modetype + "'"
3967 $ WC "ssizetype='" + perl_ssizetype + "'"
3968 $ WC "o_nonblock='" + perl_o_nonblock + "'"
3969 $ WC "eagain='" + perl_eagain + "'"
3970 $ WC "rd_nodata='" + perl_rd_nodata + "'"
3971 $ WC "d_eofnblk='" + perl_d_eofnblk + "'"
3972 $ WC "d_oldarchlib='" + perl_d_oldarchlib + "'"
3973 $ WC "oldarchlibexp='" + perl_oldarchlibexp + "'"
3974 $ WC "oldarchlib='" + perl_oldarchlib + "'"
3975 $ WC "privlibexp='" + perl_privlibexp + "'"
3976 $ WC "privlib='" + perl_privlib + "'"
3977 $ WC "sitelibexp='" + perl_sitelibexp + "'"
3978 $ WC "sitelib='" + perl_sitelib + "'"
3979 $ WC "sitelib_stem='" + perl_sitelib_stem + "'"
3980 $ WC "sitearchexp='" + perl_sitearchexp + "'"
3981 $ WC "sitearch='" + perl_sitearch + "'"
3982 $ WC "sizetype='" + perl_sizetype + "'"
3983 $ WC "i_sysparam='" + perl_i_sysparam + "'"
3984 $ WC "d_void_closedir='" + perl_d_void_closedir + "'"
3985 $ WC "d_dlerror='" + perl_d_dlerror + "'"
3986 $ WC "d_dlsymun='" + perl_d_dlsymun + "'"
3987 $ WC "d_suidsafe='" + perl_d_suidsafe + "'"
3988 $ WC "d_dosuid='" + perl_d_dosuid + "'"
3989 $ WC "d_inetaton='" + perl_d_inetaton + "'"
3990 $ WC "d_int64_t='" + perl_d_int64_t + "'"
3991 $ WC "d_isascii='" + perl_d_isascii + "'"
3992 $ WC "d_mkfifo='" + perl_d_mkfifo + "'"
3993 $ WC "d_pathconf='" + perl_d_pathconf + "'"
3994 $ WC "d_fpathconf='" + perl_d_fpathconf + "'"
3995 $ WC "d_safebcpy='" + perl_d_safebcpy + "'"
3996 $ WC "d_safemcpy='" + perl_d_safemcpy + "'"
3997 $ WC "d_sanemcmp='" + perl_d_sanemcmp + "'"
3998 $ WC "d_setpgrp='" + perl_d_setpgrp + "'"
3999 $ WC "d_bsdsetpgrp='" + perl_d_bsdsetpgrp + "'"
4000 $ WC "d_bsdpgrp='" + perl_d_bsdpgrp + "'"
4001 $ WC "d_setpgid='" + perl_d_setpgid + "'"
4002 $ WC "d_setpgrp2='" + perl_d_setpgrp2 + "'"
4003 $ WC "d_sysconf='" + perl_d_sysconf + "'"
4004 $ WC "d_Gconvert='" + perl_d_Gconvert + "'"
4005 $ WC "d_getpgid='" + perl_d_getpgid + "'"
4006 $ WC "d_getpgrp='" + perl_d_getpgrp + "'"
4007 $ WC "d_bsdgetpgrp='" + perl_d_bsdgetpgrp + "'"
4008 $ WC "d_getpgrp2='" + perl_d_getpgrp2 + "'"
4009 $ WC "d_sfio='" + perl_d_sfio + "'"
4010 $ WC "d_sigsetjmp='" + perl_d_sigsetjmp + "'"
4011 $ WC "usedl='" + perl_usedl + "'"
4012 $ WC "startperl=" + perl_startperl ! This one's special--no enclosing single quotes
4013 $ WC "db_hashtype='" + perl_db_hashtype + "'"
4014 $ WC "db_prefixtype='" + perl_db_prefixtype + "'"
4015 $ WC "useperlio='" + perl_useperlio + "'"
4016 $ WC "defvoidused='" + perl_defvoidused + "'"
4017 $ WC "voidflags='" + perl_voidflags + "'"
4018 $ WC "d_eunice='" + perl_d_eunice + "'"
4019 $ WC "libs='" + perl_libs + "'"
4020 $ WC "libc='" + perl_libc + "'"
4021 $ WC "xs_apiversion='" + version + "'"
4022 $ WC "pm_apiversion='" + version + "'"
4023 $ WC "version='" + version + "'"
4024 $ WC "revision='" + revision + "'"
4025 $ WC "patchlevel='" + patchlevel + "'"
4026 $ WC "subversion='" + subversion + "'"
4027 $ WC "PERL_VERSION='" + patchlevel + "'"
4028 $ WC "PERL_SUBVERSION='" + subversion + "'"
4029 $ WC "pager='" + perl_pager + "'"
4030 $ WC "uidtype='" + perl_uidtype + "'"
4031 $ WC "uidformat='" + perl_uidformat + "'"
4032 $ WC "uidsize='" + perl_uidsize + "'"
4033 $ WC "uidsign='" + perl_uidsign + "'"
4034 $ WC "gidtype='" + perl_gidtype + "'"
4035 $ WC "gidformat='" + perl_gidformat + "'"
4036 $ WC "gidsize='" + perl_gidsize + "'"
4037 $ WC "gidsign='" + perl_gidsign + "'"
4038 $ WC "usethreads='" + perl_usethreads + "'"
4039 $ WC "d_pthread_yield='" + perl_d_pthread_yield + "'"
4040 $ WC "d_pthreads_created_joinable='" + perl_d_pthreads_created_joinable + "'"
4041 $ WC "d_gnulibc='" + perl_d_gnulibc + "'"
4042 $ WC "i_netdb='" + perl_i_netdb + "'"
4043 $ WC "pidtype='" + perl_pidtype + "'"
4044 $ WC "netdb_host_type='" + perl_netdb_host_type + "'"
4045 $ WC "netdb_hlen_type='" + perl_netdb_hlen_type + "'"
4046 $ WC "netdb_name_type='" + perl_netdb_name_type + "'"
4047 $ WC "netdb_net_type='" + perl_netdb_net_type + "'"
4048 $ WC "socksizetype='" + perl_socksizetype + "'"
4049 $ WC "baserev='" + perl_baserev + "'"
4050 $ WC "doublesize='" + perl_doublesize + "'"
4051 $ WC "ptrsize='" + perl_ptrsize + "'"
4052 $ WC "d_gethbyaddr='" + perl_d_gethbyaddr + "'"
4053 $ WC "d_gethbyname='" + perl_d_gethbyname + "'"
4054 $ WC "d_getnbyaddr='" + perl_d_getnbyaddr + "'"
4055 $ WC "d_getnbyname='" + perl_d_getnbyname + "'"
4056 $ WC "d_getpbynumber='" + perl_d_getpbynumber + "'"
4057 $ WC "d_getpbyname='" + perl_d_getpbyname + "'"
4058 $ WC "d_getsbyport='" + perl_d_getsbyport + "'"
4059 $ WC "d_getsbyname='" + perl_d_getsbyname + "'"
4060 $ WC "d_sethent='" + perl_d_sethent + "'"
4061 $ WC "d_oldpthreads='" + perl_d_oldpthreads + "'"
4062 $ WC "d_longdbl='" + perl_d_longdbl + "'"
4063 $ WC "longdblsize='" + perl_longdblsize + "'"
4064 $ WC "d_longlong='" + perl_d_longlong + "'"
4065 $ WC "longlongsize='" + perl_longlongsize + "'"
4066 $ WC "d_mkstemp='" + perl_d_mkstemp + "'"
4067 $ WC "d_mkstemps='" + perl_d_mkstemps + "'"
4068 $ WC "d_mkdtemp='" + perl_d_mkdtemp + "'"
4069 $ WC "d_setvbuf='" + perl_d_setvbuf + "'"
4070 $ WC "d_setenv='" + perl_d_setenv + "'"
4071 $ WC "d_endhent='" + perl_d_endhent + "'"
4072 $ WC "d_endnent='" + perl_d_endsent + "'"
4073 $ WC "d_endpent='" + perl_d_endpent + "'"
4074 $ WC "d_endsent='" + perl_d_endsent + "'"
4075 $ WC "d_gethent='" + perl_d_gethent + "'"
4076 $ WC "d_getnent='" + perl_d_getsent + "'"
4077 $ WC "d_getpent='" + perl_d_getpent + "'"
4078 $ WC "d_getsent='" + perl_d_getsent + "'"
4079 $ WC "d_sethent='" + perl_d_sethent + "'"
4080 $ WC "d_setnent='" + perl_d_setsent + "'"
4081 $ WC "d_setpent='" + perl_d_setpent + "'"
4082 $ WC "ebcdic='" + perl_ebcdic + "'"
4083 $ WC "d_setsent='" + perl_d_setsent + "'"
4084 $ WC "d_gethostprotos='" + perl_d_gethostprotos + "'"
4085 $ WC "d_getnetprotos='" + perl_d_getnetprotos + "'"
4086 $ WC "d_getprotoprotos='" + perl_d_getprotoprotos + "'"
4087 $ WC "d_getservprotos='" + perl_d_getservprotos + "'"
4088 $ WC "d_pwgecos='" + perl_d_pwgecos + "'"
4089 $ WC "d_sched_yield='" + perl_d_sched_yield + "'"
4090 $ WC "d_lchown='" + perl_d_lchown + "'"
4091 $ WC "d_union_semun='" + perl_d_union_semun + "'"
4092 $ WC "i_arpainet='" + perl_i_arpainet + "'"
4093 $ WC "d_grpasswd='" + perl_d_grpasswd + "'"
4094 $ WC "d_setgrent='" + perl_d_setgrent + "'"
4095 $ WC "d_getgrent='" + perl_d_getgrent + "'"
4096 $ WC "d_endgrent='" + perl_d_endgrent + "'"
4097 $ WC "d_pwpasswd='" + perl_d_pwpasswd + "'"
4098 $ WC "d_setpwent='" + perl_d_setpwent + "'"
4099 $ WC "d_getpwent='" + perl_d_getpwent + "'"
4100 $ WC "d_endpwent='" + perl_d_endpwent + "'"
4101 $ WC "d_semctl_semun='" + perl_d_semctl_semun + "'"
4102 $ WC "d_semctl_semid_ds='" + perl_d_semctl_semid_ds + "'"
4103 $ WC "extensions='" + perl_extensions + "'"
4104 $ WC "known_extensions='" + perl_known_extensions + "'"
4105 $ WC "static_ext='" + "'"
4106 $ WC "dynamic_ext='" + perl_extensions + "'"
4107 $ WC "d_mknod='" + perl_d_mknod + "'"
4108 $ WC "devtype='" + perl_devtype + "'"
4109 $ WC "d_gethname='" + perl_d_gethname + "'"
4110 $ WC "d_phostname='" + perl_d_phostname + "'"
4111 $ WC "aphostname='" + perl_aphostname + "'"
4112 $ WC "d_accessx='" + perl_d_accessx + "'"
4113 $ WC "d_eaccess='" + perl_d_eaccess + "'"
4114 $ WC "i_ieeefp='" + perl_i_ieeefp + "'"
4115 $ WC "i_sunmath='" + perl_i_sunmath + "'"
4116 $ WC "i_sysaccess='" + perl_i_sysaccess + "'"
4117 $ WC "i_syssecrt='" + perl_i_syssecrt + "'"
4118 $ WC "d_fd_set='" + perl_d_fd_set + "'"
4119 $ WC "d_access='" + perl_d_access + "'"
4120 $ WC "d_msg_ctrunc='" + perl_d_msg_ctrunc + "'"
4121 $ WC "d_msg_dontroute='" + perl_d_msg_dontroute + "'"
4122 $ WC "d_msg_oob='" + perl_d_msg_oob + "'"
4123 $ WC "d_msg_peek='" + perl_d_msg_peek + "'"
4124 $ WC "d_msg_proxy='" + perl_d_msg_proxy + "'"
4125 $ WC "d_scm_rights='" + perl_d_scm_rights + "'"
4126 $ WC "d_sendmsg='" + perl_d_sendmsg + "'"
4127 $ WC "d_recvmsg='" + perl_d_recvmsg + "'"
4128 $ WC "d_msghdr_s='" + perl_d_msghdr_s + "'"
4129 $ WC "d_cmsghdr_s='" + perl_d_cmsghdr_s + "'"
4130 $ WC "i_sysuio='" + perl_i_sysuio + "'"
4131 $ WC "d_fseeko='" + perl_d_fseeko + "'"
4132 $ WC "d_ftello='" + perl_d_ftello + "'"
4133 $ WC "d_qgcvt='" + perl_d_qgcvt + "'"
4134 $ WC "d_readv='" + perl_d_readv + "'"
4135 $ WC "d_writev='" + perl_d_writev + "'"
4136 $ WC "i_machcthr='" + perl_i_machcthr + "'"
4137 $ WC "usemultiplicity='" + perl_usemultiplicity + "'"
4138 $ WC "i_poll='" + perl_i_poll + "'"
4139 $ WC "i_inttypes='" + perl_i_inttypes + "'"
4140 $ WC "d_off64_t='" + perl_d_off64_t + "'"
4141 $ WC "d_fpos64_t='" + perl_d_fpos64_t + "'"
4142 $ WC "use64bitall='" + perl_use64bitall + "'"
4143 $ WC "use64bitint='" + perl_use64bitint + "'"
4144 $ WC "d_drand48proto='" + perl_d_drand48proto + "'"
4145 $ WC "d_lseekproto='" + perl_d_drand48proto + "'"
4146 $ WC "d_old_pthread_create_joinable='" + perl_d_old_pthread_create_joinable + "'"
4147 $ WC "old_pthread_create_joinable='" + perl_old_pthread_create_joinable + "'"
4148 $ WC "drand01='" + perl_drand01 + "'"
4149 $ WC "randseedtype='" + perl_randseedtype + "'"
4150 $ WC "seedfunc='" + perl_seedfunc + "'"
4151 $ WC "sig_num_init='" + perl_sig_num_with_commas + "'"
4152 $ WC "i_sysmount='" + perl_i_sysmount + "'"
4153 $ WC "d_fstatfs='" + perl_d_fstatfs + "'"
4154 $ WC "d_getfsstat='" + perl_d_getfsstat + "'"
4155 $ WC "d_memchr='" + perl_d_memchr + "'"
4156 $ WC "d_statfsflags='" + perl_d_statfsflags + "'"
4157 $ WC "fflushNULL='define'"
4158 $ WC "fflushall='undef'"
4159 $ WC "d_stdio_stream_array='undef'"
4160 $ WC "stdio_stream_array='" + perl_stdio_stream_array + "'"
4161 $ WC "i_sysstatvfs='" + perl_i_sysstatvfs + "'"
4162 $ WC "i_syslog='" + perl_i_syslog + "'"
4163 $ WC "i_sysmode='" + perl_i_sysmode + "'"
4164 $ WC "i_sysutsname='" + perl_i_sysutsname + "'"
4165 $ WC "i_machcthreads='" + perl_i_machcthreads + "'"
4166 $ WC "i_pthread='" + perl_i_pthread + "'"
4167 $ WC "d_fstatvfs='" + perl_d_fstatvfs + "'"
4168 $ WC "i_mntent='" + perl_i_mntent + "'"
4169 $ WC "d_getmntent='" + perl_d_getmntent + "'"
4170 $ WC "d_hasmntopt='" + perl_d_hasmntopt + "'"
4171 $ WC "d_telldirproto='" + perl_d_telldirproto + "'"
4172 $ WC "d_madvise='" + perl_d_madvise + "'"
4173 $ WC "d_msync='" + perl_d_msync + "'"
4174 $ WC "d_mprotect='" + perl_d_mprotect + "'"
4175 $ WC "d_munmap='" + perl_d_munmap + "'"
4176 $ WC "d_mmap='" + perl_d_mmap + "'"
4177 $ WC "mmaptype='" + perl_mmaptype + "'"
4178 $ WC "i_sysmman='" + perl_i_sysmman + "'"
4179 $ WC "installusrbinperl='" + perl_installusrbinperl + "'"
4180 $! WC "selectminbits='" + perl_selectminbits + "'"
4181 $ WC "crosscompile='" + perl_crosscompile + "'"
4182 $ WC "multiarch='" + perl_multiarch + "'"
4183 $ WC "sched_yield='" + perl_sched_yield + "'"
4184 $ WC "d_strtoull='" + perl_d_strtoull + "'"
4185 $ WC "d_strtouq='" + perl_d_strtouq + "'"
4186 $ WC "d_strtoll='" + perl_d_strtoll + "'"
4187 $ WC "d_strtold='" + perl_d_strtold + "'"
4188 $ WC "usesocks='" + perl_usesocks + "'"
4189 $ WC "d_vendorlib='" + perl_d_vendorlib + "'"
4190 $ WC "vendorlibexp='" + perl_vendorlibexp + "'"
4191 $ WC "vendorlib_stem='" + perl_vendorlib_stem + "'"
4192 $ WC "d_atolf='" + perl_d_atolf + "'"
4193 $ WC "d_atoll='" + perl_d_atoll + "'"
4194 $ WC "d_bincompat5005='" + perl_d_bincompat + "'"
4195 $ WC "d_endspent='" + perl_d_endspent + "'"
4196 $ WC "d_getspent='" + perl_d_getspent + "'"
4197 $ WC "d_getspnam='" + perl_d_getspnam + "'"
4198 $ WC "d_setspent='" + perl_d_setspent + "'"
4199 $ WC "i_shadow='" + perl_i_shadow + "'"
4200 $ WC "i_socks='" + perl_i_socks + "'"
4201 $ WC "d_PRIfldbl='" + perl_d_PRIfldbl + "'"
4202 $ WC "d_PRIgldbl='" + perl_d_PRIgldbl + "'"
4203 $ WC "d_PRId64='" + perl_d_PRId64 + "'"
4204 $ WC "d_PRIu64='" + perl_d_PRIu64 + "'"
4205 $ WC "d_PRIo64='" + perl_d_PRIo64 + "'"
4206 $ WC "d_PRIx64='" + perl_d_PRIx64 + "'"
4207 $ WC "sPRIfldbl='" + perl_sPRIfldbl + "'"
4208 $ WC "sPRIgldbl='" + perl_sPRIgldbl + "'"
4209 $ WC "sPRId64='" + perl_sPRId64 + "'"
4210 $ WC "sPRIu64='" + perl_sPRIu64 + "'"
4211 $ WC "sPRIo64='" + perl_sPRIo64 + "'"
4212 $ WC "sPRIx64='" + perl_sPRIx64 + "'"
4213 $ WC "d_llseek='" + perl_d_llseek + "'"
4214 $ WC "d_iconv='" + perl_d_iconv +"'"
4215 $ WC "i_iconv='" + perl_i_iconv +"'"
4216 $ WC "inc_version_list='0'"
4217 $ WC "inc_version_list_init='0'"
4218 $ WC "uselargefiles='" + perl_uselargefiles + "'"
4219 $ WC "uselongdouble='" + perl_uselongdouble + "'"
4220 $ WC "usemorebits='" + perl_usemorebits + "'"
4221 $ WC "d_quad='" + perl_d_quad + "'"
4222 $ WC "quadtype='" + perl_quadtype + "'"
4223 $ WC "uquadtype='" + perl_uquadtype + "'"
4224 $ WC "quadkind='" + perl_quadkind + "'"
4225 $ WC "d_fs_data_s='" + perl_d_fs_data_s + "'"
4226 $ WC "d_getcwd='" + perl_d_getcwd + "'"
4227 $ WC "d_getmnt='" + perl_d_getmnt + "'"
4228 $ WC "d_sqrtl='" + perl_d_sqrtl + "'"
4229 $ WC "d_statfs_f_flags='" + perl_d_statfs_f_flags + "'"
4230 $ WC "d_statfs_s='" + perl_d_statfs_s + "'"
4231 $ WC "d_ustat='" + perl_d_ustat + "'"
4232 $ WC "d_vendorarch='" + perl_d_vendorarch + "'"
4233 $ WC "vendorarchexp='" + perl_vendorarchexp + "'"
4234 $ WC "i_sysstatfs='" + perl_i_sysstatfs + "'"
4235 $ WC "i_sysvfs='" + perl_i_sysvfs + "'"
4236 $ WC "i_ustat='" + perl_i_ustat + "'"
4237 $ WC "ivtype='" + perl_ivtype + "'"
4238 $ WC "uvtype='" + perl_uvtype + "'"
4239 $ WC "i8type='" + perl_i8type + "'"
4240 $ WC "i16type='" + perl_i16type + "'"
4241 $ WC "u8type='" + perl_u8type + "'"
4242 $ WC "u16type='" + perl_u16type + "'"
4243 $ WC "i32type='" + perl_i32type + "'"
4244 $ WC "u32type='" + perl_u32type + "'"
4245 $ WC "i64type='" + perl_i64type + "'"
4246 $ WC "u64type='" + perl_u64type + "'"
4247 $ WC "nvtype='" + perl_nvtype + "'"
4248 $ WC "ivsize='" + perl_ivsize + "'"
4249 $ WC "uvsize='" + perl_uvsize + "'"
4250 $ WC "i8size='" + perl_i8size + "'"
4251 $ WC "u8size='" + perl_u8size + "'"
4252 $ WC "i16size='" + perl_i16size + "'"
4253 $ WC "u16size='" + perl_u16size + "'"
4254 $ WC "i32size='" + perl_i32size + "'"
4255 $ WC "u32size='" + perl_u32size + "'"
4256 $ WC "i64size='" + perl_i64size + "'"
4257 $ WC "u64size='" + perl_u64size + "'"
4258 $ WC "ivdformat='" + perl_ivdformat + "'"
4259 $ WC "uvuformat='" + perl_uvuformat + "'"
4260 $ WC "uvoformat='" + perl_uvoformat + "'"
4261 $ WC "uvxformat='" + perl_uvxformat + "'"
4262 $ WC "d_vms_case_sensitive_symbols='" + d_vms_be_case_sensitive + "'"
4263 $ WC "sizesize='" + perl_sizesize + "'"
4264 $ WC "d_frexpl='" + perl_d_frexpl + "'"
4265 $ WC "d_isnan='" + perl_d_isnan + "'"
4266 $ WC "d_isnanl='" + perl_d_isnanl + "'"
4267 $ WC "d_modfl='" + perl_d_modfl + "'"
4269 $! ##WRITE NEW CONSTANTS HERE##
4273 $! Okay, we've gotten here. Build munchconfig and run it
4274 $ 'Perl_CC' munchconfig.c
4275 $ If (Needs_Opt.eqs."Yes")
4277 $ open/write OPTCHAN []munchconfig.opt
4278 $ IF ("''using_gnu_c'".eqs."Yes")
4280 $ write OPTCHAN "Gnu_CC:[000000]gcclib.olb/library"
4282 $ write OPTCHAN "Sys$Share:VAXCRTL/Share"
4284 $ link munchconfig.obj,munchconfig.opt/opt
4285 $ delete munchconfig.opt;*
4287 $ link munchconfig.obj
4290 $ echo "Doing variable substitutions on .SH files..."
4291 $ echo "Extracting config.h (with variable substitutions)"
4293 $ ! we need an fdl file
4294 $ CREATE [-]CONFIG.FDL
4297 $ CREATE /FDL=[-]CONFIG.FDL [-]CONFIG.LOCAL
4298 $ ! First spit out the header info with the local defines (to get
4299 $ ! around the 255 character command line limit)
4300 $ OPEN/APPEND CONFIG [-]config.local
4301 $ IF use_debugging_perl THEN WC "#define DEBUGGING"
4302 $ IF use_two_pot_malloc THEN WC "#define TWO_POT_OPTIMIZE"
4303 $ IF mymalloc THEN WC "#define EMBEDMYMALLOC"
4304 $ IF use_pack_malloc THEN WC "#define PACK_MALLOC"
4305 $ IF use_debugmalloc THEN WC "#define DEBUGGING_MSTATS"
4306 $ IF Using_Gnu_C THEN WC "#define GNUC_ATTRIBUTE_CHECK"
4307 $ IF (Has_Dec_C_Sockets)
4309 $ WC "#define VMS_DO_SOCKETS"
4310 $ WC "#define DECCRTL_SOCKETS"
4312 $ IF Has_Socketshr THEN WC "#define VMS_DO_SOCKETS"
4314 $! This is VMS-specific for now
4315 $ WC "#''perl_d_setenv' HAS_SETENV"
4316 $ IF d_secintgenv THEN WC "#define SECURE_INTERNAL_GETENV"
4317 $ if d_alwdeftype THEN WC "#define ALWAYS_DEFTYPES"
4320 $ WC "#define USE_64_BIT_INT"
4321 $ WC "#define USE_LONG_DOUBLE"
4323 $ IF use64bitall THEN WC "#define USE_64_BIT_ALL"
4324 $ IF be_case_sensitive THEN WC "#define VMS_WE_ARE_CASE_SENSITIVE"
4325 $ if perl_d_herrno .eqs. "undef"
4327 $ WC "#define NEED_AN_H_ERRNO"
4329 $ WC "#define HAS_ENVGETENV"
4330 $ WC "#define PERL_EXTERNAL_GLOB"
4333 $! Now build the normal config.h
4334 $ define/user sys$output [-]config.main
4335 $ mcr []munchconfig [-]config.sh [-]config_h.sh
4336 $ ! Concatenate them together
4337 $ copy [-]config.local,[-]config.main [-]config.h
4339 $ DELETE/NOLOG [-]CONFIG.MAIN;*
4340 $ DELETE/NOLOG [-]CONFIG.LOCAL;*
4341 $ DELETE/NOLOG [-]CONFIG.FDL;*
4345 $ DECC_REPLACE = "DECC=decc=1"
4347 $ DECC_REPLACE = "DECC="
4351 $ GNUC_REPLACE = "GNUC=gnuc=1"
4353 $ GNUC_REPLACE = "GNUC="
4355 $ IF Has_Dec_C_Sockets
4357 $ SOCKET_REPLACE = "SOCKET=DECC_SOCKETS=1"
4361 $ SOCKET_REPLACE = "SOCKET=SOCKETSHR_SOCKETS=1"
4363 $ SOCKET_REPLACE = "SOCKET="
4368 $ IF (VMS_VER .LES. "6.2")
4370 $ THREAD_REPLACE = "THREAD=OLDTHREADED=1"
4372 $ THREAD_REPLACE = "THREAD=THREADED=1"
4375 $ THREAD_REPLACE = "THREAD="
4379 $ MALLOC_REPLACE = "MALLOC=MALLOC=1"
4381 $ MALLOC_REPLACE = "MALLOC="
4383 $ echo "Extracting ''defmakefile' (with variable substitutions)"
4385 $ define/user sys$output 'UUmakefile
4386 $ mcr []munchconfig [-]config.sh descrip_mms.template "''DECC_REPLACE'" "''ARCH_TYPE'" "''GNUC_REPLACE'" "''SOCKET_REPLACE'" "''THREAD_REPLACE'" -
4387 "''C_Compiler_Replace'" "''MALLOC_REPLACE'" "''Thread_Live_Dangerously'" "PV=''version'" "FLAGS=FLAGS=''extra_flags'"
4388 $ echo "Extracting Build_Ext.Com (without variable substitutions)"
4389 $ Create Sys$Disk:[-]Build_Ext.Com
4390 $ Deck/Dollar="$EndOfTpl$"
4392 $! NOTE: This file is extracted as part of the VMS configuration process.
4393 $! Any changes made to it directly will be lost. If you need to make any
4394 $! changes, please edit the template in [.vms]SubConfigure.Com instead.
4395 $ def = F$Environment("Default")
4396 $ exts1 = F$Edit(p1,"Compress")
4397 $ p2 = F$Edit(p2,"Upcase,Compress,Trim")
4398 $ If F$Locate("MCR ",p2).eq.0 Then p2 = F$Extract(3,255,p2)
4399 $ miniperl = "$" + F$Search(F$Parse(p2,".Exe"))
4401 $ if f$type('p3') .nes. "" then makeutil = 'p3'
4402 $ targ = F$Edit(p4,"Lowercase")
4405 $ ext = F$Element(i," ",p1)
4406 $ If ext .eqs. " " Then Goto done
4407 $ Define/User Perl_Env_Tables CLISYM_LOCAL
4409 ($extdir = $ENV{'ext'}) =~ s/::/./g;
4411 if ($extdir =~ /^vms/i) { $extdir =~ s/vms/.vms.ext/i; }
4412 else { $extdir = ".ext.$extdir"; }
4413 ($ENV{'extdir'} = "[$extdir]");
4414 ($ENV{'up'} = ('-') x ($extdir =~ tr/././));
4415 $ Set Default &extdir
4417 $ If F$Locate("clean",targ) .eqs. F$Length(targ)
4419 $ Write Sys$Output "Building ''ext' . . ."
4420 $ On Error Then Goto done
4421 $ If F$Search("Descrip.MMS") .eqs. ""
4425 $ If F$CvTime(F$File("Descrip.MMS","rdt")) .lts. -
4426 F$CvTime(F$File("Makefile.PL","rdt")) Then redesc = 1
4429 $ Write Sys$Output "''targ'ing ''ext' . . ."
4430 $ On Error Then Continue
4433 miniperl "-I[''up'.lib]" Makefile.PL "INST_LIB=[''up'.lib]" "INST_ARCHLIB=[''up'.lib]"
4447 $! Clean up after ourselves
4448 $ DELETE/NOLOG/NOCONFIRM munchconfig.exe;
4449 $ DELETE/NOLOG/NOCONFIRM munchconfig.obj;