configure: Move check for <gnutls/crypto.h>
Checking for the availability of this header, just like checking for the availability of gnutls_rnd(), requires CFLAGS and LIBS to be set appropriately. Fixes the following compilation errors on FreeBSD: qemu/qemu_domain.c:640:16: error: implicit declaration of function 'gnutls_rnd' is invalid in C99 [-Werror,-Wimplicit-function-declaration] if ((ret = gnutls_rnd(GNUTLS_RND_RANDOM, key, nbytes)) < 0) { ^ qemu/qemu_domain.c:640:27: error: use of undeclared identifier 'GNUTLS_RND_RANDOM'; did you mean 'GNUTLS_CRD_ANON'? if ((ret = gnutls_rnd(GNUTLS_RND_RANDOM, key, nbytes)) < 0) { ^~~~~~~~~~~~~~~~~ GNUTLS_CRD_ANON
Showing
想要评论请 注册 或 登录