summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorKai Blin <kai@samba.org>2010-03-20 17:53:08 +0100
committerAndrew Tridgell <tridge@samba.org>2010-04-06 20:27:02 +1000
commit33ef088f3de34b2da8dde9572cd7a4e1fd2f9914 (patch)
tree072d60b9cb6dfd0c6af879d3b5bb5189f84a8ce3
parentac9d39d1081a31542d832c547901b453ec58ded4 (diff)
downloadsamba-33ef088f3de34b2da8dde9572cd7a4e1fd2f9914.tar.gz
samba-33ef088f3de34b2da8dde9572cd7a4e1fd2f9914.tar.bz2
samba-33ef088f3de34b2da8dde9572cd7a4e1fd2f9914.zip
build: Check for krb5 headers
-rw-r--r--source3/wscript8
1 files changed, 8 insertions, 0 deletions
diff --git a/source3/wscript b/source3/wscript
index ee2dd92bcb..80fda81f77 100644
--- a/source3/wscript
+++ b/source3/wscript
@@ -47,4 +47,12 @@ def configure(conf):
conf.CHECK_HEADERS('ldap.h lber.h')
conf.CHECK_TYPE('ber_tag_t', 'unsigned int')
+ # Check for kerberos
+ conf.find_program('krb5-config', var='KRB5_CONFIG')
+ if conf.env.KRB5_CONFIG:
+ conf.check_cfg(path="krb5-config", args="--cflags --libs",
+ package="gssapi", uselib_store="KRB5")
+ conf.CHECK_HEADERS('krb5.h krb5/locate_plugin.h')
+ conf.CHECK_HEADERS('gssapi.h gssapi/gssapi_generic.h gssapi/gssapi.h com_err.h')
+
conf.SAMBA_CONFIG_H('include/config.h')