On Mon, Mar 23, 2009 at 06:51:50PM +0100, J?r?me Loyet wrote:
> >> >> > As your OpenSSL is set in non-standard place (I have just tested building
> >> >> > on Debian with standard /usr/include/openssl/md5.h), you should use
> >> >> > something like this:
> >> >> >
> >> >> > --with-cc-opt=-I/usr/local/openssl-0.9.6/include
> >> >>
> >> >> it's not working because of the #ifdef in md5.h:
> >> >>
> >> >> #if (NGX_HAVE_OPENSSL_MD5_H)
> >> >> #include <openssl/md5.h>
> >> >> #else
> >> >> #include <md5.h>
> >> >> #endif
> >> >>
> >> >> Has NGX_HAVE_OPENSSL_MD5_H is not defined, it looks for md5.h instead
> >> >> of openssl/md5.h. And if I use
> >> >> --with-cc-opt=-I/usr/local/openssl-0.9.6/include/openssl it won't work
> >> >> because the function name are from OpenSSL lib and not from BSD kernel
> >> >> (MD5_Init vs MD5Init).
> >> >>
> >> >> I have to make configure to set NGX_HAVE_OPENSSL_MD5_H ... do you have
> >> >> any clue ? I'm still searching
> >> >
> >> > -