File: vorbis.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 (30 lines) | stat: -rw-r--r-- 887 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
20
21
22
23
24
25
26
27
28
29
30
dnl vorbis

AC_ARG_WITH(vorbis, AS_HELP_STRING([--without-vorbis],
                                   [Compile without Ogg Vorbis support]))

if test "x$with_vorbis" == "xtremor"
then
	PKG_CHECK_MODULES(OGG_VORBIS,
			  [vorbisidec >= 1.0],
			  [AC_SUBST(OGG_VORBIS_LIBS)
			   AC_SUBST(OGG_VORBIS_CFLAGS)
			   AC_DEFINE([HAVE_TREMOR], 1, [Define if you integer Vorbis.])
			   want_vorbis="yes"
			   DECODER_PLUGINS="$DECODER_PLUGINS vorbis(tremor)"],
			  [true])
else
	if test "x$with_vorbis" != "xno"
	then
		PKG_CHECK_MODULES(OGG_VORBIS,
			      [ogg >= 1.0 vorbis >= 1.0 vorbisfile >= 1.0],
			      [AC_SUBST(OGG_VORBIS_LIBS)
			       AC_SUBST(OGG_VORBIS_CFLAGS)
			       want_vorbis="yes"
			       DECODER_PLUGINS="$DECODER_PLUGINS vorbis"],
			      [true])
	fi
fi

AM_CONDITIONAL([BUILD_vorbis], [test "$want_vorbis"])
AC_CONFIG_FILES([decoder_plugins/vorbis/Makefile])