configure: avoid linking against libssl
We're not linking to libssl, only libcrypto. -Wl,--as-needed will get rid of this, but there's no sense in checking for and linking against a library we don't need. Signed-off-by: Dave Reisner <dreisner@archlinux.org> Signed-off-by: Dan McGee <dan@archlinux.org>
This commit is contained in:
parent
d7b728591a
commit
1eb6a9cbfe
|
@ -164,7 +164,7 @@ PKG_CHECK_MODULES(LIBARCHIVE, [libarchive >= 2.8.0], ,
|
||||||
# Check for OpenSSL
|
# Check for OpenSSL
|
||||||
have_openssl=no
|
have_openssl=no
|
||||||
if test "x$with_openssl" != "xno"; then
|
if test "x$with_openssl" != "xno"; then
|
||||||
PKG_CHECK_MODULES(LIBSSL, [libssl libcrypto],
|
PKG_CHECK_MODULES(LIBSSL, [libcrypto],
|
||||||
[AC_DEFINE(HAVE_LIBSSL, 1, [Define if libcrypto is available]) have_openssl=yes], have_openssl=no)
|
[AC_DEFINE(HAVE_LIBSSL, 1, [Define if libcrypto is available]) have_openssl=yes], have_openssl=no)
|
||||||
if test "x$have_openssl" = xno -a "x$with_openssl" = xyes; then
|
if test "x$have_openssl" = xno -a "x$with_openssl" = xyes; then
|
||||||
AC_MSG_ERROR([*** openssl support requested but libraries not found])
|
AC_MSG_ERROR([*** openssl support requested but libraries not found])
|
||||||
|
|
Loading…
Reference in New Issue