github的一些开源项目
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

1144 lines
38 KiB

  1. $! Configure procedure
  2. $! (c) Alexey Chupahin 11-APR-2024
  3. $! alexey@vaxman.de, alexey_chupahin@mail.ru
  4. $!
  5. $!
  6. $ SET NOON
  7. $SET NOVER
  8. $WRITE SYS$OUTPUT " "
  9. $WRITE SYS$OUTPUT "Configuring PCRE2 library for OpenVMS "
  10. $WRITE SYS$OUTPUT "(c) Alexey Chupahin CHAPG"
  11. $WRITE SYS$OUTPUT " "
  12. $! Checking architecture
  13. $DECC = F$SEARCH("SYS$SYSTEM:DECC$COMPILER.EXE") .NES. ""
  14. $ IF F$GETSYI("ARCH_TYPE").EQ.1 THEN CPU = "VAX"
  15. $ IF F$GETSYI("ARCH_TYPE").EQ.2 THEN CPU = "Alpha"
  16. $ IF F$GETSYI("ARCH_TYPE").EQ.3 THEN CPU = "I64"
  17. $ IF F$GETSYI("ARCH_TYPE").EQ.4 THEN CPU = "x86"
  18. $WRITE SYS$OUTPUT "Checking architecture ... ", CPU
  19. $IF ( (CPU.EQS."Alpha").OR.(CPU.EQS."I64").OR(CPU.EQS."x86") )
  20. $ THEN
  21. $ SHARED=64
  22. $ ELSE
  23. $ SHARED=32
  24. $ENDIF
  25. $!
  26. $IF (DECC) THEN $WRITE SYS$OUTPUT "Compiler ... DEC C"
  27. $IF (.NOT. DECC) THEN $WRITE SYS$OUTPUT "BAD compiler" GOTO EXIT
  28. $MMS = F$SEARCH("SYS$SYSTEM:MMS.EXE") .NES. ""
  29. $MMK = F$TYPE(MMK)
  30. $IF (MMS .OR. MMK.NES."") THEN GOTO TEST_LIBRARIES
  31. $! I cant find any make tool
  32. $ WRITE SYS$OUTPUT "Install MMS or MMK"
  33. $GOTO EXIT
  34. $!PERL = F$TYPE(MMK)
  35. $!IF (PERL.NES."") THEN GOTO TEST_LIBRARIES
  36. $!WRITE SYS$OUTPUT "Install PERL"
  37. $!GOTO EXIT
  38. $!
  39. $!
  40. $! Is it package root directory? If no, go to [-]
  41. $ IF (F$SEARCH("[]VMS.DIR").EQS."") .AND. (F$SEARCH("[]vms.dir").EQS."")
  42. $ THEN
  43. $ SET DEF [-]
  44. $ ENDIF
  45. $!
  46. $TEST_LIBRARIES:
  47. $! Setting as MAKE utility one of MMS or MMK. I prefer MMS.
  48. $IF (MMK.NES."") THEN MAKE="MMK"
  49. $IF (MMS) THEN MAKE="MMS"
  50. $WRITE SYS$OUTPUT "Checking build utility ... ''MAKE'"
  51. $!WRITE SYS$OUTPUT "Checking PERL ... found"
  52. $WRITE SYS$OUTPUT " "
  53. $!
  54. $!
  55. $! Check files and ODS-2. unzip makes files FILE.H.GENERIC like FILE_H.GENERIC. Should rename to FILE.H_GENERIC
  56. $IF F$SEARCH("[.SRC]PCRE2_H.GENERIC") .NES. ""
  57. $ THEN
  58. $ REN [.SRC]PCRE2_H.GENERIC [.SRC]PCRE2.H_GENERIC
  59. $ ELSE
  60. $ IF F$SEARCH("[.SRC]PCRE2.H_GENERIC") .EQS. ""
  61. $ THEN
  62. $ WRITE SYS$OUTPUT "Not ODS-2 volume, or PCRE2_H.GENERIC not found"
  63. $ EXIT
  64. $ ENDIF
  65. $ENDIF
  66. $IF F$SEARCH("[.SRC]PCRE2_CHARTABLES_C.DIST") .NES. ""
  67. $ THEN
  68. $ REN [.SRC]PCRE2_CHARTABLES_C.DIST [.SRC]PCRE2_CHARTABLES.C_DIST
  69. $ ELSE
  70. $ IF F$SEARCH("[.SRC]PCRE2_CHARTABLES.C_DIST") .EQS. ""
  71. $ THEN
  72. $ WRITE SYS$OUTPUT "Not ODS-2 volume, or PCRE2_CHARTABLES_C.DIST not found"
  73. $ EXIT
  74. $ ENDIF
  75. $ENDIF
  76. $WRITE SYS$OUTPUT "Source Files OK"
  77. $!
  78. $!
  79. $I18 = F$SEARCH("SYS$I18N_ICONV:ISO8859-1_UTF-8.ICONV") .NES. ""
  80. $IF (I18)
  81. $ THEN
  82. $ WRITE SYS$OUTPUT "Found I18 extension ICONV codes"
  83. $!"Checking for iconv "
  84. $ DEFINE SYS$ERROR _NLA0:
  85. $ DEFINE SYS$OUTPUT _NLA0:
  86. $ CC/OBJECT=TEST.OBJ SYS$INPUT
  87. #include <stdio.h>
  88. #include <iconv.h>
  89. #include <errno.h>
  90. #include <stdlib.h>
  91. int main ()
  92. {
  93. /* */
  94. /* Declare variables to be used */
  95. /* */
  96. char fromcodeset[30];
  97. char tocodeset[30];
  98. int iconv_opened;
  99. iconv_t iconv_struct; /* Iconv descriptor */
  100. /* */
  101. /* Initialize variables */
  102. /* */
  103. sprintf(fromcodeset,"UTF-8");
  104. sprintf(tocodeset,"ISO8859-1");
  105. iconv_opened = FALSE;
  106. /* */
  107. /* Attempt to create a conversion descriptor for the codesets */
  108. /* specified. If the return value from iconv_open is -1 then */
  109. /* an error has occurred. Check value of errno. */
  110. /* */
  111. if ((iconv_struct = iconv_open (tocodeset, fromcodeset)) == (iconv_t)-1)
  112. {
  113. /* */
  114. /* Check the value of errno */
  115. /* */
  116. switch (errno)
  117. {
  118. case EMFILE:
  119. case ENFILE:
  120. printf("Too many iconv conversion files open\n");
  121. exit(2);
  122. break;
  123. case ENOMEM:
  124. printf("Not enough memory\n");
  125. printf("Checking iconv ..... no\n");
  126. exit(2);
  127. break;
  128. case EINVAL:
  129. printf("Unsupported conversion\n");
  130. exit(2);
  131. break;
  132. default:
  133. printf("Unexpected error from iconv_open\n");
  134. exit(2);
  135. break;
  136. }
  137. }
  138. else
  139. /* */
  140. /* Successfully allocated a conversion descriptor */
  141. /* */
  142. iconv_opened = TRUE;
  143. /* */
  144. /* Was a conversion descriptor allocated */
  145. /* */
  146. if (iconv_opened)
  147. {
  148. /* */
  149. /* Attempt to deallocate the conversion descriptor. If */
  150. /* iconv_close returns -1 then an error has occurred. */
  151. /* */
  152. if (iconv_close (iconv_struct) == -1)
  153. {
  154. /* */
  155. /* An error occurred. Check the value of errno */
  156. /* */
  157. switch (errno)
  158. {
  159. case EBADF:
  160. printf("Conversion descriptor is invalid\n");
  161. exit(2);
  162. break;
  163. default:
  164. break;
  165. }
  166. }
  167. else
  168. printf("Checking iconv ..... yes\n");
  169. }
  170. return(1);
  171. }
  172. $!
  173. $TMP = $STATUS
  174. $DEASS SYS$ERROR
  175. $DEAS SYS$OUTPUT
  176. $!WRITE SYS$OUTPUT TMP
  177. $IF (TMP .NE. %X10B90001)
  178. $ THEN
  179. $ HAVE_ICONV=0
  180. $ GOTO NEXT0
  181. $ENDIF
  182. $DEFINE SYS$ERROR _NLA0:
  183. $DEFINE SYS$OUTPUT _NLA0:
  184. $LINK/EXE=TEST TEST
  185. $TMP = $STATUS
  186. $DEAS SYS$ERROR
  187. $DEAS SYS$OUTPUT
  188. $!WRITE SYS$OUTPUT TMP
  189. $IF (TMP .NE. %X10000001)
  190. $ THEN
  191. $ HAVE_ICONV=0
  192. $ GOTO NEXT0
  193. $ ELSE
  194. $ HAVE_ICONV=1
  195. $ENDIF
  196. $NEXT0:
  197. $IF (HAVE_ICONV.EQ.1)
  198. $ THEN
  199. $ WRITE SYS$OUTPUT "Checking for iconv ... Yes"
  200. $ ELSE
  201. $ WRITE SYS$OUTPUT "Checking for iconv ... No"
  202. $ENDIF
  203. $!
  204. $!
  205. $! Checking for BZIP2 library
  206. $!
  207. $ DEFINE SYS$ERROR _NLA0:
  208. $ DEFINE SYS$OUTPUT _NLA0:
  209. $ CC/OBJECT=TEST.OBJ/INCLUDE=(BZ2LIB) SYS$INPUT
  210. #include <stdlib.h>
  211. #include <stdio.h>
  212. #include <bzlib.h>
  213. int main()
  214. {
  215. printf("checking version bzip2 library: %s\n",BZ2_bzlibVersion());
  216. }
  217. $TMP = $STATUS
  218. $DEASS SYS$ERROR
  219. $DEAS SYS$OUTPUT
  220. $!WRITE SYS$OUTPUT TMP
  221. $IF (TMP .NE. %X10B90001)
  222. $ THEN
  223. $ HAVE_BZIP2=0
  224. $ GOTO ERR0
  225. $ENDIF
  226. $DEFINE SYS$ERROR _NLA0:
  227. $DEFINE SYS$OUTPUT _NLA0:
  228. $!Testing for CHAPG BZIP2
  229. $!
  230. $LINK/EXE=TEST TEST,BZ2LIB:BZIP2/OPT
  231. $TMP = $STATUS
  232. $DEAS SYS$ERROR
  233. $DEAS SYS$OUTPUT
  234. $IF (TMP .NE. %X10000001)
  235. $ THEN
  236. $ HAVE_BZIP2=0
  237. $ GOTO ERR0
  238. $ ELSE
  239. $ HAVE_BZIP2=1
  240. $ENDIF
  241. $ERR0:
  242. $IF (HAVE_BZIP2.EQ.1)
  243. $ THEN
  244. $ WRITE SYS$OUTPUT "Checking for CHAPG bzip2 library ... Yes"
  245. $ RUN TEST
  246. $ GOTO NEXT4
  247. $ ELSE
  248. $ WRITE SYS$OUTPUT "Checking for correct bzip2 library ... No"
  249. $ WRITE SYS$OUTPUT "To get bzip2 archives support, please download"
  250. $ WRITE SYS$OUTPUT "and install good library ported by Alexey Chupahin"
  251. $ WRITE SYS$OUTPUT "from openvms clamav site http://vaxvms.org/clamav/"
  252. $ WRITE SYS$OUTPUT ""
  253. $ GOTO EXIT
  254. $ENDIF
  255. $NEXT4:
  256. $!
  257. $!
  258. $!"Checking for CHAPG zlib library "
  259. $DEFINE SYS$ERROR _NLA0:
  260. $DEFINE SYS$OUTPUT _NLA0:
  261. $ CC/OBJECT=TEST.OBJ/INCLUDE=(ZLIB) SYS$INPUT
  262. #include <stdlib.h>
  263. #include <stdio.h>
  264. #include <string.h>
  265. #include <zlib.h>
  266. int main()
  267. {
  268. printf("checking version zlib: %s\n",zlibVersion());
  269. // printf("checking zlib is correct ");
  270. }
  271. $TMP = $STATUS
  272. $DEASS SYS$ERROR
  273. $DEAS SYS$OUTPUT
  274. $IF (TMP .NE. %X10B90001)
  275. $ THEN
  276. $ HAVE_ZLIB=0
  277. $ GOTO ERR4
  278. $ENDIF
  279. $DEFINE SYS$ERROR _NLA0:
  280. $DEFINE SYS$OUTPUT _NLA0:
  281. $!
  282. $LINK/EXE=TEST TEST,ZLIB:ZLIB.OPT/OPT
  283. $TMP = $STATUS
  284. $DEAS SYS$ERROR
  285. $DEAS SYS$OUTPUT
  286. $IF (TMP .NE. %X10000001)
  287. $ THEN
  288. $ HAVE_ZLIB=0
  289. $ GOTO ERR4
  290. $ ELSE
  291. $ HAVE_ZLIB=1
  292. $ENDIF
  293. $ERR4:
  294. $IF (HAVE_ZLIB.EQ.1)
  295. $ THEN
  296. $ WRITE SYS$OUTPUT "Checking for CHAPG zlib library ... Yes"
  297. $ RUN TEST
  298. $ GOTO NEXT5
  299. $ ELSE
  300. $ WRITE SYS$OUTPUT "Checking for CHAPG zlib library ... No"
  301. $ WRITE SYS$OUTPUT "Please install ZLIB from"
  302. $ WRITE SYS$OUTPUT "http://vaxvms.org/libsdl/required.html"
  303. $ GOTO EXIT
  304. $ENDIF
  305. $!
  306. $NEXT5:
  307. $!
  308. $!WRITING BUILD FILES
  309. $OPEN/WRITE OUT BUILD.COM
  310. $ WRITE OUT "$","SET DEF [.SRC]"
  311. $ WRITE OUT "$",MAKE
  312. $ WRITE OUT "$ CURRENT = F$ENVIRONMENT (""DEFAULT"") "
  313. $ WRITE OUT "$","SET DEF [-]"
  314. $ WRITE OUT "$CLAM=CURRENT"
  315. $ WRITE OUT "$OPEN/WRITE OUTT PCRE2$STARTUP.COM"
  316. $ WRITE OUT "$WRITE OUTT ""DEFINE PCRE2 ","'","'","CLAM'"" "
  317. $ WRITE OUT "$WRITE OUTT ""DEFINE PCRE2$SHR ","'","'","CLAM'PCRE2$SHR.EXE"" "
  318. $ WRITE OUT "$WRITE OUTT ""PCRE2GREP:==$", "'","'","CLAM'PCRE2GREP.EXE"""
  319. $ WRITE OUT "$CLOSE OUTT"
  320. $ WRITE OUT "$WRITE SYS$OUTPUT "" "" "
  321. $ WRITE OUT "$WRITE SYS$OUTPUT ""***************************************************************************** "" "
  322. $ WRITE OUT "$WRITE SYS$OUTPUT ""Compilation is completed."" "
  323. $ WRITE OUT "$WRITE SYS$OUTPUT ""PCRE2$STARTUP.COM is created. "" "
  324. $ WRITE OUT "$WRITE SYS$OUTPUT ""This file setups all logicals needed."" "
  325. $ WRITE OUT "$WRITE SYS$OUTPUT ""It should be executed before using PCRE2 Library. "" "
  326. $ WRITE OUT "$WRITE SYS$OUTPUT ""Use PCRE2:PCRE2.OPT to link you program"" "
  327. $ WRITE OUT "$WRITE SYS$OUTPUT ""PCRE2GREP grep utility is installed here for your needs "" "
  328. $ WRITE OUT "$WRITE SYS$OUTPUT ""***************************************************************************** "" "
  329. $CLOSE OUT
  330. $! BUILD.COM finished
  331. $ WRITE SYS$OUTPUT "BUILD.COM has been created"
  332. $!
  333. $!Creating OPT.OPT file containig external libraries for linker
  334. $OPEN/WRITE OUT [.SRC]PCRE2.OPT
  335. $IF (SHARED.GT.0) THEN WRITE OUT "PCRE2:PCRE2$SHR/SHARE"
  336. $IF (SHARED.EQ.0)
  337. $ THEN
  338. $ WRITE OUT "PCRE2:PCRE2/LIB"
  339. $ENDIF
  340. $CLOSE OUT
  341. $WRITE SYS$OUTPUT "PCRE2.OPT has been created"
  342. $IF (SHARED.EQ.64)
  343. $ THEN
  344. $ COPY SYS$INPUT [.SRC]PCRE2$DEF.OPT
  345. !
  346. case_sensitive=NO
  347. symbol_vector = (PCRE2_CONFIG_8 = PROCEDURE)
  348. symbol_vector = (PCRE2_MAKETABLES_8 = PROCEDURE)
  349. symbol_vector = (PCRE2_MAKETABLES_FREE_8 = PROCEDURE)
  350. symbol_vector = (PCRE2_CODE_COPY_8 = PROCEDURE)
  351. symbol_vector = (PCRE2_CODE_FREE_8 = PROCEDURE)
  352. symbol_vector = (_PCRE2_CHECK_ESCAPE_8 = PROCEDURE)
  353. symbol_vector = (PCRE2_COMPILE_8 = PROCEDURE)
  354. symbol_vector = (PCRE2_CODE_COPY_WITH_TABLES_8 = PROCEDURE)
  355. symbol_vector = (PCRE2_GET_ERROR_MESSAGE_8 = PROCEDURE)
  356. symbol_vector = (PCRE2_MATCH_DATA_CREATE_8 = PROCEDURE)
  357. symbol_vector = (VMS_PCRE2_GET_M_D_HPFRAM_S_8 = PROCEDURE)
  358. symbol_vector = (PCRE2_GET_MATCH_DATA_SIZE_8 = PROCEDURE)
  359. symbol_vector = (PCRE2_GET_STARTCHAR_8 = PROCEDURE)
  360. symbol_vector = (PCRE2_GET_OVECTOR_COUNT_8 = PROCEDURE)
  361. symbol_vector = (PCRE2_GET_OVECTOR_POINTER_8 = PROCEDURE)
  362. symbol_vector = (PCRE2_GET_MARK_8 = PROCEDURE)
  363. symbol_vector = (PCRE2_MATCH_DATA_FREE_8 = PROCEDURE)
  364. symbol_vector = (VMS_PCRE2_M_D_CRT_FR_PATT_8 = PROCEDURE)
  365. symbol_vector = (PCRE2_MATCH_8 = PROCEDURE)
  366. symbol_vector = (PCRE2_PATTERN_INFO_8 = PROCEDURE)
  367. symbol_vector = (PCRE2_CALLOUT_ENUMERATE_8 = PROCEDURE)
  368. symbol_vector = (PCRE2_SET_GLOB_ESCAPE_8 = PROCEDURE)
  369. symbol_vector = (PCRE2_SET_GLOB_SEPARATOR_8 = PROCEDURE)
  370. symbol_vector = (VMS_PCRE2_SET_RCRS_MEM_MNG_8 = PROCEDURE)
  371. symbol_vector = (PCRE2_SET_DEPTH_LIMIT_8 = PROCEDURE)
  372. symbol_vector = (PCRE2_SET_RECURSION_LIMIT_8 = PROCEDURE)
  373. symbol_vector = (PCRE2_SET_OFFSET_LIMIT_8 = PROCEDURE)
  374. symbol_vector = (PCRE2_SET_MATCH_LIMIT_8 = PROCEDURE)
  375. symbol_vector = (PCRE2_SET_HEAP_LIMIT_8 = PROCEDURE)
  376. symbol_vector = (PCRE2_SET_SUBSTITUTE_CALLOUT_8 = PROCEDURE)
  377. symbol_vector = (PCRE2_SET_CALLOUT_8 = PROCEDURE)
  378. symbol_vector = (VMS_PCRE2_SET_CMPL_RCRS_GRD_8 = PROCEDURE)
  379. symbol_vector = (VMS_PCRE2_SET_CMPL_EXT_OPT_8 = PROCEDURE)
  380. symbol_vector = (PCRE2_SET_PARENS_NEST_LIMIT_8 = PROCEDURE)
  381. symbol_vector = (PCRE2_SET_MAX_VARLOOKBEHIND_8 = PROCEDURE)
  382. symbol_vector = (PCRE2_SET_NEWLINE_8 = PROCEDURE)
  383. symbol_vector = (PCRE2_SET_MAX_PATTERN_LENGTH_8 = PROCEDURE)
  384. symbol_vector = (PCRE2_SET_BSR_8 = PROCEDURE)
  385. symbol_vector = (PCRE2_SET_CHARACTER_TABLES_8 = PROCEDURE)
  386. symbol_vector = (PCRE2_CONVERT_CONTEXT_FREE_8 = PROCEDURE)
  387. symbol_vector = (PCRE2_MATCH_CONTEXT_FREE_8 = PROCEDURE)
  388. symbol_vector = (PCRE2_COMPILE_CONTEXT_FREE_8 = PROCEDURE)
  389. symbol_vector = (PCRE2_GENERAL_CONTEXT_FREE_8 = PROCEDURE)
  390. symbol_vector = (PCRE2_CONVERT_CONTEXT_COPY_8 = PROCEDURE)
  391. symbol_vector = (PCRE2_MATCH_CONTEXT_COPY_8 = PROCEDURE)
  392. symbol_vector = (PCRE2_COMPILE_CONTEXT_COPY_8 = PROCEDURE)
  393. symbol_vector = (PCRE2_GENERAL_CONTEXT_COPY_8 = PROCEDURE)
  394. symbol_vector = (_PCRE2_MEMCTL_MALLOC_8 = PROCEDURE)
  395. symbol_vector = (PCRE2_CONVERT_CONTEXT_CREATE_8 = PROCEDURE)
  396. symbol_vector = (PCRE2_MATCH_CONTEXT_CREATE_8 = PROCEDURE)
  397. symbol_vector = (PCRE2_COMPILE_CONTEXT_CREATE_8 = PROCEDURE)
  398. symbol_vector = (PCRE2_GENERAL_CONTEXT_CREATE_8 = PROCEDURE)
  399. symbol_vector = (_PCRE2_AUTO_POSSESSIFY_8 = PROCEDURE)
  400. symbol_vector = (_PCRE2_CKD_SMUL = PROCEDURE)
  401. symbol_vector = (_PCRE2_FIND_BRACKET_8 = PROCEDURE)
  402. symbol_vector = (_PCRE2_IS_NEWLINE_8 = PROCEDURE)
  403. symbol_vector = (_PCRE2_WAS_NEWLINE_8 = PROCEDURE)
  404. symbol_vector = (_PCRE2_SCRIPT_RUN_8 = PROCEDURE)
  405. symbol_vector = (_PCRE2_STRCMP_8 = PROCEDURE)
  406. symbol_vector = (_PCRE2_STRCPY_C8_8 = PROCEDURE)
  407. symbol_vector = (_PCRE2_STRLEN_8 = PROCEDURE)
  408. symbol_vector = (_PCRE2_STRNCMP_C8_8 = PROCEDURE)
  409. symbol_vector = (_PCRE2_STRNCMP_8 = PROCEDURE)
  410. symbol_vector = (_PCRE2_STRCMP_C8_8 = PROCEDURE)
  411. symbol_vector = (_PCRE2_STUDY_8 = PROCEDURE)
  412. symbol_vector = (_PCRE2_VALID_UTF_8 = PROCEDURE)
  413. symbol_vector = (VMS_PCRE2_DEF_CMPL_CNTXT_8 = DATA)
  414. symbol_vector = (VMS_PCRE2_DEF_CNVRT_CNTXT_8 = DATA)
  415. symbol_vector = (_PCRE2_CALLOUT_END_DELIMS_8 = DATA)
  416. symbol_vector = (_PCRE2_CALLOUT_START_DELIMS_8 = DATA)
  417. symbol_vector = (_PCRE2_DEFAULT_MATCH_CONTEXT_8 = DATA)
  418. symbol_vector = (_PCRE2_DEFAULT_TABLES_8 = DATA)
  419. symbol_vector = (_PCRE2_HSPACE_LIST_8 = DATA)
  420. symbol_vector = (_PCRE2_OP_LENGTHS_8 = DATA)
  421. symbol_vector = (_PCRE2_UCD_CASELESS_SETS_8 = DATA)
  422. symbol_vector = (_PCRE2_UCD_RECORDS_8 = DATA)
  423. symbol_vector = (_PCRE2_UCD_STAGE1_8 = DATA)
  424. symbol_vector = (_PCRE2_UCD_STAGE2_8 = DATA)
  425. symbol_vector = (_PCRE2_VSPACE_LIST_8 = DATA)
  426. !
  427. ! ### PSECT list extracted from PCRE2.MAP;1
  428. !
  429. $ENDIF
  430. $!
  431. $!
  432. COPY SYS$INPUT [.SRC]CONFIG.H
  433. /* src/config.h.in. Generated from configure.ac by autoheader. */
  434. /* PCRE2 is written in Standard C, but there are a few non-standard things it
  435. can cope with, allowing it to run on SunOS4 and other "close to standard"
  436. systems.
  437. In environments that support the GNU autotools, config.h.in is converted into
  438. config.h by the "configure" script. In environments that use CMake,
  439. config-cmake.in is converted into config.h. If you are going to build PCRE2 "by
  440. hand" without using "configure" or CMake, you should copy the distributed
  441. config.h.generic to config.h, and edit the macro definitions to be the way you
  442. need them. You must then add -DHAVE_CONFIG_H to all of your compile commands,
  443. so that config.h is included at the start of every source.
  444. Alternatively, you can avoid editing by using -D on the compiler command line
  445. to set the macro values. In this case, you do not have to set -DHAVE_CONFIG_H,
  446. but if you do, default values will be taken from config.h for non-boolean
  447. macros that are not defined on the command line.
  448. Boolean macros such as HAVE_STDLIB_H and SUPPORT_PCRE2_8 should either be
  449. defined (conventionally to 1) for TRUE, and not defined at all for FALSE. All
  450. such macros are listed as a commented #undef in config.h.generic. Macros such
  451. as MATCH_LIMIT, whose actual value is relevant, have defaults defined, but are
  452. surrounded by #ifndef/#endif lines so that the value can be overridden by -D.
  453. PCRE2 uses memmove() if HAVE_MEMMOVE is defined; otherwise it uses bcopy() if
  454. HAVE_BCOPY is defined. If your system has neither bcopy() nor memmove(), make
  455. sure both macros are undefined; an emulation function will then be used. */
  456. /* By default, the \R escape sequence matches any Unicode line ending
  457. character or sequence of characters. If BSR_ANYCRLF is defined (to any
  458. value), this is changed so that backslash-R matches only CR, LF, or CRLF.
  459. The build-time default can be overridden by the user of PCRE2 at runtime.
  460. */
  461. #undef BSR_ANYCRLF
  462. /* Define to any value to disable the use of the z and t modifiers in
  463. formatting settings such as %zu or %td (this is rarely needed). */
  464. #undef DISABLE_PERCENT_ZT
  465. /* If you are compiling for a system that uses EBCDIC instead of ASCII
  466. character codes, define this macro to any value. When EBCDIC is set, PCRE2
  467. assumes that all input strings are in EBCDIC. If you do not define this
  468. macro, PCRE2 will assume input strings are ASCII or UTF-8/16/32 Unicode. It
  469. is not possible to build a version of PCRE2 that supports both EBCDIC and
  470. UTF-8/16/32. */
  471. #undef EBCDIC
  472. /* In an EBCDIC environment, define this macro to any value to arrange for the
  473. NL character to be 0x25 instead of the default 0x15. NL plays the role that
  474. LF does in an ASCII/Unicode environment. */
  475. #undef EBCDIC_NL25
  476. /* Define this if your compiler supports __attribute__((uninitialized)) */
  477. #undef HAVE_ATTRIBUTE_UNINITIALIZED
  478. /* Define to 1 if you have the 'bcopy' function. */
  479. #define HAVE_BCOPY 1
  480. /* Define this if your compiler provides __builtin_mul_overflow() */
  481. #undef HAVE_BUILTIN_MUL_OVERFLOW
  482. /* Define to 1 if you have the <dirent.h> header file. */
  483. #define HAVE_DIRENT_H 1
  484. /* Define to 1 if you have the <dlfcn.h> header file. */
  485. #define HAVE_DLFCN_H 1
  486. /* Define to 1 if you have the <editline/readline.h> header file. */
  487. #undef HAVE_EDITLINE_READLINE_H
  488. /* Define to 1 if you have the <edit/readline/readline.h> header file. */
  489. #undef HAVE_EDIT_READLINE_READLINE_H
  490. /* Define to 1 if you have the <inttypes.h> header file. */
  491. #define HAVE_INTTYPES_H 1
  492. /* Define to 1 if you have the <limits.h> header file. */
  493. #define HAVE_LIMITS_H 1
  494. /* Define to 1 if you have the 'memfd_create' function. */
  495. #undef HAVE_MEMFD_CREATE
  496. /* Define to 1 if you have the 'memmove' function. */
  497. #define HAVE_MEMMOVE 1
  498. /* Define to 1 if you have the <minix/config.h> header file. */
  499. #undef HAVE_MINIX_CONFIG_H
  500. /* Define to 1 if you have the 'mkostemp' function. */
  501. #undef HAVE_MKOSTEMP
  502. /* Define if you have POSIX threads libraries and header files. */
  503. #define HAVE_PTHREAD 1
  504. /* Have PTHREAD_PRIO_INHERIT. */
  505. #undef HAVE_PTHREAD_PRIO_INHERIT
  506. /* Define to 1 if you have the <readline.h> header file. */
  507. #undef HAVE_READLINE_H
  508. /* Define to 1 if you have the <readline/history.h> header file. */
  509. #undef HAVE_READLINE_HISTORY_H
  510. /* Define to 1 if you have the <readline/readline.h> header file. */
  511. #undef HAVE_READLINE_READLINE_H
  512. /* Define to 1 if you have the `realpath' function. */
  513. #define HAVE_REALPATH 1
  514. /* Define to 1 if you have the 'secure_getenv' function. */
  515. #undef HAVE_SECURE_GETENV
  516. /* Define to 1 if you have the <stdint.h> header file. */
  517. #define HAVE_STDINT_H 1
  518. /* Define to 1 if you have the <stdio.h> header file. */
  519. #define HAVE_STDIO_H 1
  520. /* Define to 1 if you have the <stdlib.h> header file. */
  521. #define HAVE_STDLIB_H 1
  522. /* Define to 1 if you have the 'strerror' function. */
  523. #define HAVE_STRERROR 1
  524. /* Define to 1 if you have the <strings.h> header file. */
  525. #define HAVE_STRINGS_H 1
  526. /* Define to 1 if you have the <string.h> header file. */
  527. #define HAVE_STRING_H 1
  528. /* Define to 1 if you have the <sys/stat.h> header file. */
  529. #define HAVE_SYS_STAT_H 1
  530. /* Define to 1 if you have the <sys/types.h> header file. */
  531. #define HAVE_SYS_TYPES_H 1
  532. /* Define to 1 if you have the <sys/wait.h> header file. */
  533. #define HAVE_SYS_WAIT_H 1
  534. /* Define to 1 if you have the <unistd.h> header file. */
  535. #define HAVE_UNISTD_H 1
  536. /* Define to 1 if the compiler supports simple visibility declarations. */
  537. #undef HAVE_VISIBILITY
  538. /* Define to 1 if you have the <wchar.h> header file. */
  539. #define HAVE_WCHAR_H 1
  540. /* Define to 1 if you have the <windows.h> header file. */
  541. #undef HAVE_WINDOWS_H
  542. /* Define to 1 if you have the <zlib.h> header file. */
  543. /* This limits the amount of memory that may be used while matching a pattern.
  544. It applies to both pcre2_match() and pcre2_dfa_match(). It does not apply
  545. to JIT matching. The value is in kibibytes (units of 1024 bytes). */
  546. #undef HEAP_LIMIT
  547. /* The value of LINK_SIZE determines the number of bytes used to store links
  548. as offsets within the compiled regex. The default is 2, which allows for
  549. compiled patterns up to 65535 code units long. This covers the vast
  550. majority of cases. However, PCRE2 can also be compiled to use 3 or 4 bytes
  551. instead. This allows for longer patterns in extreme cases. */
  552. #undef LINK_SIZE
  553. /* Define to the sub-directory where libtool stores uninstalled libraries. */
  554. #undef LT_OBJDIR
  555. /* The value of MATCH_LIMIT determines the default number of times the
  556. pcre2_match() function can record a backtrack position during a single
  557. matching attempt. The value is also used to limit a loop counter in
  558. pcre2_dfa_match(). There is a runtime interface for setting a different
  559. limit. The limit exists in order to catch runaway regular expressions that
  560. take forever to determine that they do not match. The default is set very
  561. large so that it does not accidentally catch legitimate cases. */
  562. #undef MATCH_LIMIT
  563. /* The above limit applies to all backtracks, whether or not they are nested.
  564. In some environments it is desirable to limit the nesting of backtracking
  565. (that is, the depth of tree that is searched) more strictly, in order to
  566. restrict the maximum amount of heap memory that is used. The value of
  567. MATCH_LIMIT_DEPTH provides this facility. To have any useful effect, it
  568. must be less than the value of MATCH_LIMIT. The default is to use the same
  569. value as MATCH_LIMIT. There is a runtime method for setting a different
  570. limit. In the case of pcre2_dfa_match(), this limit controls the depth of
  571. the internal nested function calls that are used for pattern recursions,
  572. lookarounds, and atomic groups. */
  573. #undef MATCH_LIMIT_DEPTH
  574. /* This limit is parameterized just in case anybody ever wants to change it.
  575. Care must be taken if it is increased, because it guards against integer
  576. overflow caused by enormously large patterns. */
  577. #undef MAX_NAME_COUNT
  578. /* This limit is parameterized just in case anybody ever wants to change it.
  579. Care must be taken if it is increased, because it guards against integer
  580. overflow caused by enormously large patterns. */
  581. #undef MAX_NAME_SIZE
  582. /* The value of MAX_VARLOOKBEHIND specifies the default maximum length, in
  583. characters, for a variable-length lookbehind assertion. */
  584. #undef MAX_VARLOOKBEHIND
  585. /* Defining NEVER_BACKSLASH_C locks out the use of \C in all patterns. */
  586. #undef NEVER_BACKSLASH_C
  587. /* The value of NEWLINE_DEFAULT determines the default newline character
  588. sequence. PCRE2 client programs can override this by selecting other values
  589. at run time. The valid values are 1 (CR), 2 (LF), 3 (CRLF), 4 (ANY), 5
  590. (ANYCRLF), and 6 (NUL). */
  591. #undef NEWLINE_DEFAULT
  592. /* Name of package */
  593. #define PACKAGE "pcre2"
  594. /* Define to the address where bug reports for this package should be sent. */
  595. #define PACKAGE_BUGREPORT ""
  596. /* Define to the full name of this package. */
  597. #define PACKAGE_NAME "PCRE2"
  598. /* Define to the full name and version of this package. */
  599. #define PACKAGE_STRING "PCRE2 10.43 VMS"
  600. /* Define to the one symbol short name of this package. */
  601. #define PACKAGE_TARNAME "pcre2"
  602. /* Define to the home page for this package. */
  603. #define PACKAGE_URL ""
  604. /* Define to the version of this package. */
  605. #define PACKAGE_VERSION "10.43"
  606. /* The value of PARENS_NEST_LIMIT specifies the maximum depth of nested
  607. parentheses (of any kind) in a pattern. This limits the amount of system
  608. stack that is used while compiling a pattern. */
  609. #undef PARENS_NEST_LIMIT
  610. /* The value of PCRE2GREP_BUFSIZE is the starting size of the buffer used by
  611. pcre2grep to hold parts of the file it is searching. The buffer will be
  612. expanded up to PCRE2GREP_MAX_BUFSIZE if necessary, for files containing
  613. very long lines. The actual amount of memory used by pcre2grep is three
  614. times this number, because it allows for the buffering of "before" and
  615. "after" lines. */
  616. #define PCRE2GREP_BUFSIZE 20480
  617. /* The value of PCRE2GREP_MAX_BUFSIZE specifies the maximum size of the buffer
  618. used by pcre2grep to hold parts of the file it is searching. The actual
  619. amount of memory used by pcre2grep is three times this number, because it
  620. allows for the buffering of "before" and "after" lines. */
  621. #define PCRE2GREP_MAX_BUFSIZE 1048576
  622. /* Define to any value to include debugging code. */
  623. #undef PCRE2_DEBUG
  624. /* to make a symbol visible */
  625. #undef PCRE2_EXPORT
  626. /* If you are compiling for a system other than a Unix-like system or
  627. Win32, and it needs some magic to be inserted before the definition
  628. of a function that is exported by the library, define this macro to
  629. contain the relevant magic. If you do not define this macro, a suitable
  630. __declspec value is used for Windows systems; in other environments
  631. a compiler relevant "extern" is used with any "visibility" related
  632. attributes from PCRE2_EXPORT included.
  633. This macro apears at the start of every exported function that is part
  634. of the external API. It does not appear on functions that are "external"
  635. in the C sense, but which are internal to the library. */
  636. #undef PCRE2_EXP_DEFN
  637. /* Define to any value if linking statically (TODO: make nice with Libtool) */
  638. #undef PCRE2_STATIC
  639. /* Define to necessary symbol if this constant uses a non-standard name on
  640. your system. */
  641. #undef PTHREAD_CREATE_JOINABLE
  642. /* Define to any non-zero number to enable support for SELinux compatible
  643. executable memory allocator in JIT. Note that this will have no effect
  644. unless SUPPORT_JIT is also defined. */
  645. #undef SLJIT_PROT_EXECUTABLE_ALLOCATOR
  646. /* Define to 1 if all of the C89 standard headers exist (not just the ones
  647. required in a freestanding environment). This macro is provided for
  648. backward compatibility; new code need not use it. */
  649. #define STDC_HEADERS 1
  650. /* Define to any value to enable differential fuzzing support. */
  651. #undef SUPPORT_DIFF_FUZZ
  652. /* Define to any value to enable support for Just-In-Time compiling. */
  653. #undef SUPPORT_JIT
  654. /* Define to any value to allow pcre2grep to be linked with libbz2, so that it
  655. is able to handle .bz2 files. */
  656. /* Define to any value to allow pcre2test to be linked with libedit. */
  657. #undef SUPPORT_LIBEDIT
  658. /* Define to any value to allow pcre2test to be linked with libreadline. */
  659. #undef SUPPORT_LIBREADLINE
  660. /* Define to any value to allow pcre2grep to be linked with libz, so that it
  661. is able to handle .gz files. */
  662. /* Define to any value to enable callout script support in pcre2grep. */
  663. #undef SUPPORT_PCRE2GREP_CALLOUT
  664. /* Define to any value to enable fork support in pcre2grep callout scripts.
  665. This will have no effect unless SUPPORT_PCRE2GREP_CALLOUT is also defined.
  666. */
  667. #undef SUPPORT_PCRE2GREP_CALLOUT_FORK
  668. /* Define to any value to enable JIT support in pcre2grep. Note that this will
  669. have no effect unless SUPPORT_JIT is also defined. */
  670. #undef SUPPORT_PCRE2GREP_JIT
  671. /* Define to any value to enable the 16 bit PCRE2 library. */
  672. #undef SUPPORT_PCRE2_16
  673. /* Define to any value to enable the 32 bit PCRE2 library. */
  674. #undef SUPPORT_PCRE2_32
  675. /* Define to any value to enable the 8 bit PCRE2 library. */
  676. #define SUPPORT_PCRE2_8 1
  677. /* Define to any value to enable support for Unicode and UTF encoding. This
  678. will work even in an EBCDIC environment, but it is incompatible with the
  679. EBCDIC macro. That is, PCRE2 can support *either* EBCDIC code *or*
  680. ASCII/Unicode, but not both at once. */
  681. #undef SUPPORT_UNICODE
  682. /* Define to any value for valgrind support to find invalid memory reads. */
  683. #undef SUPPORT_VALGRIND
  684. /* Enable extensions on AIX, Interix, z/OS. */
  685. #ifndef _ALL_SOURCE
  686. # undef _ALL_SOURCE
  687. #endif
  688. /* Enable general extensions on macOS. */
  689. #ifndef _DARWIN_C_SOURCE
  690. # undef _DARWIN_C_SOURCE
  691. #endif
  692. /* Enable general extensions on Solaris. */
  693. #ifndef __EXTENSIONS__
  694. # undef __EXTENSIONS__
  695. #endif
  696. /* Enable GNU extensions on systems that have them. */
  697. #ifndef _GNU_SOURCE
  698. # undef _GNU_SOURCE
  699. #endif
  700. /* Enable X/Open compliant socket functions that do not require linking
  701. with -lxnet on HP-UX 11.11. */
  702. #ifndef _HPUX_ALT_XOPEN_SOCKET_API
  703. # undef _HPUX_ALT_XOPEN_SOCKET_API
  704. #endif
  705. /* Identify the host operating system as Minix.
  706. This macro does not affect the system headers' behavior.
  707. A future release of Autoconf may stop defining this macro. */
  708. #ifndef _MINIX
  709. # undef _MINIX
  710. #endif
  711. /* Enable general extensions on NetBSD.
  712. Enable NetBSD compatibility extensions on Minix. */
  713. #ifndef _NETBSD_SOURCE
  714. # undef _NETBSD_SOURCE
  715. #endif
  716. /* Enable OpenBSD compatibility extensions on NetBSD.
  717. Oddly enough, this does nothing on OpenBSD. */
  718. #ifndef _OPENBSD_SOURCE
  719. # undef _OPENBSD_SOURCE
  720. #endif
  721. /* Define to 1 if needed for POSIX-compatible behavior. */
  722. #ifndef _POSIX_SOURCE
  723. # undef _POSIX_SOURCE
  724. #endif
  725. /* Define to 2 if needed for POSIX-compatible behavior. */
  726. #ifndef _POSIX_1_SOURCE
  727. # undef _POSIX_1_SOURCE
  728. #endif
  729. /* Enable POSIX-compatible threading on Solaris. */
  730. #ifndef _POSIX_PTHREAD_SEMANTICS
  731. # undef _POSIX_PTHREAD_SEMANTICS
  732. #endif
  733. /* Enable extensions specified by ISO/IEC TS 18661-5:2014. */
  734. #ifndef __STDC_WANT_IEC_60559_ATTRIBS_EXT__
  735. # undef __STDC_WANT_IEC_60559_ATTRIBS_EXT__
  736. #endif
  737. /* Enable extensions specified by ISO/IEC TS 18661-1:2014. */
  738. #ifndef __STDC_WANT_IEC_60559_BFP_EXT__
  739. # undef __STDC_WANT_IEC_60559_BFP_EXT__
  740. #endif
  741. /* Enable extensions specified by ISO/IEC TS 18661-2:2015. */
  742. #ifndef __STDC_WANT_IEC_60559_DFP_EXT__
  743. # undef __STDC_WANT_IEC_60559_DFP_EXT__
  744. #endif
  745. /* Enable extensions specified by C23 Annex F. */
  746. #ifndef __STDC_WANT_IEC_60559_EXT__
  747. # undef __STDC_WANT_IEC_60559_EXT__
  748. #endif
  749. /* Enable extensions specified by ISO/IEC TS 18661-4:2015. */
  750. #ifndef __STDC_WANT_IEC_60559_FUNCS_EXT__
  751. # undef __STDC_WANT_IEC_60559_FUNCS_EXT__
  752. #endif
  753. /* Enable extensions specified by C23 Annex H and ISO/IEC TS 18661-3:2015. */
  754. #ifndef __STDC_WANT_IEC_60559_TYPES_EXT__
  755. # undef __STDC_WANT_IEC_60559_TYPES_EXT__
  756. #endif
  757. /* Enable extensions specified by ISO/IEC TR 24731-2:2010. */
  758. #ifndef __STDC_WANT_LIB_EXT2__
  759. # undef __STDC_WANT_LIB_EXT2__
  760. #endif
  761. /* Enable extensions specified by ISO/IEC 24747:2009. */
  762. #ifndef __STDC_WANT_MATH_SPEC_FUNCS__
  763. # undef __STDC_WANT_MATH_SPEC_FUNCS__
  764. #endif
  765. /* Enable extensions on HP NonStop. */
  766. #ifndef _TANDEM_SOURCE
  767. # undef _TANDEM_SOURCE
  768. #endif
  769. /* Enable X/Open extensions. Define to 500 only if necessary
  770. to make mbstate_t available. */
  771. #ifndef _XOPEN_SOURCE
  772. # undef _XOPEN_SOURCE
  773. #endif
  774. /* Version number of package */
  775. #undef VERSION
  776. /* Number of bits in a file offset, on hosts where this is settable. */
  777. #undef _FILE_OFFSET_BITS
  778. /* Define to 1 on platforms where this makes off_t a 64-bit type. */
  779. #undef _LARGE_FILES
  780. /* Number of bits in time_t, on hosts where this is settable. */
  781. #undef _TIME_BITS
  782. /* Define to 1 on platforms where this makes time_t a 64-bit type. */
  783. #undef __MINGW_USE_VC2005_COMPAT
  784. /* Define to empty if 'const' does not conform to ANSI C. */
  785. #undef const
  786. /* Define to the type of a signed integer type of width exactly 64 bits if
  787. such a type exists and the standard includes do not define it. */
  788. #undef int64_t
  789. /* Define as 'unsigned int' if <stddef.h> doesn't define. */
  790. #undef size_t
  791. // VMS
  792. #include <stdint.h>
  793. #define PCRE2_EXPORT
  794. #define LINK_SIZE 2
  795. #define MAX_NAME_COUNT 10000
  796. #define MAX_NAME_SIZE 32
  797. #define MATCH_LIMIT 10000000
  798. #define HEAP_LIMIT 20000000
  799. #define NEWLINE_DEFAULT 2
  800. #define PARENS_NEST_LIMIT 250
  801. #define MATCH_LIMIT_DEPTH MATCH_LIMIT
  802. #define MAX_VARLOOKBEHIND 255
  803. /*
  804. #define _pcre2_default_compile_context_ vms_pcre2_def_cmpl_cntxt_
  805. #define _pcre2_default_convert_context_ vms_pcre2_def_cnvrt_cntxt_
  806. #define pcre2_set_compile_extra_options_8 vms_pcre2_set_cmpl_ext_opt_8
  807. #define pcre2_set_compile_recursion_guard_8 vms_pcre2_set_cmpl_rcrs_grd_8
  808. #define pcre2_set_recursion_memory_management_8 vms_pcre2_set_rcrs_mem_mng_8
  809. #define pcre2_match_data_create_from_pattern_8 vms_pcre2_m_d_crt_fr_patt_8
  810. #define pcre2_get_match_data_heapframes_size_8 vms_pcre2_get_m_d_hpfram_s_8
  811. #define pcre2_serialize_get_number_of_codes_8 vms_pcre2_ser_get_n_of_cod_8
  812. #define pcre2_substring_nametable_scan_8 vms_pcre2_substr_nmtab_scan_8
  813. #define pcre2_substring_length_bynumber_8 vms_pcre2_substr_len_bynum_8
  814. #define pcre2_substring_number_from_name_8 vms_pcre2_substr_num_f_nam_8
  815. */
  816. #define HAVE_BZLIB_H 1
  817. #define SUPPORT_LIBBZ2 1
  818. #define HAVE_ZLIB_H 1
  819. #define SUPPORT_LIBZ 1
  820. $!
  821. $!
  822. $WRITE SYS$OUTPUT "config.h created"
  823. $!
  824. $!Creating Descrip.mms in each directory needed
  825. $!
  826. $!
  827. $COPY SYS$INPUT [.SRC]DESCRIP.MMS
  828. # (c) Alexey Chupahin 09-APR-2024
  829. # OpenVMS 7.3-2, DEC 2000 mod.300
  830. # OpenVMS 8.3, Digital PW 600au
  831. # OpenVMS 8.4, Compaq DS10L
  832. # OpenVMS 8.3, HP rx1620
  833. .FIRST
  834. DEF PCRE2 []
  835. CC=cc
  836. CFLAGS = /INCLUDE=([],[-],[-.VMS],ZLIB,BZ2LIB) \
  837. /DEFINE=(HAVE_CONFIG_H,PCRE2_CODE_UNIT_WIDTH=8)\
  838. /OPTIMIZE=(INLINE=SPEED) \
  839. /DEB
  840. OBJ=\
  841. PCRE2POSIX.OBJ,\
  842. PCRE2_AUTO_POSSESS.OBJ,\
  843. PCRE2_CHKDINT.OBJ,\
  844. PCRE2_CHARTABLES.OBJ,\
  845. PCRE2_COMPILE.OBJ,\
  846. PCRE2_CONFIG.OBJ,\
  847. PCRE2_CONTEXT.OBJ,\
  848. PCRE2_CONVERT.OBJ,\
  849. PCRE2_DFA_MATCH.OBJ,\
  850. PCRE2_ERROR.OBJ,\
  851. PCRE2_EXTUNI.OBJ,\
  852. PCRE2_FIND_BRACKET.OBJ,\
  853. PCRE2_JIT_COMPILE.OBJ,\
  854. PCRE2_MAKETABLES.OBJ,\
  855. PCRE2_MATCH.OBJ,\
  856. PCRE2_MATCH_DATA.OBJ,\
  857. PCRE2_NEWLINE.OBJ,\
  858. PCRE2_ORD2UTF.OBJ,\
  859. PCRE2_PATTERN_INFO.OBJ,\
  860. PCRE2_SCRIPT_RUN.OBJ,\
  861. PCRE2_SERIALIZE.OBJ,\
  862. PCRE2_STRING_UTILS.OBJ,\
  863. PCRE2_STUDY.OBJ,\
  864. PCRE2_SUBSTITUTE.OBJ,\
  865. PCRE2_SUBSTRING.OBJ,\
  866. PCRE2_TABLES.OBJ,\
  867. PCRE2_UCD.OBJ,\
  868. PCRE2_VALID_UTF.OBJ,\
  869. PCRE2_XCLASS.OBJ
  870. ALL : PCRE2.H PCRE2.OLB PCRE2$SHR.EXE PCRE2DEMO.EXE PCRE2GREP.EXE
  871. $!
  872. PCRE2$SHR.EXE : PCRE2.OLB
  873. LINK/SHARE=PCRE2$SHR.EXE PCRE2:PCRE2.OLB/LIB,PCRE2:PCRE2$DEF.OPT/OPT
  874. PCRE2.OLB : $(OBJ)
  875. LIB/CREA PCRE2.OLB $(OBJ)
  876. PCRE2DEMO.EXE : PCRE2DEMO.OBJ
  877. LINK/EXE=PCRE2DEMO PCRE2DEMO,PCRE2:PCRE2.OPT/OPT
  878. PCRE2GREP.EXE : PCRE2GREP.OBJ
  879. LINK/EXE=PCRE2GREP PCRE2GREP,PCRE2:PCRE2.OPT/OPT,ZLIB:ZLIB.OPT/OPT,BZ2LIB:BZIP2.OPT/OPT
  880. PCRE2.H : PCRE2.H_GENERIC
  881. WRITE SYS$OUTPUT "Patching PCRE2.H"
  882. COPY/CONCAT [-.VMS]PCRE2.H_PATCH,[]PCRE2.H_GENERIC PCRE2.H
  883. PCRE2_CHARTABLES.OBJ : PCRE2_CHARTABLES.C
  884. $(CC) $(CFLAGS) $(MMS$SOURCE) /OBJ=$(MMS$TARGET)
  885. PCRE2_CHARTABLES.C : PCRE2_CHARTABLES.C_DIST
  886. COPY PCRE2_CHARTABLES.C_DIST PCRE2_CHARTABLES.C
  887. PCRE2DEMO.OBJ : PCRE2DEMO.C
  888. $(CC) $(CFLAGS) $(MMS$SOURCE) /OBJ=$(MMS$TARGET)
  889. PCRE2GREP.OBJ : PCRE2GREP.C
  890. $(CC) $(CFLAGS) /WARN=DIS=ALL $(MMS$SOURCE) /OBJ=$(MMS$TARGET)
  891. PCRE2POSIX.OBJ : PCRE2POSIX.C
  892. $(CC) $(CFLAGS) $(MMS$SOURCE) /OBJ=$(MMS$TARGET)
  893. PCRE2POSIX_TEST.OBJ : PCRE2POSIX_TEST.C
  894. $(CC) $(CFLAGS) $(MMS$SOURCE) /OBJ=$(MMS$TARGET)
  895. PCRE2TEST.OBJ : PCRE2TEST.C
  896. $(CC) $(CFLAGS) $(MMS$SOURCE) /OBJ=$(MMS$TARGET)
  897. PCRE2_AUTO_POSSESS.OBJ : PCRE2_AUTO_POSSESS.C
  898. $(CC) $(CFLAGS) $(MMS$SOURCE) /OBJ=$(MMS$TARGET)
  899. PCRE2_CHKDINT.OBJ : PCRE2_CHKDINT.C
  900. $(CC) $(CFLAGS) $(MMS$SOURCE) /OBJ=$(MMS$TARGET)
  901. PCRE2_COMPILE.OBJ : PCRE2_COMPILE.C
  902. $(CC) $(CFLAGS) $(MMS$SOURCE) /OBJ=$(MMS$TARGET)
  903. PCRE2_CONFIG.OBJ : PCRE2_CONFIG.C
  904. $(CC) $(CFLAGS) $(MMS$SOURCE) /OBJ=$(MMS$TARGET)
  905. PCRE2_CONTEXT.OBJ : PCRE2_CONTEXT.C
  906. $(CC) $(CFLAGS) $(MMS$SOURCE) /OBJ=$(MMS$TARGET)
  907. PCRE2_CONVERT.OBJ : PCRE2_CONVERT.C
  908. $(CC) $(CFLAGS) $(MMS$SOURCE) /OBJ=$(MMS$TARGET)
  909. PCRE2_DFA_MATCH.OBJ : PCRE2_DFA_MATCH.C
  910. $(CC) $(CFLAGS) $(MMS$SOURCE) /OBJ=$(MMS$TARGET)
  911. PCRE2_DFTABLES.OBJ : PCRE2_DFTABLES.C
  912. $(CC) $(CFLAGS) $(MMS$SOURCE) /OBJ=$(MMS$TARGET)
  913. PCRE2_ERROR.OBJ : PCRE2_ERROR.C
  914. $(CC) $(CFLAGS) $(MMS$SOURCE) /OBJ=$(MMS$TARGET)
  915. PCRE2_EXTUNI.OBJ : PCRE2_EXTUNI.C
  916. $(CC) $(CFLAGS) $(MMS$SOURCE) /OBJ=$(MMS$TARGET)
  917. PCRE2_FIND_BRACKET.OBJ : PCRE2_FIND_BRACKET.C
  918. $(CC) $(CFLAGS) $(MMS$SOURCE) /OBJ=$(MMS$TARGET)
  919. PCRE2_FUZZSUPPORT.OBJ : PCRE2_FUZZSUPPORT.C
  920. $(CC) $(CFLAGS) $(MMS$SOURCE) /OBJ=$(MMS$TARGET)
  921. PCRE2_JIT_COMPILE.OBJ : PCRE2_JIT_COMPILE.C
  922. $(CC) $(CFLAGS) $(MMS$SOURCE) /OBJ=$(MMS$TARGET)
  923. PCRE2_JIT_MATCH.OBJ : PCRE2_JIT_MATCH.C
  924. $(CC) $(CFLAGS) $(MMS$SOURCE) /OBJ=$(MMS$TARGET)
  925. PCRE2_JIT_MISC.OBJ : PCRE2_JIT_MISC.C
  926. $(CC) $(CFLAGS) $(MMS$SOURCE) /OBJ=$(MMS$TARGET)
  927. PCRE2_JIT_TEST.OBJ : PCRE2_JIT_TEST.C
  928. $(CC) $(CFLAGS) $(MMS$SOURCE) /OBJ=$(MMS$TARGET)
  929. PCRE2_MAKETABLES.OBJ : PCRE2_MAKETABLES.C
  930. $(CC) $(CFLAGS) $(MMS$SOURCE) /OBJ=$(MMS$TARGET)
  931. PCRE2_MATCH.OBJ : PCRE2_MATCH.C
  932. $(CC) $(CFLAGS) $(MMS$SOURCE) /OBJ=$(MMS$TARGET)
  933. PCRE2_MATCH_DATA.OBJ : PCRE2_MATCH_DATA.C
  934. $(CC) $(CFLAGS) $(MMS$SOURCE) /OBJ=$(MMS$TARGET)
  935. PCRE2_NEWLINE.OBJ : PCRE2_NEWLINE.C
  936. $(CC) $(CFLAGS) $(MMS$SOURCE) /OBJ=$(MMS$TARGET)
  937. PCRE2_ORD2UTF.OBJ : PCRE2_ORD2UTF.C
  938. $(CC) $(CFLAGS) $(MMS$SOURCE) /OBJ=$(MMS$TARGET)
  939. PCRE2_PATTERN_INFO.OBJ : PCRE2_PATTERN_INFO.C
  940. $(CC) $(CFLAGS) $(MMS$SOURCE) /OBJ=$(MMS$TARGET)
  941. PCRE2_PRINTINT.OBJ : PCRE2_PRINTINT.C
  942. $(CC) $(CFLAGS) $(MMS$SOURCE) /OBJ=$(MMS$TARGET)
  943. PCRE2_SCRIPT_RUN.OBJ : PCRE2_SCRIPT_RUN.C
  944. $(CC) $(CFLAGS) $(MMS$SOURCE) /OBJ=$(MMS$TARGET)
  945. PCRE2_SERIALIZE.OBJ : PCRE2_SERIALIZE.C
  946. $(CC) $(CFLAGS) $(MMS$SOURCE) /OBJ=$(MMS$TARGET)
  947. PCRE2_STRING_UTILS.OBJ : PCRE2_STRING_UTILS.C
  948. $(CC) $(CFLAGS) $(MMS$SOURCE) /OBJ=$(MMS$TARGET)
  949. PCRE2_STUDY.OBJ : PCRE2_STUDY.C
  950. $(CC) $(CFLAGS) $(MMS$SOURCE) /OBJ=$(MMS$TARGET)
  951. PCRE2_SUBSTITUTE.OBJ : PCRE2_SUBSTITUTE.C
  952. $(CC) $(CFLAGS) $(MMS$SOURCE) /OBJ=$(MMS$TARGET)
  953. PCRE2_SUBSTRING.OBJ : PCRE2_SUBSTRING.C
  954. $(CC) $(CFLAGS) $(MMS$SOURCE) /OBJ=$(MMS$TARGET)
  955. PCRE2_TABLES.OBJ : PCRE2_TABLES.C
  956. $(CC) $(CFLAGS) $(MMS$SOURCE) /OBJ=$(MMS$TARGET)
  957. PCRE2_UCD.OBJ : PCRE2_UCD.C
  958. $(CC) $(CFLAGS) $(MMS$SOURCE) /OBJ=$(MMS$TARGET)
  959. PCRE2_UCPTABLES.OBJ : PCRE2_UCPTABLES.C
  960. $(CC) $(CFLAGS) $(MMS$SOURCE) /OBJ=$(MMS$TARGET)
  961. PCRE2_VALID_UTF.OBJ : PCRE2_VALID_UTF.C
  962. $(CC) $(CFLAGS) $(MMS$SOURCE) /OBJ=$(MMS$TARGET)
  963. PCRE2_XCLASS.OBJ : PCRE2_XCLASS.C
  964. $(CC) $(CFLAGS) $(MMS$SOURCE) /OBJ=$(MMS$TARGET)
  965. $!
  966. $!
  967. $WRITE SYS$OUTPUT "DESCRIP.MMS's have been created"
  968. $WRITE SYS$OUTPUT " "
  969. $WRITE SYS$OUTPUT " "
  970. $WRITE SYS$OUTPUT "Now you can type @BUILD "
  971. $!
  972. $EXIT:
  973. $DEFINE SYS$ERROR _NLA0:
  974. $DEFINE SYS$OUTPUT _NLA0:
  975. $DEL TEST.C;*
  976. $DEL TEST.OBJ;*
  977. $DEL TEST.EXE;*
  978. $DEL TEST.OPT;*
  979. $DEAS SYS$ERROR
  980. $DEAS SYS$OUTPUT