File: mp3.m4

package info (click to toggle)
moc 1%3A2.6.0~svn-r3005-1
  • links: PTS, VCS
  • area: main
  • in suites: bullseye
  • size: 2,656 kB
  • sloc: ansic: 31,749; sh: 929; cpp: 487; makefile: 240
file content (19 lines) | stat: -rw-r--r-- 491 bytes parent folder | download | duplicates (7)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
dnl libmad (mp3)

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

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
		want_mp3="yes"
		DECODER_PLUGINS="$DECODER_PLUGINS mp3"
	fi
fi

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