diff --git a/stepmania/configure.ac b/stepmania/configure.ac index 5eb7589596..0af3beda8f 100644 --- a/stepmania/configure.ac +++ b/stepmania/configure.ac @@ -103,9 +103,21 @@ if test "$have_libavcodec" = "yes"; then #include int main() { - return ( FFMPEG_VERSION_INT < 0x000408 )? 1:0; + return ( LIBAVCODEC_VERSION_INT < 0x000408 )? 1:0; } ],,have_libavcodec=no,) + AC_MSG_RESULT($have_libavcodec) +fi + +if test "$have_libavformat" = "yes"; then + AC_MSG_CHECKING([for libavformat >= 0.4.8]) + AC_TRY_RUN([ + #include + int main() + { + return ( LIBAVFORMAT_VERSION_INT < 0x000408 )? 1:0; + } + ],,have_libavformat=no,) AC_MSG_RESULT($have_libavformat) fi @@ -127,6 +139,7 @@ if test x$enable_gtk2 = xyes; then fi AC_CHECK_HEADER(linux/soundcard.h, [AC_DEFINE(HAVE_OSS, 1, [OSS support available])]) +AC_ARG_ENABLE(force-oss, AC_HELP_STRING([--enable-force-oss], [Force OSS]), force_oss=$enableval, force_oss=yes) AC_CHECK_HEADER(stdint.h, , [AC_DEFINE(MISSING_STDINT_H, 1, [stdint.h is missing])]) AC_CHECK_HEADERS([inttypes.h]) @@ -150,6 +163,10 @@ AM_CONDITIONAL(HAVE_GTK, test "$enable_gtk2" != "no" ) AM_CONDITIONAL(HAVE_OSS, test x$ac_cv_header_linux_soundcard_h = xyes ) AM_CONDITIONAL(USE_CRASH_HANDLER, test "$use_crash_handler" = "yes" ) +if test x$force_oss = xyes && test x$ac_cv_header_linux_soundcard_h = xyes; then + AC_DEFINE([FORCE_OSS], 1, [Force OSS Usage]) +fi + AC_CHECK_DECL(powf, , AC_DEFINE([NEED_POWF],1,[Need powf]), [#include ]) AC_CHECK_DECL(sqrtf, , AC_DEFINE([NEED_SQRTF],1,[Need sqrtf]), [#include ]) AC_CHECK_DECL(sinf, , AC_DEFINE([NEED_SINF],1,[Need sinf]), [#include ]) diff --git a/stepmania/src/arch/MovieTexture/MovieTexture.cpp b/stepmania/src/arch/MovieTexture/MovieTexture.cpp index 0d6c43595a..303359e368 100644 --- a/stepmania/src/arch/MovieTexture/MovieTexture.cpp +++ b/stepmania/src/arch/MovieTexture/MovieTexture.cpp @@ -99,7 +99,7 @@ RageMovieTexture *MakeRageMovieTexture(RageTextureID ID) #ifdef _WINDOWS if (!Driver.CompareNoCase("DShow")) ret = new MovieTexture_DShow(ID); #endif -#ifdef SUPPORT_MOVIETEXTURE_FFMPEG +#ifdef HAVE_FFMPEG if (!Driver.CompareNoCase("FFMpeg")) ret = new MovieTexture_FFMpeg(ID); #endif if (!Driver.CompareNoCase("Null")) ret = new MovieTexture_Null(ID); diff --git a/stepmania/src/arch/MovieTexture/MovieTexture_FFMpeg.h b/stepmania/src/arch/MovieTexture/MovieTexture_FFMpeg.h index 8e02ae9663..066ee12643 100644 --- a/stepmania/src/arch/MovieTexture/MovieTexture_FFMpeg.h +++ b/stepmania/src/arch/MovieTexture/MovieTexture_FFMpeg.h @@ -9,8 +9,6 @@ #include "SDL_mutex.h" -#define SUPPORT_MOVIETEXTURE_FFMPEG - /* Fix a compile problem in gcc 3.2: */ #if defined(HAVE_INTTYPES_H) #include