On Tue, Jun 12, 2001 at 06:57:44PM +0200, Clere Jean-Frederic FSC EP LP COM 5 wrote:
> Hi,
>
> I have noticed that mod_tls does not compile on my machines. The problem is that
> mod_tls.c includes <openssl/ssl.h> and config.m4 tries to use
> -Imy_openssl_path/include/openssl. That is not coherent!
>
> Find enclosed a patch that fixes the problem, please check it and commit it.
>
> Cheers
>
> Jean-frederic
>
> Index: config.m4
> ===================================================================
> RCS file: /home/cvs/apache/httpd-2.0/modules/tls/config.m4,v
> retrieving revision 1.9
> diff -u -r1.9 config.m4
> --- config.m4 2001/05/08 08:56:39 1.9
> +++ config.m4 2001/06/12 16:48:17
> @@ -21,14 +21,14 @@
> fi
> ssl_lib=unknown
> for params in \
> - "OpenSSL|/include/openssl|/lib|-lssl -lcrypto" \
> + "OpenSSL|/include|/lib|-lssl -lcrypto" \
> "SSLC|/inc||-lsslc"
> do
> prod=`IFS="|"; set -- $params; echo $1`
> incdir=`IFS="|"; set -- $params; echo $2`
> libdir=`IFS="|"; set -- $params; echo $3`
> libs=`IFS="|"; set -- $params; echo $4`
> - searchfile="${withval}${incdir}/ssl.h"
> + searchfile="${withval}${incdir}/openssl/ssl.h"
The weirdness is the "SSLC" "distribution"(?) which uses
.../inc/ssl.h instead of .../include/openssl/ssl.h
Also note that SSLeay and earlier versions of OpenSSL did not
have the include/openssl/ subdir.
Please *ADD* another case, rather than replacing one. As soon
as a trial matches, its parameters are used. So, I guess,
> for params in \
> "OpenSSL|/include|/lib|-lssl -lcrypto" \
> "OpenSSL|/include/openssl|/lib|-lssl -lcrypto" \
> "SSLC|/inc||-lsslc"
But I'm in a hurry (going on vacation tonite) and cannot test.
Martin
--
<[EMAIL PROTECTED]> | Fujitsu Siemens
<[EMAIL PROTECTED]> | 81730 Munich, Germany