summaryrefslogtreecommitdiff
path: root/source3/wscript
diff options
context:
space:
mode:
authorMichael Adam <obnox@samba.org>2019-08-01 00:47:29 +0200
committerAmitay Isaacs <amitay@samba.org>2019-08-01 09:49:04 +0000
commitf258cfaa1d07af6ac6e996006f6e59955cfe34ce (patch)
tree2f8d0fb2b8ee8a4584aa40887e146e97055647f1 /source3/wscript
parent464fef34d1d047d73be347cd446b74e0f5eb2370 (diff)
downloadsamba-f258cfaa1d07af6ac6e996006f6e59955cfe34ce.tar.gz
vfs:glusterfs_fuse: build only if we have setmntent()
FreeBSD and other platforms that don't have setmntent() and friends can not compile this module. This patch lets changes the build to only compile this module if the setmntent() function is found. This is the a follow-up fix to the actual fix for bug #13972. BUG: https://bugzilla.samba.org/show_bug.cgi?id=13972 Signed-off-by: Michael Adam <obnox@samba.org> Reviewed-by: Amitay Isaacs <amitay@gmail.com> Autobuild-User(master): Amitay Isaacs <amitay@samba.org> Autobuild-Date(master): Thu Aug 1 09:49:04 UTC 2019 on sn-devel-184
Diffstat (limited to 'source3/wscript')
-rw-r--r--source3/wscript4
1 files changed, 3 insertions, 1 deletions
diff --git a/source3/wscript b/source3/wscript
index ff72a173a4b..4a3e75605e7 100644
--- a/source3/wscript
+++ b/source3/wscript
@@ -1713,7 +1713,6 @@ main() {
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
@@ -1775,6 +1774,9 @@ main() {
if conf.CONFIG_SET('HAVE_GLUSTERFS'):
default_shared_modules.extend(TO_LIST('vfs_glusterfs'))
+ if conf.CONFIG_SET('HAVE_SETMNTENT'):
+ default_shared_modules.extend(TO_LIST('vfs_glusterfs_fuse'))
+
if conf.CONFIG_SET('HAVE_VXFS'):
default_shared_modules.extend(TO_LIST('vfs_vxfs'))