configure: change LIBS not LDFLAGS when checking for libs

Closes #289

Patch-by: maurerpe
This commit is contained in:
Daniel Stenberg 2014-12-04 13:12:45 -08:00
parent 600f26ce6e
commit 751e0087a8

View File

@ -107,10 +107,10 @@ if test "$ac_cv_libssl" = "yes"; then
LIBSREQUIRED=libssl,libcrypto LIBSREQUIRED=libssl,libcrypto
# Not all OpenSSL have AES-CTR functions. # Not all OpenSSL have AES-CTR functions.
save_LDFLAGS="$LDFLAGS" save_LIBS="$LIBS"
LDFLAGS="$LDFLAGS $LIBSSL" LIBS="$LIBS $LIBSSL"
AC_CHECK_FUNCS(EVP_aes_128_ctr) AC_CHECK_FUNCS(EVP_aes_128_ctr)
LDFLAGS="$save_LDFLAGS" LIBS="$save_LIBS"
found_crypto="OpenSSL (AES-CTR: ${ac_cv_func_EVP_aes_128_ctr:-N/A})" found_crypto="OpenSSL (AES-CTR: ${ac_cv_func_EVP_aes_128_ctr:-N/A})"
fi fi