config BR2_PACKAGE_MODEM_MANAGER
	bool "modem-manager"
	depends on BR2_USE_WCHAR # libglib2 and gnutls
	depends on BR2_TOOLCHAIN_HAS_THREADS # dbus, libglib2
	depends on BR2_USE_MMU # dbus
	depends on !BR2_STATIC_LIBS
	select BR2_PACKAGE_DBUS
	select BR2_PACKAGE_LIBGLIB2
	select BR2_PACKAGE_LIBGUDEV if BR2_PACKAGE_HAS_UDEV
	help
	  ModemManager is a DBus-activated daemon which controls mobile
	  broadband (2G/3G/4G) devices and connections.

	  http://www.freedesktop.org/wiki/Software/ModemManager/

if BR2_PACKAGE_MODEM_MANAGER

config BR2_PACKAGE_MODEM_MANAGER_LIBMBIM
	bool "MBIM support"
	select BR2_PACKAGE_LIBMBIM
	help
	  This option enables support for MBIM protocol

config BR2_PACKAGE_MODEM_MANAGER_LIBQMI
	bool "QMI support"
	select BR2_PACKAGE_LIBQMI
	help
	  This option enables support for QMI protocol

config BR2_PACKAGE_MODEM_MANAGER_LIBQRTR
	bool "QRTR support"
	depends on BR2_TOOLCHAIN_HEADERS_AT_LEAST_4_15 # libqrtr-glib
	select BR2_PACKAGE_LIBQRTR_GLIB
	select BR2_PACKAGE_MODEM_MANAGER_LIBQMI
	help
	  This option enables support for QRTR protocol

comment "QRTR support needs a toolchain w/ headers >= 4.15"
	depends on !BR2_TOOLCHAIN_HEADERS_AT_LEAST_4_15

endif

comment "modemmanager needs a toolchain w/ wchar, threads, dynamic library"
	depends on !BR2_USE_WCHAR || !BR2_TOOLCHAIN_HAS_THREADS || \
		BR2_STATIC_LIBS
	depends on BR2_USE_MMU
