From 8e1ff45e74f529c7f49688242ea0fd25ce2913f3 Mon Sep 17 00:00:00 2001 From: Frederik Gladhorn Date: Thu, 10 May 2012 23:52:05 +0200 Subject: Add Linux Accessibility Bridge MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit This is a plugin that bridges the QAccessible world to AT-SPI 2 on Linux. Change-Id: I7af22621ee6a3cefc723b137b7f227a611cf6641 Reviewed-by: Jan-Arve Sæther --- configure | 26 ++++++++++++++++++++------ 1 file changed, 20 insertions(+), 6 deletions(-) (limited to 'configure') diff --git a/configure b/configure index 74d7367a74..10cc344ddc 100755 --- a/configure +++ b/configure @@ -3012,7 +3012,7 @@ Configure options: + -largefile ......... Enables Qt to access files larger than 4 GB. -no-accessibility .. Do not compile Accessibility support. - * -accessibility ..... Compile Accessibility support. + + -accessibility ..... Compile Accessibility support. -no-sql- ... Disable SQL entirely. -qt-sql- ... Enable a SQL in the QtSql library, by default @@ -3989,11 +3989,6 @@ if [ "$CFG_LIBPNG" = "auto" ]; then fi fi -# detect accessibility -if [ "$CFG_ACCESSIBILITY" = "auto" ]; then - CFG_ACCESSIBILITY=yes -fi - if [ "$CFG_EGLFS" = "yes" ]; then if [ "$CFG_EGL" = "no" ]; then echo "The EGLFS plugin requires EGL support and cannot be built" @@ -4842,6 +4837,25 @@ if [ "$CFG_KMS" = "yes" ]; then fi fi +# Detect accessibility support +if [ "$CFG_ACCESSIBILITY" != "no" ]; then + if [ "$CFG_XCB" = "no" ]; then + CFG_ACCESSIBILITY=yes + else + # linux/xcb accessibility needs dbus and atspi-2 + if [ "$CFG_DBUS" != "no" ] && [ -n "$PKG_CONFIG" ] && $PKG_CONFIG --exists "atspi-2" 2>/dev/null; then + CFG_ACCESSIBILITY=yes + else + if [ "$CFG_ACCESSIBILITY" = "auto" ]; then + CFG_ACCESSIBILITY=no + else + echo "Accessibility support needs pkg-config and libatspi2." + exit 101 + fi + fi + fi +fi + # Determine the default QPA platform if [ -z "$QT_QPA_DEFAULT_PLATFORM" ]; then # check the mkspec -- cgit v1.2.3