summaryrefslogtreecommitdiff
path: root/nsswitch
diff options
context:
space:
mode:
Diffstat (limited to 'nsswitch')
-rw-r--r--nsswitch/wscript_build13
1 files changed, 10 insertions, 3 deletions
diff --git a/nsswitch/wscript_build b/nsswitch/wscript_build
index 691f82f160..a81b01bcbd 100644
--- a/nsswitch/wscript_build
+++ b/nsswitch/wscript_build
@@ -15,15 +15,22 @@ bld.SAMBA_BINARY('nsstest',
bld.SAMBA_LIBRARY('nss_winbind',
- source='../nsswitch/winbind_nss_linux.c',
+ source='winbind_nss_linux.c',
deps='winbind-client',
realname='libnss_winbind.so.2',
vnum='2')
-if bld.CONFIG_SET('HAVE_PAM_START'):
+
+if bld.CONFIG_SET('WITH_PAM_MODULES') or bld.CONFIG_SET('HAVE_PAM_START'):
bld.SAMBA_LIBRARY('pamwinbind',
- source='../nsswitch/pam_winbind.c',
+ source='pam_winbind.c',
deps='intl talloc wbclient winbind-client LIBINIPARSER pam',
cflags='-DLOCALEDIR=\"%s/locale\"' % bld.env.DATADIR,
realname='pam_winbind.so',
)
+
+if bld.CONFIG_SET('HAVE_KRB5_LOCATE_PLUGIN_H'):
+ bld.SAMBA_LIBRARY('winbind_krb5_locator',
+ source='winbind_krb5_locator.c',
+ deps='wbclient krb5',
+ realname='winbind_krb5_locator.so')