3 $! Written By: Robert Byer
5 $! A-Com Computing, Inc.
6 $! byer@mail.all-net.net
8 $! Changes by Richard Levitte <richard@levitte.org>
10 $! This command file compiles and creates the "[.xxx.EXE.SSL]LIBSSL.OLB"
11 $! library for OpenSSL. The "xxx" denotes the machine architecture of
12 $! ALPHA, IA64 or VAX.
14 $! It is written to detect what type of machine you are compiling on
15 $! (i.e. ALPHA or VAX) and which "C" compiler you have (i.e. VAXC, DECC
16 $! or GNU C) or you can specify which compiler to use.
18 $! Specify the following as P1 to build just that part or ALL to just
21 $! LIBRARY To just compile the [.xxx.EXE.SSL]LIBSSL.OLB Library.
22 $! SSL_TASK To just compile the [.xxx.EXE.SSL]SSL_TASK.EXE
24 $! Specify DEBUG or NODEBUG as P2 to compile with or without debugger
27 $! Specify which compiler at P3 to try to compile under.
33 $! If you don't speficy a compiler, it will try to determine which
34 $! "C" compiler to use.
36 $! P4, if defined, sets a TCP/IP library to use, through one of the following
40 $! TCPIP for TCPIP (post UCX)
41 $! SOCKETSHR for SOCKETSHR+NETLIB
43 $! P5, if defined, sets a compiler thread NOT needed on OpenVMS 7.1 (and up)
46 $! Define A TCP/IP Library That We Will Need To Link To.
47 $! (That Is, If We Need To Link To One.)
51 $! Check What Architecture We Are Using.
53 $ IF (F$GETSYI("CPU").LT.128)
56 $! The Architecture Is VAX.
64 $! The Architecture Is Alpha, IA64 or whatever comes in the future.
66 $ ARCH = F$EDIT( F$GETSYI( "ARCH_NAME"), "UPCASE")
67 $ IF (ARCH .EQS. "") THEN ARCH = "UNK"
69 $! End The Architecture Check.
73 $! Define The OBJ Directory.
75 $ OBJ_DIR := SYS$DISK:[-.'ARCH'.OBJ.SSL]
77 $! Define The EXE Directory.
79 $ EXE_DIR := SYS$DISK:[-.'ARCH'.EXE.SSL]
81 $! Check To Make Sure We Have Valid Command Line Parameters.
85 $! Initialise logical names and such
89 $! Tell The User What Kind of Machine We Run On.
91 $ WRITE SYS$OUTPUT "Compiling On A ",ARCH," Machine."
93 $! Check To See If The Architecture Specific OBJ Directory Exists.
95 $ IF (F$PARSE(OBJ_DIR).EQS."")
98 $! It Dosen't Exist, So Create It.
100 $ CREATE/DIR 'OBJ_DIR'
102 $! End The Architecture Specific OBJ Directory Check.
106 $! Check To See If The Architecture Specific Directory Exists.
108 $ IF (F$PARSE(EXE_DIR).EQS."")
111 $! It Dosen't Exist, So Create It.
113 $ CREATE/DIR 'EXE_DIR'
115 $! End The Architecture Specific Directory Check.
119 $! Define The Library Name.
121 $ SSL_LIB := 'EXE_DIR'LIBSSL.OLB
123 $! Define The CRYPTO-LIB We Are To Use.
125 $ CRYPTO_LIB := SYS$DISK:[-.'ARCH'.EXE.CRYPTO]LIBCRYPTO.OLB
127 $! Check To See What We Are To Do.
129 $ IF (BUILDALL.EQS."TRUE")
132 $! Since Nothing Special Was Specified, Do Everything.
141 $! Build Just What The User Wants Us To Build.
145 $! End The BUILDALL Check.
155 $! Compile The Library.
159 $! Check To See If We Already Have A "[.xxx.EXE.SSL]LIBSSL.OLB" Library...
161 $ IF (F$SEARCH(SSL_LIB).EQS."")
164 $! Guess Not, Create The Library.
166 $ LIBRARY/CREATE/OBJECT 'SSL_LIB'
168 $! End The Library Exist Check.
172 $! Define The Different SSL "library" Files.
174 $ LIB_SSL = "s2_meth,s2_srvr,s2_clnt,s2_lib,s2_enc,s2_pkt,"+ -
175 "s3_meth,s3_srvr,s3_clnt,s3_lib,s3_enc,s3_pkt,s3_both,"+ -
176 "s23_meth,s23_srvr,s23_clnt,s23_lib,s23_pkt,"+ -
177 "t1_meth,t1_srvr,t1_clnt,t1_lib,t1_enc,"+ -
178 "d1_meth,d1_srvr,d1_clnt,d1_lib,d1_pkt,"+ -
180 "ssl_lib,ssl_err2,ssl_cert,ssl_sess,"+ -
181 "ssl_ciph,ssl_stat,ssl_rsa,"+ -
182 "ssl_asn1,ssl_txt,ssl_algs,"+ -
183 "bio_ssl,ssl_err,kssl"
185 $! Tell The User That We Are Compiling The Library.
187 $ WRITE SYS$OUTPUT "Building The ",SSL_LIB," Library."
189 $! Define A File Counter And Set It To "0"
193 $! Top Of The File Loop.
197 $! O.K, Extract The File Name From The File List.
199 $ FILE_NAME = F$ELEMENT(FILE_COUNTER,",",LIB_SSL)
201 $! Check To See If We Are At The End Of The File List.
203 $ IF (FILE_NAME.EQS.",") THEN GOTO FILE_DONE
205 $! Increment The Counter.
207 $ FILE_COUNTER = FILE_COUNTER + 1
209 $! Create The Source File Name.
211 $ SOURCE_FILE = "SYS$DISK:[]" + FILE_NAME + ".C"
213 $! Create The Object File Name.
215 $ OBJECT_FILE = OBJ_DIR + FILE_NAME + ".OBJ"
216 $ ON WARNING THEN GOTO NEXT_FILE
218 $! Check To See If The File We Want To Compile Is Actually There.
220 $ IF (F$SEARCH(SOURCE_FILE).EQS."")
223 $! Tell The User That The File Dosen't Exist.
225 $ WRITE SYS$OUTPUT ""
226 $ WRITE SYS$OUTPUT "The File ",SOURCE_FILE," Dosen't Exist."
227 $ WRITE SYS$OUTPUT ""
233 $! End The File Exists Check.
237 $! Tell The User What File We Are Compiling.
239 $ WRITE SYS$OUTPUT " ",FILE_NAME,".c"
243 $ ON ERROR THEN GOTO NEXT_FILE
244 $ CC/OBJECT='OBJECT_FILE' 'SOURCE_FILE'
246 $! Add It To The Library.
248 $ LIBRARY/REPLACE/OBJECT 'SSL_LIB' 'OBJECT_FILE'
250 $! Time To Clean Up The Object File.
252 $ DELETE 'OBJECT_FILE';*
254 $! Go Back And Get The Next File Name.
258 $! All Done With This Library.
262 $! Tell The User That We Are All Done.
264 $ WRITE SYS$OUTPUT "Library ",SSL_LIB," Compiled."
271 $! Check To See If We Have The Proper Libraries.
275 $! Check To See If We Have A Linker Option File.
277 $ GOSUB CHECK_OPT_FILE
279 $! Check To See If The File We Want To Compile Is Actually There.
281 $ IF (F$SEARCH("SYS$DISK:[]SSL_TASK.C").EQS."")
284 $! Tell The User That The File Dosen't Exist.
286 $ WRITE SYS$OUTPUT ""
287 $ WRITE SYS$OUTPUT "The File SSL_TASK.C Dosen't Exist."
288 $ WRITE SYS$OUTPUT ""
294 $! End The SSL_TASK.C File Check.
298 $! Tell The User We Are Creating The SSL_TASK.
300 $ WRITE SYS$OUTPUT "Creating SSL_TASK OSU HTTP SSL Engine."
304 $ ON ERROR THEN GOTO SSL_TASK_END
305 $ CC5/OBJECT='OBJ_DIR'SSL_TASK.OBJ SYS$DISK:[]SSL_TASK.C
308 $! Check To See If We Are To Link With A Specific TCP/IP Library.
310 $ IF (TCPIP_LIB.NES."")
313 $! Link With TCP/IP Library.
315 $ LINK/'DEBUGGER'/'TRACEBACK'/EXE='EXE_DIR'SSL_TASK.EXE -
316 'OBJ_DIR'SSL_TASK.OBJ, -
317 'SSL_LIB'/LIBRARY,'CRYPTO_LIB'/LIBRARY, -
318 'TCPIP_LIB','OPT_FILE'/OPTION
324 $! Don't Link With TCP/IP Library.
326 $ LINK/'DEBUGGER'/'TRACEBACK'/EXE='EXE_DIR'SSL_TASK.EXE -
327 'OBJ_DIR'SSL_TASK.OBJ,-
328 'SSL_LIB'/LIBRARY,'CRYPTO_LIB'/LIBRARY, -
331 $! End The TCP/IP Library Check.
340 $! Check For The Link Option FIle.
344 $! Check To See If We Need To Make A VAX C Option File.
346 $ IF (COMPILER.EQS."VAXC")
349 $! Check To See If We Already Have A VAX C Linker Option File.
351 $ IF (F$SEARCH(OPT_FILE).EQS."")
354 $! We Need A VAX C Linker Option File.
359 ! Default System Options File To Link Agianst
360 ! The Sharable VAX C Runtime Library.
362 SYS$SHARE:VAXCRTL.EXE/SHARE
365 $! End The Option File Check.
369 $! End The VAXC Check.
373 $! Check To See If We Need A GNU C Option File.
375 $ IF (COMPILER.EQS."GNUC")
378 $! Check To See If We Already Have A GNU C Linker Option File.
380 $ IF (F$SEARCH(OPT_FILE).EQS."")
383 $! We Need A GNU C Linker Option File.
388 ! Default System Options File To Link Agianst
389 ! The Sharable C Runtime Library.
391 GNU_CC:[000000]GCCLIB/LIBRARY
392 SYS$SHARE:VAXCRTL/SHARE
395 $! End The Option File Check.
399 $! End The GNU C Check.
403 $! Check To See If We Need A DEC C Option File.
405 $ IF (COMPILER.EQS."DECC")
408 $! Check To See If We Already Have A DEC C Linker Option File.
410 $ IF (F$SEARCH(OPT_FILE).EQS."")
413 $! Figure Out If We Need A non-VAX Or A VAX Linker Option File.
415 $ IF (ARCH.EQS."VAX")
418 $! We Need A DEC C Linker Option File For VAX.
423 ! Default System Options File To Link Agianst
424 ! The Sharable DEC C Runtime Library.
426 SYS$SHARE:DECC$SHR.EXE/SHARE
433 $! Create The non-VAX Linker Option File.
438 ! Default System Options File For non-VAX To Link Agianst
439 ! The Sharable C Runtime Library.
441 SYS$SHARE:CMA$OPEN_LIB_SHR/SHARE
442 SYS$SHARE:CMA$OPEN_RTL/SHARE
445 $! End The DEC C Option File Check.
449 $! End The Option File Search.
453 $! End The DEC C Check.
457 $! Tell The User What Linker Option File We Are Using.
459 $ WRITE SYS$OUTPUT "Using Linker Option File ",OPT_FILE,"."
466 $! Look For The VAX Library LIBSSL.OLB.
468 $ IF (F$SEARCH(SSL_LIB).EQS."")
471 $! Tell The User We Can't Find The LIBSSL.OLB Library.
473 $ WRITE SYS$OUTPUT ""
474 $ WRITE SYS$OUTPUT "Can't Find The Library ",SSL_LIB,"."
475 $ WRITE SYS$OUTPUT "We Can't Link Without It."
476 $ WRITE SYS$OUTPUT ""
478 $! Since We Can't Link Without It, Exit.
482 $! End The LIBSSL.OLB Library Check.
486 $! Look For The Library LIBCRYPTO.OLB.
488 $ IF (F$SEARCH(CRYPTO_LIB).EQS."")
491 $! Tell The User We Can't Find The LIBCRYPTO.OLB Library.
493 $ WRITE SYS$OUTPUT ""
494 $ WRITE SYS$OUTPUT "Can't Find The Library ",CRYPTO_LIB,"."
495 $ WRITE SYS$OUTPUT "We Can't Link Without It."
496 $ WRITE SYS$OUTPUT ""
498 $! Since We Can't Link Without It, Exit.
502 $! End The LIBCRYPTO.OLB Library Check.
510 $! Check The User's Options.
514 $! Check To See If P1 Is Blank.
519 $! P1 Is Blank, So Build Everything.
527 $! Else, Check To See If P1 Has A Valid Arguement.
529 $ IF (P1.EQS."LIBRARY").OR.(P1.EQS."SSL_TASK")
532 $! A Valid Arguement.
540 $! Tell The User We Don't Know What They Want.
542 $ WRITE SYS$OUTPUT ""
543 $ WRITE SYS$OUTPUT "The Option ",P1," Is Invalid. The Valid Options Are:"
544 $ WRITE SYS$OUTPUT ""
545 $ WRITE SYS$OUTPUT " ALL : Just Build Everything."
546 $ WRITE SYS$OUTPUT " LIBRARY : To Compile Just The [.xxx.EXE.SSL]LIBSSL.OLB Library."
547 $ WRITE SYS$OUTPUT " SSL_TASK : To Compile Just The [.xxx.EXE.SSL]SSL_TASK.EXE Program."
548 $ WRITE SYS$OUTPUT ""
549 $ WRITE SYS$OUTPUT " Where 'xxx' Stands For:"
550 $ WRITE SYS$OUTPUT ""
551 $ WRITE SYS$OUTPUT " ALPHA : Alpha Architecture."
552 $ WRITE SYS$OUTPUT " IA64 : IA64 Architecture."
553 $ WRITE SYS$OUTPUT " VAX : VAX Architecture."
554 $ WRITE SYS$OUTPUT ""
560 $! End The Valid Arguement Check.
568 $! Check To See If P2 Is Blank.
570 $ IF (P2.EQS."NODEBUG")
573 $! P2 Is NODEBUG, So Compile Without Debugger Information.
575 $ DEBUGGER = "NODEBUG"
576 $ TRACEBACK = "NOTRACEBACK"
577 $ GCC_OPTIMIZE = "OPTIMIZE"
578 $ CC_OPTIMIZE = "OPTIMIZE"
579 $ WRITE SYS$OUTPUT "No Debugger Information Will Be Produced During Compile."
580 $ WRITE SYS$OUTPUT "Compiling With Compiler Optimization."
586 $! Check To See If We Are To Compile With Debugger Information.
588 $ IF (P2.EQS."DEBUG")
591 $! Compile With Debugger Information.
594 $ TRACEBACK = "TRACEBACK"
595 $ GCC_OPTIMIZE = "NOOPTIMIZE"
596 $ CC_OPTIMIZE = "NOOPTIMIZE"
597 $ WRITE SYS$OUTPUT "Debugger Information Will Be Produced During Compile."
598 $ WRITE SYS$OUTPUT "Compiling Without Compiler Optimization."
601 $! Tell The User Entered An Invalid Option..
603 $ WRITE SYS$OUTPUT ""
604 $ WRITE SYS$OUTPUT "The Option ",P2," Is Invalid. The Valid Options Are:"
605 $ WRITE SYS$OUTPUT ""
606 $ WRITE SYS$OUTPUT " DEBUG : Compile With The Debugger Information."
607 $ WRITE SYS$OUTPUT " NODEBUG : Compile Without The Debugger Information."
608 $ WRITE SYS$OUTPUT ""
614 $! End The Valid Arguement Check.
622 $! Special Threads For OpenVMS v7.1 Or Later
624 $! Written By: Richard Levitte
625 $! richard@levitte.org
628 $! Check To See If We Have A Option For P5.
633 $! Get The Version Of VMS We Are Using.
636 $ TMP = F$ELEMENT(0,"-",F$EXTRACT(1,4,F$GETSYI("VERSION")))
637 $ TMP = F$INTEGER(F$ELEMENT(0,".",TMP)+F$ELEMENT(1,".",TMP))
639 $! Check To See If The VMS Version Is v7.1 Or Later.
644 $! We Have OpenVMS v7.1 Or Later, So Use The Special Threads.
646 $ ISSEVEN := ,PTHREAD_USE_D4
648 $! End The VMS Version Check.
656 $! Check To See If P3 Is Blank.
661 $! O.K., The User Didn't Specify A Compiler, Let's Try To
662 $! Find Out Which One To Use.
664 $! Check To See If We Have GNU C.
666 $ IF (F$TRNLNM("GNU_CC").NES."")
669 $! Looks Like GNUC, Set To Use GNUC.
673 $! End The GNU C Compiler Check.
677 $! Check To See If We Have VAXC Or DECC.
679 $ IF (ARCH.NES."VAX").OR.(F$TRNLNM("DECC$CC_DEFAULT").NES."")
682 $! Looks Like DECC, Set To Use DECC.
690 $! Looks Like VAXC, Set To Use VAXC.
694 $! End The VAXC Compiler Check.
698 $! End The DECC & VAXC Compiler Check.
702 $! End The Compiler Check.
706 $! Check To See If We Have A Option For P4.
711 $! Find out what socket library we have available
713 $ IF F$PARSE("SOCKETSHR:") .NES. ""
716 $! We have SOCKETSHR, and it is my opinion that it's the best to use.
722 $ WRITE SYS$OUTPUT "Using SOCKETSHR for TCP/IP"
724 $! Else, let's look for something else
728 $! Like UCX (the reason to do this before Multinet is that the UCX
729 $! emulation is easier to use...)
731 $ IF F$TRNLNM("UCX$IPC_SHR") .NES. "" -
732 .OR. F$PARSE("SYS$SHARE:UCX$IPC_SHR.EXE") .NES. "" -
733 .OR. F$PARSE("SYS$LIBRARY:UCX$IPC.OLB") .NES. ""
736 $! Last resort: a UCX or UCX-compatible library
742 $ WRITE SYS$OUTPUT "Using UCX or an emulation thereof for TCP/IP"
750 $! Set Up Initial CC Definitions, Possibly With User Ones
752 $ CCDEFS = "TCPIP_TYPE_''P4'"
753 $ IF F$TYPE(USER_CCDEFS) .NES. "" THEN CCDEFS = CCDEFS + "," + USER_CCDEFS
755 $ IF F$TYPE(USER_CCFLAGS) .NES. "" THEN CCEXTRAFLAGS = USER_CCFLAGS
756 $ CCDISABLEWARNINGS = "LONGLONGTYPE,LONGLONGSUFX,FOUNDCR"
757 $ IF F$TYPE(USER_CCDISABLEWARNINGS) .NES. "" THEN -
758 CCDISABLEWARNINGS = CCDISABLEWARNINGS + "," + USER_CCDISABLEWARNINGS
760 $! Check To See If The User Entered A Valid Paramter.
762 $ IF (P3.EQS."VAXC").OR.(P3.EQS."DECC").OR.(P3.EQS."GNUC")
765 $! Check To See If The User Wanted DECC.
770 $! Looks Like DECC, Set To Use DECC.
774 $! Tell The User We Are Using DECC.
776 $ WRITE SYS$OUTPUT "Using DECC 'C' Compiler."
781 $ IF ARCH.EQS."VAX" .AND. F$TRNLNM("DECC$CC_DEFAULT").NES."/DECC" -
783 $ CC = CC + "/''CC_OPTIMIZE'/''DEBUGGER'/STANDARD=ANSI89" + -
784 "/NOLIST/PREFIX=ALL" + -
785 "/INCLUDE=(SYS$DISK:[-.CRYPTO],SYS$DISK:[-])" + CCEXTRAFLAGS
787 $! Define The Linker Options File Name.
789 $ OPT_FILE = "''EXE_DIR'VAX_DECC_OPTIONS.OPT"
795 $! Check To See If We Are To Use VAXC.
800 $! Looks Like VAXC, Set To Use VAXC.
804 $! Tell The User We Are Using VAX C.
806 $ WRITE SYS$OUTPUT "Using VAXC 'C' Compiler."
808 $! Compile Using VAXC.
813 $ WRITE SYS$OUTPUT "There is no VAX C on ''ARCH'!"
816 $ IF F$TRNLNM("DECC$CC_DEFAULT").EQS."/DECC" THEN CC = "CC/VAXC"
817 $ CC = CC + "/''CC_OPTIMIZE'/''DEBUGGER'/NOLIST" + -
818 "/INCLUDE=(SYS$DISK:[-.CRYPTO],SYS$DISK:[-])" + CCEXTRAFLAGS
819 $ CCDEFS = CCDEFS + ",""VAXC"""
821 $! Define <sys> As SYS$COMMON:[SYSLIB]
823 $ DEFINE/NOLOG SYS SYS$COMMON:[SYSLIB]
825 $! Define The Linker Options File Name.
827 $ OPT_FILE = "''EXE_DIR'VAX_VAXC_OPTIONS.OPT"
833 $! Check To See If We Are To Use GNU C.
838 $! Looks Like GNUC, Set To Use GNUC.
842 $! Tell The User We Are Using GNUC.
844 $ WRITE SYS$OUTPUT "Using GNU 'C' Compiler."
848 $ IF F$TYPE(GCC) .EQS. "" THEN GCC := GCC
849 $ CC = GCC+"/NOCASE_HACK/''GCC_OPTIMIZE'/''DEBUGGER'/NOLIST" + -
850 "/INCLUDE=(SYS$DISK:[-.CRYPTO],SYS$DISK:[-])" + CCEXTRAFLAGS
852 $! Define The Linker Options File Name.
854 $ OPT_FILE = "''EXE_DIR'VAX_GNUC_OPTIONS.OPT"
856 $! End The GNU C Check.
860 $! Set up default defines
862 $ CCDEFS = """FLAT_INC=1""," + CCDEFS
864 $! Finish up the definition of CC.
866 $ IF COMPILER .EQS. "DECC"
868 $ IF CCDISABLEWARNINGS .EQS. ""
870 $ CC4DISABLEWARNINGS = "DOLLARID"
872 $ CC4DISABLEWARNINGS = CCDISABLEWARNINGS + ",DOLLARID"
873 $ CCDISABLEWARNINGS = "/WARNING=(DISABLE=(" + CCDISABLEWARNINGS + "))"
875 $ CC4DISABLEWARNINGS = "/WARNING=(DISABLE=(" + CC4DISABLEWARNINGS + "))"
877 $ CCDISABLEWARNINGS = ""
878 $ CC4DISABLEWARNINGS = ""
880 $ CC2 = CC + "/DEFINE=(" + CCDEFS + ",_POSIX_C_SOURCE)" + CCDISABLEWARNINGS
881 $ CC3 = CC + "/DEFINE=(" + CCDEFS + ISSEVEN + ")" + CCDISABLEWARNINGS
882 $ CC = CC + "/DEFINE=(" + CCDEFS + ")" + CCDISABLEWARNINGS
883 $ IF COMPILER .EQS. "DECC"
885 $ CC4 = CC - CCDISABLEWARNINGS + CC4DISABLEWARNINGS
886 $ CC5 = CC3 - CCDISABLEWARNINGS + CC4DISABLEWARNINGS
892 $! Show user the result
894 $ WRITE/SYMBOL SYS$OUTPUT "Main Compiling Command: ",CC
896 $! Else The User Entered An Invalid Arguement.
900 $! Tell The User We Don't Know What They Want.
902 $ WRITE SYS$OUTPUT ""
903 $ WRITE SYS$OUTPUT "The Option ",P3," Is Invalid. The Valid Options Are:"
904 $ WRITE SYS$OUTPUT ""
905 $ WRITE SYS$OUTPUT " VAXC : To Compile With VAX C."
906 $ WRITE SYS$OUTPUT " DECC : To Compile With DEC C."
907 $ WRITE SYS$OUTPUT " GNUC : To Compile With GNU C."
908 $ WRITE SYS$OUTPUT ""
915 $! Time to check the contents, and to make sure we get the correct library.
917 $ IF P4.EQS."SOCKETSHR" .OR. P4.EQS."MULTINET" .OR. P4.EQS."UCX" -
918 .OR. P4.EQS."TCPIP" .OR. P4.EQS."NONE"
921 $! Check to see if SOCKETSHR was chosen
923 $ IF P4.EQS."SOCKETSHR"
926 $! Set the library to use SOCKETSHR
928 $ TCPIP_LIB = "SYS$DISK:[-.VMS]SOCKETSHR_SHR.OPT/OPT"
930 $! Done with SOCKETSHR
934 $! Check to see if MULTINET was chosen
936 $ IF P4.EQS."MULTINET"
939 $! Set the library to use UCX emulation.
943 $! Done with MULTINET
947 $! Check to see if UCX was chosen
952 $! Set the library to use UCX.
954 $ TCPIP_LIB = "SYS$DISK:[-.VMS]UCX_SHR_DECC.OPT/OPT"
955 $ IF F$TRNLNM("UCX$IPC_SHR") .NES. ""
957 $ TCPIP_LIB = "SYS$DISK:[-.VMS]UCX_SHR_DECC_LOG.OPT/OPT"
959 $ IF COMPILER .NES. "DECC" .AND. ARCH .EQS. "VAX" THEN -
960 TCPIP_LIB = "SYS$DISK:[-.VMS]UCX_SHR_VAXC.OPT/OPT"
967 $! Check to see if TCPIP was chosen
972 $! Set the library to use TCPIP (post UCX).
974 $ TCPIP_LIB = "SYS$DISK:[-.VMS]TCPIP_SHR_DECC.OPT/OPT"
980 $! Check to see if NONE was chosen
985 $! Do not use a TCPIP library.
995 $ WRITE SYS$OUTPUT "TCP/IP library spec: ", TCPIP_LIB
997 $! Else The User Entered An Invalid Arguement.
1001 $! Tell The User We Don't Know What They Want.
1003 $ WRITE SYS$OUTPUT ""
1004 $ WRITE SYS$OUTPUT "The Option ",P4," Is Invalid. The Valid Options Are:"
1005 $ WRITE SYS$OUTPUT ""
1006 $ WRITE SYS$OUTPUT " SOCKETSHR : To link with SOCKETSHR TCP/IP library."
1007 $ WRITE SYS$OUTPUT " UCX : To link with UCX TCP/IP library."
1008 $ WRITE SYS$OUTPUT " TCPIP : To link with TCPIP (post UCX) TCP/IP library."
1009 $ WRITE SYS$OUTPUT ""
1015 $! Done with TCP/IP libraries
1019 $! Time To RETURN...
1025 $! Save old value of the logical name OPENSSL
1027 $ __SAVE_OPENSSL = F$TRNLNM("OPENSSL","LNM$PROCESS_TABLE")
1029 $! Save directory information
1031 $ __HERE = F$PARSE(F$PARSE("A.;",F$ENVIRONMENT("PROCEDURE"))-"A.;","[]A.;") - "A.;"
1032 $ __HERE = F$EDIT(__HERE,"UPCASE")
1033 $ __TOP = __HERE - "SSL]"
1034 $ __INCLUDE = __TOP + "INCLUDE.OPENSSL]"
1036 $! Set up the logical name OPENSSL to point at the include directory
1038 $ DEFINE OPENSSL/NOLOG '__INCLUDE'
1046 $! Restore the logical name OPENSSL if it had a value
1048 $ IF __SAVE_OPENSSL .EQS. ""
1052 $ DEFINE/NOLOG OPENSSL '__SAVE_OPENSSL'