Skip to content

Commit cf06811

Browse files
committed
build: disable D-Bus on Android by default
Android uses a different notification system and doesn't support D-Bus
1 parent 3ab2582 commit cf06811

File tree

1 file changed

+10
-1
lines changed

1 file changed

+10
-1
lines changed

build-aux/m4/bitcoin_qt.m4

Lines changed: 10 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -72,10 +72,19 @@ AC_DEFUN([BITCOIN_QT_INIT],[
7272
7373
AC_ARG_WITH([qtdbus],
7474
[AS_HELP_STRING([--with-qtdbus],
75-
[enable DBus support (default is yes if qt is enabled and QtDBus is found)])],
75+
[enable DBus support (default is yes if qt is enabled and QtDBus is found, except on Android)])],
7676
[use_dbus=$withval],
7777
[use_dbus=auto])
7878
79+
dnl Android doesn't support D-Bus and certainly doesn't use it for notifications
80+
case $host in
81+
*android*)
82+
if test "x$use_dbus" != xyes; then
83+
use_dbus=no
84+
fi
85+
;;
86+
esac
87+
7988
AC_SUBST(QT_TRANSLATION_DIR,$qt_translation_path)
8089
])
8190

0 commit comments

Comments
 (0)