home *** CD-ROM | disk | FTP | other *** search
/ OS/2 Shareware BBS: 10 Tools / 10-Tools.zip / perl560.zip / vms / subconfigure.com < prev    next >
Text File  |  2000-03-18  |  112KB  |  4,431 lines

  1. $! SUBCONFIGURE.COM
  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)
  5. $!
  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.
  9. $!
  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.
  13. $!
  14. $!   First, a line in the format:
  15. $!     $ perl_foo = "bar"
  16. $!   after the line tagged ##ADD NEW CONSTANTS HERE##. Replace foo with the
  17. $!   variable name as it appears in config.sh.
  18. $!
  19. $!   Second, add a line in the format:
  20. $!     $ WC "foo='" + perl_foo + "'"
  21. $!   after the line tagged ##WRITE NEW CONSTANTS HERE##. Careful of the
  22. $!   quoting, as it can be tricky. 
  23. $! 
  24. $! This .COM file expects to be called by configure.com, and thus expects
  25. $! a few symbols in the environment. Notably:
  26. $!
  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
  33. $!
  34. $! We'll be playing with Sys$Output; don't clutter it
  35. $ Set NoVerify
  36. $!
  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'"
  47. $ IF Using_Dec_C
  48. $ THEN
  49. $   Checkcc := "''Mcc'/prefix=all"
  50. $ ELSE
  51. $   Checkcc := "''Mcc'"
  52. $ ENDIF
  53. $ cc_flags = cc_flags + extra_flags
  54. $ IF be_case_sensitive
  55. $ THEN
  56. $   d_vms_be_case_sensitive = "define"
  57. $ ELSE
  58. $   d_vms_be_case_sensitive = "undef"
  59. $ ENDIF
  60. $ IF use_multiplicity
  61. $ THEN
  62. $   perl_usemultiplicity = "define"
  63. $ ELSE
  64. $   perl_usemultiplicity = "undef"
  65. $ ENDIF
  66. $! Some constant defaults.
  67. $ hwname = f$getsyi("HW_NAME")
  68. $ myname = myhostname
  69. $ IF myname .EQS. "" THEN myname = F$TRNLNM("SYS$NODE")
  70. $!
  71. $! ##ADD NEW CONSTANTS HERE##
  72. $ perl_sizesize = "4"
  73. $ perl_shmattype = ""
  74. $ perl_mmaptype = ""
  75. $ perl_gidformat = "lu"
  76. $ perl_gidsize = "4"
  77. $ perl_gidsign = "1"
  78. $ perl_groupstype = "Gid_t"
  79. $ perl_stdio_stream_array = ""
  80. $ perl_uidformat = "lu"
  81. $ perl_uidsize = "4"
  82. $ perl_uidsign = "1"
  83. $ perl_d_getcwd = "undef"
  84. $ perl_d_nv_preserves_uv = "define"
  85. $ perl_d_fs_data_s = "undef"
  86. $ perl_d_getmnt = "undef"
  87. $ perl_d_sqrtl = "define"
  88. $ perl_d_statfs_f_flags = "undef"
  89. $ perl_d_statfs_s = "undef"
  90. $ perl_d_ustat = "undef"
  91. $ perl_i_ieeefp = "undef"
  92. $ perl_i_sunmath = "undef"
  93. $ perl_i_sysstatfs = "undef"
  94. $ perl_i_sysvfs = "undef"
  95. $ perl_i_ustat = "undef"
  96. $ perl_d_llseek="undef"
  97. $ perl_d_iconv="undef"
  98. $ perl_d_madvise="undef"
  99. $ perl_selectminbits="32"
  100. $ perl_d_vendorarch="undef"
  101. $ perl_vendorarchexp=""
  102. $ perl_d_msync="undef"
  103. $ perl_d_mprotect="undef"
  104. $ perl_d_munmap="undef"
  105. $ perl_crosscompile="undef"
  106. $ perl_multiarch="undef"
  107. $ perl_d_mmap="undef"
  108. $ perl_i_sysmman="undef"
  109. $ perl_d_telldirproto="define"
  110. $ perl_i_sysmount="undef"
  111. $ perl_d_bincompat="undef"
  112. $ perl_d_endspent="undef
  113. $ perl_d_getspent="undef
  114. $ perl_d_getspnam="undef
  115. $ perl_d_setspent="undef
  116. $ perl_d_fstatfs="undef"
  117. $ perl_d_getfsstat="undef"
  118. $ perl_i_machcthreads="undef"
  119. $ perl_i_pthread="define"
  120. $ perl_d_fstatvfs="undef"
  121. $ perl_usesocks="undef"
  122. $ perl_d_vendorlib="undef"
  123. $ perl_vendorlibexp=""
  124. $ perl_vendorlib_stem=""
  125. $ perl_d_statfsflags="undef"
  126. $ perl_i_sysstatvfs="undef"
  127. $ perl_i_mntent="undef"
  128. $ perl_d_getmntent="undef"
  129. $ perl_d_hasmntopt="undef"
  130. $ perl_package="''package'"
  131. $ perl_baserev = "''baserev'"
  132. $ cc_defines=""
  133. $ perl_installusrbinperl="undef"
  134. $ perl_CONFIG="true"
  135. $ perl_d_fseeko="undef"
  136. $ perl_d_ftello="undef"
  137. $ perl_d_qgcvt="undef"
  138. $ perl_d_readv="undef"
  139. $ perl_d_writev="undef"
  140. $ perl_i_machcthr="undef"
  141. $ perl_i_netdb="undef"
  142. $ perl_d_gnulibc="undef"
  143. $ perl_ccdlflags=""
  144. $ perl_cccdlflags=""
  145. $ perl_mab=""
  146. $ perl_drand01 = "drand48()"
  147. $ perl_randseedtype = "long int"
  148. $ perl_seedfunc = "srand48"
  149. $ perl_d_msg_ctrunc = "undef"
  150. $ perl_d_msg_dontroute = "undef"
  151. $ perl_d_msg_oob = "undef"
  152. $ perl_d_msg_peek = "undef"
  153. $ perl_d_msg_proxy = "undef"
  154. $ perl_d_scm_rights = "undef"
  155. $ perl_d_sendmsg = "undef"
  156. $ perl_d_recvmsg = "undef"
  157. $ perl_d_msghdr_s = "undef"
  158. $ perl_d_cmsghdr_s = "undef"
  159. $ IF (use64bitint)
  160. $ THEN
  161. $   perl_use64bitint = "define"
  162. $   perl_uselargefiles = "define"
  163. $   perl_uselongdouble = "define"
  164. $   perl_usemorebits = "define"
  165. $ ELSE
  166. $   perl_use64bitint = "undef"
  167. $   perl_uselargefiles = "undef"
  168. $   perl_uselongdouble = "undef"
  169. $   perl_usemorebits = "undef"
  170. $ ENDIF
  171. $ IF (use64bitall)
  172. $ THEN
  173. $   perl_use64bitall = "define"
  174. $ ELSE
  175. $   perl_use64bitall = "undef"
  176. $ ENDIF
  177. $ perl_d_drand48proto = "define"
  178. $ perl_d_lseekproto = "define"
  179. $ perl_libpth="/sys$share /sys$library"
  180. $ perl_ld="Link"
  181. $ perl_lddlflags="/Share"
  182. $ perl_ranlib=""
  183. $ perl_ar=""
  184. $ perl_full_ar=""
  185. $ perl_eunicefix=":"
  186. $ perl_hint="none"
  187. $ perl_i_arpainet="undef"
  188. $ perl_d_grpasswd="undef"
  189. $ perl_d_setgrent="undef"
  190. $ perl_d_getgrent="define"
  191. $ perl_d_endgrent="define"
  192. $ perl_d_pwpasswd="define"
  193. $ perl_d_setpwent="define"
  194. $ perl_d_getpwent="define"
  195. $ perl_d_endpwent="define"
  196. $ perl_d_phostname="undef"
  197. $ perl_d_accessx="undef"
  198. $ perl_d_eaccess="undef"
  199. $ perl_ebcdic="undef"
  200. $ perl_hintfile=""
  201. $ perl_shrplib="define"
  202. $ perl_usemymalloc=mymalloc
  203. $ perl_usevfork="true"
  204. $ perl_useposix="false"
  205. $ perl_spitshell="write sys$output "
  206. $ perl_dlsrc="dl_vms.c"
  207. $ perl_man1ext="rno"
  208. $ perl_man3ext="rno"
  209. $ perl_prefix="perl_root"
  210. $ perl_binexp="''perl_prefix':[000000]"
  211. $ perl_builddir="''perl_prefix':[000000]"
  212. $ perl_installbin="''perl_prefix':[000000]"
  213. $ perl_installscript="''perl_prefix':[utils]"
  214. $ perl_installman1dir="''perl_prefix':[man.man1]"
  215. $ perl_installman3dir="''perl_prefix':[man.man3]"
  216. $ perl_installprivlib="''perl_prefix':[lib]"
  217. $ perl_installsitelib="''perl_prefix':[lib.site_perl]"
  218. $ perl_path_sep="|"
  219. $ perl_cc=Mcc
  220. $ perl_d_sockpair="undef"
  221. $ perl_i_neterrno="define"
  222. $ perl_ldflags="/NoTrace/NoMap"
  223. $ perl_d_lchown="undef"
  224. $ perl_d_mknod="undef"
  225. $ perl_d_union_semun="undef"
  226. $ perl_d_semctl_semun="undef"
  227. $ perl_d_semctl_semid_ds="undef"
  228. $ IF (sharedperl .AND. F$GETSYI("HW_MODEL") .GE. 1024)
  229. $ THEN
  230. $ perl_obj_ext=".abj"
  231. $ perl_so="axe"
  232. $ perl_dlext="axe"
  233. $ perl_exe_ext=".axe"
  234. $ perl_lib_ext=".alb"
  235. $ ELSE
  236. $ perl_obj_ext=".obj"
  237. $ perl_so="exe"
  238. $ perl_dlext="exe"
  239. $ perl_exe_ext=".exe"
  240. $ perl_lib_ext=".olb"
  241. $ENDIF
  242. $ perl_dlobj="dl_vms''perl_obj_ext'"
  243. $ perl_osname="VMS"
  244. $ perl_d_archlib="define"
  245. $ perl_d_bincompat3="undef"
  246. $ perl_cppstdin="''Perl_CC'/noobj/preprocess=sys$output sys$input"
  247. $ perl_cppminus=" "
  248. $ perl_cpprun="''Perl_CC'/noobj/preprocess=sys$output sys$input"
  249. $ perl_cpplast=" "
  250. $ perl_aphostname=""
  251. $ perl_d_castneg="define"
  252. $ perl_castflags="0"
  253. $ perl_d_chsize="undef"
  254. $ perl_d_const="define"
  255. $ perl_d_crypt="define"
  256. $ perl_byteorder="1234"
  257. $ perl_full_csh=" "
  258. $ perl_d_csh="undef"
  259. $ perl_d_dup2="define"
  260. $ perl_d_fchmod="undef"
  261. $ perl_d_fchown="undef"
  262. $ perl_d_fcntl="undef"
  263. $ perl_d_fgetpos="define"
  264. $ perl_d_flexfnam="define"
  265. $ perl_d_flock="undef"
  266. $ perl_d_fsetpos="define"
  267. $ perl_d_getgrps="undef"
  268. $ perl_d_setgrps="undef"
  269. $ perl_d_getprior="undef"
  270. $ perl_d_killpg="undef"
  271. $ perl_d_link="undef"
  272. $ perl_d_lstat="undef"
  273. $ perl_d_lockf="undef"
  274. $ perl_d_memcmp="define"
  275. $ perl_d_memcpy="define"
  276. $ perl_d_memmove="define"
  277. $ perl_d_memset="define"
  278. $ perl_d_mkdir="define"
  279. $ perl_d_msg="undef"
  280. $ perl_d_open3="define"
  281. $ perl_d_poll="undef"
  282. $ perl_d_readdir="define"
  283. $ perl_d_seekdir="define"
  284. $ perl_d_telldir="define"
  285. $ perl_d_rewinddir="define"
  286. $ perl_d_rename="define"
  287. $ perl_d_rmdir="define"
  288. $ perl_d_sem="undef"
  289. $ perl_d_setegid="undef"
  290. $ perl_d_seteuid="undef"
  291. $ perl_d_setprior="undef"
  292. $ perl_d_setregid="undef"
  293. $ perl_d_setresgid="undef"
  294. $ perl_d_setreuid="undef"
  295. $ perl_d_setresuid="undef"
  296. $ perl_d_setrgid="undef"
  297. $ perl_d_setruid="undef"
  298. $ perl_d_setsid="undef"
  299. $ perl_d_shm="undef"
  300. $ perl_d_shmatprototype="undef"
  301. $ perl_d_statblks="undef"
  302. $ perl_stdio_ptr="((*fp)->_ptr)"
  303. $ perl_stdio_cnt="((*fp)->_cnt)"
  304. $ perl_stdio_base="((*fp)->_base)"
  305. $ perl_stdio_bufsiz="((*fp)->_cnt + (*fp)->_ptr - (*fp)->_base)"
  306. $ perl_d_strctcpy="define"
  307. $ perl_d_strerror="define"
  308. $ perl_d_syserrlst="undef"
  309. $ perl_d_strerrm="strerror((e),vaxc$errno)"
  310. $ perl_d_symlink="undef"
  311. $ perl_d_syscall="undef"
  312. $ perl_d_system="define"
  313. $ perl_timetype="time_t"
  314. $ perl_d_vfork="define"
  315. $ perl_signal_t="void"
  316. $ perl_d_volatile="define"
  317. $ perl_d_vprintf="define"
  318. $ perl_d_charvspr="undef"
  319. $ perl_d_waitpid="define"
  320. $ perl_i_dirent="undef"
  321. $ perl_d_dirnamlen="define"
  322. $ perl_direntrytype="struct dirent"
  323. $ perl_i_fcntl="undef"
  324. $ perl_i_grp="undef"
  325. $ perl_i_limits="define"
  326. $ perl_i_memory="undef"
  327. $ perl_i_ndbm="undef"
  328. $ perl_i_stdarg="define"
  329. $ perl_i_pwd="undef"
  330. $ perl_d_pwquota="undef"
  331. $ perl_d_pwage="undef"
  332. $ perl_d_pwchange="undef"
  333. $ perl_d_pwclass="undef"
  334. $ perl_d_pwexpire="undef"
  335. $ perl_d_pwcomment="define"
  336. $ perl_i_stddef="define"
  337. $ perl_i_stdlib="define"
  338. $ perl_i_string="define"
  339. $ perl_i_sysdir="undef"
  340. $ perl_i_sysfile="undef"
  341. $ perl_i_sysioctl="undef"
  342. $ perl_i_sysndir="undef"
  343. $ perl_i_sysresrc="undef"
  344. $ perl_i_sysselct="undef"
  345. $ perl_i_dbm="undef"
  346. $ perl_i_rpcsvcdbm="undef"
  347. $ perl_i_sfio="undef"
  348. $ perl_i_sysstat="define"
  349. $ perl_i_systimes="undef"
  350. $ perl_i_systypes="define"
  351. $ perl_i_sysun="undef"
  352. $ perl_i_syswait="undef"
  353. $ perl_i_termio="undef"
  354. $ perl_i_sgtty="undef"
  355. $ perl_i_termios="undef"
  356. $ perl_i_time="define"
  357. $ perl_i_systime="undef"
  358. $ perl_i_systimek="undef"
  359. $! perl_i_unistd="undef"
  360. $ perl_i_utime="undef"
  361. $ perl_i_varargs="undef"
  362. $ perl_i_vfork="undef"
  363. $ perl_prototype="define"
  364. $ perl_randbits="31"
  365. $ perl_stdchar="char"
  366. $ perl_d_unlink_all_versions="undef"
  367. $ perl_full_sed="_NLA0:"
  368. $ perl_bin="/''perl_prefix'/000000"
  369. $ perl_binexp="''perl_prefix':[000000]"
  370. $ perl_d_alarm="define"
  371. $ perl_d_casti32="define"
  372. $ perl_d_chown="define"
  373. $ perl_d_chroot="undef"
  374. $ perl_d_cuserid="define"
  375. $ perl_d_dbl_dig="define"
  376. $ perl_d_ldbl_dig="define"
  377. $ perl_d_difftime="define"
  378. $ perl_d_fork="undef"
  379. $ perl_d_getlogin="define"
  380. $ perl_d_getppid="undef"
  381. $ perl_d_nice="define"
  382. $ perl_d_pause="define"
  383. $ perl_d_pipe="define"
  384. $ perl_d_readlink="undef"
  385. $ perl_d_setlinebuf="undef"
  386. $ perl_d_strchr="define"
  387. $ perl_d_strtod="define"
  388. $ perl_d_strtol="define"
  389. $ perl_d_strtoul="define"
  390. $ perl_d_tcgetpgrp="undef"
  391. $ perl_d_tcsetpgrp="undef"
  392. $ perl_d_times="define"
  393. $ perl_d_tzname="undef"
  394. $ perl_d_umask="define"
  395. $ perl_fpostype="fpos_t"
  396. $ perl_i_dlfcn="undef"
  397. $ perl_i_float="define"
  398. $ perl_i_math="define"
  399. $ perl_lseektype="int"
  400. $ perl_i_values="undef"
  401. $ perl_malloctype="void *"
  402. $ perl_freetype="void"
  403. $ IF mymalloc
  404. $ THEN
  405. $ perl_d_mymalloc="define"
  406. $ ELSE
  407. $ perl_d_mymalloc="undef"
  408. $ ENDIF
  409. $ perl_sh="MCR"
  410. $ perl_modetype="unsigned int"
  411. $ perl_ssizetype="int"
  412. $ perl_o_nonblock=" "
  413. $ perl_eagain=" "
  414. $ perl_rd_nodata=" "
  415. $ perl_d_eofnblk="undef"
  416. $ perl_d_oldarchlib="define"
  417. $ perl_privlibexp="''perl_prefix':[lib]"
  418. $ perl_privlib="''perl_prefix':[lib]"
  419. $ perl_sitelibexp="''perl_prefix':[lib.site_perl]"
  420. $ perl_sitelib="''perl_prefix':[lib.site_perl]"
  421. $ perl_sitelib_stem="''perl_prefix':[lib.site_perl]"
  422. $ perl_sizetype="size_t"
  423. $ perl_i_sysparam="undef"
  424. $ perl_d_void_closedir="define"
  425. $ perl_d_dlerror="undef"
  426. $ perl_d_dlsymun="undef"
  427. $ perl_d_suidsafe="undef"
  428. $ perl_d_dosuid="undef"
  429. $ perl_d_inetaton="undef"
  430. $ perl_d_isascii="define"
  431. $ perl_d_mkfifo="undef"
  432. $ perl_d_safebcpy="undef"
  433. $ perl_d_safemcpy="define"
  434. $ perl_d_sanemcmp="define"
  435. $ perl_d_setpgrp="undef"
  436. $ perl_d_bsdsetpgrp="undef"
  437. $ perl_d_bsdpgrp="undef"
  438. $ perl_d_setpgid="undef"
  439. $ perl_d_setpgrp2="undef"
  440. $ perl_d_Gconvert="my_gconvert(x,n,t,b)"
  441. $ perl_d_getpgid="undef"
  442. $ perl_d_getpgrp="undef"
  443. $ perl_d_bsdgetpgrp="undef"
  444. $ perl_d_getpgrp2="undef"
  445. $ perl_d_sfio="undef"
  446. $ perl_usedl="define"
  447. $ perl_startperl="""$ perl 'f$env(\""procedure\"")' 'p1' 'p2' 'p3' 'p4' 'p5' 'p6' 'p7' 'p8'  !\n$ exit++ + ++$status != 0 and $exit = $status = undef;"""
  448. $ perl_db_hashtype=" "
  449. $ perl_db_prefixtype=" "
  450. $ perl_useperlio="undef"
  451. $ perl_defvoidused="15"
  452. $ perl_voidflags="15"
  453. $ perl_d_eunice="undef"
  454. $ perl_d_pwgecos="define"
  455. $ IF ((Use_Threads) .AND. (VMS_VER .LES. "6.2"))
  456. $ THEN
  457. $ 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"
  458. $ ELSE
  459. $ perl_libs=" "
  460. $ ENDIF
  461. $ IF Using_Dec_C
  462. $ THEN
  463. $   perl_libc="(DECCRTL)"
  464. $ ELSE
  465. $   perl_libc=" "
  466. $ ENDIF
  467. $ perl_pager="most"
  468. $!
  469. $! Are we 64 bit?
  470. $!
  471. $ IF (use64bitint)
  472. $ THEN
  473. $   perl_d_PRIfldbl = "define"
  474. $   perl_d_PRIgldbl = "define"
  475. $   perl_d_PRId64 = "define"
  476. $   perl_d_PRIu64 = "define"
  477. $   perl_d_PRIo64 = "define"
  478. $   perl_d_PRIx64 = "define"
  479. $   perl_sPRIfldbl = """Lf"""
  480. $   perl_sPRIgldbl = """Lg"""
  481. $   perl_sPRId64 = """Ld"""
  482. $   perl_sPRIu64 = """Lu"""
  483. $   perl_sPRIo64 = """Lo"""
  484. $   perl_sPRIx64 = """Lx"""
  485. $   perl_d_quad = "define"
  486. $   perl_quadtype = "long long"
  487. $   perl_uquadtype = "unsigned long long"
  488. $   perl_quadkind  = "QUAD_IS_LONG_LONG"
  489. $ ELSE
  490. $   perl_d_PRIfldbl = "undef"
  491. $   perl_d_PRIgldbl = "undef"
  492. $   perl_d_PRId64 = "undef"
  493. $   perl_d_PRIu64 = "undef"
  494. $   perl_d_PRIo64 = "undef"
  495. $   perl_d_PRIx64 = "undef"
  496. $   perl_sPRIfldbl = ""
  497. $   perl_sPRIgldbl = ""
  498. $   perl_sPRId64 = ""
  499. $   perl_sPRIu64 = ""
  500. $   perl_sPRIo64 = ""
  501. $   perl_sPRIx64 = ""
  502. $   perl_d_quad = "undef"
  503. $   perl_quadtype = "long"
  504. $   perl_uquadtype = "unsigned long"
  505. $   perl_quadkind  = "QUAD_IS_LONG"
  506. $ ENDIF
  507. $!
  508. $! Now some that we build up
  509. $!
  510. $ IF Use_Threads
  511. $ THEN
  512. $   if use_5005_threads
  513. $   THEN
  514. $     arch = "''arch'-thread"
  515. $     archname = "''archname'-thread"
  516. $     perl_d_old_pthread_create_joinable = "undef"
  517. $     perl_old_pthread_create_joinable = " "
  518. $     perl_use5005threads = "define"
  519. $     perl_useithreads = "undef"
  520. $   ELSE
  521. $     arch = "''arch'-ithread"
  522. $     archname = "''archname'-ithread"
  523. $     perl_d_old_pthread_create_joinable = "undef"
  524. $     perl_old_pthread_create_joinable = " "
  525. $     perl_use5005threads = "undef"
  526. $     perl_useithreads = "define"
  527. $   ENDIF
  528. $ ELSE
  529. $   perl_d_old_pthread_create_joinable = "undef"
  530. $   perl_old_pthread_create_joinable = " "
  531. $   perl_use5005threads = "undef"
  532. $   perl_useithreads = "undef"
  533. $ ENDIF
  534. $!
  535. $! Some that we need to invoke the compiler for
  536. $ OS := "open/write SOURCECHAN []temp.c"
  537. $ WS := "write SOURCECHAN"
  538. $ CS := "close SOURCECHAN"
  539. $ DS := "delete/nolog []temp.*;*"
  540. $ Needs_Opt := N
  541. $ IF using_gnu_c
  542. $ THEN
  543. $   open/write OPTCHAN []temp.opt
  544. $   write OPTCHAN "Gnu_CC:[000000]gcclib.olb/library"
  545. $   write OPTCHAN "Sys$Share:VAXCRTL/Share"
  546. $   Close OPTCHAN
  547. $   Needs_Opt := Y
  548. $ ENDIF
  549. $!
  550. $! Check for __STDC__
  551. $!
  552. $ OS
  553. $ WS "#ifdef __DECC
  554. $ WS "#include <stdlib.h>
  555. $ WS "#endif
  556. $ WS "#include <stdio.h>
  557. $ WS "int main()
  558. $ WS "{"
  559. $ WS "#ifdef __STDC__
  560. $ WS "printf(""42\n"");
  561. $ WS "#else
  562. $ WS "printf(""1\n"");
  563. $ WS "#endif
  564. $ WS "exit(0);
  565. $ WS "}"
  566. $ CS
  567. $   DEFINE SYS$ERROR _NLA0:
  568. $   DEFINE SYS$OUTPUT _NLA0:
  569. $   ON ERROR THEN CONTINUE
  570. $   ON WARNING THEN CONTINUE
  571. $   'Checkcc' temp.c
  572. $   If Needs_Opt
  573. $   THEN
  574. $     link temp.obj,temp.opt/opt
  575. $   else
  576. $     link temp.obj
  577. $   endif
  578. $   DEASSIGN SYS$OUTPUT
  579. $   DEASSIGN SYS$ERROR
  580. $   OPEN/WRITE TEMPOUT [-.uu]tempout.lis
  581. $   DEFINE SYS$ERROR TEMPOUT
  582. $   DEFINE SYS$OUTPUT TEMPOUT
  583. $   mcr []temp
  584. $   CLOSE TEMPOUT
  585. $   DEASSIGN SYS$OUTPUT
  586. $   DEASSIGN SYS$ERROR
  587. $   OPEN/READ TEMPOUT [-.uu]tempout.lis
  588. $   READ TEMPOUT line
  589. $   CLOSE TEMPOUT
  590. $   DELETE/NOLOG [-.uu]tempout.lis;
  591. $ perl_cpp_stuff=line
  592. $ WRITE_RESULT "cpp_stuff is ''perl_cpp_stuff'"
  593. $!
  594. $! Check for double size
  595. $!
  596. $ OS
  597. $ WS "#ifdef __DECC
  598. $ WS "#include <stdlib.h>
  599. $ WS "#endif
  600. $ WS "#include <stdio.h>
  601. $ WS "int main()
  602. $ WS "{"
  603. $ WS "int foo;
  604. $ WS "foo = sizeof(double);
  605. $ WS "printf(""%d\n"", foo);
  606. $ WS "exit(0);
  607. $ WS "}"
  608. $ CS
  609. $   DEFINE SYS$ERROR _NLA0:
  610. $   DEFINE SYS$OUTPUT _NLA0:
  611. $   ON ERROR THEN CONTINUE
  612. $   ON WARNING THEN CONTINUE
  613. $   'Checkcc' temp.c
  614. $   If Needs_Opt
  615. $   THEN
  616. $     link temp.obj,temp.opt/opt
  617. $   else
  618. $     link temp.obj
  619. $   endif
  620. $   OPEN/WRITE TEMPOUT [-.uu]tempout.lis
  621. $   DEASSIGN SYS$OUTPUT
  622. $   DEASSIGN SYS$ERROR
  623. $   DEFINE SYS$ERROR TEMPOUT
  624. $   DEFINE SYS$OUTPUT TEMPOUT
  625. $   mcr []temp
  626. $   CLOSE TEMPOUT
  627. $   DEASSIGN SYS$OUTPUT
  628. $   DEASSIGN SYS$ERROR
  629. $   OPEN/READ TEMPOUT [-.uu]tempout.lis
  630. $   READ TEMPOUT line
  631. $   CLOSE TEMPOUT
  632. $ DELETE/NOLOG [-.uu]tempout.lis;
  633. $ perl_doublesize=line
  634. $ WRITE_RESULT "doublesize is ''perl_doublesize'"
  635. $!
  636. $! Check for long double size
  637. $!
  638. $ OS
  639. $ WS "#ifdef __DECC
  640. $ WS "#include <stdlib.h>
  641. $ WS "#endif
  642. $ WS "#include <stdio.h>
  643. $ WS "int main()
  644. $ WS "{"
  645. $ WS "printf(""%d\n"", sizeof(long double));
  646. $ WS "exit(0);
  647. $ WS "}"
  648. $ CS
  649. $   DEFINE SYS$ERROR _NLA0:
  650. $   DEFINE SYS$OUTPUT _NLA0:
  651. $   ON ERROR THEN CONTINUE
  652. $   ON WARNING THEN CONTINUE
  653. $   'Checkcc' temp.c
  654. $   teststatus = f$extract(9,1,$status)
  655. $   if (teststatus.nes."1")
  656. $   THEN
  657. $     perl_longdblsize="0"
  658. $     perl_d_longdbl="undef"
  659. $   ELSE
  660. $     ON ERROR THEN CONTINUE
  661. $     ON WARNING THEN CONTINUE
  662. $     IF Needs_Opt
  663. $     THEN
  664. $       link temp.obj,temp.opt/opt
  665. $     ELSE
  666. $       link temp.obj
  667. $     ENDIF
  668. $     teststatus = f$extract(9,1,$status)
  669. $     DEASSIGN SYS$OUTPUT
  670. $     DEASSIGN SYS$ERROR
  671. $     IF (teststatus.nes."1")
  672. $     THEN
  673. $       perl_longdblsize="0"
  674. $       perl_d_longdbl="undef"
  675. $     ELSE
  676. $       OPEN/WRITE TEMPOUT [-.uu]tempout.lis
  677. $       DEFINE SYS$ERROR TEMPOUT
  678. $       DEFINE SYS$OUTPUT TEMPOUT
  679. $       mcr []temp
  680. $       CLOSE TEMPOUT
  681. $       DEASSIGN SYS$OUTPUT
  682. $       DEASSIGN SYS$ERROR
  683. $       OPEN/READ TEMPOUT [-.uu]tempout.lis
  684. $       READ TEMPOUT line
  685. $       CLOSE TEMPOUT
  686. $       DELETE/NOLOG [-.uu]tempout.lis;
  687. $       perl_longdblsize=line
  688. $       perl_d_longdbl="define"
  689. $     ENDIF
  690. $   ENDIF
  691. $ WRITE_RESULT "longdblsize is ''perl_longdblsize'"
  692. $ WRITE_RESULT "d_longdbl is ''perl_d_longdbl'"
  693. $!
  694. $! Check for long long existance and size
  695. $!
  696. $ OS
  697. $ WS "#ifdef __DECC
  698. $ WS "#include <stdlib.h>
  699. $ WS "#endif
  700. $ WS "#include <stdio.h>
  701. $ WS "int main()
  702. $ WS "{"
  703. $ WS "printf(""%d\n"", sizeof(long long));
  704. $ WS "exit(0);
  705. $ WS "}"
  706. $ CS
  707. $   DEFINE SYS$ERROR _NLA0:
  708. $   DEFINE SYS$OUTPUT _NLA0:
  709. $   on error then continue
  710. $   on warning then continue
  711. $   'Checkcc' temp.c
  712. $   IF Needs_Opt
  713. $   THEN
  714. $     link temp.obj,temp.opt/opt
  715. $   ELSE
  716. $     link temp.obj
  717. $   ENDIF
  718. $   teststatus = f$extract(9,1,$status)
  719. $   DEASSIGN SYS$OUTPUT
  720. $   DEASSIGN SYS$ERROR
  721. $   if (teststatus.nes."1")
  722. $   THEN
  723. $     perl_longlongsize="0"
  724. $     perl_d_longlong="undef"
  725. $   ELSE
  726. $     OPEN/WRITE TEMPOUT [-.uu]tempout.lis
  727. $     DEFINE SYS$ERROR TEMPOUT
  728. $     DEFINE SYS$OUTPUT TEMPOUT
  729. $     mcr []temp
  730. $     CLOSE TEMPOUT
  731. $     DEASSIGN SYS$OUTPUT
  732. $     DEASSIGN SYS$ERROR
  733. $     OPEN/READ TEMPOUT [-.uu]tempout.lis
  734. $     READ TEMPOUT line
  735. $     CLOSE TEMPOUT
  736. $     DELETE/NOLOG [-.uu]tempout.lis;
  737. $     perl_longlongsize=line
  738. $     perl_d_longlong="define"
  739. $   ENDIF
  740. $ WRITE_RESULT "longlongsize is ''perl_longlongsize'"
  741. $ WRITE_RESULT "d_longlong is ''perl_d_longlong'"
  742. $!
  743. $! Check the prototype for getgid
  744. $!
  745. $ OS
  746. $ WS "#ifdef __DECC
  747. $ WS "#include <stdlib.h>
  748. $ WS "#endif
  749. $ WS "#include <stdio.h>
  750. $ WS "#include <types.h>
  751. $ WS "#include <unistd.h>
  752. $ WS "int main()
  753. $ WS "{"
  754. $ WS "gid_t foo;
  755. $ WS "exit(0);
  756. $ WS "}"
  757. $ CS
  758. $   DEFINE SYS$ERROR _NLA0:
  759. $   DEFINE SYS$OUTPUT _NLA0:
  760. $   on error then continue
  761. $   on warning then continue
  762. $   'Checkcc' temp.c
  763. $   teststatus = f$extract(9,1,$status)
  764. $   DEASSIGN SYS$OUTPUT
  765. $   DEASSIGN SYS$ERROR
  766. $   if (teststatus.nes."1")
  767. $   THEN
  768. $!   Okay, gid_t failed. Must be unsigned int
  769. $     perl_gidtype = "unsigned int"
  770. $   ELSE
  771. $     perl_gidtype = "gid_t"
  772. $   ENDIF
  773. $ WRITE_RESULT "Gid_t is ''perl_gidtype'"
  774. $!
  775. $! Check to see if we've got dev_t
  776. $!
  777. $ OS
  778. $ WS "#ifdef __DECC
  779. $ WS "#include <stdlib.h>
  780. $ WS "#endif
  781. $ WS "#include <stdio.h>
  782. $ WS "#include <types.h>
  783. $ WS "#include <unistd.h>
  784. $ WS "int main()
  785. $ WS "{"
  786. $ WS "dev_t foo;
  787. $ WS "exit(0);
  788. $ WS "}"
  789. $ CS
  790. $   DEFINE SYS$ERROR _NLA0:
  791. $   DEFINE SYS$OUTPUT _NLA0:
  792. $   on error then continue
  793. $   on warning then continue
  794. $   'Checkcc' temp.c
  795. $   teststatus = f$extract(9,1,$status)
  796. $   DEASSIGN SYS$OUTPUT
  797. $   DEASSIGN SYS$ERROR
  798. $   if (teststatus.nes."1")
  799. $   THEN
  800. $!   Okay, dev_t failed. Must be unsigned int
  801. $     perl_devtype = "unsigned int"
  802. $   ELSE
  803. $     perl_devtype = "dev_t"
  804. $   ENDIF
  805. $ WRITE_RESULT "Dev_t is ''perl_devtype'"
  806. $!
  807. $! Check to see if we've got unistd.h (which we ought to, but you never know)
  808. $!
  809. $ OS
  810. $ WS "#ifdef __DECC
  811. $ WS "#include <stdlib.h>
  812. $ WS "#endif
  813. $ WS "#include <unistd.h>
  814. $ WS "int main()
  815. $ WS "{"
  816. $ WS "exit(0);
  817. $ WS "}"
  818. $ CS
  819. $   DEFINE SYS$ERROR _NLA0:
  820. $   DEFINE SYS$OUTPUT _NLA0:
  821. $   on error then continue
  822. $   on warning then continue
  823. $   'Checkcc' temp.c
  824. $   teststatus = f$extract(9,1,$status)
  825. $   DEASSIGN SYS$OUTPUT
  826. $   DEASSIGN SYS$ERROR
  827. $   if (teststatus.nes."1")
  828. $   THEN
  829. $!   Okay, failed. Must not have it
  830. $     perl_i_unistd = "undef"
  831. $   ELSE
  832. $     perl_i_unistd = "define"
  833. $   ENDIF
  834. $ WRITE_RESULT "i_unistd is ''perl_i_unistd'"
  835. $!
  836. $! Check to see if we've got shadow.h (probably not, but...)
  837. $!
  838. $ OS
  839. $ WS "#ifdef __DECC
  840. $ WS "#include <stdlib.h>
  841. $ WS "#endif
  842. $ WS "#include <shadow.h>
  843. $ WS "int main()
  844. $ WS "{"
  845. $ WS "exit(0);
  846. $ WS "}"
  847. $ CS
  848. $   DEFINE SYS$ERROR _NLA0:
  849. $   DEFINE SYS$OUTPUT _NLA0:
  850. $   on error then continue
  851. $   on warning then continue
  852. $   'Checkcc' temp.c
  853. $   teststatus = f$extract(9,1,$status)
  854. $   DEASSIGN SYS$OUTPUT
  855. $   DEASSIGN SYS$ERROR
  856. $   if (teststatus.nes."1")
  857. $   THEN
  858. $!   Okay, failed. Must not have it
  859. $     perl_i_shadow = "undef"
  860. $   ELSE
  861. $     perl_i_shadow = "define"
  862. $   ENDIF
  863. $ WRITE_RESULT "i_shadow is ''perl_i_shadow'"
  864. $!
  865. $! Check to see if we've got socks.h (probably not, but...)
  866. $!
  867. $ OS
  868. $ WS "#ifdef __DECC
  869. $ WS "#include <stdlib.h>
  870. $ WS "#endif
  871. $ WS "#include <socks.h>
  872. $ WS "int main()
  873. $ WS "{"
  874. $ WS "exit(0);
  875. $ WS "}"
  876. $ CS
  877. $   DEFINE SYS$ERROR _NLA0:
  878. $   DEFINE SYS$OUTPUT _NLA0:
  879. $   on error then continue
  880. $   on warning then continue
  881. $   'Checkcc' temp.c
  882. $   teststatus = f$extract(9,1,$status)
  883. $   DEASSIGN SYS$OUTPUT
  884. $   DEASSIGN SYS$ERROR
  885. $   if (teststatus.nes."1")
  886. $   THEN
  887. $!   Okay, failed. Must not have it
  888. $     perl_i_socks = "undef"
  889. $   ELSE
  890. $     perl_i_socks = "define"
  891. $   ENDIF
  892. $ WRITE_RESULT "i_socks is ''perl_i_socks'"
  893. $!
  894. $! Check the prototype for select
  895. $!
  896. $ IF Has_Dec_C_Sockets .OR. Has_Socketshr
  897. $ THEN
  898. $ OS
  899. $ WS "#ifdef __DECC
  900. $ WS "#include <stdlib.h>
  901. $ WS "#endif
  902. $ WS "#include <stdio.h>
  903. $ WS "#include <types.h>
  904. $ WS "#include <unistd.h>
  905. $ IF Has_Socketshr
  906. $ THEN
  907. $   WS "#include <socketshr.h>"
  908. $ ELSE
  909. $   WS "#include <time.h>
  910. $   WS "#include <socket.h>
  911. $ ENDIF
  912. $ WS "int main()
  913. $ WS "{"
  914. $ WS "fd_set *foo;
  915. $ WS "int bar;
  916. $ WS "foo = NULL;
  917. $ WS "bar = select(2, foo, foo, foo, NULL);
  918. $ WS "exit(0);
  919. $ WS "}"
  920. $ CS
  921. $   DEFINE SYS$ERROR _NLA0:
  922. $   DEFINE SYS$OUTPUT _NLA0:
  923. $   on error then continue
  924. $   on warning then continue
  925. $   'Checkcc' temp.c
  926. $   teststatus = f$extract(9,1,$status)
  927. $   DEASSIGN SYS$OUTPUT
  928. $   DEASSIGN SYS$ERROR
  929. $   if (teststatus.nes."1")
  930. $   THEN
  931. $!   Okay, fd_set failed. Must be an int
  932. $     perl_selecttype = "int *"
  933. $   ELSE
  934. $     perl_selecttype="fd_set *"
  935. $   ENDIF
  936. $ ELSE
  937. $   ! No sockets, so stick in an int *
  938. $   perl_selecttype = "int *"
  939. $ ENDIF
  940. $ WRITE_RESULT "selectype is ''perl_selecttype'"
  941. $!
  942. $! Check to see if fd_set exists
  943. $!
  944. $ OS
  945. $ WS "#ifdef __DECC
  946. $ WS "#include <stdlib.h>
  947. $ WS "#endif
  948. $ WS "#include <stdio.h>
  949. $ WS "#include <types.h>
  950. $ WS "#include <unistd.h>
  951. $ IF Has_Socketshr
  952. $ THEN
  953. $   WS "#include <socketshr.h>"
  954. $ ENDIF
  955. $ IF Has_Dec_C_Sockets
  956. $ THEN
  957. $   WS "#include <time.h>
  958. $   WS "#include <socket.h>
  959. $ ENDIF
  960. $ WS "int main()
  961. $ WS "{"
  962. $ WS "fd_set *foo;
  963. $ WS "int bar;
  964. $ WS "exit(0);
  965. $ WS "}"
  966. $ CS
  967. $ DEFINE SYS$ERROR _NLA0:
  968. $ DEFINE SYS$OUTPUT _NLA0:
  969. $ on error then continue
  970. $ on warning then continue
  971. $ 'Checkcc' temp.c
  972. $ teststatus = f$extract(9,1,$status)
  973. $ DEASSIGN SYS$OUTPUT
  974. $ DEASSIGN SYS$ERROR
  975. $ if (teststatus.nes."1")
  976. $ THEN
  977. $!  Okay, fd_set failed. Must not exist
  978. $   perl_d_fd_set = "undef"
  979. $ ELSE
  980. $   perl_d_fd_set="define"
  981. $ ENDIF
  982. $ WRITE_RESULT "d_fd_set is ''perl_d_fd_set'"
  983. $!
  984. $! Check for inttypes.h
  985. $!
  986. $ OS
  987. $ WS "#ifdef __DECC
  988. $ WS "#include <stdlib.h>
  989. $ WS "#endif
  990. $ WS "#include <stdio.h>
  991. $ WS "#include <unistd.h>
  992. $ WS "#include <inttypes.h>
  993. $ WS "int main()
  994. $ WS "{"
  995. $ WS "exit(0);
  996. $ WS "}"
  997. $ CS
  998. $   DEFINE SYS$ERROR _NLA0:
  999. $   DEFINE SYS$OUTPUT _NLA0:
  1000. $   on error then continue
  1001. $   on warning then continue
  1002. $   'Checkcc' temp.c
  1003. $   savedstatus = $status
  1004. $   teststatus = f$extract(9,1,savedstatus)
  1005. $   if (teststatus.nes."1")
  1006. $   THEN
  1007. $     perl_i_inttypes="undef"
  1008. $     DEASSIGN SYS$OUTPUT
  1009. $     DEASSIGN SYS$ERROR
  1010. $   ELSE
  1011. $     IF Needs_Opt
  1012. $     THEN
  1013. $       link temp.obj,temp.opt/opt
  1014. $     ELSE
  1015. $       link temp.obj
  1016. $     ENDIF
  1017. $     savedstatus = $status
  1018. $     teststatus = f$extract(9,1,savedstatus)
  1019. $     DEASSIGN SYS$OUTPUT
  1020. $     DEASSIGN SYS$ERROR
  1021. $     if (teststatus.nes."1")
  1022. $     THEN
  1023. $       perl_i_inttypes="undef"
  1024. $     ELSE
  1025. $       perl_i_inttypes="define"
  1026. $     ENDIF
  1027. $   ENDIF
  1028. $ WRITE_RESULT "i_inttypes is ''perl_i_inttypes'"
  1029. $!
  1030. $! Check for h_errno
  1031. $!
  1032. $ OS
  1033. $ WS "#ifdef __DECC
  1034. $ WS "#include <stdlib.h>
  1035. $ WS "#endif
  1036. $ WS "#include <stdio.h>
  1037. $ WS "#include <unistd.h>
  1038. $ WS "#include <netdb.h>
  1039. $ WS "int main()
  1040. $ WS "{"
  1041. $ WS "h_errno = 3;
  1042. $ WS "exit(0);
  1043. $ WS "}"
  1044. $ CS
  1045. $   DEFINE SYS$ERROR _NLA0:
  1046. $   DEFINE SYS$OUTPUT _NLA0:
  1047. $   on error then continue
  1048. $   on warning then continue
  1049. $   'Checkcc' temp.c
  1050. $   savedstatus = $status
  1051. $   teststatus = f$extract(9,1,savedstatus)
  1052. $   if (teststatus.nes."1")
  1053. $   THEN
  1054. $     perl_d_herrno="undef"
  1055. $     DEASSIGN SYS$OUTPUT
  1056. $     DEASSIGN SYS$ERROR
  1057. $   ELSE
  1058. $     IF Needs_Opt
  1059. $     THEN
  1060. $       link temp.obj,temp.opt/opt
  1061. $     ELSE
  1062. $       link temp.obj
  1063. $     ENDIF
  1064. $     savedstatus = $status
  1065. $     teststatus = f$extract(9,1,savedstatus)
  1066. $     DEASSIGN SYS$OUTPUT
  1067. $     DEASSIGN SYS$ERROR
  1068. $     if (teststatus.nes."1")
  1069. $     THEN
  1070. $       perl_d_herrno="undef"
  1071. $     ELSE
  1072. $       perl_d_herrno="define"
  1073. $     ENDIF
  1074. $   ENDIF
  1075. $ WRITE_RESULT "d_herrno is ''perl_d_herrno'"
  1076. $!
  1077. $! Check to see if int64_t exists
  1078. $!
  1079. $ OS
  1080. $ WS "#ifdef __DECC
  1081. $ WS "#include <stdlib.h>
  1082. $ WS "#endif
  1083. $ WS "#include <stdio.h>
  1084. $ WS "#include <types.h>
  1085. $ WS "#''perl_i_inttypes IIH
  1086. $ WS "#ifdef IIH
  1087. $ WS "#include <inttypes.h>
  1088. $ WS "#endif
  1089. $ WS "#include <unistd.h>
  1090. $ WS "int main()
  1091. $ WS "{"
  1092. $ WS "int64_t bar;
  1093. $ WS "exit(0);
  1094. $ WS "}"
  1095. $ CS
  1096. $ DEFINE SYS$ERROR _NLA0:
  1097. $ DEFINE SYS$OUTPUT _NLA0:
  1098. $ on error then continue
  1099. $ on warning then continue
  1100. $ 'Checkcc' temp.c
  1101. $ teststatus = f$extract(9,1,$status)
  1102. $ DEASSIGN SYS$OUTPUT
  1103. $ DEASSIGN SYS$ERROR
  1104. $ if (teststatus.nes."1")
  1105. $ THEN
  1106. $!  Okay, int64_t failed. Must not exist
  1107. $   perl_d_int64_t = "undef"
  1108. $ ELSE
  1109. $   perl_d_int64_t="define"
  1110. $ ENDIF
  1111. $ WRITE_RESULT "d_int64_t is ''perl_d_int64_t'"
  1112. $!
  1113. $! Check to see if off64_t exists
  1114. $!
  1115. $ OS
  1116. $ WS "#ifdef __DECC
  1117. $ WS "#include <stdlib.h>
  1118. $ WS "#endif
  1119. $ WS "#include <stdio.h>
  1120. $ WS "#include <types.h>
  1121. $ WS "#''perl_i_inttypes IIH
  1122. $ WS "#ifdef IIH
  1123. $ WS "#include <inttypes.h>
  1124. $ WS "#endif
  1125. $ WS "#include <unistd.h>
  1126. $ WS "int main()
  1127. $ WS "{"
  1128. $ WS "off64_t bar;
  1129. $ WS "exit(0);
  1130. $ WS "}"
  1131. $ CS
  1132. $ DEFINE SYS$ERROR _NLA0:
  1133. $ DEFINE SYS$OUTPUT _NLA0:
  1134. $ on error then continue
  1135. $ on warning then continue
  1136. $ 'Checkcc' temp.c
  1137. $ teststatus = f$extract(9,1,$status)
  1138. $ DEASSIGN SYS$OUTPUT
  1139. $ DEASSIGN SYS$ERROR
  1140. $ if (teststatus.nes."1")
  1141. $ THEN
  1142. $!  Okay, off64_t failed. Must not exist
  1143. $   perl_d_off64_t = "undef"
  1144. $ ELSE
  1145. $   perl_d_off64_t="define"
  1146. $ ENDIF
  1147. $ WRITE_RESULT "d_off64_t is ''perl_d_off64_t'"
  1148. $!
  1149. $! Check to see if fpos64_t exists
  1150. $!
  1151. $ OS
  1152. $ WS "#ifdef __DECC
  1153. $ WS "#include <stdlib.h>
  1154. $ WS "#endif
  1155. $ WS "#include <stdio.h>
  1156. $ WS "#include <types.h>
  1157. $ WS "#''perl_i_inttypes IIH
  1158. $ WS "#ifdef IIH
  1159. $ WS "#include <inttypes.h>
  1160. $ WS "#endif
  1161. $ WS "#include <unistd.h>
  1162. $ WS "int main()
  1163. $ WS "{"
  1164. $ WS "fpos64_t bar;
  1165. $ WS "exit(0);
  1166. $ WS "}"
  1167. $ CS
  1168. $ DEFINE SYS$ERROR _NLA0:
  1169. $ DEFINE SYS$OUTPUT _NLA0:
  1170. $ on error then continue
  1171. $ on warning then continue
  1172. $ 'Checkcc' temp.c
  1173. $ teststatus = f$extract(9,1,$status)
  1174. $ DEASSIGN SYS$OUTPUT
  1175. $ DEASSIGN SYS$ERROR
  1176. $ if (teststatus.nes."1")
  1177. $ THEN
  1178. $!  Okay, fpos64_t failed. Must not exist
  1179. $   perl_d_fpos64_t = "undef"
  1180. $ ELSE
  1181. $   perl_d_fpos64_t="define"
  1182. $ ENDIF
  1183. $ WRITE_RESULT "d_fpos64_t is ''perl_d_fpos64_t'"
  1184. $!
  1185. $! Check to see if gethostname exists
  1186. $!
  1187. $ IF (Has_Dec_C_Sockets .OR. Has_Socketshr)
  1188. $ THEN
  1189. $ OS
  1190. $ WS "#ifdef __DECC
  1191. $ WS "#include <stdlib.h>
  1192. $ WS "#endif
  1193. $ WS "#include <stdio.h>
  1194. $ WS "#include <types.h>
  1195. $ WS "#include <unistd.h>
  1196. $ IF Has_Socketshr
  1197. $ THEN
  1198. $   WS "#include <socketshr.h>"
  1199. $ ELSE
  1200. $   WS "#include <time.h>
  1201. $   WS "#include <socket.h>
  1202. $ ENDIF
  1203. $ WS "int main()
  1204. $ WS "{"
  1205. $ WS "char name[100];
  1206. $ WS "int bar, baz;
  1207. $ WS "bar = 100;
  1208. $ WS "baz = gethostname(name, bar);
  1209. $ WS "exit(0);
  1210. $ WS "}"
  1211. $ CS
  1212. $   DEFINE SYS$ERROR _NLA0:
  1213. $   DEFINE SYS$OUTPUT _NLA0:
  1214. $   on error then continue
  1215. $   on warning then continue
  1216. $   'Checkcc' temp.c
  1217. $   teststatus = f$extract(9,1,$status)
  1218. $   DEASSIGN SYS$OUTPUT
  1219. $   DEASSIGN SYS$ERROR
  1220. $   if (teststatus.nes."1")
  1221. $   THEN
  1222. $!   Okay, compile failed. Must not have it
  1223. $     perl_d_gethname = "undef"
  1224. $   ELSE
  1225. $     IF Needs_Opt
  1226. $     THEN
  1227. $       link temp.obj,temp.opt/opt
  1228. $     ELSE
  1229. $       link temp.obj
  1230. $     ENDIF
  1231. $     savedstatus = $status
  1232. $     teststatus = f$extract(9,1,savedstatus)
  1233. $     if (teststatus.nes."1")
  1234. $     THEN
  1235. $       perl_d_gethname="undef"
  1236. $     ELSE
  1237. $       perl_d_gethname="define"
  1238. $     ENDIF
  1239. $   ENDIF
  1240. $ ELSE
  1241. $   ! No sockets, so no gethname
  1242. $   perl_d_gethname = "undef"
  1243. $ ENDIF
  1244. $ WRITE_RESULT "d_gethname is ''perl_d_gethname'"
  1245. $!
  1246. $! Check for sys/file.h
  1247. $!
  1248. $ OS
  1249. $ WS "#ifdef __DECC
  1250. $ WS "#include <stdlib.h>
  1251. $ WS "#endif
  1252. $ WS "#include <stdio.h>
  1253. $ WS "#include <unistd.h>
  1254. $ WS "#include <sys/file.h>
  1255. $ WS "int main()
  1256. $ WS "{"
  1257. $ WS "exit(0);
  1258. $ WS "}"
  1259. $ CS
  1260. $   DEFINE SYS$ERROR _NLA0:
  1261. $   DEFINE SYS$OUTPUT _NLA0:
  1262. $   on error then continue
  1263. $   on warning then continue
  1264. $   'Checkcc' temp.c
  1265. $   savedstatus = $status
  1266. $   teststatus = f$extract(9,1,savedstatus)
  1267. $   if (teststatus.nes."1")
  1268. $   THEN
  1269. $     perl_i_sysfile="undef"
  1270. $     DEASSIGN SYS$OUTPUT
  1271. $     DEASSIGN SYS$ERROR
  1272. $   ELSE
  1273. $     IF Needs_Opt
  1274. $     THEN
  1275. $       link temp.obj,temp.opt/opt
  1276. $     ELSE
  1277. $       link temp.obj
  1278. $     ENDIF
  1279. $     savedstatus = $status
  1280. $     teststatus = f$extract(9,1,savedstatus)
  1281. $     DEASSIGN SYS$OUTPUT
  1282. $     DEASSIGN SYS$ERROR
  1283. $     if (teststatus.nes."1")
  1284. $     THEN
  1285. $       perl_i_sysfile="undef"
  1286. $     ELSE
  1287. $       perl_i_sysfile="define"
  1288. $     ENDIF
  1289. $   ENDIF
  1290. $ WRITE_RESULT "i_sysfile is ''perl_i_sysfile'"
  1291. $!
  1292. $! Check for sys/utsname.h
  1293. $!
  1294. $ OS
  1295. $ WS "#ifdef __DECC
  1296. $ WS "#include <stdlib.h>
  1297. $ WS "#endif
  1298. $ WS "#include <stdio.h>
  1299. $ WS "#include <unistd.h>
  1300. $ WS "#include <sys/utsname.h>
  1301. $ WS "int main()
  1302. $ WS "{"
  1303. $ WS "exit(0);
  1304. $ WS "}"
  1305. $ CS
  1306. $   DEFINE SYS$ERROR _NLA0:
  1307. $   DEFINE SYS$OUTPUT _NLA0:
  1308. $   on error then continue
  1309. $   on warning then continue
  1310. $   'Checkcc' temp.c
  1311. $   savedstatus = $status
  1312. $   teststatus = f$extract(9,1,savedstatus)
  1313. $   if (teststatus.nes."1")
  1314. $   THEN
  1315. $     perl_i_sysutsname="undef"
  1316. $     DEASSIGN SYS$OUTPUT
  1317. $     DEASSIGN SYS$ERROR
  1318. $   ELSE
  1319. $     IF Needs_Opt
  1320. $     THEN
  1321. $       link temp.obj,temp.opt/opt
  1322. $     ELSE
  1323. $       link temp.obj
  1324. $     ENDIF
  1325. $     savedstatus = $status
  1326. $     teststatus = f$extract(9,1,savedstatus)
  1327. $     DEASSIGN SYS$OUTPUT
  1328. $     DEASSIGN SYS$ERROR
  1329. $     if (teststatus.nes."1")
  1330. $     THEN
  1331. $       perl_i_sysutsname="undef"
  1332. $     ELSE
  1333. $       perl_i_sysutsname="define"
  1334. $     ENDIF
  1335. $   ENDIF
  1336. $ WRITE_RESULT "i_sysutsname is ''perl_i_sysutsname'"
  1337. $!
  1338. $! Check for syslog.h
  1339. $!
  1340. $ OS
  1341. $ WS "#ifdef __DECC
  1342. $ WS "#include <stdlib.h>
  1343. $ WS "#endif
  1344. $ WS "#include <stdio.h>
  1345. $ WS "#include <unistd.h>
  1346. $ WS "#include <syslog.h>
  1347. $ WS "int main()
  1348. $ WS "{"
  1349. $ WS "exit(0);
  1350. $ WS "}"
  1351. $ CS
  1352. $   DEFINE SYS$ERROR _NLA0:
  1353. $   DEFINE SYS$OUTPUT _NLA0:
  1354. $   on error then continue
  1355. $   on warning then continue
  1356. $   'Checkcc' temp.c
  1357. $   savedstatus = $status
  1358. $   teststatus = f$extract(9,1,savedstatus)
  1359. $   if (teststatus.nes."1")
  1360. $   THEN
  1361. $     perl_i_syslog="undef"
  1362. $     DEASSIGN SYS$OUTPUT
  1363. $     DEASSIGN SYS$ERROR
  1364. $   ELSE
  1365. $     IF Needs_Opt
  1366. $     THEN
  1367. $       link temp.obj,temp.opt/opt
  1368. $     ELSE
  1369. $       link temp.obj
  1370. $     ENDIF
  1371. $     savedstatus = $status
  1372. $     teststatus = f$extract(9,1,savedstatus)
  1373. $     DEASSIGN SYS$OUTPUT
  1374. $     DEASSIGN SYS$ERROR
  1375. $     if (teststatus.nes."1")
  1376. $     THEN
  1377. $       perl_i_syslog="undef"
  1378. $     ELSE
  1379. $       perl_i_syslog="define"
  1380. $     ENDIF
  1381. $   ENDIF
  1382. $ WRITE_RESULT "i_syslog is ''perl_i_syslog'"
  1383. $!
  1384. $! Check for poll.h
  1385. $!
  1386. $ OS
  1387. $ WS "#ifdef __DECC
  1388. $ WS "#include <stdlib.h>
  1389. $ WS "#endif
  1390. $ WS "#include <stdio.h>
  1391. $ WS "#include <unistd.h>
  1392. $ WS "#include <poll.h>
  1393. $ WS "int main()
  1394. $ WS "{"
  1395. $ WS "exit(0);
  1396. $ WS "}"
  1397. $ CS
  1398. $   DEFINE SYS$ERROR _NLA0:
  1399. $   DEFINE SYS$OUTPUT _NLA0:
  1400. $   on error then continue
  1401. $   on warning then continue
  1402. $   'Checkcc' temp.c
  1403. $   savedstatus = $status
  1404. $   teststatus = f$extract(9,1,savedstatus)
  1405. $   if (teststatus.nes."1")
  1406. $   THEN
  1407. $     perl_i_poll="undef"
  1408. $     DEASSIGN SYS$OUTPUT
  1409. $     DEASSIGN SYS$ERROR
  1410. $   ELSE
  1411. $     IF Needs_Opt
  1412. $     THEN
  1413. $       link temp.obj,temp.opt/opt
  1414. $     ELSE
  1415. $       link temp.obj
  1416. $     ENDIF
  1417. $     savedstatus = $status
  1418. $     teststatus = f$extract(9,1,savedstatus)
  1419. $     DEASSIGN SYS$OUTPUT
  1420. $     DEASSIGN SYS$ERROR
  1421. $     if (teststatus.nes."1")
  1422. $     THEN
  1423. $       perl_i_poll="undef"
  1424. $     ELSE
  1425. $       perl_i_poll="define"
  1426. $     ENDIF
  1427. $   ENDIF
  1428. $ WRITE_RESULT "i_poll is ''perl_i_poll'"
  1429. $!
  1430. $! Check for sys/uio.h
  1431. $!
  1432. $ OS
  1433. $ WS "#ifdef __DECC
  1434. $ WS "#include <stdlib.h>
  1435. $ WS "#endif
  1436. $ WS "#include <stdio.h>
  1437. $ WS "#include <unistd.h>
  1438. $ WS "#include <sys/uio.h>
  1439. $ WS "int main()
  1440. $ WS "{"
  1441. $ WS "exit(0);
  1442. $ WS "}"
  1443. $ CS
  1444. $   DEFINE SYS$ERROR _NLA0:
  1445. $   DEFINE SYS$OUTPUT _NLA0:
  1446. $   on error then continue
  1447. $   on warning then continue
  1448. $   'Checkcc' temp.c
  1449. $   savedstatus = $status
  1450. $   teststatus = f$extract(9,1,savedstatus)
  1451. $   if (teststatus.nes."1")
  1452. $   THEN
  1453. $     perl_i_sysuio="undef"
  1454. $     DEASSIGN SYS$OUTPUT
  1455. $     DEASSIGN SYS$ERROR
  1456. $   ELSE
  1457. $     IF Needs_Opt
  1458. $     THEN
  1459. $       link temp.obj,temp.opt/opt
  1460. $     else
  1461. $       link temp.obj
  1462. $     endif
  1463. $     savedstatus = $status
  1464. $     teststatus = f$extract(9,1,savedstatus)
  1465. $     DEASSIGN SYS$OUTPUT
  1466. $     DEASSIGN SYS$ERROR
  1467. $     if (teststatus.nes."1")
  1468. $     THEN
  1469. $       perl_i_sysuio="undef"
  1470. $     ELSE
  1471. $       perl_i_sysuio="define"
  1472. $     ENDIF
  1473. $   ENDIF
  1474. $ WRITE_RESULT "i_sysuio is ''perl_i_sysuio'"
  1475. $!
  1476. $! Check for sys/mode.h
  1477. $!
  1478. $ OS
  1479. $ WS "#ifdef __DECC
  1480. $ WS "#include <stdlib.h>
  1481. $ WS "#endif
  1482. $ WS "#include <stdio.h>
  1483. $ WS "#include <unistd.h>
  1484. $ WS "#include <sys/mode.h>
  1485. $ WS "int main()
  1486. $ WS "{"
  1487. $ WS "exit(0);
  1488. $ WS "}"
  1489. $ CS
  1490. $   DEFINE SYS$ERROR _NLA0:
  1491. $   DEFINE SYS$OUTPUT _NLA0:
  1492. $   on error then continue
  1493. $   on warning then continue
  1494. $   'Checkcc' temp.c
  1495. $   savedstatus = $status
  1496. $   teststatus = f$extract(9,1,savedstatus)
  1497. $   if (teststatus.nes."1")
  1498. $   THEN
  1499. $     perl_i_sysmode="undef"
  1500. $     DEASSIGN SYS$OUTPUT
  1501. $     DEASSIGN SYS$ERROR
  1502. $   ELSE
  1503. $     If (Needs_Opt.eqs."Yes")
  1504. $     THEN
  1505. $       link temp.obj,temp.opt/opt
  1506. $     else
  1507. $       link temp.obj
  1508. $     endif
  1509. $     savedstatus = $status
  1510. $     teststatus = f$extract(9,1,savedstatus)
  1511. $     DEASSIGN SYS$OUTPUT
  1512. $     DEASSIGN SYS$ERROR
  1513. $     if (teststatus.nes."1")
  1514. $     THEN
  1515. $       perl_i_sysmode="undef"
  1516. $     ELSE
  1517. $       perl_i_sysmode="define"
  1518. $     ENDIF
  1519. $   ENDIF
  1520. $ WRITE_RESULT "i_sysmode is ''perl_i_sysmode'"
  1521. $!
  1522. $! Check for sys/access.h
  1523. $!
  1524. $ OS
  1525. $ WS "#ifdef __DECC
  1526. $ WS "#include <stdlib.h>
  1527. $ WS "#endif
  1528. $ WS "#include <stdio.h>
  1529. $ WS "#include <unistd.h>
  1530. $ WS "#include <sys/access.h>
  1531. $ WS "int main()
  1532. $ WS "{"
  1533. $ WS "exit(0);
  1534. $ WS "}"
  1535. $ CS
  1536. $   DEFINE SYS$ERROR _NLA0:
  1537. $   DEFINE SYS$OUTPUT _NLA0:
  1538. $   on error then continue
  1539. $   on warning then continue
  1540. $   'Checkcc' temp.c
  1541. $   savedstatus = $status
  1542. $   teststatus = f$extract(9,1,savedstatus)
  1543. $   if (teststatus.nes."1")
  1544. $   THEN
  1545. $     perl_i_sysaccess="undef"
  1546. $     DEASSIGN SYS$OUTPUT
  1547. $     DEASSIGN SYS$ERROR
  1548. $   ELSE
  1549. $     If (Needs_Opt.eqs."Yes")
  1550. $     THEN
  1551. $       link temp.obj,temp.opt/opt
  1552. $     else
  1553. $       link temp.obj
  1554. $     endif
  1555. $     savedstatus = $status
  1556. $     teststatus = f$extract(9,1,savedstatus)
  1557. $     DEASSIGN SYS$OUTPUT
  1558. $     DEASSIGN SYS$ERROR
  1559. $     if (teststatus.nes."1")
  1560. $     THEN
  1561. $       perl_i_sysaccess="undef"
  1562. $     ELSE
  1563. $       perl_i_sysaccess="define"
  1564. $     ENDIF
  1565. $   ENDIF
  1566. $ WRITE_RESULT "i_sysaccess is ''perl_i_sysaccess'"
  1567. $!
  1568. $! Check for sys/security.h
  1569. $!
  1570. $ OS
  1571. $ WS "#ifdef __DECC
  1572. $ WS "#include <stdlib.h>
  1573. $ WS "#endif
  1574. $ WS "#include <stdio.h>
  1575. $ WS "#include <unistd.h>
  1576. $ WS "#include <sys/security.h>
  1577. $ WS "int main()
  1578. $ WS "{"
  1579. $ WS "exit(0);
  1580. $ WS "}"
  1581. $ CS
  1582. $   DEFINE SYS$ERROR _NLA0:
  1583. $   DEFINE SYS$OUTPUT _NLA0:
  1584. $   on error then continue
  1585. $   on warning then continue
  1586. $   'Checkcc' temp.c
  1587. $   savedstatus = $status
  1588. $   teststatus = f$extract(9,1,savedstatus)
  1589. $   if (teststatus.nes."1")
  1590. $   THEN
  1591. $     perl_i_syssecrt="undef"
  1592. $     DEASSIGN SYS$OUTPUT
  1593. $     DEASSIGN SYS$ERROR
  1594. $   ELSE
  1595. $     If (Needs_Opt.eqs."Yes")
  1596. $     THEN
  1597. $       link temp.obj,temp.opt/opt
  1598. $     else
  1599. $       link temp.obj
  1600. $     endif
  1601. $     savedstatus = $status
  1602. $     teststatus = f$extract(9,1,savedstatus)
  1603. $     DEASSIGN SYS$OUTPUT
  1604. $     DEASSIGN SYS$ERROR
  1605. $     if (teststatus.nes."1")
  1606. $     THEN
  1607. $       perl_i_syssecrt="undef"
  1608. $     ELSE
  1609. $       perl_i_syssecrt="define"
  1610. $     ENDIF
  1611. $   ENDIF
  1612. $ WRITE_RESULT "i_syssecrt is ''perl_i_syssecrt'"
  1613. $!
  1614. $! Check for fcntl.h
  1615. $!
  1616. $ OS
  1617. $ WS "#ifdef __DECC
  1618. $ WS "#include <stdlib.h>
  1619. $ WS "#endif
  1620. $ WS "#include <stdio.h>
  1621. $ WS "#include <unistd.h>
  1622. $ WS "#include <fcntl.h>
  1623. $ WS "int main()
  1624. $ WS "{"
  1625. $ WS "exit(0);
  1626. $ WS "}"
  1627. $ CS
  1628. $   DEFINE SYS$ERROR _NLA0:
  1629. $   DEFINE SYS$OUTPUT _NLA0:
  1630. $   on error then continue
  1631. $   on warning then continue
  1632. $   'Checkcc' temp.c
  1633. $   savedstatus = $status
  1634. $   teststatus = f$extract(9,1,savedstatus)
  1635. $   if (teststatus.nes."1")
  1636. $   THEN
  1637. $     perl_i_fcntl="undef"
  1638. $     DEASSIGN SYS$OUTPUT
  1639. $     DEASSIGN SYS$ERROR
  1640. $   ELSE
  1641. $     If (Needs_Opt.eqs."Yes")
  1642. $     THEN
  1643. $       link temp.obj,temp.opt/opt
  1644. $     else
  1645. $       link temp.obj
  1646. $     endif
  1647. $     savedstatus = $status
  1648. $     teststatus = f$extract(9,1,savedstatus)
  1649. $     DEASSIGN SYS$OUTPUT
  1650. $     DEASSIGN SYS$ERROR
  1651. $     if (teststatus.nes."1")
  1652. $     THEN
  1653. $       perl_i_fcntl="undef"
  1654. $     ELSE
  1655. $       perl_i_fcntl="define"
  1656. $     ENDIF
  1657. $   ENDIF
  1658. $ WRITE_RESULT "i_fcntl is ''perl_i_fcntl'"
  1659. $!
  1660. $! Check for fcntl
  1661. $!
  1662. $ OS
  1663. $ WS "#ifdef __DECC
  1664. $ WS "#include <stdlib.h>
  1665. $ WS "#endif
  1666. $ WS "#include <stdio.h>
  1667. $ WS "#include <unistd.h>
  1668. $ WS "#include <fcntl.h>
  1669. $ WS "int main()
  1670. $ WS "{"
  1671. $ WS "fcntl(1,2,3);
  1672. $ WS "exit(0);
  1673. $ WS "}"
  1674. $ CS
  1675. $   DEFINE SYS$ERROR _NLA0:
  1676. $   DEFINE SYS$OUTPUT _NLA0:
  1677. $   on error then continue
  1678. $   on warning then continue
  1679. $   'Checkcc' temp.c
  1680. $   savedstatus = $status
  1681. $   teststatus = f$extract(9,1,savedstatus)
  1682. $   if (teststatus.nes."1")
  1683. $   THEN
  1684. $     perl_d_fcntl="undef"
  1685. $     DEASSIGN SYS$OUTPUT
  1686. $     DEASSIGN SYS$ERROR
  1687. $   ELSE
  1688. $     If (Needs_Opt.eqs."Yes")
  1689. $     THEN
  1690. $       link temp.obj,temp.opt/opt
  1691. $     else
  1692. $       link temp.obj
  1693. $     endif
  1694. $     savedstatus = $status
  1695. $     teststatus = f$extract(9,1,savedstatus)
  1696. $     DEASSIGN SYS$OUTPUT
  1697. $     DEASSIGN SYS$ERROR
  1698. $     if (teststatus.nes."1")
  1699. $     THEN
  1700. $       perl_d_fcntl="undef"
  1701. $     ELSE
  1702. $       perl_d_fcntl="define"
  1703. $     ENDIF
  1704. $   ENDIF
  1705. $ WRITE_RESULT "d_fcntl is ''perl_d_fcntl'"
  1706. $!
  1707. $! Check for memchr
  1708. $!
  1709. $ OS
  1710. $ WS "#ifdef __DECC
  1711. $ WS "#include <stdlib.h>
  1712. $ WS "#endif
  1713. $ WS "#include <string.h>
  1714. $ WS "int main()
  1715. $ WS "{"
  1716. $ WS "char * place;
  1717. $ WS "place = memchr(""foo"", 47, 3)
  1718. $ WS "exit(0);
  1719. $ WS "}"
  1720. $ CS
  1721. $   DEFINE SYS$ERROR _NLA0:
  1722. $   DEFINE SYS$OUTPUT _NLA0:
  1723. $   on error then continue
  1724. $   on warning then continue
  1725. $   'Checkcc' temp.c
  1726. $   savedstatus = $status
  1727. $   teststatus = f$extract(9,1,savedstatus)
  1728. $   if (teststatus.nes."1")
  1729. $   THEN
  1730. $     perl_d_memchr="undef"
  1731. $     DEASSIGN SYS$OUTPUT
  1732. $     DEASSIGN SYS$ERROR
  1733. $   ELSE
  1734. $     If (Needs_Opt.eqs."Yes")
  1735. $     THEN
  1736. $       link temp.obj,temp.opt/opt
  1737. $     else
  1738. $       link temp.obj
  1739. $     endif
  1740. $     savedstatus = $status
  1741. $     teststatus = f$extract(9,1,savedstatus)
  1742. $     DEASSIGN SYS$OUTPUT
  1743. $     DEASSIGN SYS$ERROR
  1744. $     if (teststatus.nes."1")
  1745. $     THEN
  1746. $       perl_d_memchr="undef"
  1747. $     ELSE
  1748. $       perl_d_memchr="define"
  1749. $     ENDIF
  1750. $   ENDIF
  1751. $ WRITE_RESULT "d_memchr is ''perl_d_memchr'"
  1752. $!
  1753. $! Check for strtoull
  1754. $!
  1755. $ OS
  1756. $ WS "#ifdef __DECC
  1757. $ WS "#include <stdlib.h>
  1758. $ WS "#endif
  1759. $ WS "#include <string.h>
  1760. $ WS "int main()
  1761. $ WS "{"
  1762. $ WS "unsigned __int64 result;
  1763. $ WS "result = strtoull(""123123"", NULL, 10);
  1764. $ WS "exit(0);
  1765. $ WS "}"
  1766. $ CS
  1767. $   DEFINE SYS$ERROR _NLA0:
  1768. $   DEFINE SYS$OUTPUT _NLA0:
  1769. $   on error then continue
  1770. $   on warning then continue
  1771. $   'Checkcc' temp.c
  1772. $   savedstatus = $status
  1773. $   teststatus = f$extract(9,1,savedstatus)
  1774. $   if (teststatus.nes."1")
  1775. $   THEN
  1776. $     perl_d_strtoull="undef"
  1777. $     DEASSIGN SYS$OUTPUT
  1778. $     DEASSIGN SYS$ERROR
  1779. $   ELSE
  1780. $     If (Needs_Opt.eqs."Yes")
  1781. $     THEN
  1782. $       link temp.obj,temp.opt/opt
  1783. $     else
  1784. $       link temp.obj
  1785. $     endif
  1786. $     savedstatus = $status
  1787. $     teststatus = f$extract(9,1,savedstatus)
  1788. $     DEASSIGN SYS$OUTPUT
  1789. $     DEASSIGN SYS$ERROR
  1790. $     if (teststatus.nes."1")
  1791. $     THEN
  1792. $       perl_d_strtoull="undef"
  1793. $     ELSE
  1794. $       perl_d_strtoull="define"
  1795. $     ENDIF
  1796. $   ENDIF
  1797. $ WRITE_RESULT "d_strtoull is ''perl_d_strtoull'"
  1798. $!
  1799. $! Check for strtouq
  1800. $!
  1801. $ OS
  1802. $ WS "#ifdef __DECC
  1803. $ WS "#include <stdlib.h>
  1804. $ WS "#endif
  1805. $ WS "#include <string.h>
  1806. $ WS "int main()
  1807. $ WS "{"
  1808. $ WS "unsigned __int64 result;
  1809. $ WS "result = strtouq(""123123"", NULL, 10);
  1810. $ WS "exit(0);
  1811. $ WS "}"
  1812. $ CS
  1813. $   DEFINE SYS$ERROR _NLA0:
  1814. $   DEFINE SYS$OUTPUT _NLA0:
  1815. $   on error then continue
  1816. $   on warning then continue
  1817. $   'Checkcc' temp.c
  1818. $   savedstatus = $status
  1819. $   teststatus = f$extract(9,1,savedstatus)
  1820. $   if (teststatus.nes."1")
  1821. $   THEN
  1822. $     perl_d_strtouq="undef"
  1823. $     DEASSIGN SYS$OUTPUT
  1824. $     DEASSIGN SYS$ERROR
  1825. $   ELSE
  1826. $     If (Needs_Opt.eqs."Yes")
  1827. $     THEN
  1828. $       link temp.obj,temp.opt/opt
  1829. $     else
  1830. $       link temp.obj
  1831. $     endif
  1832. $     savedstatus = $status
  1833. $     teststatus = f$extract(9,1,savedstatus)
  1834. $     DEASSIGN SYS$OUTPUT
  1835. $     DEASSIGN SYS$ERROR
  1836. $     if (teststatus.nes."1")
  1837. $     THEN
  1838. $       perl_d_strtouq="undef"
  1839. $     ELSE
  1840. $       perl_d_strtouq="define"
  1841. $     ENDIF
  1842. $   ENDIF
  1843. $ WRITE_RESULT "d_strtouq is ''perl_d_strtouq'"
  1844. $!
  1845. $! Check for strtoll
  1846. $!
  1847. $ OS
  1848. $ WS "#ifdef __DECC
  1849. $ WS "#include <stdlib.h>
  1850. $ WS "#endif
  1851. $ WS "#include <string.h>
  1852. $ WS "int main()
  1853. $ WS "{"
  1854. $ WS "__int64 result;
  1855. $ WS "result = strtoll(""123123"", NULL, 10);
  1856. $ WS "exit(0);
  1857. $ WS "}"
  1858. $ CS
  1859. $   DEFINE SYS$ERROR _NLA0:
  1860. $   DEFINE SYS$OUTPUT _NLA0:
  1861. $   on error then continue
  1862. $   on warning then continue
  1863. $   'Checkcc' temp.c
  1864. $   savedstatus = $status
  1865. $   teststatus = f$extract(9,1,savedstatus)
  1866. $   if (teststatus.nes."1")
  1867. $   THEN
  1868. $     perl_d_strtoll="undef"
  1869. $     DEASSIGN SYS$OUTPUT
  1870. $     DEASSIGN SYS$ERROR
  1871. $   ELSE
  1872. $     If (Needs_Opt.eqs."Yes")
  1873. $     THEN
  1874. $       link temp.obj,temp.opt/opt
  1875. $     else
  1876. $       link temp.obj
  1877. $     endif
  1878. $     savedstatus = $status
  1879. $     teststatus = f$extract(9,1,savedstatus)
  1880. $     DEASSIGN SYS$OUTPUT
  1881. $     DEASSIGN SYS$ERROR
  1882. $     if (teststatus.nes."1")
  1883. $     THEN
  1884. $       perl_d_strtoll="undef"
  1885. $     ELSE
  1886. $       perl_d_strtoll="define"
  1887. $     ENDIF
  1888. $   ENDIF
  1889. $ WRITE_RESULT "d_strtoll is ''perl_d_strtoll'"
  1890. $!
  1891. $! Check for strtold
  1892. $!
  1893. $ OS
  1894. $ WS "#ifdef __DECC
  1895. $ WS "#include <stdlib.h>
  1896. $ WS "#endif
  1897. $ WS "#include <string.h>
  1898. $ WS "int main()
  1899. $ WS "{"
  1900. $ WS "long double result;
  1901. $ WS "result = strtold(""123123"", NULL, 10);
  1902. $ WS "exit(0);
  1903. $ WS "}"
  1904. $ CS
  1905. $   DEFINE SYS$ERROR _NLA0:
  1906. $   DEFINE SYS$OUTPUT _NLA0:
  1907. $   on error then continue
  1908. $   on warning then continue
  1909. $   'Checkcc' temp.c
  1910. $   savedstatus = $status
  1911. $   teststatus = f$extract(9,1,savedstatus)
  1912. $   if (teststatus.nes."1")
  1913. $   THEN
  1914. $     perl_d_strtold="undef"
  1915. $     DEASSIGN SYS$OUTPUT
  1916. $     DEASSIGN SYS$ERROR
  1917. $   ELSE
  1918. $     If (Needs_Opt.eqs."Yes")
  1919. $     THEN
  1920. $       link temp.obj,temp.opt/opt
  1921. $     else
  1922. $       link temp.obj
  1923. $     endif
  1924. $     savedstatus = $status
  1925. $     teststatus = f$extract(9,1,savedstatus)
  1926. $     DEASSIGN SYS$OUTPUT
  1927. $     DEASSIGN SYS$ERROR
  1928. $     if (teststatus.nes."1")
  1929. $     THEN
  1930. $       perl_d_strtold="undef"
  1931. $     ELSE
  1932. $       perl_d_strtold="define"
  1933. $     ENDIF
  1934. $   ENDIF
  1935. $ WRITE_RESULT "d_strtold is ''perl_d_strtold'"
  1936. $!
  1937. $! Check for atoll
  1938. $!
  1939. $ OS
  1940. $ WS "#ifdef __DECC
  1941. $ WS "#include <stdlib.h>
  1942. $ WS "#endif
  1943. $ WS "#include <string.h>
  1944. $ WS "int main()
  1945. $ WS "{"
  1946. $ WS " __int64 result;
  1947. $ WS "result = atoll(""123123"");
  1948. $ WS "exit(0);
  1949. $ WS "}"
  1950. $ CS
  1951. $   DEFINE SYS$ERROR _NLA0:
  1952. $   DEFINE SYS$OUTPUT _NLA0:
  1953. $   on error then continue
  1954. $   on warning then continue
  1955. $   'Checkcc' temp.c
  1956. $   savedstatus = $status
  1957. $   teststatus = f$extract(9,1,savedstatus)
  1958. $   if (teststatus.nes."1")
  1959. $   THEN
  1960. $     perl_d_atoll="undef"
  1961. $     DEASSIGN SYS$OUTPUT
  1962. $     DEASSIGN SYS$ERROR
  1963. $   ELSE
  1964. $     If (Needs_Opt.eqs."Yes")
  1965. $     THEN
  1966. $       link temp.obj,temp.opt/opt
  1967. $     else
  1968. $       link temp.obj
  1969. $     endif
  1970. $     savedstatus = $status
  1971. $     teststatus = f$extract(9,1,savedstatus)
  1972. $     DEASSIGN SYS$OUTPUT
  1973. $     DEASSIGN SYS$ERROR
  1974. $     if (teststatus.nes."1")
  1975. $     THEN
  1976. $       perl_d_atoll="undef"
  1977. $     ELSE
  1978. $       perl_d_atoll="define"
  1979. $     ENDIF
  1980. $   ENDIF
  1981. $ WRITE_RESULT "d_atoll is ''perl_d_atoll'"
  1982. $!
  1983. $! Check for atoll
  1984. $!
  1985. $ OS
  1986. $ WS "#ifdef __DECC
  1987. $ WS "#include <stdlib.h>
  1988. $ WS "#endif
  1989. $ WS "#include <string.h>
  1990. $ WS "int main()
  1991. $ WS "{"
  1992. $ WS "long double
  1993. $ WS "result = atolf(""123123"");
  1994. $ WS "exit(0);
  1995. $ WS "}"
  1996. $ CS
  1997. $   DEFINE SYS$ERROR _NLA0:
  1998. $   DEFINE SYS$OUTPUT _NLA0:
  1999. $   on error then continue
  2000. $   on warning then continue
  2001. $   'Checkcc' temp.c
  2002. $   savedstatus = $status
  2003. $   teststatus = f$extract(9,1,savedstatus)
  2004. $   if (teststatus.nes."1")
  2005. $   THEN
  2006. $     perl_d_atolf="undef"
  2007. $     DEASSIGN SYS$OUTPUT
  2008. $     DEASSIGN SYS$ERROR
  2009. $   ELSE
  2010. $     If (Needs_Opt.eqs."Yes")
  2011. $     THEN
  2012. $       link temp.obj,temp.opt/opt
  2013. $     else
  2014. $       link temp.obj
  2015. $     endif
  2016. $     savedstatus = $status
  2017. $     teststatus = f$extract(9,1,savedstatus)
  2018. $     DEASSIGN SYS$OUTPUT
  2019. $     DEASSIGN SYS$ERROR
  2020. $     if (teststatus.nes."1")
  2021. $     THEN
  2022. $       perl_d_atolf="undef"
  2023. $     ELSE
  2024. $       perl_d_atolf="define"
  2025. $     ENDIF
  2026. $   ENDIF
  2027. $ WRITE_RESULT "d_atolf is ''perl_d_atolf'"
  2028. $!
  2029. $! Check for access
  2030. $!
  2031. $ OS
  2032. $ WS "#ifdef __DECC
  2033. $ WS "#include <stdlib.h>
  2034. $ WS "#endif
  2035. $ WS "#include <stdio.h>
  2036. $ WS "#include <unistd.h>
  2037. $ WS "int main()
  2038. $ WS "{"
  2039. $ WS "access("foo", F_OK);
  2040. $ WS "exit(0);
  2041. $ WS "}"
  2042. $ CS
  2043. $   DEFINE SYS$ERROR _NLA0:
  2044. $   DEFINE SYS$OUTPUT _NLA0:
  2045. $   on error then continue
  2046. $   on warning then continue
  2047. $   'Checkcc' temp.c
  2048. $   savedstatus = $status
  2049. $   teststatus = f$extract(9,1,savedstatus)
  2050. $   if (teststatus.nes."1")
  2051. $   THEN
  2052. $     perl_d_access="undef"
  2053. $     DEASSIGN SYS$OUTPUT
  2054. $     DEASSIGN SYS$ERROR
  2055. $   ELSE
  2056. $     If (Needs_Opt.eqs."Yes")
  2057. $     THEN
  2058. $       link temp.obj,temp.opt/opt
  2059. $     else
  2060. $       link temp.obj
  2061. $     endif
  2062. $     savedstatus = $status
  2063. $     teststatus = f$extract(9,1,savedstatus)
  2064. $     DEASSIGN SYS$OUTPUT
  2065. $     DEASSIGN SYS$ERROR
  2066. $     if (teststatus.nes."1")
  2067. $     THEN
  2068. $       perl_d_access="undef"
  2069. $     ELSE
  2070. $       perl_d_access="define"
  2071. $     ENDIF
  2072. $   ENDIF
  2073. $ WRITE_RESULT "d_access is ''perl_d_access'"
  2074. $!
  2075. $! Check for bzero
  2076. $!
  2077. $ OS
  2078. $ WS "#ifdef __DECC
  2079. $ WS "#include <stdlib.h>
  2080. $ WS "#endif
  2081. $ WS "#include <stdio.h>
  2082. $ WS "#include <strings.h>
  2083. $ WS "int main()
  2084. $ WS "{"
  2085. $ WS "char foo[10];
  2086. $ WS "bzero(foo, 10);
  2087. $ WS "exit(0);
  2088. $ WS "}"
  2089. $ CS
  2090. $   DEFINE SYS$ERROR _NLA0:
  2091. $   DEFINE SYS$OUTPUT _NLA0:
  2092. $   on error then continue
  2093. $   on warning then continue
  2094. $   'Checkcc' temp.c
  2095. $   savedstatus = $status
  2096. $   teststatus = f$extract(9,1,savedstatus)
  2097. $   if (teststatus.nes."1")
  2098. $   THEN
  2099. $     perl_d_bzero="undef"
  2100. $     DEASSIGN SYS$OUTPUT
  2101. $     DEASSIGN SYS$ERROR
  2102. $   ELSE
  2103. $     If (Needs_Opt.eqs."Yes")
  2104. $     THEN
  2105. $       link temp.obj,temp.opt/opt
  2106. $     else
  2107. $       link temp.obj
  2108. $     endif
  2109. $     savedstatus = $status
  2110. $     teststatus = f$extract(9,1,savedstatus)
  2111. $     DEASSIGN SYS$OUTPUT
  2112. $     DEASSIGN SYS$ERROR
  2113. $     if (teststatus.nes."1")
  2114. $     THEN
  2115. $       perl_d_bzero="undef"
  2116. $     ELSE
  2117. $       perl_d_bzero="define"
  2118. $     ENDIF
  2119. $   ENDIF
  2120. $ WRITE_RESULT "d_bzero is ''perl_d_bzero'"
  2121. $!
  2122. $! Check for bcopy
  2123. $!
  2124. $ OS
  2125. $ WS "#ifdef __DECC
  2126. $ WS "#include <stdlib.h>
  2127. $ WS "#endif
  2128. $ WS "#include <stdio.h>
  2129. $ WS "#include <strings.h>
  2130. $ WS "int main()
  2131. $ WS "{"
  2132. $ WS "char foo[10], bar[10];
  2133. $ WS "bcopy(""foo"", bar, 3);
  2134. $ WS "exit(0);
  2135. $ WS "}"
  2136. $ CS
  2137. $   DEFINE SYS$ERROR _NLA0:
  2138. $   DEFINE SYS$OUTPUT _NLA0:
  2139. $   on error then continue
  2140. $   on warning then continue
  2141. $   'Checkcc' temp.c
  2142. $   savedstatus = $status
  2143. $   teststatus = f$extract(9,1,savedstatus)
  2144. $   if (teststatus.nes."1")
  2145. $   THEN
  2146. $     perl_d_bcopy="undef"
  2147. $     DEASSIGN SYS$OUTPUT
  2148. $     DEASSIGN SYS$ERROR
  2149. $   ELSE
  2150. $     If (Needs_Opt.eqs."Yes")
  2151. $     THEN
  2152. $       link temp.obj,temp.opt/opt
  2153. $     else
  2154. $       link temp.obj
  2155. $     endif
  2156. $     savedstatus = $status
  2157. $     teststatus = f$extract(9,1,savedstatus)
  2158. $     DEASSIGN SYS$OUTPUT
  2159. $     DEASSIGN SYS$ERROR
  2160. $     if (teststatus.nes."1")
  2161. $     THEN
  2162. $       perl_d_bcopy="undef"
  2163. $     ELSE
  2164. $       perl_d_bcopy="define"
  2165. $     ENDIF
  2166. $   ENDIF
  2167. $ WRITE_RESULT "d_bcopy is ''perl_d_bcopy'"
  2168. $!
  2169. $! Check for mkstemp
  2170. $!
  2171. $ OS
  2172. $ WS "#ifdef __DECC
  2173. $ WS "#include <stdlib.h>
  2174. $ WS "#endif
  2175. $ WS "#include <stdio.h>
  2176. $ WS "int main()
  2177. $ WS "{"
  2178. $ WS "mkstemp(""foo"");
  2179. $ WS "exit(0);
  2180. $ WS "}"
  2181. $ CS
  2182. $   DEFINE SYS$ERROR _NLA0:
  2183. $   DEFINE SYS$OUTPUT _NLA0:
  2184. $   on error then continue
  2185. $   on warning then continue
  2186. $   'Checkcc' temp.c
  2187. $   If (Needs_Opt.eqs."Yes")
  2188. $   THEN
  2189. $     link temp.obj,temp.opt/opt
  2190. $   else
  2191. $     link temp.obj
  2192. $   endif
  2193. $   savedstatus = $status
  2194. $   teststatus = f$extract(9,1,savedstatus)
  2195. $   DEASSIGN SYS$OUTPUT
  2196. $   DEASSIGN SYS$ERROR
  2197. $   if (teststatus.nes."1")
  2198. $   THEN
  2199. $     perl_d_mkstemp="undef"
  2200. $   ELSE
  2201. $     perl_d_mkstemp="define"
  2202. $   ENDIF
  2203. $ WRITE_RESULT "d_mkstemp is ''perl_d_mkstemp'"
  2204. $!
  2205. $! Check for mkstemps
  2206. $!
  2207. $ OS
  2208. $ WS "#ifdef __DECC
  2209. $ WS "#include <stdlib.h>
  2210. $ WS "#endif
  2211. $ WS "#include <stdio.h>
  2212. $ WS "int main()
  2213. $ WS "{"
  2214. $ WS "mkstemps(""foo"", 1);
  2215. $ WS "exit(0);
  2216. $ WS "}"
  2217. $ CS
  2218. $   DEFINE SYS$ERROR _NLA0:
  2219. $   DEFINE SYS$OUTPUT _NLA0:
  2220. $   on error then continue
  2221. $   on warning then continue
  2222. $   'Checkcc' temp.c
  2223. $   If (Needs_Opt.eqs."Yes")
  2224. $   THEN
  2225. $     link temp.obj,temp.opt/opt
  2226. $   else
  2227. $     link temp.obj
  2228. $   endif
  2229. $   savedstatus = $status
  2230. $   teststatus = f$extract(9,1,savedstatus)
  2231. $   DEASSIGN SYS$OUTPUT
  2232. $   DEASSIGN SYS$ERROR
  2233. $   if (teststatus.nes."1")
  2234. $   THEN
  2235. $     perl_d_mkstemps="undef"
  2236. $   ELSE
  2237. $     perl_d_mkstemps="define"
  2238. $   ENDIF
  2239. $ WRITE_RESULT "d_mkstemps is ''perl_d_mkstemps'"
  2240. $!
  2241. $! Check for iconv
  2242. $!
  2243. $ OS
  2244. $ WS "#ifdef __DECC
  2245. $ WS "#include <stdlib.h>
  2246. $ WS "#endif
  2247. $ WS "#include <stdio.h>
  2248. $ WS "#include <iconv.h>
  2249. $ WS "int main()
  2250. $ WS "{"
  2251. $ WS "  iconv_t cd = (iconv_t)0;"
  2252. $ WS "  char *inbuf, *outbuf;"
  2253. $ WS "  size_t inleft, outleft;"
  2254. $ WS "  iconv(cd, &inbuf, &inleft, &outbuf, &outleft);"
  2255. $ WS "exit(0);
  2256. $ WS "}"
  2257. $ CS
  2258. $   DEFINE SYS$ERROR _NLA0:
  2259. $   DEFINE SYS$OUTPUT _NLA0:
  2260. $   on error then continue
  2261. $   on warning then continue
  2262. $   'Checkcc' temp.c
  2263. $   savedstatus = $status
  2264. $   teststatus = f$extract(9,1,savedstatus)
  2265. $   if (teststatus.nes."1")
  2266. $   THEN
  2267. $     perl_d_iconv="undef"
  2268. $     perl_i_iconv="undef"
  2269. $     DEASSIGN SYS$OUTPUT
  2270. $     DEASSIGN SYS$ERROR
  2271. $   ELSE
  2272. $     If (Needs_Opt.eqs."Yes")
  2273. $     THEN
  2274. $       link temp.obj,temp.opt/opt
  2275. $     else
  2276. $       link temp.obj
  2277. $     endif
  2278. $     savedstatus = $status
  2279. $     teststatus = f$extract(9,1,savedstatus)
  2280. $     DEASSIGN SYS$OUTPUT
  2281. $     DEASSIGN SYS$ERROR
  2282. $     if (teststatus.nes."1")
  2283. $  THEN
  2284. $       perl_d_iconv="undef"
  2285. $       perl_i_iconv="undef"
  2286. $     ELSE
  2287. $       perl_d_iconv="define"
  2288. $       perl_i_iconv="define"
  2289. $     ENDIF
  2290. $   ENDIF
  2291. $ WRITE_RESULT "d_iconv is ''perl_d_iconv'"
  2292. $ WRITE_RESULT "i_iconv is ''perl_i_iconv'"
  2293. $!
  2294. $! Check for mkdtemp
  2295. $!
  2296. $ OS
  2297. $ WS "#ifdef __DECC
  2298. $ WS "#include <stdlib.h>
  2299. $ WS "#endif
  2300. $ WS "#include <stdio.h>
  2301. $ WS "int main()
  2302. $ WS "{"
  2303. $ WS "mkdtemp(""foo"");
  2304. $ WS "exit(0);
  2305. $ WS "}"
  2306. $ CS
  2307. $   DEFINE SYS$ERROR _NLA0:
  2308. $   DEFINE SYS$OUTPUT _NLA0:
  2309. $   on error then continue
  2310. $   on warning then continue
  2311. $   'Checkcc' temp.c
  2312. $   If (Needs_Opt.eqs."Yes")
  2313. $   THEN
  2314. $     link temp.obj,temp.opt/opt
  2315. $   else
  2316. $     link temp.obj
  2317. $   endif
  2318. $   savedstatus = $status
  2319. $   teststatus = f$extract(9,1,savedstatus)
  2320. $   DEASSIGN SYS$OUTPUT
  2321. $   DEASSIGN SYS$ERROR
  2322. $   if (teststatus.nes."1")
  2323. $   THEN
  2324. $     perl_d_mkdtemp="undef"
  2325. $   ELSE
  2326. $     perl_d_mkdtemp="define"
  2327. $   ENDIF
  2328. $ WRITE_RESULT "d_mkdtemp is ''perl_d_mkdtemp'"
  2329. $!
  2330. $! Check for setvbuf
  2331. $!
  2332. $ OS
  2333. $ WS "#ifdef __DECC
  2334. $ WS "#include <stdlib.h>
  2335. $ WS "#endif
  2336. $ WS "#include <stdio.h>
  2337. $ WS "int main()
  2338. $ WS "{"
  2339. $ WS "FILE *foo;
  2340. $ WS "char Buffer[99];
  2341. $ WS "foo = fopen(""foo"", ""r"");
  2342. $ WS "setvbuf(foo, Buffer, 0, 0);
  2343. $ WS "exit(0);
  2344. $ WS "}"
  2345. $ CS
  2346. $   DEFINE SYS$ERROR _NLA0:
  2347. $   DEFINE SYS$OUTPUT _NLA0:
  2348. $   on error then continue
  2349. $   on warning then continue
  2350. $   'Checkcc' temp.c
  2351. $   If (Needs_Opt.eqs."Yes")
  2352. $   THEN
  2353. $     link temp.obj,temp.opt/opt
  2354. $   else
  2355. $     link temp.obj
  2356. $   endif
  2357. $   teststatus = f$extract(9,1,$status)
  2358. $   DEASSIGN SYS$OUTPUT
  2359. $   DEASSIGN SYS$ERROR
  2360. $   if (teststatus.nes."1")
  2361. $   THEN
  2362. $     perl_d_setvbuf="undef"
  2363. $   ELSE
  2364. $     perl_d_setvbuf="define"
  2365. $   ENDIF
  2366. $ WRITE_RESULT "d_setvbuf is ''perl_d_setvbuf'"
  2367. $!
  2368. $! Check for setenv
  2369. $!
  2370. $ OS
  2371. $ WS "#ifdef __DECC
  2372. $ WS "#include <stdlib.h>
  2373. $ WS "#endif
  2374. $ WS "#include <stdio.h>
  2375. $ WS "int main()
  2376. $ WS "{"
  2377. $ WS "setenv(""FOO"", ""BAR"", 0);
  2378. $ WS "exit(0);
  2379. $ WS "}"
  2380. $ CS
  2381. $   DEFINE SYS$ERROR _NLA0:
  2382. $   DEFINE SYS$OUTPUT _NLA0:
  2383. $   on error then continue
  2384. $   on warning then continue
  2385. $   'Checkcc' temp
  2386. $   If (Needs_Opt.eqs."Yes")
  2387. $   THEN
  2388. $     link temp,temp/opt
  2389. $   else
  2390. $     link temp
  2391. $   endif
  2392. $   teststatus = f$extract(9,1,$status)
  2393. $   DEASSIGN SYS$OUTPUT
  2394. $   DEASSIGN SYS$ERROR
  2395. $   if (teststatus.nes."1")
  2396. $   THEN
  2397. $     perl_d_setenv="undef"
  2398. $   ELSE
  2399. $     perl_d_setenv="define"
  2400. $   ENDIF
  2401. $ WRITE_RESULT "d_setenv is ''perl_d_setenv'"
  2402. $!
  2403. $! Check for <netinet/in.h>
  2404. $!
  2405. $ if ("''Has_Dec_C_Sockets'".eqs."T").or.("''Has_Socketshr'".eqs."T")
  2406. $ THEN
  2407. $ OS
  2408. $ WS "#ifdef __DECC
  2409. $ WS "#include <stdlib.h>
  2410. $ WS "#endif
  2411. $ WS "#include <stdio.h>
  2412. $ if ("''Has_Socketshr'".eqs."T")
  2413. $ THEN
  2414. $  WS "#include <socketshr.h>"
  2415. $ else
  2416. $  WS "#include <netdb.h>
  2417. $ endif
  2418. $ WS "#include <netinet/in.h>"
  2419. $ WS "int main()
  2420. $ WS "{"
  2421. $ WS "exit(0);
  2422. $ WS "}"
  2423. $ CS
  2424. $   DEFINE SYS$ERROR _NLA0:
  2425. $   DEFINE SYS$OUTPUT _NLA0:
  2426. $   on error then continue
  2427. $   on warning then continue
  2428. $   'Checkcc' temp.c
  2429. $   If (Needs_Opt.eqs."Yes")
  2430. $   THEN
  2431. $     link temp.obj,temp.opt/opt
  2432. $   else
  2433. $     link temp.obj
  2434. $   endif
  2435. $   teststatus = f$extract(9,1,$status)
  2436. $   DEASSIGN SYS$OUTPUT
  2437. $   DEASSIGN SYS$ERROR
  2438. $   if (teststatus.nes."1")
  2439. $   THEN
  2440. $     perl_i_niin="undef"
  2441. $   ELSE
  2442. $     perl_i_niin="define"
  2443. $   ENDIF
  2444. $ ELSE
  2445. $   perl_i_niin="undef"
  2446. $ ENDIF
  2447. $ WRITE_RESULT "i_niin is ''perl_i_niin'"
  2448. $!
  2449. $! Check for <netinet/tcp.h>
  2450. $!
  2451. $ if ("''Has_Dec_C_Sockets'".eqs."T").or.("''Has_Socketshr'".eqs."T")
  2452. $ THEN
  2453. $ OS
  2454. $ WS "#ifdef __DECC
  2455. $ WS "#include <stdlib.h>
  2456. $ WS "#endif
  2457. $ WS "#include <stdio.h>
  2458. $ if ("''Has_Socketshr'".eqs."T")
  2459. $ THEN
  2460. $  WS "#include <socketshr.h>"
  2461. $ else
  2462. $  WS "#include <netdb.h>
  2463. $ endif
  2464. $ WS "#include <netinet/tcp.h>"
  2465. $ WS "int main()
  2466. $ WS "{"
  2467. $ WS "exit(0);
  2468. $ WS "}"
  2469. $ CS
  2470. $   DEFINE SYS$ERROR _NLA0:
  2471. $   DEFINE SYS$OUTPUT _NLA0:
  2472. $   on error then continue
  2473. $   on warning then continue
  2474. $   'Checkcc' temp.c
  2475. $   If (Needs_Opt.eqs."Yes")
  2476. $   THEN
  2477. $     link temp.obj,temp.opt/opt
  2478. $   else
  2479. $     link temp.obj
  2480. $   endif
  2481. $   teststatus = f$extract(9,1,$status)
  2482. $   DEASSIGN SYS$OUTPUT
  2483. $   DEASSIGN SYS$ERROR
  2484. $   if (teststatus.nes."1")
  2485. $   THEN
  2486. $     perl_i_netinettcp="undef"
  2487. $   ELSE
  2488. $     perl_i_netinettcp="define"
  2489. $   ENDIF
  2490. $ ELSE
  2491. $   perl_i_netinettcp="undef"
  2492. $ ENDIF
  2493. $ WRITE_RESULT "i_netinettcp is ''perl_i_netinettcp'"
  2494. $!
  2495. $! Check for endhostent
  2496. $!
  2497. $ if ("''Has_Dec_C_Sockets'".eqs."T").or.("''Has_Socketshr'".eqs."T")
  2498. $ THEN
  2499. $ OS
  2500. $ WS "#ifdef __DECC
  2501. $ WS "#include <stdlib.h>
  2502. $ WS "#endif
  2503. $ WS "#include <stdio.h>
  2504. $ if ("''Has_Socketshr'".eqs."T")
  2505. $ THEN
  2506. $  WS "#include <socketshr.h>"
  2507. $ else
  2508. $  WS "#include <netdb.h>
  2509. $ endif
  2510. $ WS "int main()
  2511. $ WS "{"
  2512. $ WS "endhostent();
  2513. $ WS "exit(0);
  2514.  
  2515. $ CS
  2516. $   DEFINE SYS$ERROR _NLA0:
  2517. $   DEFINE SYS$OUTPUT _NLA0:
  2518. $   on error then continue
  2519. $   on warning then continue
  2520. $   'Checkcc' temp.c
  2521. $   If (Needs_Opt.eqs."Yes")
  2522. $   THEN
  2523. $     link temp.obj,temp.opt/opt
  2524. $   else
  2525. $     link temp.obj
  2526. $   endif
  2527. $   teststatus = f$extract(9,1,$status)
  2528. $   DEASSIGN SYS$OUTPUT
  2529. $   DEASSIGN SYS$ERROR
  2530. $   if (teststatus.nes."1")
  2531. $   THEN
  2532. $     perl_d_endhent="undef"
  2533. $   ELSE
  2534. $     perl_d_endhent="define"
  2535. $   ENDIF
  2536. $ ELSE
  2537. $ perl_d_endhent="undef"
  2538. $ ENDIF
  2539. $ WRITE_RESULT "d_endhent is ''perl_d_endhent'"
  2540. $!
  2541. $! Check for endnetent
  2542. $!
  2543. $ if ("''Has_Dec_C_Sockets'".eqs."T").or.("''Has_Socketshr'".eqs."T")
  2544. $ THEN
  2545. $ OS
  2546. $ WS "#ifdef __DECC
  2547. $ WS "#include <stdlib.h>
  2548. $ WS "#endif
  2549. $ WS "#include <stdio.h>
  2550. $ if ("''Has_Socketshr'".eqs."T")
  2551. $ THEN
  2552. $  WS "#include <socketshr.h>"
  2553. $ else
  2554. $  WS "#include <netdb.h>
  2555. $ endif
  2556. $ WS "int main()
  2557. $ WS "{"
  2558. $ WS "endnetent();
  2559. $ WS "exit(0);
  2560. $ WS "}"
  2561. $ CS
  2562. $   DEFINE SYS$ERROR _NLA0:
  2563. $   DEFINE SYS$OUTPUT _NLA0:
  2564. $   on error then continue
  2565. $   on warning then continue
  2566. $   'Checkcc' temp.c
  2567. $   If (Needs_Opt.eqs."Yes")
  2568. $   THEN
  2569. $     link temp.obj,temp.opt/opt
  2570. $   else
  2571. $     link temp.obj
  2572. $   endif
  2573. $   teststatus = f$extract(9,1,$status)
  2574. $   DEASSIGN SYS$OUTPUT
  2575. $   DEASSIGN SYS$ERROR
  2576. $   if (teststatus.nes."1")
  2577. $   THEN
  2578. $     perl_d_endnent="undef"
  2579. $   ELSE
  2580. $     perl_d_endnent="define"
  2581. $   ENDIF
  2582. $ ELSE
  2583. $ perl_d_endnent="undef"
  2584. $ ENDIF
  2585. $ WRITE_RESULT "d_endnent is ''perl_d_endnent'"
  2586. $!
  2587. $! Check for endprotoent
  2588. $!
  2589. $ if ("''Has_Dec_C_Sockets'".eqs."T").or.("''Has_Socketshr'".eqs."T")
  2590. $ THEN
  2591. $ OS
  2592. $ WS "#ifdef __DECC
  2593. $ WS "#include <stdlib.h>
  2594. $ WS "#endif
  2595. $ WS "#include <stdio.h>
  2596. $ if ("''Has_Socketshr'".eqs."T")
  2597. $ THEN
  2598. $  WS "#include <socketshr.h>"
  2599. $ else
  2600. $  WS "#include <netdb.h>
  2601. $ endif
  2602. $ WS "int main()
  2603. $ WS "{"
  2604. $ WS "endprotoent();
  2605. $ WS "exit(0);
  2606. $ WS "}"
  2607. $ CS
  2608. $   DEFINE SYS$ERROR _NLA0:
  2609. $   DEFINE SYS$OUTPUT _NLA0:
  2610. $   on error then continue
  2611. $   on warning then continue
  2612. $   'Checkcc' temp.c
  2613. $   If (Needs_Opt.eqs."Yes")
  2614. $   THEN
  2615. $     link temp.obj,temp.opt/opt
  2616. $   else
  2617. $     link temp.obj
  2618. $   endif
  2619. $   teststatus = f$extract(9,1,$status)
  2620. $   DEASSIGN SYS$OUTPUT
  2621. $   DEASSIGN SYS$ERROR
  2622. $   if (teststatus.nes."1")
  2623. $   THEN
  2624. $     perl_d_endpent="undef"
  2625. $   ELSE
  2626. $     perl_d_endpent="define"
  2627. $   ENDIF
  2628. $ ELSE
  2629. $ perl_d_endpent="undef"
  2630. $ ENDIF
  2631. $ WRITE_RESULT "d_endpent is ''perl_d_endpent'"
  2632. $!
  2633. $! Check for endservent
  2634. $!
  2635. $ if ("''Has_Dec_C_Sockets'".eqs."T").or.("''Has_Socketshr'".eqs."T")
  2636. $ THEN
  2637. $ OS
  2638. $ WS "#ifdef __DECC
  2639. $ WS "#include <stdlib.h>
  2640. $ WS "#endif
  2641. $ WS "#include <stdio.h>
  2642. $ if ("''Has_Socketshr'".eqs."T")
  2643. $ THEN
  2644. $  WS "#include <socketshr.h>"
  2645. $ else
  2646. $  WS "#include <netdb.h>
  2647. $ endif
  2648. $ WS "int main()
  2649. $ WS "{"
  2650. $ WS "endservent();
  2651. $ WS "exit(0);
  2652. $ WS "}"
  2653. $ CS
  2654. $   DEFINE SYS$ERROR _NLA0:
  2655. $   DEFINE SYS$OUTPUT _NLA0:
  2656. $   on error then continue
  2657. $   on warning then continue
  2658. $   'Checkcc' temp.c
  2659. $   If (Needs_Opt.eqs."Yes")
  2660. $   THEN
  2661. $     link temp.obj,temp.opt/opt
  2662. $   else
  2663. $     link temp.obj
  2664. $   endif
  2665. $   teststatus = f$extract(9,1,$status)
  2666. $   DEASSIGN SYS$OUTPUT
  2667. $   DEASSIGN SYS$ERROR
  2668. $   if (teststatus.nes."1")
  2669. $   THEN
  2670. $     perl_d_endsent="undef"
  2671. $   ELSE
  2672. $     perl_d_endsent="define"
  2673. $   ENDIF
  2674. $ ELSE
  2675. $ perl_d_endsent="undef"
  2676. $ ENDIF
  2677. $ WRITE_RESULT "d_endsent is ''perl_d_endsent'"
  2678. $!
  2679. $! Check for sethostent
  2680. $!
  2681. $ if ("''Has_Dec_C_Sockets'".eqs."T").or.("''Has_Socketshr'".eqs."T")
  2682. $ THEN
  2683. $ OS
  2684. $ WS "#ifdef __DECC
  2685. $ WS "#include <stdlib.h>
  2686. $ WS "#endif
  2687. $ WS "#include <stdio.h>
  2688. $ if ("''Has_Socketshr'".eqs."T")
  2689. $ THEN
  2690. $  WS "#include <socketshr.h>"
  2691. $ else
  2692. $  WS "#include <netdb.h>
  2693. $ endif
  2694. $ WS "int main()
  2695. $ WS "{"
  2696. $ WS "sethostent(1);
  2697. $ WS "exit(0);
  2698. $ WS "}"
  2699. $ CS
  2700. $   DEFINE SYS$ERROR _NLA0:
  2701. $   DEFINE SYS$OUTPUT _NLA0:
  2702. $   on error then continue
  2703. $   on warning then continue
  2704. $   'Checkcc' temp.c
  2705. $   If (Needs_Opt.eqs."Yes")
  2706. $   THEN
  2707. $     link temp.obj,temp.opt/opt
  2708. $   else
  2709. $     link temp.obj
  2710. $   endif
  2711. $   teststatus = f$extract(9,1,$status)
  2712. $   DEASSIGN SYS$OUTPUT
  2713. $   DEASSIGN SYS$ERROR
  2714. $   if (teststatus.nes."1")
  2715. $   THEN
  2716. $     perl_d_sethent="undef"
  2717. $   ELSE
  2718. $     perl_d_sethent="define"
  2719. $   ENDIF
  2720. $ ELSE
  2721. $ perl_d_sethent="undef"
  2722. $ ENDIF
  2723. $ WRITE_RESULT "d_sethent is ''perl_d_sethent'"
  2724. $!
  2725. $! Check for setnetent
  2726. $!
  2727. $ if ("''Has_Dec_C_Sockets'".eqs."T").or.("''Has_Socketshr'".eqs."T")
  2728. $ THEN
  2729. $ OS
  2730. $ WS "#ifdef __DECC
  2731. $ WS "#include <stdlib.h>
  2732. $ WS "#endif
  2733. $ WS "#include <stdio.h>
  2734. $ if ("''Has_Socketshr'".eqs."T")
  2735. $ THEN
  2736. $  WS "#include <socketshr.h>"
  2737. $ else
  2738. $  WS "#include <netdb.h>
  2739. $ endif
  2740. $ WS "int main()
  2741. $ WS "{"
  2742. $ WS "setnetent(1);
  2743. $ WS "exit(0);
  2744. $ WS "}"
  2745. $ CS
  2746. $   DEFINE SYS$ERROR _NLA0:
  2747. $   DEFINE SYS$OUTPUT _NLA0:
  2748. $   on error then continue
  2749. $   on warning then continue
  2750. $   'Checkcc' temp.c
  2751. $   If (Needs_Opt.eqs."Yes")
  2752. $   THEN
  2753. $     link temp.obj,temp.opt/opt
  2754. $   else
  2755. $     link temp.obj
  2756. $   endif
  2757. $   teststatus = f$extract(9,1,$status)
  2758. $   DEASSIGN SYS$OUTPUT
  2759. $   DEASSIGN SYS$ERROR
  2760. $   if (teststatus.nes."1")
  2761. $   THEN
  2762. $     perl_d_setnent="undef"
  2763. $   ELSE
  2764. $     perl_d_setnent="define"
  2765. $   ENDIF
  2766. $ ELSE
  2767. $ perl_d_setnent="undef"
  2768. $ ENDIF
  2769. $ WRITE_RESULT "d_setnent is ''perl_d_setnent'"
  2770. $!
  2771. $! Check for setprotoent
  2772. $!
  2773. $ if ("''Has_Dec_C_Sockets'".eqs."T").or.("''Has_Socketshr'".eqs."T")
  2774. $ THEN
  2775. $ OS
  2776. $ WS "#ifdef __DECC
  2777. $ WS "#include <stdlib.h>
  2778. $ WS "#endif
  2779. $ WS "#include <stdio.h>
  2780. $ if ("''Has_Socketshr'".eqs."T")
  2781. $ THEN
  2782. $  WS "#include <socketshr.h>"
  2783. $ else
  2784. $  WS "#include <netdb.h>
  2785. $ endif
  2786. $ WS "int main()
  2787. $ WS "{"
  2788. $ WS "setprotoent(1);
  2789. $ WS "exit(0);
  2790. $ WS "}"
  2791. $ CS
  2792. $   DEFINE SYS$ERROR _NLA0:
  2793. $   DEFINE SYS$OUTPUT _NLA0:
  2794. $   on error then continue
  2795. $   on warning then continue
  2796. $   'Checkcc' temp.c
  2797. $   If (Needs_Opt.eqs."Yes")
  2798. $   THEN
  2799. $     link temp.obj,temp.opt/opt
  2800. $   else
  2801. $     link temp.obj
  2802. $   endif
  2803. $   teststatus = f$extract(9,1,$status)
  2804. $   DEASSIGN SYS$OUTPUT
  2805. $   DEASSIGN SYS$ERROR
  2806. $   if (teststatus.nes."1")
  2807. $   THEN
  2808. $     perl_d_setpent="undef"
  2809. $   ELSE
  2810. $     perl_d_setpent="define"
  2811. $   ENDIF
  2812. $ ELSE
  2813. $ perl_d_setpent="undef"
  2814. $ ENDIF
  2815. $ WRITE_RESULT "d_setpent is ''perl_d_setpent'"
  2816. $!
  2817. $! Check for setservent
  2818. $!
  2819. $ if ("''Has_Dec_C_Sockets'".eqs."T").or.("''Has_Socketshr'".eqs."T")
  2820. $ THEN
  2821. $ OS
  2822. $ WS "#ifdef __DECC
  2823. $ WS "#include <stdlib.h>
  2824. $ WS "#endif
  2825. $ WS "#include <stdio.h>
  2826. $ if ("''Has_Socketshr'".eqs."T")
  2827. $ THEN
  2828. $  WS "#include <socketshr.h>"
  2829. $ else
  2830. $  WS "#include <netdb.h>
  2831. $ endif
  2832. $ WS "int main()
  2833. $ WS "{"
  2834. $ WS "setservent(1);
  2835. $ WS "exit(0);
  2836. $ WS "}"
  2837. $ CS
  2838. $   DEFINE SYS$ERROR _NLA0:
  2839. $   DEFINE SYS$OUTPUT _NLA0:
  2840. $   on error then continue
  2841. $   on warning then continue
  2842. $   'Checkcc' temp.c
  2843. $   If (Needs_Opt.eqs."Yes")
  2844. $   THEN
  2845. $     link temp.obj,temp.opt/opt
  2846. $   else
  2847. $     link temp.obj
  2848. $   endif
  2849. $   teststatus = f$extract(9,1,$status)
  2850. $   DEASSIGN SYS$OUTPUT
  2851. $   DEASSIGN SYS$ERROR
  2852. $   if (teststatus.nes."1")
  2853. $   THEN
  2854. $     perl_d_setsent="undef"
  2855. $   ELSE
  2856. $     perl_d_setsent="define"
  2857. $   ENDIF
  2858. $ ELSE
  2859. $ perl_d_setsent="undef"
  2860. $ ENDIF
  2861. $ WRITE_RESULT "d_setsent is ''perl_d_setsent'"
  2862. $!
  2863. $! Check for gethostent
  2864. $!
  2865. $ if ("''Has_Dec_C_Sockets'".eqs."T").or.("''Has_Socketshr'".eqs."T")
  2866. $ THEN
  2867. $ OS
  2868. $ WS "#ifdef __DECC
  2869. $ WS "#include <stdlib.h>
  2870. $ WS "#endif
  2871. $ WS "#include <stdio.h>
  2872. $ if ("''Has_Socketshr'".eqs."T")
  2873. $ THEN
  2874. $  WS "#include <socketshr.h>"
  2875. $ else
  2876. $  WS "#include <netdb.h>
  2877. $ endif
  2878. $ WS "int main()
  2879. $ WS "{"
  2880. $ WS "gethostent();
  2881. $ WS "exit(0);
  2882. $ WS "}"
  2883. $ CS
  2884. $   DEFINE SYS$ERROR _NLA0:
  2885. $   DEFINE SYS$OUTPUT _NLA0:
  2886. $   on error then continue
  2887. $   on warning then continue
  2888. $   'Checkcc' temp.c
  2889. $   If (Needs_Opt.eqs."Yes")
  2890. $   THEN
  2891. $     link temp.obj,temp.opt/opt
  2892. $   else
  2893. $     link temp.obj
  2894. $   endif
  2895. $   teststatus = f$extract(9,1,$status)
  2896. $   DEASSIGN SYS$OUTPUT
  2897. $   DEASSIGN SYS$ERROR
  2898. $   if (teststatus.nes."1")
  2899. $   THEN
  2900. $     perl_d_gethent="undef"
  2901. $   ELSE
  2902. $     perl_d_gethent="define"
  2903. $   ENDIF
  2904. $ ELSE
  2905. $ perl_d_gethent="undef"
  2906. $ ENDIF
  2907. $ WRITE_RESULT "d_gethent is ''perl_d_gethent'"
  2908. $!
  2909. $! Check for getnetent
  2910. $!
  2911. $ if ("''Has_Dec_C_Sockets'".eqs."T").or.("''Has_Socketshr'".eqs."T")
  2912. $ THEN
  2913. $ OS
  2914. $ WS "#ifdef __DECC
  2915. $ WS "#include <stdlib.h>
  2916. $ WS "#endif
  2917. $ WS "#include <stdio.h>
  2918. $ if ("''Has_Socketshr'".eqs."T")
  2919. $ THEN
  2920. $  WS "#include <socketshr.h>"
  2921. $ else
  2922. $  WS "#include <netdb.h>
  2923. $ endif
  2924. $ WS "int main()
  2925. $ WS "{"
  2926. $ WS "getnetent();
  2927. $ WS "exit(0);
  2928. $ WS "}"
  2929. $ CS
  2930. $   DEFINE SYS$ERROR _NLA0:
  2931. $   DEFINE SYS$OUTPUT _NLA0:
  2932. $   on error then continue
  2933. $   on warning then continue
  2934. $   'Checkcc' temp.c
  2935. $   If (Needs_Opt.eqs."Yes")
  2936. $   THEN
  2937. $     link temp.obj,temp.opt/opt
  2938. $   else
  2939. $     link temp.obj
  2940. $   endif
  2941. $   teststatus = f$extract(9,1,$status)
  2942. $   DEASSIGN SYS$OUTPUT
  2943. $   DEASSIGN SYS$ERROR
  2944. $   if (teststatus.nes."1")
  2945. $   THEN
  2946. $     perl_d_getnent="undef"
  2947. $   ELSE
  2948. $     perl_d_getnent="define"
  2949. $   ENDIF
  2950. $ ELSE
  2951. $ perl_d_getnent="undef"
  2952. $ ENDIF
  2953. $ WRITE_RESULT "d_getnent is ''perl_d_getnent'"
  2954. $!
  2955. $! Check for getprotoent
  2956. $!
  2957. $ if ("''Has_Dec_C_Sockets'".eqs."T").or.("''Has_Socketshr'".eqs."T")
  2958. $ THEN
  2959. $ OS
  2960. $ WS "#ifdef __DECC
  2961. $ WS "#include <stdlib.h>
  2962. $ WS "#endif
  2963. $ WS "#include <stdio.h>
  2964. $ if ("''Has_Socketshr'".eqs."T")
  2965. $ THEN
  2966. $  WS "#include <socketshr.h>"
  2967. $ else
  2968. $  WS "#include <netdb.h>
  2969. $ endif
  2970. $ WS "int main()
  2971. $ WS "{"
  2972. $ WS "getprotoent();
  2973. $ WS "exit(0);
  2974. $ WS "}"
  2975. $ CS
  2976. $   DEFINE SYS$ERROR _NLA0:
  2977. $   DEFINE SYS$OUTPUT _NLA0:
  2978. $   on error then continue
  2979. $   on warning then continue
  2980. $   'Checkcc' temp.c
  2981. $   If (Needs_Opt.eqs."Yes")
  2982. $   THEN
  2983. $     link temp.obj,temp.opt/opt
  2984. $   else
  2985. $     link temp.obj
  2986. $   endif
  2987. $   teststatus = f$extract(9,1,$status)
  2988. $   DEASSIGN SYS$OUTPUT
  2989. $   DEASSIGN SYS$ERROR
  2990. $   if (teststatus.nes."1")
  2991. $   THEN
  2992. $     perl_d_getpent="undef"
  2993. $   ELSE
  2994. $     perl_d_getpent="define"
  2995. $   ENDIF
  2996. $ ELSE
  2997. $ perl_d_getpent="undef"
  2998. $ ENDIF
  2999. $ WRITE_RESULT "d_getpent is ''perl_d_getpent'"
  3000. $!
  3001. $! Check for getservent
  3002. $!
  3003. $ if ("''Has_Dec_C_Sockets'".eqs."T").or.("''Has_Socketshr'".eqs."T")
  3004. $ THEN
  3005. $ OS
  3006. $ WS "#ifdef __DECC
  3007. $ WS "#include <stdlib.h>
  3008. $ WS "#endif
  3009. $ WS "#include <stdio.h>
  3010. $ if ("''Has_Socketshr'".eqs."T")
  3011. $ THEN
  3012. $  WS "#include <socketshr.h>"
  3013. $ else
  3014. $  WS "#include <netdb.h>
  3015. $ endif
  3016. $ WS "int main()
  3017. $ WS "{"
  3018. $ WS "getservent();
  3019. $ WS "exit(0);
  3020. $ WS "}"
  3021. $ CS
  3022. $   DEFINE SYS$ERROR _NLA0:
  3023. $   DEFINE SYS$OUTPUT _NLA0:
  3024. $   on error then continue
  3025. $   on warning then continue
  3026. $   'Checkcc' temp.c
  3027. $   If (Needs_Opt.eqs."Yes")
  3028. $   THEN
  3029. $     link temp.obj,temp.opt/opt
  3030. $   else
  3031. $     link temp.obj
  3032. $   endif
  3033. $   teststatus = f$extract(9,1,$status)
  3034. $   DEASSIGN SYS$OUTPUT
  3035. $   DEASSIGN SYS$ERROR
  3036. $   if (teststatus.nes."1")
  3037. $   THEN
  3038. $     perl_d_getsent="undef"
  3039. $   ELSE
  3040. $     perl_d_getsent="define"
  3041. $   ENDIF
  3042. $ ELSE
  3043. $ perl_d_getsent="undef"
  3044. $ ENDIF
  3045. $ WRITE_RESULT "d_getsent is ''perl_d_getsent'"
  3046. $!
  3047. $! Check for socklen_t
  3048. $!
  3049. $ if ("''Has_Dec_C_Sockets'".eqs."T").or.("''Has_Socketshr'".eqs."T")
  3050. $ THEN
  3051. $   OS
  3052. $   WS "#ifdef __DECC
  3053. $   WS "#include <stdlib.h>
  3054. $   WS "#endif
  3055. $   WS "#include <stdio.h>
  3056. $   IF ("''Has_Socketshr'".eqs."T")
  3057. $   THEN
  3058. $     WS "#include <socketshr.h>"
  3059. $   ELSE
  3060. $     WS "#include <netdb.h>
  3061. $   ENDIF
  3062. $   WS "int main()
  3063. $   WS "{"
  3064. $   WS "socklen_t x = 16;
  3065. $   WS "exit(0);
  3066. $   WS "}"
  3067. $   CS
  3068. $   DEFINE SYS$ERROR _NLA0:
  3069. $   DEFINE SYS$OUTPUT _NLA0:
  3070. $   on error then continue
  3071. $   on warning then continue
  3072. $   'Checkcc' temp.c
  3073. $   If (Needs_Opt.eqs."Yes")
  3074. $   THEN
  3075. $     link temp.obj,temp.opt/opt
  3076. $   else
  3077. $     link temp.obj
  3078. $   endif
  3079. $   teststatus = f$extract(9,1,$status)
  3080. $   DEASSIGN SYS$OUTPUT
  3081. $   DEASSIGN SYS$ERROR
  3082. $   if (teststatus.nes."1")
  3083. $   THEN
  3084. $     perl_d_socklen_t="undef"
  3085. $   ELSE
  3086. $     perl_d_socklen_t="define"
  3087. $   ENDIF
  3088. $ ELSE
  3089. $   perl_d_socklen_t="undef"
  3090. $ ENDIF
  3091. $ WRITE_RESULT "d_socklen_t is ''perl_d_socklen_t'"
  3092. $!
  3093. $! Check for pthread_yield
  3094. $!
  3095. $ if ("''use_threads'".eqs."T")
  3096. $ THEN
  3097. $ OS
  3098. $ WS "#ifdef __DECC
  3099. $ WS "#include <stdlib.h>
  3100. $ WS "#endif
  3101. $ WS "#include <pthread.h>
  3102. $ WS "#include <stdio.h>
  3103. $ WS "int main()
  3104. $ WS "{"
  3105. $ WS "pthread_yield();
  3106. $ WS "exit(0);
  3107. $ WS "}"
  3108. $ CS
  3109. $   DEFINE SYS$ERROR _NLA0:
  3110. $   DEFINE SYS$OUTPUT _NLA0:
  3111. $   on error then continue
  3112. $   on warning then continue
  3113. $   'Checkcc' temp.c
  3114. $   teststatus = f$extract(9,1,$status)
  3115. $   DEASSIGN SYS$OUTPUT
  3116. $   DEASSIGN SYS$ERROR
  3117. $   if (teststatus.nes."1")
  3118. $   THEN
  3119. $     perl_d_pthread_yield="undef"
  3120. $   ELSE
  3121. $     perl_d_pthread_yield="define"
  3122. $   ENDIF
  3123. $ ELSE
  3124. $   perl_d_pthread_yield="undef"
  3125. $ ENDIF
  3126. $ WRITE_RESULT "d_pthread_yield is ''perl_d_pthread_yield'"
  3127. $!
  3128. $! Check for sched_yield
  3129. $!
  3130. $ if ("''use_threads'".eqs."T")
  3131. $ THEN
  3132. $ OS
  3133. $ WS "#ifdef __DECC
  3134. $ WS "#include <stdlib.h>
  3135. $ WS "#endif
  3136. $ WS "#include <pthread.h>
  3137. $ WS "#include <stdio.h>
  3138. $ WS "int main()
  3139. $ WS "{"
  3140. $ WS "sched_yield();
  3141. $ WS "exit(0);
  3142. $ WS "}"
  3143. $ CS
  3144. $   DEFINE SYS$ERROR _NLA0:
  3145. $   DEFINE SYS$OUTPUT _NLA0:
  3146. $   on error then continue
  3147. $   on warning then continue
  3148. $   'Checkcc' temp.c
  3149. $   teststatus = f$extract(9,1,$status)
  3150. $   DEASSIGN SYS$OUTPUT
  3151. $   DEASSIGN SYS$ERROR
  3152. $   if (teststatus.nes."1")
  3153. $   THEN
  3154. $     perl_d_sched_yield="undef"
  3155. $     perl_sched_yield = " "
  3156. $   ELSE
  3157. $     perl_d_sched_yield="define"
  3158. $     perl_sched_yield = "sched_yield"
  3159. $   ENDIF
  3160. $ ELSE
  3161. $   perl_d_sched_yield="undef"
  3162. $   perl_sched_yield = " "
  3163. $ ENDIF
  3164. $ WRITE_RESULT "d_sched_yield is ''perl_d_sched_yield'"
  3165. $ WRITE_RESULT "sched_yield is ''perl_sched_yield'"
  3166. $!
  3167. $! Check for generic pointer size
  3168. $!
  3169. $ OS
  3170. $ WS "#ifdef __DECC
  3171. $ WS "#include <stdlib.h>
  3172. $ WS "#endif
  3173. $ WS "#include <stdio.h>
  3174. $ WS "int main()
  3175. $ WS "{"
  3176. $ WS "int foo;
  3177. $ WS "foo = sizeof(char *);
  3178. $ WS "printf(""%d\n"", foo);
  3179. $ WS "exit(0);
  3180. $ WS "}"
  3181. $ CS
  3182. $ DEFINE SYS$ERROR _NLA0:
  3183. $ DEFINE SYS$OUTPUT _NLA0:
  3184. $ ON ERROR THEN CONTINUE
  3185. $ ON WARNING THEN CONTINUE
  3186. $ 'Checkcc' temp.c
  3187. $ If (Needs_Opt.eqs."Yes")
  3188. $ THEN
  3189. $   link temp.obj,temp.opt/opt
  3190. $ ELSE
  3191. $   link temp.obj
  3192. $ ENDIF
  3193. $ OPEN/WRITE TEMPOUT [-.uu]tempout.lis
  3194. $ DEASSIGN SYS$OUTPUT
  3195. $ DEASSIGN SYS$ERROR
  3196. $ DEFINE SYS$ERROR TEMPOUT
  3197. $ DEFINE SYS$OUTPUT TEMPOUT
  3198. $ mcr []temp.exe
  3199. $ CLOSE TEMPOUT
  3200. $ DEASSIGN SYS$OUTPUT
  3201. $ DEASSIGN SYS$ERROR
  3202. $ OPEN/READ TEMPOUT [-.uu]tempout.lis
  3203. $ READ TEMPOUT line
  3204. $ CLOSE TEMPOUT
  3205. $ DELETE/NOLOG [-.uu]tempout.lis;
  3206. $ perl_ptrsize=line
  3207. $ WRITE_RESULT "ptrsize is ''perl_ptrsize'"
  3208. $!
  3209. $! Check for size_t size
  3210. $!
  3211. $ OS
  3212. $ WS "#ifdef __DECC
  3213. $ WS "#include <stdlib.h>
  3214. $ WS "#endif
  3215. $ WS "#include <stdio.h>
  3216. $ WS "int main()
  3217. $ WS "{"
  3218. $ WS "int foo;
  3219. $ WS "foo = sizeof(size_t);
  3220. $ WS "printf(""%d\n"", foo);
  3221. $ WS "exit(0);
  3222. $ WS "}"
  3223. $ CS
  3224. $   DEFINE SYS$ERROR _NLA0:
  3225. $   DEFINE SYS$OUTPUT _NLA0:
  3226. $   ON ERROR THEN CONTINUE
  3227. $   ON WARNING THEN CONTINUE
  3228. $   'Checkcc' temp.c
  3229. $   If Needs_Opt
  3230. $   THEN
  3231. $     link temp.obj,temp.opt/opt
  3232. $   else
  3233. $     link temp.obj
  3234. $   endif
  3235. $   OPEN/WRITE TEMPOUT [-.uu]tempout.lis
  3236. $   DEASSIGN SYS$OUTPUT
  3237. $   DEASSIGN SYS$ERROR
  3238. $   DEFINE SYS$ERROR TEMPOUT
  3239. $   DEFINE SYS$OUTPUT TEMPOUT
  3240. $   mcr []temp
  3241. $   CLOSE TEMPOUT
  3242. $   DEASSIGN SYS$OUTPUT
  3243. $   DEASSIGN SYS$ERROR
  3244. $   OPEN/READ TEMPOUT [-.uu]tempout.lis
  3245. $   READ TEMPOUT line
  3246. $   CLOSE TEMPOUT
  3247. $ DELETE/NOLOG [-.uu]tempout.lis;
  3248. $ perl_sizesize=line
  3249. $ WRITE_RESULT "sizesize is ''perl_sizesize'"
  3250. $!
  3251. $! Check rand48 and its ilk
  3252. $!
  3253. $ OS
  3254. $ WS "#ifdef __DECC
  3255. $ WS "#include <stdlib.h>
  3256. $ WS "#endif
  3257. $ WS "#include <stdio.h>
  3258. $ WS "int main()
  3259. $ WS "{"
  3260. $ WS "srand48(12L);"
  3261. $ WS "exit(0);
  3262. $ WS "}"
  3263. $ CS
  3264. $!
  3265. $   DEFINE SYS$ERROR _NLA0:
  3266. $   DEFINE SYS$OUTPUT _NLA0:
  3267. $   ON ERROR THEN CONTINUE
  3268. $   ON WARNING THEN CONTINUE
  3269. $   'Checkcc' temp
  3270. $   If (Needs_Opt.eqs."Yes")
  3271. $   THEN
  3272. $     link temp,temp.opt/opt
  3273. $   else
  3274. $     link temp
  3275. $   endif
  3276. $   teststatus = f$extract(9,1,$status)
  3277. $   DEASSIGN SYS$OUTPUT
  3278. $   DEASSIGN SYS$ERROR
  3279. $   if (teststatus.nes."1")
  3280. $   THEN
  3281. $     perl_drand01="random()"
  3282. $     perl_randseedtype = "unsigned"
  3283. $     perl_seedfunc = "srandom"
  3284. $   ENDIF
  3285. $ OS
  3286. $ WS "#ifdef __DECC
  3287. $ WS "#include <stdlib.h>
  3288. $ WS "#endif
  3289. $ WS "#include <stdio.h>
  3290. $ WS "int main()
  3291. $ WS "{"
  3292. $ WS "srandom(12);"
  3293. $ WS "exit(0);
  3294. $ WS "}"
  3295. $ CS
  3296. $! copy temp.c sys$output
  3297. $!
  3298. $   DEFINE SYS$ERROR _NLA0:
  3299. $   DEFINE SYS$OUTPUT _NLA0:
  3300. $   ON ERROR THEN CONTINUE
  3301. $   ON WARNING THEN CONTINUE
  3302. $   'Checkcc' temp
  3303. $   If (Needs_Opt.eqs."Yes")
  3304. $   THEN
  3305. $     link temp,temp.opt/opt
  3306. $   else
  3307. $     link temp
  3308. $   endif
  3309. $   teststatus = f$extract(9,1,$status)
  3310. $   DEASSIGN SYS$OUTPUT
  3311. $   DEASSIGN SYS$ERROR
  3312. $   if (teststatus.nes."1")
  3313. $   THEN
  3314. $     perl_drand01="(((float)rand())/((float)RAND_MAX))"
  3315. $     perl_randseedtype = "unsigned"
  3316. $     perl_seedfunc = "srand"
  3317. $   ENDIF
  3318. $ WRITE_RESULT "drand01 is ''perl_drand01'"
  3319. $!
  3320. $ set nover
  3321. $! Done with compiler checks. Clean up.
  3322. $ if f$search("temp.c").nes."" then DELETE/NOLOG temp.c;*
  3323. $ if f$search("temp.obj").nes."" then DELETE/NOLOG temp.obj;*
  3324. $ if f$search("temp.exe").nes."" then DELETE/NOLOG temp.exe;*
  3325. $ if f$search("temp.opt").nes."" then DELETE/NOLOG Temp.opt;*
  3326. $!
  3327. $!
  3328. $! Some that are compiler or VMS version sensitive
  3329. $!
  3330. $! Gnu C stuff
  3331. $ IF "''Using_Gnu_C'".EQS."Yes"
  3332. $ THEN
  3333. $   perl_d_attribut="define"
  3334. $   perl_vms_cc_type="gcc"
  3335. $ ELSE
  3336. $   perl_vms_cc_type="cc"
  3337. $   perl_d_attribut="undef"
  3338. $ ENDIF
  3339. $
  3340. $! Dec C >= 5.2 and VMS ver >= 7.0
  3341. $ IF (Using_Dec_C).AND.(F$INTEGER(Dec_C_Version).GE.50200000).AND.(VMS_VER .GES. "7.0")
  3342. $ THEN
  3343. $ perl_d_bcmp="define"
  3344. $ perl_d_gettimeod="define"
  3345. $ perl_d_uname="define"
  3346. $ perl_d_sigaction="define"
  3347. $ perl_d_truncate="define"
  3348. $ perl_d_wait4="define"
  3349. $ perl_d_index="define"
  3350. $ perl_pidtype="pid_t"
  3351. $ 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"
  3352. $ psnwc1="""ZERO"",""HUP"",""INT"",""QUIT"",""ILL"",""TRAP"",""IOT"",""EMT"",""FPE"",""KILL"",""BUS"",""SEGV"",""SYS"","
  3353. $ psnwc2="""PIPE"",""ALRM"",""TERM"",""ABRT"",""USR1"",""USR2"",""SPARE18"",""SPARE19"",""CHLD"",""CONT"",""STOP"",""TSTP"","
  3354. $ psnwc3="""TTIN"",""TTOU"",""DEBUG"",""SPARE27"",""SPARE28"",""SPARE29"",""SPARE30"",""SPARE31"",""SPARE32"",""RTMIN"",""RTMAX"",0"
  3355. $perl_sig_name_with_commas = psnwc1 + psnwc2 + psnwc3
  3356. $ 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"
  3357. $ 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"
  3358. $ perl_sig_num_with_commas=perl_sig_num_init
  3359. $ perl_uidtype="uid_t"
  3360. $ perl_d_pathconf="define"
  3361. $ perl_d_fpathconf="define"
  3362. $ perl_d_sysconf="define"
  3363. $ perl_d_sigsetjmp="define"
  3364. $ ELSE
  3365. $ perl_pidtype="unsigned int"
  3366. $ perl_d_gettimeod="undef"
  3367. $ perl_d_bcmp="undef"
  3368. $ perl_d_uname="undef"
  3369. $ perl_d_sigaction="undef"
  3370. $ perl_d_truncate="undef"
  3371. $ perl_d_wait4="undef"
  3372. $ perl_d_index="undef"
  3373. $ perl_sig_name="ZERO HUP INT QUIT ILL TRAP IOT EMT FPE KILL BUS SEGV SYS PIPE ALRM TERM ABRT USR1 USR2"",0"
  3374. $ psnwc1="""ZERO"",""HUP"",""INT"",""QUIT"",""ILL"",""TRAP"",""IOT"",""EMT"",""FPE"",""KILL"",""BUS"",""SEGV"",""SYS"","
  3375. $ psnwc2="""PIPE"",""ALRM"",""TERM"",""ABRT"",""USR1"",""USR2"",0"
  3376. $ perl_sig_name_with_commas = psnwc1 + psnwc2
  3377. $ perl_sig_num="0 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 6 16 17"",0"
  3378. $ perl_sig_num_init="0,1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,6,16,17,0"
  3379. $ perl_sig_num_with_commas=perl_sig_num_init
  3380. $ perl_uidtype="unsigned int"
  3381. $ perl_d_pathconf="undef"
  3382. $ perl_d_fpathconf="undef"
  3383. $ perl_d_sysconf="undef"
  3384. $ perl_d_sigsetjmp="undef"
  3385. $ ENDIF
  3386. $!
  3387. $! Dec C alone
  3388. $ IF ("''Using_Dec_C'".EQS."Yes")
  3389. $ THEN
  3390. $ perl_d_mbstowcs="define"
  3391. $ perl_d_mbtowc="define"
  3392. $ perl_d_stdiobase="define"
  3393. $ perl_d_stdio_ptr_lval="define"
  3394. $ perl_d_stdio_cnt_lval="define"
  3395. $ perl_d_stdstdio="define"
  3396. $ perl_d_wcstombs="define"
  3397. $ perl_d_mblen="define"
  3398. $ perl_d_mktime="define"
  3399. $ perl_d_strcoll="define"
  3400. $ perl_d_strxfrm="define"
  3401. $ perl_d_wctomb="define"
  3402. $ perl_i_locale="define"
  3403. $ perl_d_locconv="define"
  3404. $ perl_d_setlocale="define"
  3405. $ perl_vms_cc_type="decc"
  3406. $ ELSE
  3407. $ perl_d_mbstowcs="undef"
  3408. $ perl_d_mbtowc="undef"
  3409. $ perl_d_stdiobase="undef"
  3410. $ perl_d_stdio_ptr_lval="undef"
  3411. $ perl_d_stdio_cnt_lval="undef"
  3412. $ perl_d_stdstdio="undef"
  3413. $ perl_d_wcstombs="undef"
  3414. $ perl_d_mblen="undef"
  3415. $ perl_d_mktime="undef"
  3416. $ perl_d_strcoll="undef"
  3417. $ perl_d_strxfrm="undef"
  3418. $ perl_d_wctomb="undef"
  3419. $ perl_i_locale="undef"
  3420. $ perl_d_locconv="undef"
  3421. $ perl_d_setlocale="undef"
  3422. $ ENDIF
  3423. $!
  3424. $! Sockets?
  3425. $ if ("''Has_Socketshr'".EQS."T").OR.("''Has_Dec_C_Sockets'".EQS."T")
  3426. $ THEN
  3427. $ perl_d_vms_do_sockets="define"
  3428. $ perl_d_htonl="define"
  3429. $ perl_d_socket="define"
  3430. $ perl_d_select="define"
  3431. $ perl_netdb_host_type="char *"
  3432. $ perl_netdb_hlen_type="int"
  3433. $ perl_netdb_name_type="char *"
  3434. $ perl_netdb_net_type="long"
  3435. $ perl_d_gethbyaddr="define"
  3436. $ perl_d_gethbyname="define"
  3437. $ perl_d_getnbyaddr="define"
  3438. $ perl_d_getnbyname="define"
  3439. $ perl_d_getpbynumber="define"
  3440. $ perl_d_getpbyname="define"
  3441. $ perl_d_getsbyport="define"
  3442. $ perl_d_getsbyname="define"
  3443. $ perl_d_gethostprotos="define"
  3444. $ perl_d_getnetprotos="define"
  3445. $ perl_d_getprotoprotos="define"
  3446. $ perl_d_getservprotos="define"
  3447. $ IF ("''Using_Dec_C'".EQS."Yes")
  3448. $ THEN
  3449. $ perl_socksizetype="unsigned int"
  3450. $ ELSE
  3451. $ perl_socksizetype="int *"
  3452. $ ENDIF
  3453. $ ELSE
  3454. $ perl_d_vms_do_sockets="undef"
  3455. $ perl_d_htonl="undef"
  3456. $ perl_d_socket="undef"
  3457. $ perl_d_select="undef"
  3458. $ perl_netdb_host_type="char *"
  3459. $ perl_netdb_hlen_type="int"
  3460. $ perl_netdb_name_type="char *"
  3461. $ perl_netdb_net_type="long"
  3462. $ perl_d_gethbyaddr="undef"
  3463. $ perl_d_gethbyname="undef"
  3464. $ perl_d_getnbyaddr="undef"
  3465. $ perl_d_getnbyname="undef"
  3466. $ perl_d_getpbynumber="undef"
  3467. $ perl_d_getpbyname="undef"
  3468. $ perl_d_getsbyport="undef"
  3469. $ perl_d_getsbyname="undef"
  3470. $ perl_d_gethostprotos="undef"
  3471. $ perl_d_getnetprotos="undef"
  3472. $ perl_d_getprotoprotos="undef"
  3473. $ perl_d_getservprotos="undef"
  3474. $ perl_socksizetype="undef"
  3475. $ ENDIF
  3476. $! Threads
  3477. $ IF use_threads
  3478. $ THEN
  3479. $   perl_usethreads="define"
  3480. $   perl_d_pthreads_created_joinable="define"
  3481. $   if (VMS_VER .GES. "7.0")
  3482. $   THEN
  3483. $     perl_d_oldpthreads="undef"
  3484. $   ELSE
  3485. $     perl_d_oldpthreads="define"
  3486. $   ENDIF
  3487. $ ELSE
  3488. $   perl_d_oldpthreads="undef"
  3489. $   perl_usethreads="undef"
  3490. $   
  3491. $   perl_d_pthreads_created_joinable="undef"
  3492. $ ENDIF
  3493. $! 
  3494. $! new (5.005_62++) typedefs for primitives
  3495. $! 
  3496. $ perl_ivtype="long"
  3497. $ perl_uvtype="unsigned long"
  3498. $ perl_i8type="char"
  3499. $ perl_u8type="unsigned char"
  3500. $ perl_i16type="short"
  3501. $ perl_u16type="unsigned short"
  3502. $ perl_i32type="int"
  3503. $ perl_u32type="unsigned int"
  3504. $ perl_i64type="long long"
  3505. $ perl_u64type="unsigned long long"
  3506. $ perl_nvtype="double"
  3507. $!
  3508. $ GOTO beyond_type_size_check
  3509. $!
  3510. $type_size_check: 
  3511. $!
  3512. $! Check for type sizes 
  3513. $!
  3514. $ OS
  3515. $ WS "#ifdef __DECC
  3516. $ WS "#include <stdlib.h>
  3517. $ WS "#endif
  3518. $ WS "#include <stdio.h>
  3519. $ WS "int main()
  3520. $ WS "{"
  3521. $ WS "printf(""%d\n"", sizeof(''type'));"
  3522. $ WS "exit(0);
  3523. $ WS "}"
  3524. $ CS
  3525. $ DEFINE SYS$ERROR _NLA0:
  3526. $ DEFINE SYS$OUTPUT _NLA0:
  3527. $ ON ERROR THEN CONTINUE
  3528. $ ON WARNING THEN CONTINUE
  3529. $ 'Checkcc' temp.c
  3530. $ If (Needs_Opt.eqs."Yes")
  3531. $ THEN
  3532. $   link temp.obj,temp.opt/opt
  3533. $ ELSE
  3534. $   link temp.obj
  3535. $ ENDIF
  3536. $ OPEN/WRITE TEMPOUT [-.uu]tempout.lis
  3537. $ DEASSIGN SYS$OUTPUT
  3538. $ DEASSIGN SYS$ERROR
  3539. $ DEFINE SYS$ERROR TEMPOUT
  3540. $ DEFINE SYS$OUTPUT TEMPOUT
  3541. $ mcr []temp.exe
  3542. $ CLOSE TEMPOUT
  3543. $ DEASSIGN SYS$OUTPUT
  3544. $ DEASSIGN SYS$ERROR
  3545. $ OPEN/READ TEMPOUT [-.uu]tempout.lis
  3546. $ READ TEMPOUT line
  3547. $ CLOSE TEMPOUT
  3548. $ DELETE/NOLOG [-.uu]tempout.lis;
  3549. $ WRITE_RESULT "''size_name' is ''line'"
  3550. $ DS
  3551. $ RETURN
  3552. $!
  3553. $beyond_type_size_check:
  3554. $!
  3555. $ line = ""
  3556. $ type = "''perl_ivtype'"
  3557. $ size_name = "ivsize"
  3558. $ gosub type_size_check
  3559. $ perl_ivsize="''line'"
  3560. $ IF type .eqs. "long"
  3561. $ THEN perl_longsize = "''line'"
  3562. $ ELSE
  3563. $   type = "long"
  3564. $   size_name = "longsize"
  3565. $   gosub type_size_check
  3566. $   perl_longsize="''line'"
  3567. $ ENDIF
  3568. $
  3569. $ type = "''perl_uvtype'"
  3570. $ size_name = "uvsize"
  3571. $ gosub type_size_check
  3572. $ perl_uvsize="''line'"
  3573. $
  3574. $ type = "''perl_i8type'"
  3575. $ size_name = "i8size"
  3576. $ gosub type_size_check
  3577. $ perl_i8size="''line'"
  3578. $
  3579. $ type = "''perl_u8type'"
  3580. $ size_name = "u8size"
  3581. $ gosub type_size_check
  3582. $ perl_u8size="''line'"
  3583. $
  3584. $ type = "''perl_i16type'"
  3585. $ size_name = "i16size"
  3586. $ gosub type_size_check
  3587. $ perl_i16size="''line'"
  3588. $ IF type .eqs. "short"
  3589. $ THEN perl_shortsize="''line'"
  3590. $ ELSE
  3591. $   type = "''perl_i16type'"
  3592. $   size_name = "shortsize"
  3593. $   gosub type_size_check
  3594. $   perl_shortsize="''line'"
  3595. $ ENDIF
  3596. $
  3597. $ type = "''perl_u16type'"
  3598. $ size_name = "u16size"
  3599. $ gosub type_size_check
  3600. $ perl_u16size="''line'"
  3601. $
  3602. $ type = "''perl_i32type'"
  3603. $ size_name = "i32size"
  3604. $ gosub type_size_check
  3605. $ perl_i32size="''line'"
  3606. $ IF type .eqs. "int"
  3607. $ THEN perl_intsize="''perl_i32size'"
  3608. $ ELSE
  3609. $   type = "int"
  3610. $   size_name = "intsize"
  3611. $   gosub type_size_check
  3612. $   perl_intsize="''line'"
  3613. $ ENDIF
  3614. $
  3615. $ type = "''perl_u32type'"
  3616. $ size_name = "u32size"
  3617. $ gosub type_size_check
  3618. $ perl_u32size="''line'"
  3619. $
  3620. $ If use64bitint
  3621. $ Then
  3622. $   type = "''perl_i64type'"
  3623. $   size_name = "i64size"
  3624. $   gosub type_size_check
  3625. $   perl_i64size="''line'"
  3626. $   perl_ivtype="''perl_i64type'"
  3627. $
  3628. $   type = "''perl_u64type'"
  3629. $   size_name = "u64size"
  3630. $   gosub type_size_check
  3631. $   perl_u64size="''line'"
  3632. $   perl_uvtype="''perl_u64type'"
  3633. $   perl_nvtype="long double"
  3634. $ Else
  3635. $   perl_i64size="undef"
  3636. $   perl_u64size="undef"
  3637. $ EndIf
  3638. $!
  3639. $ perl_ivdformat="""ld"""
  3640. $ perl_uvuformat="""lu"""
  3641. $ perl_uvoformat="""lo"""
  3642. $ perl_uvxformat="""lx"""
  3643. $! 
  3644. $! Finally the composite ones. All config
  3645. $ perl_installarchlib="''perl_prefix':[lib.''archname'.''version']"
  3646. $ perl_installsitearch="''perl_prefix':[lib.site_perl.''archname']"
  3647. $ perl_myhostname="''myhostname'"
  3648. $ perl_mydomain="''mydomain'"
  3649. $ perl_perladmin="''perladmin'"
  3650. $ perl_myuname:="''osname' ''myname' ''osvers' ''f$edit(hwname, "TRIM")'"
  3651. $ perl_archlibexp="''perl_prefix':[lib.''archname'.''version']"
  3652. $ perl_archlib="''perl_prefix':[lib.''archname'.''version']"
  3653. $ perl_oldarchlibexp="''perl_prefix':[lib.''archname']"
  3654. $ perl_oldarchlib="''perl_prefix':[lib.''archname']"
  3655. $ perl_sitearchexp="''perl_prefix':[lib.site_perl.''archname']"
  3656. $ perl_sitearch="''perl_prefix':[lib.site_perl.''archname']"
  3657. $ IF Using_Dec_C
  3658. $ THEN
  3659. $ perl_ccflags="/Include=[]/Standard=Relaxed_ANSI/Prefix=All/Obj=''perl_obj_ext'/NoList''cc_flags'"
  3660. $ ENDIF
  3661. $ if use_vmsdebug_perl .eqs. "Y"
  3662. $ then
  3663. $     perl_optimize="/Debug/NoOpt"
  3664. $     perl_dbgprefix = "DBG"
  3665. $ else
  3666. $     perl_optimize= ""
  3667. $     perl_dbgprefix = ""
  3668. $ endif
  3669. $!
  3670. $! Okay, we've got everything configured. Now go write out a config.sh.
  3671. $ echo4 "Creating config.sh..."
  3672. $ open/write CONFIG [-]config.sh
  3673. $ WC := "write CONFIG"
  3674. $!
  3675. $ WC "# This file generated by Configure.COM on a VMS system."
  3676. $ WC "# Time: " + cf_time
  3677. $ WC ""
  3678. $ WC "CONFIGDOTSH=true"
  3679. $ WC "package='" + perl_package + "'"
  3680. $ WC "config_args='" + config_args + "'"
  3681. $ WC "d_nv_preserves_uv='" + perl_d_nv_preserves_uv + "'"
  3682. $ WC "use5005threads='" + perl_use5005threads + "'"
  3683. $ WC "useithreads='" + perl_useithreads + "'"
  3684. $ WC "CONFIG='" + perl_config + "'"
  3685. $ WC "cf_time='" + cf_time + "'"
  3686. $ WC "cf_by='" + cf_by + "'"
  3687. $ WC "cpp_stuff='" + perl_cpp_stuff + "'"
  3688. $ WC "ccdlflags='" + perl_ccdlflags + "'"
  3689. $ WC "cccdlflags='" + perl_cccdlflags + "'"
  3690. $ WC "mab='" + perl_mab + "'"
  3691. $ WC "libpth='" + perl_libpth + "'"
  3692. $ WC "ld='" + perl_ld + "'"
  3693. $ WC "lddlflags='" + perl_lddlflags + "'"
  3694. $ WC "ranlib='" + perl_ranlib + "'"
  3695. $ WC "ar='" + perl_ar + "'"
  3696. $ WC "full_ar='" + perl_full_ar + "'"
  3697. $ WC "eunicefix='" + perl_eunicefix + "'"
  3698. $ WC "hint='" + perl_hint +"'"
  3699. $ WC "hintfile='" + perl_hintfile + "'"
  3700. $ WC "shrplib='" + perl_shrplib + "'"
  3701. $ WC "usemymalloc='" + perl_usemymalloc + "'"
  3702. $ WC "usevfork='" + perl_usevfork + "'"
  3703. $ WC "useposix='false'"
  3704. $ WC "spitshell='write sys$output '"
  3705. $ WC "dlsrc='dl_vms.c'"
  3706. $ WC "binexp='" + perl_binexp + "'"
  3707. $ WC "man1ext='" + perl_man1ext + "'"
  3708. $ WC "man3ext='" + perl_man3ext + "'"
  3709. $ WC "archname='" + archname + "'"
  3710. $ WC "osvers='" + osvers + "'"
  3711. $ WC "prefix='" + perl_prefix + "'"
  3712. $ WC "builddir='" + perl_builddir + "'"
  3713. $ WC "installbin='" + perl_installbin + "'"
  3714. $ WC "installscript='" + perl_installscript + "'"
  3715. $ WC "installman1dir='" + perl_installman1dir + "'"
  3716. $ WC "installman3dir='" + perl_installman3dir + "'"
  3717. $ WC "installprivlib='" + perl_installprivlib + "'"
  3718. $ WC "installarchlib='" + perl_installarchlib + "'"
  3719. $ WC "installsitelib='" + perl_installsitelib + "'"
  3720. $ WC "installsitearch='" + perl_installsitearch + "'"
  3721. $ WC "path_sep='" + perl_path_sep + "'"
  3722. $ WC "vms_cc_type='" + perl_vms_cc_type + "'"
  3723. $ WC "d_attribut='" + perl_d_attribut + "'"
  3724. $ WC "cc='" + perl_cc + "'"
  3725. $ WC "ccflags='" + perl_ccflags + "'"
  3726. $ WC "optimize='" + perl_optimize + "'"
  3727. $ WC "dbgprefix='" + perl_dbgprefix + "'"
  3728. $ WC "d_vms_do_sockets='" + perl_d_vms_do_sockets + "'"
  3729. $ WC "d_socket='" + perl_d_socket + "'"
  3730. $ WC "d_sockpair='" + perl_d_sockpair + "'"
  3731. $ WC "d_gethent='" + perl_d_gethent + "'"
  3732. $ WC "d_getsent='" + perl_d_getsent + "'"
  3733. $ WC "d_socklen_t='" + perl_d_socklen_t + "'"
  3734. $ WC "d_select='" + perl_d_select + "'"
  3735. $ WC "i_niin='" + perl_i_niin + "'"
  3736. $ WC "i_netinettcp='" + perl_i_netinettcp + "'"
  3737. $ WC "i_neterrno='" + perl_i_neterrno + "'"
  3738. $ WC "d_stdstdio='" + perl_d_stdstdio + "'"
  3739. $ WC "d_stdio_ptr_lval='" + perl_d_stdio_ptr_lval + "'"
  3740. $ WC "d_stdio_cnt_lval='" + perl_d_stdio_cnt_lval + "'"
  3741. $ WC "d_stdiobase='" + perl_d_stdiobase + "'"
  3742. $ WC "d_locconv='" + perl_d_locconv + "'"
  3743. $ WC "d_setlocale='" + perl_d_setlocale + "'"
  3744. $ WC "i_locale='" + perl_i_locale + "'"
  3745. $ WC "d_mbstowcs='" + perl_d_mbstowcs + "'"
  3746. $ WC "d_mbtowc='" + perl_d_mbtowc + "'"
  3747. $ WC "d_wcstombs='" + perl_d_wcstombs + "'"
  3748. $ WC "d_wctomb='" + perl_d_wctomb + "'"
  3749. $ WC "d_mblen='" + perl_d_mblen + "'"
  3750. $ WC "d_mktime='" + perl_d_mktime + "'"
  3751. $ WC "d_strcoll='" + perl_d_strcoll + "'"
  3752. $ WC "d_strxfrm='" + perl_d_strxfrm  + "'"
  3753. $ WC "ldflags='" + perl_ldflags + "'"
  3754. $ WC "dlobj='" + perl_dlobj + "'"
  3755. $ WC "obj_ext='" + perl_obj_ext + "'"
  3756. $ WC "so='" + perl_so + "'"
  3757. $ WC "dlext='" + perl_dlext + "'"
  3758. $ WC "exe_ext='" + perl_exe_ext + "'"
  3759. $ WC "lib_ext='" + perl_lib_ext + "'"
  3760. $ WC "myhostname='" + perl_myhostname + "'"
  3761. $ WC "mydomain='" + perl_mydomain + "'"
  3762. $ WC "perladmin='" + perl_perladmin + "'"
  3763. $ WC "cf_email='" + cf_email + "'"
  3764. $ WC "myuname='" + perl_myuname + "'"
  3765. $ WC "alignbytes='" + alignbytes + "'"
  3766. $ WC "osname='" + perl_osname + "'"
  3767. $ WC "d_archlib='" + perl_d_archlib + "'"
  3768. $ WC "archlibexp='" + perl_archlibexp + "'"
  3769. $ WC "archlib='" + perl_archlib + "'"
  3770. $ WC "archname='" + archname + "'"
  3771. $ WC "d_bincompat3='" + perl_d_bincompat3 + "'"
  3772. $ WC "cppstdin='" + perl_cppstdin + "'"
  3773. $ WC "cppminus='" + perl_cppminus + "'"
  3774. $ WC "cpprun='" + perl_cpprun + "'"
  3775. $ WC "cpplast='" + perl_cpplast + "'"
  3776. $ WC "d_bcmp='" + perl_d_bcmp + "'"
  3777. $ WC "d_bcopy='" + perl_d_bcopy + "'"
  3778. $ WC "d_bzero='" + perl_d_bzero + "'"
  3779. $ WC "d_castneg='" + perl_d_castneg + "'"
  3780. $ WC "castflags='" + perl_castflags + "'"
  3781. $ WC "d_chsize='" + perl_d_chsize + "'"
  3782. $ WC "d_const='" + perl_d_const + "'"
  3783. $ WC "d_crypt='" + perl_d_crypt + "'"
  3784. $ WC "byteorder='" + perl_byteorder + "'"
  3785. $ WC "full_csh='" + perl_full_csh + "'"
  3786. $ WC "d_csh='" + perl_d_csh + "'"
  3787. $ WC "d_dup2='" + perl_d_dup2 + "'"
  3788. $ WC "d_fchmod='" + perl_d_fchmod + "'"
  3789. $ WC "d_fchown='" + perl_d_fchown + "'"
  3790. $ WC "d_fcntl='" + perl_d_fcntl + "'"
  3791. $ WC "d_fgetpos='" + perl_d_fgetpos + "'"
  3792. $ WC "d_flexfnam='" + perl_d_flexfnam + "'"
  3793. $ WC "d_flock='" + perl_d_flock + "'"
  3794. $ WC "d_fsetpos='" + perl_d_fsetpos + "'"
  3795. $ WC "d_gettimeod='" + perl_d_gettimeod + "'"
  3796. $ WC "d_getgrps='" + perl_d_getgrps + "'"
  3797. $ WC "d_setgrps='" + perl_d_setgrps + "'"
  3798. $ WC "groupstype='" + perl_groupstype + "'"
  3799. $ WC "d_uname='" + perl_d_uname + "'"
  3800. $ WC "d_getprior='" + perl_d_getprior + "'"
  3801. $ WC "d_killpg='" + perl_d_killpg + "'"
  3802. $ WC "d_link='" + perl_d_link + "'"
  3803. $ WC "d_lstat='" + perl_d_lstat + "'"
  3804. $ WC "d_lockf='" + perl_d_lockf + "'"
  3805. $ WC "d_memcmp='" + perl_d_memcmp + "'"
  3806. $ WC "d_memcpy='" + perl_d_memcpy + "'"
  3807. $ WC "d_memmove='" + perl_d_memmove + "'"
  3808. $ WC "d_memset='" + perl_d_memset + "'"
  3809. $ WC "d_mkdir='" + perl_d_mkdir + "'"
  3810. $ WC "d_msg='" + perl_d_msg + "'"
  3811. $ WC "d_open3='" + perl_d_open3 + "'"
  3812. $ WC "d_poll='" + perl_d_poll + "'"
  3813. $ WC "d_readdir='" + perl_d_readdir + "'"
  3814. $ WC "d_seekdir='" + perl_d_seekdir + "'"
  3815. $ WC "d_telldir='" + perl_d_telldir + "'"
  3816. $ WC "d_rewinddir='" + perl_d_rewinddir + "'"
  3817. $ WC "d_rename='" + perl_d_rename + "'"
  3818. $ WC "d_rmdir='" + perl_d_rmdir + "'"
  3819. $ WC "d_sem='" + perl_d_sem + "'"
  3820. $ WC "d_setegid='" + perl_d_setegid + "'"
  3821. $ WC "d_seteuid='" + perl_d_seteuid + "'"
  3822. $ WC "d_setprior='" + perl_d_setprior + "'"
  3823. $ WC "d_setregid='" + perl_d_setregid + "'"
  3824. $ WC "d_setresgid='" + perl_d_setresgid + "'"
  3825. $ WC "d_setreuid='" + perl_d_setreuid + "'"
  3826. $ WC "d_setresuid='" + perl_d_setresuid + "'"
  3827. $ WC "d_setrgid='" + perl_d_setrgid + "'"
  3828. $ WC "d_setruid='" + perl_d_setruid + "'"
  3829. $ WC "d_setsid='" + perl_d_setsid + "'"
  3830. $ WC "d_shm='" + perl_d_shm + "'"
  3831. $ WC "d_shmatprototype='" + perl_d_shmatprototype + "'"
  3832. $ WC "shmattype='" + perl_shmattype + "'"
  3833. $ WC "d_sigaction='" + perl_d_sigaction + "'"
  3834. $ WC "d_statblks='" + perl_d_statblks + "'"
  3835. $ WC "stdio_ptr='" + perl_stdio_ptr + "'"
  3836. $ WC "stdio_cnt='" + perl_stdio_cnt + "'"
  3837. $ WC "stdio_base='" + perl_stdio_base + "'"
  3838. $ WC "stdio_bufsiz='" + perl_stdio_bufsiz + "'"
  3839. $ WC "d_strctcpy='" + perl_d_strctcpy + "'"
  3840. $ WC "d_strerror='" + perl_d_strerror + "'"
  3841. $ WC "d_syserrlst='" + perl_d_syserrlst + "'"
  3842. $ WC "d_strerrm='" + perl_d_strerrm + "'"
  3843. $ WC "d_symlink='" + perl_d_symlink + "'"
  3844. $ WC "d_syscall='" + perl_d_syscall + "'"
  3845. $ WC "d_system='" + perl_d_system + "'"
  3846. $ WC "timetype='" + perl_timetype + "'"
  3847. $ WC "d_truncate='" + perl_d_truncate + "'"
  3848. $ WC "d_vfork='" + perl_d_vfork + "'"
  3849. $ WC "signal_t='" + perl_signal_t + "'"
  3850. $ WC "d_volatile='" + perl_d_volatile + "'"
  3851. $ WC "d_vprintf='" + perl_d_vprintf + "'"
  3852. $ WC "d_charvspr='" + perl_d_charvspr + "'"
  3853. $ WC "d_wait4='" + perl_d_wait4 + "'"
  3854. $ WC "d_waitpid='" + perl_d_waitpid + "'"
  3855. $ WC "i_dirent='" + perl_i_dirent + "'"
  3856. $ WC "d_dirnamlen='" + perl_d_dirnamlen + "'"
  3857. $ WC "direntrytype='" + perl_direntrytype + "'"
  3858. $ WC "i_fcntl='" + perl_i_fcntl + "'"
  3859. $ WC "i_grp='" + perl_i_grp + "'"
  3860. $ WC "i_limits='" + perl_i_limits + "'"
  3861. $ WC "i_memory='" + perl_i_memory + "'"
  3862. $ WC "i_ndbm='" + perl_i_ndbm + "'"
  3863. $ WC "i_stdarg='" + perl_i_stdarg + "'"
  3864. $ WC "i_pwd='" + perl_i_pwd + "'"
  3865. $ WC "d_pwquota='" + perl_d_pwquota + "'"
  3866. $ WC "d_pwage='" + perl_d_pwage + "'"
  3867. $ WC "d_pwchange='" + perl_d_pwchange + "'"
  3868. $ WC "d_pwclass='" + perl_d_pwclass + "'"
  3869. $ WC "d_pwexpire='" + perl_d_pwexpire + "'"
  3870. $ WC "d_pwcomment='" + perl_d_pwcomment + "'"
  3871. $ WC "i_stddef='" + perl_i_stddef + "'"
  3872. $ WC "i_stdlib='" + perl_i_stdlib + "'"
  3873. $ WC "i_string='" + perl_i_string + "'"
  3874. $ WC "i_sysdir='" + perl_i_sysdir + "'"
  3875. $ WC "i_sysfile='" + perl_i_sysfile + "'"
  3876. $ WC "i_sysioctl='" + perl_i_sysioctl + "'"
  3877. $ WC "i_sysndir='" + perl_i_sysndir + "'"
  3878. $ WC "i_sysresrc='" + perl_i_sysresrc + "'"
  3879. $ WC "i_sysselct='" + perl_i_sysselct + "'"
  3880. $ WC "i_dbm='" + perl_i_dbm + "'"
  3881. $ WC "i_rpcsvcdbm='" + perl_i_rpcsvcdbm + "'"
  3882. $ WC "i_sfio='" + perl_i_sfio + "'"
  3883. $ WC "i_sysstat='" + perl_i_sysstat + "'"
  3884. $ WC "i_systimes='" + perl_i_systimes + "'"
  3885. $ WC "i_systypes='" + perl_i_systypes + "'"
  3886. $ WC "i_sysun='" + perl_i_sysun + "'"
  3887. $ WC "i_syswait='" + perl_i_syswait + "'"
  3888. $ WC "i_termio='" + perl_i_termio + "'"
  3889. $ WC "i_sgtty='" + perl_i_sgtty + "'"
  3890. $ WC "i_termios='" + perl_i_termios + "'"
  3891. $ WC "i_time='" + perl_i_time + "'"
  3892. $ WC "i_systime='" + perl_i_systime + "'"
  3893. $ WC "i_systimek='" + perl_i_systimek + "'"
  3894. $ WC "i_unistd='" + perl_i_unistd + "'"
  3895. $ WC "i_utime='" + perl_i_utime + "'"
  3896. $ WC "i_varargs='" + perl_i_varargs + "'"
  3897. $ WC "i_vfork='" + perl_i_vfork + "'"
  3898. $ WC "prototype='" + perl_prototype + "'"
  3899. $ WC "randbits='" + perl_randbits +"'"
  3900. $ WC "selecttype='" + perl_selecttype + "'"
  3901. $ WC "selectminbits='" + perl_selectminbits + "'"
  3902. $ WC "stdchar='" + perl_stdchar + "'"
  3903. $ WC "d_unlink_all_versions='" + perl_d_unlink_all_versions + "'"
  3904. $ WC "full_sed='" + perl_full_sed + "'"
  3905. $ WC "bin='" + perl_bin + "'"
  3906. $ WC "binexp='" + perl_binexp + "'"
  3907. $ WC "d_alarm='" + perl_d_alarm + "'"
  3908. $ WC "d_casti32='" + perl_d_casti32 + "'"
  3909. $ WC "d_chown='" + perl_d_chown + "'"
  3910. $ WC "d_chroot='" + perl_d_chroot + "'"
  3911. $ WC "d_cuserid='" + perl_d_cuserid + "'"
  3912. $ WC "d_dbl_dig='" + perl_d_dbl_dig + "'"
  3913. $ WC "d_ldbl_dig='" + perl_d_ldbl_dig + "'"
  3914. $ WC "d_difftime='" + perl_d_difftime + "'"
  3915. $ WC "d_fork='" + perl_d_fork + "'"
  3916. $ WC "d_getlogin='" + perl_d_getlogin + "'"
  3917. $ WC "d_getppid='" + perl_d_getppid + "'"
  3918. $ WC "d_htonl='" + perl_d_htonl + "'"
  3919. $ WC "d_nice='" + perl_d_nice + "'"
  3920. $ WC "d_pause='" + perl_d_pause + "'"
  3921. $ WC "d_pipe='" + perl_d_pipe + "'"
  3922. $ WC "d_readlink='" + perl_d_readlink + "'"
  3923. $ WC "d_setlinebuf='" + perl_d_setlinebuf + "'"
  3924. $ WC "d_strchr='" + perl_d_strchr + "'"
  3925. $ WC "d_index='" + perl_d_index + "'"
  3926. $ WC "d_strtod='" + perl_d_strtod + "'"
  3927. $ WC "d_strtol='" + perl_d_strtol + "'"
  3928. $ WC "d_strtoul='" + perl_d_strtoul + "'"
  3929. $ WC "d_tcgetpgrp='" + perl_d_tcgetpgrp + "'"
  3930. $ WC "d_tcsetpgrp='" + perl_d_tcsetpgrp + "'"
  3931. $ WC "d_times='" + perl_d_times + "'"
  3932. $ WC "d_tzname='" + perl_d_tzname + "'"
  3933. $ WC "d_umask='" + perl_d_umask + "'"
  3934. $ WC "fpostype='" + perl_fpostype + "'"
  3935. $ WC "i_dlfcn='" + perl_i_dlfcn + "'"
  3936. $ WC "i_float='" + perl_i_float + "'"
  3937. $ WC "i_math='" + perl_i_math + "'"
  3938. $ WC "intsize='" + perl_intsize + "'"
  3939. $ WC "longsize='" + perl_longsize + "'"
  3940. $ WC "shortsize='" + perl_shortsize + "'"
  3941. $ WC "lseektype='" + perl_lseektype + "'"
  3942. $ WC "lseeksize='4'"
  3943. $ WC "i_values='" + perl_i_values + "'"
  3944. $ WC "malloctype='" + perl_malloctype + "'"
  3945. $ WC "freetype='" + perl_freetype + "'"
  3946. $ WC "d_mymalloc='" + perl_d_mymalloc + "'"
  3947. $ WC "sh='" + perl_sh + "'"
  3948. $ WC "sig_name='" + perl_sig_name + "'"
  3949. $ WC "sig_num='" + perl_sig_num + "'"
  3950. $ tempsym = "sig_name_init='" + perl_sig_name_with_commas + "'"
  3951. $ WC/symbol tempsym
  3952. $ WC "modetype='" + perl_modetype + "'"
  3953. $ WC "ssizetype='" + perl_ssizetype + "'"
  3954. $ WC "o_nonblock='" + perl_o_nonblock + "'"
  3955. $ WC "eagain='" + perl_eagain + "'"
  3956. $ WC "rd_nodata='" + perl_rd_nodata + "'"
  3957. $ WC "d_eofnblk='" + perl_d_eofnblk + "'"
  3958. $ WC "d_oldarchlib='" + perl_d_oldarchlib + "'"
  3959. $ WC "oldarchlibexp='" + perl_oldarchlibexp + "'"
  3960. $ WC "oldarchlib='" + perl_oldarchlib + "'"
  3961. $ WC "privlibexp='" + perl_privlibexp + "'"
  3962. $ WC "privlib='" + perl_privlib + "'"
  3963. $ WC "sitelibexp='" + perl_sitelibexp + "'"
  3964. $ WC "sitelib='" + perl_sitelib + "'"
  3965. $ WC "sitelib_stem='" + perl_sitelib_stem + "'"
  3966. $ WC "sitearchexp='" + perl_sitearchexp + "'"
  3967. $ WC "sitearch='" + perl_sitearch + "'"
  3968. $ WC "sizetype='" + perl_sizetype + "'"
  3969. $ WC "i_sysparam='" + perl_i_sysparam + "'"
  3970. $ WC "d_void_closedir='" + perl_d_void_closedir + "'"
  3971. $ WC "d_dlerror='" + perl_d_dlerror + "'"
  3972. $ WC "d_dlsymun='" + perl_d_dlsymun + "'"
  3973. $ WC "d_suidsafe='" + perl_d_suidsafe + "'"
  3974. $ WC "d_dosuid='" + perl_d_dosuid + "'"
  3975. $ WC "d_inetaton='" + perl_d_inetaton + "'"
  3976. $ WC "d_int64_t='" + perl_d_int64_t + "'"
  3977. $ WC "d_isascii='" + perl_d_isascii + "'"
  3978. $ WC "d_mkfifo='" + perl_d_mkfifo + "'"
  3979. $ WC "d_pathconf='" + perl_d_pathconf + "'"
  3980. $ WC "d_fpathconf='" + perl_d_fpathconf + "'"
  3981. $ WC "d_safebcpy='" + perl_d_safebcpy + "'"
  3982. $ WC "d_safemcpy='" + perl_d_safemcpy + "'"
  3983. $ WC "d_sanemcmp='" + perl_d_sanemcmp + "'"
  3984. $ WC "d_setpgrp='" + perl_d_setpgrp + "'"
  3985. $ WC "d_bsdsetpgrp='" + perl_d_bsdsetpgrp + "'"
  3986. $ WC "d_bsdpgrp='" + perl_d_bsdpgrp + "'"
  3987. $ WC "d_setpgid='" + perl_d_setpgid + "'"
  3988. $ WC "d_setpgrp2='" + perl_d_setpgrp2 + "'"
  3989. $ WC "d_sysconf='" + perl_d_sysconf + "'"
  3990. $ WC "d_Gconvert='" + perl_d_Gconvert + "'"
  3991. $ WC "d_getpgid='" + perl_d_getpgid + "'"
  3992. $ WC "d_getpgrp='" + perl_d_getpgrp + "'"
  3993. $ WC "d_bsdgetpgrp='" + perl_d_bsdgetpgrp + "'"
  3994. $ WC "d_getpgrp2='" + perl_d_getpgrp2 + "'"
  3995. $ WC "d_sfio='" + perl_d_sfio + "'"
  3996. $ WC "d_sigsetjmp='" + perl_d_sigsetjmp + "'"
  3997. $ WC "usedl='" + perl_usedl + "'"
  3998. $ WC "startperl=" + perl_startperl ! This one's special--no enclosing single quotes
  3999. $ WC "db_hashtype='" + perl_db_hashtype + "'"
  4000. $ WC "db_prefixtype='" + perl_db_prefixtype + "'"
  4001. $ WC "useperlio='" + perl_useperlio + "'"
  4002. $ WC "defvoidused='" + perl_defvoidused + "'"
  4003. $ WC "voidflags='" + perl_voidflags + "'"
  4004. $ WC "d_eunice='" + perl_d_eunice + "'"
  4005. $ WC "libs='" + perl_libs + "'"
  4006. $ WC "libc='" + perl_libc + "'"
  4007. $ WC "xs_apiversion='" + version + "'"
  4008. $ WC "pm_apiversion='" + version + "'"
  4009. $ WC "PERL_VERSION='" + patchlevel + "'"
  4010. $ WC "PERL_SUBVERSION='" + subversion + "'"
  4011. $ WC "pager='" + perl_pager + "'"
  4012. $ WC "uidtype='" + perl_uidtype + "'"
  4013. $ WC "uidformat='" + perl_uidformat + "'"
  4014. $ WC "uidsize='" + perl_uidsize + "'"
  4015. $ WC "uidsign='" + perl_uidsign + "'"
  4016. $ WC "gidtype='" + perl_gidtype + "'"
  4017. $ WC "gidformat='" + perl_gidformat + "'"
  4018. $ WC "gidsize='" + perl_gidsize + "'"
  4019. $ WC "gidsign='" + perl_gidsign + "'"
  4020. $ WC "usethreads='" + perl_usethreads + "'"
  4021. $ WC "d_pthread_yield='" + perl_d_pthread_yield + "'"
  4022. $ WC "d_pthreads_created_joinable='" + perl_d_pthreads_created_joinable + "'"
  4023. $ WC "d_gnulibc='" + perl_d_gnulibc + "'"
  4024. $ WC "i_netdb='" + perl_i_netdb + "'"
  4025. $ WC "pidtype='" + perl_pidtype + "'"
  4026. $ WC "netdb_host_type='" + perl_netdb_host_type + "'"
  4027. $ WC "netdb_hlen_type='" + perl_netdb_hlen_type + "'"
  4028. $ WC "netdb_name_type='" + perl_netdb_name_type + "'"
  4029. $ WC "netdb_net_type='" + perl_netdb_net_type + "'"
  4030. $ WC "socksizetype='" + perl_socksizetype + "'"
  4031. $ WC "baserev='" + perl_baserev + "'"
  4032. $ WC "doublesize='" + perl_doublesize + "'"
  4033. $ WC "ptrsize='" + perl_ptrsize + "'"
  4034. $ WC "d_gethbyaddr='" + perl_d_gethbyaddr + "'"
  4035. $ WC "d_gethbyname='" + perl_d_gethbyname + "'"
  4036. $ WC "d_getnbyaddr='" + perl_d_getnbyaddr + "'"
  4037. $ WC "d_getnbyname='" + perl_d_getnbyname + "'"
  4038. $ WC "d_getpbynumber='" + perl_d_getpbynumber + "'"
  4039. $ WC "d_getpbyname='" + perl_d_getpbyname + "'"
  4040. $ WC "d_getsbyport='" + perl_d_getsbyport + "'"
  4041. $ WC "d_getsbyname='" + perl_d_getsbyname + "'"
  4042. $ WC "d_sethent='" + perl_d_sethent + "'"
  4043. $ WC "d_oldpthreads='" + perl_d_oldpthreads + "'"
  4044. $ WC "d_longdbl='" + perl_d_longdbl + "'"
  4045. $ WC "longdblsize='" + perl_longdblsize + "'"
  4046. $ WC "d_longlong='" + perl_d_longlong + "'"
  4047. $ WC "longlongsize='" + perl_longlongsize + "'"
  4048. $ WC "d_mkstemp='" + perl_d_mkstemp + "'"
  4049. $ WC "d_mkstemps='" + perl_d_mkstemps + "'"
  4050. $ WC "d_mkdtemp='" + perl_d_mkdtemp + "'"
  4051. $ WC "d_setvbuf='" + perl_d_setvbuf + "'"
  4052. $ WC "d_setenv='" + perl_d_setenv + "'"
  4053. $ WC "d_endhent='" + perl_d_endhent + "'"
  4054. $ WC "d_endnent='" + perl_d_endsent + "'"
  4055. $ WC "d_endpent='" + perl_d_endpent + "'"
  4056. $ WC "d_endsent='" + perl_d_endsent + "'"
  4057. $ WC "d_gethent='" + perl_d_gethent + "'"
  4058. $ WC "d_getnent='" + perl_d_getsent + "'"
  4059. $ WC "d_getpent='" + perl_d_getpent + "'"
  4060. $ WC "d_getsent='" + perl_d_getsent + "'"
  4061. $ WC "d_sethent='" + perl_d_sethent + "'"
  4062. $ WC "d_setnent='" + perl_d_setsent + "'"
  4063. $ WC "d_setpent='" + perl_d_setpent + "'"
  4064. $ WC "ebcdic='" + perl_ebcdic + "'"
  4065. $ WC "d_setsent='" + perl_d_setsent + "'"
  4066. $ WC "d_gethostprotos='" + perl_d_gethostprotos + "'"
  4067. $ WC "d_getnetprotos='" + perl_d_getnetprotos + "'"
  4068. $ WC "d_getprotoprotos='" + perl_d_getprotoprotos + "'"
  4069. $ WC "d_getservprotos='" + perl_d_getservprotos + "'"
  4070. $ WC "d_pwgecos='" + perl_d_pwgecos + "'"
  4071. $ WC "d_sched_yield='" + perl_d_sched_yield + "'"
  4072. $ WC "d_lchown='" + perl_d_lchown + "'"
  4073. $ WC "d_union_semun='" + perl_d_union_semun + "'"
  4074. $ WC "i_arpainet='" + perl_i_arpainet + "'"
  4075. $ WC "d_grpasswd='" + perl_d_grpasswd + "'"
  4076. $ WC "d_setgrent='" + perl_d_setgrent + "'"
  4077. $ WC "d_getgrent='" + perl_d_getgrent + "'"
  4078. $ WC "d_endgrent='" + perl_d_endgrent + "'"
  4079. $ WC "d_pwpasswd='" + perl_d_pwpasswd + "'"
  4080. $ WC "d_setpwent='" + perl_d_setpwent + "'"
  4081. $ WC "d_getpwent='" + perl_d_getpwent + "'"
  4082. $ WC "d_endpwent='" + perl_d_endpwent + "'"
  4083. $ WC "d_semctl_semun='" + perl_d_semctl_semun + "'"
  4084. $ WC "d_semctl_semid_ds='" + perl_d_semctl_semid_ds + "'"
  4085. $ WC "extensions='" + perl_extensions + "'"
  4086. $ WC "known_extensions='" + perl_known_extensions + "'"
  4087. $ WC "static_ext='" + "'"
  4088. $ WC "dynamic_ext='" + perl_extensions + "'"
  4089. $ WC "d_mknod='" + perl_d_mknod + "'"
  4090. $ WC "devtype='" + perl_devtype + "'"
  4091. $ WC "d_gethname='" + perl_d_gethname + "'"
  4092. $ WC "d_phostname='" + perl_d_phostname + "'"
  4093. $ WC "aphostname='" + perl_aphostname + "'"
  4094. $ WC "d_accessx='" + perl_d_accessx + "'"
  4095. $ WC "d_eaccess='" + perl_d_eaccess + "'"
  4096. $ WC "i_ieeefp='" + perl_i_ieeefp + "'"
  4097. $ WC "i_sunmath='" + perl_i_sunmath + "'"
  4098. $ WC "i_sysaccess='" + perl_i_sysaccess + "'"
  4099. $ WC "i_syssecrt='" + perl_i_syssecrt + "'"
  4100. $ WC "d_fd_set='" + perl_d_fd_set + "'"
  4101. $ WC "d_access='" + perl_d_access + "'"
  4102. $ WC "d_msg_ctrunc='" + perl_d_msg_ctrunc + "'"
  4103. $ WC "d_msg_dontroute='" + perl_d_msg_dontroute + "'"
  4104. $ WC "d_msg_oob='" + perl_d_msg_oob + "'"
  4105. $ WC "d_msg_peek='" + perl_d_msg_peek + "'"
  4106. $ WC "d_msg_proxy='" + perl_d_msg_proxy + "'"
  4107. $ WC "d_scm_rights='" + perl_d_scm_rights + "'"
  4108. $ WC "d_sendmsg='" + perl_d_sendmsg + "'"
  4109. $ WC "d_recvmsg='" + perl_d_recvmsg + "'"
  4110. $ WC "d_msghdr_s='" + perl_d_msghdr_s + "'"
  4111. $ WC "d_cmsghdr_s='" + perl_d_cmsghdr_s + "'"
  4112. $ WC "i_sysuio='" + perl_i_sysuio + "'"
  4113. $ WC "d_fseeko='" + perl_d_fseeko + "'"
  4114. $ WC "d_ftello='" + perl_d_ftello + "'"
  4115. $ WC "d_qgcvt='" + perl_d_qgcvt + "'"
  4116. $ WC "d_readv='" + perl_d_readv + "'"
  4117. $ WC "d_writev='" + perl_d_writev + "'"
  4118. $ WC "i_machcthr='" + perl_i_machcthr + "'"
  4119. $ WC "usemultiplicity='" + perl_usemultiplicity + "'"
  4120. $ WC "i_poll='" + perl_i_poll + "'"
  4121. $ WC "i_inttypes='" + perl_i_inttypes + "'"
  4122. $ WC "d_off64_t='" + perl_d_off64_t + "'"
  4123. $ WC "d_fpos64_t='" + perl_d_fpos64_t + "'"
  4124. $ WC "use64bitall='" + perl_use64bitall + "'"
  4125. $ WC "use64bitint='" + perl_use64bitint + "'"
  4126. $ WC "d_drand48proto='" + perl_d_drand48proto + "'"
  4127. $ WC "d_lseekproto='" + perl_d_drand48proto + "'"
  4128. $ WC "d_old_pthread_create_joinable='" + perl_d_old_pthread_create_joinable + "'"
  4129. $ WC "old_pthread_create_joinable='" + perl_old_pthread_create_joinable + "'"
  4130. $ WC "drand01='" + perl_drand01 + "'"
  4131. $ WC "randseedtype='" + perl_randseedtype + "'"
  4132. $ WC "seedfunc='" + perl_seedfunc + "'"
  4133. $ WC "sig_num_init='" + perl_sig_num_with_commas + "'"
  4134. $ WC "i_sysmount='" + perl_i_sysmount + "'"
  4135. $ WC "d_fstatfs='" + perl_d_fstatfs + "'"
  4136. $ WC "d_getfsstat='" + perl_d_getfsstat + "'"
  4137. $ WC "d_memchr='" + perl_d_memchr + "'"
  4138. $ WC "d_statfsflags='" + perl_d_statfsflags + "'"
  4139. $ WC "fflushNULL='define'"
  4140. $ WC "fflushall='undef'"
  4141. $ WC "d_stdio_stream_array='undef'"
  4142. $ WC "stdio_stream_array='" + perl_stdio_stream_array + "'"
  4143. $ WC "i_sysstatvfs='" + perl_i_sysstatvfs + "'"
  4144. $ WC "i_syslog='" + perl_i_syslog + "'"
  4145. $ WC "i_sysmode='" + perl_i_sysmode + "'"
  4146. $ WC "i_sysutsname='" + perl_i_sysutsname + "'"
  4147. $ WC "i_machcthreads='" + perl_i_machcthreads + "'"
  4148. $ WC "i_pthread='" + perl_i_pthread + "'"
  4149. $ WC "d_fstatvfs='" + perl_d_fstatvfs + "'"
  4150. $ WC "i_mntent='" + perl_i_mntent + "'"
  4151. $ WC "d_getmntent='" + perl_d_getmntent + "'"
  4152. $ WC "d_hasmntopt='" + perl_d_hasmntopt + "'"
  4153. $ WC "d_telldirproto='" + perl_d_telldirproto + "'"
  4154. $ WC "d_madvise='" + perl_d_madvise + "'"
  4155. $ WC "d_msync='" + perl_d_msync + "'"
  4156. $ WC "d_mprotect='" + perl_d_mprotect + "'"
  4157. $ WC "d_munmap='" + perl_d_munmap + "'"
  4158. $ WC "d_mmap='" + perl_d_mmap + "'"
  4159. $ WC "mmaptype='" + perl_mmaptype + "'"
  4160. $ WC "i_sysmman='" + perl_i_sysmman + "'"
  4161. $ WC "installusrbinperl='" + perl_installusrbinperl + "'"
  4162. $! WC "selectminbits='" + perl_selectminbits + "'"
  4163. $ WC "crosscompile='" + perl_crosscompile + "'"
  4164. $ WC "multiarch='" + perl_multiarch + "'"
  4165. $ WC "sched_yield='" + perl_sched_yield + "'"
  4166. $ WC "d_strtoull='" + perl_d_strtoull + "'"
  4167. $ WC "d_strtouq='" + perl_d_strtouq + "'"
  4168. $ WC "d_strtoll='" + perl_d_strtoll + "'"
  4169. $ WC "d_strtold='" + perl_d_strtold + "'"
  4170. $ WC "usesocks='" + perl_usesocks + "'"
  4171. $ WC "d_vendorlib='" + perl_d_vendorlib + "'"
  4172. $ WC "vendorlibexp='" + perl_vendorlibexp + "'"
  4173. $ WC "vendorlib_stem='" + perl_vendorlib_stem + "'"
  4174. $ WC "d_atolf='" + perl_d_atolf + "'"
  4175. $ WC "d_atoll='" + perl_d_atoll + "'"
  4176. $ WC "d_bincompat5005='" + perl_d_bincompat + "'"
  4177. $ WC "d_endspent='" + perl_d_endspent + "'"
  4178. $ WC "d_getspent='" + perl_d_getspent + "'"
  4179. $ WC "d_getspnam='" + perl_d_getspnam + "'"
  4180. $ WC "d_setspent='" + perl_d_setspent + "'"
  4181. $ WC "i_shadow='" + perl_i_shadow + "'"
  4182. $ WC "i_socks='" + perl_i_socks + "'"
  4183. $ WC "d_PRIfldbl='" + perl_d_PRIfldbl + "'"
  4184. $ WC "d_PRIgldbl='" + perl_d_PRIgldbl + "'"
  4185. $ WC "d_PRId64='" + perl_d_PRId64 + "'"
  4186. $ WC "d_PRIu64='" + perl_d_PRIu64 + "'"
  4187. $ WC "d_PRIo64='" + perl_d_PRIo64 + "'"
  4188. $ WC "d_PRIx64='" + perl_d_PRIx64 + "'"
  4189. $ WC "sPRIfldbl='" + perl_sPRIfldbl + "'"
  4190. $ WC "sPRIgldbl='" + perl_sPRIgldbl + "'"
  4191. $ WC "sPRId64='" + perl_sPRId64 + "'"
  4192. $ WC "sPRIu64='" + perl_sPRIu64 + "'"
  4193. $ WC "sPRIo64='" + perl_sPRIo64 + "'"
  4194. $ WC "sPRIx64='" + perl_sPRIx64 + "'"
  4195. $ WC "d_llseek='" + perl_d_llseek + "'"
  4196. $ WC "d_iconv='" + perl_d_iconv +"'"
  4197. $ WC "i_iconv='" + perl_i_iconv +"'"
  4198. $ WC "inc_version_list='0'"
  4199. $ WC "inc_version_list_init='0'"
  4200. $ WC "uselargefiles='" + perl_uselargefiles + "'"
  4201. $ WC "uselongdouble='" + perl_uselongdouble + "'"
  4202. $ WC "usemorebits='" + perl_usemorebits + "'"
  4203. $ WC "d_quad='" + perl_d_quad + "'"
  4204. $ WC "quadtype='" + perl_quadtype + "'" 
  4205. $ WC "uquadtype='" + perl_uquadtype + "'" 
  4206. $ WC "quadkind='" + perl_quadkind + "'"
  4207. $ WC "d_fs_data_s='" + perl_d_fs_data_s + "'" 
  4208. $ WC "d_getcwd='" + perl_d_getcwd + "'"
  4209. $ WC "d_getmnt='" + perl_d_getmnt + "'"
  4210. $ WC "d_sqrtl='" + perl_d_sqrtl + "'"
  4211. $ WC "d_statfs_f_flags='" + perl_d_statfs_f_flags + "'"
  4212. $ WC "d_statfs_s='" + perl_d_statfs_s + "'"
  4213. $ WC "d_ustat='" + perl_d_ustat + "'"
  4214. $ WC "d_vendorarch='" + perl_d_vendorarch + "'"
  4215. $ WC "vendorarchexp='" + perl_vendorarchexp + "'"
  4216. $ WC "i_sysstatfs='" + perl_i_sysstatfs + "'"
  4217. $ WC "i_sysvfs='" + perl_i_sysvfs + "'"
  4218. $ WC "i_ustat='" + perl_i_ustat + "'"
  4219. $ WC "ivtype='" + perl_ivtype + "'"
  4220. $ WC "uvtype='" + perl_uvtype + "'"
  4221. $ WC "i8type='" + perl_i8type + "'"
  4222. $ WC "i16type='" + perl_i16type + "'"
  4223. $ WC "u8type='" + perl_u8type + "'"
  4224. $ WC "u16type='" + perl_u16type + "'"
  4225. $ WC "i32type='" + perl_i32type + "'"
  4226. $ WC "u32type='" + perl_u32type + "'"
  4227. $ WC "i64type='" + perl_i64type + "'"
  4228. $ WC "u64type='" + perl_u64type + "'"
  4229. $ WC "nvtype='" + perl_nvtype + "'"
  4230. $ WC "ivsize='" + perl_ivsize + "'"
  4231. $ WC "uvsize='" + perl_uvsize + "'"
  4232. $ WC "i8size='" + perl_i8size + "'"
  4233. $ WC "u8size='" + perl_u8size + "'"
  4234. $ WC "i16size='" + perl_i16size + "'"
  4235. $ WC "u16size='" + perl_u16size + "'"
  4236. $ WC "i32size='" + perl_i32size + "'"
  4237. $ WC "u32size='" + perl_u32size + "'"
  4238. $ WC "i64size='" + perl_i64size + "'"
  4239. $ WC "u64size='" + perl_u64size + "'"
  4240. $ WC "ivdformat='" + perl_ivdformat + "'"
  4241. $ WC "uvuformat='" + perl_uvuformat + "'"
  4242. $ WC "uvoformat='" + perl_uvoformat + "'"
  4243. $ WC "uvxformat='" + perl_uvxformat + "'"
  4244. $ WC "d_vms_case_sensitive_symbols='" + d_vms_be_case_sensitive + "'"
  4245. $ WC "sizesize='" + perl_sizesize + "'"
  4246. $!
  4247. $! ##WRITE NEW CONSTANTS HERE##
  4248. $!
  4249. $ Close CONFIG
  4250. $
  4251. $! Okay, we've gotten here. Build munchconfig and run it
  4252. $ 'Perl_CC' munchconfig.c
  4253. $ If (Needs_Opt.eqs."Yes")
  4254. $ THEN
  4255. $   open/write OPTCHAN []munchconfig.opt
  4256. $   IF ("''using_gnu_c'".eqs."Yes")
  4257. $   THEN
  4258. $     write OPTCHAN "Gnu_CC:[000000]gcclib.olb/library"
  4259. $   endif
  4260. $   write OPTCHAN "Sys$Share:VAXCRTL/Share"
  4261. $   Close OPTCHAN
  4262. $   link munchconfig.obj,munchconfig.opt/opt
  4263. $   delete munchconfig.opt;*
  4264. $ else
  4265. $   link munchconfig.obj
  4266. $ endif
  4267. $ echo ""
  4268. $ echo "Doing variable substitutions on .SH files..."
  4269. $ echo "Extracting config.h (with variable substitutions)"
  4270. $ !
  4271. $ ! we need an fdl file
  4272. $ CREATE [-]CONFIG.FDL
  4273. RECORD
  4274.   FORMAT STREAM_LF
  4275. $ CREATE /FDL=[-]CONFIG.FDL [-]CONFIG.LOCAL
  4276. $ ! First spit out the header info with the local defines (to get
  4277. $ ! around the 255 character command line limit)
  4278. $ OPEN/APPEND CONFIG [-]config.local
  4279. $ IF use_debugging_perl THEN WC "#define DEBUGGING"
  4280. $ IF use_two_pot_malloc THEN WC "#define TWO_POT_OPTIMIZE"
  4281. $ IF mymalloc THEN WC "#define EMBEDMYMALLOC"
  4282. $ IF use_pack_malloc THEN WC "#define PACK_MALLOC"
  4283. $ IF use_debugmalloc THEN WC "#define DEBUGGING_MSTATS"
  4284. $ IF Using_Gnu_C THEN WC "#define GNUC_ATTRIBUTE_CHECK"
  4285. $ IF (Has_Dec_C_Sockets)
  4286. $ THEN
  4287. $    WC "#define VMS_DO_SOCKETS"
  4288. $    WC "#define DECCRTL_SOCKETS"
  4289. $ ELSE
  4290. $    IF Has_Socketshr THEN WC "#define VMS_DO_SOCKETS"
  4291. $ ENDIF
  4292. $! This is VMS-specific for now
  4293. $ WC "#''perl_d_setenv' HAS_SETENV"
  4294. $ IF d_secintgenv THEN WC "#define SECURE_INTERNAL_GETENV"
  4295. $ if d_alwdeftype THEN WC "#define ALWAYS_DEFTYPES"
  4296. $ IF (use64bitint)
  4297. $ THEN
  4298. $    WC "#define USE_64_BIT_INT"
  4299. $    WC "#define USE_LONG_DOUBLE"
  4300. $ ENDIF
  4301. $ IF use64bitall THEN WC "#define USE_64_BIT_ALL"
  4302. $ IF be_case_sensitive THEN WC "#define VMS_WE_ARE_CASE_SENSITIVE"
  4303. $ if perl_d_herrno .eqs. "undef"
  4304. $ THEN
  4305. $    WC "#define NEED_AN_H_ERRNO"
  4306. $ ENDIF
  4307. $ WC "#define HAS_ENVGETENV"
  4308. $ WC "#define PERL_EXTERNAL_GLOB"
  4309. $ CLOSE CONFIG
  4310. $!
  4311. $! Now build the normal config.h
  4312. $ define/user sys$output [-]config.main
  4313. $ mcr []munchconfig [-]config.sh [-]config_h.sh
  4314. $ ! Concatenate them together
  4315. $ copy [-]config.local,[-]config.main [-]config.h
  4316. $! Clean up
  4317. $ DELETE/NOLOG [-]CONFIG.MAIN;*
  4318. $ DELETE/NOLOG [-]CONFIG.LOCAL;*
  4319. $ DELETE/NOLOG [-]CONFIG.FDL;*
  4320. $!
  4321. $ IF Using_Dec_C
  4322. $ THEN
  4323. $   DECC_REPLACE = "DECC=decc=1"
  4324. $ ELSE
  4325. $   DECC_REPLACE = "DECC=" 
  4326. $ ENDIF
  4327. $ IF Using_Gnu_C
  4328. $ THEN
  4329. $   GNUC_REPLACE = "GNUC=gnuc=1"
  4330. $ ELSE
  4331. $   GNUC_REPLACE = "GNUC=" 
  4332. $ ENDIF
  4333. $ IF Has_Dec_C_Sockets
  4334. $ THEN
  4335. $   SOCKET_REPLACE = "SOCKET=DECC_SOCKETS=1"
  4336. $ ELSE
  4337. $   IF Has_Socketshr
  4338. $   THEN
  4339. $     SOCKET_REPLACE = "SOCKET=SOCKETSHR_SOCKETS=1"
  4340. $   ELSE
  4341. $     SOCKET_REPLACE = "SOCKET="
  4342. $   ENDIF
  4343. $ ENDIF
  4344. $ IF (Use_Threads)
  4345. $ THEN
  4346. $   IF (VMS_VER .LES. "6.2")
  4347. $   THEN
  4348. $     THREAD_REPLACE = "THREAD=OLDTHREADED=1"
  4349. $   ELSE
  4350. $     THREAD_REPLACE = "THREAD=THREADED=1"
  4351. $   ENDIF
  4352. $ ELSE
  4353. $   THREAD_REPLACE = "THREAD="
  4354. $ ENDIF
  4355. $ IF mymalloc
  4356. $ THEN
  4357. $   MALLOC_REPLACE = "MALLOC=MALLOC=1"
  4358. $ ELSE
  4359. $   MALLOC_REPLACE = "MALLOC="
  4360. $ ENDIF
  4361. $ echo "Extracting ''defmakefile' (with variable substitutions)"
  4362. $!set ver
  4363. $ define/user sys$output 'UUmakefile 
  4364. $ mcr []munchconfig [-]config.sh descrip_mms.template "''DECC_REPLACE'" "''ARCH_TYPE'" "''GNUC_REPLACE'" "''SOCKET_REPLACE'" "''THREAD_REPLACE'" -
  4365. "''C_Compiler_Replace'" "''MALLOC_REPLACE'" "''Thread_Live_Dangerously'" "PV=''version'" "FLAGS=FLAGS=''extra_flags'"
  4366. $ echo "Extracting Build_Ext.Com (without variable substitutions)"
  4367. $ Create Sys$Disk:[-]Build_Ext.Com
  4368. $ Deck/Dollar="$EndOfTpl$"
  4369. $!++ Build_Ext.Com
  4370. $!   NOTE: This file is extracted as part of the VMS configuration process.
  4371. $!   Any changes made to it directly will be lost.  If you need to make any
  4372. $!   changes, please edit the template in [.vms]SubConfigure.Com instead.
  4373. $    def = F$Environment("Default")
  4374. $    exts1 = F$Edit(p1,"Compress")
  4375. $    p2 = F$Edit(p2,"Upcase,Compress,Trim")
  4376. $    If F$Locate("MCR ",p2).eq.0 Then p2 = F$Extract(3,255,p2)
  4377. $    miniperl = "$" + F$Search(F$Parse(p2,".Exe"))
  4378. $    makeutil = p3
  4379. $    if f$type('p3') .nes. "" then makeutil = 'p3'
  4380. $    targ = F$Edit(p4,"Lowercase")
  4381. $    i = 0
  4382. $ next_ext:
  4383. $    ext = F$Element(i," ",p1)
  4384. $    If ext .eqs. " " Then Goto done
  4385. $    Define/User Perl_Env_Tables CLISYM_LOCAL
  4386. $    miniperl
  4387.      ($extdir = $ENV{'ext'}) =~ s/::/./g;
  4388.      $extdir =~ s#/#.#g;
  4389.      if ($extdir =~ /^vms/i) { $extdir =~ s/vms/.vms.ext/i; }
  4390.      else                    { $extdir = ".ext.$extdir";   }
  4391.      ($ENV{'extdir'} = "[$extdir]");
  4392.      ($ENV{'up'} = ('-') x ($extdir =~ tr/././));
  4393. $    Set Default &extdir
  4394. $    redesc = 0
  4395. $    If F$Locate("clean",targ) .eqs. F$Length(targ)
  4396. $    Then
  4397. $      Write Sys$Output "Building ''ext' . . ."
  4398. $      On Error Then Goto done
  4399. $      If F$Search("Descrip.MMS") .eqs. ""
  4400. $      Then
  4401. $        redesc = 1
  4402. $      Else
  4403. $        If F$CvTime(F$File("Descrip.MMS","rdt")) .lts. -
  4404.             F$CvTime(F$File("Makefile.PL","rdt")) Then redesc = 1
  4405. $      EndIf
  4406. $    Else
  4407. $      Write Sys$Output "''targ'ing ''ext' . . ."
  4408. $      On Error Then Continue
  4409. $    EndIf
  4410. $    If redesc Then -
  4411.        miniperl "-I[''up'.lib]" Makefile.PL "INST_LIB=[''up'.lib]" "INST_ARCHLIB=[''up'.lib]"
  4412. $    makeutil 'targ'
  4413. $    i = i + 1
  4414. $    Set Def &def
  4415. $    Goto next_ext
  4416. $ done:
  4417. $    sts = $Status
  4418. $    Set Def &def
  4419. $    Exit sts
  4420. $!-- Build_Ext.Com
  4421. $EndOfTpl$
  4422. $
  4423. $! set nover
  4424. $!
  4425. $! Clean up after ourselves
  4426. $ DELETE/NOLOG/NOCONFIRM munchconfig.exe;
  4427. $ DELETE/NOLOG/NOCONFIRM munchconfig.obj;
  4428.