Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
View | Details | Raw Unified | Return to bug 148787 | Differences between
and this patch

Collapse All | Expand All

(-)autoconf.orig/m4/video.m4 (-36 lines)
Lines 23-64 Link Here
23
		AC_SEARCH_LIBS(avcodec_init, [avcodec], have_libavcodec=yes,  have_libavcodec=no)
23
		AC_SEARCH_LIBS(avcodec_init, [avcodec], have_libavcodec=yes,  have_libavcodec=no)
24
		AC_SEARCH_LIBS(guess_format, [avformat], have_libavformat=yes,  have_libavformat=no)
24
		AC_SEARCH_LIBS(guess_format, [avformat], have_libavformat=yes,  have_libavformat=no)
25
	fi
25
	fi
26
27
if test "$have_libavcodec" = "yes"; then
28
  AC_MSG_CHECKING([for matching libavcodec headers and libs])
29
  AC_RUN_IFELSE([AC_LANG_SOURCE([[
30
	#include <ffmpeg/avcodec.h>
31
	int main()
32
	{
33
		return ( LIBAVCODEC_VERSION_INT == avcodec_version() &&
34
			 LIBAVCODEC_BUILD == avcodec_build() ) ? 0:1;
35
	}
36
	]])],[],[have_libavcodec=no],[])
37
  AC_MSG_RESULT($have_libavcodec)
38
  if test "$have_libavcodec" = "yes"; then
39
    AC_MSG_CHECKING([libavcodec revision])
40
    AC_RUN_IFELSE([AC_LANG_SOURCE([[
41
	#include <ffmpeg/avcodec.h>
42
	int main()
43
	{
44
		return ( LIBAVCODEC_VERSION_INT == 0x332800 ) ? 0:1;
45
	}
46
	]])],[],[have_libavcodec=no],[])
47
    AC_MSG_RESULT($have_libavcodec)
48
  fi
49
fi
50
51
if test "$have_libavformat" = "yes"; then
52
  AC_MSG_CHECKING([libavformat revision])
53
  AC_RUN_IFELSE([AC_LANG_SOURCE([[
54
	#include <ffmpeg/avformat.h>
55
	int main()
56
	{
57
		return ( LIBAVFORMAT_VERSION_INT == 0x330B00 )? 0:1;
58
	}
59
	]])],[],[have_libavformat=no],[])
60
  AC_MSG_RESULT($have_libavformat)
61
fi
62
fi
26
fi
63
27
64
have_ffmpeg=no
28
have_ffmpeg=no

Return to bug 148787