summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorSumit Bose <sbose@redhat.com>2014-04-04 16:59:52 +0200
committerSumit Bose <sbose@redhat.com>2014-06-17 12:55:14 +0200
commit17077d92b85b2ee4dfd42719c0e31d5fa0c039e0 (patch)
tree0ba37cbfcf46e9bd9964b9f853d78196ce4192fa
parent207995f0a09be5a520fa20856289444d8dfade9b (diff)
downloadsamba-17077d92b85b2ee4dfd42719c0e31d5fa0c039e0.zip
samba-17077d92b85b2ee4dfd42719c0e31d5fa0c039e0.tar.gz
samba-17077d92b85b2ee4dfd42719c0e31d5fa0c039e0.tar.xz
Add new configure option --with-wbclient-sssd
-rw-r--r--source3/wscript10
1 files changed, 10 insertions, 0 deletions
diff --git a/source3/wscript b/source3/wscript
index 6e76c86..320149f 100644
--- a/source3/wscript
+++ b/source3/wscript
@@ -27,6 +27,7 @@ def set_options(opt):
opt.SAMBA3_ADD_OPTION('ldap')
opt.SAMBA3_ADD_OPTION('cups', with_name="enable", without_name="disable")
opt.SAMBA3_ADD_OPTION('iprint', with_name="enable", without_name="disable")
+ opt.SAMBA3_ADD_OPTION('wbclient-sssd', default=False)
opt.SAMBA3_ADD_OPTION('pam')
opt.SAMBA3_ADD_OPTION('pam_smbpass')
opt.SAMBA3_ADD_OPTION('quotas')
@@ -846,6 +847,15 @@ msg.msg_accrightslen = sizeof(fd);
if conf.env.with_iconv:
conf.DEFINE('HAVE_ICONV', 1)
+ if Options.options.with_wbclient_sssd:
+ if conf.CHECK_BUNDLED_SYSTEM_PKG('sss_nss_idmap', minversion=1.11):
+ conf.DEFINE('WITH_WBCLIENT_SSSD', 1)
+ Logs.info("Building with libwbclient-sssd support.")
+ else:
+ conf.fatal("--with-wbclient-sssd was requested but libsss-idmap "
+ "devel files are not available or have not the "
+ "required version.")
+
if Options.options.with_pam:
use_pam=True
conf.CHECK_HEADERS('security/pam_appl.h pam/pam_appl.h')