--- configure.orig	2009-10-06 21:34:24.000000000 +0200
+++ configure	2009-12-01 23:11:37.000000000 +0100
@@ -7473,7 +7473,7 @@
 #define HAVE_LIBCRYPTO 1
 _ACEOF
 
-  LIBS="-lcrypto $LIBS"
+  LIBS="-lcrypto -ldl $LIBS"
 
 fi
 
