summaryrefslogtreecommitdiffstats
path: root/configure.ac
diff options
context:
space:
mode:
authorChia-I Wu <olvaffe@gmail.com>2011-10-27 12:59:20 +0800
committerChia-I Wu <olvaffe@gmail.com>2011-11-03 16:04:09 +0800
commit5a1e31e1edff21c4cebeabaa6a8354e9933ee6d4 (patch)
treefa431f5372d8c8fca4b1a712b398a1357d81a7b7 /configure.ac
parent81649d43a249e33f9bd71a0afa1558a02b26e69e (diff)
downloadmesa-demos-5a1e31e1edff21c4cebeabaa6a8354e9933ee6d4.zip
mesa-demos-5a1e31e1edff21c4cebeabaa6a8354e9933ee6d4.tar.xz
check for GBM
EGL on KMS needs GBM.
Diffstat (limited to 'configure.ac')
-rw-r--r--configure.ac11
1 files changed, 11 insertions, 0 deletions
diff --git a/configure.ac b/configure.ac
index 71ed0cc..4f6f16f 100644
--- a/configure.ac
+++ b/configure.ac
@@ -206,6 +206,16 @@ if test "x$x11_enabled" != "xno"; then
PKG_CHECK_MODULES(X11, [x11 xext], [x11_enabled=yes], [x11_enabled=no])
fi
+dnl GBM is needed for EGL on KMS
+AC_ARG_ENABLE([gbm],
+ [AS_HELP_STRING([--enable-gbm],
+ [enable support for GBM @<:@default=no@:>@])],
+ [gbm_enabled="$enableval"],
+ [gbm_enabled=auto])
+if test "x$gbm_enabled" != "xno"; then
+ PKG_CHECK_MODULES(GBM, [gbm], [gbm_enabled=yes], [gbm_enabled=no])
+fi
+
dnl FreeType2 is needed by an OpenVG demo
AC_ARG_ENABLE([freetype2],
[AS_HELP_STRING([--enable-freetype2],
@@ -280,6 +290,7 @@ AM_CONDITIONAL(HAVE_GLESV2, test "x$glesv2_enabled" = "xyes")
AM_CONDITIONAL(HAVE_VG, test "x$vg_enabled" = "xyes")
AM_CONDITIONAL(HAVE_GLUT, test "x$glut_enabled" = "xyes")
AM_CONDITIONAL(HAVE_X11, test "x$x11_enabled" = "xyes")
+AM_CONDITIONAL(HAVE_GBM, test "x$gbm_enabled" = "xyes")
AM_CONDITIONAL(HAVE_FREETYPE2, test "x$freetype2_enabled" = "xyes")
AM_CONDITIONAL(HAVE_OSMESA, test "x$osmesa_enabled" = "xyes")
AM_CONDITIONAL(HAVE_DRM, test "x$drm_enabled" = "xyes")