Index: openssl/apps/makeapps.com |
=================================================================== |
--- openssl/apps/makeapps.com (revision 105093) |
+++ openssl/apps/makeapps.com (working copy) |
@@ -25,7 +25,7 @@ |
$! DECC For DEC C. |
$! GNUC For GNU C. |
$! |
-$! If you don't speficy a compiler, it will try to determine which |
+$! If you don't specify a compiler, it will try to determine which |
$! "C" compiler to use. |
$! |
$! P3, if defined, sets a TCP/IP library to use, through one of the following |
@@ -39,11 +39,35 @@ |
$! |
$! P5, if defined, sets a choice of programs to compile. |
$! |
+$! P6, if defined, specifies the C pointer size. Ignored on VAX. |
+$! ("64=ARGV" gives more efficient code with HP C V7.3 or newer.) |
+$! Supported values are: |
$! |
+$! "" Compile with default (/NOPOINTER_SIZE) |
+$! 32 Compile with /POINTER_SIZE=32 (SHORT) |
+$! 64 Compile with /POINTER_SIZE=64[=ARGV] (LONG[=ARGV]) |
+$! (Automatically select ARGV if compiler supports it.) |
+$! 64= Compile with /POINTER_SIZE=64 (LONG). |
+$! 64=ARGV Compile with /POINTER_SIZE=64=ARGV (LONG=ARGV). |
+$! |
+$! P7, if defined, specifies a directory where ZLIB files (zlib.h, |
+$! libz.olb) may be found. Optionally, a non-default object library |
+$! name may be included ("dev:[dir]libz_64.olb", for example). |
+$! |
+$! |
+$! Announce/identify. |
+$! |
+$ proc = f$environment( "procedure") |
+$ write sys$output "@@@ "+ - |
+ f$parse( proc, , , "name")+ f$parse( proc, , , "type") |
+$! |
+$ on control_c then goto exit |
+$! |
$! Define A TCP/IP Library That We Will Need To Link To. |
$! (That Is, If We Need To Link To One.) |
$! |
$ TCPIP_LIB = "" |
+$ ZLIB_LIB = "" |
$! |
$! Check What Architecture We Are Using. |
$! |
@@ -52,7 +76,7 @@ |
$! |
$! The Architecture Is VAX. |
$! |
-$ ARCH := VAX |
+$ ARCH = "VAX" |
$! |
$! Else... |
$! |
@@ -67,29 +91,45 @@ |
$! |
$ ENDIF |
$! |
+$ ARCHD = ARCH |
+$ LIB32 = "32" |
+$ OPT_FILE = "" |
+$ POINTER_SIZE = "" |
+$! |
$! Define what programs should be compiled |
$! |
$ PROGRAMS := OPENSSL |
$! |
+$! Check To Make Sure We Have Valid Command Line Parameters. |
+$! |
+$ GOSUB CHECK_OPTIONS |
+$! |
$! Define The CRYPTO Library. |
$! |
-$ CRYPTO_LIB := SYS$DISK:[-.'ARCH'.EXE.CRYPTO]LIBCRYPTO.OLB |
+$ CRYPTO_LIB := SYS$DISK:[-.'ARCHD'.EXE.CRYPTO]SSL_LIBCRYPTO'LIB32'.OLB |
$! |
$! Define The SSL Library. |
$! |
-$ SSL_LIB := SYS$DISK:[-.'ARCH'.EXE.SSL]LIBSSL.OLB |
+$ SSL_LIB := SYS$DISK:[-.'ARCHD'.EXE.SSL]SSL_LIBSSL'LIB32'.OLB |
$! |
-$! Define The OBJ Directory. |
+$! Define The OBJ and EXE Directories. |
$! |
-$ OBJ_DIR := SYS$DISK:[-.'ARCH'.OBJ.APPS] |
+$ OBJ_DIR := SYS$DISK:[-.'ARCHD'.OBJ.APPS] |
+$ EXE_DIR := SYS$DISK:[-.'ARCHD'.EXE.APPS] |
$! |
-$! Define The EXE Directory. |
+$! Specify the destination directory in any /MAP option. |
$! |
-$ EXE_DIR := SYS$DISK:[-.'ARCH'.EXE.APPS] |
+$ if (LINKMAP .eqs. "MAP") |
+$ then |
+$ LINKMAP = LINKMAP+ "=''EXE_DIR'" |
+$ endif |
$! |
-$! Check To Make Sure We Have Valid Command Line Parameters. |
+$! Add the location prefix to the linker options file name. |
$! |
-$ GOSUB CHECK_OPTIONS |
+$ if (OPT_FILE .nes. "") |
+$ then |
+$ OPT_FILE = EXE_DIR+ OPT_FILE |
+$ endif |
$! |
$! Initialise logical names and such |
$! |
@@ -97,7 +137,7 @@ |
$! |
$! Tell The User What Kind of Machine We Run On. |
$! |
-$ WRITE SYS$OUTPUT "Compiling On A ",ARCH," Machine." |
+$ WRITE SYS$OUTPUT "Host system architecture: ''ARCHD'" |
$! |
$! Check To See If The OBJ Directory Exists. |
$! |
@@ -139,12 +179,15 @@ |
$! making it fairly easy to verify that the lists are the same. |
$! |
$ LIB_OPENSSL = "VERIFY,ASN1PARS,REQ,DGST,DH,DHPARAM,ENC,PASSWD,GENDH,ERRSTR,"+- |
- "CA,PKCS7,CRL2P7,CRL,"+- |
- "RSA,RSAUTL,DSA,DSAPARAM,EC,ECPARAM,"+- |
- "X509,GENRSA,GENDSA,S_SERVER,S_CLIENT,SPEED,"+- |
- "S_TIME,APPS,S_CB,S_SOCKET,APP_RAND,VERSION,SESS_ID,"+- |
- "CIPHERS,NSEQ,PKCS12,PKCS8,SPKAC,SMIME,RAND,ENGINE,"+- |
- "OCSP,PRIME,CMS" |
+ "CA,PKCS7,CRL2P7,CRL,"+- |
+ "RSA,RSAUTL,DSA,DSAPARAM,EC,ECPARAM,"+- |
+ "X509,GENRSA,GENDSA,GENPKEY,S_SERVER,S_CLIENT,SPEED,"+- |
+ "S_TIME,APPS,S_CB,S_SOCKET,APP_RAND,VERSION,SESS_ID,"+- |
+ "CIPHERS,NSEQ,PKCS12,PKCS8,PKEY,PKEYPARAM,PKEYUTL,"+ - |
+ "SPKAC,SMIME,CMS,RAND,ENGINE,OCSP,PRIME,TS" |
+$! |
+$ LIB_OPENSSL = LIB_OPENSSL+ ",VMS_DECC_INIT" |
+$! |
$ TCPIP_PROGRAMS = ",," |
$ IF COMPILER .EQS. "VAXC" THEN - |
TCPIP_PROGRAMS = ",OPENSSL," |
@@ -202,7 +245,7 @@ |
$! |
$! Create a .OPT file for the object files |
$! |
-$ OPEN/WRITE OBJECTS 'EXE_DIR''CURRENT_APP'.OPT |
+$ OPEN /WRITE OBJECTS 'EXE_DIR''CURRENT_APP'.OPT |
$! |
$! Top Of The File Loop. |
$! |
@@ -289,35 +332,19 @@ |
$ ENDIF |
$! |
$! Link The Program. |
-$! Check To See If We Are To Link With A Specific TCP/IP Library. |
$! |
$ ON WARNING THEN GOTO NEXT_APP |
$! |
-$ IF (TCPIP_LIB.NES."") |
-$ THEN |
-$! |
$! Don't Link With The RSAREF Routines And TCP/IP Library. |
$! |
-$ LINK/'DEBUGGER'/'TRACEBACK' /EXE='EXE_FILE' - |
- 'EXE_DIR''CURRENT_APP'.OPT/OPTION, - |
- 'SSL_LIB'/LIBRARY,'CRYPTO_LIB'/LIBRARY, - |
- 'TCPIP_LIB','OPT_FILE'/OPTION |
+$ LINK /'DEBUGGER' /'LINKMAP' /'TRACEBACK' /EXE='EXE_FILE' - |
+ 'EXE_DIR''CURRENT_APP'.OPT /OPTIONS, - |
+ 'SSL_LIB' /LIBRARY, - |
+ 'CRYPTO_LIB' /LIBRARY - |
+ 'TCPIP_LIB' - |
+ 'ZLIB_LIB' - |
+ ,'OPT_FILE' /OPTIONS |
$! |
-$! Else... |
-$! |
-$ ELSE |
-$! |
-$! Don't Link With The RSAREF Routines And Link With A TCP/IP Library. |
-$! |
-$ LINK/'DEBUGGER'/'TRACEBACK' /EXE='EXE_FILE' - |
- 'EXE_DIR''CURRENT_APP'.OPT/OPTION, - |
- 'SSL_LIB'/LIBRARY,'CRYPTO_LIB'/LIBRARY, - |
- 'OPT_FILE'/OPTION |
-$! |
-$! End The TCP/IP Library Check. |
-$! |
-$ ENDIF |
-$! |
$! Go Back And Do It Again. |
$! |
$ GOTO NEXT_APP |
@@ -351,7 +378,7 @@ |
$ CREATE 'OPT_FILE' |
$DECK |
! |
-! Default System Options File To Link Agianst |
+! Default System Options File To Link Against |
! The Sharable VAX C Runtime Library. |
! |
SYS$SHARE:VAXCRTL.EXE/SHARE |
@@ -380,7 +407,7 @@ |
$ CREATE 'OPT_FILE' |
$DECK |
! |
-! Default System Options File To Link Agianst |
+! Default System Options File To Link Against |
! The Sharable C Runtime Library. |
! |
GNU_CC:[000000]GCCLIB/LIBRARY |
@@ -415,7 +442,7 @@ |
$ CREATE 'OPT_FILE' |
$DECK |
! |
-! Default System Options File To Link Agianst |
+! Default System Options File To Link Against |
! The Sharable DEC C Runtime Library. |
! |
SYS$SHARE:DECC$SHR.EXE/SHARE |
@@ -430,7 +457,7 @@ |
$ CREATE 'OPT_FILE' |
$DECK |
! |
-! Default System Options File For non-VAX To Link Agianst |
+! Default System Options File For non-VAX To Link Against |
! The Sharable C Runtime Library. |
! |
SYS$SHARE:CMA$OPEN_LIB_SHR/SHARE |
@@ -514,14 +541,15 @@ |
$ IF (P1.EQS."NODEBUG") |
$ THEN |
$! |
-$! P1 Is NODEBUG, So Compile Without Debugger Information. |
+$! P1 Is NODEBUG, So Compile Without Debugger Information. |
$! |
-$ DEBUGGER = "NODEBUG" |
-$ TRACEBACK = "NOTRACEBACK" |
-$ GCC_OPTIMIZE = "OPTIMIZE" |
-$ CC_OPTIMIZE = "OPTIMIZE" |
-$ WRITE SYS$OUTPUT "No Debugger Information Will Be Produced During Compile." |
-$ WRITE SYS$OUTPUT "Compiling With Compiler Optimization." |
+$ DEBUGGER = "NODEBUG" |
+$ LINKMAP = "NOMAP" |
+$ TRACEBACK = "NOTRACEBACK" |
+$ GCC_OPTIMIZE = "OPTIMIZE" |
+$ CC_OPTIMIZE = "OPTIMIZE" |
+$ WRITE SYS$OUTPUT "No Debugger Information Will Be Produced During Compile." |
+$ WRITE SYS$OUTPUT "Compiling With Compiler Optimization." |
$! |
$! Else... |
$! |
@@ -535,6 +563,7 @@ |
$! Compile With Debugger Information. |
$! |
$ DEBUGGER = "DEBUG" |
+$ LINKMAP = "MAP" |
$ TRACEBACK = "TRACEBACK" |
$ GCC_OPTIMIZE = "NOOPTIMIZE" |
$ CC_OPTIMIZE = "NOOPTIMIZE" |
@@ -542,7 +571,7 @@ |
$ WRITE SYS$OUTPUT "Compiling Without Compiler Optimization." |
$ ELSE |
$! |
-$! Tell The User Entered An Invalid Option.. |
+$! Tell The User Entered An Invalid Option. |
$! |
$ WRITE SYS$OUTPUT "" |
$ WRITE SYS$OUTPUT "The Option ",P1," Is Invalid. The Valid Options Are:" |
@@ -555,7 +584,7 @@ |
$! |
$ EXIT |
$! |
-$! End The Valid Arguement Check. |
+$! End The Valid Argument Check. |
$! |
$ ENDIF |
$! |
@@ -563,6 +592,87 @@ |
$! |
$ ENDIF |
$! |
+$! Check P6 (POINTER_SIZE). |
+$! |
+$ IF (P6 .NES. "") .AND. (ARCH .NES. "VAX") |
+$ THEN |
+$! |
+$ IF (P6 .EQS. "32") |
+$ THEN |
+$ POINTER_SIZE = " /POINTER_SIZE=32" |
+$ ELSE |
+$ POINTER_SIZE = F$EDIT( P6, "COLLAPSE, UPCASE") |
+$ IF ((POINTER_SIZE .EQS. "64") .OR. - |
+ (POINTER_SIZE .EQS. "64=") .OR. - |
+ (POINTER_SIZE .EQS. "64=ARGV")) |
+$ THEN |
+$ ARCHD = ARCH+ "_64" |
+$ LIB32 = "" |
+$ IF (F$EXTRACT( 2, 1, POINTER_SIZE) .EQS. "=") |
+$ THEN |
+$! Explicit user choice: "64" or "64=ARGV". |
+$ IF (POINTER_SIZE .EQS. "64=") THEN POINTER_SIZE = "64" |
+$ ELSE |
+$ SET NOON |
+$ DEFINE /USER_MODE SYS$OUTPUT NL: |
+$ DEFINE /USER_MODE SYS$ERROR NL: |
+$ CC /NOLIST /NOOBJECT /POINTER_SIZE=64=ARGV NL: |
+$ IF ($STATUS .AND. %X0FFF0000) .EQ. %X00030000 |
+$ THEN |
+$ ! If we got here, it means DCL complained like this: |
+$ ! %DCL-W-NOVALU, value not allowed - remove value specification |
+$ ! \64=\ |
+$ ! |
+$ ! If the compiler was run, logicals defined in /USER would |
+$ ! have been deassigned automatically. However, when DCL |
+$ ! complains, they aren't, so we do it here (it might be |
+$ ! unnecessary, but just in case there will be another error |
+$ ! message further on that we don't want to miss) |
+$ DEASSIGN /USER_MODE SYS$ERROR |
+$ DEASSIGN /USER_MODE SYS$OUTPUT |
+$ ELSE |
+$ POINTER_SIZE = POINTER_SIZE + "=ARGV" |
+$ ENDIF |
+$ SET ON |
+$ ENDIF |
+$ POINTER_SIZE = " /POINTER_SIZE=''POINTER_SIZE'" |
+$! |
+$ ELSE |
+$! |
+$! Tell The User Entered An Invalid Option. |
+$! |
+$ WRITE SYS$OUTPUT "" |
+$ WRITE SYS$OUTPUT "The Option ", P6, - |
+ " Is Invalid. The Valid Options Are:" |
+$ WRITE SYS$OUTPUT "" |
+$ WRITE SYS$OUTPUT - |
+ " """" : Compile with default (short) pointers." |
+$ WRITE SYS$OUTPUT - |
+ " 32 : Compile with 32-bit (short) pointers." |
+$ WRITE SYS$OUTPUT - |
+ " 64 : Compile with 64-bit (long) pointers (auto ARGV)." |
+$ WRITE SYS$OUTPUT - |
+ " 64= : Compile with 64-bit (long) pointers (no ARGV)." |
+$ WRITE SYS$OUTPUT - |
+ " 64=ARGV : Compile with 64-bit (long) pointers (ARGV)." |
+$ WRITE SYS$OUTPUT "" |
+$! |
+$! Time To EXIT. |
+$! |
+$ EXIT |
+$! |
+$ ENDIF |
+$! |
+$ ENDIF |
+$! |
+$! End The P6 (POINTER_SIZE) Check. |
+$! |
+$ ENDIF |
+$! |
+$! Set basic C compiler /INCLUDE directories. |
+$! |
+$ CC_INCLUDES = "SYS$DISK:[-],SYS$DISK:[-.CRYPTO]" |
+$! |
$! Check To See If P2 Is Blank. |
$! |
$ IF (P2.EQS."") |
@@ -663,12 +773,65 @@ |
$ IF F$TYPE(USER_CCDEFS) .NES. "" THEN CCDEFS = CCDEFS + "," + USER_CCDEFS |
$ CCEXTRAFLAGS = "" |
$ IF F$TYPE(USER_CCFLAGS) .NES. "" THEN CCEXTRAFLAGS = USER_CCFLAGS |
-$ CCDISABLEWARNINGS = "LONGLONGTYPE,LONGLONGSUFX,FOUNDCR" |
+$ CCDISABLEWARNINGS = "" !!! "LONGLONGTYPE,LONGLONGSUFX,FOUNDCR" |
$ IF F$TYPE(USER_CCDISABLEWARNINGS) .NES. "" THEN - |
CCDISABLEWARNINGS = CCDISABLEWARNINGS + "," + USER_CCDISABLEWARNINGS |
$! |
-$! Check To See If The User Entered A Valid Paramter. |
+$! Check To See If We Have A ZLIB Option. |
$! |
+$ ZLIB = P7 |
+$ IF (ZLIB .NES. "") |
+$ THEN |
+$! |
+$! Check for expected ZLIB files. |
+$! |
+$ err = 0 |
+$ file1 = f$parse( "zlib.h", ZLIB, , , "SYNTAX_ONLY") |
+$ if (f$search( file1) .eqs. "") |
+$ then |
+$ WRITE SYS$OUTPUT "" |
+$ WRITE SYS$OUTPUT "The Option ", ZLIB, " Is Invalid." |
+$ WRITE SYS$OUTPUT " Can't find header: ''file1'" |
+$ err = 1 |
+$ endif |
+$ file1 = f$parse( "A.;", ZLIB)- "A.;" |
+$! |
+$ file2 = f$parse( ZLIB, "libz.olb", , , "SYNTAX_ONLY") |
+$ if (f$search( file2) .eqs. "") |
+$ then |
+$ if (err .eq. 0) |
+$ then |
+$ WRITE SYS$OUTPUT "" |
+$ WRITE SYS$OUTPUT "The Option ", ZLIB, " Is Invalid." |
+$ endif |
+$ WRITE SYS$OUTPUT " Can't find library: ''file2'" |
+$ WRITE SYS$OUTPUT "" |
+$ err = err+ 2 |
+$ endif |
+$ if (err .eq. 1) |
+$ then |
+$ WRITE SYS$OUTPUT "" |
+$ endif |
+$! |
+$ if (err .ne. 0) |
+$ then |
+$ EXIT |
+$ endif |
+$! |
+$ CCDEFS = """ZLIB=1"", "+ CCDEFS |
+$ CC_INCLUDES = CC_INCLUDES+ ", "+ file1 |
+$ ZLIB_LIB = ", ''file2' /library" |
+$! |
+$! Print info |
+$! |
+$ WRITE SYS$OUTPUT "ZLIB library spec: ", file2 |
+$! |
+$! End The ZLIB Check. |
+$! |
+$ ENDIF |
+$! |
+$! Check To See If The User Entered A Valid Parameter. |
+$! |
$ IF (P2.EQS."VAXC").OR.(P2.EQS."DECC").OR.(P2.EQS."GNUC") |
$ THEN |
$! |
@@ -690,13 +853,13 @@ |
$ CC = "CC" |
$ IF ARCH.EQS."VAX" .AND. F$TRNLNM("DECC$CC_DEFAULT").NES."/DECC" - |
THEN CC = "CC/DECC" |
-$ CC = CC + "/''CC_OPTIMIZE'/''DEBUGGER'/STANDARD=ANSI89" + - |
- "/NOLIST/PREFIX=ALL" + - |
- "/INCLUDE=(SYS$DISK:[-],SYS$DISK:[-.CRYPTO])" + CCEXTRAFLAGS |
+$ CC = CC + " /''CC_OPTIMIZE' /''DEBUGGER' /STANDARD=RELAXED"+ - |
+ "''POINTER_SIZE' /NOLIST /PREFIX=ALL" + - |
+ " /INCLUDE=(''CC_INCLUDES') " + CCEXTRAFLAGS |
$! |
$! Define The Linker Options File Name. |
$! |
-$ OPT_FILE = "''EXE_DIR'VAX_DECC_OPTIONS.OPT" |
+$ OPT_FILE = "VAX_DECC_OPTIONS.OPT" |
$! |
$! End DECC Check. |
$! |
@@ -724,7 +887,7 @@ |
$ ENDIF |
$ IF F$TRNLNM("DECC$CC_DEFAULT").EQS."/DECC" THEN CC = "CC/VAXC" |
$ CC = CC + "/''CC_OPTIMIZE'/''DEBUGGER'/NOLIST" + - |
- "/INCLUDE=(SYS$DISK:[-],SYS$DISK:[-.CRYPTO])" + CCEXTRAFLAGS |
+ "/INCLUDE=(''CC_INCLUDES')" + CCEXTRAFLAGS |
$ CCDEFS = CCDEFS + ",""VAXC""" |
$! |
$! Define <sys> As SYS$COMMON:[SYSLIB] |
@@ -733,7 +896,7 @@ |
$! |
$! Define The Linker Options File Name. |
$! |
-$ OPT_FILE = "''EXE_DIR'VAX_VAXC_OPTIONS.OPT" |
+$ OPT_FILE = "VAX_VAXC_OPTIONS.OPT" |
$! |
$! End VAXC Check |
$! |
@@ -756,11 +919,11 @@ |
$! |
$ IF F$TYPE(GCC) .EQS. "" THEN GCC := GCC |
$ CC = GCC+"/NOCASE_HACK/''GCC_OPTIMIZE'/''DEBUGGER'/NOLIST" + - |
- "/INCLUDE=(SYS$DISK:[-],SYS$DISK:[-.CRYPTO])" + CCEXTRAFLAGS |
+ "/INCLUDE=(''CC_INCLUDES')" + CCEXTRAFLAGS |
$! |
$! Define The Linker Options File Name. |
$! |
-$ OPT_FILE = "''EXE_DIR'VAX_GNUC_OPTIONS.OPT" |
+$ OPT_FILE = "VAX_GNUC_OPTIONS.OPT" |
$! |
$! End The GNU C Check. |
$! |
@@ -770,7 +933,7 @@ |
$! |
$ CCDEFS = """FLAT_INC=1""," + CCDEFS |
$! |
-$! Else The User Entered An Invalid Arguement. |
+$! Else The User Entered An Invalid Argument. |
$! |
$ ELSE |
$! |
@@ -802,7 +965,7 @@ |
$! |
$! Set the library to use SOCKETSHR |
$! |
-$ TCPIP_LIB = "SYS$DISK:[-.VMS]SOCKETSHR_SHR.OPT/OPT" |
+$ TCPIP_LIB = ",SYS$DISK:[-.VMS]SOCKETSHR_SHR.OPT /OPTIONS" |
$! |
$! Done with SOCKETSHR |
$! |
@@ -828,13 +991,13 @@ |
$! |
$! Set the library to use UCX. |
$! |
-$ TCPIP_LIB = "SYS$DISK:[-.VMS]UCX_SHR_DECC.OPT/OPT" |
+$ TCPIP_LIB = ",SYS$DISK:[-.VMS]UCX_SHR_DECC.OPT /OPTIONS" |
$ IF F$TRNLNM("UCX$IPC_SHR") .NES. "" |
$ THEN |
-$ TCPIP_LIB = "SYS$DISK:[-.VMS]UCX_SHR_DECC_LOG.OPT/OPT" |
+$ TCPIP_LIB = ",SYS$DISK:[-.VMS]UCX_SHR_DECC_LOG.OPT /OPTIONS" |
$ ELSE |
$ IF COMPILER .NES. "DECC" .AND. ARCH .EQS. "VAX" THEN - |
- TCPIP_LIB = "SYS$DISK:[-.VMS]UCX_SHR_VAXC.OPT/OPT" |
+ TCPIP_LIB = ",SYS$DISK:[-.VMS]UCX_SHR_VAXC.OPT /OPTIONS" |
$ ENDIF |
$! |
$! Done with UCX |
@@ -848,7 +1011,7 @@ |
$! |
$! Set the library to use TCPIP. |
$! |
-$ TCPIP_LIB = "SYS$DISK:[-.VMS]TCPIP_SHR_DECC.OPT/OPT" |
+$ TCPIP_LIB = ",SYS$DISK:[-.VMS]TCPIP_SHR_DECC.OPT /OPTIONS" |
$! |
$! Done with TCPIP |
$! |
@@ -873,9 +1036,9 @@ |
$! |
$! Print info |
$! |
-$ WRITE SYS$OUTPUT "TCP/IP library spec: ", TCPIP_LIB |
+$ WRITE SYS$OUTPUT "TCP/IP library spec: ", TCPIP_LIB- "," |
$! |
-$! Else The User Entered An Invalid Arguement. |
+$! Else The User Entered An Invalid Argument. |
$! |
$ ELSE |
$! |
@@ -903,13 +1066,13 @@ |
$ THEN |
$ IF CCDISABLEWARNINGS .NES. "" |
$ THEN |
-$ CCDISABLEWARNINGS = "/WARNING=(DISABLE=(" + CCDISABLEWARNINGS + "))" |
+$ CCDISABLEWARNINGS = " /WARNING=(DISABLE=(" + CCDISABLEWARNINGS + "))" |
$ ENDIF |
$ ELSE |
$ CCDISABLEWARNINGS = "" |
$ ENDIF |
-$ CC2 = CC + "/DEFINE=(" + CCDEFS + ",_POSIX_C_SOURCE)" + CCDISABLEWARNINGS |
-$ CC = CC + "/DEFINE=(" + CCDEFS + ")" + CCDISABLEWARNINGS |
+$ CC2 = CC + " /DEFINE=(" + CCDEFS + ",_POSIX_C_SOURCE)" + CCDISABLEWARNINGS |
+$ CC = CC + " /DEFINE=(" + CCDEFS + ")" + CCDISABLEWARNINGS |
$! |
$! Show user the result |
$! |
@@ -975,7 +1138,7 @@ |
$! |
$! Set up the logical name OPENSSL to point at the include directory |
$! |
-$ DEFINE OPENSSL/NOLOG '__INCLUDE' |
+$ DEFINE OPENSSL /NOLOG '__INCLUDE' |
$! |
$! Done |
$! |
@@ -983,15 +1146,24 @@ |
$! |
$ CLEANUP: |
$! |
-$! Restore the logical name OPENSSL if it had a value |
+$! Restore the saved logical name OPENSSL, if it had a value. |
$! |
-$ IF __SAVE_OPENSSL .EQS. "" |
-$ THEN |
-$ DEASSIGN OPENSSL |
-$ ELSE |
-$ DEFINE/NOLOG OPENSSL '__SAVE_OPENSSL' |
-$ ENDIF |
+$ if (f$type( __SAVE_OPENSSL) .nes. "") |
+$ then |
+$ IF __SAVE_OPENSSL .EQS. "" |
+$ THEN |
+$ DEASSIGN OPENSSL |
+$ ELSE |
+$ DEFINE /NOLOG OPENSSL '__SAVE_OPENSSL' |
+$ ENDIF |
+$ endif |
$! |
+$! Close any open files. |
+$! |
+$ if (f$trnlnm( "objects", "LNM$PROCESS", 0, "SUPERVISOR") .nes. "") then - |
+ close objects |
+$! |
$! Done |
$! |
$ RETURN |
+$! |