[PATCH] configure: Check for GnuTLS block size function

Alexandre Julliard julliard at winehq.org
Wed Jun 15 22:39:41 CDT 2016


Michael Cronenworth <mike at cchtml.com> writes:

> diff --git a/configure.ac b/configure.ac
> index 7f234b2..6ae8dde 100644
> --- a/configure.ac
> +++ b/configure.ac
> @@ -1268,6 +1268,9 @@ then
>                   WINE_CHECK_LIB_FUNCS(gnutls_hash,[$GNUTLS_LIBS],,
>                                        [WINE_NOTICE([libgnutls ${notice_platform}development files too old, no bcrypt hash support.])])])],
>              [GNUTLS_CFLAGS=""])])
> +    WINE_PACKAGE_FLAGS(GNUTLS,[gnutls],,,,
> +        [WINE_CHECK_LIB_FUNCS(gnutls_cipher_get_block_size,[$GNUTLS_LIBS],,
> +                              [WINE_NOTICE([libgnutls ${notice_platform}development files too old, no block size support.])])])

This won't have any effect, since you don't check the resulting define.

In any case I don't think this needs a configure check, since we already
have a fallback. You can simply declare the function pointer without
using the MAKE_FUNCPTR macro.

-- 
Alexandre Julliard
julliard at winehq.org



More information about the wine-devel mailing list