From 21d17b2984396d16f0430241057af95600fec796 Mon Sep 17 00:00:00 2001 From: Brent Cook Date: Thu, 12 Mar 2015 10:52:07 -0500 Subject: [PATCH] don't assume libtls has linker scripts to resolve dependencies found this testing on OpenBSD itself :) --- configure.ac | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/configure.ac b/configure.ac index f4ee1e2..6f7a5cd 100644 --- a/configure.ac +++ b/configure.ac @@ -119,7 +119,8 @@ AC_CHECK_FUNCS([arc4random ibuf_open MD5Init SHA512Init]) AC_CHECK_FUNCS([clock_gettime clock_getres]) # check for libtls -AC_SEARCH_LIBS([tls_init],[tls]) +AC_SEARCH_LIBS([tls_config_set_ca_mem],[tls], + [LIBS="$LIBS -ltls -lssl -lcrypto"],,[-lssl -lcrypto]) AC_CHECK_FUNCS([tls_config_set_ca_mem]) # Share test results with automake