summaryrefslogtreecommitdiff
path: root/source3/wscript
diff options
context:
space:
mode:
authorKai Blin <kai@samba.org>2010-05-28 12:59:04 +0200
committerKai Blin <kai@samba.org>2010-05-28 12:59:29 +0200
commit3d2c99f13b3b7f927ba3f912e8526f9e770aa34f (patch)
tree81c573b9c64f8f57ebddd634df92b0959298e252 /source3/wscript
parentda0e0efe876fdc5e1fe96d1e3a88541006770ff0 (diff)
downloadsamba-3d2c99f13b3b7f927ba3f912e8526f9e770aa34f.tar.gz
samba-3d2c99f13b3b7f927ba3f912e8526f9e770aa34f.tar.bz2
samba-3d2c99f13b3b7f927ba3f912e8526f9e770aa34f.zip
s3-waf: Detect which version of krb5_enctype_to_string is used
Pair-Programmed-With: Günther Deschner <gd@samba.org>
Diffstat (limited to 'source3/wscript')
-rw-r--r--source3/wscript24
1 files changed, 24 insertions, 0 deletions
diff --git a/source3/wscript b/source3/wscript
index 0911e85718..7e39a60580 100644
--- a/source3/wscript
+++ b/source3/wscript
@@ -471,6 +471,30 @@ pkdata = krb5_princ_component(context, principal, 0);
headers='krb5.h', lib='krb5',
msg="Checking whether krb5_princ_component is available")
+ conf.CHECK_CODE('''
+int main(void) {
+char buf[256];
+krb5_enctype_to_string(1, buf, 256);
+return 0;
+}''',
+ 'HAVE_KRB5_ENCTYPE_TO_STRING_WITH_SIZE_T_ARG',
+ headers='krb5.h', lib='krb5',
+ addmain=False, cflags='-Werror',
+ msg="Checking whether krb5_enctype_to_string takes size_t argument")
+
+ conf.CHECK_CODE('''
+int main(void) {
+krb5_context context = NULL;
+char *str = NULL;
+krb5_enctype_to_string(context, 1, &str);
+if (str) free (str);
+return 0;
+}''',
+ 'HAVE_KRB5_ENCTYPE_TO_STRING_WITH_KRB5_CONTEXT_ARG',
+ headers='krb5.h stdlib.h', lib='krb5',
+ addmain=False, cflags='-Werror',
+ msg="Checking whether krb5_enctype_to_string takes krb5_context argument")
+
else:
conf.SET_TARGET_TYPE('krb5', 'EMPTY')
conf.SET_TARGET_TYPE('gssapi', 'EMPTY')