diff options
-rw-r--r-- | nsswitch/wscript_build | 13 |
1 files changed, 7 insertions, 6 deletions
diff --git a/nsswitch/wscript_build b/nsswitch/wscript_build index 9303ace0da1..d7086628019 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', + ) |