diff options
author | Igor Cota <igor@codexapertus.com> | 2019-11-06 17:13:28 +0100 |
---|---|---|
committer | Igor Cota <igor@openbook.hr> | 2020-08-16 15:16:36 +0200 |
commit | cf0681133ae7301ead7091eaee55c945da5cdfcc (patch) | |
tree | 70120b961f1e99366b843e934d5f7bcaa98521d0 | |
parent | 3ab2582c7fe76d2839ab493512758d5601903c86 (diff) |
build: disable D-Bus on Android by default
Android uses a different notification system and doesn't support D-Bus
-rw-r--r-- | build-aux/m4/bitcoin_qt.m4 | 11 |
1 files changed, 10 insertions, 1 deletions
diff --git a/build-aux/m4/bitcoin_qt.m4 b/build-aux/m4/bitcoin_qt.m4 index e171238cbc..78fce22ddd 100644 --- a/build-aux/m4/bitcoin_qt.m4 +++ b/build-aux/m4/bitcoin_qt.m4 @@ -72,10 +72,19 @@ AC_DEFUN([BITCOIN_QT_INIT],[ AC_ARG_WITH([qtdbus], [AS_HELP_STRING([--with-qtdbus], - [enable DBus support (default is yes if qt is enabled and QtDBus is found)])], + [enable DBus support (default is yes if qt is enabled and QtDBus is found, except on Android)])], [use_dbus=$withval], [use_dbus=auto]) + dnl Android doesn't support D-Bus and certainly doesn't use it for notifications + case $host in + *android*) + if test "x$use_dbus" != xyes; then + use_dbus=no + fi + ;; + esac + AC_SUBST(QT_TRANSLATION_DIR,$qt_translation_path) ]) |