X-Git-Url: https://git.sesse.net/?a=blobdiff_plain;ds=sidebyside;f=configure.ac;h=9192c109209417efcbbcf5657e5114df17f6314e;hb=7d575ec68e3c562306b40e8bdfa9823fdea73123;hp=8aa15f6eeea894b317a939b9cd2bf2409e2b24fa;hpb=dc647fe5d1a089adc5e54d04d6df2c60f8d4da35;p=vlc diff --git a/configure.ac b/configure.ac index 8aa15f6eee..9192c10920 100644 --- a/configure.ac +++ b/configure.ac @@ -205,8 +205,12 @@ case "${host_os}" in *mingw32* | *cygwin* | *wince* | *mingwce*) AC_CHECK_TOOL(WINDRES, windres, :) AC_CHECK_TOOL(OBJCOPY, objcopy, :) - AC_DEFINE([_WIN32_WINNT], 0x0502, [Define to '0x0502' for Windows XP SP2 APIs.]) + AH_TOP([#if defined(WIN32) && !defined(_WIN32_WINNT)]) + AH_TOP([# define _WIN32_WINNT 0x0502 /* Windows XP SP2 */]) + AH_TOP([#endif]) AC_DEFINE([_WIN32_IE], 0x0600, [Define to '0x0600' for IE 6.0 (and shell) APIs.]) + AC_DEFINE([_UNICODE], [1], [Define to 1 for Unicode (Wide Chars) APIs.]) + AC_DEFINE([UNICODE], [1], [Define to 1 for Unicode (Wide Chars) APIs.]) case "${host_os}" in *mingw32*) @@ -459,6 +463,16 @@ dnl Check for fnative-struct or mms-bitfields support for mingw32 fi ]) +AC_ARG_ENABLE(winstore_app, + AS_HELP_STRING([--enable-winstore-app], + [Build targetted for Windows Store apps (default disabled)])) + +AS_IF([test "${SYS}" = "mingw32"], [ + AS_IF([test "${enable_winstore_app}" == "yes"], [ + AC_DEFINE(WINAPI_FAMILY_APP, 1, [Define if you want to build for Windows Store apps])]) + ]) + + dnl dnl Buggy glibc prevention. Purposedly not cached. dnl See sourceware.org bugs 5058 and 5443. @@ -492,7 +506,7 @@ need_libc=false dnl Check for usual libc functions AC_CHECK_DECLS([nanosleep],,,[#include ]) AC_CHECK_FUNCS([daemon fcntl fstatvfs fork getenv getpwuid_r isatty lstat memalign mmap openat pread posix_fadvise posix_madvise setlocale stricmp strnicmp strptime uselocale]) -AC_REPLACE_FUNCS([atof atoll dirfd fdopendir flockfile fsync getdelim getpid gmtime_r inet_pton lldiv localtime_r nrand48 poll posix_memalign rewind setenv strcasecmp strcasestr strdup strlcpy strncasecmp strndup strnlen strsep strtof strtok_r strtoll swab tdestroy strverscmp]) +AC_REPLACE_FUNCS([atof atoll dirfd fdopendir flockfile fsync getdelim getpid gmtime_r inet_pton lldiv localtime_r nrand48 poll posix_memalign rewind setenv strcasecmp strcasestr strdup strlcpy strndup strnlen strsep strtof strtok_r strtoll swab tdestroy strverscmp]) AC_CHECK_FUNCS(fdatasync,, [AC_DEFINE(fdatasync, fsync, [Alias fdatasync() to fsync() if missing.]) ]) @@ -2970,6 +2984,44 @@ AS_IF([test "${enable_xcb}" != "no"], [ ]) AM_CONDITIONAL([HAVE_XCB], [test "${have_xcb}" = "yes"]) + +dnl +dnl VDPAU needs X11 and avcodec +dnl +AC_ARG_ENABLE(vdpau, + [AS_HELP_STRING([--enable-vdpau], + [VDPAU hardware decoder support (default auto)])]) +have_vdpau="no" +AS_IF([test "${enable_vdpau}" != "no"], [ + PKG_CHECK_MODULES([VDPAU], [vdpau], [ + have_vdpau="yes" + AS_IF([test "${no_x}" = "yes"], [ + AC_MSG_ERROR([VDPAU requires Xlib (X11).]) + ]) + AC_MSG_NOTICE([VDPAU acceleration activated]) + ], [ + AS_IF([test -n "${enable_vdpau}"], [ + AC_MSG_ERROR([${VDPAU_PKG_ERRORS}.]) + ]) + ]) +]) +dnl AM_CONDITIONAL([HAVE_VDPAU], [test "${have_vdpau}" = "yes"]) + +have_avcodec_vdpau="no" +AS_IF([test "${have_vdpau}" = "yes"], [ + PKG_CHECK_EXISTS([libavutil >= 0.52.4 libavcodec >= 54.36.0], [ + have_avcodec_vdpau="yes" + ], [ + AS_IF([test -n "${enable_vdpau}"], [ + AC_MSG_ERROR([libavutil >= 0.52.4 and libavcodec >= 54.36.0 are required for VDPAU decoding.]) + ], [ + AC_MSG_WARN([libavutil >= 0.52.4 and libavcodec >= 54.36.0 are required for VDPAU decoding.]) + ]) + ]) +]) +AM_CONDITIONAL([HAVE_AVCODEC_VDPAU], [test "${have_avcodec_vdpau}" = "yes"]) + + dnl dnl SDL module dnl