summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorGünther Deschner <gd@samba.org>2010-12-01 13:24:55 +0100
committerGünther Deschner <gd@samba.org>2010-12-01 18:50:53 +0100
commit4c2ef4ffaa8846fa941037f6cbaf35c85d4b7327 (patch)
treed0952162603b2ad52c5b4f002466bc49f015eb97
parenta69972944768cdb5a3fcfcfd7c37099241b0e127 (diff)
downloadsamba-4c2ef4ffaa8846fa941037f6cbaf35c85d4b7327.tar.gz
samba-4c2ef4ffaa8846fa941037f6cbaf35c85d4b7327.tar.bz2
samba-4c2ef4ffaa8846fa941037f6cbaf35c85d4b7327.zip
s3-waf: add configure check for dirfd and build vfs_syncops vfs_dirsort if possible.
Guenther
-rw-r--r--source3/wscript5
1 files changed, 5 insertions, 0 deletions
diff --git a/source3/wscript b/source3/wscript
index 45051802b5..3454558778 100644
--- a/source3/wscript
+++ b/source3/wscript
@@ -318,6 +318,8 @@ return acl_get_perm_np(permset_d, perm);
conf.SET_TARGET_TYPE('acl', 'EMPTY')
conf.SET_TARGET_TYPE('attr', 'EMPTY')
+ if conf.CHECK_FUNCS('dirfd'):
+ conf.DEFINE('HAVE_DIRFD_DECL', 1)
default_static_modules=TO_LIST('''pdb_smbpasswd pdb_tdbsam pdb_wbc_sam pdb_ldap rpc_lsarpc rpc_samr
rpc_winreg rpc_initshutdown rpc_dssetup rpc_wkssvc rpc_svcctl
@@ -343,6 +345,9 @@ return acl_get_perm_np(permset_d, perm);
if Options.options.with_acl_support:
default_static_modules.extend(TO_LIST('vfs_posixacl'))
+ if conf.CONFIG_SET('HAVE_DIRFD_DECL'):
+ default_shared_modules.extend(TO_LIST('vfs_syncops vfs_dirsort'))
+
explicit_shared_modules = TO_LIST(Options.options.shared_modules, delimiter=',')
explicit_static_modules = TO_LIST(Options.options.static_modules, delimiter=',')