$NetBSD: patch-configure,v 1.4 2018/10/23 07:42:23 leot Exp $ Make gtk3-atk-bridge an option to avoid unwanted dbus dependency. --- configure.orig 2018-09-19 01:46:05.000000000 +0000 +++ configure @@ -1062,6 +1062,7 @@ enable_glibtest enable_modules with_included_immodules with_x +with_atk_bridge enable_win32_gles enable_cups enable_papi @@ -1831,6 +1832,7 @@ Optional Packages: --with-included-immodules=MODULE1,MODULE2,... build the specified input methods into gtk --with-x use the X Window System + --without-atk-bridge Do not use atk-bridge-2.0 --with-html-dir=PATH path to installed docs --with-xml-catalog=CATALOG path to xml catalog to use @@ -26974,8 +26976,20 @@ fi # Check for Accessibility Toolkit flags ######################################## -if test x$enable_x11_backend = xyes; then + +# Check whether --with-atk-bridge was given. +if test "${with_atk_bridge+set}" = set; then : + withval=$with_atk_bridge; : +else + with_atk_bridge=yes +fi + + +if test x$enable_x11_backend = xyes -a x$with_atk_bridge = xyes; then ATK_PACKAGES="atk atk-bridge-2.0" + +$as_echo "#define HAVE_ATK_BRIDGE 1" >>confdefs.h + else ATK_PACKAGES="atk" fi