3 $! Written By: Robert Byer
5 $! A-Com Computing, Inc.
6 $! byer@mail.all-net.net
8 $! Changes by Richard Levitte <richard@levitte.org>
9 $! Zoltan Arpadffy <arpadffy@polarhome.com>
11 $! This command files compiles and creates the "[.xxx.EXE.CRYPTO]LIBCRYPTO.OLB"
12 $! library for OpenSSL. The "xxx" denotes the machine architecture, ALPHA,
15 $! It was re-written so it would try to determine what "C" compiler to use
16 $! or you can specify which "C" 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.CRYPTO]LIBCRYPTO.OLB Library.
22 $! APPS To just compile the [.xxx.EXE.CRYPTO]*.EXE
23 $! ALL To do both LIBRARY and APPS
25 $! Specify DEBUG or NODEBUG as P2 to compile with or without debugger
28 $! Specify which compiler at P3 to try to compile under.
34 $! If you don't specify a compiler, it will try to determine which
35 $! "C" compiler to use.
37 $! P4, if defined, sets a TCP/IP library to use, through one of the following
41 $! TCPIP For TCPIP (post UCX)
42 $! SOCKETSHR For SOCKETSHR+NETLIB
44 $! P5, if defined, sets a compiler thread NOT needed on OpenVMS 7.1 (and up)
46 $! P6, if defined, sets a choice of crypto methods to compile.
47 $! WARNING: this should only be done to recompile some part of an already
48 $! fully compiled library.
50 $! P7, if defined, specifies the C pointer size. Ignored on VAX.
51 $! ("64=ARGV" gives more efficient code with HP C V7.3 or newer.)
52 $! Supported values are:
54 $! "" Compile with default (/NOPOINTER_SIZE)
55 $! 32 Compile with /POINTER_SIZE=32 (SHORT)
56 $! 64 Compile with /POINTER_SIZE=64[=ARGV] (LONG[=ARGV]).
57 $! (Automatically select ARGV if compiler supports it.)
58 $! 64= Compile with /POINTER_SIZE=64 (LONG).
59 $! 64=ARGV Compile with /POINTER_SIZE=64=ARGV (LONG=ARGV).
61 $! P8, if defined, specifies a directory where ZLIB files (zlib.h,
62 $! libz.olb) may be found. Optionally, a non-default object library
63 $! name may be included ("dev:[dir]libz_64.olb", for example).
68 $ proc = f$environment( "procedure")
69 $ write sys$output "@@@ "+ -
70 f$parse( proc, , , "name")+ f$parse( proc, , , "type")
72 $! Define A TCP/IP Library That We Will Need To Link To.
73 $! (That Is, If We Need To Link To One.)
78 $! Check Which Architecture We Are Using.
80 $ IF (F$GETSYI("CPU").LT.128)
83 $! The Architecture Is VAX
91 $! The Architecture Is Alpha, IA64 or whatever comes in the future.
93 $ ARCH = F$EDIT( F$GETSYI( "ARCH_NAME"), "UPCASE")
94 $ IF (ARCH .EQS. "") THEN ARCH = "UNK"
96 $! End The Architecture Check.
105 $! Define The Different Encryption Types.
106 $! NOTE: Some might think this list ugly. However, it's made this way to
107 $! reflect the SDIRS variable in [-]Makefile.org as closely as possible,
108 $! thereby making it fairly easy to verify that the lists are the same.
110 $ ET_WHIRLPOOL = "WHRLPOOL"
111 $ IF ARCH .EQS. "VAX" THEN ET_WHIRLPOOL = ""
112 $ ENCRYPT_TYPES = "Basic,"+ -
114 "MD2,MD4,MD5,SHA,MDC2,HMAC,RIPEMD,"+ET_WHIRLPOOL+","+ -
115 "DES,AES,RC2,RC4,RC5,IDEA,BF,CAST,CAMELLIA,SEED,MODES,"+ -
116 "BN,EC,RSA,DSA,ECDSA,DH,ECDH,DSO,ENGINE,"+ -
117 "BUFFER,BIO,STACK,LHASH,RAND,ERR,"+ -
118 "EVP,EVP_2,EVP_3,ASN1,ASN1_2,PEM,X509,X509V3,"+ -
119 "CONF,TXT_DB,PKCS7,PKCS12,COMP,OCSP,UI,KRB5,"+ -
120 "CMS,PQUEUE,TS,JPAKE,SRP,STORE,CMAC"
122 $! Check To Make Sure We Have Valid Command Line Parameters.
124 $ GOSUB CHECK_OPTIONS
126 $! Define The OBJ and EXE Directories.
128 $ OBJ_DIR := SYS$DISK:[-.'ARCHD'.OBJ.CRYPTO]
129 $ EXE_DIR := SYS$DISK:[-.'ARCHD'.EXE.CRYPTO]
131 $! Specify the destination directory in any /MAP option.
133 $ if (LINKMAP .eqs. "MAP")
135 $ LINKMAP = LINKMAP+ "=''EXE_DIR'"
138 $! Add the location prefix to the linker options file name.
140 $ if (OPT_FILE .nes. "")
142 $ OPT_FILE = EXE_DIR+ OPT_FILE
145 $! Initialise logical names and such
149 $! Tell The User What Kind of Machine We Run On.
151 $ WRITE SYS$OUTPUT "Host system architecture: ''ARCHD'"
154 $! Check To See If The Architecture Specific OBJ Directory Exists.
156 $ IF (F$PARSE(OBJ_DIR).EQS."")
159 $! It Dosen't Exist, So Create It.
161 $ CREATE/DIR 'OBJ_DIR'
163 $! End The Architecture Specific OBJ Directory Check.
167 $! Check To See If The Architecture Specific Directory Exists.
169 $ IF (F$PARSE(EXE_DIR).EQS."")
172 $! It Dosen't Exist, So Create It.
174 $ CREATE/DIRECTORY 'EXE_DIR'
176 $! End The Architecture Specific Directory Check.
180 $! Define The Library Name.
182 $ LIB_NAME := 'EXE_DIR'SSL_LIBCRYPTO'LIB32'.OLB
184 $! Define The CRYPTO-LIB We Are To Use.
186 $ CRYPTO_LIB := 'EXE_DIR'SSL_LIBCRYPTO'LIB32'.OLB
188 $! Check To See If We Already Have A "[.xxx.EXE.CRYPTO]LIBCRYPTO.OLB" Library...
190 $ IF (F$SEARCH(LIB_NAME).EQS."")
193 $! Guess Not, Create The Library.
195 $ LIBRARY/CREATE/OBJECT 'LIB_NAME'
197 $! End The Library Check.
201 $! Build our options file for the application
203 $ GOSUB CHECK_OPT_FILE
205 $! Define The Different Encryption "library" Strings.
207 $ APPS_DES = "DES/DES,CBC3_ENC"
208 $ APPS_PKCS7 = "ENC/ENC;DEC/DEC;SIGN/SIGN;VERIFY/VERIFY,EXAMPLE"
210 $ LIB_ = "cryptlib,mem,mem_clr,mem_dbg,cversion,ex_data,cpt_err,"+ -
211 "ebcdic,uid,o_time,o_str,o_dir,o_fips.c,o_init,fips_ers"
212 $ LIB_MD2 = "md2_dgst,md2_one"
213 $ LIB_MD4 = "md4_dgst,md4_one"
214 $ LIB_MD5 = "md5_dgst,md5_one"
215 $ LIB_SHA = "sha_dgst,sha1dgst,sha_one,sha1_one,sha256,sha512"
216 $ LIB_MDC2 = "mdc2dgst,mdc2_one"
217 $ LIB_HMAC = "hmac,hm_ameth,hm_pmeth"
218 $ LIB_RIPEMD = "rmd_dgst,rmd_one"
219 $ LIB_WHRLPOOL = "wp_dgst,wp_block"
220 $ LIB_DES = "set_key,ecb_enc,cbc_enc,"+ -
221 "ecb3_enc,cfb64enc,cfb64ede,cfb_enc,ofb64ede,"+ -
222 "enc_read,enc_writ,ofb64enc,"+ -
223 "ofb_enc,str2key,pcbc_enc,qud_cksm,rand_key,"+ -
224 "des_enc,fcrypt_b,"+ -
225 "fcrypt,xcbc_enc,rpc_enc,cbc_cksm,"+ -
226 "ede_cbcm_enc,des_old,des_old2,read2pwd"
227 $ LIB_RC2 = "rc2_ecb,rc2_skey,rc2_cbc,rc2cfb64,rc2ofb64"
228 $ LIB_RC4 = "rc4_skey,rc4_enc,rc4_utl"
229 $ LIB_RC5 = "rc5_skey,rc5_ecb,rc5_enc,rc5cfb64,rc5ofb64"
230 $ LIB_IDEA = "i_cbc,i_cfb64,i_ofb64,i_ecb,i_skey"
231 $ LIB_BF = "bf_skey,bf_ecb,bf_enc,bf_cfb64,bf_ofb64"
232 $ LIB_CAST = "c_skey,c_ecb,c_enc,c_cfb64,c_ofb64"
233 $ LIB_CAMELLIA = "camellia,cmll_misc,cmll_ecb,cmll_cbc,cmll_ofb,"+ -
234 "cmll_cfb,cmll_ctr,cmll_utl"
235 $ LIB_SEED = "seed,seed_ecb,seed_cbc,seed_cfb,seed_ofb"
236 $ LIB_MODES = "cbc128,ctr128,cts128,cfb128,ofb128,gcm128,"+ -
238 $ LIB_BN_ASM = "[.asm]vms.mar,vms-helper"
239 $ IF F$TRNLNM("OPENSSL_NO_ASM") .OR. ARCH .NES. "VAX" THEN -
240 LIB_BN_ASM = "bn_asm"
241 $ LIB_BN = "bn_add,bn_div,bn_exp,bn_lib,bn_ctx,bn_mul,bn_mod,"+ -
242 "bn_print,bn_rand,bn_shift,bn_word,bn_blind,"+ -
243 "bn_kron,bn_sqrt,bn_gcd,bn_prime,bn_err,bn_sqr,"+LIB_BN_ASM+","+ -
244 "bn_recp,bn_mont,bn_mpi,bn_exp2,bn_gf2m,bn_nist,"+ -
245 "bn_depr,bn_const,bn_x931p"
246 $ LIB_EC = "ec_lib,ecp_smpl,ecp_mont,ecp_nist,ec_cvt,ec_mult,"+ -
247 "ec_err,ec_curve,ec_check,ec_print,ec_asn1,ec_key,"+ -
248 "ec2_smpl,ec2_mult,ec_ameth,ec_pmeth,eck_prn,"+ -
249 "ecp_nistp224,ecp_nistp256,ecp_nistp521,ecp_nistputil,"+ -
250 "ecp_oct,ec2_oct,ec_oct"
251 $ LIB_RSA = "rsa_eay,rsa_gen,rsa_lib,rsa_sign,rsa_saos,rsa_err,"+ -
252 "rsa_pk1,rsa_ssl,rsa_none,rsa_oaep,rsa_chk,rsa_null,"+ -
253 "rsa_pss,rsa_x931,rsa_asn1,rsa_depr,rsa_ameth,rsa_prn,"+ -
255 $ LIB_DSA = "dsa_gen,dsa_key,dsa_lib,dsa_asn1,dsa_vrf,dsa_sign,"+ -
256 "dsa_err,dsa_ossl,dsa_depr,dsa_ameth,dsa_pmeth,dsa_prn"
257 $ LIB_ECDSA = "ecs_lib,ecs_asn1,ecs_ossl,ecs_sign,ecs_vrf,ecs_err"
258 $ LIB_DH = "dh_asn1,dh_gen,dh_key,dh_lib,dh_check,dh_err,dh_depr,"+ -
259 "dh_ameth,dh_pmeth,dh_prn"
260 $ LIB_ECDH = "ech_lib,ech_ossl,ech_key,ech_err"
261 $ LIB_DSO = "dso_dl,dso_dlfcn,dso_err,dso_lib,dso_null,"+ -
262 "dso_openssl,dso_win32,dso_vms,dso_beos"
263 $ LIB_ENGINE = "eng_err,eng_lib,eng_list,eng_init,eng_ctrl,"+ -
264 "eng_table,eng_pkey,eng_fat,eng_all,"+ -
265 "tb_rsa,tb_dsa,tb_ecdsa,tb_dh,tb_ecdh,tb_rand,tb_store,"+ -
266 "tb_cipher,tb_digest,tb_pkmeth,tb_asnmth,"+ -
267 "eng_openssl,eng_dyn,eng_cnf,eng_cryptodev,"+ -
268 "eng_rsax,eng_rdrand"
269 $ LIB_AES = "aes_core,aes_misc,aes_ecb,aes_cbc,aes_cfb,aes_ofb,aes_ctr,"+ -
271 $ LIB_BUFFER = "buffer,buf_str,buf_err"
272 $ LIB_BIO = "bio_lib,bio_cb,bio_err,"+ -
273 "bss_mem,bss_null,bss_fd,"+ -
274 "bss_file,bss_sock,bss_conn,"+ -
275 "bf_null,bf_buff,b_print,b_dump,"+ -
276 "b_sock,bss_acpt,bf_nbio,bss_rtcp,bss_bio,bss_log,"+ -
279 $ LIB_STACK = "stack"
280 $ LIB_LHASH = "lhash,lh_stats"
281 $ LIB_RAND = "md_rand,randfile,rand_lib,rand_err,rand_egd,"+ -
283 $ LIB_ERR = "err,err_all,err_prn"
284 $ LIB_OBJECTS = "o_names,obj_dat,obj_lib,obj_err,obj_xref"
285 $ LIB_EVP = "encode,digest,evp_enc,evp_key,evp_acnf,"+ -
286 "e_des,e_bf,e_idea,e_des3,e_camellia,"+ -
287 "e_rc4,e_aes,names,e_seed,"+ -
288 "e_xcbc_d,e_rc2,e_cast,e_rc5"
289 $ LIB_EVP_2 = "m_null,m_md2,m_md4,m_md5,m_sha,m_sha1,m_wp," + -
290 "m_dss,m_dss1,m_mdc2,m_ripemd,m_ecdsa,"+ -
291 "p_open,p_seal,p_sign,p_verify,p_lib,p_enc,p_dec,"+ -
292 "bio_md,bio_b64,bio_enc,evp_err,e_null,"+ -
293 "c_all,c_allc,c_alld,evp_lib,bio_ok,"+-
294 "evp_pkey,evp_pbe,p5_crpt,p5_crpt2"
295 $ LIB_EVP_3 = "e_old,pmeth_lib,pmeth_fn,pmeth_gn,m_sigver,evp_fips,"+ -
296 "e_aes_cbc_hmac_sha1,e_rc4_hmac_md5"
297 $ LIB_ASN1 = "a_object,a_bitstr,a_utctm,a_gentm,a_time,a_int,a_octet,"+ -
298 "a_print,a_type,a_set,a_dup,a_d2i_fp,a_i2d_fp,"+ -
299 "a_enum,a_utf8,a_sign,a_digest,a_verify,a_mbstr,a_strex,"+ -
300 "x_algor,x_val,x_pubkey,x_sig,x_req,x_attrib,x_bignum,"+ -
301 "x_long,x_name,x_x509,x_x509a,x_crl,x_info,x_spki,nsseq,"+ -
302 "x_nx509,d2i_pu,d2i_pr,i2d_pu,i2d_pr"
303 $ LIB_ASN1_2 = "t_req,t_x509,t_x509a,t_crl,t_pkey,t_spki,t_bitst,"+ -
304 "tasn_new,tasn_fre,tasn_enc,tasn_dec,tasn_utl,tasn_typ,"+ -
305 "tasn_prn,ameth_lib,"+ -
306 "f_int,f_string,n_pkey,"+ -
307 "f_enum,x_pkey,a_bool,x_exten,bio_asn1,bio_ndef,asn_mime,"+ -
308 "asn1_gen,asn1_par,asn1_lib,asn1_err,a_bytes,a_strnid,"+ -
309 "evp_asn1,asn_pack,p5_pbe,p5_pbev2,p8_pkey,asn_moid"
310 $ LIB_PEM = "pem_sign,pem_seal,pem_info,pem_lib,pem_all,pem_err,"+ -
311 "pem_x509,pem_xaux,pem_oth,pem_pk8,pem_pkey,pvkfmt"
312 $ LIB_X509 = "x509_def,x509_d2,x509_r2x,x509_cmp,"+ -
313 "x509_obj,x509_req,x509spki,x509_vfy,"+ -
314 "x509_set,x509cset,x509rset,x509_err,"+ -
315 "x509name,x509_v3,x509_ext,x509_att,"+ -
316 "x509type,x509_lu,x_all,x509_txt,"+ -
317 "x509_trs,by_file,by_dir,x509_vpm"
318 $ LIB_X509V3 = "v3_bcons,v3_bitst,v3_conf,v3_extku,v3_ia5,v3_lib,"+ -
319 "v3_prn,v3_utl,v3err,v3_genn,v3_alt,v3_skey,v3_akey,v3_pku,"+ -
320 "v3_int,v3_enum,v3_sxnet,v3_cpols,v3_crld,v3_purp,v3_info,"+ -
321 "v3_ocsp,v3_akeya,v3_pmaps,v3_pcons,v3_ncons,v3_pcia,v3_pci,"+ -
322 "pcy_cache,pcy_node,pcy_data,pcy_map,pcy_tree,pcy_lib,"+ -
324 $ LIB_CONF = "conf_err,conf_lib,conf_api,conf_def,conf_mod,conf_mall,conf_sap"
325 $ LIB_TXT_DB = "txt_db"
326 $ LIB_PKCS7 = "pk7_asn1,pk7_lib,pkcs7err,pk7_doit,pk7_smime,pk7_attr,"+ -
328 $ LIB_PKCS12 = "p12_add,p12_asn,p12_attr,p12_crpt,p12_crt,p12_decr,"+ -
329 "p12_init,p12_key,p12_kiss,p12_mutl,"+ -
330 "p12_utl,p12_npas,pk12err,p12_p8d,p12_p8e"
331 $ LIB_COMP = "comp_lib,comp_err,"+ -
333 $ LIB_OCSP = "ocsp_asn,ocsp_ext,ocsp_ht,ocsp_lib,ocsp_cl,"+ -
334 "ocsp_srv,ocsp_prn,ocsp_vfy,ocsp_err"
335 $ LIB_UI_COMPAT = ",ui_compat"
336 $ LIB_UI = "ui_err,ui_lib,ui_openssl,ui_util"+LIB_UI_COMPAT
337 $ LIB_KRB5 = "krb5_asn"
338 $ LIB_CMS = "cms_lib,cms_asn1,cms_att,cms_io,cms_smime,cms_err,"+ -
339 "cms_sd,cms_dd,cms_cd,cms_env,cms_enc,cms_ess,"+ -
341 $ LIB_PQUEUE = "pqueue"
342 $ LIB_TS = "ts_err,ts_req_utils,ts_req_print,ts_rsp_utils,ts_rsp_print,"+ -
343 "ts_rsp_sign,ts_rsp_verify,ts_verify_ctx,ts_lib,ts_conf,"+ -
345 $ LIB_JPAKE = "jpake,jpake_err"
346 $ LIB_SRP = "srp_lib,srp_vfy"
347 $ LIB_STORE = "str_err,str_lib,str_meth,str_mem"
348 $ LIB_CMAC = "cmac,cm_ameth.c,cm_pmeth"
350 $! Setup exceptional compilations
357 $! The following lists must have leading and trailing commas, and no
358 $! embedded spaces. (They are scanned for ",name,".)
360 $ ! Add definitions for no threads on OpenVMS 7.1 and higher.
361 $ COMPILEWITH_CC3 = ",bss_rtcp,"
362 $ ! Disable the DOLLARID warning. Not needed with /STANDARD=RELAXED.
363 $ COMPILEWITH_CC4 = "" !!! ",a_utctm,bss_log,o_time,o_dir,"
364 $ ! Disable disjoint optimization on VAX with DECC.
365 $ COMPILEWITH_CC5 = ",md2_dgst,md4_dgst,md5_dgst,mdc2dgst," + -
366 "seed,sha_dgst,sha1dgst,rmd_dgst,bf_enc,"
367 $ ! Disable the MIXLINKAGE warning.
368 $ COMPILEWITH_CC6 = "" !!! ",enc_read,set_key,"
370 $! Figure Out What Other Modules We Are To Build.
374 $! Define A Module Counter.
382 $! Extract The Module Name From The Encryption List.
384 $ MODULE_NAME = F$ELEMENT(MODULE_COUNTER,",",ENCRYPT_TYPES)
385 $ IF MODULE_NAME.EQS."Basic" THEN MODULE_NAME = ""
386 $ MODULE_NAME1 = MODULE_NAME
388 $! Check To See If We Are At The End Of The Module List.
390 $ IF (MODULE_NAME.EQS.",")
393 $! We Are At The End Of The Module List, Go To MODULE_DONE.
397 $! End The Module List Check.
401 $! Increment The Moudle Counter.
403 $ MODULE_COUNTER = MODULE_COUNTER + 1
405 $! Create The Library and Apps Module Names.
407 $ LIB_MODULE = "LIB_" + MODULE_NAME
408 $ APPS_MODULE = "APPS_" + MODULE_NAME
409 $ IF (F$EXTRACT(0,5,MODULE_NAME).EQS."ASN1_")
411 $ MODULE_NAME = "ASN1"
413 $ IF (F$EXTRACT(0,4,MODULE_NAME).EQS."EVP_")
415 $ MODULE_NAME = "EVP"
418 $! Set state (can be LIB and APPS)
421 $ IF BUILDALL .EQS. "APPS" THEN STATE = "APPS"
423 $! Check if the library module name actually is defined
425 $ IF F$TYPE('LIB_MODULE') .EQS. ""
428 $ WRITE SYS$ERROR "The module ",MODULE_NAME1," does not exist. Continuing..."
433 $! Top Of The Module Loop.
437 $! Tell The User What Module We Are Building.
439 $ IF (MODULE_NAME1.NES."")
441 $ IF STATE .EQS. "LIB"
443 $ WRITE SYS$OUTPUT "Compiling The ",MODULE_NAME1," Library Files. (",BUILDALL,",",STATE,")"
444 $ ELSE IF F$TYPE('APPS_MODULE') .NES. ""
446 $ WRITE SYS$OUTPUT "Compiling The ",MODULE_NAME1," Applications. (",BUILDALL,",",STATE,")"
451 $! Define A File Counter And Set It To "0".
455 $ APPLICATION_COUNTER = 0
457 $! Top Of The File Loop.
461 $! Look in the LIB_MODULE is we're in state LIB
463 $ IF STATE .EQS. "LIB"
466 $! O.K, Extract The File Name From The File List.
468 $ FILE_NAME = F$ELEMENT(FILE_COUNTER,",",'LIB_MODULE')
475 $ IF F$TYPE('APPS_MODULE') .NES. ""
478 $! Extract The File Name From The File List.
479 $! This part is a bit more complicated.
481 $ IF APPLICATION .EQS. ""
483 $ APPLICATION = F$ELEMENT(APPLICATION_COUNTER,";",'APPS_MODULE')
484 $ APPLICATION_COUNTER = APPLICATION_COUNTER + 1
485 $ APPLICATION_OBJECTS = F$ELEMENT(1,"/",APPLICATION)
486 $ APPLICATION = F$ELEMENT(0,"/",APPLICATION)
490 $! WRITE SYS$OUTPUT "DEBUG: SHOW SYMBOL APPLICATION*"
491 $! SHOW SYMBOL APPLICATION*
493 $ IF APPLICATION .NES. ";"
495 $ FILE_NAME = F$ELEMENT(FILE_COUNTER,",",APPLICATION_OBJECTS)
496 $ IF FILE_NAME .EQS. ","
505 $! Check To See If We Are At The End Of The File List.
507 $ IF (FILE_NAME.EQS.",")
510 $! We Are At The End Of The File List, Change State Or Goto FILE_DONE.
512 $ IF STATE .EQS. "LIB" .AND. BUILDALL .NES. "LIBRARY"
520 $! End The File List Check.
524 $! Increment The Counter.
526 $ FILE_COUNTER = FILE_COUNTER + 1
528 $! Create The Source File Name.
530 $ TMP_FILE_NAME = F$ELEMENT(1,"]",FILE_NAME)
531 $ IF TMP_FILE_NAME .EQS. "]" THEN TMP_FILE_NAME = FILE_NAME
532 $ IF F$ELEMENT(0,".",TMP_FILE_NAME) .EQS. TMP_FILE_NAME THEN -
533 FILE_NAME = FILE_NAME + ".c"
534 $ IF (MODULE_NAME.NES."")
536 $ SOURCE_FILE = "SYS$DISK:[." + MODULE_NAME+ "]" + FILE_NAME
538 $ SOURCE_FILE = "SYS$DISK:[]" + FILE_NAME
540 $ SOURCE_FILE = SOURCE_FILE - "]["
542 $! Create The Object File Name.
544 $ OBJECT_FILE = OBJ_DIR + F$PARSE(FILE_NAME,,,"NAME","SYNTAX_ONLY") + ".OBJ"
545 $ ON WARNING THEN GOTO NEXT_FILE
547 $! Check To See If The File We Want To Compile Is Actually There.
549 $ IF (F$SEARCH(SOURCE_FILE).EQS."")
552 $! Tell The User That The File Doesn't Exist.
554 $ WRITE SYS$OUTPUT ""
555 $ WRITE SYS$OUTPUT "The File ",SOURCE_FILE," Doesn't Exist."
556 $ WRITE SYS$OUTPUT ""
562 $! End The File Exist Check.
566 $! Tell The User We Are Compiling The File.
568 $ IF (MODULE_NAME.EQS."")
570 $ WRITE SYS$OUTPUT "Compiling The ",FILE_NAME," File. (",BUILDALL,",",STATE,")"
572 $ IF (MODULE_NAME.NES."")
574 $ WRITE SYS$OUTPUT " ",FILE_NAME,""
579 $ ON ERROR THEN GOTO NEXT_FILE
580 $ FILE_NAME0 = ","+ F$ELEMENT(0,".",FILE_NAME)+ ","
581 $ IF FILE_NAME - ".mar" .NES. FILE_NAME
583 $ MACRO/OBJECT='OBJECT_FILE' 'SOURCE_FILE'
585 $ IF COMPILEWITH_CC3 - FILE_NAME0 .NES. COMPILEWITH_CC3
587 $ write sys$output " \Using special rule (3)"
588 $ if (.not. CC3_SHOWN)
592 $ write /symbol sys$output x
594 $ CC3/OBJECT='OBJECT_FILE' 'SOURCE_FILE'
596 $ IF COMPILEWITH_CC4 - FILE_NAME0 .NES. COMPILEWITH_CC4
598 $ write /symbol sys$output " \Using special rule (4)"
599 $ if (.not. CC4_SHOWN)
603 $ write /symbol sys$output x
605 $ CC4/OBJECT='OBJECT_FILE' 'SOURCE_FILE'
607 $ IF CC5_DIFFERENT .AND. -
608 (COMPILEWITH_CC5 - FILE_NAME0 .NES. COMPILEWITH_CC5)
610 $ write sys$output " \Using special rule (5)"
611 $ if (.not. CC5_SHOWN)
615 $ write /symbol sys$output x
617 $ CC5/OBJECT='OBJECT_FILE' 'SOURCE_FILE'
619 $ IF COMPILEWITH_CC6 - FILE_NAME0 .NES. COMPILEWITH_CC6
621 $ write sys$output " \Using special rule (6)"
622 $ if (.not. CC6_SHOWN)
626 $ write /symbol sys$output x
628 $ CC6/OBJECT='OBJECT_FILE' 'SOURCE_FILE'
630 $ CC/OBJECT='OBJECT_FILE' 'SOURCE_FILE'
636 $ IF STATE .EQS. "LIB"
639 $! Add It To The Library.
641 $ LIBRARY/REPLACE 'LIB_NAME' 'OBJECT_FILE'
643 $! Time To Clean Up The Object File.
645 $ DELETE 'OBJECT_FILE';*
648 $! Go Back And Do It Again.
652 $! All Done With This Library Part.
656 $! Time To Build Some Applications
658 $ IF F$TYPE('APPS_MODULE') .NES. "" .AND. BUILDALL .NES. "LIBRARY"
660 $ APPLICATION_COUNTER = 0
662 $ APPLICATION = F$ELEMENT(APPLICATION_COUNTER,";",'APPS_MODULE')
663 $ IF APPLICATION .EQS. ";" THEN GOTO APPLICATION_DONE
665 $ APPLICATION_COUNTER = APPLICATION_COUNTER + 1
666 $ APPLICATION_OBJECTS = F$ELEMENT(1,"/",APPLICATION)
667 $ APPLICATION = F$ELEMENT(0,"/",APPLICATION)
669 $! WRITE SYS$OUTPUT "DEBUG: SHOW SYMBOL APPLICATION*"
670 $! SHOW SYMBOL APPLICATION*
672 $! Tell the user what happens
674 $ WRITE SYS$OUTPUT " ",APPLICATION,".exe"
678 $ ON ERROR THEN GOTO NEXT_APPLICATION
680 $! Link With A TCP/IP Library.
682 $ LINK /'DEBUGGER' /'LINKMAP' /'TRACEBACK' -
683 /EXE='EXE_DIR''APPLICATION'.EXE -
684 'OBJ_DIR''APPLICATION_OBJECTS', -
685 'CRYPTO_LIB'/LIBRARY -
690 $ GOTO NEXT_APPLICATION
694 $! Go Back And Get The Next Module.
698 $! All Done With This Module.
702 $! Tell The User That We Are All Done.
704 $ WRITE SYS$OUTPUT "All Done..."
709 $! Check For The Link Option FIle.
713 $! Check To See If We Need To Make A VAX C Option File.
715 $ IF (COMPILER.EQS."VAXC")
718 $! Check To See If We Already Have A VAX C Linker Option File.
720 $ IF (F$SEARCH(OPT_FILE).EQS."")
723 $! We Need A VAX C Linker Option File.
728 ! Default System Options File To Link Against
729 ! The Sharable VAX C Runtime Library.
731 SYS$SHARE:VAXCRTL.EXE/SHARE
734 $! End The Option File Check.
738 $! End The VAXC Check.
742 $! Check To See If We Need A GNU C Option File.
744 $ IF (COMPILER.EQS."GNUC")
747 $! Check To See If We Already Have A GNU C Linker Option File.
749 $ IF (F$SEARCH(OPT_FILE).EQS."")
752 $! We Need A GNU C Linker Option File.
757 ! Default System Options File To Link Against
758 ! The Sharable C Runtime Library.
760 GNU_CC:[000000]GCCLIB/LIBRARY
761 SYS$SHARE:VAXCRTL/SHARE
764 $! End The Option File Check.
768 $! End The GNU C Check.
772 $! Check To See If We Need A DEC C Option File.
774 $ IF (COMPILER.EQS."DECC")
777 $! Check To See If We Already Have A DEC C Linker Option File.
779 $ IF (F$SEARCH(OPT_FILE).EQS."")
782 $! Figure Out If We Need A non-VAX Or A VAX Linker Option File.
784 $ IF ARCH .EQS. "VAX"
787 $! We Need A DEC C Linker Option File For VAX.
792 ! Default System Options File To Link Against
793 ! The Sharable DEC C Runtime Library.
795 SYS$SHARE:DECC$SHR.EXE/SHARE
802 $! Create The non-VAX Linker Option File.
807 ! Default System Options File For non-VAX To Link Against
808 ! The Sharable C Runtime Library.
810 SYS$SHARE:CMA$OPEN_LIB_SHR/SHARE
811 SYS$SHARE:CMA$OPEN_RTL/SHARE
814 $! End The DEC C Option File Check.
818 $! End The Option File Search.
822 $! End The DEC C Check.
826 $! Tell The User What Linker Option File We Are Using.
828 $ WRITE SYS$OUTPUT "Using Linker Option File ",OPT_FILE,"."
834 $! Check The User's Options.
838 $! Check To See If P1 Is Blank.
843 $! P1 Is Blank, So Build Everything.
851 $! Else, Check To See If P1 Has A Valid Argument.
853 $ IF (P1.EQS."LIBRARY").OR.(P1.EQS."APPS")
864 $! Tell The User We Don't Know What They Want.
866 $ WRITE SYS$OUTPUT ""
867 $ WRITE SYS$OUTPUT "The Option ",P1," Is Invalid. The Valid Options Are:"
868 $ WRITE SYS$OUTPUT ""
869 $ WRITE SYS$OUTPUT " ALL : Just Build Everything."
870 $ WRITE SYS$OUTPUT " LIBRARY : To Compile Just The [.xxx.EXE.CRYPTO]LIBCRYPTO.OLB Library."
871 $ WRITE SYS$OUTPUT " APPS : To Compile Just The [.xxx.EXE.CRYPTO]*.EXE Programs."
872 $ WRITE SYS$OUTPUT ""
873 $ WRITE SYS$OUTPUT " Where 'xxx' Stands For:"
874 $ WRITE SYS$OUTPUT ""
875 $ WRITE SYS$OUTPUT " ALPHA[64]: Alpha Architecture."
876 $ WRITE SYS$OUTPUT " IA64[64] : IA64 Architecture."
877 $ WRITE SYS$OUTPUT " VAX : VAX Architecture."
878 $ WRITE SYS$OUTPUT ""
884 $! End The Valid Argument Check.
892 $! Check To See If P2 Is Blank.
894 $ IF (P2.EQS."NODEBUG")
897 $! P2 Is NODEBUG, So Compile Without The Debugger Information.
899 $ DEBUGGER = "NODEBUG"
901 $ TRACEBACK = "NOTRACEBACK"
902 $ GCC_OPTIMIZE = "OPTIMIZE"
903 $ CC_OPTIMIZE = "OPTIMIZE"
904 $ MACRO_OPTIMIZE = "OPTIMIZE"
905 $ WRITE SYS$OUTPUT "No Debugger Information Will Be Produced During Compile."
906 $ WRITE SYS$OUTPUT "Compiling With Compiler Optimization."
909 $! Check To See If We Are To Compile With Debugger Information.
911 $ IF (P2.EQS."DEBUG")
914 $! Compile With Debugger Information.
918 $ TRACEBACK = "TRACEBACK"
919 $ GCC_OPTIMIZE = "NOOPTIMIZE"
920 $ CC_OPTIMIZE = "NOOPTIMIZE"
921 $ MACRO_OPTIMIZE = "NOOPTIMIZE"
922 $ WRITE SYS$OUTPUT "Debugger Information Will Be Produced During Compile."
923 $ WRITE SYS$OUTPUT "Compiling Without Compiler Optimization."
926 $! They Entered An Invalid Option.
928 $ WRITE SYS$OUTPUT ""
929 $ WRITE SYS$OUTPUT "The Option ",P2," Is Invalid. The Valid Options Are:"
930 $ WRITE SYS$OUTPUT ""
931 $ WRITE SYS$OUTPUT " DEBUG : Compile With The Debugger Information."
932 $ WRITE SYS$OUTPUT " NODEBUG : Compile Without The Debugger Information."
933 $ WRITE SYS$OUTPUT ""
939 $! End The Valid Argument Check.
947 $! Special Threads For OpenVMS v7.1 Or Later
949 $! Written By: Richard Levitte
950 $! richard@levitte.org
953 $! Check To See If We Have A Option For P5.
958 $! Get The Version Of VMS We Are Using.
961 $ TMP = F$ELEMENT(0,"-",F$EXTRACT(1,4,F$GETSYI("VERSION")))
962 $ TMP = F$INTEGER(F$ELEMENT(0,".",TMP)+F$ELEMENT(1,".",TMP))
964 $! Check To See If The VMS Version Is v7.1 Or Later.
969 $! We Have OpenVMS v7.1 Or Later, So Use The Special Threads.
971 $ ISSEVEN := ,PTHREAD_USE_D4
973 $! End The VMS Version Check.
981 $! Check P7 (POINTER_SIZE).
983 $ IF (P7 .NES. "") .AND. (ARCH .NES. "VAX")
988 $ POINTER_SIZE = " /POINTER_SIZE=32"
990 $ POINTER_SIZE = F$EDIT( P7, "COLLAPSE, UPCASE")
991 $ IF ((POINTER_SIZE .EQS. "64") .OR. -
992 (POINTER_SIZE .EQS. "64=") .OR. -
993 (POINTER_SIZE .EQS. "64=ARGV"))
995 $ ARCHD = ARCH+ "_64"
997 $ POINTER_SIZE = " /POINTER_SIZE=64"
1000 $! Tell The User Entered An Invalid Option.
1002 $ WRITE SYS$OUTPUT ""
1003 $ WRITE SYS$OUTPUT "The Option ", P7, -
1004 " Is Invalid. The Valid Options Are:"
1005 $ WRITE SYS$OUTPUT ""
1006 $ WRITE SYS$OUTPUT -
1007 " """" : Compile with default (short) pointers."
1008 $ WRITE SYS$OUTPUT -
1009 " 32 : Compile with 32-bit (short) pointers."
1010 $ WRITE SYS$OUTPUT -
1011 " 64 : Compile with 64-bit (long) pointers (auto ARGV)."
1012 $ WRITE SYS$OUTPUT -
1013 " 64= : Compile with 64-bit (long) pointers (no ARGV)."
1014 $ WRITE SYS$OUTPUT -
1015 " 64=ARGV : Compile with 64-bit (long) pointers (ARGV)."
1016 $ WRITE SYS$OUTPUT ""
1026 $! End The P7 (POINTER_SIZE) Check.
1030 $! Set basic C compiler /INCLUDE directories.
1032 $ CC_INCLUDES = "SYS$DISK:[.''ARCHD'],SYS$DISK:[],SYS$DISK:[-],"+ -
1033 "SYS$DISK:[.ENGINE.VENDOR_DEFNS],SYS$DISK:[.MODES],SYS$DISK:[.ASN1],SYS$DISK:[.EVP]"
1035 $! Check To See If P3 Is Blank.
1040 $! O.K., The User Didn't Specify A Compiler, Let's Try To
1041 $! Find Out Which One To Use.
1043 $! Check To See If We Have GNU C.
1045 $ IF (F$TRNLNM("GNU_CC").NES."")
1048 $! Looks Like GNUC, Set To Use GNUC.
1056 $! Check To See If We Have VAXC Or DECC.
1058 $ IF (ARCH.NES."VAX").OR.(F$TRNLNM("DECC$CC_DEFAULT").NES."")
1061 $! Looks Like DECC, Set To Use DECC.
1069 $! Looks Like VAXC, Set To Use VAXC.
1073 $! End The VAXC Compiler Check.
1077 $! End The DECC & VAXC Compiler Check.
1081 $! End The Compiler Check.
1085 $! Check To See If We Have A Option For P4.
1090 $! Find out what socket library we have available
1092 $ IF F$PARSE("SOCKETSHR:") .NES. ""
1095 $! We have SOCKETSHR, and it is my opinion that it's the best to use.
1101 $ WRITE SYS$OUTPUT "Using SOCKETSHR for TCP/IP"
1103 $! Else, let's look for something else
1107 $! Like UCX (the reason to do this before Multinet is that the UCX
1108 $! emulation is easier to use...)
1110 $ IF F$TRNLNM("UCX$IPC_SHR") .NES. "" -
1111 .OR. F$PARSE("SYS$SHARE:UCX$IPC_SHR.EXE") .NES. "" -
1112 .OR. F$PARSE("SYS$LIBRARY:UCX$IPC.OLB") .NES. ""
1115 $! Last resort: a UCX or UCX-compatible library
1121 $ WRITE SYS$OUTPUT "Using UCX or an emulation thereof for TCP/IP"
1129 $! Set Up Initial CC Definitions, Possibly With User Ones
1131 $ CCDEFS = "TCPIP_TYPE_''P4',DSO_VMS"
1132 $ IF F$TYPE(USER_CCDEFS) .NES. "" THEN CCDEFS = CCDEFS + "," + USER_CCDEFS
1134 $ IF F$TYPE(USER_CCFLAGS) .NES. "" THEN CCEXTRAFLAGS = USER_CCFLAGS
1135 $ CCDISABLEWARNINGS = "" !!! "LONGLONGTYPE,LONGLONGSUFX,FOUNDCR"
1136 $ IF F$TYPE(USER_CCDISABLEWARNINGS) .NES. "" THEN -
1137 CCDISABLEWARNINGS = CCDISABLEWARNINGS + "," + USER_CCDISABLEWARNINGS
1139 $! Check To See If We Have A ZLIB Option.
1142 $ IF (ZLIB .NES. "")
1145 $! Check for expected ZLIB files.
1148 $ file1 = f$parse( "zlib.h", ZLIB, , , "SYNTAX_ONLY")
1149 $ if (f$search( file1) .eqs. "")
1151 $ WRITE SYS$OUTPUT ""
1152 $ WRITE SYS$OUTPUT "The Option ", ZLIB, " Is Invalid."
1153 $ WRITE SYS$OUTPUT " Can't find header: ''file1'"
1156 $ file1 = f$parse( "A.;", ZLIB)- "A.;"
1158 $ file2 = f$parse( ZLIB, "libz.olb", , , "SYNTAX_ONLY")
1159 $ if (f$search( file2) .eqs. "")
1163 $ WRITE SYS$OUTPUT ""
1164 $ WRITE SYS$OUTPUT "The Option ", ZLIB, " Is Invalid."
1166 $ WRITE SYS$OUTPUT " Can't find library: ''file2'"
1167 $ WRITE SYS$OUTPUT ""
1172 $ WRITE SYS$OUTPUT ""
1180 $ CCDEFS = """ZLIB=1"", "+ CCDEFS
1181 $ CC_INCLUDES = CC_INCLUDES+ ", "+ file1
1182 $ ZLIB_LIB = ", ''file2' /library"
1186 $ WRITE SYS$OUTPUT "ZLIB library spec: ", file2
1188 $! End The ZLIB Check.
1192 $! Check To See If The User Entered A Valid Parameter.
1194 $ IF (P3.EQS."VAXC").OR.(P3.EQS."DECC").OR.(P3.EQS."GNUC")
1197 $! Check To See If The User Wanted DECC.
1199 $ IF (P3.EQS."DECC")
1202 $! Looks Like DECC, Set To Use DECC.
1206 $! Tell The User We Are Using DECC.
1208 $ WRITE SYS$OUTPUT "Using DECC 'C' Compiler."
1213 $ IF ARCH.EQS."VAX" .AND. F$TRNLNM("DECC$CC_DEFAULT").NES."/DECC" -
1215 $ CC = CC + " /''CC_OPTIMIZE' /''DEBUGGER' /STANDARD=RELAXED"+ -
1216 "''POINTER_SIZE' /NOLIST /PREFIX=ALL" + -
1217 " /INCLUDE=(''CC_INCLUDES')"+ -
1220 $! Define The Linker Options File Name.
1222 $ OPT_FILE = "VAX_DECC_OPTIONS.OPT"
1228 $! Check To See If We Are To Use VAXC.
1230 $ IF (P3.EQS."VAXC")
1233 $! Looks Like VAXC, Set To Use VAXC.
1237 $! Tell The User We Are Using VAX C.
1239 $ WRITE SYS$OUTPUT "Using VAXC 'C' Compiler."
1241 $! Compile Using VAXC.
1246 $ WRITE SYS$OUTPUT "There is no VAX C on ''ARCH'!"
1249 $ IF F$TRNLNM("DECC$CC_DEFAULT").EQS."/DECC" THEN CC = "CC/VAXC"
1250 $ CC = CC + "/''CC_OPTIMIZE'/''DEBUGGER'/NOLIST" + -
1251 "/INCLUDE=(''CC_INCLUDES')"+ -
1253 $ CCDEFS = """VAXC""," + CCDEFS
1255 $! Define <sys> As SYS$COMMON:[SYSLIB]
1257 $ DEFINE/NOLOG SYS SYS$COMMON:[SYSLIB]
1259 $! Define The Linker Options File Name.
1261 $ OPT_FILE = "VAX_VAXC_OPTIONS.OPT"
1267 $! Check To See If We Are To Use GNU C.
1269 $ IF (P3.EQS."GNUC")
1272 $! Looks Like GNUC, Set To Use GNUC.
1276 $! Tell The User We Are Using GNUC.
1278 $ WRITE SYS$OUTPUT "Using GNU 'C' Compiler."
1282 $ CC = "GCC/NOCASE_HACK/''GCC_OPTIMIZE'/''DEBUGGER'/NOLIST" + -
1283 "/INCLUDE=(''CC_INCLUDES')"+ -
1286 $! Define The Linker Options File Name.
1288 $ OPT_FILE = "VAX_GNUC_OPTIONS.OPT"
1290 $! End The GNU C Check.
1294 $! Set up default defines
1296 $ CCDEFS = """FLAT_INC=1""," + CCDEFS
1298 $! Finish up the definition of CC.
1300 $ IF COMPILER .EQS. "DECC"
1302 $ IF CCDISABLEWARNINGS .EQS. ""
1304 $ CC4DISABLEWARNINGS = "DOLLARID"
1305 $ CC6DISABLEWARNINGS = "MIXLINKAGE"
1307 $ CC4DISABLEWARNINGS = CCDISABLEWARNINGS + ",DOLLARID"
1308 $ CC6DISABLEWARNINGS = CCDISABLEWARNINGS + ",MIXLINKAGE"
1309 $ CCDISABLEWARNINGS = " /WARNING=(DISABLE=(" + CCDISABLEWARNINGS + "))"
1311 $ CC4DISABLEWARNINGS = " /WARNING=(DISABLE=(" + CC4DISABLEWARNINGS + "))"
1312 $ CC6DISABLEWARNINGS = " /WARNING=(DISABLE=(" + CC6DISABLEWARNINGS + "))"
1314 $ CCDISABLEWARNINGS = ""
1315 $ CC4DISABLEWARNINGS = ""
1316 $ CC6DISABLEWARNINGS = ""
1318 $ CC3 = CC + " /DEFINE=(" + CCDEFS + ISSEVEN + ")" + CCDISABLEWARNINGS
1319 $ CC = CC + " /DEFINE=(" + CCDEFS + ")" + CCDISABLEWARNINGS
1320 $ IF ARCH .EQS. "VAX" .AND. COMPILER .EQS. "DECC" .AND. P2 .NES. "DEBUG"
1322 $ CC5 = CC + " /OPTIMIZE=NODISJOINT"
1328 $ CC4 = CC - CCDISABLEWARNINGS + CC4DISABLEWARNINGS
1329 $ CC6 = CC - CCDISABLEWARNINGS + CC6DISABLEWARNINGS
1331 $! Show user the result
1333 $ WRITE/SYMBOL SYS$OUTPUT "Main C Compiling Command: ",CC
1335 $! Else The User Entered An Invalid Argument.
1339 $! Tell The User We Don't Know What They Want.
1341 $ WRITE SYS$OUTPUT ""
1342 $ WRITE SYS$OUTPUT "The Option ",P3," Is Invalid. The Valid Options Are:"
1343 $ WRITE SYS$OUTPUT ""
1344 $ WRITE SYS$OUTPUT " VAXC : To Compile With VAX C."
1345 $ WRITE SYS$OUTPUT " DECC : To Compile With DEC C."
1346 $ WRITE SYS$OUTPUT " GNUC : To Compile With GNU C."
1347 $ WRITE SYS$OUTPUT ""
1353 $! End The Valid Argument Check.
1357 $! Build a MACRO command for the architecture at hand
1359 $ IF ARCH .EQS. "VAX" THEN MACRO = "MACRO/''DEBUGGER'"
1360 $ IF ARCH .NES. "VAX" THEN MACRO = "MACRO/MIGRATION/''DEBUGGER'/''MACRO_OPTIMIZE'"
1362 $! Show user the result
1364 $ WRITE/SYMBOL SYS$OUTPUT "Main MACRO Compiling Command: ",MACRO
1366 $! Time to check the contents, and to make sure we get the correct library.
1368 $ IF P4.EQS."SOCKETSHR" .OR. P4.EQS."MULTINET" .OR. P4.EQS."UCX" -
1369 .OR. P4.EQS."TCPIP" .OR. P4.EQS."NONE"
1372 $! Check to see if SOCKETSHR was chosen
1374 $ IF P4.EQS."SOCKETSHR"
1377 $! Set the library to use SOCKETSHR
1379 $ TCPIP_LIB = ",SYS$DISK:[-.VMS]SOCKETSHR_SHR.OPT /OPTIONS"
1381 $! Done with SOCKETSHR
1385 $! Check to see if MULTINET was chosen
1387 $ IF P4.EQS."MULTINET"
1390 $! Set the library to use UCX emulation.
1394 $! Done with MULTINET
1398 $! Check to see if UCX was chosen
1403 $! Set the library to use UCX.
1405 $ TCPIP_LIB = ",SYS$DISK:[-.VMS]UCX_SHR_DECC.OPT /OPTIONS"
1406 $ IF F$TRNLNM("UCX$IPC_SHR") .NES. ""
1408 $ TCPIP_LIB = ",SYS$DISK:[-.VMS]UCX_SHR_DECC_LOG.OPT /OPTIONS"
1410 $ IF COMPILER .NES. "DECC" .AND. ARCH .EQS. "VAX" THEN -
1411 TCPIP_LIB = ",SYS$DISK:[-.VMS]UCX_SHR_VAXC.OPT /OPTIONS"
1418 $! Check to see if TCPIP was chosen
1423 $! Set the library to use TCPIP (post UCX).
1425 $ TCPIP_LIB = ",SYS$DISK:[-.VMS]TCPIP_SHR_DECC.OPT /OPTIONS"
1431 $! Check to see if NONE was chosen
1436 $! Do not use a TCPIP library.
1446 $ WRITE SYS$OUTPUT "TCP/IP library spec: ", TCPIP_LIB- ","
1448 $! Else The User Entered An Invalid Argument.
1452 $! Tell The User We Don't Know What They Want.
1454 $ WRITE SYS$OUTPUT ""
1455 $ WRITE SYS$OUTPUT "The Option ",P4," Is Invalid. The Valid Options Are:"
1456 $ WRITE SYS$OUTPUT ""
1457 $ WRITE SYS$OUTPUT " SOCKETSHR : To link with SOCKETSHR TCP/IP library."
1458 $ WRITE SYS$OUTPUT " UCX : To link with UCX TCP/IP library."
1459 $ WRITE SYS$OUTPUT " TCPIP : To link with TCPIP (post UCX) TCP/IP library."
1460 $ WRITE SYS$OUTPUT ""
1466 $! Done with TCP/IP libraries
1470 $! Check if the user wanted to compile just a subset of all the encryption
1475 $ ENCRYPT_TYPES = P6
1478 $! Time To RETURN...
1484 $! Save old value of the logical name OPENSSL
1486 $ __SAVE_OPENSSL = F$TRNLNM("OPENSSL","LNM$PROCESS_TABLE")
1488 $! Save directory information
1490 $ __HERE = F$PARSE(F$PARSE("A.;",F$ENVIRONMENT("PROCEDURE"))-"A.;","[]A.;") - "A.;"
1491 $ __HERE = F$EDIT(__HERE,"UPCASE")
1492 $ __TOP = __HERE - "CRYPTO]"
1493 $ __INCLUDE = __TOP + "INCLUDE.OPENSSL]"
1495 $! Set up the logical name OPENSSL to point at the include directory
1497 $ DEFINE OPENSSL/NOLOG '__INCLUDE'
1505 $! Restore the logical name OPENSSL if it had a value
1507 $ IF __SAVE_OPENSSL .EQS. ""
1511 $ DEFINE/NOLOG OPENSSL '__SAVE_OPENSSL'