$OpenBSD: patch-configure,v 1.4 2014/08/31 14:54:01 jasper Exp $
--- configure.orig	Mon Nov  4 19:27:41 2013
+++ configure	Sun Aug 31 16:47:33 2014
@@ -4122,6 +4122,15 @@ fi
 
            ;;
 
+        *openbsd*)
+           $as_echo "#define BSD 1" >>confdefs.h
+
+           LD_SHARED="$CC -shared"
+
+           FPIC=-fpic
+
+           ;;
+
         *bsd*)
            $as_echo "#define BSD 1" >>confdefs.h
 
