summaryrefslogtreecommitdiffstats
path: root/source3/wscript
diff options
context:
space:
mode:
authorGünther Deschner <gd@samba.org>2011-02-10 18:23:12 +0100
committerGünther Deschner <gd@samba.org>2011-02-10 19:24:12 +0100
commit5ecda05967211834d085e5cdc7ea1862acf6fcc5 (patch)
tree797cce2285213065a97d04dd25fb83586ad997a7 /source3/wscript
parentfa0c6c1a9e9c853d3f3bf66ff20ed5a024c68924 (diff)
downloadsamba-5ecda05967211834d085e5cdc7ea1862acf6fcc5.tar.gz
samba-5ecda05967211834d085e5cdc7ea1862acf6fcc5.tar.xz
samba-5ecda05967211834d085e5cdc7ea1862acf6fcc5.zip
s3-waf: better checks for gssapi support.
Guenther Autobuild-User: Günther Deschner <gd@samba.org> Autobuild-Date: Thu Feb 10 19:24:12 CET 2011 on sn-devel-104
Diffstat (limited to 'source3/wscript')
-rw-r--r--source3/wscript9
1 files changed, 6 insertions, 3 deletions
diff --git a/source3/wscript b/source3/wscript
index 655de13b1c5..f5fe52bd85d 100644
--- a/source3/wscript
+++ b/source3/wscript
@@ -662,6 +662,7 @@ msg.msg_acctrightslen = sizeof(fd);
conf.SET_TARGET_TYPE('lber', 'EMPTY')
# Check for kerberos
+ have_gssapi=False
if Options.options.with_krb5:
conf.find_program('krb5-config', var='KRB5_CONFIG')
if conf.env.KRB5_CONFIG:
@@ -678,8 +679,9 @@ msg.msg_acctrightslen = sizeof(fd);
conf.CHECK_FUNCS_IN('crypto', 'des_set_key')
conf.CHECK_FUNCS_IN('copy_Authenticator', 'asn1')
conf.CHECK_FUNCS_IN('roken_getaddrinfo_hostspec', 'roken')
- if conf.CHECK_FUNCS_IN('gss_display_status', 'gssapi gssapi_krb5'):
- conf.DEFINE('HAVE_GSSAPI', '1')
+ if conf.CHECK_FUNCS_IN('gss_display_status', 'gssapi') or \
+ conf.CHECK_FUNCS_IN('gss_display_status', 'gssapi_krb5'):
+ have_gssapi=True
conf.CHECK_FUNCS_IN('gss_wrap_iov', 'gssapi gssapi_krb5 krb5')
conf.CHECK_FUNCS_IN('krb5_mk_req_extended krb5_kt_compare', 'krb5')
conf.CHECK_FUNCS('''
@@ -880,7 +882,8 @@ return krb5_kt_resolve(context, "WRFILE:api", &keytab);
if use_ads:
conf.DEFINE('WITH_ADS', '1')
conf.DEFINE('HAVE_KRB5', '1')
- conf.DEFINE('HAVE_GSSAPI', '1')
+ if have_gssapi:
+ conf.DEFINE('HAVE_GSSAPI', '1')
else:
print "krb5 libs don't have all features required for Active Directory support"
conf.undefine('HAVE_KRB5_H')