$OpenBSD: patch-plugins_Makefile_am,v 1.4 2017/11/02 13:05:52 ajacoutot Exp $

http://permalink.gmane.org/gmane.comp.gnome.desktop/51950
https://bugzilla.gnome.org/show_bug.cgi?id=770758#c3
https://bugzilla.gnome.org/show_bug.cgi?id=766329
https://bugzilla.gnome.org/show_bug.cgi?id=772736 (systemd --user)

Index: plugins/Makefile.am
--- plugins/Makefile.am.orig
+++ plugins/Makefile.am
@@ -13,7 +13,6 @@ enabled_plugins =	\
 	media-keys	\
 	mouse		\
 	screensaver-proxy \
-	sharing		\
 	sound		\
 	xsettings	\
 	$(NULL)
@@ -42,6 +41,12 @@ if BUILD_RFKILL
 enabled_plugins += rfkill
 else
 disabled_plugins += rfkill
+endif
+
+if BUILD_SHARING
+enabled_plugins += sharing
+else
+disabled_plugins += sharing
 endif
 
 SUBDIRS = common $(enabled_plugins)
