OpenSSL 0.9.8n experimental port
for genuine EMX (OS2-EMX) 
and klibc 0.6.x (OS2-KNIX).

System Requirement
------------------

Runtime (OS2-KNIX):

 - OS/2 Warp V4 or later
 - Pentium or above CPU
 - 32 bit TCP/IP for OS/2 (TCPIP32)
 - kLIBC 0.6.3
 
Runtime (OS2-EMX):

 - OS/2 Warp V3 or later
 - i486 or above CPU
 - TCP/IP for OS/2
 - EMX runtime (0.9d fix 04)
 
 (Note zlib 1.2.3 has linked statically with runtime DLLs.)

Development Kit:

 - (OS2-KNIX) gcc 3.3.5 or later
 - (OS2-EMX) gcc 2.8.1
 - zlib (1.2.3)


System Recommendation
---------------------

 - perl (5.10 or later)


Quick and Dirty Installation (OS2-KNIX)
---------------------------------------

Runtime:

  1. unzip runtime zip into some directory.
  2. add '(the directory)\bin' to PATH
  3. add '(the directory)\dll' to LIBPATH
  4. set the environment variable OPENSSL_CONF to point 'ssl/openssl.cnf'
       set OPENSSL_CONF=(the directory)\ssl\openssl.cnf


(I have no idea about which is the best directory for end-users (non-developer)
 to install runtime.
 some ideas... e.g.
  /usr/local        (openssl default configuration)
  /usr              (commonly unix style)
  /etc              (some unix style)
  /MPTN/ETC         (some unix style, a la OS/2)
  /extras           (Paul Smedley's bldenv)
  /openssl          (unique directory for openssl)
  x:\OS2            (installed as OS2/eCS `system' components)

It is supposed the development kit will be installed into the 
directory /extras, bacause this package is configured with '--prefix=/extras'.
)


Quick and Dirty Installation (OS2-EMX)
---------------------------------------

Runtime:
  - copy os2_dll/openssl.exe into \emx\bin.
  - copy os2_dll/*.dll into \emx\dll.

Development kit:
  - copy os2_include/* into \emx\include.
  - copy os2_dll/*.a and os2_dll/*.lib into \emx\lib.


How to build runtime DLLs and libraries
---------------------------------------

Prerequisites:

  - EMX runtime and development kits
  - perl
  - grep
  - sed
  - Unix style shell sh.exe
  - GNU make
  - Unix style utilities: cp, mv, rm (and more, maybe)
  - NetLabs gcc 3.3.5 or later (OS2-KNIX)
  - Unix style patch to apply *.diff

Configuration and Make (OS2-EMX):

  on OS/2 command prompt:
    > os2\OS2-EMX default
    > make -f OS2-EMX-DLL.mak

Configuration and Make (OS2-KNIX):

  on OS/2 command prompt:
    > os2\OS2-KNIX default
    > make -f OS2-KNIX-DLL.mak

(and see INSTALL.OS2 in official OpenSSL package.)
