maketests.com 26 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788899091929394959697989910010110210310410510610710810911011111211311411511611711811912012112212312412512612712812913013113213313413513613713813914014114214314414514614714814915015115215315415515615715815916016116216316416516616716816917017117217317417517617717817918018118218318418518618718818919019119219319419519619719819920020120220320420520620720820921021121221321421521621721821922022122222322422522622722822923023123223323423523623723823924024124224324424524624724824925025125225325425525625725825926026126226326426526626726826927027127227327427527627727827928028128228328428528628728828929029129229329429529629729829930030130230330430530630730830931031131231331431531631731831932032132232332432532632732832933033133233333433533633733833934034134234334434534634734834935035135235335435535635735835936036136236336436536636736836937037137237337437537637737837938038138238338438538638738838939039139239339439539639739839940040140240340440540640740840941041141241341441541641741841942042142242342442542642742842943043143243343443543643743843944044144244344444544644744844945045145245345445545645745845946046146246346446546646746846947047147247347447547647747847948048148248348448548648748848949049149249349449549649749849950050150250350450550650750850951051151251351451551651751851952052152252352452552652752852953053153253353453553653753853954054154254354454554654754854955055155255355455555655755855956056156256356456556656756856957057157257357457557657757857958058158258358458558658758858959059159259359459559659759859960060160260360460560660760860961061161261361461561661761861962062162262362462562662762862963063163263363463563663763863964064164264364464564664764864965065165265365465565665765865966066166266366466566666766866967067167267367467567667767867968068168268368468568668768868969069169269369469569669769869970070170270370470570670770870971071171271371471571671771871972072172272372472572672772872973073173273373473573673773873974074174274374474574674774874975075175275375475575675775875976076176276376476576676776876977077177277377477577677777877978078178278378478578678778878979079179279379479579679779879980080180280380480580680780880981081181281381481581681781881982082182282382482582682782882983083183283383483583683783883984084184284384484584684784884985085185285385485585685785885986086186286386486586686786886987087187287387487587687787887988088188288388488588688788888989089189289389489589689789889990090190290390490590690790890991091191291391491591691791891992092192292392492592692792892993093193293393493593693793893994094194294394494594694794894995095195295395495595695795895996096196296396496596696796896997097197297397497597697797897998098198298398498598698798898999099199299399499599699799899910001001100210031004100510061007100810091010101110121013101410151016101710181019102010211022102310241025102610271028102910301031103210331034103510361037103810391040104110421043104410451046104710481049105010511052105310541055105610571058105910601061106210631064106510661067106810691070107110721073107410751076107710781079108010811082108310841085108610871088108910901091109210931094109510961097109810991100110111021103110411051106110711081109111011111112111311141115
  1. $!
  2. $! MAKETESTS.COM
  3. $! Written By: Robert Byer
  4. $! Vice-President
  5. $! A-Com Computing, Inc.
  6. $! byer@mail.all-net.net
  7. $!
  8. $! Changes by Richard Levitte <richard@levitte.org>
  9. $! Zoltan Arpadffy <arpadffy@polarhome.com>
  10. $!
  11. $! This command files compiles and creates all the various different
  12. $! "test" programs for the different types of encryption for OpenSSL.
  13. $! It was written so it would try to determine what "C" compiler to
  14. $! use or you can specify which "C" compiler to use.
  15. $!
  16. $! The test "executables" will be placed in a directory called
  17. $! [.xxx.EXE.TEST] where "xxx" denotes ALPHA, IA64, or VAX, depending
  18. $! on your machine architecture.
  19. $!
  20. $! Specify DEBUG or NODEBUG P1 to compile with or without debugger
  21. $! information.
  22. $!
  23. $! Specify which compiler at P2 to try to compile under.
  24. $!
  25. $! VAXC For VAX C.
  26. $! DECC For DEC C.
  27. $! GNUC For GNU C.
  28. $!
  29. $! If you don't specify a compiler, it will try to determine which
  30. $! "C" compiler to use.
  31. $!
  32. $! P3, if defined, sets a TCP/IP library to use, through one of the following
  33. $! keywords:
  34. $!
  35. $! UCX for UCX
  36. $! SOCKETSHR for SOCKETSHR+NETLIB
  37. $!
  38. $! P4, if defined, sets a compiler thread NOT needed on OpenVMS 7.1 (and up)
  39. $!
  40. $!
  41. $! P5, if defined, specifies the C pointer size. Ignored on VAX.
  42. $! ("64=ARGV" gives more efficient code with HP C V7.3 or newer.)
  43. $! Supported values are:
  44. $!
  45. $! "" Compile with default (/NOPOINTER_SIZE)
  46. $! 32 Compile with /POINTER_SIZE=32 (SHORT)
  47. $! 64 Compile with /POINTER_SIZE=64[=ARGV] (LONG[=ARGV])
  48. $! (Automatically select ARGV if compiler supports it.)
  49. $! 64= Compile with /POINTER_SIZE=64 (LONG).
  50. $! 64=ARGV Compile with /POINTER_SIZE=64=ARGV (LONG=ARGV).
  51. $!
  52. $! P6, if defined, specifies a directory where ZLIB files (zlib.h,
  53. $! libz.olb) may be found. Optionally, a non-default object library
  54. $! name may be included ("dev:[dir]libz_64.olb", for example).
  55. $!
  56. $!
  57. $! Announce/identify.
  58. $!
  59. $ proc = f$environment( "procedure")
  60. $ write sys$output "@@@ "+ -
  61. f$parse( proc, , , "name")+ f$parse( proc, , , "type")
  62. $!
  63. $! Define A TCP/IP Library That We Will Need To Link To.
  64. $! (That is, If We Need To Link To One.)
  65. $!
  66. $ TCPIP_LIB = ""
  67. $ ZLIB_LIB = ""
  68. $!
  69. $! Check Which Architecture We Are Using.
  70. $!
  71. $ if (f$getsyi( "cpu") .lt. 128)
  72. $ then
  73. $ ARCH = "VAX"
  74. $ else
  75. $ ARCH = f$edit( f$getsyi( "ARCH_NAME"), "UPCASE")
  76. $ if (ARCH .eqs. "") then ARCH = "UNK"
  77. $ endif
  78. $!
  79. $ ARCHD = ARCH
  80. $ LIB32 = "32"
  81. $ OPT_FILE = ""
  82. $ POINTER_SIZE = ""
  83. $!
  84. $! Check To Make Sure We Have Valid Command Line Parameters.
  85. $!
  86. $ GOSUB CHECK_OPTIONS
  87. $!
  88. $! Define The OBJ and EXE Directories.
  89. $!
  90. $ OBJ_DIR := SYS$DISK:[-.'ARCHD'.OBJ.TEST]
  91. $ EXE_DIR := SYS$DISK:[-.'ARCHD'.EXE.TEST]
  92. $!
  93. $! Specify the destination directory in any /MAP option.
  94. $!
  95. $ if (LINKMAP .eqs. "MAP")
  96. $ then
  97. $ LINKMAP = LINKMAP+ "=''EXE_DIR'"
  98. $ endif
  99. $!
  100. $! Add the location prefix to the linker options file name.
  101. $!
  102. $ if (OPT_FILE .nes. "")
  103. $ then
  104. $ OPT_FILE = EXE_DIR+ OPT_FILE
  105. $ endif
  106. $!
  107. $! Initialise logical names and such
  108. $!
  109. $ GOSUB INITIALISE
  110. $!
  111. $! Tell The User What Kind of Machine We Run On.
  112. $!
  113. $ WRITE SYS$OUTPUT "Host system architecture: ''ARCHD'"
  114. $!
  115. $! Define The CRYPTO-LIB We Are To Use.
  116. $!
  117. $ CRYPTO_LIB := SYS$DISK:[-.'ARCHD'.EXE.CRYPTO]SSL_LIBCRYPTO'LIB32'.OLB
  118. $!
  119. $! Define The SSL We Are To Use.
  120. $!
  121. $ SSL_LIB := SYS$DISK:[-.'ARCHD'.EXE.SSL]SSL_LIBSSL'LIB32'.OLB
  122. $!
  123. $! Create the OBJ and EXE Directories, if needed.
  124. $!
  125. $ IF (F$PARSE(OBJ_DIR).EQS."") THEN -
  126. CREATE /DIRECTORY 'OBJ_DIR'
  127. $ IF (F$PARSE(EXE_DIR).EQS."") THEN -
  128. CREATE /DIRECTORY 'EXE_DIR'
  129. $!
  130. $! Check To See If We Have The Proper Libraries.
  131. $!
  132. $ GOSUB LIB_CHECK
  133. $!
  134. $! Check To See If We Have A Linker Option File.
  135. $!
  136. $ GOSUB CHECK_OPT_FILE
  137. $!
  138. $! Define The TEST Files.
  139. $! NOTE: Some might think this list ugly. However, it's made this way to
  140. $! reflect the EXE variable in Makefile as closely as possible,
  141. $! thereby making it fairly easy to verify that the lists are the same.
  142. $!
  143. $ TEST_FILES = "BNTEST,ECTEST,ECDSATEST,ECDHTEST,IDEATEST,"+ -
  144. "MD2TEST,MD4TEST,MD5TEST,HMACTEST,WP_TEST,"+ -
  145. "RC2TEST,RC4TEST,RC5TEST,"+ -
  146. "DESTEST,SHATEST,SHA1TEST,SHA256T,SHA512T,"+ -
  147. "MDC2TEST,RMDTEST,"+ -
  148. "RANDTEST,DHTEST,ENGINETEST,"+ -
  149. "BFTEST,CASTTEST,SSLTEST,EXPTEST,DSATEST,RSA_TEST,"+ -
  150. "EVP_TEST,EVP_EXTRA_TEST,IGETEST,JPAKETEST,SRPTEST,"+ -
  151. "ASN1TEST,V3NAMETEST,HEARTBEAT_TEST,"+ -
  152. "CONSTANT_TIME_TEST,VERIFY_EXTRA_TEST,"+ -
  153. "CLIENTHELLOTEST,SSLV2CONFTEST,DTLSTEST"
  154. $! Should we add MTTEST,PQ_TEST,LH_TEST,DIVTEST,TABTEST as well?
  155. $!
  156. $! Additional directory information.
  157. $ T_D_BNTEST := [-.crypto.bn]
  158. $ T_D_ECTEST := [-.crypto.ec]
  159. $ T_D_ECDSATEST := [-.crypto.ecdsa]
  160. $ T_D_ECDHTEST := [-.crypto.ecdh]
  161. $ T_D_IDEATEST := [-.crypto.idea]
  162. $ T_D_MD2TEST := [-.crypto.md2]
  163. $ T_D_MD4TEST := [-.crypto.md4]
  164. $ T_D_MD5TEST := [-.crypto.md5]
  165. $ T_D_HMACTEST := [-.crypto.hmac]
  166. $ T_D_WP_TEST := [-.crypto.whrlpool]
  167. $ T_D_RC2TEST := [-.crypto.rc2]
  168. $ T_D_RC4TEST := [-.crypto.rc4]
  169. $ T_D_RC5TEST := [-.crypto.rc5]
  170. $ T_D_DESTEST := [-.crypto.des]
  171. $ T_D_SHATEST := [-.crypto.sha]
  172. $ T_D_SHA1TEST := [-.crypto.sha]
  173. $ T_D_SHA256T := [-.crypto.sha]
  174. $ T_D_SHA512T := [-.crypto.sha]
  175. $ T_D_MDC2TEST := [-.crypto.mdc2]
  176. $ T_D_RMDTEST := [-.crypto.ripemd]
  177. $ T_D_RANDTEST := [-.crypto.rand]
  178. $ T_D_DHTEST := [-.crypto.dh]
  179. $ T_D_ENGINETEST := [-.crypto.engine]
  180. $ T_D_BFTEST := [-.crypto.bf]
  181. $ T_D_CASTTEST := [-.crypto.cast]
  182. $ T_D_SSLTEST := [-.ssl]
  183. $ T_D_EXPTEST := [-.crypto.bn]
  184. $ T_D_DSATEST := [-.crypto.dsa]
  185. $ T_D_RSA_TEST := [-.crypto.rsa]
  186. $ T_D_EVP_TEST := [-.crypto.evp]
  187. $ T_D_EVP_EXTRA_TEST := [-.crypto.evp]
  188. $ T_D_IGETEST := [-.test]
  189. $ T_D_JPAKETEST := [-.crypto.jpake]
  190. $ T_D_SRPTEST := [-.crypto.srp]
  191. $ T_D_V3NAMETEST := [-.crypto.x509v3]
  192. $ T_D_ASN1TEST := [-.test]
  193. $ T_D_HEARTBEAT_TEST := [-.ssl]
  194. $ T_D_CONSTANT_TIME_TEST := [-.crypto]
  195. $ T_D_VERIFY_EXTRA_TEST := [-.crypto.x509]
  196. $ T_D_CLIENTHELLOTEST := [-.ssl]
  197. $ T_D_SSLV2CONFTEST := [-.ssl]
  198. $ T_D_DTLSTEST := [-.ssl]
  199. $
  200. $ EXOBJ_DTLSTEST := SSLTESTLIB
  201. $!
  202. $ TCPIP_PROGRAMS = ",,"
  203. $ IF COMPILER .EQS. "VAXC" THEN -
  204. TCPIP_PROGRAMS = ",SSLTEST,"
  205. $!
  206. $! Define A File Counter And Set It To "0".
  207. $!
  208. $ FILE_COUNTER = 0
  209. $!
  210. $! Top Of The File Loop.
  211. $!
  212. $ NEXT_FILE:
  213. $!
  214. $! O.K, Extract The File Name From The File List.
  215. $!
  216. $ FILE_NAME = F$ELEMENT(FILE_COUNTER,",",TEST_FILES)
  217. $!
  218. $! Check To See If We Are At The End Of The File List.
  219. $!
  220. $ IF (FILE_NAME.EQS.",") THEN GOTO FILE_DONE
  221. $!
  222. $! Increment The Counter.
  223. $!
  224. $ FILE_COUNTER = FILE_COUNTER + 1
  225. $!
  226. $! Create The Source File Name.
  227. $!
  228. $ SOURCE_FILE = "SYS$DISK:" + T_D_'FILE_NAME' + FILE_NAME + ".C"
  229. $!
  230. $! Create The Object File Name.
  231. $!
  232. $ OBJECT_FILE = OBJ_DIR + FILE_NAME + ".OBJ"
  233. $ OBJECT_FILES = OBJECT_FILE
  234. $!
  235. $! Create The Executable File Name.
  236. $!
  237. $ EXE_FILE = EXE_DIR + FILE_NAME + ".EXE"
  238. $!
  239. $! Do the same for the possible extra unit
  240. $!
  241. $ IF F$TYPE(EXOBJ_'FILE_NAME') .NES. ""
  242. $ THEN
  243. $ EXOBJ_SOURCE_FILE = "SYS$DISK:" + EXOBJ_'FILE_NAME' + ".C"
  244. $ EXOBJ_OBJECT_FILE = OBJ_DIR + EXOBJ_'FILE_NAME' + ".OBJ"
  245. $ OBJECT_FILES = OBJECT_FILES + "," + EXOBJ_OBJECT_FILE
  246. $ ENDIF
  247. $!
  248. $ ON WARNING THEN GOTO NEXT_FILE
  249. $!
  250. $! Check To See If The File We Want To Compile Actually Exists.
  251. $!
  252. $ IF (F$SEARCH(SOURCE_FILE).EQS."")
  253. $ THEN
  254. $!
  255. $! Tell The User That The File Dosen't Exist.
  256. $!
  257. $ WRITE SYS$OUTPUT ""
  258. $ WRITE SYS$OUTPUT "The File ",SOURCE_FILE," Dosen't Exist."
  259. $ WRITE SYS$OUTPUT ""
  260. $!
  261. $! Exit The Build.
  262. $!
  263. $ GOTO EXIT
  264. $ ENDIF
  265. $!
  266. $! Tell The User What We Are Building.
  267. $!
  268. $ WRITE SYS$OUTPUT "Building The ",FILE_NAME," Test Program."
  269. $!
  270. $! Compile The File.
  271. $!
  272. $ ON ERROR THEN GOTO NEXT_FILE
  273. $ CC /OBJECT='OBJECT_FILE' 'SOURCE_FILE'
  274. $ IF F$TYPE(EXOBJ_'FILE_NAME') .NES. ""
  275. $ THEN
  276. $ CC /OBJECT='EXOBJ_OBJECT_FILE' 'EXOBJ_SOURCE_FILE'
  277. $ ENDIF
  278. $ ON WARNING THEN GOTO NEXT_FILE
  279. $!
  280. $! Check If What We Are About To Compile Works Without A TCP/IP Library.
  281. $!
  282. $ IF ((TCPIP_LIB.EQS."").AND.((TCPIP_PROGRAMS-FILE_NAME).NES.TCPIP_PROGRAMS))
  283. $ THEN
  284. $!
  285. $! Inform The User That A TCP/IP Library Is Needed To Compile This Program.
  286. $!
  287. $ WRITE SYS$OUTPUT -
  288. FILE_NAME," Needs A TCP/IP Library. Can't Link. Skipping..."
  289. $ GOTO NEXT_FILE
  290. $!
  291. $! End The TCP/IP Library Check.
  292. $!
  293. $ ENDIF
  294. $!
  295. $! Link The Program, Check To See If We Need To Link With RSAREF Or Not.
  296. $! Check To See If We Are To Link With A Specific TCP/IP Library.
  297. $!
  298. $! Don't Link With The RSAREF Routines And TCP/IP Library.
  299. $!
  300. $ LINK /'DEBUGGER' /'LINKMAP' /'TRACEBACK' /EXECTABLE = 'EXE_FILE' -
  301. 'OBJECT_FILES', -
  302. 'SSL_LIB' /LIBRARY, -
  303. 'CRYPTO_LIB' /LIBRARY -
  304. 'TCPIP_LIB' -
  305. 'ZLIB_LIB' -
  306. ,'OPT_FILE' /OPTIONS
  307. $!
  308. $! Go Back And Do It Again.
  309. $!
  310. $ GOTO NEXT_FILE
  311. $!
  312. $! All Done With This Library Part.
  313. $!
  314. $ FILE_DONE:
  315. $!
  316. $! All Done, Time To Exit.
  317. $!
  318. $ EXIT:
  319. $ GOSUB CLEANUP
  320. $ EXIT
  321. $!
  322. $! Check For The Link Option FIle.
  323. $!
  324. $ CHECK_OPT_FILE:
  325. $!
  326. $! Check To See If We Need To Make A VAX C Option File.
  327. $!
  328. $ IF (COMPILER.EQS."VAXC")
  329. $ THEN
  330. $!
  331. $! Check To See If We Already Have A VAX C Linker Option File.
  332. $!
  333. $ IF (F$SEARCH(OPT_FILE).EQS."")
  334. $ THEN
  335. $!
  336. $! We Need A VAX C Linker Option File.
  337. $!
  338. $ CREATE 'OPT_FILE'
  339. $DECK
  340. !
  341. ! Default System Options File To Link Against
  342. ! The Sharable VAX C Runtime Library.
  343. !
  344. SYS$SHARE:VAXCRTL.EXE /SHAREABLE
  345. $EOD
  346. $!
  347. $! End The Option File Check.
  348. $!
  349. $ ENDIF
  350. $!
  351. $! End The VAXC Check.
  352. $!
  353. $ ENDIF
  354. $!
  355. $! Check To See If We Need A GNU C Option File.
  356. $!
  357. $ IF (COMPILER.EQS."GNUC")
  358. $ THEN
  359. $!
  360. $! Check To See If We Already Have A GNU C Linker Option File.
  361. $!
  362. $ IF (F$SEARCH(OPT_FILE).EQS."")
  363. $ THEN
  364. $!
  365. $! We Need A GNU C Linker Option File.
  366. $!
  367. $ CREATE 'OPT_FILE'
  368. $DECK
  369. !
  370. ! Default System Options File To Link Against
  371. ! The Sharable C Runtime Library.
  372. !
  373. GNU_CC:[000000]GCCLIB.OLB /LIBRARY
  374. SYS$SHARE:VAXCRTL.EXE /SHAREABLE
  375. $EOD
  376. $!
  377. $! End The Option File Check.
  378. $!
  379. $ ENDIF
  380. $!
  381. $! End The GNU C Check.
  382. $!
  383. $ ENDIF
  384. $!
  385. $! Check To See If We Need A DEC C Option File.
  386. $!
  387. $ IF (COMPILER.EQS."DECC")
  388. $ THEN
  389. $!
  390. $! Check To See If We Already Have A DEC C Linker Option File.
  391. $!
  392. $ IF (F$SEARCH(OPT_FILE).EQS."")
  393. $ THEN
  394. $!
  395. $! Figure Out If We Need A non-VAX Or A VAX Linker Option File.
  396. $!
  397. $ IF (ARCH.EQS."VAX")
  398. $ THEN
  399. $!
  400. $! We Need A DEC C Linker Option File For VAX.
  401. $!
  402. $ CREATE 'OPT_FILE'
  403. $DECK
  404. !
  405. ! Default System Options File To Link Against
  406. ! The Sharable DEC C Runtime Library.
  407. !
  408. SYS$SHARE:DECC$SHR.EXE /SHAREABLE
  409. $EOD
  410. $!
  411. $! Else...
  412. $!
  413. $ ELSE
  414. $!
  415. $! Create The non-VAX Linker Option File.
  416. $!
  417. $ CREATE 'OPT_FILE'
  418. $DECK
  419. !
  420. ! Default System Options File For non-VAX To Link Against
  421. ! The Sharable C Runtime Library.
  422. !
  423. SYS$SHARE:CMA$OPEN_LIB_SHR.EXE /SHAREABLE
  424. SYS$SHARE:CMA$OPEN_RTL.EXE /SHAREABLE
  425. $EOD
  426. $!
  427. $! End The DEC C Option File Check.
  428. $!
  429. $ ENDIF
  430. $!
  431. $! End The Option File Search.
  432. $!
  433. $ ENDIF
  434. $!
  435. $! End The DEC C Check.
  436. $!
  437. $ ENDIF
  438. $!
  439. $! Tell The User What Linker Option File We Are Using.
  440. $!
  441. $ WRITE SYS$OUTPUT "Using Linker Option File ",OPT_FILE,"."
  442. $!
  443. $! Time To RETURN.
  444. $!
  445. $ RETURN
  446. $!
  447. $! Check To See If We Have The Appropiate Libraries.
  448. $!
  449. $ LIB_CHECK:
  450. $!
  451. $! Look For The Library LIBCRYPTO.OLB.
  452. $!
  453. $ IF (F$SEARCH(CRYPTO_LIB).EQS."")
  454. $ THEN
  455. $!
  456. $! Tell The User We Can't Find The LIBCRYPTO.OLB Library.
  457. $!
  458. $ WRITE SYS$OUTPUT ""
  459. $ WRITE SYS$OUTPUT "Can't Find The Library ",CRYPTO_LIB,"."
  460. $ WRITE SYS$OUTPUT "We Can't Link Without It."
  461. $ WRITE SYS$OUTPUT ""
  462. $!
  463. $! Since We Can't Link Without It, Exit.
  464. $!
  465. $ EXIT
  466. $!
  467. $! End The Crypto Library Check.
  468. $!
  469. $ ENDIF
  470. $!
  471. $! Look For The Library LIBSSL.OLB.
  472. $!
  473. $ IF (F$SEARCH(SSL_LIB).EQS."")
  474. $ THEN
  475. $!
  476. $! Tell The User We Can't Find The LIBSSL.OLB Library.
  477. $!
  478. $ WRITE SYS$OUTPUT ""
  479. $ WRITE SYS$OUTPUT "Can't Find The Library ",SSL_LIB,"."
  480. $ WRITE SYS$OUTPUT "Some Of The Test Programs Need To Link To It."
  481. $ WRITE SYS$OUTPUT ""
  482. $!
  483. $! Since We Can't Link Without It, Exit.
  484. $!
  485. $ EXIT
  486. $!
  487. $! End The SSL Library Check.
  488. $!
  489. $ ENDIF
  490. $!
  491. $! Time To Return.
  492. $!
  493. $ RETURN
  494. $!
  495. $! Check The User's Options.
  496. $!
  497. $ CHECK_OPTIONS:
  498. $!
  499. $! Set basic C compiler /INCLUDE directories.
  500. $!
  501. $ CC_INCLUDES = "SYS$DISK:[-],SYS$DISK:[-.CRYPTO],SYS$DISK:[-.TEST]"
  502. $!
  503. $! Check To See If P1 Is Blank.
  504. $!
  505. $ IF (P1.EQS."NODEBUG")
  506. $ THEN
  507. $!
  508. $! P1 Is NODEBUG, So Compile Without Debugger Information.
  509. $!
  510. $ DEBUGGER = "NODEBUG"
  511. $ LINKMAP = "NOMAP"
  512. $ TRACEBACK = "NOTRACEBACK"
  513. $ GCC_OPTIMIZE = "OPTIMIZE"
  514. $ CC_OPTIMIZE = "OPTIMIZE"
  515. $ WRITE SYS$OUTPUT "No Debugger Information Will Be Produced During Compile."
  516. $ WRITE SYS$OUTPUT "Compiling With Compiler Optimization."
  517. $!
  518. $! Else...
  519. $!
  520. $ ELSE
  521. $!
  522. $! Check To See If We Are To Compile With Debugger Information.
  523. $!
  524. $ IF (P1.EQS."DEBUG")
  525. $ THEN
  526. $!
  527. $! Compile With Debugger Information.
  528. $!
  529. $ DEBUGGER = "DEBUG"
  530. $ LINKMAP = "MAP"
  531. $ TRACEBACK = "TRACEBACK"
  532. $ GCC_OPTIMIZE = "NOOPTIMIZE"
  533. $ CC_OPTIMIZE = "NOOPTIMIZE"
  534. $ WRITE SYS$OUTPUT "Debugger Information Will Be Produced During Compile."
  535. $ WRITE SYS$OUTPUT "Compiling Without Compiler Optimization."
  536. $!
  537. $! Else...
  538. $!
  539. $ ELSE
  540. $!
  541. $! Tell The User Entered An Invalid Option.
  542. $!
  543. $ WRITE SYS$OUTPUT ""
  544. $ WRITE SYS$OUTPUT "The Option ",P1," Is Invalid. The Valid Options Are:"
  545. $ WRITE SYS$OUTPUT ""
  546. $ WRITE SYS$OUTPUT " DEBUG : Compile With The Debugger Information."
  547. $ WRITE SYS$OUTPUT " NODEBUG : Compile Without The Debugger Information."
  548. $ WRITE SYS$OUTPUT ""
  549. $!
  550. $! Time To EXIT.
  551. $!
  552. $ EXIT
  553. $!
  554. $! End The Valid Argument Check.
  555. $!
  556. $ ENDIF
  557. $!
  558. $! End The P1 Check.
  559. $!
  560. $ ENDIF
  561. $!
  562. $! Check P5 (POINTER_SIZE).
  563. $!
  564. $ IF (P5 .NES. "") .AND. (ARCH .NES. "VAX")
  565. $ THEN
  566. $!
  567. $ IF (P5 .EQS. "32")
  568. $ THEN
  569. $ POINTER_SIZE = " /POINTER_SIZE=32"
  570. $ ELSE
  571. $ POINTER_SIZE = F$EDIT( P5, "COLLAPSE, UPCASE")
  572. $ IF ((POINTER_SIZE .EQS. "64") .OR. -
  573. (POINTER_SIZE .EQS. "64=") .OR. -
  574. (POINTER_SIZE .EQS. "64=ARGV"))
  575. $ THEN
  576. $ ARCHD = ARCH+ "_64"
  577. $ LIB32 = ""
  578. $ IF (F$EXTRACT( 2, 1, POINTER_SIZE) .EQS. "=")
  579. $ THEN
  580. $! Explicit user choice: "64" or "64=ARGV".
  581. $ IF (POINTER_SIZE .EQS. "64=") THEN POINTER_SIZE = "64"
  582. $ ELSE
  583. $ SET NOON
  584. $ DEFINE /USER_MODE SYS$OUTPUT NL:
  585. $ DEFINE /USER_MODE SYS$ERROR NL:
  586. $ CC /NOLIST /NOOBJECT /POINTER_SIZE=64=ARGV NL:
  587. $ IF ($STATUS .AND. %X0FFF0000) .EQ. %X00030000
  588. $ THEN
  589. $ ! If we got here, it means DCL complained like this:
  590. $ ! %DCL-W-NOVALU, value not allowed - remove value specification
  591. $ ! \64=\
  592. $ !
  593. $ ! If the compiler was run, logicals defined in /USER would
  594. $ ! have been deassigned automatically. However, when DCL
  595. $ ! complains, they aren't, so we do it here (it might be
  596. $ ! unnecessary, but just in case there will be another error
  597. $ ! message further on that we don't want to miss)
  598. $ DEASSIGN /USER_MODE SYS$ERROR
  599. $ DEASSIGN /USER_MODE SYS$OUTPUT
  600. $ ELSE
  601. $ POINTER_SIZE = POINTER_SIZE + "=ARGV"
  602. $ ENDIF
  603. $ SET ON
  604. $ ENDIF
  605. $ POINTER_SIZE = " /POINTER_SIZE=''POINTER_SIZE'"
  606. $ ELSE
  607. $!
  608. $! Tell The User Entered An Invalid Option.
  609. $!
  610. $ WRITE SYS$OUTPUT ""
  611. $ WRITE SYS$OUTPUT "The Option ", P5, -
  612. " Is Invalid. The Valid Options Are:"
  613. $ WRITE SYS$OUTPUT ""
  614. $ WRITE SYS$OUTPUT -
  615. " """" : Compile with default (short) pointers."
  616. $ WRITE SYS$OUTPUT -
  617. " 32 : Compile with 32-bit (short) pointers."
  618. $ WRITE SYS$OUTPUT -
  619. " 64 : Compile with 64-bit (long) pointers (auto ARGV)."
  620. $ WRITE SYS$OUTPUT -
  621. " 64= : Compile with 64-bit (long) pointers (no ARGV)."
  622. $ WRITE SYS$OUTPUT -
  623. " 64=ARGV : Compile with 64-bit (long) pointers (ARGV)."
  624. $ WRITE SYS$OUTPUT ""
  625. $!
  626. $! Time To EXIT.
  627. $!
  628. $ EXIT
  629. $!
  630. $ ENDIF
  631. $!
  632. $ ENDIF
  633. $!
  634. $! End The P5 (POINTER_SIZE) Check.
  635. $!
  636. $ ENDIF
  637. $!
  638. $! Check To See If P2 Is Blank.
  639. $!
  640. $ IF (P2.EQS."")
  641. $ THEN
  642. $!
  643. $! O.K., The User Didn't Specify A Compiler, Let's Try To
  644. $! Find Out Which One To Use.
  645. $!
  646. $! Check To See If We Have GNU C.
  647. $!
  648. $ IF (F$TRNLNM("GNU_CC").NES."")
  649. $ THEN
  650. $!
  651. $! Looks Like GNUC, Set To Use GNUC.
  652. $!
  653. $ P2 = "GNUC"
  654. $!
  655. $! End The GNU C Compiler Check.
  656. $!
  657. $ ELSE
  658. $!
  659. $! Check To See If We Have VAXC Or DECC.
  660. $!
  661. $ IF (ARCH.NES."VAX").OR.(F$TRNLNM("DECC$CC_DEFAULT").NES."")
  662. $ THEN
  663. $!
  664. $! Looks Like DECC, Set To Use DECC.
  665. $!
  666. $ P2 = "DECC"
  667. $!
  668. $! Else...
  669. $!
  670. $ ELSE
  671. $!
  672. $! Looks Like VAXC, Set To Use VAXC.
  673. $!
  674. $ P2 = "VAXC"
  675. $!
  676. $! End The VAXC Compiler Check.
  677. $!
  678. $ ENDIF
  679. $!
  680. $! End The DECC & VAXC Compiler Check.
  681. $!
  682. $ ENDIF
  683. $!
  684. $! End The Compiler Check.
  685. $!
  686. $ ENDIF
  687. $!
  688. $! Check To See If We Have A Option For P3.
  689. $!
  690. $ IF (P3.EQS."")
  691. $ THEN
  692. $!
  693. $! Find out what socket library we have available
  694. $!
  695. $ IF F$PARSE("SOCKETSHR:") .NES. ""
  696. $ THEN
  697. $!
  698. $! We have SOCKETSHR, and it is my opinion that it's the best to use.
  699. $!
  700. $ P3 = "SOCKETSHR"
  701. $!
  702. $! Tell the user
  703. $!
  704. $ WRITE SYS$OUTPUT "Using SOCKETSHR for TCP/IP"
  705. $!
  706. $! Else, let's look for something else
  707. $!
  708. $ ELSE
  709. $!
  710. $! Like UCX (the reason to do this before Multinet is that the UCX
  711. $! emulation is easier to use...)
  712. $!
  713. $ IF F$TRNLNM("UCX$IPC_SHR") .NES. "" -
  714. .OR. F$PARSE("SYS$SHARE:UCX$IPC_SHR.EXE") .NES. "" -
  715. .OR. F$PARSE("SYS$LIBRARY:UCX$IPC.OLB") .NES. ""
  716. $ THEN
  717. $!
  718. $! Last resort: a UCX or UCX-compatible library
  719. $!
  720. $ P3 = "UCX"
  721. $!
  722. $! Tell the user
  723. $!
  724. $ WRITE SYS$OUTPUT "Using UCX or an emulation thereof for TCP/IP"
  725. $!
  726. $! That was all...
  727. $!
  728. $ ENDIF
  729. $ ENDIF
  730. $ ENDIF
  731. $!
  732. $! Set Up Initial CC Definitions, Possibly With User Ones
  733. $!
  734. $ CCDEFS = "TCPIP_TYPE_''P3'"
  735. $ IF F$TYPE(USER_CCDEFS) .NES. "" THEN CCDEFS = CCDEFS + "," + USER_CCDEFS
  736. $ CCEXTRAFLAGS = ""
  737. $ IF F$TYPE(USER_CCFLAGS) .NES. "" THEN CCEXTRAFLAGS = USER_CCFLAGS
  738. $ CCDISABLEWARNINGS = "" !!! "LONGLONGTYPE,LONGLONGSUFX,FOUNDCR"
  739. $ IF F$TYPE(USER_CCDISABLEWARNINGS) .NES. "" THEN -
  740. CCDISABLEWARNINGS = CCDISABLEWARNINGS + "," + USER_CCDISABLEWARNINGS
  741. $!
  742. $! Check To See If We Have A ZLIB Option.
  743. $!
  744. $ ZLIB = P6
  745. $ IF (ZLIB .NES. "")
  746. $ THEN
  747. $!
  748. $! Check for expected ZLIB files.
  749. $!
  750. $ err = 0
  751. $ file1 = f$parse( "zlib.h", ZLIB, , , "SYNTAX_ONLY")
  752. $ if (f$search( file1) .eqs. "")
  753. $ then
  754. $ WRITE SYS$OUTPUT ""
  755. $ WRITE SYS$OUTPUT "The Option ", ZLIB, " Is Invalid."
  756. $ WRITE SYS$OUTPUT " Can't find header: ''file1'"
  757. $ err = 1
  758. $ endif
  759. $ file1 = f$parse( "A.;", ZLIB)- "A.;"
  760. $!
  761. $ file2 = f$parse( ZLIB, "libz.olb", , , "SYNTAX_ONLY")
  762. $ if (f$search( file2) .eqs. "")
  763. $ then
  764. $ if (err .eq. 0)
  765. $ then
  766. $ WRITE SYS$OUTPUT ""
  767. $ WRITE SYS$OUTPUT "The Option ", ZLIB, " Is Invalid."
  768. $ endif
  769. $ WRITE SYS$OUTPUT " Can't find library: ''file2'"
  770. $ WRITE SYS$OUTPUT ""
  771. $ err = err+ 2
  772. $ endif
  773. $ if (err .eq. 1)
  774. $ then
  775. $ WRITE SYS$OUTPUT ""
  776. $ endif
  777. $!
  778. $ if (err .ne. 0)
  779. $ then
  780. $ GOTO EXIT
  781. $ endif
  782. $!
  783. $ CCDEFS = """ZLIB=1"", "+ CCDEFS
  784. $ CC_INCLUDES = CC_INCLUDES+ ", "+ file1
  785. $ ZLIB_LIB = ", ''file2' /library"
  786. $!
  787. $! Print info
  788. $!
  789. $ WRITE SYS$OUTPUT "ZLIB library spec: ", file2
  790. $!
  791. $! End The P8 Check.
  792. $!
  793. $ ENDIF
  794. $!
  795. $! Check To See If The User Entered A Valid Parameter.
  796. $!
  797. $ IF (P2.EQS."VAXC").OR.(P2.EQS."DECC").OR.(P2.EQS."GNUC")
  798. $ THEN
  799. $!
  800. $! Check To See If The User Wanted DECC.
  801. $!
  802. $ IF (P2.EQS."DECC")
  803. $ THEN
  804. $!
  805. $! Looks Like DECC, Set To Use DECC.
  806. $!
  807. $ COMPILER = "DECC"
  808. $!
  809. $! Tell The User We Are Using DECC.
  810. $!
  811. $ WRITE SYS$OUTPUT "Using DECC 'C' Compiler."
  812. $!
  813. $! Use DECC...
  814. $!
  815. $ CC = "CC"
  816. $ IF ARCH.EQS."VAX" .AND. F$TRNLNM("DECC$CC_DEFAULT").NES."/DECC" -
  817. THEN CC = "CC /DECC"
  818. $ CC = CC + " /''CC_OPTIMIZE' /''DEBUGGER' /STANDARD=RELAXED"+ -
  819. "''POINTER_SIZE' /NOLIST /PREFIX=ALL" + -
  820. " /INCLUDE=(''CC_INCLUDES') " + CCEXTRAFLAGS
  821. $!
  822. $! Define The Linker Options File Name.
  823. $!
  824. $ OPT_FILE = "VAX_DECC_OPTIONS.OPT"
  825. $!
  826. $! End DECC Check.
  827. $!
  828. $ ENDIF
  829. $!
  830. $! Check To See If We Are To Use VAXC.
  831. $!
  832. $ IF (P2.EQS."VAXC")
  833. $ THEN
  834. $!
  835. $! Looks Like VAXC, Set To Use VAXC.
  836. $!
  837. $ COMPILER = "VAXC"
  838. $!
  839. $! Tell The User We Are Using VAX C.
  840. $!
  841. $ WRITE SYS$OUTPUT "Using VAXC 'C' Compiler."
  842. $!
  843. $! Compile Using VAXC.
  844. $!
  845. $ CC = "CC"
  846. $ IF ARCH.NES."VAX"
  847. $ THEN
  848. $ WRITE SYS$OUTPUT "There is no VAX C on ''ARCH'!"
  849. $ EXIT
  850. $ ENDIF
  851. $ IF F$TRNLNM("DECC$CC_DEFAULT").EQS."/DECC" THEN CC = "CC /VAXC"
  852. $ CC = CC + "/''CC_OPTIMIZE' /''DEBUGGER' /NOLIST" + -
  853. "/INCLUDE=(''CC_INCLUDES')" + CCEXTRAFLAGS
  854. $ CCDEFS = CCDEFS + ",""VAXC"""
  855. $!
  856. $! Define <sys> As SYS$COMMON:[SYSLIB]
  857. $!
  858. $ DEFINE /NOLOG SYS SYS$COMMON:[SYSLIB]
  859. $!
  860. $! Define The Linker Options File Name.
  861. $!
  862. $ OPT_FILE = "VAX_VAXC_OPTIONS.OPT"
  863. $!
  864. $! End VAXC Check
  865. $!
  866. $ ENDIF
  867. $!
  868. $! Check To See If We Are To Use GNU C.
  869. $!
  870. $ IF (P2.EQS."GNUC")
  871. $ THEN
  872. $!
  873. $! Looks Like GNUC, Set To Use GNUC.
  874. $!
  875. $ COMPILER = "GNUC"
  876. $!
  877. $! Tell The User We Are Using GNUC.
  878. $!
  879. $ WRITE SYS$OUTPUT "Using GNU 'C' Compiler."
  880. $!
  881. $! Use GNU C...
  882. $!
  883. $ CC = "GCC /NOCASE_HACK /''GCC_OPTIMIZE' /''DEBUGGER' /NOLIST" + -
  884. "/INCLUDE=(''CC_INCLUDES')" + CCEXTRAFLAGS
  885. $!
  886. $! Define The Linker Options File Name.
  887. $!
  888. $ OPT_FILE = "VAX_GNUC_OPTIONS.OPT"
  889. $!
  890. $! End The GNU C Check.
  891. $!
  892. $ ENDIF
  893. $!
  894. $! Set up default defines
  895. $!
  896. $ CCDEFS = """FLAT_INC=1""," + CCDEFS
  897. $!
  898. $! Finish up the definition of CC.
  899. $!
  900. $ IF COMPILER .EQS. "DECC"
  901. $ THEN
  902. $ IF CCDISABLEWARNINGS .EQS. ""
  903. $ THEN
  904. $ CC4DISABLEWARNINGS = "DOLLARID"
  905. $ ELSE
  906. $ CC4DISABLEWARNINGS = CCDISABLEWARNINGS + ",DOLLARID"
  907. $ CCDISABLEWARNINGS = " /WARNING=(DISABLE=(" + CCDISABLEWARNINGS + "))"
  908. $ ENDIF
  909. $ CC4DISABLEWARNINGS = " /WARNING=(DISABLE=(" + CC4DISABLEWARNINGS + "))"
  910. $ ELSE
  911. $ CCDISABLEWARNINGS = ""
  912. $ CC4DISABLEWARNINGS = ""
  913. $ ENDIF
  914. $ CC = CC + " /DEFINE=(" + CCDEFS + ")" + CCDISABLEWARNINGS
  915. $!
  916. $! Show user the result
  917. $!
  918. $ WRITE /SYMBOL SYS$OUTPUT "Main Compiling Command: ", CC
  919. $!
  920. $! Else The User Entered An Invalid Argument.
  921. $!
  922. $ ELSE
  923. $!
  924. $! Tell The User We Don't Know What They Want.
  925. $!
  926. $ WRITE SYS$OUTPUT ""
  927. $ WRITE SYS$OUTPUT "The Option ",P2," Is Invalid. The Valid Options Are:"
  928. $ WRITE SYS$OUTPUT ""
  929. $ WRITE SYS$OUTPUT " VAXC : To Compile With VAX C."
  930. $ WRITE SYS$OUTPUT " DECC : To Compile With DEC C."
  931. $ WRITE SYS$OUTPUT " GNUC : To Compile With GNU C."
  932. $ WRITE SYS$OUTPUT ""
  933. $!
  934. $! Time To EXIT.
  935. $!
  936. $ EXIT
  937. $ ENDIF
  938. $!
  939. $! Time to check the contents, and to make sure we get the correct library.
  940. $!
  941. $ IF P3.EQS."SOCKETSHR" .OR. P3.EQS."MULTINET" .OR. P3.EQS."UCX" -
  942. .OR. P3.EQS."TCPIP" .OR. P3.EQS."NONE"
  943. $ THEN
  944. $!
  945. $! Check to see if SOCKETSHR was chosen
  946. $!
  947. $ IF P3.EQS."SOCKETSHR"
  948. $ THEN
  949. $!
  950. $! Set the library to use SOCKETSHR
  951. $!
  952. $ TCPIP_LIB = ",SYS$DISK:[-.VMS]SOCKETSHR_SHR.OPT /OPTIONS"
  953. $!
  954. $! Done with SOCKETSHR
  955. $!
  956. $ ENDIF
  957. $!
  958. $! Check to see if MULTINET was chosen
  959. $!
  960. $ IF P3.EQS."MULTINET"
  961. $ THEN
  962. $!
  963. $! Set the library to use UCX emulation.
  964. $!
  965. $ P3 = "UCX"
  966. $!
  967. $! Done with MULTINET
  968. $!
  969. $ ENDIF
  970. $!
  971. $! Check to see if UCX was chosen
  972. $!
  973. $ IF P3.EQS."UCX"
  974. $ THEN
  975. $!
  976. $! Set the library to use UCX.
  977. $!
  978. $ TCPIP_LIB = ",SYS$DISK:[-.VMS]UCX_SHR_DECC.OPT /OPTIONS"
  979. $ IF F$TRNLNM("UCX$IPC_SHR") .NES. ""
  980. $ THEN
  981. $ TCPIP_LIB = ",SYS$DISK:[-.VMS]UCX_SHR_DECC_LOG.OPT /OPTIONS"
  982. $ ELSE
  983. $ IF COMPILER .NES. "DECC" .AND. ARCH .EQS. "VAX" THEN -
  984. TCPIP_LIB = ",SYS$DISK:[-.VMS]UCX_SHR_VAXC.OPT /OPTIONS"
  985. $ ENDIF
  986. $!
  987. $! Done with UCX
  988. $!
  989. $ ENDIF
  990. $!
  991. $! Check to see if TCPIP was chosen
  992. $!
  993. $ IF P3.EQS."TCPIP"
  994. $ THEN
  995. $!
  996. $! Set the library to use TCPIP (post UCX).
  997. $!
  998. $ TCPIP_LIB = ",SYS$DISK:[-.VMS]TCPIP_SHR_DECC.OPT /OPTIONS"
  999. $!
  1000. $! Done with TCPIP
  1001. $!
  1002. $ ENDIF
  1003. $!
  1004. $! Check to see if NONE was chosen
  1005. $!
  1006. $ IF P3.EQS."NONE"
  1007. $ THEN
  1008. $!
  1009. $! Do not use a TCPIP library.
  1010. $!
  1011. $ TCPIP_LIB = ""
  1012. $!
  1013. $! Done with NONE
  1014. $!
  1015. $ ENDIF
  1016. $!
  1017. $! Print info
  1018. $!
  1019. $ WRITE SYS$OUTPUT "TCP/IP library spec: ", TCPIP_LIB- ","
  1020. $!
  1021. $! Else The User Entered An Invalid Argument.
  1022. $!
  1023. $ ELSE
  1024. $!
  1025. $! Tell The User We Don't Know What They Want.
  1026. $!
  1027. $ WRITE SYS$OUTPUT ""
  1028. $ WRITE SYS$OUTPUT "The Option ",P3," Is Invalid. The Valid Options Are:"
  1029. $ WRITE SYS$OUTPUT ""
  1030. $ WRITE SYS$OUTPUT " SOCKETSHR : To link with SOCKETSHR TCP/IP library."
  1031. $ WRITE SYS$OUTPUT " UCX : To link with UCX TCP/IP library."
  1032. $ WRITE SYS$OUTPUT " TCPIP : To link with TCPIP (post UCX) TCP/IP library."
  1033. $ WRITE SYS$OUTPUT ""
  1034. $!
  1035. $! Time To EXIT.
  1036. $!
  1037. $ EXIT
  1038. $!
  1039. $! Done with TCP/IP libraries
  1040. $!
  1041. $ ENDIF
  1042. $!
  1043. $! Special Threads For OpenVMS v7.1 Or Later
  1044. $!
  1045. $! Written By: Richard Levitte
  1046. $! richard@levitte.org
  1047. $!
  1048. $!
  1049. $! Check To See If We Have A Option For P4.
  1050. $!
  1051. $ IF (P4.EQS."")
  1052. $ THEN
  1053. $!
  1054. $! Get The Version Of VMS We Are Using.
  1055. $!
  1056. $ ISSEVEN :=
  1057. $ TMP = F$ELEMENT(0,"-",F$EXTRACT(1,4,F$GETSYI("VERSION")))
  1058. $ TMP = F$INTEGER(F$ELEMENT(0,".",TMP)+F$ELEMENT(1,".",TMP))
  1059. $!
  1060. $! Check To See If The VMS Version Is v7.1 Or Later.
  1061. $!
  1062. $ IF (TMP.GE.71)
  1063. $ THEN
  1064. $!
  1065. $! We Have OpenVMS v7.1 Or Later, So Use The Special Threads.
  1066. $!
  1067. $ ISSEVEN := ,PTHREAD_USE_D4
  1068. $!
  1069. $! End The VMS Version Check.
  1070. $!
  1071. $ ENDIF
  1072. $!
  1073. $! End The P4 Check.
  1074. $!
  1075. $ ENDIF
  1076. $!
  1077. $! Time To RETURN...
  1078. $!
  1079. $ RETURN
  1080. $!
  1081. $ INITIALISE:
  1082. $!
  1083. $! Save old value of the logical name OPENSSL
  1084. $!
  1085. $ __SAVE_OPENSSL = F$TRNLNM("OPENSSL","LNM$PROCESS_TABLE")
  1086. $!
  1087. $! Save directory information
  1088. $!
  1089. $ __HERE = F$PARSE(F$PARSE("A.;",F$ENVIRONMENT("PROCEDURE"))-"A.;","[]A.;") - "A.;"
  1090. $ __HERE = F$EDIT(__HERE,"UPCASE")
  1091. $ __TOP = __HERE - "TEST]"
  1092. $ __INCLUDE = __TOP + "INCLUDE.OPENSSL]"
  1093. $!
  1094. $! Set up the logical name OPENSSL to point at the include directory
  1095. $!
  1096. $ DEFINE OPENSSL /NOLOG '__INCLUDE'
  1097. $!
  1098. $! Done
  1099. $!
  1100. $ RETURN
  1101. $!
  1102. $ CLEANUP:
  1103. $!
  1104. $! Restore the logical name OPENSSL if it had a value
  1105. $!
  1106. $ IF __SAVE_OPENSSL .EQS. ""
  1107. $ THEN
  1108. $ DEASSIGN OPENSSL
  1109. $ ELSE
  1110. $ DEFINE /NOLOG OPENSSL '__SAVE_OPENSSL'
  1111. $ ENDIF
  1112. $!
  1113. $! Done
  1114. $!
  1115. $ RETURN