Index: /configure.ac
===================================================================
--- /configure.ac	(revision 2483)
+++ /configure.ac	(revision 2488)
@@ -32,4 +32,5 @@
 AX_GMP
 AX_LOG4CXX
+AX_OPENSSL
 
 dnl Check for boost
Index: /m4/ax_openssl.m4
===================================================================
--- /m4/ax_openssl.m4	(revision 2488)
+++ /m4/ax_openssl.m4	(revision 2488)
@@ -0,0 +1,20 @@
+# SYNOPSIS
+#
+#   AX_OPENSSL()
+#
+# DESCRIPTION
+#
+#   Test for OpenSSL library
+#
+# LAST MODIFICATION
+#
+#   2008-12-11
+
+AC_DEFUN([AX_OPENSSL],
+[
+  AC_CHECK_HEADERS(openssl/ssl.h,,
+    [AC_MSG_ERROR([OpenSSL headers not found (OpenSSL, http://openssl.org)])])
+    
+  AC_CHECK_LIB([ssl],[SSL_CTX_set_tmp_rsa_callback],,
+    [AC_MSG_ERROR([OpenSSL library not found (OpenSSL, http://openssl.org)])])
+])
