a14fc2f48d1c7415f837cdc1b696f18b5f846039
[bbaumbach/samba-autobuild/.git] / source4 / auth / SConscript
1 #!/usr/bin/env python
2 Import('hostenv')
3
4 hostenv.StaticLibrary('auth_sam.c')
5 hostenv.StaticLibrary('auth_anonymous.c')
6 hostenv.StaticLibrary('auth_winbind.c')
7 hostenv.StaticLibrary('auth_domain.c')
8 hostenv.StaticLibrary('auth_developer.c')
9 hostenv.StaticLibrary('auth_unix.c')
10
11 if hostenv['configure']:
12     conf = hostenv.Configure()
13     have_pam = conf.CheckLibWithHeader('pam', 'security/pam_appl.h', 'c', 'pam_start')
14     conf.Finish()
15
16 proto_files = []
17 hostenv.StaticLibrary('pam_errors.c')
18 proto_files += ['pam_errors.c']
19 auth_files = ['auth.c','auth_util.c','auth_sam_reply.c','ntlm_check.c']
20 proto_files += auth_files
21 hostenv.StaticLibrary('auth',auth_files)
22
23 hostenv.proto_headers += hostenv.CProtoHeader('proto.h', proto_files)
24
25 hostenv.StaticLibrary('gensec_ntlmssp',
26                 ['ntlmssp/ntlmssp_parse.c', 'ntlmssp/ntlmssp.c',
27                 'ntlmssp/ntlmssp_sign.c','ntlmssp/ntlmssp_client.c',
28                 'ntlmssp/ntlmssp_server.c'])
29
30 SConscript(dirs=['kerberos','gensec'])