X-Git-Url: https://git.sesse.net/?a=blobdiff_plain;f=configure.ac;h=52e48308ccbb914997e18fec0e9080b310d49a99;hb=f7d33ffa576f54c2c940f5bd5fe1827ada9a6bd5;hp=9a22804a96e5d62d28876220920a46c92634e722;hpb=657fff36d7b2ea46b1dfe5bd5c21c4395f28b245;p=vlc diff --git a/configure.ac b/configure.ac index 9a22804a96..52e48308cc 100644 --- a/configure.ac +++ b/configure.ac @@ -3449,6 +3449,23 @@ then fi fi +dnl +dnl Windows Direct2D plugin +dnl +AC_ARG_ENABLE(direct2d, + [ --enable-direct2d Win7/VistaPU Direct2D support (default auto on Win32)]) +if test "${enable_direct2d}" != "no"; then + if test "${SYS}" = "mingw32" -o "${SYS}" = "mingwce" + then + AC_CHECK_HEADERS(d2d1.h, + [ + VLC_ADD_PLUGIN([direct2d]) + VLC_ADD_LIBS([direct2d],[-lgdi32 -lole32]) + ], [AC_MSG_WARN([Cannot find Direct2D headers!])] + ) + fi +fi + dnl dnl win32 GDI plugin dnl