File: mp3.m4

package info (click to toggle)
moc 1%3A2.5.0~alpha4%2Bsvn20120224-1
  • links: PTS
  • area: main
  • in suites: wheezy
  • size: 2,188 kB
  • sloc: ansic: 30,787; cpp: 527; sh: 386; makefile: 274
file content (34 lines) | stat: -rw-r--r-- 916 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
dnl libmad (mp3)

AC_ARG_WITH(mp3, AS_HELP_STRING([--without-mp3],
                                [Compile without mp3 support (libmad)]))

COMPILE_RCC=no
if test "x$with_mp3" != "xno"
then
	AC_CHECK_LIB(mad, mad_stream_init, [
		AC_CHECK_HEADER([mad.h], ,)])

	if test "$ac_cv_lib_mad_mad_stream_init" = "yes" -a "$HAVE_ID3TAG" = "yes"
	then
		dnl librcc
		AC_ARG_WITH(rcc, AS_HELP_STRING([--without-rcc],
		                                [Compile without LIBRCC support]))
		if test "x$with_rcc" != "xno"
		then
			AC_CHECK_HEADERS([librcc.h],
					 [AC_DEFINE([HAVE_RCC], 1, [Define if you have librcc.h])
					 AC_CHECK_LIB(rcc, rccInit,
						      [RCC_LIBS="-lrcc"
						       AC_SUBST([RCC_LIBS])
						       COMPILE_RCC=yes])
					 ])
		fi

		want_mp3="yes"
		DECODER_PLUGINS="$DECODER_PLUGINS mp3"
	fi
fi

AM_CONDITIONAL([BUILD_mp3], [test "$want_mp3"])
AC_CONFIG_FILES([decoder_plugins/mp3/Makefile])