From dc0ee78d93c36606e7e8502d8ccff5f8c6116550 Mon Sep 17 00:00:00 2001 From: Po Lu Date: Mon, 28 Mar 2022 18:41:12 +0800 Subject: [PATCH] Improve portability of XCB configure checks * configure.ac: Look for xcb_aux_sync in -lxcb-aux if it's not in -lxcb-util. --- configure.ac | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/configure.ac b/configure.ac index 35ebbb2db0e..10358c2b645 100644 --- a/configure.ac +++ b/configure.ac @@ -3747,6 +3747,14 @@ if test "${HAVE_X11}" = "yes"; then [Define to 1 if you have the XCB library and X11-XCB library for mixed X11/XCB programming.]) XCB_LIBS="-lX11-xcb -lxcb -lxcb-util" + else + AC_CHECK_LIB(xcb-aux, xcb_aux_sync, HAVE_XCB_AUX=yes) + if test "${HAVE_XCB_AUX}" = "yes"; then + AC_DEFINE(USE_XCB, 1, +[Define to 1 if you have the XCB library and X11-XCB library for mixed + X11/XCB programming.]) + XCB_LIBS="-lX11-xcb -lxcb -lxcb-aux" + fi fi fi fi -- 2.39.2