Add xrender to cairo.pc Renders line if needed.

This commit is contained in:
Carl Worth 2003-12-11 09:35:07 +00:00
parent b95d2066a5
commit 6cd6ac5a05
3 changed files with 8 additions and 1 deletions

View file

@ -1,3 +1,8 @@
2003-12-11 Carl Worth <cworth@east.isi.edu>
* cairo.pc.in (Requires):
* configure.in: Add xrender to cairo.pc Renders line if needed.
2003-12-11 Carl Worth <cworth@east.isi.edu>
* src/cairo_ps_surface.c (_cairo_ps_surface_copy_page): Fix to use

View file

@ -7,7 +7,7 @@ Name: cairo
Description: Multi-platform 2D graphics library
Version: @VERSION@
Requires: fontconfig libic slim
Requires: fontconfig libic slim @XRENDER_REQUIRES@
Libs: -L${libdir} -lcairo -lm -lz @FREETYPE_LIBS@
Cflags: -I${includedir} @FREETYPE_CFLAGS@

View file

@ -43,9 +43,11 @@ if test "x$have_x" != "xyes"; then
else
XLIB_SURFACE_FEATURE=CAIRO_HAS_XLIB_SURFACE
PKG_CHECK_MODULES(XRENDER, xrender >= 0.6)
XRENDER_REQUIRES=xrender
fi
AC_SUBST(XLIB_SURFACE_FEATURE)
AC_SUBST(XRENDER_REQUIRES)
dnl This is needed for conditional compilation of xlib code in Makefile.am :
dnl XXX: I'd prefer to have only one test of $have_x, would that be easy?