Commit 0432aa06 authored by Emil Velikov's avatar Emil Velikov

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: Emil Velikov's avatarEmil Velikov <>
Reviewed-by: Eric Anholt's avatarEric Anholt <>
parent 9eae7503
......@@ -727,13 +727,16 @@ AC_ARG_ENABLE([shared-glapi],
[Enable shared glapi for OpenGL @<:@default=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])
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])
AM_CONDITIONAL(HAVE_SHARED_GLAPI, test "x$enable_shared_glapi" = xyes)
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment