summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAdam Jackson <ajax@redhat.com>2009-04-27 13:26:03 -0400
committerAdam Jackson <ajax@redhat.com>2009-04-27 13:26:03 -0400
commit9a82c5db3f8332d10b31d68e5b86d3a6b136dc5e (patch)
tree311b21dd41f4a1f0dfd4c048f2a211ebd1b0b248
parent58888aefd0bad7bfca231ec7a54865d9c26c8095 (diff)
Fix xf86ModeBandwidth check
-rw-r--r--configure.ac8
1 files changed, 7 insertions, 1 deletions
diff --git a/configure.ac b/configure.ac
index 923b434..f0119dd 100644
--- a/configure.ac
+++ b/configure.ac
@@ -109,10 +109,16 @@ CFLAGS="$XORG_CFLAGS"
AC_CHECK_DECL(XSERVER_LIBPCIACCESS,
[XSERVER_LIBPCIACCESS=yes], [XSERVER_LIBPCIACCESS=no],
[#include "xorg-server.h"])
+CFLAGS="$save_CFLAGS"
+
+save_CFLAGS="$CFLAGS"
+CFLAGS="$XORG_CFLAGS"
AC_CHECK_DECL(xf86ModeBandwidth,
[AC_DEFINE(HAVE_XF86MODEBANDWIDTH, 1, [Have xf86ModeBandwidth])],
[],
- [#include "xf86Modes.h"])
+ [#include <X11/extensions/randr.h>
+ #include "xorg-server.h"
+ #include "xf86Modes.h"])
CFLAGS="$save_CFLAGS"
if test "x$XSERVER_LIBPCIACCESS" = xyes; then