From 4c2ef4ffaa8846fa941037f6cbaf35c85d4b7327 Mon Sep 17 00:00:00 2001 From: Günther Deschner Date: Wed, 1 Dec 2010 13:24:55 +0100 Subject: s3-waf: add configure check for dirfd and build vfs_syncops vfs_dirsort if possible. Guenther --- source3/wscript | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'source3') 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=',') -- cgit