From 568cc67a5bbccbc892cb347af8c07d0fb0d46336 Mon Sep 17 00:00:00 2001 From: Steve Checkoway Date: Mon, 20 Mar 2006 19:01:19 +0000 Subject: [PATCH] Allow disabling ffmpeg. --- stepmania/autoconf/m4/video.m4 | 3 +++ 1 file changed, 3 insertions(+) diff --git a/stepmania/autoconf/m4/video.m4 b/stepmania/autoconf/m4/video.m4 index 152c15ea16..22ae2c95f0 100644 --- a/stepmania/autoconf/m4/video.m4 +++ b/stepmania/autoconf/m4/video.m4 @@ -1,5 +1,7 @@ AC_DEFUN([SM_VIDEO], [ +AC_ARG_WITH(ffmpeg, AC_HELP_STRING([--without-ffmpeg], [Disable ffmpeg support]), with_ffmpeg=$enableval, with_ffmpeg=yes) +if test "$with_ffmpeg" = "yes"; then AC_SEARCH_LIBS(avcodec_init, [avcodec], have_libavcodec=yes, have_libavcodec=no) AC_SEARCH_LIBS(guess_format, [avformat], have_libavformat=yes, have_libavformat=no) @@ -26,6 +28,7 @@ if test "$have_libavformat" = "yes"; then ],,have_libavformat=no,) AC_MSG_RESULT($have_libavformat) fi +fi have_ffmpeg=no if test "$have_libavformat" = "yes" -a "$have_libavcodec" = "yes"; then