Commit 038b3b08 authored by Rémi Denis-Courmont's avatar Rémi Denis-Courmont

Fallback if gl.pc is missing (not tested)

parent bbcfc7fe
......@@ -3684,10 +3684,18 @@ AC_ARG_ENABLE(glx,
])
AS_IF([test "${enable_glx}" != "no"], [
PKG_CHECK_MODULES(XLIB_XCB, [x11-xcb])
PKG_CHECK_MODULES(GL, [gl])
PKG_CHECK_MODULES(GL, [gl],, [
AC_CHECK_HEADER([GL/gl.h], [
GL_CFLAGS=""
GL_LIBS="-lGL"
], [
AC_MSG_ERROR([GLX (libGL) cannot be found. If you do not need OpenGL with X11, use --disable-glx.])
])
])
VLC_ADD_PLUGIN([xcb_glx])
])
AC_SUBST([GL_CFLAGS])
AC_SUBST([GL_LIBS])
dnl
......
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