build: check for xattr support
[garming/samba-autobuild/.git] / lib / util / wscript_configure
1
2 conf.CHECK_HEADERS('execinfo.h')
3
4 # backtrace could be in libexecinfo or in libc
5 conf.CHECK_FUNCS_IN('backtrace', 'execinfo', checklibc=True)
6
7 conf.CHECK_FUNCS('sigprocmask sigblock sigaction')
8
9 conf.CHECK_HEADERS('sys/attributes.h attr/xattr.h sys/xattr.h')
10 conf.CHECK_FUNCS_IN('flistxattr', 'attr', checklibc=True)
11
12 conf.CHECK_STRUCTURE_MEMBER('struct statvfs', 'f_frsize', define='HAVE_FRSIZE')
13
14 conf.CHECK_CODE('getxattr(NULL, NULL, NULL, 0, 0, 0)',
15                 define='XATTR_ADDITIONAL_OPTIONS')
16
17 if conf.CONFIG_SET('HAVE_FLISTXATTR'):
18     conf.DEFINE('HAVE_XATTR_SUPPORT', 1)
19