svn commit: samba r17659 - in branches/SAMBA_4_0/source/lib/tls: .

tridge at samba.org tridge at samba.org
Mon Aug 21 09:27:43 GMT 2006


Author: tridge
Date: 2006-08-21 09:27:43 +0000 (Mon, 21 Aug 2006)
New Revision: 17659

WebSVN: http://websvn.samba.org/cgi-bin/viewcvs.cgi?view=rev&root=samba&rev=17659

Log:

cope with systems without the x509 gnutls functions

Modified:
   branches/SAMBA_4_0/source/lib/tls/config.m4


Changeset:
Modified: branches/SAMBA_4_0/source/lib/tls/config.m4
===================================================================
--- branches/SAMBA_4_0/source/lib/tls/config.m4	2006-08-21 07:41:17 UTC (rev 17658)
+++ branches/SAMBA_4_0/source/lib/tls/config.m4	2006-08-21 09:27:43 UTC (rev 17659)
@@ -6,7 +6,12 @@
 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
+	AC_CHECK_DECL(gnutls_x509_crt_set_version,  
+	              [AC_DEFINE(HAVE_GNUTLS_X509_CRT_SET_VERSION,1,gnutls set_version)], [], [
+	#include <gnutls/gnutls.h>
+	#include <gnutls/x509.h>
+	])
+	if test x"$ac_cv_header_gnutls_gnutls_h" = x"yes" -a x"$ac_cv_lib_ext_gnutls_gnutls_global_init" = x"yes" -a x"$ac_cv_have_gnutls_x509_crt_set_version_decl" = 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)], [], [



More information about the samba-cvs mailing list