3 dnl initialize autoconf
4 dnl when going to/from release please set the nano (fourth number) right !
5 dnl releases only do Wall, cvs and prerelease does Werror too
6 AC_INIT(GStreamer Bad Plug-ins, 0.10.8.1,
7 http://bugzilla.gnome.org/enter_bug.cgi?product=GStreamer,
12 dnl initialize automake
15 dnl define PACKAGE_VERSION_* variables
18 dnl check if this is a release version
19 AS_NANO(GST_CVS="no", GST_CVS="yes")
21 dnl can autoconf find the source ?
22 AC_CONFIG_SRCDIR([docs/plugins/gst-plugins-bad-plugins-docs.sgml])
24 dnl define the output header for config
25 AM_CONFIG_HEADER([config.h])
27 dnl AM_MAINTAINER_MODE only provides the option to configure to enable it
30 dnl sets host_* variables
33 dnl our libraries and install dirs use major.minor as a version
34 GST_MAJORMINOR=$GST_PLUGINS_BAD_VERSION_MAJOR.$GST_PLUGINS_BAD_VERSION_MINOR
35 dnl we override it here if we need to for the release candidate of new series
37 AC_SUBST(GST_MAJORMINOR)
39 dnl FIXME: this macro doesn't actually work;
40 dnl the generated libtool script has no support for the listed tags.
41 dnl So this needs to be fixed first if we want to use this
42 dnl AS_LIBTOOL_TAGS([CXX])
47 dnl *** required versions of GStreamer stuff ***
51 dnl *** autotools stuff ****
53 dnl allow for different autotools
54 AS_AUTOTOOLS_ALTERNATE
56 dnl Add parameters for aclocal
57 AC_SUBST(ACLOCAL_AMFLAGS, "-I m4 -I common/m4")
60 dnl the version check needs to stay here because autopoint greps for it
61 AM_GNU_GETTEXT_VERSION([0.11.5])
62 AM_GNU_GETTEXT([external])
63 AG_GST_GETTEXT([gst-plugins-bad-$GST_MAJORMINOR])
65 dnl *** check for arguments to configure ***
74 AG_GST_ARG_WITH_PKG_CONFIG_PATH
75 AG_GST_ARG_WITH_PACKAGE_NAME
76 AG_GST_ARG_WITH_PACKAGE_ORIGIN
78 AG_GST_ARG_WITH_PLUGINS
80 AG_GST_ARG_ENABLE_EXTERNAL
82 AG_GST_ARG_ENABLE_EXPERIMENTAL
84 dnl *** checks for platform ***
86 dnl * hardware/architecture *
88 dnl common/m4/gst-arch.m4
92 dnl Determine endianness
95 dnl *** checks for programs ***
100 dnl determine c++ compiler
102 dnl determine if c++ is available on this system
103 AC_CHECK_PROG(HAVE_CXX, $CXX, yes, no)
107 dnl check if the compiler supports '-c' and '-o' options
110 dnl check if the compiler supports do while(0) macros
111 AG_GST_CHECK_DOWHILE_MACROS
113 AC_PATH_PROG(VALGRIND_PATH, valgrind, no)
114 AM_CONDITIONAL(HAVE_VALGRIND, test ! "x$VALGRIND_PATH" = "xno")
116 dnl check for documentation tools
118 AS_PATH_PYTHON([2.1])
119 AG_GST_PLUGIN_DOCS([1.3],[2.1])
121 dnl *** checks for libraries ***
123 dnl check for libm, for sin() etc.
127 dnl *** checks for header files ***
129 AC_CHECK_HEADERS([unistd.h], HAVE_UNISTD_H=yes)
130 AM_CONDITIONAL(HAVE_UNISTD_H, test "x$HAVE_UNISTD_H" = "xyes")
132 if test "x$HAVE_UNISTD_H" != "xyes"; then
133 GST_PLUGINS_SELECTED=`echo $GST_PLUGINS_SELECTED | $SED -e s/festival//`
139 dnl *** checks for types/defines ***
141 dnl Check for FIONREAD ioctl declaration
145 dnl *** checks for structures ***
147 dnl *** checks for compiler characteristics ***
148 dnl check if we have GCC inline-asm
149 AS_GCC_INLINE_ASSEMBLY([HAVE_GCC_ASM=yes], [HAVE_GCC_ASM=no])
150 if test x$HAVE_GCC_ASM = xyes ; then
151 AC_DEFINE(HAVE_GCC_ASM, 1,
152 [Define if compiler supports gcc inline assembly])
154 AM_CONDITIONAL(HAVE_GCC_ASM, test "x$HAVE_GCC_ASM" = "xyes")
156 dnl *** checks for library functions ***
158 dnl *** checks for dependency libraries ***
161 AG_GST_GLIB_CHECK([2.6])
163 dnl liboil is required
164 PKG_CHECK_MODULES(LIBOIL, liboil-0.3 >= 0.3.8, HAVE_LIBOIL=yes, HAVE_LIBOIL=no)
165 if test "x$HAVE_LIBOIL" != "xyes"; then
166 AC_ERROR([liboil-0.3.8 or later is required])
169 dnl checks for gstreamer
170 dnl uninstalled is selected preferentially -- see pkg-config(1)
171 AG_GST_CHECK_GST($GST_MAJORMINOR, [$GST_REQ], yes)
172 AG_GST_CHECK_GST_BASE($GST_MAJORMINOR, [$GST_REQ], yes)
173 AG_GST_CHECK_GST_GDP($GST_MAJORMINOR, [$GST_REQ], yes)
174 AG_GST_CHECK_GST_CHECK($GST_MAJORMINOR, [$GST_REQ], no)
175 AG_GST_CHECK_GST_CONTROLLER($GST_MAJORMINOR, [$GST_REQ], yes)
176 AG_GST_CHECK_GST_PLUGINS_BASE($GST_MAJORMINOR, [$GSTPB_REQ], yes)
177 AM_CONDITIONAL(HAVE_GST_CHECK, test "x$HAVE_GST_CHECK" = "xyes")
179 GSTPB_PLUGINS_DIR=`$PKG_CONFIG gstreamer-plugins-base-$GST_MAJORMINOR --variable pluginsdir`
180 AC_SUBST(GSTPB_PLUGINS_DIR)
181 AC_MSG_NOTICE(Using GStreamer Base Plugins in $GSTPB_PLUGINS_DIR)
183 dnl Check for documentation xrefs
184 GLIB_PREFIX="`$PKG_CONFIG --variable=prefix glib-2.0`"
185 GST_PREFIX="`$PKG_CONFIG --variable=prefix gstreamer-$GST_MAJORMINOR`"
186 GSTPB_PREFIX="`$PKG_CONFIG --variable=prefix gstreamer-plugins-base-$GST_MAJORMINOR`"
187 AC_SUBST(GLIB_PREFIX)
189 AC_SUBST(GSTPB_PREFIX)
191 dnl GTK is optional and used in examples
193 PKG_CHECK_MODULES(GTK2, gtk+-2.0 >= 2.2.0, HAVE_GTK_22=yes, HAVE_GTK_22=no)
194 if test "x$HAVE_GTK_22" = "xyes"; then
196 GTK_VERSION=`$PKG_CONFIG --variable=gtk_binary_version gtk+-2.0`
197 AC_SUBST(GTK_VERSION)
198 GTK_PREFIX=`$PKG_CONFIG --variable=prefix gdk-pixbuf-2.0`
199 AC_SUBST(GTK_BASE_DIR)
200 GDK_PIXBUF_LIBDIR=`$PKG_CONFIG --variable=libdir gdk-pixbuf-2.0`
201 GDK_PIXBUF_PREFIXDIR=`$PKG_CONFIG --variable=prefix gdk-pixbuf-2.0`
202 AC_SUBST(GTK_BASE_DIR)
204 PKG_CHECK_MODULES(GTK2, gtk+-2.0, HAVE_GTK_20=yes, HAVE_GTK_20=no)
206 if test "x$HAVE_GTK_20" = "xyes"; then
209 GTK_CFLAGS=$GTK2_CFLAGS
214 AM_CONDITIONAL(HAVE_GTK, test "x$HAVE_GTK" = "xyes")
216 dnl libglade is optional and only used in examples
218 PKG_CHECK_MODULES(GLADE, libglade-2.0 >= 2.6.0, HAVE_GLADE=yes, HAVE_GLADE=no)
220 AC_SUBST(GLADE_CFLAGS)
222 AM_CONDITIONAL(HAVE_GLADE, test "x$HAVE_GLADE" = "xyes")
224 dnl set license and copyright notice
226 AC_DEFINE_UNQUOTED(GST_LICENSE, "$GST_LICENSE", [GStreamer license])
227 AC_SUBST(GST_LICENSE)
229 dnl set location of plugin directory
232 dnl define an ERROR_CFLAGS Makefile variable
233 AG_GST_SET_ERROR_CFLAGS($GST_CVS)
235 dnl define an ERROR_CXXFLAGS Makefile variable
236 AG_GST_SET_ERROR_CXXFLAGS($GST_CVS)
238 dnl define correct level for debugging messages
239 AG_GST_SET_LEVEL_DEFAULT($GST_CVS)
241 dnl *** plug-ins to include ***
243 dnl these are all the gst plug-ins, compilable without additional libs
244 AG_GST_CHECK_PLUGIN(aiffparse)
245 AG_GST_CHECK_PLUGIN(app)
246 AG_GST_CHECK_PLUGIN(bayer)
247 AG_GST_CHECK_PLUGIN(cdxaparse)
248 AG_GST_CHECK_PLUGIN(dccp)
249 AG_GST_CHECK_PLUGIN(deinterlace)
250 AG_GST_CHECK_PLUGIN(deinterlace2)
251 AG_GST_CHECK_PLUGIN(dvdspu)
252 AG_GST_CHECK_PLUGIN(festival)
253 AG_GST_CHECK_PLUGIN(filter)
254 AG_GST_CHECK_PLUGIN(flacparse)
255 AG_GST_CHECK_PLUGIN(flacparse)
256 AG_GST_CHECK_PLUGIN(flv)
257 AG_GST_CHECK_PLUGIN(freeze)
258 AG_GST_CHECK_PLUGIN(h264parse)
259 AG_GST_CHECK_PLUGIN(librfb)
260 AG_GST_CHECK_PLUGIN(modplug)
261 AG_GST_CHECK_PLUGIN(mpegdemux)
262 AG_GST_CHECK_PLUGIN(mpegtsparse)
263 AG_GST_CHECK_PLUGIN(mpegtsmux)
264 AG_GST_CHECK_PLUGIN(mpeg4videoparse)
265 AG_GST_CHECK_PLUGIN(mpegvideoparse)
266 AG_GST_CHECK_PLUGIN(mve)
267 AG_GST_CHECK_PLUGIN(nsf)
268 AG_GST_CHECK_PLUGIN(nuvdemux)
269 AG_GST_CHECK_PLUGIN(pcapparse)
270 AG_GST_CHECK_PLUGIN(rawparse)
271 AG_GST_CHECK_PLUGIN(real)
272 AG_GST_CHECK_PLUGIN(rtpmanager)
273 AG_GST_CHECK_PLUGIN(scaletempo)
274 AG_GST_CHECK_PLUGIN(sdp)
275 AG_GST_CHECK_PLUGIN(selector)
276 AG_GST_CHECK_PLUGIN(speed)
277 AG_GST_CHECK_PLUGIN(speexresample)
278 AG_GST_CHECK_PLUGIN(subenc)
279 AG_GST_CHECK_PLUGIN(stereo)
280 AG_GST_CHECK_PLUGIN(tta)
281 AG_GST_CHECK_PLUGIN(videosignal)
282 AG_GST_CHECK_PLUGIN(vmnc)
283 AG_GST_CHECK_PLUGIN(y4m)
285 dnl *** plug-ins to exclude ***
287 dnl see if we can build C++ plug-ins
288 if test "x$HAVE_CXX" != "xyes"; then
289 AC_MSG_WARN([Not compiling plug-ins requiring C++ compiler])
290 AG_GST_DISABLE_PLUGIN(modplug)
293 dnl real plugin only works on i386 and x86_64 for the time being.
294 if test "x$HAVE_CPU_I386" != "xyes" && test "x$HAVE_CPU_X86_64" != "xyes"; then
295 AC_MSG_WARN([Not building real plugin, only works on 32bit and 64bit x86 platforms])
296 AG_GST_DISABLE_PLUGIN(real)
299 dnl disable experimental plug-ins
300 if test "x$BUILD_EXPERIMENTAL" != "xyes"; then
301 AG_GST_DISABLE_PLUGIN(deinterlace2)
304 dnl disable gst plugins we might not be able to build on this
305 dnl platform: librfb (ugly but minimally invasive)
306 dnl FIXME: maybe move to sys, or make work with winsock2
307 AC_CHECK_HEADERS([sys/socket.h], HAVE_SYS_SOCKET_H=yes)
308 AC_CHECK_HEADERS([winsock2.h], HAVE_WINSOCK2_H=yes)
310 dnl needed for festival
311 AM_CONDITIONAL(HAVE_WINSOCK2_H, test "x$HAVE_WINSOCK2_H" = "xyes")
313 if test "x$HAVE_SYS_SOCKET_H" != "xyes"; then
314 AG_GST_DISABLE_PLUGIN(librfb)
317 dnl *** sys plug-ins ***
319 dnl check for QuickTime
320 translit(dnm, m, l) AM_CONDITIONAL(USE_QUICKTIME, true)
321 AG_GST_CHECK_FEATURE(QUICKTIME, [QuickTime wrapper], qtwrapper, [
322 AC_CHECK_HEADER(QuickTime/Movies.h, HAVE_QUICKTIME="yes", HAVE_QUICKTIME="no")
325 dnl check for Video CD
326 translit(dnm, m, l) AM_CONDITIONAL(USE_VCD, true)
327 AG_GST_CHECK_FEATURE(VCD, [Video CD], vcdsrc, [
328 AC_CHECK_HEADER(linux/cdrom.h, HAVE_VCD="yes", HAVE_VCD="no")
331 dnl *** ext plug-ins ***
332 dnl keep this list sorted alphabetically !
334 if test "x$BUILD_EXTERNAL" = "xyes"; then
337 translit(dnm, m, l) AM_CONDITIONAL(USE_ALSA, true)
338 AG_GST_CHECK_FEATURE(ALSA, [alsa plug-ins], gstalsa, [
339 PKG_CHECK_MODULES(ALSA, alsa >= 0.9.1, [
341 AC_SUBST(ALSA_CFLAGS)
344 AM_PATH_ALSA(0.9.1, HAVE_ALSA="yes", HAVE_ALSA="no")
349 translit(dnm, m, l) AM_CONDITIONAL(USE_AMRWB, true)
350 AG_GST_CHECK_FEATURE(AMRWB, [amrwb library], amrwb, [
351 AG_GST_CHECK_LIBHEADER(AMRWB, amrwb,
355 AC_SUBST(AMRWB_LIBS))
359 translit(dnm, m, l) AM_CONDITIONAL(USE_APEXSINK, true)
360 AG_GST_CHECK_FEATURE(APEXSINK, [AirPort Express Wireless sink], apexsink, [
363 # The big search for OpenSSL
364 # copied from openssh's configure.ac
366 [ --with-ssl-dir=PATH Specify path to OpenSSL installation ],
368 if test "x$withval" != "xno" ; then
374 AC_SEARCH_LIBS(socket, [socket])
375 AC_SEARCH_LIBS(gethostbyname, [nsl])
378 saved_LDFLAGS="$LDFLAGS"
379 saved_CPPFLAGS="$CPPFLAGS"
380 if test "x$prefix" != "xNONE" ; then
381 tryssldir="$tryssldir $prefix"
383 AC_CACHE_CHECK([for OpenSSL directory], ac_cv_openssldir, [
384 for ssldir in $tryssldir "" /usr/local/openssl /usr/lib/openssl /usr/local/ssl /usr/lib/ssl /usr/local /usr/athena /usr/pkg /opt /opt/openssl ; do
385 CPPFLAGS="$saved_CPPFLAGS"
386 LDFLAGS="$saved_LDFLAGS"
387 LIBS="$saved_LIBS -lssl -lcrypto"
389 # Skip directories if they don't exist
390 if test ! -z "$ssldir" -a ! -d "$ssldir" ; then
393 if test ! -z "$ssldir" -a "x$ssldir" != "x/usr"; then
394 # Try to use $ssldir/lib if it exists, otherwise
396 if test -d "$ssldir/lib" ; then
397 LDFLAGS="-L$ssldir/lib $saved_LDFLAGS"
398 if test ! -z "$need_dash_r" ; then
399 LDFLAGS="-R$ssldir/lib $LDFLAGS"
402 LDFLAGS="-L$ssldir $saved_LDFLAGS"
403 if test ! -z "$need_dash_r" ; then
404 LDFLAGS="-R$ssldir $LDFLAGS"
407 # Try to use $ssldir/include if it exists, otherwise
409 if test -d "$ssldir/include" ; then
410 CPPFLAGS="-I$ssldir/include $saved_CPPFLAGS"
412 CPPFLAGS="-I$ssldir $saved_CPPFLAGS"
416 # Basic test to check for compatible version and correct linking
417 # *does not* test for RSA - that comes later.
421 #include <openssl/rand.h>
425 memset(a, 0, sizeof(a));
426 RAND_add(a, sizeof(a), sizeof(a));
427 return(RAND_status() <= 0);
436 if test ! -z "$found_crypto" ; then
441 if test -z "$found_crypto" ; then
444 if test -z "$ssldir" ; then
448 ac_cv_openssldir=$ssldir
450 if (test ! -z "$ac_cv_openssldir" && test "x$ac_cv_openssldir" != "x(system)") ;
452 dnl Need to recover ssldir - test above runs in subshell
453 ssldir=$ac_cv_openssldir
454 if test ! -z "$ssldir" -a "x$ssldir" != "x/usr"; then
455 # Try to use $ssldir/lib if it exists, otherwise
457 if test -d "$ssldir/lib" ; then
458 APEXSINK_LIBS="-L$ssldir/lib $LDFLAGS"
459 if test ! -z "$need_dash_r" ; then
460 APEXSINK_LIBS="-R$ssldir/lib $LDFLAGS"
463 APEXSINK_LDFLAGS="-L$ssldir $LDFLAGS"
464 if test ! -z "$need_dash_r" ; then
465 APEXSINK_LIBS="-R$ssldir $LDFLAGS"
468 # Try to use $ssldir/include if it exists, otherwise
470 if test -d "$ssldir/include" ; then
471 APEXSINK_CFLAGS="-I$ssldir/include $CPPFLAGS"
473 APEXSINK_CFLAGS="-I$ssldir $CPPFLAGS"
477 APEXSINK_LIBS="$APEXSINK_LIBS $LIBS"
478 AC_SUBST(APEXSINK_LIBS)
479 AC_SUBST(APEXSINK_CFLAGS)
480 CPPFLAGS="$saved_CPPFLAGS"
481 LDFLAGS="$saved_LDFLAGS"
486 translit(dnm, m, l) AM_CONDITIONAL(USE_BZ2, true)
487 AG_GST_CHECK_FEATURE(BZ2, [bz2 library], bz2, [
488 AG_GST_CHECK_LIBHEADER(BZ2, bz2, BZ2_bzCompress, ,bzlib.h, BZ2_LIBS="-lbz2")
493 #translit(dnm, m, l) AM_CONDITIONAL(USE_CAIRO, true)
494 #AG_GST_CHECK_FEATURE(CAIRO, [cairo plug-in], cairo, [
495 # PKG_CHECK_MODULES(CAIRO, cairo >= 1.0 glitz-glx, HAVE_CAIRO=yes, [
499 # AC_SUBST(CAIRO_CFLAGS)
500 # AC_SUBST(CAIRO_LIBS)
504 translit(dnm, m, l) AM_CONDITIONAL(USE_CDAUDIO, true)
505 AG_GST_CHECK_FEATURE(CDAUDIO, [cdaudio], cdaudio, [
506 AG_GST_CHECK_CONFIGPROG(CDAUDIO, libcdaudio-config)
507 AC_SUBST(CDAUDIO_CFLAGS)
508 AC_SUBST(CDAUDIO_LIBS)
512 translit(dnm, m, l) AM_CONDITIONAL(USE_CELT, true)
513 AG_GST_CHECK_FEATURE(CELT, [celt], celt, [
514 PKG_CHECK_MODULES(CELT, celt >= 0.4.0, [
519 AC_SUBST(CELT_CFLAGS)
524 translit(dnm, m, l) AM_CONDITIONAL(USE_DC1394, true)
525 AG_GST_CHECK_FEATURE(DC1394, [libdc1394], dc1394, [
526 PKG_CHECK_MODULES(LIBDC1394, libdc1394-2 >= 2.0.0, [
527 if test -z "`pkg-config --modversion libdc1394-2 | grep 2.0.0-rc`"; then
537 AC_SUBST(LIBDC1394_CFLAGS)
538 AC_SUBST(LIBDC1394_LIBS)
542 dnl **** DirectFB ****
543 translit(dnm, m, l) AM_CONDITIONAL(USE_DIRECTFB, true)
544 AG_GST_CHECK_FEATURE(DIRECTFB, [directfb], dfbvideosink , [
545 PKG_CHECK_MODULES(DIRECTFB, directfb >= 0.9.24, HAVE_DIRECTFB="yes", [
552 translit(dnm, m, l) AM_CONDITIONAL(USE_DIRAC, true)
553 AG_GST_CHECK_FEATURE(DIRAC, [dirac], dirac, [
554 PKG_CHECK_MODULES(DIRAC, dirac >= 0.10, HAVE_DIRAC="yes", [
561 translit(dnm, m, l) AM_CONDITIONAL(USE_DTS, true)
562 AG_GST_CHECK_FEATURE(DTS, [dts library], dtsdec, [
564 AG_GST_CHECK_LIBHEADER(DTS, dts_pic, dts_init, -lm, dts.h,
565 DTS_LIBS="-ldts_pic -lm", HAVE_DTS="no")
566 if test $HAVE_DTS = "no"; then
567 AG_GST_CHECK_LIBHEADER(DTS, dca, dca_init, -lm, dts.h,
568 DTS_LIBS="-ldca -lm")
574 translit(dnm, m, l) AM_CONDITIONAL(USE_DIVX, true)
575 AG_GST_CHECK_FEATURE(DIVX, [divx plugins], divx, [
577 AC_CHECK_HEADER(encore2.h, , [
578 AC_MSG_WARN([Divx4linux encore headers not found])
581 if [ test x$HAVE_DIVX = xyes ]; then
582 AC_MSG_CHECKING([Checking for valid divx4linux encore version])
585 #if ENCORE_VERSION != 20021024
586 #error Wrong version of divx encore libraries
596 AC_MSG_WARN([Wrong version of divx4linux installed])
599 if [ test x$HAVE_DIVX = xyes ]; then
600 AC_CHECK_HEADER(decore.h, , [
601 AC_MSG_WARN([Divx4linux decoder headers not found])
605 if [ test x$HAVE_DIVX = xyes ]; then
606 AC_MSG_CHECKING([Checking for valid divx4linux decore version])
609 #if DECORE_VERSION != 20021112
610 #error Wrong version of divx decore libraries
620 AC_MSG_WARN([Wrong version of divx4linux installed])
624 if test x$HAVE_DIVX = xyes; then
625 AC_CHECK_LIB(divxencore, encore, , [
626 AC_MSG_WARN([Divx4linux encore libs not found])
630 if test x$HAVE_DIVX = xyes; then
631 AC_CHECK_LIB(divxdecore, decore, , [
632 AC_MSG_WARN([Divx4linux decore libs not found])
636 if test x$HAVE_DIVX = xyes; then
637 DIVXENC_LIBS="-ldivxencore -lm"
638 DIVXDEC_LIBS="-ldivxdecore -lm"
639 AC_SUBST(DIVXENC_LIBS)
640 AC_SUBST(DIVXDEC_LIBS)
644 dnl *** dvdnav for resindvd ***
645 USE_DVDNAV=$BUILD_EXPERIMENTAL
646 translit(dnm, m, l) AM_CONDITIONAL(USE_DVDNAV, true)
647 AG_GST_CHECK_FEATURE(DVDNAV, [dvdnav library], resindvd, [
648 translit(dnm, m, l) AC_SUBST(DVDNAV_LIBS)
649 translit(dnm, m, l) AC_SUBST(DVDNAV_CFLAGS)
650 AG_GST_CHECK_CONFIGPROG(DVDNAV, dvdnav-config)
651 if test x"$HAVE_DVDNAV" = x"yes"; then
653 DVDNAV_VERSION=`dvdnav-config --version|head -n 1|sed 's/^.*) //'|sed 's/ (.*)//'`
654 DVDNAV_MAJOR=`echo $DVDNAV_VERSION | cut -d. -f1 | sed s/[a-zA-Z\-].*//g`
655 DVDNAV_MINOR=`echo $DVDNAV_VERSION | cut -d. -f2 | sed s/[a-zA-Z\-].*//g`
656 DVDNAV_MICRO=`echo $DVDNAV_VERSION | cut -d. -f3 | sed s/[a-zA-Z\-].*//g`
657 if [[ "$DVDNAV_MAJOR" -eq "0" ]] && \
658 [[ "$DVDNAV_MINOR" -lt "1" ]]; then
659 AC_MSG_WARN([libdvdnav >= 0.1.7 is required, you have $DVDNAV_VERSION])
661 elif [[ "$DVDNAV_MAJOR" -eq "0" ]] && \
662 [[ "$DVDNAV_MINOR" -eq "1" ]] && \
663 [[ "$DVDNAV_MICRO" -lt "7" ]]; then
664 AC_MSG_WARN([libdvdnav >= 0.1.7 is required, you have $DVDNAV_VERSION])
666 elif [[ "$DVDNAV_MAJOR" -eq "0" ]]; then
667 AC_DEFINE(DVDNAV_OLD, 1, [Define if an old libdvdnav is used])
670 AS_SCRUB_INCLUDE(DVDNAV_CFLAGS)
674 translit(dnm, m, l) AM_CONDITIONAL(USE_METADATA, true)
675 AG_GST_CHECK_FEATURE(METADATA, [METADATA muxer and demuxer], metadata, [
677 PKG_CHECK_MODULES(EXIF, libexif >= 0.6.16, HAVE_EXIF="yes", [
680 PKG_CHECK_MODULES(IPTC, libiptcdata >= 1.0.2, HAVE_IPTC="yes", [
683 PKG_CHECK_MODULES(XMP, exempi-2.0, HAVE_XMP="yes", [
686 PKG_CHECK_MODULES(XMP_1_99_5, exempi-2.0 >= 1.99.5, XMP_CFLAGS="-DXMP_1_99_5 $XMP_CFLAGS", AC_MSG_RESULT(no))
687 if test x$HAVE_EXIF = xyes; then
688 METADATA_CFLAGS="-DHAVE_EXIF $EXIF_CFLAGS $METADATA_CFLAGS"
689 METADATA_LIBS="$EXIF_LIBS $METADATA_LIBS -lm"
692 if test x$HAVE_IPTC = xyes; then
693 METADATA_CFLAGS="-DHAVE_IPTC $IPTC_CFLAGS $METADATA_CFLAGS"
694 METADATA_LIBS="$IPTC_LIBS $METADATA_LIBS"
697 if test x$HAVE_XMP = xyes; then
698 METADATA_CFLAGS="-DHAVE_XMP $XMP_CFLAGS $METADATA_CFLAGS"
699 METADATA_LIBS="$XMP_LIBS $METADATA_LIBS"
702 if test x$HAVE_METADATA = xno; then
703 AC_MSG_WARN(no of metadata libraries (exif, iptc or xmp) found)
705 dnl metadata plugin will parse whole chunks anyway
707 AC_SUBST(METADATA_CFLAGS)
708 AC_SUBST(METADATA_LIBS)
711 dnl **** Free AAC Encoder (FAAC) ****
712 translit(dnm, m, l) AM_CONDITIONAL(USE_FAAC, true)
713 AG_GST_CHECK_FEATURE(FAAC, [AAC encoder plug-in], faac, [
714 AG_GST_CHECK_LIBHEADER(FAAC, faac, faacEncOpen, -lm, faac.h,
715 FAAC_LIBS="-lfaac -lm")
716 AS_SCRUB_INCLUDE(FAAC_CFLAGS)
720 dnl **** Free AAC Decoder (FAAD) ****
721 translit(dnm, m, l) AM_CONDITIONAL(USE_FAAD, true)
722 AG_GST_CHECK_FEATURE(FAAD, [AAC decoder plug-in], faad, [
724 AG_GST_CHECK_LIBHEADER(FAAD, faad, faacDecOpen, -lm, faad.h,
725 FAAD_LIBS="-lfaad -lm", HAVE_FAAD="no")
726 if test $HAVE_FAAD = "no"; then
727 AG_GST_CHECK_LIBHEADER(FAAD, faad, NeAACDecOpen, -lm, neaacdec.h,
728 [ FAAD_LIBS="-lfaad -lm"
729 AC_DEFINE(FAAD_IS_NEAAC, 1, [Define if AAC is using new api prefix])
733 if test $HAVE_FAAD = "yes"; then
734 AC_MSG_CHECKING([Checking for FAAD >= 2.0])
735 AC_TRY_COMPILE([#include <faad.h>], [
736 #if !defined(FAAD2_VERSION) || !defined(FAAD_FMT_DOUBLE)
739 /* Release candidate of 2.0 is not good enough for us. This field
740 * was added only in 2.0 final and does not exist in 2.0-RC3 */
741 faacDecConfiguration conf; conf.dontUpSampleImplicitSBR = 1;
751 AS_SCRUB_INCLUDE(FAAD_CFLAGS)
753 AC_SUBST(FAAD_IS_NEAAC)
757 translit(dnm, m, l) AM_CONDITIONAL(USE_FBDEV, true)
758 AG_GST_CHECK_FEATURE(FBDEV, [linux framebuffer], fbdevsink, [
759 if test "x$HAVE_FBDEV" != "xyes"; then
760 AC_CHECK_HEADER([linux/fb.h], HAVE_FBDEV=yes, HAVE_FBDEV=no)
765 translit(dnm, m, l) AM_CONDITIONAL(USE_GSM, true)
766 AG_GST_CHECK_FEATURE(GSM, [GSM library], gsmenc gsmdec, [
767 AG_GST_CHECK_LIBHEADER(GSM, gsm, gsm_create, , gsm.h, GSM_LIBS="-lgsm")
768 if test $HAVE_GSM != "yes"; then
769 AG_GST_CHECK_LIBHEADER(GSM, gsm, gsm_create, , gsm/gsm.h, GSM_LIBS="-lgsm")
770 if test $HAVE_GSM = "yes"; then
771 AC_DEFINE(GSM_HEADER_IN_SUBDIR, 1, [Define if GSM header in gsm/ subdir])
778 dnl AM_PATH_IVORBIS only takes two options
779 translit(dnm, m, l) AM_CONDITIONAL(USE_IVORBIS, true)
780 AG_GST_CHECK_FEATURE(IVORBIS, [integer vorbis plug-in], ivorbisdec, [
783 AC_CHECK_LIB(vorbisidec, vorbis_block_init,
784 [IVORBIS_LIBS=-lvorbisidec
788 IVORBIS_CFLAGS="-D_ARM_ASSEM_ $IVORBIS_CFLAGS"
792 AC_SUBST(IVORBIS_LIBS)
793 AC_SUBST(IVORBIS_CFLAGS)
797 translit(dnm, m, l) AM_CONDITIONAL(USE_JACK, true)
798 AG_GST_CHECK_FEATURE(JACK, Jack, jack, [
799 PKG_CHECK_MODULES(JACK, jack >= 0.99.10, HAVE_JACK="yes", HAVE_JACK="no")
800 AC_SUBST(JACK_CFLAGS)
805 translit(dnm, m, l) AM_CONDITIONAL(USE_JP2K, true)
806 AG_GST_CHECK_FEATURE(JP2K, [jp2k], jp2kdec, [
807 AG_GST_CHECK_LIBHEADER(JP2K, jasper, jas_stream_fopen, , jasper/jasper.h,
808 JP2K_LIBS="-ljasper")
813 translit(dnm, m, l) AM_CONDITIONAL(USE_LADSPA, true)
814 AG_GST_CHECK_FEATURE(LADSPA, [ladspa], ladspa, [
815 AC_CHECK_HEADER(ladspa.h, HAVE_LADSPA="yes", HAVE_LADSPA="no")
816 save_cflags="$CFLAGS"
817 CFLAGS="$CFLAGS -D_GNU_SOURCE"
819 AC_CHECK_LIB(dl, dlopen,
822 CFLAGS="$save_cflags"
824 AC_SUBST(LADSPA_LIBS)
827 translit(dnm, m, l) AM_CONDITIONAL(USE_LIBMMS, true)
828 AG_GST_CHECK_FEATURE(LIBMMS, [mms protocol library], libmms, [
829 dnl check with pkg-config first
830 PKG_CHECK_MODULES(LIBMMS, libmms >= 0.2, HAVE_LIBMMS="yes", [
835 AC_SUBST(LIBMMS_LIBS)
837 dnl *** mjpegtools version info ***
838 dnl some may prefer older version (given quirks above)
839 dnl hm, no version info seems available within mjpegtools headers
840 dnl and API really moves along
842 PKG_CHECK_EXISTS(mjpegtools >= 1.6.1.93 mjpegtools < 1.8.0, [
845 PKG_CHECK_EXISTS(mjpegtools >= 1.8.0 mjpegtools < 1.9.0, [
848 PKG_CHECK_MODULES(MJPEG, mjpegtools >= 1.9.0, [
849 dnl logging API changed in release candidates
852 CFLAGS="$MJPEG_CFLAGS"
853 LIBS="$LIBS $MJPEG_LIBS -lmjpegutils -lm -lpthread"
854 AC_CHECK_FUNC(mjpeg_loglev_t, [
866 AC_DEFINE_UNQUOTED(GST_MJPEGTOOLS_API, $mjpegtools_api,
867 [mjpegtools API evolution])
870 translit(dnm, m, l) AM_CONDITIONAL(USE_MPEG2ENC, true)
871 AG_GST_CHECK_FEATURE(MPEG2ENC, [mpeg2enc], mpeg2enc, [
873 dnl we require a c++ compiler for this one
874 if [ test x$HAVE_CXX = xyes ]; then
875 dnl libmpeg2enc was first included in mjpegtools-1.6.2-rc3 (1.6.1.92)
876 dnl since many distros include mjpegtools specifically without mplex
877 dnl and mpeg2enc, we check for mpeg2enc on its own, too.
878 PKG_CHECK_MODULES(MPEG2ENC, mjpegtools >= 1.6.1.93, [
879 dnl HACK because mpeg2enc 1.8.0 header files have a spurious 'include config.h'
881 dnl switch over to c++ to test things
883 OLD_CPPFLAGS="$CPPFLAGS"
885 CPPFLAGS_GOOD="$CPPFLAGS $MPEG2ENC_CFLAGS"
886 CPPFLAGS="$CPPFLAGS_GOOD -I."
888 mpeg2enc_headers_ok=no
889 AC_CHECK_HEADER([mpeg2encoder.hh], [
890 MPEG2ENC_LIBS="$MPEG2ENC_LIBS -lmpeg2encpp -lm -lpthread"
892 LIBS="$LIBS $MPEG2ENC_LIBS"
893 AC_MSG_CHECKING([for valid mpeg2enc objects])
895 #include <mpeg2encoder.hh>
896 #include <mpeg2encoptions.hh>
902 MPEG2EncOptions *options = new MPEG2EncOptions ();
903 MPEG2Encoder *encoder = new MPEG2Encoder (*options);
908 dnl so far so good, let's check more things:
909 dnl mjpegtools-1.8.0 does not install the required
910 dnl mpeg2syntaxcodes.h header by default, and a new release
911 dnl is not in sight, so check for this oversight in case
912 dnl distros or folks have fixed this themselves
913 if test "$mjpegtools_api" -ge "10800"; then
914 AC_CHECK_HEADER([mpeg2syntaxcodes.h], [
915 mpeg2enc_headers_ok=yes
917 mpeg2enc_headers_ok=no
920 mpeg2enc_headers_ok=yes
922 if test "x$mpeg2enc_headers_ok" = "xyes"; then
925 CPP_FLAGS="$CPPFLAGS_GOOD"
926 AC_SUBST(MPEG2ENC_CFLAGS)
927 AC_SUBST(MPEG2ENC_LIBS)
934 CPPFLAGS="$OLD_CPPFLAGS"
943 translit(dnm, m, l) AM_CONDITIONAL(USE_MPLEX, true)
944 AG_GST_CHECK_FEATURE(MPLEX, [mplex], mplex, [
946 dnl we require a c++ compiler for this one
947 if [ test x$HAVE_CXX = xyes ]; then
948 dnl libmplex was first included in mjpegtools-1.6.2-rc4 (1.6.1.93)
949 dnl since many distros include mjpegtools specifically without mplex
950 dnl and mpeg2enc, we check for mplex on its own, too.
951 dnl libmplex < 1.9rc? has fuzzy ABI, valgrind and other problems
952 PKG_CHECK_MODULES(MPLEX, mjpegtools >= 1.9.0, [
953 dnl switch over to c++ to test things
955 OLD_CPPFLAGS="$CPPFLAGS"
956 CPPFLAGS="$CPPFLAGS $MPLEX_CFLAGS"
957 AC_CHECK_HEADER(interact.hpp, [
958 MPLEX_LIBS="$MPLEX_LIBS -lmplex2 -lm"
960 LIBS="$LIBS $MPLEX_LIBS"
961 dnl older libmplex uses off_t SegmentSize (), which leads to fuzzy ABI;
962 dnl don't want this here
963 AC_MSG_CHECKING([for valid mplex objects])
966 #include <interact.hpp>
967 #include <outputstrm.hpp>
968 #include <multiplexor.hpp>
973 class TestOutputStream : public OutputStream {
975 TestOutputStream () : OutputStream () { }
976 void Write (uint8_t *a, unsigned int b) { }
977 void NextSegment () { }
978 uint64_t SegmentSize () { }
982 MultiplexJob *job = new MultiplexJob ();
983 vector<IBitStream *> inputs;
984 job->SetupInputStreams (inputs);
985 TestOutputStream *out = new TestOutputStream ();
986 Multiplexor *mux = new Multiplexor(*job, *out, NULL);
991 AC_SUBST(MPLEX_CFLAGS)
994 ], AC_MSG_RESULT(no))
997 CPPFLAGS="$OLD_CPPFLAGS"
1003 dnl *** musepack ***
1004 translit(dnm, m, l) AM_CONDITIONAL(USE_MUSEPACK, true)
1005 AG_GST_CHECK_FEATURE(MUSEPACK, [musepackdec], musepack, [
1006 AC_CHECK_HEADER([mpc/mpcdec.h], [
1008 MUSEPACK_LIBS="-lmpcdec"
1009 AC_SUBST(MUSEPACK_LIBS)
1010 ], [AC_CHECK_HEADER([mpcdec/mpcdec.h], [
1012 MUSEPACK_LIBS="-lmpcdec"
1013 AC_DEFINE(MPC_IS_OLD_API, 1, [Define if the old MusePack API is used])
1014 AC_SUBST(MUSEPACK_LIBS)
1015 ], [HAVE_MUSEPACK="no"])])
1018 dnl *** musicbrainz ***
1019 translit(dnm, m, l) AM_CONDITIONAL(USE_MUSICBRAINZ, true)
1020 AG_GST_CHECK_FEATURE(MUSICBRAINZ, [musicbrainz tag generation], musicbrainz, [
1021 PKG_CHECK_MODULES(MUSICBRAINZ, libmusicbrainz >= 2.1.0, HAVE_MUSICBRAINZ="yes", HAVE_MUSICBRAINZ="no")
1022 AC_SUBST(MUSICBRAINZ_CFLAGS)
1023 AC_SUBST(MUSICBRAINZ_LIBS)
1027 translit(dnm, m, l) AM_CONDITIONAL(USE_MYTHTV, true)
1028 AG_GST_CHECK_FEATURE(MYTHTV, [MythTV client plugins], mythtvsrc, [
1029 PKG_CHECK_MODULES(GMYTH, gmyth >= 0.4 gmyth <= 0.7.99, HAVE_MYTHTV="yes", [
1033 AC_SUBST(GMYTH_CFLAGS)
1034 AC_SUBST(GMYTH_LIBS)
1038 translit(dnm, m, l) AM_CONDITIONAL(USE_NAS, true)
1039 AG_GST_CHECK_FEATURE(NAS, [nas plug-in], nassink, [
1042 if test "x$HAVE_X" = "xyes"; then
1043 save_cppflags=$CFLAGS
1044 CPPFLAGS="$CPPFLAGS $X_CFLAGS"
1045 AG_GST_CHECK_LIBHEADER(NAS, audio, AuOpenServer, $X_LIBS, audio/audiolib.h,
1046 NAS_LIBS="$X_LIBS -laudio" NAS_CFLAGS="$X_CFLAGS")
1047 CPPFLAGS="$save_cppflags"
1049 AC_SUBST(NAS_CFLAGS)
1054 translit(dnm, m, l) AM_CONDITIONAL(USE_NEON, true)
1055 AG_GST_CHECK_FEATURE(NEON, [neon http client plugins], neonhttpsrc, [
1056 PKG_CHECK_MODULES(NEON, neon >= 0.26.0 neon <= 0.28.99, HAVE_NEON="yes", [
1060 AC_SUBST(NEON_CFLAGS)
1065 translit(dnm, m, l) AM_CONDITIONAL(USE_OFA, true)
1066 AG_GST_CHECK_FEATURE(OFA, [ofa plugins], ofa, [
1067 PKG_CHECK_MODULES(OFA, libofa >= 0.9.3, HAVE_OFA="yes", [
1071 AC_SUBST(OFA_CFLAGS)
1075 dnl *** timidity ***
1076 translit(dnm, m, l) AM_CONDITIONAL(USE_TIMIDITY, true)
1077 AG_GST_CHECK_FEATURE(TIMIDITY, [timidity midi soft synth plugin], timidity, [
1078 PKG_CHECK_MODULES(TIMIDITY, libtimidity, [
1079 HAVE_TIMIDITY="yes",
1080 AC_MSG_CHECKING([for timidity.cfg])
1082 if test -r /etc/timidity.cfg; then
1083 timidity_cfg=/etc/timidity.cfg
1084 elif test -r /etc/timidity/timidity.cfg; then
1085 timidity_cfg=/etc/timidity/timidity.cfg
1086 elif test -r /usr/share/timidity/timidity.cfg; then
1087 timidity_cfg=/usr/share/timidity/timidity.cfg
1088 elif test -r /usr/local/share/timidity/timidity.cfg; then
1089 timidity_cfg=/usr/local/share/timidity/timidity.cfg
1091 if test "x$timidity_cfg" != "x"; then
1092 AC_MSG_RESULT($timidity_cfg)
1093 AC_DEFINE_UNQUOTED(TIMIDITY_CFG, "$timidity_cfg", [Define location of timidity.cfg])
1095 AC_MSG_RESULT([not found])
1101 AC_SUBST(TIMIDITY_CFLAGS)
1102 AC_SUBST(TIMIDITY_LIBS)
1105 dnl *** wildmidi ***
1106 translit(dnm, m, l) AM_CONDITIONAL(USE_WILDMIDI, true)
1107 AG_GST_CHECK_FEATURE(WILDMIDI, [wildmidi midi soft synth plugin], wildmidi, [
1108 AC_CHECK_HEADER([wildmidi_lib.h],HAVE_WILDMIDI=yes, HAVE_WILDMIDI=no)
1109 if test "x$HAVE_WILDMIDI" = "xyes"; then
1111 WILDMIDI_LIBS=-lWildMidi
1112 AC_MSG_NOTICE(compiling gstWildMidi)
1116 AC_MSG_WARN(no WildMidi library found (libWildMidi))
1118 AC_SUBST(WILDMIDI_CFLAGS)
1119 AC_SUBST(WILDMIDI_LIBS)
1123 translit(dnm, m, l) AM_CONDITIONAL(USE_TWOLAME, true)
1124 AG_GST_CHECK_FEATURE(TWOLAME, [twolame], twolame, [
1125 PKG_CHECK_MODULES(TWOLAME, twolame >= 0.3.0, [
1126 HAVE_TWOLAME="yes"], [
1130 AC_SUBST(TWOLAME_CFLAGS)
1131 AC_SUBST(TWOLAME_LIBS)
1135 translit(dnm, m, l) AM_CONDITIONAL(USE_SDL, true)
1136 AG_GST_CHECK_FEATURE(SDL, [SDL plug-in], sdlvideosink sdlaudiosink, [
1137 AM_PATH_SDL(, HAVE_SDL=yes, HAVE_SDL=no)
1141 translit(dnm, m, l) AM_CONDITIONAL(USE_SNDFILE, true)
1142 AG_GST_CHECK_FEATURE(SNDFILE, [sndfile plug-in], sfsrc sfsink, [
1143 PKG_CHECK_MODULES(SNDFILE, sndfile >= 1.0.16, HAVE_SNDFILE="yes", HAVE_SNDFILE="no")
1144 AC_SUBST(SNDFILE_CFLAGS)
1145 AC_SUBST(SNDFILE_LIBS)
1148 dnl *** soundtouch ***
1149 translit(dnm, m, l) AM_CONDITIONAL(USE_SOUNDTOUCH, true)
1150 AG_GST_CHECK_FEATURE(SOUNDTOUCH, [soundtouch plug-in], soundtouch, [
1151 PKG_CHECK_MODULES(SOUNDTOUCH, soundtouch-1.0,
1152 HAVE_SOUNDTOUCH=yes,
1153 [PKG_CHECK_MODULES(SOUNDTOUCH, libSoundTouch,
1154 HAVE_SOUNDTOUCH=yes,
1155 HAVE_SOUNDTOUCH=no)])
1156 AC_SUBST(SOUNDTOUCH_CFLAGS)
1157 AC_SUBST(SOUNDTOUCH_LIBS)
1158 if test "x$HAVE_CXX" != "xyes"; then
1159 USE_SOUNDTOUCH=false
1160 AC_MSG_NOTICE([Not building soundtouch plugin: no C++ compiler found])
1165 translit(dnm, m, l) AM_CONDITIONAL(USE_SPC, true)
1166 AG_GST_CHECK_FEATURE(SPC, [spc decoder], spc, [
1167 AC_CHECK_HEADER(openspc.h, [
1168 AC_CHECK_LIB(openspc, OSPC_Init, [
1169 SPC_LIBS="-lopenspc"
1181 translit(dnm, m, l) AM_CONDITIONAL(USE_SWFDEC, true)
1182 AG_GST_CHECK_FEATURE(SWFDEC, [swfdec plug-in], swfdec, [
1183 PKG_CHECK_MODULES(SWFDEC, swfdec-0.3 >= 0.3.6, HAVE_SWFDEC=yes, [
1187 AC_SUBST(SWFDEC_CFLAGS)
1188 AC_SUBST(SWFDEC_LIBS)
1192 translit(dnm, m, l) AM_CONDITIONAL(USE_THEORADEC, true)
1193 AG_GST_CHECK_FEATURE(THEORADEC, [ogg theora codec], theoraexpdec, [
1194 PKG_CHECK_MODULES(THEORADEC, theoradec, HAVE_THEORADEC="yes", [
1198 AC_SUBST(THEORADEC_LIBS)
1199 AC_SUBST(THEORADEC_CFLAGS)
1202 dnl *** x264 (MPEG-4 part 10/h.264/AVC encoder) ***
1203 translit(dnm, m, l) AM_CONDITIONAL(USE_X264, true)
1204 AG_GST_CHECK_FEATURE(X264, [x264 plug-in], x264, [
1205 AG_GST_CHECK_LIBHEADER(X264, x264, x264_nal_encode, -lm, x264.h,
1206 AC_MSG_CHECKING([for uptodate x264 API version])
1207 dnl _stdint not yet generated, so no compiling
1211 #error "x264 build too old"
1215 X264_LIBS="$LDFLAGS -lx264 -lm"
1216 X264_CFLAGS="$CFLAGS"
1218 AC_SUBST(X264_CFLAGS)
1226 translit(dnm, m, l) AM_CONDITIONAL(USE_XVID, true)
1227 AG_GST_CHECK_FEATURE(XVID, [xvid plugins], xvid, [
1229 AC_CHECK_HEADER(xvid.h, [
1232 AC_CHECK_LIB(xvidcore, xvid_encore, [
1233 AC_CHECK_LIB(xvidcore, xvid_decore, [
1234 AC_CHECK_LIB(xvidcore, xvid_global, [
1235 AC_MSG_CHECKING([for uptodate XviD API version])
1236 AC_TRY_COMPILE([#include <xvid.h>], [
1237 #if XVID_API_MAJOR(XVID_API) != 4
1238 #error "Incompatible XviD API version"
1240 ],[ AC_MSG_RESULT(yes)
1241 XVID_LIBS="-lxvidcore -lm"
1244 ], AC_MSG_RESULT(no) )
1253 translit(dnm, m, l) AM_CONDITIONAL(USE_DVB, true)
1254 AG_GST_CHECK_FEATURE(DVB, [DVB Source], dvb, [
1255 AC_MSG_CHECKING([Checking for up to date dvb installation])
1256 AC_CHECK_HEADER(linux/dvb/frontend.h, [HAVE_DVB="yes"], [HAVE_DVB="no"])
1260 translit(dnm, m, l) AM_CONDITIONAL(USE_OSS4, true)
1261 AG_GST_CHECK_FEATURE(OSS4, [Open Sound System 4], oss4, [
1262 AC_MSG_CHECKING([Checking if we can build the OSS4 elements])
1263 AC_CHECK_HEADERS([fcntl.h sys/ioctl.h sys/stat.h sys/types.h],
1264 [test -z "$OSS4_MISSING_HEADER" && HAVE_OSS4="yes"],
1265 [OSS4_MISSING_HEADER="yes";HAVE_OSS4="no"])
1269 translit(dnm, m, l) AM_CONDITIONAL(USE_WININET, true)
1270 AG_GST_CHECK_FEATURE(WININET, [Windows internet library], wininet, [
1271 AC_MSG_CHECKING([Checking for windows internet support])
1272 AC_CHECK_HEADERS([windows.h wininet.h],
1273 [HAVE_WININET="yes"], [HAVE_WININET="no"])
1277 translit(dnm, m, l) AM_CONDITIONAL(USE_ACM, true)
1278 AG_GST_CHECK_FEATURE(ACM, [Windows ACM library], acm, [
1279 AC_MSG_CHECKING([Checking for ACM support])
1280 AC_CHECK_HEADERS([windows.h msacm.h],
1281 [HAVE_ACM="yes"], [HAVE_ACM="no"])
1286 dnl not building plugins with external dependencies,
1287 dnl but we still need to set the conditionals
1289 AM_CONDITIONAL(USE_QUICKTIME, false)
1290 AM_CONDITIONAL(USE_VCD, false)
1291 AM_CONDITIONAL(USE_ALSA, false)
1292 AM_CONDITIONAL(USE_AMRWB, false)
1293 AM_CONDITIONAL(USE_APEXSINK, false)
1294 AM_CONDITIONAL(USE_BZ2, false)
1295 AM_CONDITIONAL(USE_CDAUDIO, false)
1296 AM_CONDITIONAL(USE_CELT, false)
1297 AM_CONDITIONAL(USE_DC1394, false)
1298 AM_CONDITIONAL(USE_DIRECTFB, false)
1299 AM_CONDITIONAL(USE_DTS, false)
1300 AM_CONDITIONAL(USE_DIRAC, false)
1301 AM_CONDITIONAL(USE_DIVX, false)
1302 AM_CONDITIONAL(USE_DVB, false)
1303 AM_CONDITIONAL(USE_FAAC, false)
1304 AM_CONDITIONAL(USE_FAAD, false)
1305 AM_CONDITIONAL(USE_FBDEV, false)
1306 AM_CONDITIONAL(USE_GSM, false)
1307 AM_CONDITIONAL(USE_IVORBIS, false)
1308 AM_CONDITIONAL(USE_JACK, false)
1309 AM_CONDITIONAL(USE_JP2K, false)
1310 AM_CONDITIONAL(USE_LADSPA, false)
1311 AM_CONDITIONAL(USE_LIBMMS, false)
1312 AM_CONDITIONAL(USE_METADATA, false)
1313 AM_CONDITIONAL(USE_MPEG2ENC, false)
1314 AM_CONDITIONAL(USE_MPLEX, false)
1315 AM_CONDITIONAL(USE_MUSEPACK, false)
1316 AM_CONDITIONAL(USE_MUSICBRAINZ, false)
1317 AM_CONDITIONAL(USE_MYTHTV, false)
1318 AM_CONDITIONAL(USE_NAS, false)
1319 AM_CONDITIONAL(USE_NEON, false)
1320 AM_CONDITIONAL(USE_OFA, false)
1321 AM_CONDITIONAL(USE_OSS4, false)
1322 AM_CONDITIONAL(USE_TWOLAME, false)
1323 AM_CONDITIONAL(USE_SDL, false)
1324 AM_CONDITIONAL(USE_SNDFILE, false)
1325 AM_CONDITIONAL(USE_SOUNDTOUCH, false)
1326 AM_CONDITIONAL(USE_SPC, false)
1327 AM_CONDITIONAL(USE_SWFDEC, false)
1328 AM_CONDITIONAL(USE_THEORADEC, false)
1329 AM_CONDITIONAL(USE_TIMIDITY, false)
1330 AM_CONDITIONAL(USE_X264, false)
1331 AM_CONDITIONAL(USE_XVID, false)
1332 AM_CONDITIONAL(USE_WILDMIDI, false)
1333 AM_CONDITIONAL(USE_WININET, false)
1334 AM_CONDITIONAL(USE_ACM, false)
1336 fi dnl of EXT plugins
1338 dnl *** finalize CFLAGS, LDFLAGS, LIBS
1341 dnl GST_OPTION_CFLAGS: common flags for profiling, debugging, errors, ...
1342 dnl GST_*: flags shared by built objects to link against GStreamer
1343 dnl GST_ALL_LDFLAGS: linker flags shared by all
1344 dnl GST_LIB_LDFLAGS: additional linker flags for all libaries
1345 dnl GST_LT_LDFLAGS: library versioning of our libraries
1346 dnl GST_PLUGIN_LDFLAGS: flags to be used for all plugins
1348 dnl GST_OPTION_CFLAGS
1349 if test "x$USE_DEBUG" = xyes; then
1352 AC_SUBST(PROFILE_CFLAGS)
1354 if test "x$PACKAGE_VERSION_NANO" = "x1"; then
1355 dnl Define _only_ during CVS (not pre-releases or releases)
1356 DEPRECATED_CFLAGS="-DGST_DISABLE_DEPRECATED"
1358 DEPRECATED_CFLAGS=""
1360 AC_SUBST(DEPRECATED_CFLAGS)
1362 dnl every flag in GST_OPTION_CFLAGS and GST_OPTION_CXXFLAGS can be overridden
1363 dnl at make time with e.g. make ERROR_CFLAGS=""
1364 GST_OPTION_CFLAGS="\$(ERROR_CFLAGS) \$(DEBUG_CFLAGS) \$(PROFILE_CFLAGS) \$(GCOV_CFLAGS) \$(OPT_CFLAGS) \$(DEPRECATED_CFLAGS)"
1365 GST_OPTION_CXXFLAGS="\$(ERROR_CXXFLAGS) \$(DEBUG_CFLAGS) \$(PROFILE_CFLAGS) \$(GCOV_CFLAGS) \$(OPT_CFLAGS) \$(DEPRECATED_CFLAGS)"
1366 AC_SUBST(GST_OPTION_CFLAGS)
1367 AC_SUBST(GST_OPTION_CXXFLAGS)
1369 dnl FIXME: do we want to rename to GST_ALL_* ?
1370 dnl prefer internal headers to already installed ones
1371 dnl also add builddir include for enumtypes and marshal
1372 dnl add GST_OPTION_CFLAGS, but overridable
1373 GST_CFLAGS="-I\$(top_srcdir)/gst-libs -I\$(top_builddir)/gst-libs $GST_CFLAGS \$(GST_OPTION_CFLAGS)"
1374 GST_CXXFLAGS="-I\$(top_srcdir)/gst-libs -I\$(top_builddir)/gst-libs $GST_CXXFLAGS \$(GST_OPTION_CXXFLAGS)"
1375 AC_SUBST(GST_CFLAGS)
1376 AC_SUBST(GST_CXXFLAGS)
1379 dnl LDFLAGS really should only contain flags, not libs - they get added before
1380 dnl whatevertarget_LIBS and -L flags here affect the rest of the linking
1381 GST_ALL_LDFLAGS="-no-undefined"
1382 AC_SUBST(GST_ALL_LDFLAGS)
1384 dnl this really should only contain flags, not libs - they get added before
1385 dnl whatevertarget_LIBS and -L flags here affect the rest of the linking
1386 GST_PLUGIN_LDFLAGS="-module -avoid-version -export-symbols-regex '^[_]*gst_plugin_desc\$\$' $GST_ALL_LDFLAGS"
1387 AC_SUBST(GST_PLUGIN_LDFLAGS)
1389 dnl *** output files ***
1396 gst-plugins-bad.spec
1398 gst/aiffparse/Makefile
1401 gst/cdxaparse/Makefile
1403 gst/deinterlace/Makefile
1404 gst/deinterlace2/Makefile
1406 gst/festival/Makefile
1408 gst/flacparse/Makefile
1411 gst/h264parse/Makefile
1413 gst/modplug/Makefile
1414 gst/modplug/libmodplug/Makefile
1415 gst/mpegdemux/Makefile
1416 gst/mpegtsparse/Makefile
1417 gst/mpegtsmux/Makefile
1418 gst/mpegtsmux/tsmux/Makefile
1419 gst/mpeg4videoparse/Makefile
1420 gst/mpegvideoparse/Makefile
1423 gst/nuvdemux/Makefile
1424 gst/pcapparse/Makefile
1425 gst/rawparse/Makefile
1426 gst/rtpmanager/Makefile
1427 gst/scaletempo/Makefile
1429 gst/selector/Makefile
1431 gst/speexresample/Makefile
1435 gst/videosignal/Makefile
1440 gst-libs/gst/Makefile
1441 gst-libs/gst/app/Makefile
1442 gst-libs/gst/dshow/Makefile
1444 sys/dshowdecwrapper/Makefile
1446 sys/dshowsrcwrapper/Makefile
1447 sys/dshowvideosink/Makefile
1451 sys/qtwrapper/Makefile
1453 sys/wininet/Makefile
1455 sys/winscreencap/Makefile
1457 examples/app/Makefile
1458 examples/directfb/Makefile
1459 examples/scaletempo/Makefile
1460 examples/switch/Makefile
1462 ext/alsaspdif/Makefile
1463 ext/apexsink/Makefile
1465 ext/cdaudio/Makefile
1469 ext/directfb/Makefile
1472 ext/metadata/Makefile
1476 ext/ivorbis/Makefile
1483 ext/mpeg2enc/Makefile
1485 ext/musepack/Makefile
1486 ext/musicbrainz/Makefile
1490 ext/resindvd/Makefile
1491 ext/twolame/Makefile
1493 ext/sndfile/Makefile
1494 ext/soundtouch/Makefile
1498 ext/timidity/Makefile
1503 docs/plugins/Makefile
1504 docs/version.entities
1509 tests/check/Makefile
1510 tests/icles/Makefile
1511 win32/common/config.h
1515 AG_GST_OUTPUT_PLUGINS