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.9,
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(flv)
255 AG_GST_CHECK_PLUGIN(freeze)
256 AG_GST_CHECK_PLUGIN(h264parse)
257 AG_GST_CHECK_PLUGIN(librfb)
258 AG_GST_CHECK_PLUGIN(modplug)
259 AG_GST_CHECK_PLUGIN(mpegdemux)
260 AG_GST_CHECK_PLUGIN(mpegtsmux)
261 AG_GST_CHECK_PLUGIN(mpeg4videoparse)
262 AG_GST_CHECK_PLUGIN(mpegvideoparse)
263 AG_GST_CHECK_PLUGIN(mve)
264 AG_GST_CHECK_PLUGIN(nsf)
265 AG_GST_CHECK_PLUGIN(nuvdemux)
266 AG_GST_CHECK_PLUGIN(pcapparse)
267 AG_GST_CHECK_PLUGIN(rawparse)
268 AG_GST_CHECK_PLUGIN(real)
269 AG_GST_CHECK_PLUGIN(rtpmanager)
270 AG_GST_CHECK_PLUGIN(scaletempo)
271 AG_GST_CHECK_PLUGIN(sdp)
272 AG_GST_CHECK_PLUGIN(selector)
273 AG_GST_CHECK_PLUGIN(speed)
274 AG_GST_CHECK_PLUGIN(speexresample)
275 AG_GST_CHECK_PLUGIN(subenc)
276 AG_GST_CHECK_PLUGIN(stereo)
277 AG_GST_CHECK_PLUGIN(tta)
278 AG_GST_CHECK_PLUGIN(videosignal)
279 AG_GST_CHECK_PLUGIN(vmnc)
280 AG_GST_CHECK_PLUGIN(y4m)
282 dnl *** plug-ins to exclude ***
284 dnl see if we can build C++ plug-ins
285 if test "x$HAVE_CXX" != "xyes"; then
286 AC_MSG_WARN([Not compiling plug-ins requiring C++ compiler])
287 AG_GST_DISABLE_PLUGIN(modplug)
290 dnl real plugin only works on i386 and x86_64 for the time being.
291 if test "x$HAVE_CPU_I386" != "xyes" && test "x$HAVE_CPU_X86_64" != "xyes"; then
292 AC_MSG_WARN([Not building real plugin, only works on 32bit and 64bit x86 platforms])
293 AG_GST_DISABLE_PLUGIN(real)
296 dnl disable experimental plug-ins
297 if test "x$BUILD_EXPERIMENTAL" != "xyes"; then
298 AG_GST_DISABLE_PLUGIN(deinterlace2)
301 dnl disable gst plugins we might not be able to build on this
302 dnl platform: librfb (ugly but minimally invasive)
303 dnl FIXME: maybe move to sys, or make work with winsock2
304 AC_CHECK_HEADERS([sys/socket.h], HAVE_SYS_SOCKET_H=yes)
305 AC_CHECK_HEADERS([winsock2.h], HAVE_WINSOCK2_H=yes)
307 dnl needed for festival
308 AM_CONDITIONAL(HAVE_WINSOCK2_H, test "x$HAVE_WINSOCK2_H" = "xyes")
310 if test "x$HAVE_SYS_SOCKET_H" != "xyes"; then
311 AG_GST_DISABLE_PLUGIN(librfb)
314 dnl *** sys plug-ins ***
316 dnl check for QuickTime
317 translit(dnm, m, l) AM_CONDITIONAL(USE_QUICKTIME, true)
318 AG_GST_CHECK_FEATURE(QUICKTIME, [QuickTime wrapper], qtwrapper, [
319 AC_CHECK_HEADER(QuickTime/Movies.h, HAVE_QUICKTIME="yes", HAVE_QUICKTIME="no")
322 dnl check for Video CD
323 translit(dnm, m, l) AM_CONDITIONAL(USE_VCD, true)
324 AG_GST_CHECK_FEATURE(VCD, [Video CD], vcdsrc, [
325 AC_CHECK_HEADER(linux/cdrom.h, HAVE_VCD="yes", HAVE_VCD="no")
328 dnl *** ext plug-ins ***
329 dnl keep this list sorted alphabetically !
331 if test "x$BUILD_EXTERNAL" = "xyes"; then
334 translit(dnm, m, l) AM_CONDITIONAL(USE_ALSA, true)
335 AG_GST_CHECK_FEATURE(ALSA, [alsa plug-ins], gstalsa, [
336 PKG_CHECK_MODULES(ALSA, alsa >= 0.9.1, [
338 AC_SUBST(ALSA_CFLAGS)
341 AM_PATH_ALSA(0.9.1, HAVE_ALSA="yes", HAVE_ALSA="no")
346 translit(dnm, m, l) AM_CONDITIONAL(USE_AMRWB, true)
347 AG_GST_CHECK_FEATURE(AMRWB, [amrwb library], amrwb, [
348 AG_GST_CHECK_LIBHEADER(AMRWB, amrwb,
352 AC_SUBST(AMRWB_LIBS))
356 translit(dnm, m, l) AM_CONDITIONAL(USE_APEXSINK, true)
357 AG_GST_CHECK_FEATURE(APEXSINK, [AirPort Express Wireless sink], apexsink, [
360 # The big search for OpenSSL
361 # copied from openssh's configure.ac
363 [ --with-ssl-dir=PATH Specify path to OpenSSL installation ],
365 if test "x$withval" != "xno" ; then
371 AC_SEARCH_LIBS(socket, [socket])
372 AC_SEARCH_LIBS(gethostbyname, [nsl])
375 saved_LDFLAGS="$LDFLAGS"
376 saved_CPPFLAGS="$CPPFLAGS"
377 if test "x$prefix" != "xNONE" ; then
378 tryssldir="$tryssldir $prefix"
380 AC_CACHE_CHECK([for OpenSSL directory], ac_cv_openssldir, [
381 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
382 CPPFLAGS="$saved_CPPFLAGS"
383 LDFLAGS="$saved_LDFLAGS"
384 LIBS="$saved_LIBS -lssl -lcrypto"
386 # Skip directories if they don't exist
387 if test ! -z "$ssldir" -a ! -d "$ssldir" ; then
390 if test ! -z "$ssldir" -a "x$ssldir" != "x/usr"; then
391 # Try to use $ssldir/lib if it exists, otherwise
393 if test -d "$ssldir/lib" ; then
394 LDFLAGS="-L$ssldir/lib $saved_LDFLAGS"
395 if test ! -z "$need_dash_r" ; then
396 LDFLAGS="-R$ssldir/lib $LDFLAGS"
399 LDFLAGS="-L$ssldir $saved_LDFLAGS"
400 if test ! -z "$need_dash_r" ; then
401 LDFLAGS="-R$ssldir $LDFLAGS"
404 # Try to use $ssldir/include if it exists, otherwise
406 if test -d "$ssldir/include" ; then
407 CPPFLAGS="-I$ssldir/include $saved_CPPFLAGS"
409 CPPFLAGS="-I$ssldir $saved_CPPFLAGS"
413 # Basic test to check for compatible version and correct linking
414 # *does not* test for RSA - that comes later.
418 #include <openssl/rand.h>
422 memset(a, 0, sizeof(a));
423 RAND_add(a, sizeof(a), sizeof(a));
424 return(RAND_status() <= 0);
433 if test ! -z "$found_crypto" ; then
438 if test -z "$found_crypto" ; then
441 if test -z "$ssldir" ; then
445 ac_cv_openssldir=$ssldir
447 if (test ! -z "$ac_cv_openssldir" && test "x$ac_cv_openssldir" != "x(system)") ;
449 dnl Need to recover ssldir - test above runs in subshell
450 ssldir=$ac_cv_openssldir
451 if test ! -z "$ssldir" -a "x$ssldir" != "x/usr"; then
452 # Try to use $ssldir/lib if it exists, otherwise
454 if test -d "$ssldir/lib" ; then
455 APEXSINK_LIBS="-L$ssldir/lib $LDFLAGS"
456 if test ! -z "$need_dash_r" ; then
457 APEXSINK_LIBS="-R$ssldir/lib $LDFLAGS"
460 APEXSINK_LDFLAGS="-L$ssldir $LDFLAGS"
461 if test ! -z "$need_dash_r" ; then
462 APEXSINK_LIBS="-R$ssldir $LDFLAGS"
465 # Try to use $ssldir/include if it exists, otherwise
467 if test -d "$ssldir/include" ; then
468 APEXSINK_CFLAGS="-I$ssldir/include $CPPFLAGS"
470 APEXSINK_CFLAGS="-I$ssldir $CPPFLAGS"
474 APEXSINK_LIBS="$APEXSINK_LIBS $LIBS"
475 AC_SUBST(APEXSINK_LIBS)
476 AC_SUBST(APEXSINK_CFLAGS)
477 CPPFLAGS="$saved_CPPFLAGS"
478 LDFLAGS="$saved_LDFLAGS"
483 translit(dnm, m, l) AM_CONDITIONAL(USE_BZ2, true)
484 AG_GST_CHECK_FEATURE(BZ2, [bz2 library], bz2, [
485 AG_GST_CHECK_LIBHEADER(BZ2, bz2, BZ2_bzCompress, ,bzlib.h, BZ2_LIBS="-lbz2")
490 #translit(dnm, m, l) AM_CONDITIONAL(USE_CAIRO, true)
491 #AG_GST_CHECK_FEATURE(CAIRO, [cairo plug-in], cairo, [
492 # PKG_CHECK_MODULES(CAIRO, cairo >= 1.0 glitz-glx, HAVE_CAIRO=yes, [
496 # AC_SUBST(CAIRO_CFLAGS)
497 # AC_SUBST(CAIRO_LIBS)
501 translit(dnm, m, l) AM_CONDITIONAL(USE_CDAUDIO, true)
502 AG_GST_CHECK_FEATURE(CDAUDIO, [cdaudio], cdaudio, [
503 AG_GST_CHECK_CONFIGPROG(CDAUDIO, libcdaudio-config)
504 AC_SUBST(CDAUDIO_CFLAGS)
505 AC_SUBST(CDAUDIO_LIBS)
509 translit(dnm, m, l) AM_CONDITIONAL(USE_CELT, true)
510 AG_GST_CHECK_FEATURE(CELT, [celt], celt, [
511 PKG_CHECK_MODULES(CELT, celt >= 0.4.0, [
516 AC_SUBST(CELT_CFLAGS)
521 translit(dnm, m, l) AM_CONDITIONAL(USE_DC1394, true)
522 AG_GST_CHECK_FEATURE(DC1394, [libdc1394], dc1394, [
523 PKG_CHECK_MODULES(LIBDC1394, libdc1394-2 >= 2.0.0, [
524 if test -z "`pkg-config --modversion libdc1394-2 | grep 2.0.0-rc`"; then
534 AC_SUBST(LIBDC1394_CFLAGS)
535 AC_SUBST(LIBDC1394_LIBS)
539 dnl **** DirectFB ****
540 translit(dnm, m, l) AM_CONDITIONAL(USE_DIRECTFB, true)
541 AG_GST_CHECK_FEATURE(DIRECTFB, [directfb], dfbvideosink , [
542 PKG_CHECK_MODULES(DIRECTFB, directfb >= 0.9.24, HAVE_DIRECTFB="yes", [
549 translit(dnm, m, l) AM_CONDITIONAL(USE_DIRAC, true)
550 AG_GST_CHECK_FEATURE(DIRAC, [dirac], dirac, [
551 PKG_CHECK_MODULES(DIRAC, dirac >= 0.10, HAVE_DIRAC="yes", [
558 translit(dnm, m, l) AM_CONDITIONAL(USE_DTS, true)
559 AG_GST_CHECK_FEATURE(DTS, [dts library], dtsdec, [
561 AG_GST_CHECK_LIBHEADER(DTS, dts_pic, dts_init, -lm, dts.h,
562 DTS_LIBS="-ldts_pic -lm", HAVE_DTS="no")
563 if test $HAVE_DTS = "no"; then
564 AG_GST_CHECK_LIBHEADER(DTS, dca, dca_init, -lm, dts.h,
565 DTS_LIBS="-ldca -lm")
571 translit(dnm, m, l) AM_CONDITIONAL(USE_DIVX, true)
572 AG_GST_CHECK_FEATURE(DIVX, [divx plugins], divx, [
574 AC_CHECK_HEADER(encore2.h, , [
575 AC_MSG_WARN([Divx4linux encore headers not found])
578 if [ test x$HAVE_DIVX = xyes ]; then
579 AC_MSG_CHECKING([Checking for valid divx4linux encore version])
582 #if ENCORE_VERSION != 20021024
583 #error Wrong version of divx encore libraries
593 AC_MSG_WARN([Wrong version of divx4linux installed])
596 if [ test x$HAVE_DIVX = xyes ]; then
597 AC_CHECK_HEADER(decore.h, , [
598 AC_MSG_WARN([Divx4linux decoder headers not found])
602 if [ test x$HAVE_DIVX = xyes ]; then
603 AC_MSG_CHECKING([Checking for valid divx4linux decore version])
606 #if DECORE_VERSION != 20021112
607 #error Wrong version of divx decore libraries
617 AC_MSG_WARN([Wrong version of divx4linux installed])
621 if test x$HAVE_DIVX = xyes; then
622 AC_CHECK_LIB(divxencore, encore, , [
623 AC_MSG_WARN([Divx4linux encore libs not found])
627 if test x$HAVE_DIVX = xyes; then
628 AC_CHECK_LIB(divxdecore, decore, , [
629 AC_MSG_WARN([Divx4linux decore libs not found])
633 if test x$HAVE_DIVX = xyes; then
634 DIVXENC_LIBS="-ldivxencore -lm"
635 DIVXDEC_LIBS="-ldivxdecore -lm"
636 AC_SUBST(DIVXENC_LIBS)
637 AC_SUBST(DIVXDEC_LIBS)
641 dnl *** dvdnav for resindvd ***
642 USE_DVDNAV=$BUILD_EXPERIMENTAL
643 translit(dnm, m, l) AM_CONDITIONAL(USE_DVDNAV, true)
644 AG_GST_CHECK_FEATURE(DVDNAV, [dvdnav library], resindvd, [
645 translit(dnm, m, l) AC_SUBST(DVDNAV_LIBS)
646 translit(dnm, m, l) AC_SUBST(DVDNAV_CFLAGS)
647 AG_GST_CHECK_CONFIGPROG(DVDNAV, dvdnav-config)
648 if test x"$HAVE_DVDNAV" = x"yes"; then
650 DVDNAV_VERSION=`dvdnav-config --version|head -n 1|sed 's/^.*) //'|sed 's/ (.*)//'`
651 DVDNAV_MAJOR=`echo $DVDNAV_VERSION | cut -d. -f1 | sed s/[a-zA-Z\-].*//g`
652 DVDNAV_MINOR=`echo $DVDNAV_VERSION | cut -d. -f2 | sed s/[a-zA-Z\-].*//g`
653 DVDNAV_MICRO=`echo $DVDNAV_VERSION | cut -d. -f3 | sed s/[a-zA-Z\-].*//g`
654 if [[ "$DVDNAV_MAJOR" -eq "0" ]] && \
655 [[ "$DVDNAV_MINOR" -lt "1" ]]; then
656 AC_MSG_WARN([libdvdnav >= 0.1.7 is required, you have $DVDNAV_VERSION])
658 elif [[ "$DVDNAV_MAJOR" -eq "0" ]] && \
659 [[ "$DVDNAV_MINOR" -eq "1" ]] && \
660 [[ "$DVDNAV_MICRO" -lt "7" ]]; then
661 AC_MSG_WARN([libdvdnav >= 0.1.7 is required, you have $DVDNAV_VERSION])
663 elif [[ "$DVDNAV_MAJOR" -eq "0" ]]; then
664 AC_DEFINE(DVDNAV_OLD, 1, [Define if an old libdvdnav is used])
667 AS_SCRUB_INCLUDE(DVDNAV_CFLAGS)
671 translit(dnm, m, l) AM_CONDITIONAL(USE_METADATA, true)
672 AG_GST_CHECK_FEATURE(METADATA, [METADATA muxer and demuxer], metadata, [
674 PKG_CHECK_MODULES(EXIF, libexif >= 0.6.16, HAVE_EXIF="yes", [
677 PKG_CHECK_MODULES(IPTC, libiptcdata >= 1.0.2, HAVE_IPTC="yes", [
680 PKG_CHECK_MODULES(XMP, exempi-2.0, HAVE_XMP="yes", [
683 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))
684 if test x$HAVE_EXIF = xyes; then
685 METADATA_CFLAGS="-DHAVE_EXIF $EXIF_CFLAGS $METADATA_CFLAGS"
686 METADATA_LIBS="$EXIF_LIBS $METADATA_LIBS -lm"
689 if test x$HAVE_IPTC = xyes; then
690 METADATA_CFLAGS="-DHAVE_IPTC $IPTC_CFLAGS $METADATA_CFLAGS"
691 METADATA_LIBS="$IPTC_LIBS $METADATA_LIBS"
694 if test x$HAVE_XMP = xyes; then
695 METADATA_CFLAGS="-DHAVE_XMP $XMP_CFLAGS $METADATA_CFLAGS"
696 METADATA_LIBS="$XMP_LIBS $METADATA_LIBS"
699 if test x$HAVE_METADATA = xno; then
700 AC_MSG_WARN(no of metadata libraries (exif, iptc or xmp) found)
702 dnl metadata plugin will parse whole chunks anyway
704 AC_SUBST(METADATA_CFLAGS)
705 AC_SUBST(METADATA_LIBS)
708 dnl **** Free AAC Encoder (FAAC) ****
709 translit(dnm, m, l) AM_CONDITIONAL(USE_FAAC, true)
710 AG_GST_CHECK_FEATURE(FAAC, [AAC encoder plug-in], faac, [
711 AG_GST_CHECK_LIBHEADER(FAAC, faac, faacEncOpen, -lm, faac.h,
712 FAAC_LIBS="-lfaac -lm")
713 AS_SCRUB_INCLUDE(FAAC_CFLAGS)
717 dnl **** Free AAC Decoder (FAAD) ****
718 translit(dnm, m, l) AM_CONDITIONAL(USE_FAAD, true)
719 AG_GST_CHECK_FEATURE(FAAD, [AAC decoder plug-in], faad, [
721 AG_GST_CHECK_LIBHEADER(FAAD, faad, faacDecOpen, -lm, faad.h,
722 FAAD_LIBS="-lfaad -lm", HAVE_FAAD="no")
723 if test $HAVE_FAAD = "no"; then
724 AG_GST_CHECK_LIBHEADER(FAAD, faad, NeAACDecOpen, -lm, neaacdec.h,
725 [ FAAD_LIBS="-lfaad -lm"
726 AC_DEFINE(FAAD_IS_NEAAC, 1, [Define if AAC is using new api prefix])
730 if test $HAVE_FAAD = "yes"; then
731 AC_MSG_CHECKING([Checking for FAAD >= 2.0])
732 AC_TRY_COMPILE([#include <faad.h>], [
733 #if !defined(FAAD2_VERSION) || !defined(FAAD_FMT_DOUBLE)
736 /* Release candidate of 2.0 is not good enough for us. This field
737 * was added only in 2.0 final and does not exist in 2.0-RC3 */
738 faacDecConfiguration conf; conf.dontUpSampleImplicitSBR = 1;
748 AS_SCRUB_INCLUDE(FAAD_CFLAGS)
750 AC_SUBST(FAAD_IS_NEAAC)
754 translit(dnm, m, l) AM_CONDITIONAL(USE_FBDEV, true)
755 AG_GST_CHECK_FEATURE(FBDEV, [linux framebuffer], fbdevsink, [
756 if test "x$HAVE_FBDEV" != "xyes"; then
757 AC_CHECK_HEADER([linux/fb.h], HAVE_FBDEV=yes, HAVE_FBDEV=no)
762 translit(dnm, m, l) AM_CONDITIONAL(USE_GSM, true)
763 AG_GST_CHECK_FEATURE(GSM, [GSM library], gsmenc gsmdec, [
764 AG_GST_CHECK_LIBHEADER(GSM, gsm, gsm_create, , gsm.h, GSM_LIBS="-lgsm")
765 if test $HAVE_GSM != "yes"; then
766 AG_GST_CHECK_LIBHEADER(GSM, gsm, gsm_create, , gsm/gsm.h, GSM_LIBS="-lgsm")
767 if test $HAVE_GSM = "yes"; then
768 AC_DEFINE(GSM_HEADER_IN_SUBDIR, 1, [Define if GSM header in gsm/ subdir])
775 dnl AM_PATH_IVORBIS only takes two options
776 translit(dnm, m, l) AM_CONDITIONAL(USE_IVORBIS, true)
777 AG_GST_CHECK_FEATURE(IVORBIS, [integer vorbis plug-in], ivorbisdec, [
780 AC_CHECK_LIB(vorbisidec, vorbis_block_init,
781 [IVORBIS_LIBS=-lvorbisidec
785 IVORBIS_CFLAGS="-D_ARM_ASSEM_ $IVORBIS_CFLAGS"
789 AC_SUBST(IVORBIS_LIBS)
790 AC_SUBST(IVORBIS_CFLAGS)
794 translit(dnm, m, l) AM_CONDITIONAL(USE_JACK, true)
795 AG_GST_CHECK_FEATURE(JACK, Jack, jack, [
796 PKG_CHECK_MODULES(JACK, jack >= 0.99.10, HAVE_JACK="yes", HAVE_JACK="no")
797 AC_SUBST(JACK_CFLAGS)
802 translit(dnm, m, l) AM_CONDITIONAL(USE_JP2K, true)
803 AG_GST_CHECK_FEATURE(JP2K, [jp2k], jp2kdec, [
804 AG_GST_CHECK_LIBHEADER(JP2K, jasper, jas_stream_fopen, , jasper/jasper.h,
805 JP2K_LIBS="-ljasper")
810 translit(dnm, m, l) AM_CONDITIONAL(USE_LADSPA, true)
811 AG_GST_CHECK_FEATURE(LADSPA, [ladspa], ladspa, [
812 AC_CHECK_HEADER(ladspa.h, HAVE_LADSPA="yes", HAVE_LADSPA="no")
813 save_cflags="$CFLAGS"
814 CFLAGS="$CFLAGS -D_GNU_SOURCE"
816 AC_CHECK_LIB(dl, dlopen,
819 CFLAGS="$save_cflags"
821 AC_SUBST(LADSPA_LIBS)
824 translit(dnm, m, l) AM_CONDITIONAL(USE_LIBMMS, true)
825 AG_GST_CHECK_FEATURE(LIBMMS, [mms protocol library], libmms, [
826 dnl check with pkg-config first
827 PKG_CHECK_MODULES(LIBMMS, libmms >= 0.2, HAVE_LIBMMS="yes", [
832 AC_SUBST(LIBMMS_LIBS)
834 dnl *** mjpegtools version info ***
835 dnl some may prefer older version (given quirks above)
836 dnl hm, no version info seems available within mjpegtools headers
837 dnl and API really moves along
839 PKG_CHECK_EXISTS(mjpegtools >= 1.6.1.93 mjpegtools < 1.8.0, [
842 PKG_CHECK_EXISTS(mjpegtools >= 1.8.0 mjpegtools < 1.9.0, [
845 PKG_CHECK_MODULES(MJPEG, mjpegtools >= 1.9.0, [
846 dnl logging API changed in release candidates
849 CFLAGS="$MJPEG_CFLAGS"
850 LIBS="$LIBS $MJPEG_LIBS -lmjpegutils -lm -lpthread"
851 AC_CHECK_FUNC(mjpeg_loglev_t, [
863 AC_DEFINE_UNQUOTED(GST_MJPEGTOOLS_API, $mjpegtools_api,
864 [mjpegtools API evolution])
867 translit(dnm, m, l) AM_CONDITIONAL(USE_MPEG2ENC, true)
868 AG_GST_CHECK_FEATURE(MPEG2ENC, [mpeg2enc], mpeg2enc, [
870 dnl we require a c++ compiler for this one
871 if [ test x$HAVE_CXX = xyes ]; then
872 dnl libmpeg2enc was first included in mjpegtools-1.6.2-rc3 (1.6.1.92)
873 dnl since many distros include mjpegtools specifically without mplex
874 dnl and mpeg2enc, we check for mpeg2enc on its own, too.
875 PKG_CHECK_MODULES(MPEG2ENC, mjpegtools >= 1.6.1.93, [
876 dnl HACK because mpeg2enc 1.8.0 header files have a spurious 'include config.h'
878 dnl switch over to c++ to test things
880 OLD_CPPFLAGS="$CPPFLAGS"
882 CPPFLAGS_GOOD="$CPPFLAGS $MPEG2ENC_CFLAGS"
883 CPPFLAGS="$CPPFLAGS_GOOD -I."
885 mpeg2enc_headers_ok=no
886 AC_CHECK_HEADER([mpeg2encoder.hh], [
887 MPEG2ENC_LIBS="$MPEG2ENC_LIBS -lmpeg2encpp -lm -lpthread"
889 LIBS="$LIBS $MPEG2ENC_LIBS"
890 AC_MSG_CHECKING([for valid mpeg2enc objects])
892 #include <mpeg2encoder.hh>
893 #include <mpeg2encoptions.hh>
899 MPEG2EncOptions *options = new MPEG2EncOptions ();
900 MPEG2Encoder *encoder = new MPEG2Encoder (*options);
905 dnl so far so good, let's check more things:
906 dnl mjpegtools-1.8.0 does not install the required
907 dnl mpeg2syntaxcodes.h header by default, and a new release
908 dnl is not in sight, so check for this oversight in case
909 dnl distros or folks have fixed this themselves
910 if test "$mjpegtools_api" -ge "10800"; then
911 AC_CHECK_HEADER([mpeg2syntaxcodes.h], [
912 mpeg2enc_headers_ok=yes
914 mpeg2enc_headers_ok=no
917 mpeg2enc_headers_ok=yes
919 if test "x$mpeg2enc_headers_ok" = "xyes"; then
922 CPP_FLAGS="$CPPFLAGS_GOOD"
923 AC_SUBST(MPEG2ENC_CFLAGS)
924 AC_SUBST(MPEG2ENC_LIBS)
931 CPPFLAGS="$OLD_CPPFLAGS"
940 translit(dnm, m, l) AM_CONDITIONAL(USE_MPLEX, true)
941 AG_GST_CHECK_FEATURE(MPLEX, [mplex], mplex, [
943 dnl we require a c++ compiler for this one
944 if [ test x$HAVE_CXX = xyes ]; then
945 dnl libmplex was first included in mjpegtools-1.6.2-rc4 (1.6.1.93)
946 dnl since many distros include mjpegtools specifically without mplex
947 dnl and mpeg2enc, we check for mplex on its own, too.
948 dnl libmplex < 1.9rc? has fuzzy ABI, valgrind and other problems
949 PKG_CHECK_MODULES(MPLEX, mjpegtools >= 1.9.0, [
950 dnl switch over to c++ to test things
952 OLD_CPPFLAGS="$CPPFLAGS"
953 CPPFLAGS="$CPPFLAGS $MPLEX_CFLAGS"
954 AC_CHECK_HEADER(interact.hpp, [
955 MPLEX_LIBS="$MPLEX_LIBS -lmplex2 -lm"
957 LIBS="$LIBS $MPLEX_LIBS"
958 dnl older libmplex uses off_t SegmentSize (), which leads to fuzzy ABI;
959 dnl don't want this here
960 AC_MSG_CHECKING([for valid mplex objects])
963 #include <interact.hpp>
964 #include <outputstrm.hpp>
965 #include <multiplexor.hpp>
970 class TestOutputStream : public OutputStream {
972 TestOutputStream () : OutputStream () { }
973 void Write (uint8_t *a, unsigned int b) { }
974 void NextSegment () { }
975 uint64_t SegmentSize () { }
979 MultiplexJob *job = new MultiplexJob ();
980 vector<IBitStream *> inputs;
981 job->SetupInputStreams (inputs);
982 TestOutputStream *out = new TestOutputStream ();
983 Multiplexor *mux = new Multiplexor(*job, *out, NULL);
988 AC_SUBST(MPLEX_CFLAGS)
991 ], AC_MSG_RESULT(no))
994 CPPFLAGS="$OLD_CPPFLAGS"
1000 dnl *** musepack ***
1001 translit(dnm, m, l) AM_CONDITIONAL(USE_MUSEPACK, true)
1002 AG_GST_CHECK_FEATURE(MUSEPACK, [musepackdec], musepack, [
1003 AC_CHECK_HEADER([mpc/mpcdec.h], [
1005 MUSEPACK_LIBS="-lmpcdec"
1006 AC_SUBST(MUSEPACK_LIBS)
1007 ], [AC_CHECK_HEADER([mpcdec/mpcdec.h], [
1009 MUSEPACK_LIBS="-lmpcdec"
1010 AC_DEFINE(MPC_IS_OLD_API, 1, [Define if the old MusePack API is used])
1011 AC_SUBST(MUSEPACK_LIBS)
1012 ], [HAVE_MUSEPACK="no"])])
1015 dnl *** musicbrainz ***
1016 translit(dnm, m, l) AM_CONDITIONAL(USE_MUSICBRAINZ, true)
1017 AG_GST_CHECK_FEATURE(MUSICBRAINZ, [musicbrainz tag generation], musicbrainz, [
1018 PKG_CHECK_MODULES(MUSICBRAINZ, libmusicbrainz >= 2.1.0, HAVE_MUSICBRAINZ="yes", HAVE_MUSICBRAINZ="no")
1019 AC_SUBST(MUSICBRAINZ_CFLAGS)
1020 AC_SUBST(MUSICBRAINZ_LIBS)
1024 translit(dnm, m, l) AM_CONDITIONAL(USE_MYTHTV, true)
1025 AG_GST_CHECK_FEATURE(MYTHTV, [MythTV client plugins], mythtvsrc, [
1026 PKG_CHECK_MODULES(GMYTH, gmyth >= 0.4 gmyth <= 0.7.99, HAVE_MYTHTV="yes", [
1030 AC_SUBST(GMYTH_CFLAGS)
1031 AC_SUBST(GMYTH_LIBS)
1035 translit(dnm, m, l) AM_CONDITIONAL(USE_NAS, true)
1036 AG_GST_CHECK_FEATURE(NAS, [nas plug-in], nassink, [
1039 if test "x$HAVE_X" = "xyes"; then
1040 save_cppflags=$CFLAGS
1041 CPPFLAGS="$CPPFLAGS $X_CFLAGS"
1042 AG_GST_CHECK_LIBHEADER(NAS, audio, AuOpenServer, $X_LIBS, audio/audiolib.h,
1043 NAS_LIBS="$X_LIBS -laudio" NAS_CFLAGS="$X_CFLAGS")
1044 CPPFLAGS="$save_cppflags"
1046 AC_SUBST(NAS_CFLAGS)
1051 translit(dnm, m, l) AM_CONDITIONAL(USE_NEON, true)
1052 AG_GST_CHECK_FEATURE(NEON, [neon http client plugins], neonhttpsrc, [
1053 PKG_CHECK_MODULES(NEON, neon >= 0.26.0 neon <= 0.28.99, HAVE_NEON="yes", [
1057 AC_SUBST(NEON_CFLAGS)
1062 translit(dnm, m, l) AM_CONDITIONAL(USE_OFA, true)
1063 AG_GST_CHECK_FEATURE(OFA, [ofa plugins], ofa, [
1064 PKG_CHECK_MODULES(OFA, libofa >= 0.9.3, HAVE_OFA="yes", [
1068 AC_SUBST(OFA_CFLAGS)
1072 dnl *** timidity ***
1073 translit(dnm, m, l) AM_CONDITIONAL(USE_TIMIDITY, true)
1074 AG_GST_CHECK_FEATURE(TIMIDITY, [timidity midi soft synth plugin], timidity, [
1075 PKG_CHECK_MODULES(TIMIDITY, libtimidity, [
1076 HAVE_TIMIDITY="yes",
1077 AC_MSG_CHECKING([for timidity.cfg])
1079 if test -r /etc/timidity.cfg; then
1080 timidity_cfg=/etc/timidity.cfg
1081 elif test -r /etc/timidity/timidity.cfg; then
1082 timidity_cfg=/etc/timidity/timidity.cfg
1083 elif test -r /usr/share/timidity/timidity.cfg; then
1084 timidity_cfg=/usr/share/timidity/timidity.cfg
1085 elif test -r /usr/local/share/timidity/timidity.cfg; then
1086 timidity_cfg=/usr/local/share/timidity/timidity.cfg
1088 if test "x$timidity_cfg" != "x"; then
1089 AC_MSG_RESULT($timidity_cfg)
1090 AC_DEFINE_UNQUOTED(TIMIDITY_CFG, "$timidity_cfg", [Define location of timidity.cfg])
1092 AC_MSG_RESULT([not found])
1098 AC_SUBST(TIMIDITY_CFLAGS)
1099 AC_SUBST(TIMIDITY_LIBS)
1102 dnl *** wildmidi ***
1103 translit(dnm, m, l) AM_CONDITIONAL(USE_WILDMIDI, true)
1104 AG_GST_CHECK_FEATURE(WILDMIDI, [wildmidi midi soft synth plugin], wildmidi, [
1105 AC_CHECK_HEADER([wildmidi_lib.h],HAVE_WILDMIDI=yes, HAVE_WILDMIDI=no)
1106 if test "x$HAVE_WILDMIDI" = "xyes"; then
1108 WILDMIDI_LIBS=-lWildMidi
1109 AC_MSG_NOTICE(compiling gstWildMidi)
1113 AC_MSG_WARN(no WildMidi library found (libWildMidi))
1115 AC_SUBST(WILDMIDI_CFLAGS)
1116 AC_SUBST(WILDMIDI_LIBS)
1120 translit(dnm, m, l) AM_CONDITIONAL(USE_TWOLAME, true)
1121 AG_GST_CHECK_FEATURE(TWOLAME, [twolame], twolame, [
1122 PKG_CHECK_MODULES(TWOLAME, twolame >= 0.3.0, [
1123 HAVE_TWOLAME="yes"], [
1127 AC_SUBST(TWOLAME_CFLAGS)
1128 AC_SUBST(TWOLAME_LIBS)
1132 translit(dnm, m, l) AM_CONDITIONAL(USE_SDL, true)
1133 AG_GST_CHECK_FEATURE(SDL, [SDL plug-in], sdlvideosink sdlaudiosink, [
1134 AM_PATH_SDL(, HAVE_SDL=yes, HAVE_SDL=no)
1138 translit(dnm, m, l) AM_CONDITIONAL(USE_SNDFILE, true)
1139 AG_GST_CHECK_FEATURE(SNDFILE, [sndfile plug-in], sfsrc sfsink, [
1140 PKG_CHECK_MODULES(SNDFILE, sndfile >= 1.0.16, HAVE_SNDFILE="yes", HAVE_SNDFILE="no")
1141 AC_SUBST(SNDFILE_CFLAGS)
1142 AC_SUBST(SNDFILE_LIBS)
1145 dnl *** soundtouch ***
1146 translit(dnm, m, l) AM_CONDITIONAL(USE_SOUNDTOUCH, true)
1147 AG_GST_CHECK_FEATURE(SOUNDTOUCH, [soundtouch plug-in], soundtouch, [
1148 PKG_CHECK_MODULES(SOUNDTOUCH, soundtouch-1.0,
1149 HAVE_SOUNDTOUCH=yes,
1150 [PKG_CHECK_MODULES(SOUNDTOUCH, libSoundTouch,
1151 HAVE_SOUNDTOUCH=yes,
1152 HAVE_SOUNDTOUCH=no)])
1153 AC_SUBST(SOUNDTOUCH_CFLAGS)
1154 AC_SUBST(SOUNDTOUCH_LIBS)
1155 if test "x$HAVE_CXX" != "xyes"; then
1156 USE_SOUNDTOUCH=false
1157 AC_MSG_NOTICE([Not building soundtouch plugin: no C++ compiler found])
1162 translit(dnm, m, l) AM_CONDITIONAL(USE_SPC, true)
1163 AG_GST_CHECK_FEATURE(SPC, [spc decoder], spc, [
1164 AC_CHECK_HEADER(openspc.h, [
1165 AC_CHECK_LIB(openspc, OSPC_Init, [
1166 SPC_LIBS="-lopenspc"
1178 translit(dnm, m, l) AM_CONDITIONAL(USE_SWFDEC, true)
1179 AG_GST_CHECK_FEATURE(SWFDEC, [swfdec plug-in], swfdec, [
1180 PKG_CHECK_MODULES(SWFDEC, swfdec-0.3 >= 0.3.6, HAVE_SWFDEC=yes, [
1184 AC_SUBST(SWFDEC_CFLAGS)
1185 AC_SUBST(SWFDEC_LIBS)
1189 translit(dnm, m, l) AM_CONDITIONAL(USE_THEORADEC, true)
1190 AG_GST_CHECK_FEATURE(THEORADEC, [ogg theora codec], theoraexpdec, [
1191 PKG_CHECK_MODULES(THEORADEC, theoradec, HAVE_THEORADEC="yes", [
1195 AC_SUBST(THEORADEC_LIBS)
1196 AC_SUBST(THEORADEC_CFLAGS)
1199 dnl *** x264 (MPEG-4 part 10/h.264/AVC encoder) ***
1200 translit(dnm, m, l) AM_CONDITIONAL(USE_X264, true)
1201 AG_GST_CHECK_FEATURE(X264, [x264 plug-in], x264, [
1202 AG_GST_CHECK_LIBHEADER(X264, x264, x264_nal_encode, -lm, x264.h,
1203 AC_MSG_CHECKING([for uptodate x264 API version])
1204 dnl _stdint not yet generated, so no compiling
1208 #error "x264 build too old"
1212 X264_LIBS="$LDFLAGS -lx264 -lm"
1213 X264_CFLAGS="$CFLAGS"
1215 AC_SUBST(X264_CFLAGS)
1223 translit(dnm, m, l) AM_CONDITIONAL(USE_XVID, true)
1224 AG_GST_CHECK_FEATURE(XVID, [xvid plugins], xvid, [
1226 AC_CHECK_HEADER(xvid.h, [
1229 AC_CHECK_LIB(xvidcore, xvid_encore, [
1230 AC_CHECK_LIB(xvidcore, xvid_decore, [
1231 AC_CHECK_LIB(xvidcore, xvid_global, [
1232 AC_MSG_CHECKING([for uptodate XviD API version])
1233 AC_TRY_COMPILE([#include <xvid.h>], [
1234 #if XVID_API_MAJOR(XVID_API) != 4
1235 #error "Incompatible XviD API version"
1237 ],[ AC_MSG_RESULT(yes)
1238 XVID_LIBS="-lxvidcore -lm"
1241 ], AC_MSG_RESULT(no) )
1250 translit(dnm, m, l) AM_CONDITIONAL(USE_DVB, true)
1251 AG_GST_CHECK_FEATURE(DVB, [DVB Source], dvb, [
1252 AC_MSG_CHECKING([Checking for up to date dvb installation])
1253 AC_CHECK_HEADER(linux/dvb/frontend.h, [HAVE_DVB="yes"], [HAVE_DVB="no"])
1257 translit(dnm, m, l) AM_CONDITIONAL(USE_OSS4, true)
1258 AG_GST_CHECK_FEATURE(OSS4, [Open Sound System 4], oss4, [
1259 AC_MSG_CHECKING([Checking if we can build the OSS4 elements])
1260 AC_CHECK_HEADERS([fcntl.h sys/ioctl.h sys/stat.h sys/types.h],
1261 [test -z "$OSS4_MISSING_HEADER" && HAVE_OSS4="yes"],
1262 [OSS4_MISSING_HEADER="yes";HAVE_OSS4="no"])
1266 translit(dnm, m, l) AM_CONDITIONAL(USE_WININET, true)
1267 AG_GST_CHECK_FEATURE(WININET, [Windows internet library], wininet, [
1268 AC_MSG_CHECKING([Checking for windows internet support])
1269 AC_CHECK_HEADERS([windows.h wininet.h],
1270 [HAVE_WININET="yes"], [HAVE_WININET="no"])
1274 translit(dnm, m, l) AM_CONDITIONAL(USE_ACM, true)
1275 AG_GST_CHECK_FEATURE(ACM, [Windows ACM library], acm, [
1276 AC_MSG_CHECKING([Checking for ACM support])
1277 AC_CHECK_HEADERS([windows.h msacm.h],
1278 [HAVE_ACM="yes"], [HAVE_ACM="no"])
1283 dnl not building plugins with external dependencies,
1284 dnl but we still need to set the conditionals
1286 AM_CONDITIONAL(USE_QUICKTIME, false)
1287 AM_CONDITIONAL(USE_VCD, false)
1288 AM_CONDITIONAL(USE_ALSA, false)
1289 AM_CONDITIONAL(USE_AMRWB, false)
1290 AM_CONDITIONAL(USE_APEXSINK, false)
1291 AM_CONDITIONAL(USE_BZ2, false)
1292 AM_CONDITIONAL(USE_CDAUDIO, false)
1293 AM_CONDITIONAL(USE_CELT, false)
1294 AM_CONDITIONAL(USE_DC1394, false)
1295 AM_CONDITIONAL(USE_DIRECTFB, false)
1296 AM_CONDITIONAL(USE_DTS, false)
1297 AM_CONDITIONAL(USE_DIRAC, false)
1298 AM_CONDITIONAL(USE_DIVX, false)
1299 AM_CONDITIONAL(USE_DVB, false)
1300 AM_CONDITIONAL(USE_FAAC, false)
1301 AM_CONDITIONAL(USE_FAAD, false)
1302 AM_CONDITIONAL(USE_FBDEV, false)
1303 AM_CONDITIONAL(USE_GSM, false)
1304 AM_CONDITIONAL(USE_IVORBIS, false)
1305 AM_CONDITIONAL(USE_JACK, false)
1306 AM_CONDITIONAL(USE_JP2K, false)
1307 AM_CONDITIONAL(USE_LADSPA, false)
1308 AM_CONDITIONAL(USE_LIBMMS, false)
1309 AM_CONDITIONAL(USE_METADATA, false)
1310 AM_CONDITIONAL(USE_MPEG2ENC, false)
1311 AM_CONDITIONAL(USE_MPLEX, false)
1312 AM_CONDITIONAL(USE_MUSEPACK, false)
1313 AM_CONDITIONAL(USE_MUSICBRAINZ, false)
1314 AM_CONDITIONAL(USE_MYTHTV, false)
1315 AM_CONDITIONAL(USE_NAS, false)
1316 AM_CONDITIONAL(USE_NEON, false)
1317 AM_CONDITIONAL(USE_OFA, false)
1318 AM_CONDITIONAL(USE_OSS4, false)
1319 AM_CONDITIONAL(USE_TWOLAME, false)
1320 AM_CONDITIONAL(USE_SDL, false)
1321 AM_CONDITIONAL(USE_SNDFILE, false)
1322 AM_CONDITIONAL(USE_SOUNDTOUCH, false)
1323 AM_CONDITIONAL(USE_SPC, false)
1324 AM_CONDITIONAL(USE_SWFDEC, false)
1325 AM_CONDITIONAL(USE_THEORADEC, false)
1326 AM_CONDITIONAL(USE_TIMIDITY, false)
1327 AM_CONDITIONAL(USE_X264, false)
1328 AM_CONDITIONAL(USE_XVID, false)
1329 AM_CONDITIONAL(USE_WILDMIDI, false)
1330 AM_CONDITIONAL(USE_WININET, false)
1331 AM_CONDITIONAL(USE_ACM, false)
1333 fi dnl of EXT plugins
1335 dnl *** finalize CFLAGS, LDFLAGS, LIBS
1338 dnl GST_OPTION_CFLAGS: common flags for profiling, debugging, errors, ...
1339 dnl GST_*: flags shared by built objects to link against GStreamer
1340 dnl GST_ALL_LDFLAGS: linker flags shared by all
1341 dnl GST_LIB_LDFLAGS: additional linker flags for all libaries
1342 dnl GST_LT_LDFLAGS: library versioning of our libraries
1343 dnl GST_PLUGIN_LDFLAGS: flags to be used for all plugins
1345 dnl GST_OPTION_CFLAGS
1346 if test "x$USE_DEBUG" = xyes; then
1349 AC_SUBST(PROFILE_CFLAGS)
1351 if test "x$PACKAGE_VERSION_NANO" = "x1"; then
1352 dnl Define _only_ during CVS (not pre-releases or releases)
1353 DEPRECATED_CFLAGS="-DGST_DISABLE_DEPRECATED"
1355 DEPRECATED_CFLAGS=""
1357 AC_SUBST(DEPRECATED_CFLAGS)
1359 dnl every flag in GST_OPTION_CFLAGS and GST_OPTION_CXXFLAGS can be overridden
1360 dnl at make time with e.g. make ERROR_CFLAGS=""
1361 GST_OPTION_CFLAGS="\$(ERROR_CFLAGS) \$(DEBUG_CFLAGS) \$(PROFILE_CFLAGS) \$(GCOV_CFLAGS) \$(OPT_CFLAGS) \$(DEPRECATED_CFLAGS)"
1362 GST_OPTION_CXXFLAGS="\$(ERROR_CXXFLAGS) \$(DEBUG_CFLAGS) \$(PROFILE_CFLAGS) \$(GCOV_CFLAGS) \$(OPT_CFLAGS) \$(DEPRECATED_CFLAGS)"
1363 AC_SUBST(GST_OPTION_CFLAGS)
1364 AC_SUBST(GST_OPTION_CXXFLAGS)
1366 dnl FIXME: do we want to rename to GST_ALL_* ?
1367 dnl prefer internal headers to already installed ones
1368 dnl also add builddir include for enumtypes and marshal
1369 dnl add GST_OPTION_CFLAGS, but overridable
1370 GST_CFLAGS="-I\$(top_srcdir)/gst-libs -I\$(top_builddir)/gst-libs $GST_CFLAGS \$(GST_OPTION_CFLAGS)"
1371 GST_CXXFLAGS="-I\$(top_srcdir)/gst-libs -I\$(top_builddir)/gst-libs $GST_CXXFLAGS \$(GST_OPTION_CXXFLAGS)"
1372 AC_SUBST(GST_CFLAGS)
1373 AC_SUBST(GST_CXXFLAGS)
1376 dnl LDFLAGS really should only contain flags, not libs - they get added before
1377 dnl whatevertarget_LIBS and -L flags here affect the rest of the linking
1378 GST_ALL_LDFLAGS="-no-undefined"
1379 AC_SUBST(GST_ALL_LDFLAGS)
1381 dnl this really should only contain flags, not libs - they get added before
1382 dnl whatevertarget_LIBS and -L flags here affect the rest of the linking
1383 GST_PLUGIN_LDFLAGS="-module -avoid-version -export-symbols-regex '^[_]*gst_plugin_desc\$\$' $GST_ALL_LDFLAGS"
1384 AC_SUBST(GST_PLUGIN_LDFLAGS)
1386 dnl *** output files ***
1393 gst-plugins-bad.spec
1395 gst/aiffparse/Makefile
1398 gst/cdxaparse/Makefile
1400 gst/deinterlace/Makefile
1401 gst/deinterlace2/Makefile
1403 gst/festival/Makefile
1407 gst/h264parse/Makefile
1409 gst/modplug/Makefile
1410 gst/modplug/libmodplug/Makefile
1411 gst/mpegdemux/Makefile
1412 gst/mpegtsmux/Makefile
1413 gst/mpegtsmux/tsmux/Makefile
1414 gst/mpeg4videoparse/Makefile
1415 gst/mpegvideoparse/Makefile
1418 gst/nuvdemux/Makefile
1419 gst/pcapparse/Makefile
1420 gst/rawparse/Makefile
1421 gst/rtpmanager/Makefile
1422 gst/scaletempo/Makefile
1424 gst/selector/Makefile
1426 gst/speexresample/Makefile
1430 gst/videosignal/Makefile
1435 gst-libs/gst/Makefile
1436 gst-libs/gst/app/Makefile
1437 gst-libs/gst/dshow/Makefile
1439 sys/dshowdecwrapper/Makefile
1441 sys/dshowsrcwrapper/Makefile
1442 sys/dshowvideosink/Makefile
1446 sys/qtwrapper/Makefile
1449 sys/wininet/Makefile
1451 sys/winscreencap/Makefile
1453 examples/app/Makefile
1454 examples/directfb/Makefile
1455 examples/scaletempo/Makefile
1456 examples/switch/Makefile
1458 ext/alsaspdif/Makefile
1459 ext/apexsink/Makefile
1461 ext/cdaudio/Makefile
1465 ext/directfb/Makefile
1468 ext/metadata/Makefile
1472 ext/ivorbis/Makefile
1479 ext/mpeg2enc/Makefile
1481 ext/musepack/Makefile
1482 ext/musicbrainz/Makefile
1486 ext/resindvd/Makefile
1487 ext/twolame/Makefile
1489 ext/sndfile/Makefile
1490 ext/soundtouch/Makefile
1494 ext/timidity/Makefile
1499 docs/plugins/Makefile
1500 docs/version.entities
1505 tests/check/Makefile
1506 tests/icles/Makefile
1507 win32/common/config.h
1511 AG_GST_OUTPUT_PLUGINS