You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@thrift.apache.org by jf...@apache.org on 2011/08/29 20:18:55 UTC
svn commit: r1162925 - /thrift/trunk/configure.ac
Author: jfarrell
Date: Mon Aug 29 18:18:55 2011
New Revision: 1162925
URL: http://svn.apache.org/viewvc?rev=1162925&view=rev
Log:
Thrift-1296: SSL detection is broken
Patch: jfarrell
Updated configure to check for crypto and then ssl and error along the way if unavailable.
Modified:
thrift/trunk/configure.ac
Modified: thrift/trunk/configure.ac
URL: http://svn.apache.org/viewvc/thrift/trunk/configure.ac?rev=1162925&r1=1162924&r2=1162925&view=diff
==============================================================================
--- thrift/trunk/configure.ac (original)
+++ thrift/trunk/configure.ac Mon Aug 29 18:18:55 2011
@@ -312,7 +312,16 @@ dnl of the POSIX Real-Time Extensions.
dnl and we haven't yet found a system where this is a problem.
AC_CHECK_LIB(rt, clock_gettime)
AC_CHECK_LIB(socket, setsockopt)
-AC_CHECK_LIB(ssl, SSL_ctrl)
+AC_CHECK_LIB(crypto,
+ BN_init,
+ [AC_CHECK_LIB(ssl,
+ SSL_ctrl,
+ [LIBS="-lssl -lcrypto $LIBS"],
+ [AC_MSG_ERROR(["Error: libssl required"])],
+ -lcrypto
+ )],
+ [AC_MSG_ERROR(["Error: libcrypto required."])]
+)
AC_TYPE_INT16_T
AC_TYPE_INT32_T