$OpenBSD: patch-examples_configure_ac,v 1.2 2017/06/29 10:31:06 sthen Exp $
Index: examples/configure.ac
--- examples/configure.ac.orig
+++ examples/configure.ac
@@ -133,6 +133,14 @@ tmp_LIBS="$LIBS"
 
 ACX_WITH_SSL_OPTIONAL
 
+AC_MSG_CHECKING([for LibreSSL])
+if grep VERSION_TEXT $ssldir/include/openssl/opensslv.h | grep "LibreSSL" >/dev/null; then
+        AC_MSG_RESULT([yes])
+        AC_DEFINE([HAVE_LIBRESSL], [1], [Define if we have LibreSSL])
+else
+        AC_MSG_RESULT([no])
+fi
+
 AC_SUBST(LIBSSL_CPPFLAGS)
 AC_SUBST(LIBSSL_LDFLAGS)
 AC_SUBST(LIBSSL_LIBS)
@@ -206,6 +214,8 @@ case "$enable_dane" in
       AC_DEFINE_UNQUOTED([USE_DANE], [1], [Define this to enable DANE support.])
       ;;
 esac
+
+AC_CHECK_FUNCS(ENGINE_load_cryptodev)
 
 LDFLAGS="$tmp_LDFLAGS"
 LIBS="$tmp_LIBS"
