summaryrefslogtreecommitdiff
path: root/configure.ac
diff options
context:
space:
mode:
authorKeith Packard <keithp@keithp.com>2008-05-13 12:24:50 -0700
committerKeith Packard <keithp@keithp.com>2008-05-17 23:23:17 -0700
commit9c9a5d0e48c6e911574695fc417d2dc1a0fd1c20 (patch)
treef27aa6298afe2dc8092dec2ffce49364a8d2aecd /configure.ac
parent089011daf3da8db3bd16d50e1d6a6457da82300e (diff)
Add check for GEM, use that to enable driver GEM support
Diffstat (limited to 'configure.ac')
-rw-r--r--configure.ac7
1 files changed, 7 insertions, 0 deletions
diff --git a/configure.ac b/configure.ac
index 00f075e8..f814ade2 100644
--- a/configure.ac
+++ b/configure.ac
@@ -218,6 +218,13 @@ if test "$DRI" = yes; then
#include <inttypes.h>
#include <i915_drm.h>
])
+ AC_CHECK_DECL(DRM_IOCTL_GEM_CREATE,
+ [AC_DEFINE(HAVE_DRM_GEM, 1,
+ [Have DRM Graphics Execution Manager])],
+ [], [
+#include <inttypes.h>
+#include <drm.h>
+])
CFLAGS="$save_CFLAGS"
fi