diff options
author | Chris Wilson <chris+github@qwirx.com> | 2012-11-14 23:48:50 +0000 |
---|---|---|
committer | Chris Wilson <chris+github@qwirx.com> | 2012-11-14 23:48:50 +0000 |
commit | 881cd4e965012d7486b40af1f14014fd6069e4b9 (patch) | |
tree | 874a754234cdb5759700f112e9160527b312943f /infrastructure/m4 | |
parent | 3265cfc91dfbfbf4cef7d1da9f805918c23548d1 (diff) |
Use AC_SEARCH_LIBS instead of AC_CHECK_LIB when searching for SSL
libraries, to avoid adding duplicate libraries to LIBS.
Diffstat (limited to 'infrastructure/m4')
-rw-r--r-- | infrastructure/m4/ax_check_ssl.m4 | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/infrastructure/m4/ax_check_ssl.m4 b/infrastructure/m4/ax_check_ssl.m4 index 9b2beac4..78b99f7e 100644 --- a/infrastructure/m4/ax_check_ssl.m4 +++ b/infrastructure/m4/ax_check_ssl.m4 @@ -27,8 +27,8 @@ AC_DEFUN([AX_CHECK_SSL], [ ax_check_ssl_found=yes AC_CHECK_HEADERS([openssl/ssl.h],, [ax_check_ssl_found=no]) - AC_CHECK_LIB([crypto], [HMAC_CTX_init]) - AC_CHECK_LIB([ssl], [SSL_read],, [ax_check_ssl_found=no]) + AC_SEARCH_LIBS([HMAC_CTX_init], [crypto]) + AC_SEARCH_LIBS([SSL_read], [ssl],, [ax_check_ssl_found=no]) if test "x$ax_check_ssl_found" = "xyes"; then AC_DEFINE([HAVE_SSL], 1, [Define to 1 if SSL is available]) |