path: root/
diff options
authorEmil Velikov <>2014-02-19 00:54:04 +0000
committerEmil Velikov <>2014-02-21 22:48:50 +0000
commit0432aa064bf5d4d0ad8fc3c4d648b8feb238ddfa (patch)
treed58d5d26337d9b005c42729576357f7477f962d3 /
parent9eae750317b52d05448ec327ec7499908a4653cf (diff)
configure: use shared-glapi when more than one gl* API is used
Current behaviour states that shared-glapi is usefull when building with dri, which is not the case. Shared-glapi is used to dispatch the gl* functions across the one or more gl api's which can be dri based but do not need to be. Fixed the following build ./configure --enable-gles2 --disable-dri --enable-gallium-egl \ --with-egl-platforms=fbdev --with-gallium-drivers=swrast Bugzilla: Signed-off-by: Emil Velikov <> Reviewed-by: Eric Anholt <>
Diffstat (limited to '')
1 files changed, 9 insertions, 6 deletions
diff --git a/ b/
index ed7f6b7fb5e..08aed4e30c5 100644
--- a/
+++ b/
@@ -727,13 +727,16 @@ AC_ARG_ENABLE([shared-glapi],
[Enable shared glapi for OpenGL @<:@default=yes@:>@])],
- [enable_shared_glapi="$enable_dri"])
+ [enable_shared_glapi=yes])
-# Shared GLAPI is only useful for DRI
-if test "x$enable_dri" = xno; then
- AC_MSG_NOTICE([Shared GLAPI is only useful for DRI, disabling])
- enable_shared_glapi=no
+case "x$enable_opengl$enable_gles1$enable_gles2" in
+ if test "x$enable_shared_glapi" = xno; then
+ AC_MSG_ERROR([shared GLAPI required when building two or more of
+ the following APIs - opengl, gles1 gles2])
+ fi
+ ;;
AM_CONDITIONAL(HAVE_SHARED_GLAPI, test "x$enable_shared_glapi" = xyes)