3 $! Original Author: UNKNOWN
4 $! Rewritten By: Robert Byer
6 $! A-Com Computing, Inc.
7 $! byer@mail.all-net.net
9 $! Changes by Richard Levitte <richard@levitte.org>
11 $! This procedure creates the SSL libraries of "[.xxx.EXE.CRYPTO]LIBCRYPTO.OLB"
12 $! "[.xxx.EXE.SSL]LIBSSL.OLB" and if specified "[.xxx.EXE.RSAREF]LIBRSAGLUE.OLB".
13 $! The "xxx" denotes the machine architecture of AXP or VAX.
15 $! This procedures accepts two command line options listed below.
17 $! Specify one of the following build options for P1.
19 $! ALL Just build "everything".
20 $! CONFIG Just build the "[.CRYPTO]OPENSSLCONF.H" file.
21 $! BUILDINF Just build the "[.CRYPTO]BUILDINF.H" file.
22 $! SOFTLINKS Just fix the Unix soft links.
23 $! BUILDALL Same as ALL, except CONFIG, BUILDINF and SOFTILNKS aren't done.
24 $! RSAREF Just build the "[.xxx.EXE.RSAREF]LIBRSAGLUE.OLB" library.
25 $! CRYPTO Just build the "[.xxx.EXE.CRYPTO]LIBCRYPTO.OLB" library.
26 $! CRYPTO/x Just build the x part of the
27 $! "[.xxx.EXE.CRYPTO]LIBCRYPTO.OLB" library.
28 $! SSL Just build the "[.xxx.EXE.SSL]LIBSSL.OLB" library.
29 $! SSL_TASK Just build the "[.xxx.EXE.SSL]SSL_TASK.EXE" program.
30 $! TEST Just build the "[.xxx.EXE.TEST]" test programs for OpenSSL.
31 $! APPS Just build the "[.xxx.EXE.APPS]" application programs for OpenSSL.
34 $! Specify RSAREF as P2 to compile using the RSAREF Library.
35 $! If you specify NORSAREF, it will compile without using RSAREF.
36 $! (If in the United States, You Must Compile Using RSAREF).
38 $! Note: The RSAREF libraries are NOT INCLUDED and you have to
39 $! download it from "ftp://ftp.rsa.com/rsaref". You have to
40 $! get the ".tar-Z" file as the ".zip" file dosen't have the
41 $! directory structure stored. You have to extract the file
42 $! into the [.RSAREF] directory as that is where the scripts
43 $! will look for the files.
45 $! Speficy DEBUG or NODEBUG as P3 to compile with or without debugging
48 $! Specify which compiler at P4 to try to compile under.
53 $! LINK To only link the programs from existing object files.
54 $! (not yet implemented)
56 $! If you don't speficy a compiler, it will try to determine which
57 $! "C" compiler to use.
59 $! P5, if defined, sets a TCP/IP library to use, through one of the following
62 $! UCX for UCX or UCX emulation
63 $! SOCKETSHR for SOCKETSHR+NETLIB
65 $! P6, if defined, sets a compiler thread NOT needed on OpenVMS 7.1 (and up)
68 $! Check if we're in a batch job, and make sure we get to
69 $! the directory this script is in
71 $ IF F$MODE() .EQS. "BATCH"
73 $ COMNAME=F$ENVIRONMENT("PROCEDURE")
74 $ COMPATH=F$PARSE("A.;",COMNAME) - "A.;"
78 $! Check Which Architecture We Are Using.
80 $ IF (F$GETSYI("CPU").GE.128)
83 $! The Architecture Is AXP.
91 $! The Architecture Is VAX.
95 $! End The Architecture Check.
99 $! Check To Make Sure We Have Valid Command Line Parameters.
101 $ GOSUB CHECK_OPTIONS
103 $! Check To See What We Are To Do.
105 $ IF (BUILDCOMMAND.EQS."ALL")
108 $! Start with building the OpenSSL configuration file.
112 $! Create The "BUILDINF.H" Include File.
116 $! Fix The Unix Softlinks.
122 $ IF (BUILDCOMMAND.EQS."ALL".OR.BUILDCOMMAND.EQS."BUILDALL")
125 $! Check To See If We Are Going To Be Building The
126 $! [.xxx.EXE.RSAREF]LIBRSAGLUE.OLB Library.
128 $ IF (RSAREF.EQS."RSAREF")
131 $! Build The [.xxx.EXE.RSAREF]LIBRSAGLUE.OLB Library.
135 $! End The RSAREF Check.
139 $! Build The [.xxx.EXE.CRYPTO]LIBCRYPTO.OLB Library.
143 $! Build The [.xxx.EXE.SSL]LIBSSL.OLB Library.
147 $! Build The [.xxx.EXE.SSL]SSL_TASK.EXE DECNet SSL Engine.
151 $! Build The [.xxx.EXE.TEST] OpenSSL Test Utilities.
155 $! Build The [.xxx.EXE.APPS] OpenSSL Application Utilities.
163 $! Build Just What The User Wants Us To Build.
165 $ GOSUB 'BUILDCOMMAND'
173 $! Rebuild The "[.CRYPTO]OPENSSLCONF.H" file.
177 $! Tell The User We Are Creating The [.CRYPTO]OPENSSLCONF.H File.
179 $ WRITE SYS$OUTPUT "Creating [.CRYPTO]OPENSSLCONF.H Include File."
181 $! Create The [.CRYPTO]OPENSSLCONF.H File.
183 $ OPEN/WRITE H_FILE SYS$DISK:[.CRYPTO]OPENSSLCONF.H
185 $! Write The [.CRYPTO]OPENSSLCONF.H File.
187 $ WRITE H_FILE "/* This file was automatically built using makevms.com */"
188 $ WRITE H_FILE "/* and [.CRYPTO]OPENSSLCONF.H_IN */"
190 $! Different tar version may have named the file differently
191 $ IF F$SEARCH("[.CRYPTO]OPENSSLCONF.H_IN") .NES. ""
193 $ TYPE [.CRYPTO]OPENSSLCONF.H_IN /OUTPUT=H_FILE:
195 $ IF F$SEARCH("[.CRYPTO]OPENSSLCONF_H.IN") .NES. ""
197 $ TYPE [.CRYPTO]OPENSSLCONF_H.IN /OUTPUT=H_FILE:
199 $ WRITE SYS$ERROR "Couldn't find a [.CRYPTO]OPENSSLCONF.H_IN. Exiting!"
204 $ IF ARCH .EQS. "AXP"
207 $! Write the Alpha specific data
209 $ WRITE H_FILE "#if defined(HEADER_RC4_H)"
210 $ WRITE H_FILE "#undef RC4_INT"
211 $ WRITE H_FILE "#define RC4_INT unsigned int"
212 $ WRITE H_FILE "#undef RC4_CHUNK"
213 $ WRITE H_FILE "#define RC4_CHUNK unsigned long long"
214 $ WRITE H_FILE "#endif"
216 $ WRITE H_FILE "#if defined(HEADER_DES_LOCL_H)"
217 $ WRITE H_FILE "#undef DES_LONG"
218 $ WRITE H_FILE "#define DES_LONG unsigned int"
219 $ WRITE H_FILE "#undef DES_PTR"
220 $ WRITE H_FILE "#define DES_PTR"
221 $ WRITE H_FILE "#undef DES_RISC1"
222 $ WRITE H_FILE "#undef DES_RISC2"
223 $ WRITE H_FILE "#define DES_RISC1"
224 $ WRITE H_FILE "#undef DES_UNROLL"
225 $ WRITE H_FILE "#define DES_UNROLL"
226 $ WRITE H_FILE "#endif"
228 $ WRITE H_FILE "#if defined(HEADER_BN_H)"
229 $ WRITE H_FILE "#undef SIXTY_FOUR_BIT_LONG"
230 $ WRITE H_FILE "#undef SIXTY_FOUR_BIT"
231 $ WRITE H_FILE "#define SIXTY_FOUR_BIT"
232 $ WRITE H_FILE "#undef THIRTY_TWO_BIT"
233 $ WRITE H_FILE "#undef SIXTEEN_BIT"
234 $ WRITE H_FILE "#undef EIGHT_BIT"
235 $ WRITE H_FILE "#endif"
241 $! Write the VAX specific data
243 $ WRITE H_FILE "#if defined(HEADER_RC4_H)"
244 $ WRITE H_FILE "#undef RC4_INT"
245 $ WRITE H_FILE "#define RC4_INT unsigned char"
246 $ WRITE H_FILE "#undef RC4_CHUNK"
247 $ WRITE H_FILE "#define RC4_CHUNK unsigned long"
248 $ WRITE H_FILE "#endif"
250 $ WRITE H_FILE "#if defined(HEADER_DES_LOCL_H)"
251 $ WRITE H_FILE "#undef DES_LONG"
252 $ WRITE H_FILE "#define DES_LONG unsigned long"
253 $ WRITE H_FILE "#undef DES_PTR"
254 $ WRITE H_FILE "#define DES_PTR"
255 $ WRITE H_FILE "#undef DES_RISC1"
256 $ WRITE H_FILE "#undef DES_RISC2"
257 $ WRITE H_FILE "#undef DES_UNROLL"
258 $ WRITE H_FILE "#endif"
260 $ WRITE H_FILE "#if defined(HEADER_BN_H)"
261 $ WRITE H_FILE "#undef SIXTY_FOUR_BIT_LONG"
262 $ WRITE H_FILE "#undef SIXTY_FOUR_BIT"
263 $ WRITE H_FILE "#undef THIRTY_TWO_BIT"
264 $ WRITE H_FILE "#define THIRTY_TWO_BIT"
265 $ WRITE H_FILE "#undef SIXTEEN_BIT"
266 $ WRITE H_FILE "#undef EIGHT_BIT"
267 $ WRITE H_FILE "#endif"
273 $! Close the [.CRYPTO]OPENSSLCONF.H file
277 $! That's All, Time To RETURN.
281 $! Rebuild The "[.CRYPTO]BUILDINF.H" file.
285 $! Tell The User We Are Creating The [.CRYPTO]BUILDINF.H File.
287 $ WRITE SYS$OUTPUT "Creating [.CRYPTO]BUILDINF.H Include File."
289 $! Create The [.CRYPTO]BUILDINF.H File.
291 $ OPEN/WRITE H_FILE SYS$DISK:[.CRYPTO]BUILDINF.H
293 $! Get The Current Date & Time.
297 $! Write The [.CRYPTO]BUILDINF.H File.
299 $ WRITE H_FILE "#define CFLAGS """" /* Not filled in for now */"
300 $ WRITE H_FILE "#define PLATFORM ""VMS"""
301 $ WRITE H_FILE "#define DATE ""''TIME'"" "
303 $! Close The [.CRYPTO]BUILDINF.H File.
307 $! That's All, Time To RETURN.
311 $! Copy a lot of files around.
315 $! Tell The User We Are Partly Rebuilding The [.TEST] Directory.
317 $ WRITE SYS$OUTPUT "Rebuilding The '[.APPS]MD5.C' And '[.APPS]RMD160.C' Files."
319 $ DELETE SYS$DISK:[.APPS]MD4.C;*,MD5.C;*,RMD160.C;*
321 $! Copy MD4.C from [.CRYPTO.MD4] into [.APPS]
323 $ COPY SYS$DISK:[.CRYPTO.MD4]MD4.C SYS$DISK:[.APPS]
325 $! Copy MD5.C from [.CRYPTO.MD5] into [.APPS]
327 $ COPY SYS$DISK:[.CRYPTO.MD5]MD5.C SYS$DISK:[.APPS]
329 $! Copy RMD160.C from [.CRYPTO.RIPEMD] into [.APPS]
331 $ COPY SYS$DISK:[.CRYPTO.RIPEMD]RMD160.C SYS$DISK:[.APPS]
333 $! Tell The User We Are Partly Rebuilding The [.TEST] Directory.
335 $ WRITE SYS$OUTPUT "Rebuilding The '[.TEST]*.C' Files."
337 $! First, We Have To "Rebuild" The "[.TEST]" Directory, So Delete
338 $! All The "C" Files That Are Currently There Now.
340 $ DELETE SYS$DISK:[.TEST]*.C;*
342 $! Copy all the *TEST.C files from [.CRYPTO...] into [.TEST]
344 $ COPY SYS$DISK:[.CRYPTO.*]%*TEST.C SYS$DISK:[.TEST]
346 $! Copy all the *TEST.C files from [.SSL...] into [.TEST]
348 $ COPY SYS$DISK:[.SSL]%*TEST.C SYS$DISK:[.TEST]
350 $! Tell The User We Are Rebuilding The [.INCLUDE.OPENSSL] Directory.
352 $ WRITE SYS$OUTPUT "Rebuilding The '[.INCLUDE.OPENSSL]' Directory."
354 $! First, make sure the directory exists
356 $ IF F$PARSE("SYS$DISK:[.INCLUDE.OPENSSL]") .EQS. "" THEN -
357 CREATE/DIRECTORY SYS$DISK:[.INCLUDE.OPENSSL]
359 $! Copy All The ".H" Files From The Main Directory.
361 $ EXHEADER := e_os.h,e_os2.h
362 $ COPY 'EXHEADER' SYS$DISK:[.INCLUDE.OPENSSL]
364 $! Copy All The ".H" Files From The [.CRYPTO] Directory Tree.
366 $ SDIRS := ,MD2,MD4,MD5,SHA,MDC2,HMAC,RIPEMD,-
367 DES,RC2,RC4,RC5,IDEA,BF,CAST,-
368 BN,RSA,DSA,DH,DSO,ENGINE,RIJNDAEL,-
369 BUFFER,BIO,STACK,LHASH,RAND,ERR,OBJECTS,-
370 EVP,ASN1,PEM,X509,X509V3,CONF,TXT_DB,PKCS7,PKCS12,COMP
371 $ EXHEADER_ := crypto.h,tmdiff.h,opensslv.h,opensslconf.h,ebcdic.h,symhacks.h
372 $ EXHEADER_MD2 := md2.h
373 $ EXHEADER_MD4 := md4.h
374 $ EXHEADER_MD5 := md5.h
375 $ EXHEADER_SHA := sha.h
376 $ EXHEADER_MDC2 := mdc2.h
377 $ EXHEADER_HMAC := hmac.h
378 $ EXHEADER_RIPEMD := ripemd.h
379 $ EXHEADER_DES := des.h
380 $ EXHEADER_RC2 := rc2.h
381 $ EXHEADER_RC4 := rc4.h
382 $ EXHEADER_RC5 := rc5.h
383 $ EXHEADER_IDEA := idea.h
384 $ EXHEADER_BF := blowfish.h
385 $ EXHEADER_CAST := cast.h
386 $ EXHEADER_BN := bn.h
387 $ EXHEADER_RSA := rsa.h
388 $ EXHEADER_DSA := dsa.h
389 $ EXHEADER_DH := dh.h
390 $ EXHEADER_DSO := dso.h
391 $ EXHEADER_ENGINE := engine.h
392 $ EXHEADER_RIJNDAEL := rd_fst.h,rijndael.h
393 $ EXHEADER_BUFFER := buffer.h
394 $ EXHEADER_BIO := bio.h
395 $ EXHEADER_STACK := stack.h,safestack.h
396 $ EXHEADER_LHASH := lhash.h
397 $ EXHEADER_RAND := rand.h
398 $ EXHEADER_ERR := err.h
399 $ EXHEADER_OBJECTS := objects.h,obj_mac.h
400 $ EXHEADER_EVP := evp.h
401 $ EXHEADER_ASN1 := asn1.h,asn1_mac.h
402 $ EXHEADER_PEM := pem.h,pem2.h
403 $ EXHEADER_X509 := x509.h,x509_vfy.h
404 $ EXHEADER_X509V3 := x509v3.h
405 $ EXHEADER_CONF := conf.h,conf_api.h
406 $ EXHEADER_TXT_DB := txt_db.h
407 $ EXHEADER_PKCS7 := pkcs7.h
408 $ EXHEADER_PKCS12 := pkcs12.h
409 $ EXHEADER_COMP := comp.h
413 $ D = F$EDIT(F$ELEMENT(I, ",", SDIRS),"TRIM")
415 $ IF D .EQS. "," THEN GOTO LOOP_SDIRS_END
419 $ COPY [.CRYPTO]'tmp' SYS$DISK:[.INCLUDE.OPENSSL] !/LOG
421 $ COPY [.CRYPTO.'D']'tmp' SYS$DISK:[.INCLUDE.OPENSSL] !/LOG
426 $! Copy All The ".H" Files From The [.RSAREF] Directory.
428 $! EXHEADER := rsaref.h
429 $! COPY SYS$DISK:[.RSAREF]'EXHEADER' SYS$DISK:[.INCLUDE.OPENSSL]
431 $! Copy All The ".H" Files From The [.SSL] Directory.
433 $ EXHEADER := ssl.h,ssl2.h,ssl3.h,ssl23.h,tls1.h
434 $ COPY SYS$DISK:[.SSL]'EXHEADER' SYS$DISK:[.INCLUDE.OPENSSL]
438 $ PURGE SYS$DISK:[.INCLUDE.OPENSSL]*.H
440 $! That's All, Time To RETURN.
444 $! Build The "[.xxx.EXE.CRYPTO]LIBCRYPTO.OLB" Library.
448 $! Tell The User What We Are Doing.
450 $ WRITE SYS$OUTPUT ""
451 $ WRITE SYS$OUTPUT "Building The [.",ARCH,".EXE.CRYPTO]LIBCRYPTO.OLB Library."
453 $! Go To The [.CRYPTO] Directory.
455 $ SET DEFAULT SYS$DISK:[.CRYPTO]
457 $! Build The [.xxx.EXE.CRYPTO]LIBCRYPTO.OLB Library.
459 $ @CRYPTO-LIB LIBRARY 'RSAREF' 'DEBUGGER' "''COMPILER'" "''TCPIP_TYPE'" "''ISSEVEN'" "''BUILDPART'"
461 $! Build The [.xxx.EXE.CRYPTO]*.EXE Test Applications.
463 $ @CRYPTO-LIB APPS 'RSAREF' 'DEBUGGER' "''COMPILER'" "''TCPIP_TYPE'" 'ISSEVEN'
465 $! Go Back To The Main Directory.
473 $! Build The [.xxx.EXE.RSAREF]LIBRSAGLUE Library.
476 $ WRITE SYS$OUTPUT ""
477 $ WRITE SYS$OUTPUT "RSAref glue library not built, since it's no longer needed"
480 $! Tell The User What We Are Doing.
482 $ WRITE SYS$OUTPUT ""
483 $ WRITE SYS$OUTPUT "Building The [.",ARCH,".EXE.RSAREF]LIBRSAGLUE.OLB Library."
485 $! Go To The [.RSAREF] Directory.
487 $ SET DEFAULT SYS$DISK:[.RSAREF]
489 $! Build The [.xxx.EXE.RSAREF]LIBRSAGLUE.OLB Library.
491 $ @RSAREF-LIB LIBRARY 'DEBUGGER' "''COMPILER'" 'ISSEVEN'
493 $! Go Back To The Main Directory.
501 $! Build The "[.xxx.EXE.SSL]LIBSSL.OLB" Library.
505 $! Tell The User What We Are Doing.
507 $ WRITE SYS$OUTPUT ""
508 $ WRITE SYS$OUTPUT "Building The [.",ARCH,".EXE.SSL]LIBSSL.OLB Library."
510 $! Go To The [.SSL] Directory.
512 $ SET DEFAULT SYS$DISK:[.SSL]
514 $! Build The [.xxx.EXE.SSL]LIBSSL.OLB Library.
516 $ @SSL-LIB LIBRARY 'RSAREF' 'DEBUGGER' "''COMPILER'" "''TCPIP_TYPE'" 'ISSEVEN'
518 $! Go Back To The Main Directory.
526 $! Build The "[.xxx.EXE.SSL]SSL_TASK.EXE" Program.
530 $! Tell The User What We Are Doing.
532 $ WRITE SYS$OUTPUT ""
533 $ WRITE SYS$OUTPUT "Building DECNet Based SSL Engine, [.",ARCH,".EXE.SSL]SSL_TASK.EXE"
535 $! Go To The [.SSL] Directory.
537 $ SET DEFAULT SYS$DISK:[.SSL]
539 $! Build The [.xxx.EXE.SSL]SSL_TASK.EXE
541 $ @SSL-LIB SSL_TASK 'RSAREF' 'DEBUGGER' "''COMPILER'" "''TCPIP_TYPE'" 'ISSEVEN'
543 $! Go Back To The Main Directory.
547 $! That's All, Time To RETURN.
551 $! Build The OpenSSL Test Programs.
555 $! Tell The User What We Are Doing.
557 $ WRITE SYS$OUTPUT ""
558 $ WRITE SYS$OUTPUT "Building The OpenSSL [.",ARCH,".EXE.TEST] Test Utilities."
560 $! Go To The [.TEST] Directory.
562 $ SET DEFAULT SYS$DISK:[.TEST]
564 $! Build The Test Programs.
566 $ @MAKETESTS 'RSAREF' 'DEBUGGER' "''COMPILER'" "''TCPIP_TYPE'" 'ISSEVEN'
568 $! Go Back To The Main Directory.
572 $! That's All, Time To RETURN.
576 $! Build The OpenSSL Application Programs.
580 $! Tell The User What We Are Doing.
582 $ WRITE SYS$OUTPUT ""
583 $ WRITE SYS$OUTPUT "Building OpenSSL [.",ARCH,".EXE.APPS] Applications."
585 $! Go To The [.APPS] Directory.
587 $ SET DEFAULT SYS$DISK:[.APPS]
589 $! Build The Application Programs.
591 $ @MAKEAPPS 'RSAREF' 'DEBUGGER' "''COMPILER'" "''TCPIP_TYPE'" 'ISSEVEN'
593 $! Go Back To The Main Directory.
597 $! That's All, Time To RETURN.
601 $! Check The User's Options.
605 $! Check if there's a "part", and separate it out
607 $ BUILDPART = F$ELEMENT(1,"/",P1)
608 $ IF BUILDPART .EQS. "/"
612 $ P1 = F$EXTRACT(0,F$LENGTH(P1) - F$LENGTH(BUILDPART) - 1, P1)
615 $! Check To See If P1 Is Blank.
620 $! P1 Is ALL, So Build Everything.
622 $ BUILDCOMMAND = "ALL"
628 $! Else, Check To See If P1 Has A Valid Arguement.
630 $ IF (P1.EQS."CONFIG").OR.(P1.EQS."BUILDINF").OR.(P1.EQS."SOFTLINKS") -
631 .OR.(P1.EQS."BUILDALL") -
632 .OR.(P1.EQS."CRYPTO").OR.(P1.EQS."SSL").OR.(P1.EQS."RSAREF") -
633 .OR.(P1.EQS."SSL_TASK").OR.(P1.EQS."TEST").OR.(P1.EQS."APPS")
636 $! A Valid Arguement.
644 $! Tell The User We Don't Know What They Want.
646 $ WRITE SYS$OUTPUT ""
647 $ WRITE SYS$OUTPUT "The Option ",P1," Is Invalid. The Valid Options Are:"
648 $ WRITE SYS$OUTPUT ""
649 $ WRITE SYS$OUTPUT " ALL : Just Build Everything."
650 $ WRITE SYS$OUTPUT " CONFIG : Just build the [.CRYPTO]OPENSSLCONF.H file."
651 $ WRITE SYS$OUTPUT " BUILDINF : Just build the [.CRYPTO]BUILDINF.H file."
652 $ WRITE SYS$OUTPUT " SOFTLINKS: Just Fix The Unix soft links."
653 $ WRITE SYS$OUTPUT " BUILDALL : Same as ALL, except CONFIG, BUILDINF and SOFTILNKS aren't done."
654 $ WRITE SYS$OUTPUT " CRYPTO : To Build Just The [.xxx.EXE.CRYPTO]LIBCRYPTO.OLB Library."
655 $ WRITE SYS$OUTPUT " CRYPTO/x : To Build Just The x Part Of The"
656 $ WRITE SYS$OUTPUT " [.xxx.EXE.CRYPTO]LIBCRYPTO.OLB Library."
657 $ WRITE SYS$OUTPUT " SSL : To Build Just The [.xxx.EXE.SSL]LIBSSL.OLB Library."
658 $ WRITE SYS$OUTPUT " SSL_TASK : To Build Just The [.xxx.EXE.SSL]SSL_TASK.EXE Program."
659 $ WRITE SYS$OUTPUT " TEST : To Build Just The OpenSSL Test Programs."
660 $ WRITE SYS$OUTPUT " APPS : To Build Just The OpenSSL Application Programs."
661 $ WRITE SYS$OUTPUT ""
662 $ WRITE SYS$OUTPUT " Where 'xxx' Stands For:"
663 $ WRITE SYS$OUTPUT ""
664 $ WRITE SYS$OUTPUT " AXP : Alpha Architecture."
665 $ WRITE SYS$OUTPUT " VAX : VAX Architecture."
666 $ WRITE SYS$OUTPUT ""
672 $! End The Valid Argument Check.
680 $! Check To See If P2 Is Blank.
683 $ IF (P2.EQS."NORSAREF")
686 $! P2 Is NORSAREF, So Compile Without RSAREF.
688 $ RSAREF = "NORSAREF"
694 $! Check To See If We Are To Compile Using The RSAREF Library.
696 $ IF (P2.EQS."RSAREF")
699 $! Compile With RSAREF Library.
707 $! Tell The User Entered An Invalid Option..
709 $ WRITE SYS$OUTPUT ""
710 $ WRITE SYS$OUTPUT "The Option ",P2," Is Invalid. The Valid Options Are:"
711 $ WRITE SYS$OUTPUT ""
712 $ WRITE SYS$OUTPUT " RSAREF : To Compile With The RSAREF Library."
713 $ WRITE SYS$OUTPUT " NORSAREF : To Compile With The Regular RSA Library."
714 $ WRITE SYS$OUTPUT ""
720 $! End The Valid Arguemnt Check.
728 $! Check To See If P3 Is Blank.
730 $ IF (P3.EQS."NODEBUG")
733 $! P3 Is NODEBUG, So Compile Without Debugger Information.
735 $ DEBUGGER = "NODEBUG"
741 $! Check To See If We Are To Compile With Debugger Information.
743 $ IF (P3.EQS."DEBUG")
746 $! Compile With Debugger Information.
754 $! Tell The User Entered An Invalid Option..
756 $ WRITE SYS$OUTPUT ""
757 $ WRITE SYS$OUTPUT "The Option ",P3," Is Invalid. The Valid Options Are:"
758 $ WRITE SYS$OUTPUT ""
759 $ WRITE SYS$OUTPUT " DEBUG : Compile With The Debugger Information."
760 $ WRITE SYS$OUTPUT " NODEBUG : Compile Without The Debugger Information."
761 $ WRITE SYS$OUTPUT ""
767 $! End The Valid Arguement Check.
775 $! Check To See If P4 Is Blank.
780 $! O.K., The User Didn't Specify A Compiler, Let's Try To
781 $! Find Out Which One To Use.
783 $! Check To See If We Have GNU C.
785 $ IF (F$TRNLNM("GNU_CC").NES."")
788 $! Looks Like GNUC, Set To Use GNUC.
792 $! Tell The User We Are Using GNUC.
794 $ WRITE SYS$OUTPUT "Using GNU 'C' Compiler."
796 $! End The GNU C Compiler Check.
800 $! Check To See If We Have VAXC Or DECC.
802 $ IF (F$GETSYI("CPU").GE.128).OR.(F$TRNLNM("DECC$CC_DEFAULT").EQS."/DECC")
805 $! Looks Like DECC, Set To Use DECC.
809 $! Tell The User We Are Using DECC.
811 $ WRITE SYS$OUTPUT "Using DECC 'C' Compiler."
817 $! Looks Like VAXC, Set To Use VAXC.
821 $! Tell The User We Are Using VAX C.
823 $ WRITE SYS$OUTPUT "Using VAXC 'C' Compiler."
825 $! End The DECC & VAXC Compiler Check.
833 $! Check To See If The User Entered A Valid Paramter.
835 $ IF (P4.EQS."VAXC").OR.(P4.EQS."DECC").OR.(P4.EQS."GNUC")!.OR.(P4.EQS."LINK")
838 $! Check To See If The User Wanted To Just LINK.
843 $! Looks Like LINK-only
847 $! Tell The User We Are Only Linking.
849 $ WRITE SYS$OUTPUT "LINK Only. This actually NOT YET SUPPORTED!"
855 $! Check To See If The User Wanted DECC.
860 $! Looks Like DECC, Set To Use DECC.
864 $! Tell The User We Are Using DECC.
866 $ WRITE SYS$OUTPUT "Using DECC 'C' Compiler."
872 $! Check To See If We Are To Use VAXC.
877 $! Looks Like VAXC, Set To Use VAXC.
881 $! Tell The User We Are Using VAX C.
883 $ WRITE SYS$OUTPUT "Using VAXC 'C' Compiler."
889 $! Check To See If We Are To Use GNU C.
894 $! Looks Like GNUC, Set To Use GNUC.
898 $! Tell The User We Are Using GNUC.
900 $ WRITE SYS$OUTPUT "Using GNU 'C' Compiler."
902 $! End The GNU C Check.
906 $! Else The User Entered An Invalid Arguement.
910 $! Tell The User We Don't Know What They Want.
912 $ WRITE SYS$OUTPUT ""
913 $ WRITE SYS$OUTPUT "The Option ",P4," Is Invalid. The Valid Options Are:"
914 $ WRITE SYS$OUTPUT ""
915 $ WRITE SYS$OUTPUT " VAXC : To Compile With VAX C."
916 $ WRITE SYS$OUTPUT " DECC : To Compile With DEC C."
917 $ WRITE SYS$OUTPUT " GNUC : To Compile With GNU C."
918 $ WRITE SYS$OUTPUT ""
924 $! End The Valid Arguement Check.
932 $! Time to check the contents of P5, and to make sure we get the correct library.
934 $ IF P5.EQS."SOCKETSHR" .OR. P5.EQS."MULTINET" .OR. P5.EQS."UCX"
937 $! Check to see if SOCKETSHR was chosen
939 $ IF P5.EQS."SOCKETSHR"
942 $! Set the library to use SOCKETSHR
944 $ TCPIP_LIB = "[-.VMS]SOCKETSHR_SHR.OPT/OPT"
948 $ WRITE SYS$OUTPUT "Using SOCKETSHR for TCP/IP"
950 $! Done with SOCKETSHR
954 $! Check to see if MULTINET was chosen
956 $ IF P5.EQS."MULTINET"
959 $! Set the library to use UCX emulation.
965 $ WRITE SYS$OUTPUT "Using MultiNet via UCX emulation for TCP/IP"
967 $! Done with MULTINET
971 $! Check to see if UCX was chosen
976 $! Set the library to use UCX.
978 $ TCPIP_LIB = "[-.VMS]UCX_SHR_DECC.OPT/OPT"
982 $ WRITE SYS$OUTPUT "Using UCX or an emulation thereof for TCP/IP"
988 $! Set the TCPIP_TYPE symbol
994 $ WRITE SYS$OUTPUT "TCP/IP library spec: ", TCPIP_LIB
996 $! Else The User Entered An Invalid Arguement.
1002 $! Tell The User We Don't Know What They Want.
1004 $ WRITE SYS$OUTPUT ""
1005 $ WRITE SYS$OUTPUT "The Option ",P5," Is Invalid. The Valid Options Are:"
1006 $ WRITE SYS$OUTPUT ""
1007 $ WRITE SYS$OUTPUT " SOCKETSHR : To link with SOCKETSHR TCP/IP library."
1008 $ WRITE SYS$OUTPUT " UCX : To link with UCX TCP/IP library."
1009 $ WRITE SYS$OUTPUT ""
1016 $! Set the TCPIP_TYPE symbol
1021 $! Done with TCP/IP libraries
1025 $! Special Threads For OpenVMS v7.1 Or Later
1027 $! Written By: Richard Levitte
1028 $! richard@levitte.org
1031 $! Check To See If We Have A Option For P6.
1036 $! Get The Version Of VMS We Are Using.
1039 $ TMP = F$ELEMENT(0,"-",F$EXTRACT(1,4,F$GETSYI("VERSION")))
1040 $ TMP = F$INTEGER(F$ELEMENT(0,".",TMP)+F$ELEMENT(1,".",TMP))
1042 $! Check To See If The VMS Version Is v7.1 Or Later.
1047 $! We Have OpenVMS v7.1 Or Later, So Use The Special Threads.
1049 $ ISSEVEN := ,PTHREAD_USE_D4
1051 $! End The VMS Version Check.
1055 $! End The P6 Check.
1059 $! Time To RETURN...