summaryrefslogtreecommitdiff
path: root/lib
diff options
context:
space:
mode:
authorAndrew Tridgell <tridge@samba.org>2010-03-07 22:59:25 +1100
committerAndrew Tridgell <tridge@samba.org>2010-04-06 20:26:45 +1000
commitae1c2b90226d610e1d4e3c992d8b8ea4515aa846 (patch)
tree8e63159749699f68f26445af998a78d06596dbeb /lib
parent1d18c6c7b06ab718c483370dd1cd5bdd3fa8cbda (diff)
downloadsamba-ae1c2b90226d610e1d4e3c992d8b8ea4515aa846.tar.gz
samba-ae1c2b90226d610e1d4e3c992d8b8ea4515aa846.tar.bz2
samba-ae1c2b90226d610e1d4e3c992d8b8ea4515aa846.zip
build: check for xattr support
Diffstat (limited to 'lib')
-rw-r--r--lib/util/wscript_configure6
1 files changed, 6 insertions, 0 deletions
diff --git a/lib/util/wscript_configure b/lib/util/wscript_configure
index 09687a997b..c25ce78eb3 100644
--- a/lib/util/wscript_configure
+++ b/lib/util/wscript_configure
@@ -11,3 +11,9 @@ conf.CHECK_FUNCS_IN('flistxattr', 'attr', checklibc=True)
conf.CHECK_STRUCTURE_MEMBER('struct statvfs', 'f_frsize', define='HAVE_FRSIZE')
+conf.CHECK_CODE('getxattr(NULL, NULL, NULL, 0, 0, 0)',
+ define='XATTR_ADDITIONAL_OPTIONS')
+
+if conf.CONFIG_SET('HAVE_FLISTXATTR'):
+ conf.DEFINE('HAVE_XATTR_SUPPORT', 1)
+