]> git.sesse.net Git - vlc/commitdiff
Win32: don't enable opengl modules if glew is missing
authorRafaël Carré <funman@videolan.org>
Sat, 21 Sep 2013 18:56:58 +0000 (20:56 +0200)
committerRafaël Carré <funman@videolan.org>
Sat, 21 Sep 2013 18:56:58 +0000 (20:56 +0200)
Bug appeared after c1452fef225925c5a040b69 silently changed module selection rules

configure.ac

index 48e944f0623a77704c23d4453445032c2e16bb46..dee83e1e2deca6a74bde911996405ba19c6c6ccb 100644 (file)
@@ -2974,6 +2974,10 @@ PKG_CHECK_MODULES([GL], [gl], [
     have_gl="yes"
     GL_CFLAGS=""
     AS_IF([test "${SYS}" = "mingw32"], [
+      AC_CHECK_HEADER([GL/glew.h], [
+      ], [
+        have_gl="no"
+      ])
       GL_LIBS="-lopengl32"
     ], [
       GL_LIBS="-lGL"