"--with-shared-modules"),
action="store", dest='shared_modules', default=None)
- opt.SAMBA3_ADD_OPTION('winbind')
- opt.SAMBA3_ADD_OPTION('ads')
- opt.SAMBA3_ADD_OPTION('ldap')
- opt.SAMBA3_ADD_OPTION('cups', with_name="enable", without_name="disable")
- opt.SAMBA3_ADD_OPTION('iprint', with_name="enable", without_name="disable")
- opt.SAMBA3_ADD_OPTION('pam')
- opt.SAMBA3_ADD_OPTION('quotas')
- opt.SAMBA3_ADD_OPTION('sendfile-support', default=None)
- opt.SAMBA3_ADD_OPTION('utmp')
- opt.SAMBA3_ADD_OPTION('avahi', with_name="enable", without_name="disable")
- opt.SAMBA3_ADD_OPTION('iconv')
- opt.SAMBA3_ADD_OPTION('acl-support')
- opt.SAMBA3_ADD_OPTION('dnsupdate')
- opt.SAMBA3_ADD_OPTION('syslog')
- opt.SAMBA3_ADD_OPTION('automount')
- opt.SAMBA3_ADD_OPTION('dmapi', default=None) # None means autodetection
- opt.SAMBA3_ADD_OPTION('fam', default=None) # None means autodetection
- opt.SAMBA3_ADD_OPTION('profiling-data', default=False)
- opt.SAMBA3_ADD_OPTION('libarchive', default=True)
-
- opt.SAMBA3_ADD_OPTION('cluster-support', default=False)
-
- opt.SAMBA3_ADD_OPTION('regedit', default=None)
-
- opt.SAMBA3_ADD_OPTION('fake-kaserver',
+ opt.samba_add_onoff_option('winbind')
+ opt.samba_add_onoff_option('ads')
+ opt.samba_add_onoff_option('ldap')
+ opt.samba_add_onoff_option('cups', with_name="enable", without_name="disable")
+ opt.samba_add_onoff_option('iprint', with_name="enable", without_name="disable")
+ opt.samba_add_onoff_option('pam')
+ opt.samba_add_onoff_option('quotas', default=None)
+ opt.samba_add_onoff_option('sendfile-support', default=None)
+ opt.samba_add_onoff_option('utmp')
+ opt.samba_add_onoff_option('avahi', with_name="enable", without_name="disable")
+ opt.samba_add_onoff_option('iconv')
+ opt.samba_add_onoff_option('acl-support')
+ opt.samba_add_onoff_option('dnsupdate')
+ opt.samba_add_onoff_option('syslog')
+ opt.samba_add_onoff_option('automount')
+ opt.samba_add_onoff_option('dmapi', default=None) # None means autodetection
+ opt.samba_add_onoff_option('fam', default=None) # None means autodetection
+ opt.samba_add_onoff_option('profiling-data', default=False)
+ opt.samba_add_onoff_option('libarchive', default=True)
+
+ opt.samba_add_onoff_option('cluster-support', default=False)
+
+ opt.samba_add_onoff_option('regedit', default=None)
+
+ opt.samba_add_onoff_option('fake-kaserver',
help=("Include AFS fake-kaserver support"), default=False)
opt.add_option('--with-libcephfs',
help=("Directory under which libcephfs is installed"),
action="store", dest='libcephfs_dir', default=None)
- opt.SAMBA3_ADD_OPTION('glusterfs', with_name="enable", without_name="disable", default=True)
- opt.SAMBA3_ADD_OPTION('cephfs', with_name="enable", without_name="disable", default=True)
+ opt.samba_add_onoff_option('glusterfs', with_name="enable", without_name="disable", default=True)
+ opt.samba_add_onoff_option('cephfs', with_name="enable", without_name="disable", default=True)
opt.add_option('--enable-vxfs',
help=("enable support for VxFS (default=no)"),
action="store_true", dest='enable_vxfs', default=False)
- opt.SAMBA3_ADD_OPTION('spotlight', with_name="enable", without_name="disable", default=False)
+ opt.samba_add_onoff_option('spotlight', with_name="enable", without_name="disable", default=False)
def configure(conf):
default_static_modules = []
#include <unistd.h>
#endif
#include <sys/types.h>
+#if defined(HAVE_SYS_SYSMACROS_H)
+#include <sys/sysmacros.h>
+#endif
main() { dev_t dev = makedev(1,2); return 0; }
''',
'HAVE_MAKEDEV',
addmain=False,
execute=True)
+ conf.SET_TARGET_TYPE('sendfile', 'EMPTY')
+ conf.CHECK_LIB('sendfile')
if not Options.options.with_sendfile_support == False:
if (host_os.rfind('linux') > -1) or (host_os.rfind('gnu') > -1) or (host_os.rfind('k*bsd*-gnu') > -1) or (host_os.rfind('kopensolaris*-gnu') > -1):
conf.CHECK_CODE('''
conf.CHECK_FUNCS_IN('getspnam', 'sec')
legacy_quota_libs = ''
- if Options.options.with_quotas:
+ if not Options.options.with_quotas == False:
# For quotas on Veritas VxFS filesystems
conf.CHECK_HEADERS('sys/fs/vx_quota.h')
# For sys/quota.h and linux/quota.h
conf.CHECK_HEADERS('sys/quota.h')
# For quotas on BSD systems
conf.CHECK_HEADERS('ufs/ufs/quota.h')
+ # For quotas on AIX systems
+ conf.CHECK_HEADERS('jfs/quota.h')
# For quotas on Linux XFS filesystems
if conf.CHECK_HEADERS('xfs/xqm.h'):
conf.DEFINE('HAVE_XFS_QUOTAS', '1')
legacy_quota_libs = ''
conf.env['legacy_quota_libs'] = legacy_quota_libs
+ if Options.options.with_quotas == True and not conf.CONFIG_SET('WITH_QUOTAS'):
+ conf.fatal('quota support not found but it was equested !')
+
conf.CHECK_CODE('(void)unshare(CLONE_FS);',
headers='sched.h',
define='HAVE_UNSHARE_CLONE_FS',
msg='for Linux unshare(CLONE_FS)')
+ # Check for mallinfo
+ conf.CHECK_CODE('''
+ struct mallinfo mi;
+ int tmp;
+
+ mi = mallinfo();
+ tmp = mi.arena + mi.ordblks + mi.smblks + mi.hblks +
+ mi.hblkhd + mi.usmblks + mi.fsmblks + mi.uordblks +
+ mi.fordblks + mi.keepcost;
+ return tmp;
+ ''', 'HAVE_MALLINFO', msg="Checking for mallinfo()", headers='malloc.h')
+
#
# cluster support (CTDB)
#
conf.CHECK_CFG(package='glusterfs-api', args='"glusterfs-api >= 6" --cflags --libs',
msg='Checking for glusterfs-api >= 6',
uselib_store="GFAPI_VER_6")
+ conf.CHECK_CFG(package='glusterfs-api', args='"glusterfs-api >= 7.6" --cflags --libs',
+ msg='Checking for glusterfs-api >= 7.6',
+ uselib_store="GFAPI_VER_7_6")
else:
conf.SET_TARGET_TYPE('gfapi', 'EMPTY')
conf.undefine('HAVE_GLUSTERFS')
conf.CHECK_HEADERS('rpc/xdr.h', lib='tirpc')
+ if conf.CHECK_FUNCS_IN('nscd_flush_cache', 'nscd', headers='libnscd.h'):
+ conf.DEFINE('HAVE_NSCD_FLUSH_CACHE', '1')
+
forced_static_modules.extend(TO_LIST('auth_builtin auth_sam auth_winbind'))
default_static_modules.extend(TO_LIST('''pdb_smbpasswd pdb_tdbsam
auth_unix
vfs_media_harmony vfs_unityed_media vfs_fruit vfs_shell_snap
vfs_commit vfs_worm vfs_crossrename vfs_linux_xfs_sgid
vfs_time_audit vfs_offline vfs_virusfilter
+ vfs_glusterfs_fuse
'''))
default_shared_modules.extend(TO_LIST('auth_script idmap_tdb2 idmap_script'))
# these have broken dependencies