Fix "--with-ffmpeg" causes ffmpeg to be disabled. (This was "$enableval"

before.  The "enable" vs. "with" distinction in autoconf is confusing
and not useful ...)
This commit is contained in:
Glenn Maynard
2006-04-22 00:20:19 +00:00
parent 5a0daf8e78
commit 44377e187a
+1 -1
View File
@@ -1,5 +1,5 @@
AC_DEFUN([SM_VIDEO], [
AC_ARG_WITH(ffmpeg, AC_HELP_STRING([--without-ffmpeg], [Disable ffmpeg support]), with_ffmpeg=no, with_ffmpeg=yes)
AC_ARG_WITH(ffmpeg, AC_HELP_STRING([--without-ffmpeg], [Disable ffmpeg support]), with_ffmpeg=$withval, with_ffmpeg=yes)
if test "$with_ffmpeg" = "yes"; then
AC_SEARCH_LIBS(avcodec_init, [avcodec], have_libavcodec=yes, have_libavcodec=no)