--- configure.in.orig Thu Dec 14 06:47:13 2000 +++ configure.in Fri Dec 15 23:12:19 2000 @@ -244,15 +244,15 @@ CFLAGS="$CFLAGS -I$WITH_SSL_PFX/include" LDFLAGS="$LDFLAGS -L$WITH_SSL_PFX/lib" fi - AC_CHECK_LIB(ssl, SSLv23_client_method, SSL_LIBS="-lssl", ,"-lcrypto") + AC_CHECK_LIB(ssl, SSLv23_client_method, SSL_LIBS="-lssl", ,-lcrypto $EXTRA_SSL_LIBS) if test -n "$SSL_LIBS"; then - AC_CHECK_LIB(ssl, TLSv1_client_method, TLS1=yes, TLS1=no, "-lcrypto") + AC_CHECK_LIB(ssl, TLSv1_client_method, TLS1=yes, TLS1=no, "-lcrypto $EXTRA_SLL_LIBS") AC_CHECK_HEADER(ssl.h, SSLEAY=yes, SSLEAY=no) AC_CHECK_HEADER(openssl/ssl.h, OPENSSL=yes, OPENSSL=no) if eval "test x$SSLEAY = xno -a x$OPENSSL = xno"; then AC_MSG_WARN("SSLeay or OpenSSL headers not found --\> use --disable-ssl option or set --with-ssl-includes to apropriate location") fi - AC_CHECK_LIB(crypto, SSLeay, SSL_LIBS="$SSL_LIBS -lcrypto", SSL_LIBS='') + AC_CHECK_LIB(crypto, SSLeay, SSL_LIBS="$SSL_LIBS -lcrypto $EXTRA_SSL_LIBS", SSL_LIBS='', $EXTRA_SSL_LIBS) fi fi @@ -269,7 +269,7 @@ echo 'void f(){}' > conftest.c if test -z "`${CC-cc} -pthread -c conftest.c 2>&1`"; then ac_ccpthread_opt=yes - x_cflags="$x_cflags -pthread -DHAVE_MT" + x_cflags="$x_cflags -D_THREAD_SAFE -DHAVE_MT" x_libs="-pthread $x_libs" HAVE_MT="yes" else