From c92eb3c1895f10a9a4d3229ac883071b62db3920 Mon Sep 17 00:00:00 2001 From: Matthias Andree Date: Thu, 27 Aug 2020 19:42:00 +0200 Subject: configure.ac: Fix regression when pkg-config does not know about OpenSSL. --- configure.ac | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'configure.ac') diff --git a/configure.ac b/configure.ac index 4ec49388..c1138ae0 100644 --- a/configure.ac +++ b/configure.ac @@ -775,7 +775,9 @@ then PKG_CHECK_MODULES([SSL],[libssl libcrypto],[LIBS="$LIBS $SSL_LIBS"],[ AS_MESSAGE([SSL-check: pkg-config check failed, using traditional probe]) LDFLAGS="$LDFLAGS -L$with_ssl/lib" - #LIBS="$LIBS -lssl -lcrypto" # replaced by AC_LIB_LINKFLAGS below + AC_LIB_LINKFLAGS([crypto]) + AC_LIB_LINKFLAGS([ssl], [crypto]) + LIBS="$LIBS $LIBSSL $LIBCRYPTO" dnl check if -ldl is needed AC_MSG_CHECKING([for additional library dependencies of SSL]) found=0 -- cgit v1.2.3