1 dnl autoconf configuration file for gst-plugins
3 AC_CANONICAL_TARGET([])
5 dnl We disable static building for development, for time savings
6 dnl this goes before AS_LIBTOOL to appease autoconf
7 dnl *NOTE*: dnl this line before release, so release does static too
10 dnl when going to/from release please set the nano (fourth number) right !
11 AS_VERSION(gst-plugins, GST_PLUGINS, 0, 3, 2, 1)
12 AM_INIT_AUTOMAKE($PACKAGE,$VERSION)
13 AS_LIBTOOL(GST_PLUGINS, 0, 0, 0, yes)
15 dnl FIXME take something else ?
16 AC_CONFIG_SRCDIR([gst/law/alaw.c])
17 AM_CONFIG_HEADER(config.h)
19 dnl Add parameters for aclocal
20 dnl (This must come after AM_INIT_AUTOMAKE, since it modifies ACLOCAL)
21 ACLOCAL="$ACLOCAL -I m4 -I common/m4 $ACLOCAL_FLAGS"
35 dnl ###########################################
36 dnl # Super Duper options for plugin building #
37 dnl ###########################################
39 dnl experimental plugins; stuff that hasn't had the dust settle yet
40 dnl read 'builds, but might not work'
41 GST_CHECK_FEATURE(EXPERIMENTAL, [enable building of experimental plugins],,
42 [HAVE_EXPERIMENTAL=yes],disabled,
44 AC_MSG_WARN(building experimental plugins)
49 AC_MSG_NOTICE(not building experimental plugins)
55 dnl broken plugins; stuff that doesn't seem to build at the moment
56 GST_CHECK_FEATURE(BROKEN, [enable building of broken plugins],,
57 HAVE_BROKEN=yes,disabled,
59 AC_MSG_WARN(building broken plugins)
62 dnl AC_MSG_NOTICE(actually there are no broken plugins at the moment)
66 AC_MSG_NOTICE(not building broken plugins)
69 dnl ##############################
70 dnl # Do automated configuration #
71 dnl ##############################
76 dnl modify pkg-config path
77 AC_ARG_WITH(pkg-config-path,
78 AC_HELP_STRING([--with-pkg-config-path],[colon-separated list of pkg-config(1) dirs]),
79 [export PKG_CONFIG_PATH=${withval}])
82 AC_PATH_PROG(NASM_PATH, nasm, no)
84 if test x$NASM_PATH = xno; then
85 AC_MSG_WARN(Couldn't find nasm)
88 AC_DEFINE(HAVE_NASM, 1, [Define if NASM, the netwide assembler, is available])
92 dnl check for gstreamer; uninstalled is selected preferentially -- see pkg-config(1)
93 PKG_CHECK_MODULES(GST, gstreamer >= $GST_PLUGINS_MAJOR.$GST_PLUGINS_MINOR.$GST_PLUGINS_MICRO,
94 HAVE_GST="yes", HAVE_GST="no")
96 if test "x$HAVE_GST" = "xno"; then
97 AC_MSG_ERROR(no GStreamer found)
100 GST_TOOLS_DIR=`pkg-config --variable=toolsdir gstreamer`
101 if test -z $GST_TOOLS_DIR; then
102 AC_MSG_ERROR([no tools dir defined in GStreamer pkg-config file; core upgrade needed.])
104 AC_SUBST(GST_TOOLS_DIR)
106 dnl Set up conditionals for (target) architecture:
107 dnl ==============================================
110 case "x${target_cpu}" in
111 xi?86 | k?) HAVE_CPU_I386=yes
112 AC_DEFINE(HAVE_CPU_I386, 1, [Define if the target CPU is an x86])
113 dnl FIXME could use some better detection
115 case "x${target_cpu}" in
117 *) AC_DEFINE(HAVE_RDTSC) ;;
119 xpowerpc) HAVE_CPU_PPC=yes
120 AC_DEFINE(HAVE_CPU_PPC, 1, [Define if the target CPU is a PPC]) ;;
121 xalpha) HAVE_CPU_ALPHA=yes
122 AC_DEFINE(HAVE_CPU_ALPHA, 1, [Define if the target CPU is an Alpha]) ;;
123 xarm*) HAVE_CPU_ARM=yes
124 AC_DEFINE(HAVE_CPU_ARM, 1, [Define if the target CPU is an ARM]) ;;
125 xsparc*) HAVE_CPU_SPARC=yes
126 AC_DEFINE(HAVE_CPU_SPARC, 1, [Define if the target CPU is a PPC]) ;;
127 xmips*) HAVE_CPU_MIPS=yes
128 AC_DEFINE(HAVE_CPU_MIPS, 1, [Define if the target CPU is a MIPS]) ;;
129 xhppa*) HAVE_CPU_HPPA=yes
130 AC_DEFINE(HAVE_CPU_HPPA, 1, [Define if the target CPU is a HPPA]) ;;
133 dnl Determine endianness
136 dnl Check for essential libraries first:
137 dnl ====================================
139 PKG_CHECK_MODULES(GTK2, gtk+-2.0, HAVE_GTK=yes, HAVE_GTK=no)
140 GTK_CFLAGS=$GTK2_CFLAGS
145 dnl Check for X11 extensions
147 if test "-DX_DISPLAY_MISSING" = "$X_CFLAGS"; then
148 AC_MSG_NOTICE([cannot find X11, the build system needs fixage])
152 AC_SUBST(X_EXTRA_LIBS)
155 dnl ==========================================================================
156 dnl ============================= gst plugins ================================
157 dnl ==========================================================================
158 GST_PLUGIN_LDFLAGS='-module -avoid-version'
159 AC_SUBST(GST_PLUGIN_LDFLAGS)
162 ac3parse adder audioscale auparse avi chart\
163 cutter deinterlace flx goom intfloat law level\
164 median mpeg1enc mpeg1sys mpeg1videoparse mpeg2enc mpeg2sub\
165 mpegaudio mpegaudioparse mpegstream mpegtypes\
166 passthrough playondemand rtjpeg silence sine\
167 smooth spectrum speed stereo stereomono\
168 synaesthesia udp videoscale volenv volume vumeter wavparse y4m"
170 AC_SUBST(GST_PLUGINS_ALL)
172 GST_PLUGINS_SELECTED=""
175 AC_HELP_STRING([--with-plugins],[comma-separated list of plugins to compile]),
176 [for i in `echo $withval | tr , ' '`; do
177 if test -n `echo $i | grep $GST_PLUGINS_ALL`; then
178 GST_PLUGINS_SELECTED="$GST_PLUGINS_SELECTED $i"
180 echo "plugin $i not recognized, ignoring..."
183 [GST_PLUGINS_SELECTED=$GST_PLUGINS_ALL])
185 AC_SUBST(GST_PLUGINS_SELECTED)
187 dnl ==========================================================================
188 dnl ============================= sys plugins ================================
189 dnl ==========================================================================
192 dnl *** OSS audio ***
193 translit(dnm, m, l) AM_CONDITIONAL(USE_OSS, true)
194 GST_CHECK_FEATURE(OSS, [OSS audio], osssrc osssink, [
195 AC_CHECK_HEADER(sys/soundcard.h, HAVE_OSS="yes", HAVE_OSS="no")
199 translit(dnm, m, l) AM_CONDITIONAL(USE_QCAM, true)
200 GST_CHECK_FEATURE(QCAM, [QuickCam], qcamsrc, [
201 dnl this one is for hadess, no qcam when no nasm found
202 if test "x$HAVE_NASM" = "xno";
205 AC_MSG_WARN([QuickCam needs nasm])
211 dnl *** Video 4 Linux ***
212 translit(dnm, m, l) AM_CONDITIONAL(USE_V4L, true)
213 GST_CHECK_FEATURE(V4L, [Video 4 Linux], v4lsrc v4lmjpegsrc v4lmjpegsink, [
214 AC_CHECK_DECL(VID_TYPE_MPEG_ENCODER, HAVE_V4L="yes", HAVE_V4L="no", [#include <linux/videodev.h>])
218 translit(dnm, m, l) AM_CONDITIONAL(USE_VCD, true)
219 GST_CHECK_FEATURE(VCD, [Video CD], vcdsrc, [
220 AC_CHECK_HEADER(linux/cdrom.h, HAVE_VCD="yes", HAVE_VCD="no")
224 translit(dnm, m, l) AM_CONDITIONAL(USE_VGA, true)
225 GST_CHECK_FEATURE(VGA, [VGA], vgavideosink, [
226 AC_CHECK_HEADER(asm/vga.h, HAVE_VGA="yes", HAVE_VGA="no")
230 dnl Look for the PIC library first, Debian requires it.
231 dnl Check debian-devel archives for gory details.
233 dnl At the moment XFree86 doesn't distribute shared libXv due
234 dnl to unstable API. On many platforms you CAN NOT link a shared
235 dnl lib to a static non-PIC lib. This is what the xvideo GStreamer
236 dnl plugin wants to do. So Debian distributes a PIC compiled
237 dnl version of the static lib for plugins to link to when it is
238 dnl inappropriate to link the main application to libXv directly.
239 dnl FIXME: add check if this platform can support linking to a
240 dnl non-PIC libXv, if not then don not use Xv.
241 dnl FIXME: perhaps warn user if they have a shared libXv since
242 dnl this is an error until XFree86 starts shipping one
243 translit(dnm, m, l) AM_CONDITIONAL(USE_XVIDEO, true)
244 GST_CHECK_FEATURE(XVIDEO, [X11 XVideo extensions], xvideosink, [
245 dnl check for PIC static lib
246 GST_CHECK_LIBHEADER(XVIDEO, Xv_pic, XvQueryExtension, $X_LIBS $X_PRE_LIBS -lXext -lX11 $X_EXTRA_LIBS, X11/extensions/Xvlib.h, XVIDEO_LIBS="-lXv_pic -lXext")
247 if test x$HAVE_XVIDEO = xno; then
248 dnl PIC lib not found, check for regular lib
249 GST_CHECK_LIBHEADER(XVIDEO, Xv, XvQueryExtension, $X_LIBS $X_PRE_LIBS -lXext -lX11 $X_EXTRA_LIBS, X11/extensions/Xvlib.h, XVIDEO_LIBS="-lXv -lXext")
251 AC_SUBST(XVIDEO_LIBS)
254 dnl Next, check for the optional libraries:
255 dnl These are all libraries used in building plugins
256 dnl ================================================
257 dnl let's try and sort them alphabetically, shall we ?
261 AC_MSG_NOTICE(Checking for plugin libraries)
264 translit(dnm, m, l) AM_CONDITIONAL(USE_A52DEC, true)
265 GST_CHECK_FEATURE(A52DEC, [a52dec], a52dec, [
266 GST_CHECK_LIBHEADER(A52DEC, a52, a52_init, -lm, a52dec/a52.h, A52DEC_LIBS="-la52")
270 translit(dnm, m, l) AM_CONDITIONAL(USE_AALIB, true)
271 GST_CHECK_FEATURE(AALIB, [aasink plugin], aasink, [
272 AM_PATH_AALIB(, HAVE_AALIB=yes, HAVE_AALIB=no)
276 translit(dnm, m, l) AM_CONDITIONAL(USE_ALSA, true)
277 GST_CHECK_FEATURE(ALSA, [alsa plugins], gstalsa, [
278 AM_PATH_ALSA(0.9.0, HAVE_ALSA=yes, HAVE_ALSA=no)
283 dnl if mcopidl can't be found there's no use in compiling it
284 AC_CHECK_PROG(MCOPIDL, mcopidl, yes, no)
285 if test "xHAVE_MCOPIDL" = "xno";
290 translit(dnm, m, l) AM_CONDITIONAL(USE_ARTS, true)
291 GST_CHECK_FEATURE(ARTS, [arts plugins], arts, [
292 AM_PATH_ARTS(, HAVE_ARTS=yes, HAVE_ARTS=no)
294 dnl if mcopidl can't be found there's no use in compiling it
295 AC_PATH_PROG(MCOPIDL, mcopidl, yes, no)
296 if test "xHAVE_MCOPIDL" = "xno";
302 translit(dnm, m, l) AM_CONDITIONAL(USE_ARTSC, true)
303 GST_CHECK_FEATURE(ARTSC, [artsd plugins], artsdsink, [
307 dnl *** audiofile ***
308 dnl this check uses the GST_CHECK_CONFIGPROG macro
309 translit(dnm, m, l) AM_CONDITIONAL(USE_AUDIOFILE, true)
310 GST_CHECK_FEATURE(AUDIOFILE, [audiofile], afsink afsrc, [
311 translit(dnm, m, l) AC_SUBST(AUDIOFILE_LIBS)
312 translit(dnm, m, l) AC_SUBST(AUDIOFILE_CFLAGS)
313 GST_CHECK_CONFIGPROG(AUDIOFILE, audiofile-config)
317 dnl this check uses the GST_CHECK_CONFIGPROG macro
318 dnl this check needs more fixing
319 dnl translit(dnm, m, l) AC_SUBST(AVIFILE_LIBS)
320 translit(dnm, m, l) AM_CONDITIONAL(USE_AVIFILE, true)
321 GST_CHECK_FEATURE(AVIFILE, [avifile], windec winenc, [
322 translit(dnm, m, l) AC_SUBST(AVIFILE_CFLAGS)
323 GST_CHECK_CONFIGPROG(AVIFILE, avifile-config)
324 AVIFILE_LIBS="$AVIFILE_LIBS -lstdc++"
325 AC_SUBST(AVIFILE_LIBS)
328 dnl *** CDParanoia ***
329 translit(dnm, m, l) AM_CONDITIONAL(USE_CDPARANOIA, true)
330 GST_CHECK_FEATURE(CDPARANOIA, [CDParanoia], cdparanoia, [
331 GST_CHECK_LIBHEADER(CDPARANOIA, cdda_interface, cdda_open, -lm, cdda_interface.h, CDPARANOIA_LIBS="-lcdda_interface -lcdda_paranoia")
332 AC_SUBST(CDPARANOIA_LIBS)
334 dnl FIXME : add second check somehow if that is necessary
335 dnl AC_CHECK_LIB(cdda_paranoia, paranoia_init, : , HAVE_CDPARANOIA=no, -lcdda_interface )
336 dnl AC_CHECK_HEADER(cdda_paranoia.h, :, HAVE_CDPARANOIA=no)
339 translit(dnm, m, l) AM_CONDITIONAL(USE_DV, true)
340 GST_CHECK_FEATURE(DV, [dv library], dv, [
341 GST_CHECK_LIBHEADER(DV, dv, dv_init, -lm $GST_CFLAGS $GST_LIBS, libdv/dv.h, DV_LIBS="-ldv")
346 translit(dnm, m, l) AM_CONDITIONAL(USE_DVDREAD, true)
347 GST_CHECK_FEATURE(DVDREAD, [dvdread library], dvdsrc, [
348 GST_CHECK_LIBHEADER(DVDREAD, dvdread, DVDOpen, , dvdread/dvd_reader.h, DVDREAD_LIBS="-ldvdread")
349 AC_SUBST(DVDREAD_LIBS)
353 translit(dnm, m, l) AM_CONDITIONAL(USE_ESD, true)
354 GST_CHECK_FEATURE(ESD, [esound plugins], esdsrc esdsink, [
355 AM_PATH_ESD(0.2.12, HAVE_ESD=yes, HAVE_ESD=no)
358 dnl **** festival ****
359 translit(dnm, m, l) AM_CONDITIONAL(USE_FESTIVAL, true)
360 GST_CHECK_FEATURE(FESTIVAL, [festival plugins], festivalsrc, [
361 dnl NOTE: just using local net connection now, add this lib check
362 dnl in the future if needed
363 dnl AC_LANG_PUSH(C++)
364 dnl dnl FIXME: took out func to check for
365 dnl dnl This check puts festival_tidy_up in extern "C".
366 dnl dnl But, at least on Debian as of 20020110, it is compiled with name
367 dnl dnl mangling C++ nonsense and symbols can't resolve
368 dnl dnl GST_CHECK_LIBHEADER(FESTIVAL, Festival, festival_tidy_up, , festival/festival.h, FESTIVAL_LIBS="-lFestival")
369 dnl GST_CHECK_LIBHEADER(FESTIVAL, Festival, , , festival/festival.h, FESTIVAL_LIBS="-lFestival")
371 dnl AC_SUBST(FESTIVAL_LIBS)
376 translit(dnm, m, l) AM_CONDITIONAL(USE_FLAC, true)
377 GST_CHECK_FEATURE(FLAC, [FLAC lossless audio], flacenc flacdec, [
378 GST_CHECK_LIBHEADER(FLAC, FLAC, FLAC__stream_decoder_new, -lm, FLAC/all.h, FLAC_LIBS="-lFLAC")
382 dnl *** Gnome VFS ***
383 translit(dnm, m, l) AM_CONDITIONAL(USE_GNOME_VFS, true)
384 GST_CHECK_FEATURE(GNOME_VFS, [Gnome VFS], gnomevfssrc, [
385 PKG_CHECK_MODULES(GNOME_VFS, gnome-vfs-2.0, HAVE_GNOME_VFS="yes", HAVE_GNOME_VFS="no")
386 AC_SUBST(GNOME_VFS_CFLAGS)
387 AC_SUBST(GNOME_VFS_LIBS)
391 translit(dnm, m, l) AM_CONDITIONAL(USE_GSM, true)
392 GST_CHECK_FEATURE(GSM, [GSM library], gsmenc gsmdec, [
393 GST_CHECK_LIBHEADER(GSM, gsm, gsm_create, , gsm.h, GSM_LIBS="-lgsm")
394 if test $HAVE_GSM != "yes"; then
395 GST_CHECK_LIBHEADER(GSM, gsm, gsm_create, , gsm/gsm.h, GSM_LIBS="-lgsm")
396 if test $HAVE_GSM = "yes"; then
397 AC_DEFINE(GSM_HEADER_IN_SUBDIR)
404 translit(dnm, m, l) AM_CONDITIONAL(USE_HERMES, true)
405 GST_CHECK_FEATURE(HERMES, [Hermes library], colorspace, [
406 GST_CHECK_LIBHEADER(HERMES, Hermes, Hermes_ConverterInstance, , Hermes/Hermes.h, HERMES_LIBS="-lHermes")
407 ], AC_SUBST(HERMES_LIBS))
410 translit(dnm, m, l) AM_CONDITIONAL(USE_HTTP, true)
411 GST_CHECK_FEATURE(HTTP, [http plugins], gsthttpsrc, [
412 dnl FIXME: need to check for header
414 GST_HTTPSRC_GET_TYPE=
415 if test x$USE_GLIB2 = xyes; then
416 AC_MSG_WARN(ghttp disabled for glib2.0)
418 AC_CHECK_LIB(ghttp, ghttp_request_new,
420 GST_HTTPSRC_GET_TYPE="gst_httpsrc_get_type"
425 AC_SUBST(GST_HTTPSRC_GET_TYPE)
429 translit(dnm, m, l) AM_CONDITIONAL(USE_LAME, true)
430 GST_CHECK_FEATURE(LAME, [lame mp3 encoder library], lame, [
431 GST_CHECK_LIBHEADER(LAME, mp3lame, lame_init, -lm, lame/lame.h, HAVE_LAME="yes" LAME_LIBS="-lmp3lame")
436 dnl FIXME : check if these CPP flags can be dealt with otherwise
437 dnl libdvcheck_save_CPPFLAGS="$CPPFLAGS"
438 dnl CPPFLAGS="$CPPFLAGS $GST_CFLAGS"
439 dnl AC_CHECK_HEADER(libdv/dv.h, :, HAVE_LIBDV=no)
440 dnl CPPFLAGS="$libdvcheck_save_CPPFLAGS"
443 dnl FIXME: we could use header checks here as well IMO
444 translit(dnm, m, l) AM_CONDITIONAL(USE_JPEG, true)
445 GST_CHECK_FEATURE(JPEG, [jpeg], jpegenc jpegdec, [
446 AC_CHECK_LIB(jpeg, jpeg_set_defaults, HAVE_JPEG="yes", HAVE_JPEG="no")
452 dnl FIXME: we could use header checks here as well IMO
453 translit(dnm, m, l) AM_CONDITIONAL(USE_MAD, true)
454 GST_CHECK_FEATURE(MAD, [mad mp3 decoder], mad, [
455 AC_CHECK_LIB(mad, mad_decoder_finish, HAVE_MAD="yes" MAD_LIBS="-lmad")
456 if test "x$HAVE_MAD" = "xyes"; then
457 # installed with mad >= 0.14
461 AC_CHECK_LIB(id3tag, id3_tag_query, HAVE_MAD="yes" MAD_LIBS="$MAD_LIBS -lid3tag")
468 translit(dnm, m, l) AM_CONDITIONAL(USE_MIKMOD, true)
469 GST_CHECK_FEATURE(MIKMOD, [mikmod plugin], mikmod, [
470 AM_PATH_LIBMIKMOD(, HAVE_MIKMOD=yes, HAVE_MIKMOD=no)
471 AC_SUBST(MIKMOD_LIBS, "$LIBMIKMOD_LIBS")
472 AC_SUBST(MIKMOD_CFLAGS, "$LIBMIKMODCFLAGS")
475 dnl *** mjpegtools ***
476 translit(dnm, m, l) AM_CONDITIONAL(USE_MJPEGTOOLS, true)
477 GST_CHECK_FEATURE(MJPEGTOOLS, [mjpegtools], jpegmmxenc jpegmmxdec, [
478 PKG_CHECK_MODULES(MJPEGTOOLS, mjpegtools, HAVE_MJPEGTOOLS="yes", HAVE_MJPEGTOOLS="no")
479 AC_SUBST(MJPEGTOOLS_LIBS)
480 AC_SUBST(MJPEGTOOLS_CFLAGS)
484 translit(dnm, m, l) AM_CONDITIONAL(USE_MPEG2DEC, true)
485 GST_CHECK_FEATURE(MPEG2DEC, [mpeg2dec], mpeg2dec, [ GST_CHECK_MPEG2DEC() ])
487 dnl *** openquicktime ***
488 translit(dnm, m, l) AM_CONDITIONAL(USE_OPENQUICKTIME, true)
489 GST_CHECK_FEATURE(OPENQUICKTIME, [Open Quicktime], quicktime_parser quicktime_decoder quicktime_demux,[
490 GST_CHECK_LIBHEADER(OPENQUICKTIME, openquicktime, quicktime_init,, openquicktime/openquicktime.h, OPENQUICKTIME_LIBS="-lopenquicktime")
491 AC_SUBST(OPENQUICKTIME_LIBS)
495 translit(dnm, m, l) AM_CONDITIONAL(USE_RAW1394, true)
496 GST_CHECK_FEATURE(RAW1394, [raw1394 library], dv1394src, [
497 GST_CHECK_LIBHEADER(RAW1394, raw1394, raw1394_get_handle,, libraw1394/raw1394.h, RAW1394_LIBS="-raw1394")
498 AC_SUBST(RAW1394_LIBS)
502 dnl FIXME : adapt and make it work
503 translit(dnm, m, l) AM_CONDITIONAL(USE_RTP, true)
504 GST_CHECK_FEATURE(RTP, [RTP library], rtpenc rtpdec,[
505 AC_CHECK_LIB(rtp, rtp_packet_new_take_data, HAVE_RTP=yes, HAVE_RTP=no, $GST_CFLAGS $GST_LIBS)
510 dnl FIXME header check needs to use GLIB_CFLAGS in order to succeed for rtp
511 dnl can use GST_* which should have GLIB_* info
512 dnl AC_CHECK_HEADERS(rtp/rtp.h, HAVE_LIBRTP=yes, HAVE_LIBRTP=no)
513 dnl AC_CHECK_HEADERS(rtp/rtp-packet.h, :, HAVE_LIBRTP=no)
514 dnl AC_CHECK_HEADERS(rtp/rtcp-packet.h, :, HAVE_LIBRTP=no)
515 dnl AC_CHECK_HEADERS(rtp/rtp-audio.h, :, HAVE_LIBRTP=no)
518 translit(dnm, m, l) AM_CONDITIONAL(USE_SDL, true)
519 GST_CHECK_FEATURE(SDL, [SDL plugin], sdlvideosink, [
520 AM_PATH_SDL(, HAVE_SDL=yes, HAVE_SDL=no)
524 translit(dnm, m, l) AM_CONDITIONAL(USE_SHOUT, true)
525 GST_CHECK_FEATURE(SHOUT, [shout plugin], icecastsend, [
526 GST_CHECK_LIBHEADER(SHOUT, shout, shout_init_connection,, shout/shout.h, SHOUT_LIBS="-lshout")
531 translit(dnm, m, l) AM_CONDITIONAL(USE_SIDPLAY, true)
532 GST_CHECK_FEATURE(SIDPLAY, [sidplay plugin], sidplay, [
536 dnl *** smoothwave ***
537 translit(dnm, m, l) AM_CONDITIONAL(USE_SMOOTHWAVE, true)
538 GST_CHECK_FEATURE(SMOOTHWAVE, [smoothwave plugin], smoothwave, [
539 if test $HAVE_GTK = "yes"; then HAVE_SMOOTHWAVE=yes; fi;
543 dnl for now the sources are included in the plugin
544 dnl and should be moved to ext-libs/ perhaps
545 translit(dnm, m, l) AM_CONDITIONAL(USE_TARKIN, true)
546 GST_CHECK_FEATURE(TARKIN, [tarkinenc tarkindec], tarkin, [
551 dnl AM_PATH_VORBIS only takes two options
552 translit(dnm, m, l) AM_CONDITIONAL(USE_VORBIS, true)
553 GST_CHECK_FEATURE(VORBIS, [vorbis plugin], vorbisenc vorbisdec, [
554 AM_PATH_VORBIS(HAVE_VORBIS=yes, HAVE_VORBIS=no)
558 translit(dnm, m, l) AM_CONDITIONAL(USE_XMMS, true)
559 GST_CHECK_FEATURE(XMMS, [xmms plugin], xmms, [
560 AM_PATH_XMMS(0.1.0, HAVE_XMMS=yes, HAVE_XMMS=no)
563 dnl Check for atomic.h
564 dnl Note: use AC_CHECK_HEADER not AC_CHECK_HEADERS, because the latter
565 dnl defines the wrong default symbol as well (HAVE_ASM_ATOMIC_H)
566 AC_CHECK_HEADER(asm/atomic.h, HAVE_ATOMIC_H=yes, HAVE_ATOMIC_H=no)
567 dnl Do a compile to check that it has atomic_set (eg, linux 2.0 didn't)
568 if test x$HAVE_ATOMIC_H = xyes; then
570 #include "asm/atomic.h"
571 main() { atomic_t t; atomic_set(&t,0); atomic_inc(&t); atomic_add(1,&t);return 0;}
574 if test x$HAVE_ATOMIC_H = xyes; then
575 AC_MSG_WARN(Atomic reference counting is out of date: doing without.)
581 AC_MSG_WARN(Can't check properly for atomic reference counting. Assuming OK.)
585 dnl ######################################################################
586 dnl # Check command line parameters, and set shell variables accordingly #
587 dnl ######################################################################
589 AC_ARG_ENABLE(libmmx,
590 [ --enable-libmmx use libmmx, if available],
591 [case "${enableval}" in
592 yes) USE_LIBMMX=$HAVE_LIBMMX ;;
594 *) AC_MSG_ERROR(bad value ${enableval} for --enable-libmmx) ;;
596 [USE_LIBMMX=$HAVE_LIBMMX]) dnl Default value
598 AC_ARG_ENABLE(atomic,
599 [ --enable-atomic use atomic reference counting header],
600 [case "${enableval}" in
601 yes) USE_ATOMIC_H=$HAVE_ATOMIC_H;;
602 noset) USE_ATOMIC_H=$HAVE_ATOMIC_H;;
603 no) USE_ATOMIC_H=no;;
604 *) AC_MSG_ERROR(bad value ${enableval} for --enable-atomic) ;;
606 [USE_ATOMIC_H=$HAVE_ATOMIC_H]) dnl Default value
608 AC_ARG_ENABLE(profiling,
609 [ --enable-profiling adds -pg to compiler commandline, for profiling],
610 [case "${enableval}" in
611 yes) USE_PROFILING=yes ;;
612 no) UES_PROFILING=no ;;
613 *) AC_MSG_ERROR(bad value ${enableval} for --enable-profiling) ;;
615 [USE_PROFILING=no]) dnl Default value
618 [ --disable-tests disable building test apps],
619 [case "${enableval}" in
620 yes) BUILD_TESTS=yes ;;
621 no) BUILD_TESTS=no ;;
622 *) AC_MSG_ERROR(bad value ${enableval} for --disable-tests) ;;
624 [BUILD_TESTS=yes]) dnl Default value
626 AC_ARG_ENABLE(examples,
627 [ --disable-examples disable building examples],
628 [case "${enableval}" in
629 yes) BUILD_EXAMPLES=yes ;;
630 no) BUILD_EXAMPLES=no ;;
631 *) AC_MSG_ERROR(bad value ${enableval} for --disable-examples) ;;
633 [BUILD_EXAMPLES=yes]) dnl Default value
635 dnl ################################################
636 dnl # Set defines according to variables set above #
637 dnl ################################################
640 if test "x$USE_LIBMMX" = xyes; then
641 AC_DEFINE(HAVE_LIBMMX, 1, [Define if libmmx is available])
644 if test "x$USE_ATOMIC_H" = xyes; then
645 AC_DEFINE(HAVE_ATOMIC_H, 1, [Define if atomic.h header file is available])
648 dnl if test "x$USE_DEBUG" = xyes; then
649 dnl CFLAGS="$CFLAGS -g"
652 if test "x$USE_PROFILING" = xyes; then
653 dnl CFLAGS="$CFLAGS -pg -fprofile-arcs"
654 FOMIT_FRAME_POINTER=""
656 FOMIT_FRAME_POINTER="-fomit-frame-pointer"
660 dnl AC_SUBST(FOMIT_FRAME_POINTER)
663 dnl #############################
664 dnl # Set automake conditionals #
665 dnl #############################
667 dnl These should be "USE_*" instead of "HAVE_*", but some packages expect
668 dnl HAVE_ and it is likely to be easier to stick with the old name
669 AM_CONDITIONAL(HAVE_CPU_I386, test "x$HAVE_CPU_I386" = "xyes")
670 AM_CONDITIONAL(HAVE_CPU_PPC, test "x$HAVE_CPU_PPC" = "xyes")
671 AM_CONDITIONAL(HAVE_CPU_ALPHA, test "x$HAVE_CPU_ALPHA" = "xyes")
672 AM_CONDITIONAL(HAVE_CPU_ARM, test "x$HAVE_CPU_ARM" = "xyes")
673 AM_CONDITIONAL(HAVE_CPU_SPARC, test "x$HAVE_CPU_SPARC" = "xyes")
674 AM_CONDITIONAL(HAVE_LIBMMX, test "x$USE_LIBMMX" = "xyes")
676 AM_CONDITIONAL(HAVE_ATOMIC_H, test "x$USE_ATOMIC_H" = "xyes")
678 AM_CONDITIONAL(EXPERIMENTAL, test "$EXPERIMENTAL" = "$xyes")
679 AM_CONDITIONAL(BROKEN, test "$BROKEN" = "$xyes")
681 AM_CONDITIONAL(HAVE_NASM, test "x$HAVE_NASM" = "xyes")
682 AM_CONDITIONAL(HAVE_LIBGLADE_GNOME, test "x$HAVE_LIBGLADE_GNOME" = "xyes")
683 AM_CONDITIONAL(HAVE_GNOME, test "x$HAVE_GNOME" = "xyes")
684 AM_CONDITIONAL(HAVE_GTK, test "x$HAVE_GTK" = "xyes")
685 AM_CONDITIONAL(HAVE_GTK_DOC, $HAVE_GTK_DOC)
686 AM_CONDITIONAL(BUILD_DOCS, test "x$BUILD_DOCS" = "xyes")
687 AM_CONDITIONAL(BUILD_TESTS, test "x$BUILD_TESTS" = "xyes")
688 AM_CONDITIONAL(BUILD_EXAMPLES, test "x$BUILD_EXAMPLES" = "xyes")
689 AM_CONDITIONAL(BUILD_PLUGIN_DOCS, test "x$BUILD_PLUGIN_DOCS" = "xyes")
690 AM_CONDITIONAL(HAVE_FIG2DEV_PNG, $HAVE_FIG2DEV_PNG)
691 AM_CONDITIONAL(HAVE_FIG2DEV_PDF, $HAVE_FIG2DEV_PDF)
692 AM_CONDITIONAL(HAVE_RAW1394, test "x$HAVE_RAW1394" = "xyes")
694 GST_CFLAGS="$GST_CFLAGS -I\$(top_srcdir)/gst-libs -Wall"
698 dnl #########################
699 dnl # Make the output files #
700 dnl #########################
705 gstreamer-libs-uninstalled.pc
708 gst/ac3parse/Makefile
710 gst/audioscale/Makefile
715 gst/deinterlace/Makefile
718 gst/intfloat/Makefile
722 gst/mpeg1enc/Makefile
723 gst/mpeg1sys/Makefile
724 gst/mpeg1videoparse/Makefile
725 gst/mpeg2enc/Makefile
726 gst/mpeg2sub/Makefile
727 gst/mpegaudio/Makefile
728 gst/mpegaudioparse/Makefile
729 gst/mpegstream/Makefile
730 gst/mpegtypes/Makefile
731 gst/passthrough/Makefile
732 gst/playondemand/Makefile
737 gst/spectrum/Makefile
740 gst/stereomono/Makefile
741 gst/synaesthesia/Makefile
743 gst/videoscale/Makefile
747 gst/wavparse/Makefile
762 ext/audiofile/Makefile
764 ext/cdparanoia/Makefile
768 ext/festival/Makefile
770 ext/gnomevfs/Makefile
779 ext/mjpegtools/Makefile
780 ext/mpeg2dec/Makefile
781 ext/openquicktime/Makefile
787 ext/smoothwave/Makefile
792 gst-libs/gst/Makefile
793 gst-libs/gst/audio/Makefile
794 gst-libs/gst/idct/Makefile
795 gst-libs/gst/resample/Makefile
796 gst-libs/gst/riff/Makefile
797 examples/capsfilter/Makefile
805 echo -e "configure: *** Plugins that will be built : $GST_PLUGINS_YES"
807 echo -e "configure: *** Plugins that will not be built : $GST_PLUGINS_NO"