emacs-diffs
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

master dc0ee78d93: Improve portability of XCB configure checks


From: Po Lu
Subject: master dc0ee78d93: Improve portability of XCB configure checks
Date: Mon, 28 Mar 2022 06:42:06 -0400 (EDT)

branch: master
commit dc0ee78d93c36606e7e8502d8ccff5f8c6116550
Author: Po Lu <luangruo@yahoo.com>
Commit: Po Lu <luangruo@yahoo.com>

    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 35ebbb2db0..10358c2b64 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



reply via email to

[Prev in Thread] Current Thread [Next in Thread]