diff options
author | Kevin E Martin <kem@kem.org> | 2005-11-19 07:15:39 +0000 |
---|---|---|
committer | Kevin E Martin <kem@kem.org> | 2005-11-19 07:15:39 +0000 |
commit | fa1f4a08112bfa14d3758f4702733dd3892966c3 (patch) | |
tree | 671268d4f8cbd68ccd3a1438c800c14027b4e744 | |
parent | 7012f9b56c594cf40855ba0dbf93af1263417a8c (diff) |
Update pkgconfig files to separate library build-time dependencies from application build-time dependencies, and update package deps to work with separate build roots.
-rw-r--r-- | ChangeLog | 8 | ||||
-rw-r--r-- | configure.ac | 6 | ||||
-rw-r--r-- | x11.pc.in | 7 |
3 files changed, 18 insertions, 3 deletions
@@ -1,3 +1,11 @@ +2005-11-19 Kevin E. Martin <kem-at-freedesktop-dot-org> + + * x11.pc.in: + Update pkgconfig files to separate library build-time dependencies + from application build-time dependencies. + * configure.ac: + Update dependencies to work with separate build roots. + 2005-11-14 Kevin E. Martin <kem-at-freedesktop-dot-org> * configure.ac: diff --git a/configure.ac b/configure.ac index bcb122d..74bf725 100644 --- a/configure.ac +++ b/configure.ac @@ -280,11 +280,15 @@ AM_CONDITIONAL(MANPAGES, [ test x$LIBMAN '!=' xno ]) AM_CONDITIONAL(XKB, [ test x$XKB = xyes ]) if test x"$XKB" = "xyes"; then - PKG_CHECK_MODULES(XKBPROTO, kbproto inputproto) + XKBPROTO_REQUIRES="kbproto inputproto" + PKG_CHECK_MODULES(XKBPROTO, $XKBPROTO_REQUIRES) AC_DEFINE(XKB,1,[Use XKB]) X11_CFLAGS="$X11_CFLAGS $XKBPROTO_CFLAGS" X11_LIBS="$X11_LIBS $XKBPROTO_LIBS" +else + XKBPROTO_REQUIRES="" fi +AC_SUBST(XKBPROTO_REQUIRES) if test "x$GCC" = "xyes"; then GCC_WARNINGS="-Wall -Wpointer-arith -Wstrict-prototypes \ @@ -8,5 +8,8 @@ xthreadlib=@XTHREADLIB@ Name: X11 Description: X Library Version: @PACKAGE_VERSION@ -Libs: -L${libdir} -lX11 @XPROTO_LIBS@ @LIBS@ -Cflags: -I${includedir} @XPROTO_CFLAGS@ @XTHREAD_CFLAGS@ +Requires: xproto @XKBPROTO_REQUIRES@ +Requires.private: xau xdmcp +Cflags: -I${includedir} @XTHREAD_CFLAGS@ +Libs: -L${libdir} -lX11 +Libs.private: @XTHREADLIB@ |