The branch, master has been updated via 5d3f956 s3-waf: add check for __NR_inotify_init declaration. via a029235 s3-waf: add check for various sysconf() variables. via 9d78512 s3-waf: add check for posix_fadvise(). via 1cc0fb5 s3-waf: add check for hires timestamps in struct stat. via 3b3f13a s3-waf: add check for "struct flock64". via 8701b0d s3-waf: add check for broken (glibc2.1/x86) 64 bit fcntl locking. via 4e32fd9 s3-waf: add check for fcntl locking. via b3f7648 s3-waf: add check for "struct dirent64". from c819e3e s3:test: run the net.rpc.registry test under "dc" not "dc:local"
http://gitweb.samba.org/?p=samba.git;a=shortlog;h=master - Log ----------------------------------------------------------------- commit 5d3f9569252cc329cd95b405768a93c4c19c4b4e Author: Günther Deschner <g...@samba.org> Date: Wed Feb 16 18:38:19 2011 +0100 s3-waf: add check for __NR_inotify_init declaration. Guenther Autobuild-User: Günther Deschner <g...@samba.org> Autobuild-Date: Wed Feb 16 19:28:18 CET 2011 on sn-devel-104 commit a029235b3e152988b6964c1cbdf2b20bbea9b55c Author: Günther Deschner <g...@samba.org> Date: Wed Feb 16 18:29:33 2011 +0100 s3-waf: add check for various sysconf() variables. Guenther commit 9d78512b2bb85547f955552801d8770f92e0b2f5 Author: Günther Deschner <g...@samba.org> Date: Wed Feb 16 17:55:26 2011 +0100 s3-waf: add check for posix_fadvise(). Guenther commit 1cc0fb5a9aa9f7c90c27972b2c347fbcb3df5fe3 Author: Günther Deschner <g...@samba.org> Date: Wed Feb 16 17:33:05 2011 +0100 s3-waf: add check for hires timestamps in struct stat. Guenther commit 3b3f13a7fb6816563ae1334e821ea37f9175b16e Author: Günther Deschner <g...@samba.org> Date: Wed Feb 16 17:03:24 2011 +0100 s3-waf: add check for "struct flock64". Guenther commit 8701b0d6454f846472a186f1e44dd4a9368631f4 Author: Günther Deschner <g...@samba.org> Date: Wed Feb 16 16:52:45 2011 +0100 s3-waf: add check for broken (glibc2.1/x86) 64 bit fcntl locking. Guenther commit 4e32fd9d5cb9360fb32f765ba7018a8f609e287f Author: Günther Deschner <g...@samba.org> Date: Wed Feb 16 16:51:14 2011 +0100 s3-waf: add check for fcntl locking. Guenther commit b3f76482d250511ddf3b75f276c48c51db939691 Author: Günther Deschner <g...@samba.org> Date: Wed Feb 16 16:42:33 2011 +0100 s3-waf: add check for "struct dirent64". Guenther ----------------------------------------------------------------------- Summary of changes: source3/wscript | 85 +++++++++++++++++++++++++++++++++++++++++++++++++++++++ 1 files changed, 85 insertions(+), 0 deletions(-) Changeset truncated at 500 lines: diff --git a/source3/wscript b/source3/wscript index 78aad61..df82cc6 100644 --- a/source3/wscript +++ b/source3/wscript @@ -1001,6 +1001,91 @@ int i; i = PAM_RADIO_TYPE; ''', 'HAVE_LINUX_RTNETLINK_H', msg='Checking whether Linux rtnetlink is available') + if conf.CHECK_TYPE('struct dirent64', headers='sys/types.h dirent.h') and conf.CONFIG_SET('HAVE_READDIR64'): + conf.DEFINE('HAVE_STRUCT_DIRENT64', '1') + else: + conf.undefine('HAVE_STRUCT_DIRENT64') + + conf.CHECK_CODE(''' +#include "../tests/fcntl_lock.c" +''', + 'HAVE_FCNTL_LOCK', + addmain=False, + execute=True, + msg='Checking whether fcntl locking is available') + + conf.CHECK_CODE(''' +#include "../tests/fcntl_lock64.c" +''', + 'HAVE_BROKEN_FCNTL64_LOCKS', + addmain=False, + execute=True, + msg='Checking whether fcntl64 locks are broken') + + if not conf.CONFIG_SET('HAVE_BROKEN_FCNTL64_LOCKS'): + conf.CHECK_CODE(''' +#if defined(HAVE_UNISTD_H) +#include <unistd.h> +#endif +#include <stdio.h> +#include <stdlib.h> + +#ifdef HAVE_FCNTL_H +#include <fcntl.h> +#endif + +#ifdef HAVE_SYS_FCNTL_H +#include <sys/fcntl.h> +#endif +main() { struct flock64 fl64; +#if defined(F_SETLKW64) && defined(F_SETLK64) && defined(F_GETLK64) +exit(0); +#else +exit(1); +#endif +} +''', + 'HAVE_STRUCT_FLOCK64', + addmain=False, + execute=True, + msg="Checking whether the flock64 struct is available") + + conf.CHECK_STRUCTURE_MEMBER('struct stat', 'st_mtim.tv_nsec', + define='HAVE_STRUCT_STAT_ST_MTIM_TV_NSEC') # Linux, Solaris + conf.CHECK_STRUCTURE_MEMBER('struct stat', 'st_mtimensec', + define='HAVE_STRUCT_STAT_ST_MTIMENSEC') # BSD, if defined _POSIX_SOURCE + conf.CHECK_STRUCTURE_MEMBER('struct stat', 'st_mtimespec.tv_nsec', + define='HAVE_STRUCT_STAT_ST_MTIMESPEC_TV_NSEC') # BSD, if not defined _POSIX_SOURCE + conf.CHECK_STRUCTURE_MEMBER('struct stat', 'st_mtime_n', + define='HAVE_STRUCT_STAT_ST_MTIME_N') # AIX + conf.CHECK_STRUCTURE_MEMBER('struct stat', 'st_umtime', + define='HAVE_STRUCT_STAT_ST_UMTIME') # Tru64 + if conf.CONFIG_SET('HAVE_STRUCT_STAT_ST_MTIM_TV_NSEC') or \ + conf.CONFIG_SET('HAVE_STRUCT_STAT_ST_MTIMENSEC') or \ + conf.CONFIG_SET('HAVE_STRUCT_STAT_ST_MTIMESPEC_TV_NSEC') or \ + conf.CONFIG_SET('HAVE_STRUCT_STAT_ST_MTIME_N') or \ + conf.CONFIG_SET('HAVE_STRUCT_STAT_ST_UMTIME'): + conf.DEFINE('HAVE_STAT_HIRES_TIMESTAMPS', '1') + + conf.CHECK_CODE(''' +#if defined(HAVE_UNISTD_H) +#include <unistd.h> +#endif +#include <fcntl.h>], +ssize_t err = posix_fadvise(0,0,0x80000,POSIX_FADV_WILLNEED); +''', + 'HAVE_POSIX_FADVISE', + msg='Checking whether posix_fadvise is available') + + for v in ['_SC_NGROUPS_MAX', '_SC_NPROC_ONLN', '_SC_NPROCESSORS_ONLN', '_SC_PAGESIZE' ]: + conf.CHECK_CODE(''' + #include <unistd.h> + return sysconf(%s) == -1 ? 1 : 0; + ''' % v, + 'SYSCONF%s' % v, + msg='Checking whether sysconf(%s) is available' % v) + + conf.CHECK_DECLS('__NR_inotify_init', reverse=True, headers='asm/unistd.h') default_static_modules=TO_LIST('''pdb_smbpasswd pdb_tdbsam pdb_wbc_sam auth_sam auth_unix auth_winbind auth_wbc auth_server -- Samba Shared Repository