summaryrefslogtreecommitdiff
path: root/source3/wscript
diff options
context:
space:
mode:
authorAndrew Bartlett <abartlet@samba.org>2011-02-15 16:34:02 +1100
committerAndrew Bartlett <abartlet@samba.org>2011-02-18 17:00:34 +1100
commit0bad0e3ff2063f009557ab6ad7a442ceaed593ee (patch)
treed201419828a0658386d9cb1b42c4b6e9e2ac2283 /source3/wscript
parente4c2f5c474b2c294341edcce8044319a111e1e45 (diff)
downloadsamba-0bad0e3ff2063f009557ab6ad7a442ceaed593ee.tar.gz
samba-0bad0e3ff2063f009557ab6ad7a442ceaed593ee.tar.bz2
samba-0bad0e3ff2063f009557ab6ad7a442ceaed593ee.zip
s3-libads Remove MIT-specific krb5_princ_realm macro calls.
When compiled against heimdal, we need to use a more elegant API. Andrew Bartlett
Diffstat (limited to 'source3/wscript')
-rw-r--r--source3/wscript11
1 files changed, 11 insertions, 0 deletions
diff --git a/source3/wscript b/source3/wscript
index fc4cb2dfca..7c01e8fcce 100644
--- a/source3/wscript
+++ b/source3/wscript
@@ -720,6 +720,17 @@ return 0;
headers='krb5.h', lib='krb5',
addmain=False,
msg="Checking whether the macro krb5_princ_realm is defined")
+ conf.CHECK_CODE('''
+int main(void) {
+ krb5_context context;
+ krb5_principal principal;
+ const char *realm; realm = krb5_principal_get_realm(context, principal);
+ return 0;
+}''',
+ 'HAVE_KRB5_PRINCIPAL_GET_REALM',
+ headers='krb5.h', lib='krb5',
+ addmain=False,
+ msg="Checking whether krb5_principal_get_realm is defined")
if conf.CHECK_CODE('''krb5_verify_checksum(0, 0, 0, 0, 0, 0, 0);''',
'KRB5_VERIFY_CHECKSUM_ARGS',
headers='krb5.h', lib='krb5',