configure: Try -lgnutls as gnutls default lib.

This allows configure on MacOS to pick up a homebrew installed gnutls without
PKGCONFIG and manually added GNUTLS_LIBS var.

Signed-off-by: Stefan Dösinger <stefan@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
This commit is contained in:
Stefan Dösinger 2020-05-07 18:22:02 +02:00 committed by Alexandre Julliard
parent d4bbda626a
commit 7e0e556726
2 changed files with 2 additions and 2 deletions

2
configure vendored
View File

@ -13565,7 +13565,7 @@ if ${GNUTLS_LIBS:+false} :; then :
fi
fi
GNUTLS_LIBS=${GNUTLS_LIBS:-"-lgnutls"}
$as_echo "$as_me:${as_lineno-$LINENO}: gnutls cflags: $GNUTLS_CFLAGS" >&5
$as_echo "$as_me:${as_lineno-$LINENO}: gnutls libs: $GNUTLS_LIBS" >&5
ac_save_CPPFLAGS=$CPPFLAGS

View File

@ -1449,7 +1449,7 @@ fi
dnl **** Check for libgnutls ****
if test "x$with_gnutls" != "xno"
then
WINE_PACKAGE_FLAGS(GNUTLS,[gnutls],,,,
WINE_PACKAGE_FLAGS(GNUTLS,[gnutls],[-lgnutls],,,
[AC_CHECK_HEADER(gnutls/gnutls.h,
[AC_COMPILE_IFELSE([AC_LANG_PROGRAM([[#include <gnutls/gnutls.h>
#include <gnutls/crypto.h>]], [[static typeof(gnutls_mac_get_key_size) *func; if (func) return 0;]])],