Lines Matching +full:write +full:- +full:output
45 $! 15-Jan-2001 J. Malmberg Original
46 $! 29-Apr-2001 J. Malmberg Also look for config.*in* in a [.include]
48 $! 30-Apr-2001 J. Malmberg Update for SAMBA checks
49 $! 09-Apr-2005 J. Malmberg Update for RSYNC and large file.
50 $! 29-Sep-2011 J. Malmberg Update for Bash 4.2
51 $! 01-Mar-2012 J. Malmberg Warn about getcwd(0,0)
52 $! 21-Dec-2012 J. Malmberg Update for gawk
53 $! 29-Dec-2012 J. Malmberg Update for curl
65 $!----------------------------------------------------------
79 $!----------------------
83 $!-------------------------
88 $ write sys$output "Found existing custom file ''file'."
91 $ write sys$output "Creating new sys$disk:[]config_vms.h for you."
109 $! Write out the header
110 $!----------------------
117 $!------------------------------------------------------------------
162 $ write sys$output "Can not find sys$disk:config.h.in"
165 $ write/symbol sys$output line_out
168 $ write sys$output "Also looked in PRJ_INCLUDE: for these files."
171 $ write tf ""
172 $ write tf -
174 $ write tf -
176 $ write tf -
180 $ write tf -
183 $ write tf -
184 "/*--------------------------------------------------------------*/
185 $ write tf ""
191 $!-----------------------------------
197 $!----------------------------------------
200 $define/user sys$output 'tfile1'
203 $open/write/error=rtldef_loop1_end tf2 'dchfile'
211 $ write tf2 "|",key1,"|"
219 $!----------------------------------------
222 $define/user sys$output 'tfile1'
225 $open/write/error=stardef_loop1_end tf2 'starhfile'
233 $ write tf2 "|",key1,"|"
243 $!---------------------------------------------------------------
253 $!---------------------
256 $ write tf ""
263 $!-----------------------------------------
267 $ write tf line_in
268 $ key = f$extract(xlen - 2, 2, xline)
274 $!----------------------
281 $ key2_h = f$extract(key2_len - 2, 2, key2)
282 $ key2_t = f$extract(key2_len - 5, 5, key2)
287 $!write sys$output "xline = ''xline'"
290 $!-----------------------------------------
293 $ write tf "/* ", xline, " */"
299 $!-------------------------------
302 $ write tf xline
310 $!-----------------------------------------------
313 $ write tf "/* ", xline, " */"
316 $!--------------------------------------
324 $!------------------------------------------
328 $ write tf xline
334 $!---------------------------
355 $!-------------------------------------
356 $ if (key2b .eqs. "FCNTL") .and. (key2c .eqs. "O") .and. -
359 $ write tf "#ifndef ''key2'"
360 $ write tf "#define ''key2' 1"
361 $ write tf "#endif"
366 $!-------------------------------------
369 $ write tf "#ifndef ''key2'"
370 $ write tf "#define ''key2' 1"
371 $ write tf "#endif"
376 $!-------------------------------------
381 $ write tf "#ifndef ''key2'"
382 $ write tf "#define ''key2' 1"
383 $ write tf "#endif"
390 $!-----------------------------------------------
393 $ write tf "#ifndef __VAX
394 $ write tf "#define HAVE_''key2' 1"
395 $ write tf "#endif"
401 $ write tf "#ifndef ''key2'"
402 $ write tf "#define ''key2' short"
403 $ write tf "#endif"
409 $ write tf "#ifndef ''key2'"
410 $ write tf "#define ''key2' short"
411 $ write tf "#endif"
417 $ write tf "#ifndef ''key2'"
418 $ write tf "#define ''key2' unsigned short"
419 $ write tf "#endif"
425 $ write tf "#ifndef ''key2'"
426 $ write tf "#define ''key2' int"
427 $ write tf "#endif"
433 $ write tf "#ifndef ''key2'"
434 $ write tf "#define ''key2' unsigned int"
435 $ write tf "#endif"
441 $ write tf "#ifndef ''key2'"
442 $ write tf "#ifdef __VAX"
443 $ write tf "#define ''key2' long"
444 $ write tf "#else"
445 $ write tf "#define ''key2' long long"
446 $ write tf "#endif"
447 $ write tf "#endif"
453 $ write tf "#ifndef ''key2'"
454 $ write tf "#ifdef __VAX"
455 $ write tf "#define ''key2' unsigned long"
456 $ write tf "#else"
457 $ write tf "#define ''key2' unsigned long long"
458 $ write tf "#endif"
459 $ write tf "#endif"
465 $ write tf "#ifndef ''key2'"
466 $ write tf "#define ''key2' int"
467 $ write tf "#endif"
473 $ write tf "#ifndef ''key2'"
474 $ write tf "#define ''key2' gid_t"
475 $ write tf "#endif"
481 $ write tf "#ifndef ''key2'"
482 $ write tf "#define ''key2' 0"
483 $ write tf "#endif"
489 $ write tf "#ifndef ''key2'"
490 $ write tf "#define ''key2' 1"
491 $ write tf "#endif"
497 $ write tf "#ifndef ''key2'"
498 $ write tf "#define ''key2' 1"
499 $ write tf "#endif"
505 $ write tf "#ifndef ''key2'"
506 $ write tf "#define ''key2' 1"
507 $ write tf "#endif"
515 $! write tf "#ifndef ''key2'"
516 $! write tf "#define ''key2' 1"
517 $! write tf "#endif"
525 $! write tf "#ifndef ''key2'"
526 $! write tf "#define ''key2' 1"
527 $! write tf "#endif"
535 $! write tf "#ifndef ''key2'"
536 $! write tf "#define ''key2' 0"
537 $! write tf "#endif"
543 $ write tf "#ifndef ''key2'"
544 $ write tf "#define ''key2' 1"
545 $ write tf "#endif"
551 $ write tf "#ifndef ''key2'"
552 $ write tf "#define ''key2' 1"
553 $ write tf "#endif"
559 $ write tf "#ifndef ''key2'"
560 $ write tf "#define ''key2' 1"
561 $ write tf "#endif"
567 $ write tf "#ifndef ''key2'"
568 $ write tf "#define ''key2' 2"
569 $ write tf "#endif"
575 $ write tf "#ifndef ''key2'"
576 $ write tf "#define ''key2' 1"
577 $ write tf "#endif"
583 $ write tf "#ifndef ''key2'"
584 $ write tf "#define ''key2' 1"
585 $ write tf "#endif"
591 $ write tf "#ifndef ''key2'"
592 $ write tf "#define ''key2' 1"
593 $ write tf "#endif"
599 $ write tf "#ifndef ''key2'"
600 $ write tf "#define ''key2' 1"
601 $ write tf "#endif"
607 $ write tf "#ifndef ''key2'"
608 $ write tf "#define ''key2' 0"
609 $ write tf "#endif"
615 $ write tf "#ifndef ''key2'"
616 $ write tf "#define ''key2' 0"
617 $ write tf "#endif"
623 $ write tf "#ifndef ''key2'"
624 $ write tf "#define ''key2' 0"
625 $ write tf "#endif"
631 $ write tf "#ifndef ''key2'"
632 $ write tf "#define ''key2' 1"
633 $ write tf "#endif"
639 $ write tf "#ifndef ''key2'"
640 $ write tf "#define ''key2' 1"
641 $ write tf "#endif"
647 $ write tf "#ifndef ''key2'"
648 $ write tf "#define ''key2' 1"
649 $ write tf "#endif"
655 $ write tf "#ifndef ''key2'"
656 $ write tf "#define ''key2' 1"
657 $ write tf "#endif"
663 $ write tf "#ifndef ''key2'"
664 $ write tf "#define ''key2' 0"
665 $ write tf "#endif"
671 $ write tf "#ifndef ''key2'"
672 $ write tf "#define ''key2' 1"
673 $ write tf "#endif"
679 $ write tf "#ifndef ''key2'"
680 $ write tf "#define ''key2' 1"
681 $ write tf "#endif"
687 $ write tf "#ifndef ''key2'"
688 $ write tf "#define ''key2' 1"
689 $ write tf "#endif"
695 $ write tf "#ifndef ''key2'"
696 $ write tf "#define ''key2' 1"
697 $ write tf "#endif"
703 $ write tf "#ifndef ''key2'"
704 $ write tf "#define ''key2' 1"
705 $ write tf "#endif"
711 $ write tf "#ifndef ''key2'"
712 $ write tf "#define ''key2' 1"
713 $ write tf "#endif"
719 $ write tf "#ifndef ''key2'"
720 $ write tf "#define ''key2' 1"
721 $ write tf "#endif"
727 $ write tf "#ifndef ''key2'"
728 $ write tf "#define ''key2' 0"
729 $ write tf "#endif"
736 $! write tf "#ifndef ''key2'"
737 $! write tf "#define ''key2' 1"
738 $! write tf "#endif"
744 $ write tf "#ifndef ''key2'"
745 $ write tf "#define ''key2'"
746 $ write tf "#endif"
752 $ write tf "#ifndef ''key2'"
753 $ write tf "#define ''key2' 1"
754 $ write tf "#endif"
760 $ write tf "#ifndef ''key2'"
761 $ write tf "#define ''key2' 1"
762 $ write tf "#endif"
768 $ write tf "#ifndef ''key2'"
769 $ write tf "#define ''key2' 1"
770 $ write tf "#endif"
776 $ write tf "#ifndef ''key2a'"
777 $ write tf "#define ''key2a' 1"
778 $ write tf "#endif"
784 $ write tf "#ifndef ''key2'"
785 $ write tf "#define ''key2' 1"
786 $ write tf "#endif"
792 $ write tf "#ifndef ''key2'"
793 $ write tf "#define ''key2' 1"
794 $ write tf "#endif"
800 $ write tf "#ifndef ''key2'"
801 $ write tf "#define ''key2' 1"
802 $ write tf "#endif"
810 $ search_key = key2 - "HAVE_"
811 $ define/user sys$output nl:
813 $ search/output=nl: 'ssl_header_dir'engine.h 'search_key'
816 $ write tf "#ifndef ''key2'"
817 $ write tf "#define ''key2' 1"
818 $ write tf "#endif"
820 $ write tf "/* #undef ''key2' */"
823 $ write tf "/* #undef ''key2' */"
832 $ write tf "#ifndef ''key2'"
833 $ write tf "#define ''key2' 1"
834 $ write tf "#endif"
836 $ write tf "/* #undef ''key2' */"
843 $ if (key2c .eqs. "EGD") .or. -
844 (key2c .eqs. "STATUS") .or. -
849 $ write tf "#ifndef ''key2'"
850 $ write tf "#define ''key2' 1"
851 $ write tf "#endif"
853 $ write tf "/* #undef ''key2' */"
860 $ write tf "#ifndef ''key2'"
861 $ write tf "#define ''key2' 1"
862 $ write tf "#endif"
868 $ write tf "#ifndef ''key2'"
869 $ write tf "#define ''key2' 1"
870 $ write tf "#endif"
876 $!--------------------------
879 $ write sys$output ""
880 $ write sys$output -
881 "%CONFIG_H-I-NONPORT, ''key2' being tested for!"
882 $ write sys$output -
883 "-CONFIG_H-I-GETCWD, GETCWD(0,0) does not work on VMS."
884 $ write sys$output -
885 "-CONFIG_H-I-GETCWD2, Work around hack probably required."
886 $ write sys$output -
887 "-CONFIG_H-I-REVIEW, Manual Code review required!"
891 $ write tfcv ""
892 $ write tfcv -
894 $ write tfcv ""
901 $ if (key2a .eqs. "HAVE") .or. (key2a .eqs. "STAT") .or. -
906 $!------------------------------------
921 $ if (key2_h .eqs. "_H") .or. (key2 .eqs. "ENABLE_IPV6") .or. -
926 $!---------------------------------------
934 $!------------------------------------------
935 $ if (key2b .eqs. "SYS") .or. (key2b .eqs. "ARPA") .or. -
946 $!--------------------------------------------------------------------
954 $ if (key2 .eqs. "HAVE_LDAP_SSL") .or. -
964 $ write sys$output ""
965 $ write sys$output -
966 "%CONFIG_H-I-NONPORT, ''key2' being asked for!"
967 $ write sys$output -
968 "-CONFIG_H-I-FILE_OLD, file.h will not be configured as is obsolete!"
969 $ write sys$output -
970 "-CONFIG_H_I-FCNTL_NEW, "Expecting fcntl.h to be configured instead!"
971 $ write sys$output -
972 "-CONFIG_H_I-FCNTL_CHK, "Unable to verify at this time!"
973 $ write sys$output -
974 "-CONFIG_H-I-REVIEW, Manual Code review required!"
979 $ write tfcv ""
980 $ write tfcv -
982 $ write tfcv ""
988 $!---------------------------------------------
989 $ define/user sys$output nl:
991 $ search/output=nl: 'dchfile' |'headf'|/exact
994 $ if key64 then write tf "#ifndef __VAX"
995 $ write tf "#ifndef ''key2'"
996 $ write tf "#define ''key2' 1"
997 $if p2 .nes. "" then write sys$output "''dchfile' - #define ''key2' 1"
998 $ write tf "#endif"
999 $ if key64 then write tf "#endif"
1006 $!---------------------------------------------
1007 $ define/user sys$output nl:
1009 $ search/output=nl: 'starhfile' |'headf'|/exact
1012 $ if key64 then write tf "#ifndef __VAX"
1013 $ write tf "#ifndef ''key2'"
1014 $ write tf "#define ''key2' 1"
1015 $if p2 .nes. "" then write sys$output "''starfile' - #define ''key2' 1"
1016 $ write tf "#endif"
1017 $ if key64 then write tf "#endif"
1023 $!---------------------------------------------------------
1026 $ headf = headf - "OPENSSL_"
1030 $ write tf "#ifndef ''key2'"
1031 $ write tf "#define ''key2' 1"
1032 $ write tf "#endif"
1039 $!------------------------------------------------------------
1043 $ headf = headf - "GSSAPI_"
1047 $ write tf "#ifndef ''key2'"
1048 $ write tf "#define ''key2' 1"
1049 $ write tf "#endif"
1059 $!------------------------------------------------
1062 $ if (key2b .eqs. "FILE") .or. (key2b .eqs. "DATE") -
1065 $ write tf "#ifndef HAVE_''key2b'"
1066 $ write tf "#define HAVE_''key2b' 1"
1067 $ write tf "#endif"
1073 $!-------------------------------------
1078 $ write tf "/* #undef HAVE_''key2b' */"
1084 $ write tf "/* #undef HAVE_''key2b' */"
1090 $ write tf "/* #undef HAVE_''key2b' */"
1102 $!-------------------------------------
1124 $!$ if (key2b .eqs. "STATVFS" .or. key2b .eqs. "STATFS2" -
1131 $!------------------------------------------------------------
1134 $!-------------------------------------------------
1140 $!--------------------------------------
1148 $ write sys$output ""
1149 $ write sys$output -
1150 "%CONFIG_H-I-NONPORT, ''key2' being asked for!"
1151 $ write sys$output -
1152 "-CONFIG_H-I-MMAP, MMAP operations only work on STREAM and BINARY files!"
1153 $ write sys$output -
1154 "-CONFIG_H-I-REVIEW, Manual Code review required!"
1158 $ write tfcv ""
1159 $ write tfcv -
1161 $ write tfcv ""
1169 $ write sys$output ""
1170 $ write sys$output -
1171 "%CONFIG_H-I-NONPORT, ''key2' being asked for!"
1172 $ write sys$output -
1173 "-CONFIG_H-I-CRYPT, CRYPT operations on the VMS SYSUAF may not work!"
1174 $ write sys$output -
1175 "-CONFIG_H-I-REVIEW, Manual Code review required!"
1179 $ write tfcv ""
1180 $ write tfcv -
1182 $ write tfcv ""
1190 $ write sys$output ""
1191 $ write sys$output -
1192 "%CONFIG_H-I-NONPORT, ''key2' being asked for!"
1193 $ write sys$output -
1194 "-CONFIG_H-I-EXCEL, EXECL configured, Will probably not work."
1195 $ write sys$output -
1196 "-CONFIG_H-I-REVIEW, Manual Code review required!"
1200 $ write tfcv ""
1201 $ write tfcv -
1203 $ write tfcv ""
1209 $! Process if cpp supports ANSI-C stringizing '#' operator
1210 $!-----------------------------------------------------------------------
1213 $ write tf "#ifndef HAVE_STRINGIZE"
1214 $ write tf "#define HAVE_STRINGSIZE 1"
1215 $ write tf "#endif"
1221 $ write tf "#ifndef HAVE_VOLATILE"
1222 $ write tf "#define HAVE_VOLATILE 1"
1223 $ write tf "#endif"
1229 $ write tf "#ifndef HAVE_ALLOCA"
1230 $ write tf "#define HAVE_ALLOCA 1"
1231 $ write tf "#endif"
1237 $ write tf "#ifndef HAVE_ERRNO_DECL"
1238 $ write tf "#define HAVE_ERRNO_DECL 1"
1239 $ write tf "#endif"
1245 $ write tf "#ifndef __VAX"
1246 $ write tf "#pragma message disable longlongtype"
1247 $ write tf "#ifndef HAVE_LONGLONG"
1248 $ write tf "#define HAVE_LONGLONG 1"
1249 $ write tf "#endif"
1250 $ write tf "#endif"
1255 $!-----------------------------------------------
1258 $ write tf "#ifndef __VAX"
1259 $ write tf "#pragma message disable longlongtype"
1260 $ write tf "#ifndef HAVE_LONG_LONG"
1261 $ write tf "#define HAVE_LONG_LONG 1"
1262 $ write tf "#endif"
1263 $ write tf "#endif"
1268 $!-----------------------------------------------
1271 $ write tf "#ifndef __VAX"
1272 $ write tf "#pragma message disable longlongtype"
1273 $ write tf "#ifndef HAVE_UNSIGNED_LONG_LONG"
1274 $ write tf "#define HAVE_UNSIGNED_LONG_LONG 1"
1275 $ write tf "#endif"
1276 $ write tf "#endif"
1281 $!-----------------------------------------------
1284 $ write tf "#ifndef __VAX"
1285 $ write tf "#pragma message disable longlongtype"
1286 $ write tf "#ifndef HAVE_UNSIGNED_LONG_LONG_INT"
1287 $ write tf "#define HAVE_UNSIGNED_LONG_LONG_INT 1"
1288 $ write tf "#endif"
1289 $ write tf "#endif"
1294 $!-----------------------------------------------
1297 $ write tf "#ifndef __VAX"
1298 $ write tf "#pragma message disable longlongtype"
1299 $ write tf "#ifndef HAVE_LONG_DOUBLE"
1300 $ write tf "#define HAVE_LONG_DOUBLE 1"
1301 $ write tf "#endif"
1302 $ write tf "#endif"
1308 $ write sys$output -
1309 "%CONFIG_H-I-NONPORT, ''key2' being asked for!
1310 $ write sys$output -
1311 "-CONFIG_H-I-REVIEW, Manual Code review required!"
1317 $!-------------------------------------------------------------
1320 $ write tf "#ifndef HAVE_''keysym'"
1321 $ write tf "#define HAVE_''keysym' 1"
1322 $if p2 .nes. "" then write sys$output "''decc_shr' #define ''keysym' 1"
1323 $ write tf "#endif
1337 $ keysym = f$extract(0, key2_len - 5, key2) - "HAVE_"
1344 $!------------------------------------------------------
1346 $ define/user sys$output nl:
1353 $!------------------------------------------------------
1354 $ define/user sys$output nl:
1367 $ search/out=nl: 'tfile1' -
1368 "$''keyterm'","$g''keyterm'","$__utc_''keyterm'",-
1369 "$__utctz_''keyterm'","$__bsd44_''keyterm'","$bsd_''keyterm'",-
1375 $!---------------------------------------------------------
1378 $ define/user sys$output nl:
1386 $!---------------------------------------------
1389 $ define/user sys$output nl:
1391 $ search/out=nl: 'tfile1' -
1397 $!------------------------------------------------
1400 $ if key64 then write tf "#ifndef __VAX"
1401 $ write tf "#ifndef ''key2'"
1402 $ write tf "#define ''key2' 1"
1403 $if p2 .nes. "" then write sys$output "''decc_shr' #define ''key2' 1"
1404 $ write tf "#endif"
1405 $ if key64 then write tf "#endif"
1412 $!----------------------------------------------
1413 $ define/user sys$output nl:
1415 $ search/out=nl: 'decc_rtldef' -
1420 $ if key64 then write tf "#ifndef __VAX"
1421 $ write tf "#ifndef ''key2'"
1422 $ write tf "#define ''key2' 1"
1423 $if p2 .nes. "" then write sys$output "''decc_rtldef' #define ''key2' 1"
1424 $ write tf "#endif"
1425 $ if key64 then write tf "#endif"
1430 $!--------------------------------------------
1436 $ write tf "#ifndef ''key2'"
1437 $ write tf "#define ''key2' 1"
1438 $ write tf "#endif"
1443 $!----------------------------------------------------------------------
1448 $ write tf "#ifndef ''key2'"
1449 $ write tf "#define ''key2' 1"
1451 $ write tf "#ifdef ''key2'"
1452 $ write tf "#undef ''key2'"
1454 $ write tf "#endif"
1459 $!------------------------------------------------
1464 $ write tf "#ifndef ''key2'"
1465 $ write tf "#define ''key2' 1"
1467 $ write tf "#ifdef ''key2'"
1468 $ write tf "#undef ''key2'"
1470 $ write tf "#endif"
1476 $ write tf "/* ", xline, " */"
1482 $!----------------------------------------------------------
1487 $ write tf "#ifndef SIZEOF_INO_T"
1488 $ write tf "#if !__USING_STD_STAT
1489 $ write tf "#define SIZEOF_INO_T 6"
1490 $ write tf "#else
1491 $ write tf "#define SIZEOF_INO_T 8"
1492 $ write tf "#endif
1493 $ write tf "#endif"
1498 $ write tf "#ifndef SIZEOF_INTMAX_T"
1499 $ write tf "#ifdef __VAX"
1500 $ write tf "#define SIZEOF_INTMAX_T 4"
1501 $ write tf "#else"
1502 $ write tf "#define SIZEOF_INTMAX_T 8"
1503 $ write tf "#endif"
1504 $ write tf "#endif"
1509 $ write tf "#ifndef SIZEOF_OFF_T"
1510 $ write tf "#if __USE_OFF64_T"
1511 $ write tf "#define SIZEOF_OFF_T 8"
1512 $ write tf "#else"
1513 $ write tf "#define SIZEOF_OFF_T 4"
1514 $ write tf "#endif"
1515 $ write tf "#endif"
1520 $ write tf "#ifndef SIZEOF_CHAR_P"
1521 $ write tf "#if __INITIAL_POINTER_SIZE == 64"
1522 $ write tf "#define SIZEOF_CHAR_P 8"
1523 $ write tf "#else"
1524 $ write tf "#define SIZEOF_CHAR_P 4"
1525 $ write tf "#endif"
1530 $ write tf "#ifndef SIZEOF_VOIDP"
1531 $ write tf "#if __INITIAL_POINTER_SIZE == 64"
1532 $ write tf "#define SIZEOF_VOIDP 8"
1533 $ write tf "#else"
1534 $ write tf "#define SIZEOF_VOIDP 4"
1535 $ write tf "#endif"
1536 $ write tf "#endif"
1541 $ write tf "#ifndef SIZEOF_INT"
1542 $ write tf "#define SIZEOF_INT 4"
1543 $ write tf "#endif"
1548 $ write tf "#ifndef SIZEOF_SIZE_T"
1549 $ write tf "#define SIZEOF_SIZE_T 4"
1550 $ write tf "#endif"
1555 $ write tf "#ifndef SIZEOF_TIME_T"
1556 $ write tf "#define SIZEOF_TIME_T 4"
1557 $ write tf "#endif"
1562 $ write tf "#ifndef SIZEOF_DOUBLE"
1563 $ write tf "#define SIZEOF_DOUBLE 8"
1564 $ write tf "#endif"
1571 $ write tf "#ifndef SIZEOF_LONG"
1572 $ write tf "#define SIZEOF_LONG 4"
1573 $ write tf "#endif"
1575 $ write tf "#ifndef SIZEOF_LONG_LONG"
1576 $ write tf "#ifndef __VAX"
1577 $ write tf "#define SIZEOF_LONG_LONG 8"
1578 $ write tf "#endif"
1579 $ write tf "#endif"
1585 $ write tf "#ifndef SIZEOF_SHORT"
1586 $ write tf "#define SIZEOF_SHORT 2"
1587 $ write tf "#endif"
1590 $ write tf "/* ", xline, " */"
1595 $!-------------------------------
1600 $ write tf "#ifndef NEED_STRINGS_H"
1601 $ write tf "#define NEED_STRINGS_H 1"
1602 $ write tf "#endif"
1605 $ write tf "/* ", xline, " */"
1610 $!-------------------------------------
1613 $ write tf "#ifndef ''key2'"
1614 $ write tf "#ifdef _DECC_V4_SOURCE"
1615 $ write tf "#define ''key2' int"
1616 $ write tf "#else"
1617 $ write tf "#define ''key2' size_t"
1618 $ write tf "#endif"
1619 $ write tf "#endif"
1624 $!-------------------------------------
1629 $ write tf "#ifndef ''key2'"
1630 $ write tf "#define ''key2' const"
1631 $ write tf "#endif"
1636 $ write tf "#ifndef ''key2'"
1637 $ write tf "#define ''key2' struct sockaddr *"
1638 $ write tf "#endif"
1643 $ write tf "#ifndef ''key2'"
1644 $ write tf "#define ''key2' size_t"
1645 $ write tf "#endif"
1650 $ write tf "#ifndef ''key2'"
1651 $ write tf "#define ''key2' size_t"
1652 $ write tf "#endif"
1657 $ write tf "#ifndef ''key2'"
1658 $ write tf "#define ''key2' int"
1659 $ write tf "#endif"
1665 $!-------------------------------------
1670 $ write tf "#ifndef ''key2'"
1671 $ write tf "#define ''key2' int"
1672 $ write tf "#endif"
1677 $ write tf "#ifndef ''key2'"
1678 $ write tf "#define ''key2' void *"
1679 $ write tf "#endif"
1684 $ write tf "#ifndef ''key2'"
1685 $ write tf "#define ''key2' size_t"
1686 $ write tf "#endif"
1691 $ write tf "#ifndef ''key2'"
1692 $ write tf "#define ''key2' int"
1693 $ write tf "#endif"
1698 $ write tf "#ifndef ''key2'"
1699 $ write tf "#define ''key2' int"
1700 $ write tf "#endif"
1707 $!-------------------------------------
1712 $ write tf "#ifndef ''key2'"
1713 $ write tf "#define ''key2'"
1714 $ write tf "#endif"
1719 $ write tf "#ifndef ''key2'"
1720 $ write tf "#define ''key2' int"
1721 $ write tf "#endif"
1726 $ write tf "#ifndef ''key2'"
1727 $ write tf "#define ''key2' void *"
1728 $ write tf "#endif"
1733 $ write tf "#ifndef ''key2'"
1734 $ write tf "#define ''key2' size_t"
1735 $ write tf "#endif"
1740 $ write tf "#ifndef ''key2'"
1741 $ write tf "#define ''key2' int"
1742 $ write tf "#endif"
1747 $ write tf "#ifndef ''key2'"
1748 $ write tf "#define ''key2' struct sockaddr"
1749 $ write tf "#endif"
1754 $ write tf "#ifndef ''key2'"
1755 $ write tf "#define ''key2' unsigned int"
1756 $ write tf "#endif"
1761 $ write tf "#ifndef ''key2'"
1762 $ write tf "#define ''key2' int"
1763 $ write tf "#endif"
1769 $!-------------------------------------
1774 $ write tf "#ifndef ''key2'"
1775 $ write tf "#define ''key2' const"
1776 $ write tf "#endif"
1781 $ write tf "#ifndef ''key2'"
1782 $ write tf "#define ''key2' int"
1783 $ write tf "#endif"
1788 $ write tf "#ifndef ''key2'"
1789 $ write tf "#define ''key2' void *"
1790 $ write tf "#endif"
1795 $ write tf "#ifndef ''key2'"
1796 $ write tf "#define ''key2' fd_set *"
1797 $ write tf "#endif"
1802 $ write tf "#ifndef ''key2'"
1803 $ write tf "#define ''key2' struct timeval *"
1804 $ write tf "#endif"
1809 $ write tf "#ifndef ''key2'"
1810 $ write tf "#define ''key2' int"
1811 $ write tf "#endif"
1817 $!-------------------------------------
1822 $ write tf "#ifndef ''key2'"
1823 $ write tf "#define ''key2' const"
1824 $ write tf "#endif"
1829 $ write tf "#ifndef ''key2'"
1830 $ write tf "#define ''key2' int"
1831 $ write tf "#endif"
1836 $ write tf "#ifndef ''key2'"
1837 $ write tf "#define ''key2' void *"
1838 $ write tf "#endif"
1843 $ write tf "#ifndef ''key2'"
1844 $ write tf "#define ''key2' size_t"
1845 $ write tf "#endif"
1850 $ write tf "#ifndef ''key2'"
1851 $ write tf "#define ''key2' int"
1852 $ write tf "#endif"
1857 $ write tf "#ifndef ''key2'"
1858 $ write tf "#define ''key2' int"
1859 $ write tf "#endif"
1866 $!-------------------------------
1869 $! write tf "/* ", xline, " */"
1874 $!------------------------------
1877 $ write tf "#ifndef inline"
1878 $ write tf "#define inline __inline"
1879 $ write tf "#endif"
1884 $!--------------------------------
1887 $ write tf "#ifndef restrict"
1888 $ write tf "#define restrict __restrict"
1889 $ write tf "#endif"
1894 $!----------------------------------
1897 $ write tf "#ifndef RETSIGTYPE"
1898 $ write tf "#define RETSIGTYPE void"
1899 $ write tf "#endif"
1904 $!---------------------------
1907 $ write tf "#ifndef STDC_HEADERS"
1908 $ write tf "#define STDC_HEADERS 1"
1909 $ write tf "#endif"
1914 $!-------------------------------------
1917 $ write tf "#ifndef PROTOTYPES"
1918 $ write tf "#define PROTOTYPES 1"
1919 $ write tf "#endif"
1924 $!---------------------------------------
1927 $ write tf "#ifndef SEEKDIR_RETURNS_VOID"
1928 $ write tf "#define SEEKDIR_RETURNS_VOID 1"
1929 $ write tf "#endif"
1932 $! Unknown - See if CONFIGURE can give a clue for this
1933 $!----------------------------------------------------------
1936 $! gproj_name = proj_name - "_VMS" - "-VMS"
1938 $ define/user sys$output nl:
1941 $! if f$locate("DIR", key2) .eq. key2_len - 3 then pflag = 1
1942 $! if f$locate("PATH", key2) .eq. key2_len - 4 then pflag = 1
1961 $!------------------------------------------------------------
1964 $ write tf "/* ", xline, " */"
1971 $!----------------------------------------------------------------------
1976 $! write tf "#ifndef ''key2'"
1977 $! write tf "#define ",key2," """,gproj_name,"_",key2,""""
1978 $! write tf "#endif"
1981 $!------------------------------------------
1982 $ write tf "/* ", xline, " */"
1991 $! write tf "#ifndef ''key2'"
1992 $! write tf "#define ",key2," """,gproj_name,"_",key2,""""
1993 $! write tf "#endif"
1996 $!-------------------------------------------
1997 $ write tf "/* ", xline, " */"
2004 $!----------------------------------------------------------
2007 $ skey2 = skey2 - "'" - "'" - "'" - "'"
2011 $ skey2 = skey2 - """" - """" - """" - """"
2013 $ write tf "#ifndef ''key2'"
2016 $ write tf "#define ",key2
2018 $! Only quote non-numbers
2019 $!----------------------------------------
2022 $ write tf "#define ",key2," ",skey2
2024 $ write tf "#define ",key2," """,skey2,""""
2027 $ write tf "#endif"
2033 $! write tf "#ifndef ''key2'"
2034 $! write tf "#define ",key2," """,gproj_name,"_",key2,""""
2035 $! write tf "#endif"
2053 $!-----------------------------------------------------
2054 $ write tf "/* ", xline, " */"
2060 $! Write out the tail
2061 $!--------------------
2066 $!--------------------
2102 $! Gosub to write a new config_vms.h
2103 $!-----------------------------------
2108 $write tf "/* File: config_vms.h"
2109 $write tf "**"
2110 $write tf "** This file contains the manual edits needed for porting"
2111 $!write tf "** the ''proj_name' package to OpenVMS.
2112 $write tf "**"
2113 $write tf "** Edit this file as needed. The procedure that automatically"
2114 $write tf "** generated this header stub will not overwrite or make any"
2115 $write tf "** changes to this file."
2116 $write tf "**"
2117 $write tf -
2119 $write tf "**"
2120 $write tf -
2122 $write tf ""
2126 $! gosub to write out a documentation header for config.h
2127 $!----------------------------------------------------------------
2132 $write tf "#ifndef CONFIG_H"
2133 $write tf "#define CONFIG_H"
2134 $write tf "/* File: config.h"
2135 $write tf "**"
2136 $write tf -
2138 $write tf "** the project on a VMS system."
2139 $write tf "**"
2140 $write tf "** Try not to make any edits to this file, as it is"
2141 $write tf "** automagically generated."
2142 $write tf "**"
2143 $write tf "** Manual edits should be made to the config_vms.h file."
2144 $write tf "**"
2145 $write tf -
2147 $write tf "**"
2148 $write tf -
2150 $write tf ""
2151 $write tf "#if (__CRTL_VER >= 70200000) && !defined (__VAX)"
2152 $write tf "#define _LARGEFILE 1"
2153 $write tf "#endif"
2154 $write tf ""
2155 $write tf "#ifndef __VAX"
2156 $write tf "#ifdef __CRTL_VER"
2157 $write tf "#if __CRTL_VER >= 80200000"
2158 $write tf "#define _USE_STD_STAT 1"
2159 $write tf "#endif"
2160 $write tf "#endif"
2161 $write tf "#endif"
2162 $write tf ""
2164 $write tf " /* Allow compiler builtins */"
2165 $write tf "/*-------------------------*/"
2166 $write tf "#ifdef __DECC_VER"
2167 $write tf "#include <non_existant_dir:builtins.h>"
2168 $write tf "#endif"
2170 $write tf ""
2173 $! gosub to write out the tail for config.h and close it
2174 $!---------------------------------------------------------
2176 $write tf ""
2177 $write tf " /* Include the hand customized settings */"
2178 $write tf "/*--------------------------------------*/"
2179 $write tf "#include ""config_vms.h"""
2180 $write tf ""
2181 $write tf "#endif /* CONFIG_H */"