From bad978feb27aff00178989519ea3e49238cebbcf Mon Sep 17 00:00:00 2001 From: Daniel Stenberg Date: Mon, 15 Mar 2004 10:03:05 +0000 Subject: [PATCH] Marty Kuhrt's provided files for the VMS package --- packages/vms/batch_compile.com | Bin 0 -> 196 bytes packages/vms/build_vms.com | 206 ++++++++++++++++++++++++++ packages/vms/config-vms.h_with_ssl | Bin 0 -> 7172 bytes packages/vms/config-vms.h_without_ssl | Bin 0 -> 7166 bytes packages/vms/defines.com | Bin 0 -> 1544 bytes packages/vms/hpssl_alpha.opt | Bin 0 -> 80 bytes packages/vms/hpssl_ia64.opt | Bin 0 -> 80 bytes packages/vms/hpssl_vax.opt | Bin 0 -> 84 bytes packages/vms/readme | Bin 0 -> 2272 bytes 9 files changed, 206 insertions(+) create mode 100755 packages/vms/batch_compile.com create mode 100755 packages/vms/build_vms.com create mode 100755 packages/vms/config-vms.h_with_ssl create mode 100755 packages/vms/config-vms.h_without_ssl create mode 100755 packages/vms/defines.com create mode 100644 packages/vms/hpssl_alpha.opt create mode 100644 packages/vms/hpssl_ia64.opt create mode 100644 packages/vms/hpssl_vax.opt create mode 100644 packages/vms/readme diff --git a/packages/vms/batch_compile.com b/packages/vms/batch_compile.com new file mode 100755 index 0000000000000000000000000000000000000000..9c798301bfe6b8917d6dc575936e681af940a370 GIT binary patch literal 196 zc-n1@(F%ev6o$R(BD(4c4nt7MR|ujxXdoGyL04k!3c literal 0 Hc-jL100001 diff --git a/packages/vms/build_vms.com b/packages/vms/build_vms.com new file mode 100755 index 0000000000..4ca3c4b8ea --- /dev/null +++ b/packages/vms/build_vms.com @@ -0,0 +1,206 @@ +$! BUILD_VMS.COM +$! +$! I've taken the original build_vms.com, supplied by Nico Baggus, if +$! memory serves me correctly, and made some modifications. +$! +$! SSL support is based on logicals, or lack thereof. If SSL$INCLUDE +$! is defined, then it assumed that hp's SSL product has been installed. +$! If OPENSSL is defined, but SSL$INCLUDE isn't, then the OpenSSL defined +$! via the defines.com procedure will be used. If neither logical is +$! defined, then SSL support will not be compiled/linked in. +$! +$! If CURL_BUILD_NOSSL is defined to anything, then no SSL support will +$! be built in. This way you can build without SSL support on systems +$! that have it without the "automatic" build/link "features". +$! +$! If CURL_BUILD_NOHPSSL is defined to anything, it will override the +$! SSL$INCLUDE check. This way you can build against OpenSSL, even if +$! you have hp SSL installed. +$! +$! Parameter(s): +$! +$! P1 - LISTING will create .lis files during the C compile +$! DEBUG will compile and link with debug +$! +$! Revisions: +$! +$! 2-DEC-2003, MSK, the "original" version. +$! It works for me. Your mileage may vary. +$! 13-JAN-2004, MSK, moved this procedure to the [.packages.vms] directory +$! and updated it to do hardware dependant builds. +$! 29-JAN-2004, MSK, moved logical defines into defines.com +$! 6-FEB-2004, MSK, put in various SSL support bits +$! 9-MAR-2004, MSK, the config-vms.h* files are now copied to the lib and +$! src directories as config.h. +$! +$ on control_y then goto Common_Exit +$ origdir = f$environment("DEFAULT") +$ proc = f$environment("PROCEDURE") +$ thisdir = f$parse( proc,,,"DEVICE") + f$parse( proc,,,"DIRECTORY") +$! +$! Verbose output message stuff. Define symbol to "write sys$output" or "!". +$! vo_c - verbose output for compile +$! vo_l - link +$! vo_o - object check +$! +$ vo_c = "write sys$output" +$ vo_l = "write sys$output" +$ vo_o = "!" +$! +$ defines = thisdir + "defines.com" +$ if f$search( defines) .eqs. "" +$ then +$ write sys$output "%CURL-F-DEFFNF, cannot find defines.com procedure" +$ exit %X18290 ! FNF +$ endif +$ set def 'thisdir' +$ cc_qual = "/define=HAVE_CONFIG_H=1/OBJ=OBJDIR:" +$ link_qual = "" +$ if p1 .eqs. "LISTING" then cc_qual = cc_qual + "/LIST/MACHINE" +$ if p1 .eqs. "DEBUG" +$ then +$ cc_qual = cc_qual + "/LIST/MACHINE/DEBUG/NOOPT" +$ link_qual = "/DEBUG" +$ endif +$ msg_qual = "/OBJ=OBJDIR:" +$! +$ hpssl = 0 +$ openssl = 0 +$ if f$trnlnm( "CURL_BUILD_NOSSL") .eqs. "" +$ then +$ if f$trnlnm( "OPENSSL") .nes. "" +$ then +$ openssl = 1 +$ if ( f$trnlnm( "SSL$INCLUDE") .nes. "") .and. - + ( f$trnlnm( "CURL_BUILD_NOHPSSL") .eqs. "") +$ then hpssl = 1 +$ endif +$ endif +$ endif +$! +$! Put the right main config file in the two source directories for the build. +$! +$ if ( openssl .eq. 1) .or. ( hpssl .eq. 1) +$ then +$ 'vo_c' "%CURL-I-BLDSSL, building with SSL support" +$ source_h = "CONFIG-VMS.H_WITH_SSL" +$ else +$ 'vo_c' "%CURL-I-BLDNOSSL, building without SSL support" +$ source_h = "CONFIG-VMS.H_WITHOUT_SSL" +$ endif +$! +$! Only do the copy if the source and destination files are different. +$! Put this block into Set NoOn mode so that if the diff command triggers +$! an error while error message reporting is turned off, then it won't +$! just exit the command procedure mysteriously. +$! +$ set noon +$ set message/nof/noi/nos/not +$ diff/out=nla0: 'source_h' [--.SRC]CONFIG.H +$ status = $status +$ set message/f/i/s/t +$ if ( status .ne. %X006C8009) ! if status is not "no diff" +$ then +$ copy 'source_h' [--.SRC]CONFIG.H +$ purge/nolog [--.SRC]CONFIG.H +$ endif +$ set message/nof/noi/nos/not +$ diff/out=nla0: 'source_h' [--.LIB]CONFIG.H +$ status = $status +$ set message/f/i/s/t +$ if ( status .ne. %X006C8009) ! if status is not "no diff" +$ then +$ copy 'source_h' [--.LIB]CONFIG.H +$ purge/nolog [--.LIB]CONFIG.H +$ endif +$ on control_y then goto Common_Exit +$! +$ call build "[--.lib]" "*.c" "objdir:curllib.olb" +$ call build "[--.src]" "*.c" "objdir:curlsrc.olb" +$ call build "[--.src]" "*.msg" "objdir:curlsrc.olb" +$ if ( openssl .eq. 1) .and. ( hpssl .eq. 0) +$ then +$ 'vo_l' "%CURL-I-LINK_OSSL, linking with OpenSSL" +$ link 'link_qual'/exe=exedir:curl.exe - + objdir:curlsrc/lib/include=(main,curlmsg),- + objdir:curllib/lib, libssl/lib, libcrypto/lib +$ endif +$ if ( openssl .eq. 1) .and. ( hpssl .eq. 1) +$ then +$ 'vo_l' "%CURL-I-LINK_HPSSL, linking with hp SSL option" +$ optfile = "[]hpssl_" + f$getsyi("ARCH_NAME") + ".opt/opt" +$ link 'link_qual'/exe=exedir:curl.exe - + objdir:curlsrc/lib/include=(main,curlmsg),- + objdir:curllib/lib, 'optfile' +$ endif +$ if ( openssl .eq. 0) .and. ( hpssl .eq. 0) +$ then +$ 'vo_l' "%CURL-I-LINK_NOSSL, linking without SSL support" +$ link 'link_qual'/exe=exedir:curl.exe - + objdir:curlsrc/lib/include=(main,curlmsg),- + objdir:curllib/lib +$ endif +$! +$ goto Common_Exit +$! +$! Subroutine to build everything with a filetype passed in via P2 in +$! the directory passed in via P1 and put it in the object library named +$! via P3 +$! +$build: subroutine +$ on control_y then exit 2 +$ set noon +$ set default 'p1' +$ search = p2 +$ reset = f$search("reset") +$ if f$search( p3) .eqs. "" +$ then +$ LIB/CREATE/OBJECT 'p3' +$ endif +$ reset = f$search("reset",1) +$Loop: +$ file = f$search(search,1) +$ if file .eqs. "" then goto EndLoop +$ objfile = f$parse("objdir:.OBJ;",file) +$ obj = f$search( objfile, 2) +$ if (obj .nes. "") +$ then +$ if (f$cvtime(f$file(file,"rdt")) .gts. f$cvtime(f$file(obj,"rdt"))) +$ then +$ call compile 'file' +$ if .not. $status then exit $status +$ lib/object 'p3' 'objfile' +$ else +$ 'vo_o' "%CURL-I-OBJUTD, ", objfile, " is up to date" +$ endif +$ else +$ 'vo_o' "%CURL-I-OBJDNE, ", file, " does not exist" +$ call compile 'file' +$ if .not. $status then exit $status +$ lib/object 'p3' 'objfile' +$ endif +$ goto Loop +$EndLoop: +$ !purge +$ set def 'origdir' +$ endsubroutine ! Build +$! +$! Based on the file TYPE, do the right compile command. +$! Only C and MSG supported. +$! +$compile: subroutine +$ on control_y then exit 2 +$ set noon +$ file = p1 +$ qual = p2+p3+p4+p5+p6+p7+p8 +$ typ = f$parse(file,,,"TYPE") - "." +$ cmd_c = "CC "+cc_qual +$ cmd_msg = "MESSAGE "+msg_qual +$ x = cmd_'typ' +$ 'vo_c' x," ",file +$ 'x' 'file' +$ ENDSUBROUTINE ! Compile +$! +$Common_Exit: +$ set default 'origdir' +$ exit diff --git a/packages/vms/config-vms.h_with_ssl b/packages/vms/config-vms.h_with_ssl new file mode 100755 index 0000000000000000000000000000000000000000..c883f7fedfe4b2bf01f5660acb55c88257ee84b1 GIT binary patch literal 7172 zc-obj>u=jQ62OH6Zh-=e`*M5R?PIZQirchBVmnRRq`T=I6kB%G+LB=@ZgXE$S)yWI zWl0d}WPR8_{)UwNkj+S{k%ui&KMrR&Go0~2X}&@O>*E1xy>7PNG+QSJ=+cdRgnh!W zkAgTwEOkkUCUX+{D2|XCCQ}!UPaDSvsH3$}8@+A3Ic&9#(W|C1So4mXt#^WFVLYRV z#po_hzY3xohA0VL2JhjHzJH4ao^d>lQQ)Qx1g|Aeyj0%@c`ntl=2+L3qnmBJ?_3_B z?9H*Gj(Qg2l3V(JG_&ipuSR{x>~fI>gR`rC*Z=)_@4?R zboK4Ya>#cuBJxSF{I4jlH>4#2TEufSbwOQhijitqI%t22T_2|?AR(p=uCyOle9P{% zol8yaXd??9DN1jb=DDD9H^AWnk;n_@KA0kAQ*=%jw8_W}H>Up*YCX?Ch$)n(t2u0a zpgEs(`%;*Nf8sNJ*qDh;i7@{@iP%1$m&V@L5JwI}a3hKt@R559o6MbrFnp0JeX>L4yWQ+|)N3K_Q3(~UF-KyfpNdS~ z&}?UEpGscDVz&m*uuYZo8YR30r)j(;+&_w}p*9+sLa5GyZS3t`3W$8V&ZR@5{r7z$`Zdkrby=SQXYJEXW!xj26+aI+| zUuF4#vea`a_GU?u_GpV{kJ_rGwFkp$3jlGJkO~U`Z!pv=HO5kZo|LcC9(ArVsaoZv zfV*gE9068$nT)E|NOn{vS)-mStYVGuQ$(#vD-`^2(qRc{E{SSC6lJek(bz`Z~m1jF_J(n1= zxR!4LFk`obxTpsN>=Qpiv$j@A(^CZxt2?W`E4FXVo>-Wy9)hB1 zh$XJ~)xE*bianK~+Wx5aG_)7R>~K!8zo#hw6v;)guq?{A=X_g|;agS6Nyr9MI;CU-p%EjMJ- z4LkR{%4i9;y^#TTIss7e89l2`L>Ej6@}Z1aBbI#uB8$H|>82L57sx4|%v$PW^|R>1 zqdUT;t6uyG@?%V+eTMvv{wq9L>{I_x&>#qBn;)IgvPZouySNRquY1$2$~A;xaU=XF zq4xWg8lK@}d z&#QF+sg%T?q=g{Or1>{IoZaQ@!WTWVvn+g?xy+kp4N^W4@7u#hj1#V+g7gI#%%HBl zN;uQ%>vGeT{jG^%iigI4J!UqVph%o-n zi)TreQCHsmEBDdmie6-%`V#&5Cwk#H$FDEIgy{WyboBDc_O}lk6P~QTX(}6aw({iv E1A}@>PXGV_ literal 0 Hc-jL100001 diff --git a/packages/vms/config-vms.h_without_ssl b/packages/vms/config-vms.h_without_ssl new file mode 100755 index 0000000000000000000000000000000000000000..b56a467b98cbd233d78986d14fa9534335d11308 GIT binary patch literal 7166 zc-objZExGi5rByUS|C8tFTEz0mqRxWS|@=m$*~hVcg_{GM9EAfQ4nb*?iYq4m)15E zNpM&8skk5C*(E87(wbxhzewcr+1Z($nVr!7p#4`s?P8-JusH3$}8@+41J#4j((d(u%So4mXt@nawVmzma zMd&U{z6qie1Sk$12JhjHzJH4ao^d>lknbc71h1SYUaIGTJeTT3v(0PM){VB+w=WM+ z`sUbH$2}8q$xZz~n$fk}SL42Ibi1~NJnWMYQ_fSAr<~XkSCAVo4(EX%1_C*Z=)_@4?R zboJdyKIG3ZBJ_x#|5ubZ8`2UVEu#gRIiM~!!$=*PI%t1}9Su zX!d8_x)f&NpZH84H)dipBFw)}LblK6rIGtBz@g0$+z2BEeB|81CUd3%3}40=*kEk_ z4klacYyBW4|HC#@lmkAG13bEHxXPcyN410FR zxVq?T=uA;wSJU_(!FnQP@jsl@EV0`SW_Ursw-%wxNED_TU0Y4;@t$UBS9*u*@@+Y5 z7Ev}`I-Zwo5ufc4FAdYWxK=xzG3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