]> git.sesse.net Git - vlc/commitdiff
configure: add a feature test for OpenGL
authorKO Myung-Hun <komh@chollian.net>
Sat, 14 Dec 2013 06:05:44 +0000 (15:05 +0900)
committerJean-Baptiste Kempf <jb@videolan.org>
Sat, 14 Dec 2013 15:34:16 +0000 (16:34 +0100)
Signed-off-by: Jean-Baptiste Kempf <jb@videolan.org>
configure.ac

index 5f7ed24a3901a97c302ae83af0ccb46c5a30041d..1491748f5eeb4ac3a6048b4e76ad215573bf5875 100644 (file)
@@ -2955,7 +2955,10 @@ AM_CONDITIONAL([HAVE_EGL], [test "${have_egl}" = "yes"])
 PKG_CHECK_MODULES([GL], [gl], [
   have_gl="yes"
 ], [
-  AC_CHECK_HEADER([GL/gl.h], [
+  AC_COMPILE_IFELSE([AC_LANG_PROGRAM([
+    [#include <GL/gl.h>]], [
+    [int t0 = GL_TEXTURE0;]])
+  ], [
     have_gl="yes"
     GL_CFLAGS=""
     AS_IF([test "${SYS}" = "mingw32"], [