$OpenBSD: patch-configure,v 1.3 2015/09/19 23:23:13 naddy Exp $
--- configure.orig	Wed Nov 26 22:46:24 2014
+++ configure	Thu Sep 17 17:44:54 2015
@@ -1741,6 +1741,10 @@ else
 
 #undef $2
 
+#ifdef __OpenBSD__
+#define iconv_open libiconv_open
+#endif
+
 /* Override any GCC internal prototype to avoid an error.
    Use char because int might match the return type of a GCC
    builtin and then its argument prototype would still apply.  */
@@ -4531,14 +4535,14 @@ ssl_libs=""
 ssl_cflags=""
 if test "x$checkopenssl" != xno; then
   if test "x$ssl_path" = x; then
-    ssl_libs="-lcrypto -lssl"
+    ssl_libs="-lssl -lcrypto"
   else
     if test -d "$ssl_path"; then
       if test -d "$ssl_path/lib"; then
-        ssl_libs="-L$ssl_path/lib -lcrypto -lssl"
+        ssl_libs="-L$ssl_path/lib -lssl -lcrypto"
 	ssl_cflags="-I$ssl_path/include"
       else
-        ssl_libs="-L$ssl_path -lcrypto -lssl"
+        ssl_libs="-L$ssl_path -lssl -lcrypto"
 	ssl_cflags="-I$ssl_path/../include"
       fi
     fi
