1 AC_DEFUN([MOONLIGHT_CHECK_CODECS],
3 dnl Do we know of a way to detect when the GCC ABI breaks?
4 dnl will it ever again? we'll hardcode this for now
5 MOONLIGHT_CODEC_GCC_ABI_VERSION="1"
6 MOONLIGHT_CODEC_OSTYPE="unknown"
7 MOONLIGHT_CODEC_ARCH="unknown"
9 CODECS_ARCH_SUPPORTED="no"
10 CODECS_OS_SUPPORTED="no"
14 MOONLIGHT_CODEC_ARCH=x86
15 CODECS_ARCH_SUPPORTED="yes"
17 x86_64-*-* | amd64-*-*)
18 MOONLIGHT_CODEC_ARCH=x64
19 CODECS_ARCH_SUPPORTED="yes"
25 MOONLIGHT_CODEC_OSTYPE=linux
26 CODECS_OS_SUPPORTED="yes"
30 if test ${MOONLIGHT_CODEC_ARCH} = unknown; then
31 AC_WARN([The codecs have not been configured to build on this architecture yet])
34 if test ${MOONLIGHT_CODEC_OSTYPE} = unknown; then
35 AC_WARN([The codecs have not been configured to build on this operating system yet])
38 if test x$CODECS_ARCH_SUPPORTED = xyes; then
39 if test x$CODECS_OS_SUPPORTED = xyes; then
40 CODECS_SUPPORTED="yes"
44 AM_CONDITIONAL(CODECS_SUPPORTED, test x$CODECS_SUPPORTED = xyes)
46 AC_SUBST(MOONLIGHT_CODEC_OSTYPE)
47 AC_SUBST(MOONLIGHT_CODEC_ARCH)
48 AC_SUBST(MOONLIGHT_CODEC_GCC_ABI_VERSION)