[vlc-commits] [Git][videolan/vlc][master] configure: fix Windows build when --disable-directx is used

Steve Lhomme (@robUx4) gitlab at videolan.org
Thu Nov 24 11:26:31 UTC 2022



Steve Lhomme pushed to branch master at VideoLAN / VLC


Commits:
2d151758 by Marvin Scholz at 2022-11-24T10:58:46+00:00
configure: fix Windows build when --disable-directx is used

Previously the wglew.h check would only be done when directx is enabled,
but when disabled, other OpenGL modules are still enabled and these
would break without the GL/wglew.h include, which would never be done
because HAVE_GL_WGLEW_H would not be defined.

- - - - -


1 changed file:

- configure.ac


Changes:

=====================================
configure.ac
=====================================
@@ -3245,6 +3245,14 @@ PKG_CHECK_MODULES([GL], [gl], [
       have_gl="yes"
       GL_LIBS="-lopengl32"
     ])
+    AC_CHECK_HEADERS([GL/glew.h], [
+      AC_CHECK_HEADERS([GL/wglew.h], [
+        VLC_ADD_PLUGIN([glwin32 wgl])
+      ], [], [
+        #include <windows.h>
+        #include <GL/glew.h>
+      ])
+    ], [], [#include <windows.h>])
   ])
   AC_MSG_CHECKING([for OpenGL])
   AC_MSG_RESULT([${have_gl}])
@@ -3597,17 +3605,6 @@ AC_ARG_ENABLE([directx],
   ])
 ])
 AS_IF([test "${enable_directx}" != "no"], [
-  dnl OpenGL
-  AC_CHECK_HEADERS([GL/glew.h], [
-    AC_CHECK_HEADERS([GL/wglew.h], [
-        VLC_ADD_PLUGIN([glwin32 wgl])
-      ],, [
-        #include <windows.h>
-        #include <GL/glew.h>
-      ])],, [
-      #include <windows.h>
-   ])
-
   dnl Direct3D11
   AC_CHECK_HEADERS([d3d11.h], [
     VLC_ADD_PLUGIN([direct3d11 direct3d11_filters])



View it on GitLab: https://code.videolan.org/videolan/vlc/-/commit/2d151758edcd66a6e8cbc521e6d79abf0fb4ded1

-- 
View it on GitLab: https://code.videolan.org/videolan/vlc/-/commit/2d151758edcd66a6e8cbc521e6d79abf0fb4ded1
You're receiving this email because of your account on code.videolan.org.


VideoLAN code repository instance


More information about the vlc-commits mailing list