Commit b4967561 authored by Emil Velikov's avatar Emil Velikov Committed by Emil Velikov loosen --enable-glvnd check to honour egl

Currently we error out when building GLVND w/o GLX.

That was the original premice before we had EGL. As the commit says,
that error should be reworked to honour both - do so.

v2: Drop noop *);; (Eric)
Reported-by: default avatarLukas Rusak <>
Fixes: ce562f9e ("EGL: Implement the libglvnd interface for EGL (v3)")
Signed-off-by: default avatarEmil Velikov <>
Reviewed-by: default avatarEric Engestrom <>
Tested-by: Lukas Rusak <> (v1)
parent 61e99ce2
......@@ -1383,18 +1383,10 @@ AC_ARG_ENABLE([libglvnd],
AM_CONDITIONAL(USE_LIBGLVND, test "x$enable_libglvnd" = xyes)
if test "x$enable_libglvnd" = xyes ; then
dnl XXX: update once we can handle more than libGL/glx.
dnl Namely: we should error out if neither of the glvnd enabled libraries
dnl are built
case "x$enable_glx" in
AC_MSG_ERROR([cannot build libglvnd without GLX])
xxlib | xgallium-xlib )
AC_MSG_ERROR([cannot build libgvnd when Xlib-GLX or Gallium-Xlib-GLX is enabled])
PKG_CHECK_MODULES([GLVND], libglvnd >= 0.2.0)
......@@ -1403,6 +1395,10 @@ if test "x$enable_libglvnd" = xyes ; then
if test "x$enable_glx" = xno -a "x$enable_egl" = xno; then
AC_MSG_ERROR([cannot build libglvnd without GLX or EGL])
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