Skip to content

Commit

Permalink
Merge pull request #216 from ffontaine/master
Browse files Browse the repository at this point in the history
configure.ac: fix ssl static build
  • Loading branch information
sustrik authored Aug 10, 2022
2 parents fa01648 + b3b81d2 commit 32d0e8b
Showing 1 changed file with 7 additions and 4 deletions.
11 changes: 7 additions & 4 deletions configure.ac
Original file line number Diff line number Diff line change
Expand Up @@ -160,10 +160,13 @@ AM_CONDITIONAL([HAVE_TLS], [test "x$enable_tls" = xyes])

if test "x$enable_tls" = "xyes"; then
AC_DEFINE(HAVE_TLS)
AC_CHECK_LIB([ssl], [SSL_ctrl ], [],
AC_MSG_ERROR([libssl not found; install OpenSSL]))
AC_CHECK_LIB([crypto], [BIO_read], [],
AC_MSG_ERROR([libcrypto not found; install OpenSSL]))
PKG_CHECK_MODULES([SSL], [openssl],
[CFLAGS="$CFLAGS $SSL_CFLAGS" LIBS="$LIBS $SSL_LIBS"], [
AC_CHECK_LIB([ssl], [SSL_ctrl ], [],
AC_MSG_ERROR([libssl not found; install OpenSSL]))
AC_CHECK_LIB([crypto], [BIO_read], [],
AC_MSG_ERROR([libcrypto not found; install OpenSSL]))
])
fi

################################################################################
Expand Down

0 comments on commit 32d0e8b

Please sign in to comment.