mirror of
https://github.com/samba-team/samba.git
synced 2025-11-26 04:23:49 +03:00
24 lines
835 B
Plaintext
24 lines
835 B
Plaintext
###############################
|
|
# start SMB_EXT_LIB_GNUTLS
|
|
# check for gnutls/gnutls.h and -lgnutls
|
|
SMB_EXT_LIB_FROM_PKGCONFIG(GNUTLS, gnutls)
|
|
|
|
if test x$SMB_ENABLE_GNUTLS = xNO; then
|
|
AC_CHECK_HEADERS(gnutls/gnutls.h)
|
|
AC_CHECK_LIB_EXT(gnutls, GNUTLS_LIBS, gnutls_global_init)
|
|
if test x"$ac_cv_header_gnutls_gnutls_h" = x"yes" -a x"$ac_cv_lib_ext_gnutls_gnutls_global_init" = x"yes";then
|
|
SMB_ENABLE(GNUTLS,YES)
|
|
AC_CHECK_DECL(gnutls_x509_crt_set_subject_key_id,
|
|
[AC_DEFINE(HAVE_GNUTLS_X509_CRT_SET_SUBJECT_KEY_ID,1,gnutls subject_key)], [], [
|
|
#include <gnutls/gnutls.h>
|
|
#include <gnutls/x509.h>
|
|
])
|
|
fi
|
|
SMB_EXT_LIB(GNUTLS, $GNUTLS_LIBS)
|
|
fi
|
|
if test x$SMB_ENABLE_GNUTLS = xYES; then
|
|
AC_DEFINE(HAVE_LIBGNUTLS,1,[Whether we have gnutls support (SSL)])
|
|
fi
|
|
# end SMB_EXT_LIB_GNUTLS
|
|
###############################
|