mirror of
https://github.com/samba-team/samba.git
synced 2024-12-22 13:34:15 +03:00
ccd4759aaf
The original commit 02c9b46fab
was not ported to waf yet.
Signed-off-by: Stefan Metzmacher <metze@samba.org>
Reviewed-by: Bjoern Jacke <bj@sernet.de>
Autobuild-User(master): Björn Jacke <bj@sernet.de>
Autobuild-Date(master): Sat Dec 22 06:22:22 CET 2018 on sn-devel-144
32 lines
1.4 KiB
Python
32 lines
1.4 KiB
Python
#!/usr/bin/env python
|
|
|
|
conf.CHECK_HEADERS('nss.h nss_common.h ns_api.h')
|
|
|
|
conf.CHECK_HEADERS('security/pam_appl.h security/pam_modules.h pam/pam_modules.h', together=True)
|
|
conf.CHECK_FUNCS_IN('pam_start', 'pam', checklibc=True, headers='security/pam_appl.h')
|
|
|
|
# Solaris 10 does have new member in nss_XbyY_key
|
|
conf.CHECK_STRUCTURE_MEMBER('union nss_XbyY_key', 'ipnode.af_family',
|
|
define='HAVE_NSS_XBYY_KEY_IPNODE',
|
|
headers='nss_dbdefs.h')
|
|
|
|
# Solaris has some extra fields in struct passwd that need to be
|
|
# initialised otherwise nscd crashes.
|
|
|
|
conf.CHECK_STRUCTURE_MEMBER('struct passwd', 'pw_comment',
|
|
define='HAVE_PASSWD_PW_COMMENT',
|
|
headers='pwd.h')
|
|
|
|
conf.CHECK_STRUCTURE_MEMBER('struct passwd', 'pw_age',
|
|
define='HAVE_PASSWD_PW_AGE',
|
|
headers='pwd.h')
|
|
|
|
# AIX 4.3.x and 5.1 do not have as many members in
|
|
# struct secmethod_table as AIX 5.2
|
|
conf.CHECK_STRUCTURE_MEMBER('struct secmethod_table', 'method_attrlist',
|
|
define='HAVE_STRUCT_SECMETHOD_TABLE_METHOD_ATTRLIST',
|
|
headers='usersec.h')
|
|
conf.CHECK_STRUCTURE_MEMBER('struct secmethod_table', 'method_version',
|
|
define='HAVE_STRUCT_SECMETHOD_TABLE_METHOD_VERSION',
|
|
headers='usersec.h')
|