Add xcb-xlib dependency to x11.pc when built against XCB.

This commit is contained in:
Diego 'Flameeyes' Pettenò 2006-11-07 09:32:00 -08:00 committed by Eric Anholt
parent 2302008a37
commit e494ecaac1
2 changed files with 3 additions and 1 deletions

View file

@ -40,10 +40,12 @@ no)
;;
*)
X11_REQUIRES="xcb-xlib >= 0.9.92"
X11_EXTRA_DEPS="xcb-xlib"
xdmauth="no" # XCB handles all auth
AC_DEFINE(USE_XCB, 1, [Use XCB for low-level protocol implementation])
;;
esac
AC_SUBST(X11_EXTRA_DEPS)
PKG_CHECK_MODULES(X11, xextproto xtrans $X11_REQUIRES)
dnl Issue an error if xtrans.m4 was not found and XTRANS_CONNECTION_FLAGS macro

View file

@ -9,7 +9,7 @@ Name: X11
Description: X Library
Version: @PACKAGE_VERSION@
Requires: xproto @XKBPROTO_REQUIRES@
Requires.private: xau xdmcp
Requires.private: xau xdmcp @X11_EXTRA_DEPS@
Cflags: -I${includedir} @XTHREAD_CFLAGS@
Libs: -L${libdir} -lX11
Libs.private: @XTHREADLIB@