]> git.eshelyaron.com Git - emacs.git/commitdiff
Improve portability of XCB configure checks
authorPo Lu <luangruo@yahoo.com>
Mon, 28 Mar 2022 10:41:12 +0000 (18:41 +0800)
committerPo Lu <luangruo@yahoo.com>
Mon, 28 Mar 2022 10:41:56 +0000 (18:41 +0800)
* configure.ac: Look for xcb_aux_sync in -lxcb-aux if it's not
in -lxcb-util.

configure.ac

index 35ebbb2db0ece3331b8c72d817362928f3731a3b..10358c2b6450e948319ea90f27a094c97592d994 100644 (file)
@@ -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