From af4a4f58b5192ba7c80f096f9c7bc26c128c007c Mon Sep 17 00:00:00 2001 From: Günther Deschner Date: Tue, 7 Dec 2010 12:46:50 +0100 Subject: s3-waf: build vfs_fileid module if possible. MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Guenther Autobuild-User: Günther Deschner Autobuild-Date: Tue Dec 7 14:01:46 CET 2010 on sn-devel-104 --- source3/wscript | 9 +++++++++ 1 file changed, 9 insertions(+) (limited to 'source3') diff --git a/source3/wscript b/source3/wscript index 264bda2de1..7fe142d1ec 100644 --- a/source3/wscript +++ b/source3/wscript @@ -322,6 +322,12 @@ return acl_get_perm_np(permset_d, perm); if conf.CHECK_FUNCS('dirfd'): conf.DEFINE('HAVE_DIRFD_DECL', 1) + conf.CHECK_CODE('struct statfs fsd; fsid_t fsid = fsd.f_fsid; return statfs(".", &fsd);', + 'HAVE_STATFS_F_FSID', + msg="vfs_fileid: checking for statfs() and struct statfs.f_fsid", + headers='sys/types.h sys/statfs.h', + execute=True) + 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 rpc_ntsvcs rpc_netlogon rpc_netdfs rpc_srvsvc rpc_spoolss @@ -349,6 +355,9 @@ return acl_get_perm_np(permset_d, perm); if conf.CONFIG_SET('HAVE_DIRFD_DECL'): default_shared_modules.extend(TO_LIST('vfs_syncops vfs_dirsort')) + if conf.CONFIG_SET('HAVE_STATFS_F_FSID'): + default_shared_modules.extend(TO_LIST('vfs_fileid')) + explicit_shared_modules = TO_LIST(Options.options.shared_modules, delimiter=',') explicit_static_modules = TO_LIST(Options.options.static_modules, delimiter=',') -- cgit