summaryrefslogtreecommitdiff
path: root/configure.ac
diff options
context:
space:
mode:
authorEric Anholt <eric@anholt.net>2007-06-13 13:40:39 -0700
committerEric Anholt <eric@anholt.net>2007-06-13 13:40:39 -0700
commit6c29e0bae5f1e7cee02b678418394abb971594eb (patch)
treeab9bf6f75176170c5dc069f70fad6fe11e4b7463 /configure.ac
parent420e41e7921d3cc07c784fd17936ec8a675f3b20 (diff)
Improve the drm_i915_flip_t check.
Diffstat (limited to 'configure.ac')
-rw-r--r--configure.ac7
1 files changed, 5 insertions, 2 deletions
diff --git a/configure.ac b/configure.ac
index da9fd3f6..66992fc1 100644
--- a/configure.ac
+++ b/configure.ac
@@ -191,11 +191,14 @@ if test "$DRI" = yes; then
fi
save_CFLAGS="$CFLAGS"
- CFLAGS="$DRI_CFLAGS"
+ CFLAGS="$XORG_CFLAGS $DRI_CFLAGS"
AC_CHECK_TYPE(drm_i915_flip_t,
[AC_DEFINE(HAVE_I915_FLIP, 1,
[Have drm_i915_flip_t and related definitions])],
- [], [#include <i915_drm.h>])
+ [], [
+#include <inttypes.h>
+#include <i915_drm.h>
+])
CFLAGS="$save_CFLAGS"
fi