diff options
author | Eric Anholt <anholt@freebsd.org> | 2006-02-14 02:48:22 +0000 |
---|---|---|
committer | Eric Anholt <anholt@freebsd.org> | 2006-02-14 02:48:22 +0000 |
commit | 32393ee83c8ad63dbb54aab709cdd4dc5802a74c (patch) | |
tree | 91324201bfe3dfbfd1d441384b82521133bd1c3a | |
parent | d121367a04832aafb27800283bac5ce35365d84e (diff) |
Detect when Render is available and turn those tests on.
-rw-r--r-- | ChangeLog | 7 | ||||
-rw-r--r-- | configure.ac | 6 | ||||
-rw-r--r-- | x11perf.c | 6 | ||||
-rw-r--r-- | x11perf.h | 4 |
4 files changed, 18 insertions, 5 deletions
@@ -1,3 +1,10 @@ +2006-02-13 Eric Anholt <anholt@FreeBSD.org> + + * configure.ac: + * x11perf.c: + * x11perf.h: + Detect when Render is available and turn those tests on. + 2005-12-20 Kevin E. Martin <kem-at-freedesktop-dot-org> * configure.ac: diff --git a/configure.ac b/configure.ac index fce0fb2..a6c2b97 100644 --- a/configure.ac +++ b/configure.ac @@ -42,6 +42,12 @@ AC_TYPE_SIGNAL PKG_CHECK_MODULES(X11PERF, x11 xmuu) AC_SUBST(X11PERF_CFLAGS) AC_SUBST(X11PERF_LIBS) +PKG_CHECK_MODULES(XRENDER, xrender xft, have_xrender=yes, have_xrender=no) +if test "x$have_xrender" = "xyes"; then + AC_DEFINE(XRENDER, 1, [Define to 1 if you have xrender and xft]) + X11PERF_CFLAGS="$X11PERF_CFLAGS $XRENDER_CFLAGS" + X11PERF_LIBS="$X11PERF_LIBS $XRENDER_LIBS" +fi XORG_MANPAGE_SECTIONS XORG_RELEASE_VERSION @@ -1,5 +1,5 @@ /* $Xorg: x11perf.c,v 1.4 2000/08/17 19:54:10 cpqbld Exp $ */ -/* $XdotOrg: $ */ +/* $XdotOrg: app/x11perf/x11perf.c,v 1.3 2005/07/26 18:55:42 alanc Exp $ */ /**************************************************************************** Copyright 1988, 1989 by Digital Equipment Corporation, Maynard, Massachusetts. @@ -24,10 +24,6 @@ SOFTWARE. ****************************************************************************/ /* $XFree86: xc/programs/x11perf/x11perf.c,v 3.6 2001/11/03 21:59:20 dawes Exp $ */ -#ifdef HAVE_CONFIG_H -#include "config.h" -#endif - #include <stdio.h> #include <ctype.h> #include <signal.h> @@ -23,6 +23,10 @@ SOFTWARE. ******************************************************************************/ /* $XFree86: xc/programs/x11perf/x11perf.h,v 3.4 2001/07/25 15:05:16 dawes Exp $ */ +#ifdef HAVE_CONFIG_H +#include "config.h" +#endif + #ifndef VMS #include <X11/Xlib.h> #include <stdlib.h> |