We are going to start compiling OpenSSL. So we have to execute the next command in the directory where we have descompresed the sources:
./config no-threads -fPIC
Apache 1.3 don't use threads (apache2 use it), and OpenSSL compile by default with threads, so we have to desactivate this option with the no-threads argument to ./config.
-fPic is important if we are going to use the module mod_ssl as DSO.
In some cases we need to select what compiler we want to use, with the command line:
./config no-threads -fPic os/compiler:gcc
After execute the config command, we are going to compile the program:
su (if you aren't root)
By default OpenSSL will be installed in the directory /usr/local/ssl. We can select other directory using the following argument with ./config:
./config --prefix=/usr/local --openssldir=/usr/local/openssl