Diff between b5bab5ea0e3cef4444d8d26d4f7e69789d210b70 and a9643f63ee9304884ec3188bfbb26c69f467f529

Changed Files

File Additions Deletions Status
Makefile.plugins +2 -0 modified
README +10 -0 modified
configure.ac +4 -0 modified

Full Patch

diff --git a/Makefile.plugins b/Makefile.plugins
index c9bc50c..533922d 100644
--- a/Makefile.plugins
+++ b/Makefile.plugins
@@ -47,12 +47,14 @@ builtin_sources += profiles/audio/control.h profiles/audio/control.c \
 			profiles/audio/player.h profiles/audio/player.c
 endif
 
+if NETWORK
 builtin_modules += network
 builtin_sources += profiles/network/manager.c \
 			profiles/network/bnep.h profiles/network/bnep.c \
 			profiles/network/server.h profiles/network/server.c \
 			profiles/network/connection.h \
 			profiles/network/connection.c
+endif
 
 builtin_modules += input
 builtin_sources += profiles/input/manager.c \
diff --git a/README b/README
index ec3ed30..5137e34 100644
--- a/README
+++ b/README
@@ -125,6 +125,16 @@ For a working system, certain configuration options need to be enabled:
 		This option is provided for distributions that do not have any
 		audio capabilities.
 
+	--disable-network
+
+		Disable PANU, NAP, GN profiles
+
+		By default bluetoothd supports PANU, NAP and GN profile using a
+		built-in plugin, this option disables it.
+
+		This option is provided for distributions that do not have any
+		network capabilities.
+
 	--enable-experimental
 
 		Enable experimental plugins
diff --git a/configure.ac b/configure.ac
index 99fbeb8..63a5dfb 100644
--- a/configure.ac
+++ b/configure.ac
@@ -156,6 +156,10 @@ AC_ARG_ENABLE(test, AC_HELP_STRING([--disable-avrcp],
 		[disable AVRCP profile]), [enable_avrcp=${enableval}])
 AM_CONDITIONAL(AVRCP, test "${enable_avrcp}" != "no")
 
+AC_ARG_ENABLE(test, AC_HELP_STRING([--disable-network],
+		[disable network profiles]), [enable_network=${enableval}])
+AM_CONDITIONAL(NETWORK, test "${enable_network}" != "no")
+
 AC_ARG_ENABLE(tools, AC_HELP_STRING([--disable-tools],
 		[disable Bluetooth tools]), [enable_tools=${enableval}])
 AM_CONDITIONAL(TOOLS, test "${enable_tools}" != "no")