summaryrefslogtreecommitdiff
path: root/nsswitch/wscript_build
diff options
context:
space:
mode:
authorMatthieu Patou <mat@matws.net>2010-07-17 21:45:12 +0400
committerMatthieu Patou <mat@matws.net>2010-07-17 21:46:04 +0400
commitb7a1dd69804e19971b23fc4ebff3bb7234abfad7 (patch)
tree4da3a1217fa1925e529c226b2bd20a0911ce0ec6 /nsswitch/wscript_build
parentc55f5f2a35a138e130e15eee8206b5f72675b7e8 (diff)
downloadsamba-b7a1dd69804e19971b23fc4ebff3bb7234abfad7.tar.gz
samba-b7a1dd69804e19971b23fc4ebff3bb7234abfad7.tar.bz2
samba-b7a1dd69804e19971b23fc4ebff3bb7234abfad7.zip
s4 pam_winbind: don't build if pam header are not installed
Diffstat (limited to 'nsswitch/wscript_build')
-rw-r--r--nsswitch/wscript_build13
1 files changed, 7 insertions, 6 deletions
diff --git a/nsswitch/wscript_build b/nsswitch/wscript_build
index 9303ace0da..d708662801 100644
--- a/nsswitch/wscript_build
+++ b/nsswitch/wscript_build
@@ -24,9 +24,10 @@ bld.SAMBA_LIBRARY('nsswinbind',
realname='libnss_winbind.so',
vnum='2')
-bld.SAMBA_LIBRARY('pamwinbind',
- source='../nsswitch/pam_winbind.c',
- deps='talloc LIBWBCLIENT LIBWINBIND-CLIENT LIBINIPARSER pam',
- cflags='-DLOCALEDIR=\"%s/locale\"' % bld.env.DATADIR,
- realname='pam_winbind.so',
- )
+if bld.CONFIG_SET('HAVE_PAM_START'):
+ bld.SAMBA_LIBRARY('pamwinbind',
+ source='../nsswitch/pam_winbind.c',
+ deps='talloc LIBWBCLIENT LIBWINBIND-CLIENT LIBINIPARSER pam',
+ cflags='-DLOCALEDIR=\"%s/locale\"' % bld.env.DATADIR,
+ realname='pam_winbind.so',
+ )