]> Gitweb @ Texas Instruments - Open Source Git Repositories - git.TI.com/gitweb - glsdk/gst-plugins-ugly0-10.git/blob - configure.ac
configure.ac: Applied patch from bug #143659, making default and added code for OS/X.
[glsdk/gst-plugins-ugly0-10.git] / configure.ac
1 dnl autoconf configuration file for gst-plugins 
2 AC_INIT
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
8 AM_DISABLE_STATIC
10 dnl AM_MAINTAINER_MODE only provides the option to configure to enable it
11 AM_MAINTAINER_MODE
13 dnl when going to/from release please set the nano (fourth number) right !
14 dnl releases only do Wall, cvs and prerelease does Werror too
15 AS_VERSION(gst-plugins, GST_PLUGINS_VERSION, 0, 8, 6, 1, GST_CVS="no", GST_CVS="yes")
17 AM_INIT_AUTOMAKE($PACKAGE,$VERSION)
19 dnl our libraries and install dirs use major.minor as a version
20 GST_MAJORMINOR=$GST_PLUGINS_VERSION_MAJOR.$GST_PLUGINS_VERSION_MINOR
21 dnl we override it here if we need to for the release candidate
22 #GST_MAJORMINOR=0.8
23 AC_SUBST(GST_MAJORMINOR)
25 dnl CURRENT, REVISION, AGE
26 dnl - library source changed -> increment REVISION
27 dnl - interfaces added/removed/changed -> increment CURRENT, REVISION = 0
28 dnl - interfaces added -> increment AGE
29 dnl - interfaces removed -> AGE = 0
30 dnl for 0.8.3 release, gst_play_get_all_by_interface was added, so update
31 AS_LIBTOOL(GST_PLUGINS, 1, 0, 1)
32 AM_PROG_LIBTOOL
34 dnl FIXME take something else ?
35 AC_CONFIG_SRCDIR([gst/law/alaw.c])
36 AM_CONFIG_HEADER(config.h)
38 dnl Add parameters for aclocal
39 dnl (This must come after AM_INIT_AUTOMAKE, since it modifies ACLOCAL)
40 ACLOCAL_FLAGS="-I m4 -I common/m4"
41 AC_SUBST(ACLOCAL_AMFLAGS, $ACLOCAL_FLAGS)
43 AC_PROG_CC
44 AM_PROG_CC_STDC
45 AM_PROG_AS
46 AS="${CC}"
47 AS_PROG_OBJC
49 dnl the gettext stuff needed
50 AM_GNU_GETTEXT_VERSION(0.11.5)
51 AM_GNU_GETTEXT([external])
52                                                                                 
53 GETTEXT_PACKAGE=gst-plugins-$GST_MAJORMINOR
54 AC_SUBST(GETTEXT_PACKAGE)
55 AC_DEFINE_UNQUOTED([GETTEXT_PACKAGE], "$GETTEXT_PACKAGE",
56                    [gettext package name])
57                                                                                 
58 dnl define LOCALEDIR in config.h
59 AS_AC_EXPAND(LOCALEDIR, $datadir/locale)
60 AC_DEFINE_UNQUOTED([LOCALEDIR], "$LOCALEDIR",
61                    [gettext locale dir])
63 dnl decide on error flags
64 AS_COMPILER_FLAG(-Wall, GST_WALL="yes", GST_WALL="no")
66 if test "x$GST_WALL" = "xyes"; then
67    GST_ERROR="$GST_ERROR -Wall"
69    if test "x$GST_CVS" = "xyes"; then
70      AS_COMPILER_FLAG(-Werror,GST_ERROR="$GST_ERROR -Werror",GST_ERROR="$GST_ERROR")
71    fi
72 fi
74 dnl determine c++ compiler
75 AC_PROG_CXX
76 dnl determine if c++ is available on this system
77 AC_CHECK_PROG(HAVE_CXX, $CXX, yes, no)
78 dnl determine c++ preprocessor
79 AC_PROG_CXXCPP
80 AC_ISC_POSIX
82 AC_HEADER_STDC([])
83 AC_C_INLINE
84 AX_CREATE_STDINT_H
86 dnl Check for malloc.h
87 AC_CHECK_HEADER(malloc.h,[
88   AC_DEFINE(HAVE_MALLOC_H, 1, [whether malloc.h available])
89 ])
91 dnl Check for a way to display the function name in debug output
92 GST_CHECK_FUNCTION()
94 dnl define correct errorlevel for debugging messages. We want to have GST_ERROR
95 dnl messages printed when running cvs builds
96 if test "x$GST_CVS" = "xyes"; then
97   AC_DEFINE(GST_LEVEL_DEFAULT, GST_LEVEL_ERROR, [Default errorlevel to use])
98 fi
100 dnl Check for FIONREAD ioctl declaration :
101 GST_CHECK_FIONREAD()
103 DEFAULT_AUDIOSINK="osssink"
104 DEFAULT_VIDEOSINK="xvimagesink"
105 DEFAULT_AUDIOSRC="osssrc"
106 DEFAULT_VIDEOSRC="v4lsrc"
107 DEFAULT_VISUALIZER="goom"
108 case "$host" in 
109   *-sun-* | *pc-solaris* )
110     DEFAULT_AUDIOSINK="sunaudiosink"
111     DEFAULT_VIDEOSINK="ximagesink"
112     DEFAULT_AUDIOSRC="sunaudiosrc"
113     ;;
114   *-darwin* )
115     DEFAULT_AUDIOSINK="osxaudiosink"
116     DEFAULT_AUDIOSRC="osxaudiosrc"
117     DEFAULT_VIDEOSINK="osxvideosink"
118     ;;
119 esac
121 AC_SUBST(DEFAULT_AUDIOSINK)
122 AC_SUBST(DEFAULT_AUDIOSRC)
123 AC_SUBST(DEFAULT_VIDEOSINK)
124 AC_SUBST(DEFAULT_VIDEOSRC)
125 AC_SUBST(DEFAULT_VISUALIZER)
127 dnl ############################################
128 dnl # Super Duper options for plug-in building #
129 dnl ############################################
131 dnl ext plug-ins; plug-ins that have external dependencies
132 GST_CHECK_FEATURE(EXTERNAL, [enable building of plug-ins with external deps],,
133 [HAVE_EXTERNAL=yes],enabled,
135   AC_MSG_WARN(building external plug-ins)
136   BUILD_EXTERNAL="yes"
137 ],[
138   AC_MSG_WARN(all plug-ins with external dependencies will not be built)
139   BUILD_EXTERNAL="no"
140 ])
141 # make BUILD_EXTERNAL available to Makefile.am
142 AM_CONDITIONAL(BUILD_EXTERNAL, test "x$BUILD_EXTERNAL" = "xyes")
144 dnl experimental plug-ins; stuff that hasn't had the dust settle yet
145 dnl read 'builds, but might not work'UTO
146 GST_CHECK_FEATURE(EXPERIMENTAL, [enable building of experimental plug-ins],,
147 [HAVE_EXPERIMENTAL=yes],disabled,
149   AC_MSG_WARN(building experimental plug-ins)
150   USE_TARKIN="yes"
151 ],[
152   AC_MSG_NOTICE(not building experimental plug-ins)
153   USE_TARKIN="no"
154 ])
156 dnl broken plug-ins; stuff that doesn't seem to build at the moment
157 GST_CHECK_FEATURE(BROKEN, [enable building of broken plug-ins],,
158 HAVE_BROKEN=yes,disabled,
159 [  
160   AC_MSG_WARN([building broken plug-ins -- no bug reports on these, only patches :)])
161 ],[
162   AC_MSG_NOTICE([not building broken plug-ins])
163 ])
165 dnl ##############################
166 dnl # Do automated configuration #
167 dnl ##############################
169 dnl Check for tools:
170 dnl ================
172 dnl allow for different autotools
173 AS_AUTOTOOLS_ALTERNATE()
175 dnl modify pkg-config path
176 AC_ARG_WITH(pkg-config-path, 
177    AC_HELP_STRING([--with-pkg-config-path],[colon-separated list of pkg-config(1) dirs]),
178    [export PKG_CONFIG_PATH=${withval}])
180 dnl check architecture
181 GST_ARCH()
183 dnl check for gconftool-2
185 dnl this macro defines an am conditional, so it needs to be run always
186 AM_GCONF_SOURCE_2
188 translit(dnm, m, l) AM_CONDITIONAL(USE_GCONFTOOL, true)
189 GST_CHECK_FEATURE(GCONFTOOL, [GConf schemas], , [
190   AC_PATH_PROG(GCONFTOOL, gconftool-2, no)
191   if test x$GCONFTOOL = xno; then
192     AC_MSG_WARN(Not installing GConf schemas)
193     HAVE_GCONFTOOL="no"
194   else
195     HAVE_GCONFTOOL="yes"
196   fi
197   AC_SUBST(HAVE_GCONFTOOL)
198 ])
200 dnl check for GConf libraries
201 translit(dnm, m, l) AM_CONDITIONAL(USE_GCONF, true)
202 GST_CHECK_FEATURE(GCONF, [GConf libraries], , [
203   PKG_CHECK_MODULES(GCONF, gconf-2.0, HAVE_GCONF="yes", HAVE_GCONF="no")
204   AC_SUBST(GCONF_CFLAGS)
205   AC_SUBST(GCONF_LIBS)
206 ])
208 dnl check for gstreamer
209 dnl uninstalled is selected preferentially -- see pkg-config(1)
210 GST_REQ=0.8.7.1
211 PKG_CHECK_MODULES(GST, gstreamer-$GST_MAJORMINOR >= $GST_REQ,
212   HAVE_GST="yes", HAVE_GST="no")
214 if test "x$HAVE_GST" = "xno"; then
215   AC_MSG_ERROR(no GStreamer found)
216 fi
218 GST_TOOLS_DIR=`pkg-config --variable=toolsdir gstreamer-$GST_MAJORMINOR`
219 if test -z $GST_TOOLS_DIR; then
220   AC_MSG_ERROR([no tools dir defined in GStreamer pkg-config file; core upgrade needed.])
221 fi
222 AC_SUBST(GST_TOOLS_DIR)
224 dnl check for gstreamer-control; uninstalled is selected preferentially
225 PKG_CHECK_MODULES(GST_CONTROL, gstreamer-control-$GST_MAJORMINOR >= $GST_REQ,
226   HAVE_GST_CONTROL="yes", HAVE_GST_CONTROL="no")
228 if test "x$HAVE_GST_CONTROL" = "xno"; then
229   AC_MSG_ERROR(no GStreamer Control Libs found)
230 fi
232 AC_SUBST(GST_CONTROL_LIBS)
234 dnl Determine endianness
235 AC_C_BIGENDIAN
237 dnl Check for fast float to int casting as defined in C99
238 AC_C99_FUNC_LRINT()
239 AC_C99_FUNC_LRINTF()
241 dnl Check for essential libraries first:
242 dnl ====================================
244 GST_GLIB2_CHECK()
246 dnl Check for additional libraries that we might use:
247 dnl =================================================
248 dnl GTK
249 HAVE_GTK=NO
250 PKG_CHECK_MODULES(GTK2, gtk+-2.0 >= 2.2.0, HAVE_GTK_22=yes, HAVE_GTK_22=no)
251 if test "x$HAVE_GTK_22" = "xyes"; then
252   HAVE_GTK=yes
253   GTK_VERSION=`$PKG_CONFIG --variable=gtk_binary_version gtk+-2.0`
254   AC_SUBST(GTK_VERSION)
255   GTK_PREFIX=`$PKG_CONFIG --variable=prefix gdk-pixbuf-2.0`
256   GDK_PIXBUF_LIBDIR=`$PKG_CONFIG --variable=libdir gdk-pixbuf-2.0`
257   GDK_PIXBUF_PREFIXDIR=`$PKG_CONFIG --variable=prefix gdk-pixbuf-2.0`
258   AC_SUBST(GTK_BASE_DIR)
259 else
260   PKG_CHECK_MODULES(GTK2, gtk+-2.0, HAVE_GTK_20=yes, HAVE_GTK_20=no)
261 fi
262 if test "x$HAVE_GTK_20" = "xyes"; then
263   HAVE_GTK=yes
264 fi
265 GTK_CFLAGS=$GTK2_CFLAGS
266 GTK_LIBS=$GTK2_LIBS
267 AC_SUBST(GTK_LIBS)
268 AC_SUBST(GTK_CFLAGS)
269 AC_SUBST(HAVE_GTK)
271 # gdk_pixbuf gstreamer loader is considered experimental, so disable
272 # by default
273 if test "x$HAVE_GTK_22" = "xyes"; then
274   HAVE_GDK_LOADERS=yes
275 else
276   HAVE_GDK_LOADERS=no
277 fi
279 # we set the defaults always to make sure we have non-empty variables
280 # for the Makefile
282 # by default, stick to prefix
283 GDK_PIXBUF_LOADER_DIR=${libdir}/gtk-2.0/\${GTK_VERSION}/loaders
284 GDK_PIXBUF_CONF_DIR=${sysconfdir}/gtk-2.0
287 AC_ARG_ENABLE(gdk-pixbuf-loader,
288   AC_HELP_STRING([--enable-gdk-pixbuf-loader],
289               [whether to enable building of gdk_pixbuf loader]),
290               :, HAVE_GDK_LOADERS="no")
292 if test "x$HAVE_GDK_LOADERS" = "xyes"; then
293   AC_PATH_PROG(QUERYLOADERS, gdk-pixbuf-query-loaders, no)
294   # allow customization of pixbuf loader install location
295   # when nothing specified, adhere to prefix settings
296   # when called without any option with this argument, autodetect
297   # when called with a path, set to the given path
299   AC_ARG_WITH(gdk-pixbuf-loader-dir, 
300      AC_HELP_STRING([--with-gdk-pixbuf-loader-dir],
301         [directory to install the gdk_pixbuf loader (none for pkg-config default)]),
302      [
303       if test "x${withval}" != xyes ; then
304         GDK_PIXBUF_LOADER_DIR="${withval}"
305       else
306         GDK_PIXBUF_LOADER_DIR="$GDK_PIXBUF_LIBDIR/gtk-2.0/\$GTK_VERSION/loaders"
307       fi
308      ]
309   )
310   AS_AC_EXPAND(GDK_PIXBUF_LOADER_DIR, $GDK_PIXBUF_LOADER_DIR)
311   AC_SUBST(GDK_PIXBUF_LOADER_DIR)
312   AC_MSG_NOTICE([Putting GTK+-2 pixbuf loaders in $GDK_PIXBUF_LOADER_DIR])
313   
314   # allow customization of pixbuf loader configuration file
315   # when nothing specified, adhere to prefix settings
316   # when called without any option with this argument, autodetect
317   # when called with a path, set to the given path
319   AC_ARG_WITH(gdk-pixbuf-conf-dir, 
320      AC_HELP_STRING([--with-gdk-pixbuf-conf-dir],
321         [directory to install the gdk_pixbuf config (none for pkg-config default)]),
322      [
323       if test "x${withval}" != xyes ; then
324         GDK_PIXBUF_CONF_DIR="${withval}"
325       else
326         GDK_PIXBUF_CONF_DIR="$GDK_PIXBUF_PREFIXDIR/etc/gtk-2.0/"
327       fi
328      ]
329   )
330   AS_AC_EXPAND(GDK_PIXBUF_CONF_DIR, $GDK_PIXBUF_CONF_DIR)
331   AC_SUBST(GDK_PIXBUF_CONF_DIR)
332   AC_MSG_NOTICE([Putting GTK+-2 pixbuf loader config in $GDK_PIXBUF_CONF_DIR])
333 fi
334 AM_CONDITIONAL(HAVE_GDK_LOADERS, test "x$HAVE_GDK_LOADERS" = "xyes")
336 PKG_CHECK_MODULES(LIBOIL, liboil-0.2, HAVE_LIBOIL=yes, HAVE_LIBOIL=no)
337 AC_SUBST(LIBOIL_CFLAGS)
338 AC_SUBST(LIBOIL_LIBS)
339 if test "x${HAVE_LIBOIL}" = xyes ; then
340   #AC_DEFINE_UNQUOTED(HAVE_LIBOIL, 1, [Define if liboil is being used])
341   true
342 fi
344 dnl ===========================================================================
345 dnl ============================= gst plug-ins ================================
346 dnl ===========================================================================
348 plugindir="\$(libdir)/gstreamer-$GST_MAJORMINOR"
349 AC_SUBST(plugindir)
351 GST_PLUGIN_LDFLAGS="-module -avoid-version -export-symbols-regex '[_]*(gst_|Gst|GST_).*' $GST_LIBS"
352 AC_SUBST(GST_PLUGIN_LDFLAGS)
354 dnl these are all the gst plug-ins, compilable without additional libs
355 GST_PLUGINS_ALL="\
356         ac3parse \
357         adder \
358         alpha \
359         apetag \
360         asfdemux \
361         audioconvert \
362         audioscale \
363         audiorate \
364         auparse \
365         avi \
366         cdxaparse \
367         chart \
368         colorspace \
369         cutter \
370         debug \
371         deinterlace \
372         effectv \
373         equalizer \
374         festival \
375         ffmpegcolorspace \
376         filter \
377         flx \
378         goom \
379         interleave \
380         law \
381         level \
382         matroska \
383         median \
384         mixmatrix \
385         mpeg1sys \
386         mpeg1videoparse \
387         mpeg2sub \
388         mpegaudio \
389         mpegaudioparse \
390         mpegstream \
391         monoscope \
392         multifilesink \
393         multipart \
394         overlay \
395         passthrough \
396         playback \
397         playondemand \
398         qtdemux \
399         realmedia \
400         rtjpeg \
401         rtp \
402         silence \
403         sine \
404         smooth \
405         smpte \
406         spectrum \
407         speed \
408         stereo \
409         switch \
410         synaesthesia \
411         tags \
412         tcp \
413   tta \
414         typefind \
415         udp \
416         vbidec \
417         videobox \
418         videocrop \
419         videodrop \
420         videoflip \
421         videofilter \
422         videomixer \
423         videorate \
424         videoscale \
425         videotestsrc \
426         volenv \
427         volume \
428         wavenc \
429         wavparse \
430         y4m"
432 dnl see if we can build C++ plug-ins
433 if test "x$HAVE_CXX" = "xyes"; then
434   GST_PLUGINS_ALL="$GST_PLUGINS_ALL \
435                   modplug"
436 else
437   AC_MSG_WARN([Not compiling plug-ins requiring C++ compiler])
438 fi
440 AC_SUBST(GST_PLUGINS_ALL)
442 GST_PLUGINS_SELECTED=""
444 AC_ARG_WITH(plugins,
445     AC_HELP_STRING([--with-plugins],[comma-separated list of plug-ins to compile]),
446     [for i in `echo $withval | tr , ' '`; do
447         if echo $GST_PLUGINS_ALL | grep $i > /dev/null
448         then
449             GST_PLUGINS_SELECTED="$GST_PLUGINS_SELECTED $i"
450         else
451             echo "plug-in $i not recognized, ignoring..."
452         fi
453     done],
454     [GST_PLUGINS_SELECTED=$GST_PLUGINS_ALL])
456 AC_SUBST(GST_PLUGINS_SELECTED)
458 dnl ==========================================================================
459 dnl ============================= sys plug-ins ================================
460 dnl ==========================================================================
462 dnl *** DXR3 card ***
463 translit(dnm, m, l) AM_CONDITIONAL(USE_DXR3, true)
464 GST_CHECK_FEATURE(DXR3, [DXR3 hardware MPEG DVD decoder],
465   dxr3videosink dxr3audiosink dxr3spusink, [
466   HAVE_DXR3=yes
467   AC_CHECK_HEADER(linux/em8300.h, ,
468                   [ AC_MSG_WARN([DXR3/em8300 header file not found]) &&
469                     HAVE_DXR3=no ] )
470   AC_CHECK_HEADER(linux/soundcard.h, ,
471                   [ AC_MSG_WARN([Generic sound header file not found]) &&
472                     HAVE_DXR3=no ] )
473 ])
475 dnl *** OSS audio *** (Linux, *BSD)
476 translit(dnm, m, l) AM_CONDITIONAL(USE_OSS, true)
477 GST_CHECK_FEATURE(OSS, [OSS audio], osssrc osssink, [
478   HAVE_OSS="yes"
479   dnl Linux and newer BSD versions :
480   AC_CHECK_HEADER(sys/soundcard.h, [
481     AC_DEFINE(HAVE_OSS_INCLUDE_IN_SYS,, [Define if OSS includes are in /sys/])
482     ] , [
483     dnl Some old BSD versions :
484     AC_CHECK_HEADER(soundcard.h, [
485       AC_DEFINE(HAVE_OSS_INCLUDE_IN_ROOT,, [Define if OSS includes are in /])
486       ], [
487       dnl Some old BSD versions :
488       AC_CHECK_HEADER(machine/soundcard.h, [
489         AC_DEFINE(HAVE_OSS_INCLUDE_IN_MACHINE,, [Define if OSS includes are in /machine/])
490         ], [
491         HAVE_OSS="no"
492       ])
493     ])
494   ])
495 ])
497 dnl *** OS X audio ***
498 translit(dnm, m, l) AM_CONDITIONAL(USE_OSX_AUDIO, true)
499 GST_CHECK_FEATURE(OSX_AUDIO, [OSX audio], osxaudiosrc osxaudiosink, [
500   AC_CHECK_HEADER(CoreAudio/CoreAudio.h, HAVE_OSX_AUDIO="yes", HAVE_OSX_AUDIO="no")
501 ])
503 dnl *** OS X video ***
504 translit(dnm, m, l) AM_CONDITIONAL(USE_OSX_VIDEO, true)
505 HAVE_OSX_VIDEO="no"
506 GST_CHECK_FEATURE(OSX_VIDEO, [OSX video], osxvideosink, [
507   AC_CHECK_HEADER(OpenGL/gl.h, HAVE_OSX_VIDEO="yes", HAVE_OSX_VIDEO="no")
508 ])
509 dnl in case header OpenGL/gl.h is found on other platforms
510 case "$host" in
511   *-*darwin*)
512     dnl do nothing
513     ;;
514   *)
515     HAVE_OSX_VIDEO="no"
516     ;;
517 esac
519 dnl *** QuickCam ***
520 translit(dnm, m, l) AM_CONDITIONAL(USE_QCAM, true)
521 GST_CHECK_FEATURE(QCAM, [QuickCam], qcamsrc, [
522   if test "x$HAVE_CPU_I386" != "xyes";
523   then
524     HAVE_QCAM="no"
525   else
526     AC_CHECK_HEADER(sys/io.h, HAVE_QCAM="yes", HAVE_QCAM="no")
527   fi
528   if test "x$HAVE_QCAM" != "xyes";
529   then
530     AC_MSG_WARN([QuickCam only works on i386-linux])
531   fi
532 ])
534 dnl *** Sun Audio ***
535 translit(dnm, m, l) AM_CONDITIONAL(USE_SUNAUDIO, true)
536 GST_CHECK_FEATURE(SUNAUDIO, [Sun Audio], sunaudiosink, [
537   AC_CHECK_HEADER(sys/audioio.h, HAVE_SUNAUDIO="yes", HAVE_SUNAUDIO="no")
538 ])
540 dnl *** Video CD ***
541 translit(dnm, m, l) AM_CONDITIONAL(USE_VCD, true)
542 GST_CHECK_FEATURE(VCD, [Video CD], vcdsrc, [
543   AC_CHECK_HEADER(linux/cdrom.h, HAVE_VCD="yes", HAVE_VCD="no")
544 ])
546 dnl *** OpenGL ***
547 translit(dnm, m, l) AM_CONDITIONAL(USE_OPENGL, true)
548 GST_CHECK_FEATURE(OPENGL, [Open GL], glsink, [
549   AC_CHECK_HEADER(GL/gl.h, HAVE_OPENGL="yes", HAVE_OPENGL="no")
550 ])
552 dnl *** CDROM Audio ***
553 translit(dnm, m, l) AM_CONDITIONAL(USE_CDROM, true)
554 GST_CHECK_FEATURE(CDROM, [CDROM Audio], cdrom, [
555   AC_CHECK_HEADERS(linux/cdrom.h) dnl linux
556   AC_CHECK_HEADERS(sys/cdio.h) dnl almost everything else
557 dnl  AC_CHECK_HEADERS(dmedia/cdaudio.h) dnl irix
559   if test "${ac_cv_header_linux_cdrom_h}" = "yes" || test "${ac_cv_header_sys_cdio_h}" = "yes" || test "${ac_cv_header_dmedia_cdaudio_h}" = "yes"; then
560         case "$host" in 
561                 *-sun-* | *-*-linux*)
562                         AC_DEFINE(HAVE_CDROM_SOLARIS,, [Define if cdrom access is in Solaris style])
563                 ;;
564                 *-*-freebsd*)
565                         AC_DEFINE(HAVE_CDROM_BSD,, [Define if cdrom access is in BSD style])
566                 ;;
567                 *-*-netbsd* | *-*-openbsd*)
568                         AC_DEFINE(HAVE_CDROM_BSD,, [Define if cdrom access is in BSD style])
569                         AC_DEFINE(HAVE_CDROM_BSD_NETBSD,, [Define if cdrom access uses NetBSD variant])
570                 ;;
571                 *-*darwin*)
572                         AC_DEFINE(HAVE_CDROM_BSD,, [Define if cdrom access is in BSD style])
573                         AC_DEFINE(HAVE_CDROM_BSD_DARWIN,, [Define if cdrom access uses Darwin variant])
574                 ;;
575 dnl             *-irix-*)
576 dnl                     AC_DEFINE(HAVE_CDROM_IRIX,, [Define if cdrom access is in Irix DMedia style])
577 dnl             ;;
578     esac
580         HAVE_CDROM="yes"
581   else
582         HAVE_CDROM="no"
583   fi
584 ])
586 dnl Check for X11
587 translit(dnm, m, l) AM_CONDITIONAL(USE_X, true)
588 GST_CHECK_FEATURE(X, [X libraries and plugins],
589                   [ximagesink], [
590   AC_PATH_XTRA
591   dnl now try to find the HEADER
592   AC_CHECK_HEADER(X11/Xlib.h, HAVE_X="yes", HAVE_X="no")
594   if test "x$HAVE_X" = "xno"
595   then
596     AC_MSG_NOTICE([cannot find X11 development files])
597   else
598     dnl this is much more than we want
599     X_LIBS="$X_LIBS $X_PRE_LIBS $X_EXTRA_LIBS"
600     dnl AC_PATH_XTRA only defines the path needed to find the X libs,
601     dnl it does not add the libs; therefore we add them here
602     X_LIBS="$X_LIBS -lX11"
603     AC_SUBST(X_CFLAGS)
604     AC_SUBST(X_LIBS)
605   fi
606   AC_SUBST(HAVE_X)
607 ])
608   
609 dnl *** XVideo ***
610 dnl Look for the PIC library first, Debian requires it.
611 dnl Check debian-devel archives for gory details.
612 dnl 20020110:
613 dnl At the moment XFree86 doesn't distribute shared libXv due
614 dnl to unstable API.  On many platforms you CAN NOT link a shared
615 dnl lib to a static non-PIC lib.  This is what the xvideo GStreamer
616 dnl plug-in wants to do.  So Debian distributes a PIC compiled
617 dnl version of the static lib for plug-ins to link to when it is
618 dnl inappropriate to link the main application to libXv directly.
619 dnl FIXME: add check if this platform can support linking to a
620 dnl        non-PIC libXv, if not then don not use Xv.
621 dnl FIXME: perhaps warn user if they have a shared libXv since
622 dnl        this is an error until XFree86 starts shipping one
623    
624 dnl Check for Xv extension
625 translit(dnm, m, l) AM_CONDITIONAL(USE_XVIDEO, true)
626 GST_CHECK_FEATURE(XVIDEO, [X11 XVideo extensions],
627                   [xvimagesink], [
628   if test x$HAVE_X = xyes; then
629     AC_CHECK_LIB(Xv_pic, XvQueryExtension,
630                  HAVE_XVIDEO="yes", HAVE_XVIDEO="no",
631                  $X_LIBS -lXext)
633     if test x$HAVE_XVIDEO = xyes; then
634       XVIDEO_LIBS="-lXv_pic -lXext"
635       AC_SUBST(XVIDEO_LIBS)
636     else
637       dnl try again using something else if we didn't find it first
638       if test x$HAVE_XVIDEO = xno; then
639         AC_CHECK_LIB(Xv, XvQueryExtension,
640                    HAVE_XVIDEO="yes", HAVE_XVIDEO="no",
641                    $X_LIBS -lXext)
643         if test x$HAVE_XVIDEO = xyes; then
644           XVIDEO_LIBS="-lXv -lXext"
645           AC_SUBST(XVIDEO_LIBS)
646         fi
647       fi
648     fi
649   fi
650 ])
652 dnl check for X Shm
653 translit(dnm, m, l) AM_CONDITIONAL(USE_XSHM, true)
654 GST_CHECK_FEATURE(XSHM, [X Shared Memory extension], xshm, [
655   if test x$HAVE_X = xyes; then
656     AC_CHECK_LIB(Xext, XShmAttach, 
657                  HAVE_XSHM="yes", HAVE_XSHM="no",
658                  $X_LIBS) 
659     if test "x$HAVE_XSHM" = "xyes"; then
660       XSHM_LIBS="-lXext"
661     else
662       dnl On AIX, it is in XextSam instead, but we still need -lXext
663       AC_CHECK_LIB(XextSam, XShmAttach, 
664                    HAVE_XSHM="yes", HAVE_XSHM="no",
665                    $X_LIBS) 
666       if test "x$HAVE_XSHM" = "xyes"; then
667         XSHM_LIBS="-lXext -lXextSam"
668       fi
669     fi
670   fi
671 ], , [ 
672   AC_SUBST(HAVE_XSHM) 
673   AC_SUBST(XSHM_LIBS) 
674 ] )
676 dnl v4l/v4l2 checks have been moved down because they require X
678 dnl *** Video 4 Linux ***
679 dnl for information about the header/define, see sys/v4l/gstv4lelement.h
680 dnl renamed to GST_V4L in accordance with V4L2 below
681 translit(dnm, m, l) AM_CONDITIONAL(USE_GST_V4L, true)
682 GST_CHECK_FEATURE(GST_V4L, [Video 4 Linux], v4lsrc v4lmjpegsrc v4lmjpegsink, [
683   # first check X
684   HAVE_GST_V4L="no"
685   if test "$HAVE_X" = "yes"
686   then
687     AC_CHECK_DECL(VID_TYPE_MPEG_ENCODER, HAVE_GST_V4L="yes", HAVE_GST_V4L="no", [
688 #include <sys/types.h>
689 #define _LINUX_TIME_H
690 #include <linux/videodev.h>
691     ])
692   fi
693 ])
695 dnl *** Video 4 Linux 2 ***
696 dnl for information about the header/define, see sys/v4l2/gstv4l2element.h
697 dnl renamed to GST_V4L2 because of some conflict with kernel headers
698 translit(dnm, m, l) AM_CONDITIONAL(USE_GST_V4L2, true)
699 GST_CHECK_FEATURE(GST_V4L2, [Video 4 Linux 2], v4l2src, [
700   HAVE_GST_V4L2="no"
701   if test "$HAVE_X" = "yes"
702   then
703     AC_MSG_CHECKING([Checking for uptodate v4l2 installation])
704     AC_TRY_COMPILE([
705 #include <sys/types.h>
706 #include <linux/types.h>
707 #define _LINUX_TIME_H
708 #include <linux/videodev2.h>
709 #if defined(V4L2_MAJOR_VERSION) || defined(V4L2_MINOR_VERSION)
710 #error too early v4l2 version or no v4l2 at all
711 #endif
712     ], [
713 return 0;
714     ], [ HAVE_GST_V4L2="yes" && AC_MSG_RESULT(yes)],
715        [ HAVE_GST_V4L2="no"  && AC_MSG_RESULT(no) &&
716          AC_CHECK_HEADER(linux/videodev2.h,
717                          [ AC_MSG_WARN([video4linux2 headers were found, but they're old. Please update v4l2 to compile the v4l2 plugins])],
718                          [ AC_MSG_WARN([video4linux2 was not found])])
719        ])
720   fi
721   dnl check for missing v4l2_buffer declaration (see #135919)
722   if [ test x$HAVE_GST_V4L2 = xyes ]; then
723     MISSING_DECL=0
724     AC_MSG_CHECKING(struct v4l2_buffer declaration)
725     AC_TRY_COMPILE([
726 #include <sys/types.h>
727 #include <linux/types.h>
728 #define _LINUX_TIME_H
729 #include <linux/videodev2.h>
730     ],[
731 struct v4l2_buffer buf;
732 buf.index = 0;
733 return 0;
734     ], [ AC_MSG_RESULT(yes) ], [ MISSING_DECL=1 && AC_MSG_RESULT(no) ])
735     if [ test x$MISSING_DECL = x1 ]; then
736       AC_DEFINE(GST_V4L2_MISSING_BUFDECL, 1, [struct v4l2_buffer missing])
737     fi
738   fi
739 ])
741 dnl Next, check for the optional libraries:
742 dnl These are all libraries used in building plug-ins
743 dnl ================================================
744 dnl let's try and sort them alphabetically, shall we ?
746 if test "x$BUILD_EXTERNAL" = "xyes"; then
748 AC_MSG_NOTICE(Checking for plug-in dependency libraries)
750 dnl *** a52dec ***
751 translit(dnm, m, l) AM_CONDITIONAL(USE_A52DEC, true)
752 GST_CHECK_FEATURE(A52DEC, [a52dec], a52dec, [
753   AC_CHECK_A52DEC(HAVE_A52DEC=yes, HAVE_A52DEC=no)
754 ])
756 dnl *** aalib ***
757 translit(dnm, m, l) AM_CONDITIONAL(USE_AALIB, true)
758 GST_CHECK_FEATURE(AALIB, [aasink plug-in], aasink, [
759   AM_PATH_AALIB(, HAVE_AALIB=yes, HAVE_AALIB=no)
760   AS_SCRUB_INCLUDE(AALIB_CFLAGS)
761 ])
763 dnl *** alsa ***
764 translit(dnm, m, l) AM_CONDITIONAL(USE_ALSA, true)
765 GST_CHECK_FEATURE(ALSA, [alsa plug-ins], gstalsa, [
766   PKG_CHECK_MODULES(ALSA, alsa >= 0.9.1, [
767     HAVE_ALSA="yes"
768     AC_SUBST(ALSA_CFLAGS)
769     AC_SUBST(ALSA_LIBS)
770   ], [
771     AM_PATH_ALSA(0.9.1, HAVE_ALSA="yes", HAVE_ALSA="no")
772   ])
773 ])
775 dnl *** arts ***
776 dnl if mcopidl can't be found there's no use in compiling it
777 AC_CHECK_PROG(MCOPIDL, mcopidl, yes, no)
778 if test "x$HAVE_MCOPIDL" = "xno";
779 then
780   USE_ARTS=no
781 fi
783 translit(dnm, m, l) AM_CONDITIONAL(USE_ARTS, true)
784 GST_CHECK_FEATURE(ARTS, [arts plug-ins], arts, [
785   AM_PATH_ARTS(, HAVE_ARTS=yes, HAVE_ARTS=no)
786 ])
788 dnl *** artsc ***
789 translit(dnm, m, l) AM_CONDITIONAL(USE_ARTSC, true)
790 GST_CHECK_FEATURE(ARTSC, [artsd plug-ins], artsdsink, [
791   GST_CHECK_ARTSC()
792 ])
794 dnl *** audiofile ***
795 dnl this check uses the GST_CHECK_CONFIGPROG macro
796 translit(dnm, m, l) AM_CONDITIONAL(USE_AUDIOFILE, true)
797 GST_CHECK_FEATURE(AUDIOFILE, [audiofile], afsink afsrc, [
798   translit(dnm, m, l) AC_SUBST(AUDIOFILE_LIBS)
799   translit(dnm, m, l) AC_SUBST(AUDIOFILE_CFLAGS)
800   dnl check with pkg-config first
801   PKG_CHECK_MODULES(AUDIOFILE, audiofile, HAVE_AUDIOFILE="yes", HAVE_AUDIOFILE="no")
802   if test "x$HAVE_AUDIOFILE" = "xno"; then
803     GST_CHECK_CONFIGPROG(AUDIOFILE, audiofile-config)
804     dnl we need this function
805     AC_CHECK_LIB(audiofile, afOpenVirtualFile, , HAVE_AUDIOFILE="no")
806     AC_CHECK_LIB(audiofile, af_virtual_file_new, , HAVE_AUDIOFILE="no")
807   fi])
809 dnl *** cdaudio ***
810 translit(dnm, m, l) AM_CONDITIONAL(USE_CDAUDIO, true)
811 GST_CHECK_FEATURE(CDAUDIO, [cdaudio], cdaudio, [
812   GST_CHECK_CONFIGPROG(CDAUDIO, libcdaudio-config)
813   AC_SUBST(CDAUDIO_CFLAGS)
814   AC_SUBST(CDAUDIO_LIBS)
815 ])
818 dnl *** CDParanoia ***
819 translit(dnm, m, l) AM_CONDITIONAL(USE_CDPARANOIA, true)
820 GST_CHECK_FEATURE(CDPARANOIA, [CDParanoia], cdparanoia, [
821   GST_CHECK_LIBHEADER(CDPARANOIA, cdda_interface, 
822                       cdda_open, -lm, 
823                       cdda_interface.h, 
824                       CDPARANOIA_LIBS="-lcdda_interface -lcdda_paranoia"
825                       HEADER_DIR="no"
826                       FOUND_CDPARANOIA="yes")
827   if test "x$FOUND_CDPARANOIA" != "xyes";
828   then
829     GST_CHECK_LIBHEADER(CDPARANOIA, cdda_interface, 
830                         cdda_open, -lm, 
831                         cdda/cdda_interface.h, 
832                         CDPARANOIA_LIBS="-lcdda_interface -lcdda_paranoia"
833                         HEADER_DIR="yes"
834                         FOUND_CDPARANOIA="yes")
835   fi
836   if test "x$HEADER_DIR" = "xyes";
837   then
838     AC_DEFINE_UNQUOTED(CDPARANOIA_HEADERS_IN_DIR, ,
839                        defined if cdda headers are in a cdda/ directory)
840   fi
841   AC_SUBST(CDPARANOIA_LIBS)
842 ])
843 dnl FIXME : add second check somehow if that is necessary
844 dnl AC_CHECK_LIB(cdda_paranoia, paranoia_init, : , HAVE_CDPARANOIA=no, -lcdda_interface )
845 dnl AC_CHECK_HEADER(cdda_paranoia.h, :, HAVE_CDPARANOIA=no)
847 dnl *** dirac ***
848 translit(dnm, m, l) AM_CONDITIONAL(USE_DIRAC, true)
849 GST_CHECK_FEATURE(DIRAC, [dirac plug-ins], dirac, [
850   PKG_CHECK_MODULES(DIRAC, dirac-pic >= 0.4, HAVE_DIRAC="yes", HAVE_DIRAC="no")
851   if test x$HAVE_DIRAC = xno ; then
852     PKG_CHECK_MODULES(DIRAC, dirac >= 0.4, HAVE_DIRAC="yes", HAVE_DIRAC="no")
853   fi
854   AC_SUBST(DIRAC_CFLAGS)
855   AC_SUBST(DIRAC_LIBS)
856 ])
858 dnl *** DirectFB ***
859 translit(dnm, m, l) AM_CONDITIONAL(USE_DIRECTFB, true)
860 GST_CHECK_FEATURE(DIRECTFB, [directfb], directfbvideosink , [
861   translit(dnm, m, l) AC_SUBST(DIRECTFB_LIBS)
862   translit(dnm, m, l) AC_SUBST(DIRECTFB_CFLAGS)
863   dnl check with pkg-config
864   PKG_CHECK_MODULES(DIRECTFB, directfb,
865                     HAVE_DIRECTFB="yes", HAVE_DIRECTFB="no")
866 ])
868 dnl *** DIVX ***
869 translit(dnm, m, l) AM_CONDITIONAL(USE_DIVX, true)
870 GST_CHECK_FEATURE(DIVX, [divx plugins], divx, [
871   HAVE_DIVX=yes
872   AC_CHECK_HEADER(encore2.h, ,
873                   [ AC_MSG_WARN([Divx4linux encore headers not found]) &&
874                     HAVE_DIVX=no ] )
875   if [ test x$HAVE_DIVX = xyes ]; then
876     AC_MSG_CHECKING([Checking for valid divx4linux encore version])
877     AC_TRY_COMPILE([
878 #include <encore2.h>
879 #if ENCORE_VERSION != 20021024
880 #error Wrong version of divx encore libraries
881 #endif
882     ], [
883 return 0;
884     ], [ HAVE_DIVX=yes && AC_MSG_RESULT(yes)],
885        [ HAVE_DIVX=no  && AC_MSG_RESULT(no) &&
886          AC_MSG_WARN([Wrong version of divx4linux installed]) ])
887   fi
888   if [ test x$HAVE_DIVX = xyes ]; then
889     AC_CHECK_HEADER(decore.h, ,
890                     [ AC_MSG_WARN([Divx4linux decoder headers not found]) &&
891                       HAVE_DIVX=no ] )
892   fi
893   if [ test x$HAVE_DIVX = xyes ]; then
894     AC_MSG_CHECKING([Checking for valid divx4linux decore version])
895     AC_TRY_COMPILE([
896 #include <decore.h>
897 #if DECORE_VERSION != 20021112
898 #error Wrong version of divx decore libraries
899 #endif
900     ], [
901 return 0;
902     ], [ HAVE_DIVX=yes && AC_MSG_RESULT(yes)],
903        [ HAVE_DIVX=no  && AC_MSG_RESULT(no) &&
904          AC_MSG_WARN([Wrong version of divx4linux installed]) ])
905   fi
906   LIBS="-lm"
907   if test x$HAVE_DIVX = xyes; then
908     AC_CHECK_LIB(divxencore, encore, ,
909                  [ AC_MSG_WARN([Divx4linux encore libs not found]) &&
910                    HAVE_DIVX=no ] )
911   fi
912   if test x$HAVE_DIVX = xyes; then
913     AC_CHECK_LIB(divxdecore, decore, ,
914                  [ AC_MSG_WARN([Divx4linux decore libs not found]) &&
915                    HAVE_DIVX=no ] )
916   fi
917   if test x$HAVE_DIVX = xyes; then
918     DIVXENC_LIBS="-ldivxencore -lm"
919     DIVXDEC_LIBS="-ldivxdecore -lm"
920     AC_SUBST(DIVXENC_LIBS)
921     AC_SUBST(DIVXDEC_LIBS)
922   fi
923 ])
925 dnl *** DTS ***
926 translit(dnm, m, l) AM_CONDITIONAL(USE_DTS, true)
927 GST_CHECK_FEATURE(DTS, [dts library], dtsdec, [
928   GST_CHECK_LIBHEADER(DTS, dts_pic, dts_init, -lm, dts.h, DTS_LIBS="-ldts_pic -lm")
929   AC_SUBST(DTS_LIBS)
930 ])
932 dnl *** dvdread ***
933 translit(dnm, m, l) AM_CONDITIONAL(USE_DVDREAD, true)
934 GST_CHECK_FEATURE(DVDREAD, [dvdread library], dvdreadsrc, [
935   GST_CHECK_LIBHEADER(DVDREAD, dvdread, DVDOpen, , dvdread/dvd_reader.h, DVDREAD_LIBS="-ldvdread")
936   AC_SUBST(DVDREAD_LIBS)
937 ])
939 dnl *** dvdnav ***
940 translit(dnm, m, l) AM_CONDITIONAL(USE_DVDNAV, true)
941 GST_CHECK_FEATURE(DVDNAV, [dvdnav library], dvdnavsrc, [
942   translit(dnm, m, l) AC_SUBST(DVDNAV_LIBS)
943   translit(dnm, m, l) AC_SUBST(DVDNAV_CFLAGS)
944   GST_CHECK_CONFIGPROG(DVDNAV, dvdnav-config)
945   if test x"$HAVE_DVDNAV" = x"yes"; then
946     dnl check version
947     DVDNAV_VERSION=`dvdnav-config --version|head -n 1|sed 's/^.*) //'|sed 's/ (.*)//'`
948     DVDNAV_MAJOR=`echo $DVDNAV_VERSION | cut -d. -f1 | sed s/[a-zA-Z\-].*//g`
949     DVDNAV_MINOR=`echo $DVDNAV_VERSION | cut -d. -f2 | sed s/[a-zA-Z\-].*//g`
950     DVDNAV_MICRO=`echo $DVDNAV_VERSION | cut -d. -f3 | sed s/[a-zA-Z\-].*//g`
951     if [[ "$DVDNAV_MAJOR" -eq "0" ]] && \
952        [[ "$DVDNAV_MINOR" -lt "1" ]]; then
953       AC_MSG_WARN([libdvdnav >= 0.1.7 is required, you have $DVDNAV_VERSION])
954       HAVE_DVDNAV="no"
955     elif [[ "$DVDNAV_MAJOR" -eq "0" ]] && \
956          [[ "$DVDNAV_MINOR" -eq "1" ]] && \
957          [[ "$DVDNAV_MICRO" -lt "7" ]]; then
958       AC_MSG_WARN([libdvdnav >= 0.1.7 is required, you have $DVDNAV_VERSION])
959       HAVE_DVDNAV="no"
960     fi
961   fi
962   dnl now check for dvdread/nav_print.h - see #133002
963   AC_CHECK_HEADER(dvdread/nav_print.h, , [
964       AC_MSG_WARN([header dvdread/nav_print.h from dvdread missing])
965       HAVE_DVDNAV="no"
966   ])
967   AS_SCRUB_INCLUDE(DVDNAV_CFLAGS)
968 ])
970 dnl **** ESound ****
971 translit(dnm, m, l) AM_CONDITIONAL(USE_ESD, true)
972 GST_CHECK_FEATURE(ESD, [esound plug-ins], esdsink esdmon, [
973   PKG_CHECK_MODULES(ESD, esound >= 0.2.12, [
974     HAVE_ESD="yes"
975     AC_SUBST(ESD_CFLAGS)
976     AC_SUBST(ESD_LIBS)
977   ], [
978     AM_PATH_ESD(0.2.12, HAVE_ESD="yes", HAVE_ESD="no")
979     AS_SCRUB_INCLUDE(ESD_CFLAGS)
980   ])
981 ])
983 dnl **** Free AAC Encoder (FAAC) ****
984 translit(dnm, m, l) AM_CONDITIONAL(USE_FAAC, true)
985 GST_CHECK_FEATURE(FAAC, [AAC encoder plug-in], faac, [
986   GST_CHECK_LIBHEADER(FAAC, faac, faacEncOpen, -lm, faac.h, FAAC_LIBS="-lfaac -lm")
987   AS_SCRUB_INCLUDE(FAAC_CFLAGS)
988   AC_SUBST(FAAC_LIBS)
989 ])
991 dnl **** Free AAC Decoder (FAAD) ****
992 translit(dnm, m, l) AM_CONDITIONAL(USE_FAAD, true)
993 GST_CHECK_FEATURE(FAAD, [AAC decoder plug-in], faad, [
994   HAVE_FAAD="yes"
995   GST_CHECK_LIBHEADER(FAAD, faad, faacDecOpen, -lm, faad.h, FAAD_LIBS="-lfaad -lm", HAVE_FAAD="no")
996   if test $HAVE_FAAD = "yes"; then
997     AC_MSG_CHECKING([Checking for FAAD >= 2])
998     AC_TRY_COMPILE([
999 #include <faad.h>
1000 #if !defined(FAAD2_VERSION) || !defined(FAAD_FMT_DOUBLE)
1001 #error Not faad2
1002 #endif
1003     ], [ return 0; ],
1004        [ HAVE_FAAD="yes" && AC_MSG_RESULT(yes)],
1005        [ HAVE_FAAD="no"  && AC_MSG_RESULT(no)])
1006   fi;
1007   AS_SCRUB_INCLUDE(FAAD_CFLAGS)
1008   AC_SUBST(FAAD_LIBS)
1009 ])
1011 dnl **** festival ****
1012 dnl translit(dnm, m, l) AM_CONDITIONAL(USE_FESTIVAL, true)
1013 dnl GST_CHECK_FEATURE(FESTIVAL, [festival plug-ins], festivalsrc, [
1014   dnl NOTE: just using local net connection now, add this lib check
1015   dnl       in the future if needed
1016   dnl AC_LANG_PUSH(C++)
1017   dnl dnl FIXME: took out func to check for
1018   dnl dnl This check puts festival_tidy_up in extern "C".
1019   dnl dnl But, at least on Debian as of 20020110, it is compiled with name
1020   dnl dnl mangling C++ nonsense and symbols can't resolve
1021   dnl dnl GST_CHECK_LIBHEADER(FESTIVAL, Festival, festival_tidy_up, , festival/festival.h, FESTIVAL_LIBS="-lFestival")
1022   dnl GST_CHECK_LIBHEADER(FESTIVAL, Festival, , , festival/festival.h, FESTIVAL_LIBS="-lFestival")
1023   dnl AC_LANG_POP(C++)
1024   dnl AC_SUBST(FESTIVAL_LIBS)
1025 dnl  HAVE_FESTIVAL=yes
1026 dnl])
1028 dnl *** FLAC ***
1029 translit(dnm, m, l) AM_CONDITIONAL(USE_FLAC, true)
1030 GST_CHECK_FEATURE(FLAC, [FLAC lossless audio], flacenc flacdec, [
1031   GST_CHECK_LIBHEADER(FLAC, FLAC, FLAC__seekable_stream_encoder_new, -lm, FLAC/all.h, FLAC_LIBS="-lFLAC")
1032   AC_SUBST(FLAC_LIBS)
1033 ])
1035 dnl *** GDK pixbuf ***
1036 translit(dnm, m, l) AM_CONDITIONAL(USE_GDK_PIXBUF, true)
1037 GST_CHECK_FEATURE(GDK_PIXBUF, [GDK pixbuf], gdkpixbufsrc, [
1038   if test $HAVE_GTK_22 = "yes"; then HAVE_GDK_PIXBUF=yes; fi;
1039 ])
1041 dnl *** Gnome VFS ***
1042 translit(dnm, m, l) AM_CONDITIONAL(USE_GNOME_VFS, true)
1043 GST_CHECK_FEATURE(GNOME_VFS, [Gnome VFS], gnomevfssrc, [
1044   PKG_CHECK_MODULES(GNOME_VFS, gnome-vfs-2.0, HAVE_GNOME_VFS="yes", HAVE_GNOME_VFS="no")
1045   AC_SUBST(GNOME_VFS_CFLAGS)
1046   AC_SUBST(GNOME_VFS_LIBS)
1047 ])
1049 dnl *** gsm ***
1050 translit(dnm, m, l) AM_CONDITIONAL(USE_GSM, true)
1051 GST_CHECK_FEATURE(GSM, [GSM library], gsmenc gsmdec, [
1052   GST_CHECK_LIBHEADER(GSM, gsm, gsm_create, , gsm.h, GSM_LIBS="-lgsm")
1053   if test $HAVE_GSM != "yes"; then
1054     GST_CHECK_LIBHEADER(GSM, gsm, gsm_create, , gsm/gsm.h, GSM_LIBS="-lgsm")
1055     if test $HAVE_GSM = "yes"; then 
1056       AC_DEFINE(GSM_HEADER_IN_SUBDIR, 1, [Define if GSM header in gsm/ subdir])
1057     fi
1058   fi
1059   AC_SUBST(GSM_LIBS)
1060 ])
1062 dnl *** Hermes ***
1063 translit(dnm, m, l) AM_CONDITIONAL(USE_HERMES, true)
1064 GST_CHECK_FEATURE(HERMES, [Hermes library], hermescolorspace, [
1065   GST_CHECK_LIBHEADER(HERMES, Hermes, Hermes_ConverterInstance, , Hermes/Hermes.h, HERMES_LIBS="-lHermes")
1066 ], AC_SUBST(HERMES_LIBS))
1068 dnl *** http ***
1069 dnl translit(dnm, m, l) AM_CONDITIONAL(USE_HTTP, true)
1070 dnl GST_CHECK_FEATURE(HTTP, [http plug-ins], gsthttpsrc, [
1071 dnl  dnl FIXME: need to check for header
1072 dnl  GHTTP_LIBS=
1073 dnl  GST_HTTPSRC_GET_TYPE=
1074 dnl  if test x$USE_GLIB2 = xyes; then
1075 dnl    AC_MSG_WARN(ghttp disabled for glib2.0)
1076 dnl  else
1077 dnl    AC_CHECK_LIB(ghttp, ghttp_request_new,
1078 dnl      [HTTP_LIBS="-lghttp"
1079 dnl       GST_HTTPSRC_GET_TYPE="gst_httpsrc_get_type"
1080 dnl       HAVE_HTTP=yes
1081 dnl      ], :, $LIBS)
1082 dnl  fi
1083 dnl  AC_SUBST(HTTP_LIBS)
1084 dnl  AC_SUBST(GST_HTTPSRC_GET_TYPE)
1085 dnl ])
1087 dnl *** ivorbis ***
1088 dnl AM_PATH_IVORBIS only takes two options
1089 translit(dnm, m, l) AM_CONDITIONAL(USE_IVORBIS, true)
1090 GST_CHECK_FEATURE(IVORBIS, [integer vorbis plug-in], ivorbisdec, [
1091   IVORBIS_LIBS=
1092   IVORBIS_CFLAGS=
1093   AC_CHECK_LIB(vorbisidec, vorbis_block_init,
1094     [IVORBIS_LIBS=-lvorbisidec
1095      HAVE_IVORBIS=yes],
1096     HAVE_IVORBIS=no)
1097   AC_SUBST(IVORBIS_LIBS)
1098   AC_SUBST(IVORBIS_CFLAGS)
1099 ])
1101 dnl *** Jack ***
1102 translit(dnm, m, l) AM_CONDITIONAL(USE_JACK, true)
1103 GST_CHECK_FEATURE(JACK, Jack, jack, [
1104   PKG_CHECK_MODULES(JACK, jack >= 0.29.0, HAVE_JACK="yes", HAVE_JACK="no")
1105   AC_SUBST(JACK_CFLAGS)
1106   AC_SUBST(JACK_LIBS)
1107 ])
1109 dnl *** jpeg ***
1110 dnl FIXME: we could use header checks here as well IMO
1111 translit(dnm, m, l) AM_CONDITIONAL(USE_JPEG, true)
1112 GST_CHECK_FEATURE(JPEG, [jpeg], jpegenc jpegdec, [
1113   AC_ARG_WITH(jpeg-mmx,
1114     [  --with-jpeg-mmx, path to MMX'ified JPEG library])
1115   OLD_LIBS="$LIBS"
1116   if test x$with_jpeg_mmx != x; then
1117     LIBS="$LIBS -L$with_jpeg_mmx"
1118   fi
1119   AC_CHECK_LIB(jpeg-mmx, jpeg_set_defaults, HAVE_JPEG="yes", HAVE_JPEG="no")
1120   JPEG_LIBS="$LIBS -ljpeg-mmx"
1121   LIBS="$OLD_LIBS"
1122   if test x$HAVE_JPEG != xyes; then
1123     AC_CHECK_LIB(jpeg, jpeg_set_defaults, HAVE_JPEG="yes", HAVE_JPEG="no")
1124     JPEG_LIBS="-ljpeg"
1125   fi
1126   AC_SUBST(JPEG_LIBS)
1127 ])
1129 dnl *** KDE / Qt ***
1131 dnl * Qt *
1133 qt_dirs="$QTDIR /usr/lib/qt3 /usr/lib/qt /usr/share/qt3 /usr/local/qt"
1135 dnl Build include path search path from the list of Qt dirs
1137 qt_include_dirs=""
1138 for dir in $qt_dirs; do
1139   qt_include_dirs="$qt_include_dirs $dir/include $dir"
1140 done
1142 qt_include_dirs="$qt_include_dirs /usr/include/qt /usr/include /usr/X11R6/include/X11/qt /usr/X11R6/include/qt /usr/include/qt3"
1144 for dir in $qt_include_dirs; do
1145   if test -r "$dir/qglobal.h"; then
1146     qt_include_dir=$dir
1147     break
1148   fi
1149 done
1151 for dir in $qt_dirs; do
1152   qt_lib_dirs="$qt_lib_dirs $dir/lib $dir"
1153 done
1155 qt_lib_dirs="$qt_lib_dirs /usr/X11R6/lib /usr/lib"
1157 for dir in $qt_lib_dirs; do
1158   try="ls -1 $dir/libqt-mt.*"
1159   if test -n "`$try 2> /dev/null`"; then
1160     qt_lib_dir=$dir
1161     break
1162   fi
1163 done
1165 dnl *** ladspa ***
1166 translit(dnm, m, l) AM_CONDITIONAL(USE_LADSPA, true)
1167 GST_CHECK_FEATURE(LADSPA, [ladspa], ladspa, [
1168   AC_CHECK_HEADER(ladspa.h, HAVE_LADSPA="yes", HAVE_LADSPA="no")
1169 ])
1171 dnl *** lame ***
1172 translit(dnm, m, l) AM_CONDITIONAL(USE_LAME, true)
1173 GST_CHECK_FEATURE(LAME, [lame mp3 encoder library], lame, [
1174   GST_CHECK_LIBHEADER(LAME, mp3lame, lame_init, -lm, lame/lame.h, HAVE_LAME="yes" LAME_LIBS="-lmp3lame -lm")
1175 ])
1176 dnl is lame presets available
1177 LAME_CFLAGS=""
1178 AC_TRY_RUN([
1179 #include <lame/lame.h>
1180 int main (int argc, char *argv[])
1182   printf("%d\n", MEDIUM);
1183   return 0;
1185 ],[LAME_CFLAGS="-DGSTLAME_PRESET"],[LAME_CFLAGS=""])
1186 AC_SUBST(LAME_CFLAGS)
1187 AC_SUBST(LAME_LIBS)
1189 dnl *** MAS (TODO) ***
1190 dnl translit(dnm, m, l) AM_CONDITIONAL(USE_MAS, true)
1191 dnl GST_CHECK_FEATURE(MAS, [mas], mas, [
1192 dnl   GST_CHECK_CONFIGPROG(MAS, mas-config)
1193 dnl   AC_SUBST(MAS_CFLAGS)
1194 dnl   AC_SUBST(MAS_LIBS)
1195 dnl ])
1197 dnl *** libcaca ***
1198 translit(dnm, m, l) AM_CONDITIONAL(USE_LIBCACA, true)
1199 GST_CHECK_FEATURE(LIBCACA, [libcaca], libcaca, [
1200   GST_CHECK_CONFIGPROG(LIBCACA, caca-config)
1201   AC_SUBST(LIBCACA_CFLAGS)
1202   AC_SUBST(LIBCACA_LIBS)
1203 ])
1205 dnl *** libcolorspace ***
1206 translit(dnm, m, l) AM_CONDITIONAL(USE_LCS, true)
1207 GST_CHECK_FEATURE(LCS, Lcs, lcs, [
1208   PKG_CHECK_MODULES(LCS, lcs, HAVE_LCS="yes", HAVE_LCS="no")
1209   AC_SUBST(LCS_CFLAGS)
1210   AC_SUBST(LCS_LIBS)
1211 ])
1213 dnl *** libdv ***
1214 translit(dnm, m, l) AM_CONDITIONAL(USE_LIBDV, true)
1215 GST_CHECK_FEATURE(LIBDV, [libdv DV/video decoder], dvdec, [
1216   PKG_CHECK_MODULES(LIBDV, libdv >= 0.100, HAVE_LIBDV="yes", HAVE_LIBDV="no")
1217   AC_SUBST(LIBDV_CFLAGS)
1218   AC_SUBST(LIBDV_LIBS)
1219 ])
1221 dnl *** libfame ***
1222 translit(dnm, m, l) AM_CONDITIONAL(USE_LIBFAME, true)
1223 GST_CHECK_FEATURE(LIBFAME, [libfame MPEG1/4 encoder], libfame, [
1224   AM_PATH_LIBFAME(0.9.0, HAVE_LIBFAME="yes", HAVE_LIBFAME="no")
1225   AC_SUBST(LIBFAME_CFLAGS)
1226   AC_SUBST(LIBFAME_LIBS)
1227 ])
1229 dnl *** libpng ***
1230 translit(dnm, m, l) AM_CONDITIONAL(USE_LIBPNG, true)
1231 GST_CHECK_FEATURE(LIBPNG, [libpng PNG encoder], pngenc, [
1232   PKG_CHECK_MODULES(LIBPNG, libpng12, HAVE_LIBPNG="yes", HAVE_LIBPNG="no")
1233   AC_SUBST(LIBPNG_CFLAGS)
1234   AC_SUBST(LIBPNG_LIBS)
1235 ])
1237 dnl *** libmng ***
1238 translit(dnm, m, l) AM_CONDITIONAL(USE_LIBMNG, true)
1239 GST_CHECK_FEATURE(LIBMNG, [libmng library], mngdec, [
1240   GST_CHECK_LIBHEADER(LIBMNG, mng, mng_initialize,, libmng.h, LIBMNG_LIBS="-lmng")
1241   AC_SUBST(LIBMNG_LIBS)
1242 ])
1244 dnl *** librfb ***
1245 translit(dnm, m, l) AM_CONDITIONAL(USE_LIBRFB, true)
1246 GST_CHECK_FEATURE(LIBRFB, [librfb Remote Framebuffer], rfbsrc, [
1247   PKG_CHECK_MODULES(LIBRFB, librfb-0.1, HAVE_LIBRFB="yes", HAVE_LIBRFB="no")
1248   AC_SUBST(LIBRFB_CFLAGS)
1249   AC_SUBST(LIBRFB_LIBS)
1250 ])
1252 dnl *** libvisual ***
1253 translit(dnm, m, l) AM_CONDITIONAL(USE_LIBVISUAL, true)
1254 GST_CHECK_FEATURE(LIBVISUAL, [libvisual visualization plugins], libvisual, [
1255   PKG_CHECK_MODULES(LIBVISUAL, libvisual = 0.1.7, HAVE_LIBVISUAL="yes", HAVE_LIBVISUAL="no")
1256   AC_SUBST(LIBVISUAL_CFLAGS)
1257   AC_SUBST(LIBVISUAL_LIBS)
1258 ])
1260 dnl *** mad ***
1261 dnl FIXME: we could use header checks here as well IMO
1262 translit(dnm, m, l) AM_CONDITIONAL(USE_MAD, true)
1263 GST_CHECK_FEATURE(MAD, [mad mp3 decoder], mad, [
1264   dnl check with pkg-config first
1265   PKG_CHECK_MODULES(MAD, mad >= 0.15 id3tag >= 0.15, HAVE_MAD="yes", HAVE_MAD="no")
1266   if test "x$HAVE_MAD" = "xno"; then
1267     dnl fall back to oldskool detection
1268     AC_CHECK_LIB(mad, mad_decoder_finish, HAVE_MAD="yes" MAD_LIBS="-lmad")
1269     if test "x$HAVE_MAD" = "xyes"; then
1270       HAVE_MAD="no"
1271       save_LIBS=$LIBS
1272       LIBS="-lz"
1273       AC_CHECK_LIB(id3tag, id3_tag_options, HAVE_MAD="yes" MAD_LIBS="-lmad -lid3tag -lz")
1274       LIBS=$save_LIBS
1275     fi
1276   fi    
1277 ])
1278 AC_SUBST(MAD_LIBS)
1280 dnl *** mikmod ***
1281 translit(dnm, m, l) AM_CONDITIONAL(USE_MIKMOD, true)
1282 GST_CHECK_FEATURE(MIKMOD, [mikmod plug-in], mikmod, [
1283   AM_PATH_LIBMIKMOD(, HAVE_MIKMOD=yes, HAVE_MIKMOD=no)
1284   AC_SUBST(MIKMOD_LIBS, "$LIBMIKMOD_LIBS")
1285   AC_SUBST(MIKMOD_CFLAGS, "$LIBMIKMOD_CFLAGS")
1286 ])
1288 dnl *** mpeg2dec ***
1289 translit(dnm, m, l) AM_CONDITIONAL(USE_MPEG2DEC, true)
1290 GST_CHECK_FEATURE(MPEG2DEC, [mpeg2dec], mpeg2dec, [
1291   PKG_CHECK_MODULES(MPEG2DEC, libmpeg2 >= 0.4.0,
1292       HAVE_MPEG2DEC="yes", HAVE_MPEG2DEC="no")
1293   AC_SUBST(MPEG2DEC_CFLAGS)
1294   AC_SUBST(MPEG2DEC_LIBS)
1295 ])
1297 dnl *** mpeg2enc ***
1298 translit(dnm, m, l) AM_CONDITIONAL(USE_MPEG2ENC, true)
1299 GST_CHECK_FEATURE(MPEG2ENC, [mpeg2enc], mpeg2enc, [
1300   HAVE_MPEG2ENC="no"
1301   dnl we require a c++ compiler for this one
1302   if [ test x$HAVE_CXX = xyes ]; then
1303     dnl libmpeg2enc was first included in mjpegtools-1.6.2-rc3 (1.6.1.92)
1304     dnl since many distros include mjpegtools specifically without mplex
1305     dnl and mpeg2enc, we check for mpeg2enc on its own, too.
1306     PKG_CHECK_MODULES(MPEG2ENC, mjpegtools >= 1.6.1.93, [
1307       dnl switch over to c++ to test things
1308       AC_LANG_CPLUSPLUS
1309       OLD_CPPFLAGS="$CPPFLAGS"
1310       CPPFLAGS="$CPPFLAGS $MPEG2ENC_CFLAGS"
1311       AC_CHECK_HEADER(mpeg2encoder.hh, [
1312         MPEG2ENC_LIBS="$MPEG2ENC_LIBS -lmpeg2encpp -lm -lpthread"
1313         OLD_LIBS="$LIBS"
1314         LIBS="$LIBS $MPEG2ENC_LIBS"
1315         AC_MSG_CHECKING([for valid mpeg2enc objects])
1316         AC_TRY_RUN([
1317 #include <mpeg2encoder.hh>
1318 #include <mpeg2encoptions.hh>
1320 int
1321 main (int   argc,
1322       char *argv[])
1324   MPEG2EncOptions *options = new MPEG2EncOptions ();
1325   MPEG2Encoder *encoder = new MPEG2Encoder (*options);
1326   return 0;
1328         ],[
1329           HAVE_MPEG2ENC="yes"
1330           AC_SUBST(MPEG2ENC_CFLAGS)
1331           AC_SUBST(MPEG2ENC_LIBS)
1332           AC_MSG_RESULT(yes)
1333         ], AC_MSG_RESULT(no))
1334         LIBS="$OLD_LIBS"
1335       ])
1336       CPPFLAGS="$OLD_CPPFLAGS"
1337       AC_LANG_C
1338     ],
1339     HAVE_MPEG2ENC="no")
1340   fi
1341 ])
1343 dnl *** mplex ***
1344 translit(dnm, m, l) AM_CONDITIONAL(USE_MPLEX, true)
1345 GST_CHECK_FEATURE(MPLEX, [mplex], mplex, [
1346   HAVE_MPLEX="no"
1347   dnl we require a c++ compiler for this one
1348   if [ test x$HAVE_CXX = xyes ]; then
1349     dnl libmplex was first included in mjpegtools-1.6.2-rc4 (1.6.1.93)
1350     dnl since many distros include mjpegtools specifically without mplex
1351     dnl and mpeg2enc, we check for mplex on its own, too.
1352     PKG_CHECK_MODULES(MPLEX, mjpegtools >= 1.6.1.93, [
1353       dnl switch over to c++ to test things
1354       AC_LANG_CPLUSPLUS
1355       OLD_CPPFLAGS="$CPPFLAGS"
1356       CPPFLAGS="$CPPFLAGS $MPLEX_CFLAGS"
1357       AC_CHECK_HEADER(interact.hpp, [
1358         MPLEX_LIBS="$MPLEX_LIBS -lmplex2 -lm"
1359         OLD_LIBS="$LIBS"
1360         LIBS="$LIBS $MPLEX_LIBS"
1361         AC_MSG_CHECKING([for valid mplex objects])
1362         AC_TRY_RUN([
1363 #include <interact.hpp>
1364 #include <outputstrm.hpp>
1365 #include <multiplexor.hpp>
1367 int
1368 main (int   argc,
1369       char *argv[])
1371   class TestOutputStream : public OutputStream {
1372   public:
1373     TestOutputStream () : OutputStream () { }
1374     void Write (uint8_t *a, unsigned int b) { }
1375     void NextSegment () { }
1376     off_t SegmentSize () { }
1377     void Close () { }
1378     int Open () { }
1379   };
1380   MultiplexJob *job = new MultiplexJob ();
1381   vector<IBitStream *> inputs;
1382   job->SetupInputStreams (inputs);
1383   TestOutputStream *out = new TestOutputStream ();
1384   Multiplexor *mux = new Multiplexor(*job, *out);
1385   return 0;
1387         ],[
1388           HAVE_MPLEX="yes"
1389           AC_SUBST(MPLEX_CFLAGS)
1390           AC_SUBST(MPLEX_LIBS)
1391           AC_MSG_RESULT(yes)
1392         ], AC_MSG_RESULT(no))
1393         LIBS="$OLD_LIBS"
1394       ])
1395       CPPFLAGS="$OLD_CPPFLAGS"
1396       AC_LANG_C
1397     ], HAVE_MPLEX="no")
1398   fi
1399 ])
1401 dnl *** musepack ***
1402 translit(dnm, m, l) AM_CONDITIONAL(USE_MUSEPACK, true)
1403 GST_CHECK_FEATURE(MUSEPACK, [musepackdec], musepack, [
1404   AC_LANG_CPLUSPLUS
1405   OLD_CPPFLAGS="$CPPFLAGS"
1406   CPPFLAGS="-I/usr/include/musepack $CPPFLAGS"
1407   AC_CHECK_HEADER(mpc_dec.h, [
1408     HAVE_MUSEPACK="yes"
1409     MUSEPACK_LIBS="-lmusepack"
1410     MUSEPACK_CFLAGS="-I/usr/include/musepack"
1411     AC_SUBST(MUSEPACK_CFLAGS)
1412     AC_SUBST(MUSEPACK_LIBS)
1413     ], [HAVE_MUSEPACK="no"])
1414   CPPFLAGS="$OLD_CPPFLAGS"
1415   AC_LANG_C
1416 ])
1418 dnl *** musicbrainz ***
1419 dnl libmusicbrainz <= 2.0.2 has symbol clashes with ffmpeg
1420 dnl however, our ffmpeg patch was accepted upstream
1421 translit(dnm, m, l) AM_CONDITIONAL(USE_MUSICBRAINZ, true)
1422 GST_CHECK_FEATURE(MUSICBRAINZ, [musicbrainz], musicbrainz, [
1423   PKG_CHECK_MODULES(MUSICBRAINZ, libmusicbrainz >= 2.0.2,
1424       HAVE_MUSICBRAINZ="yes", HAVE_MUSICBRAINZ="no")
1425   AC_SUBST(MUSICBRAINZ_CFLAGS)
1426   AC_SUBST(MUSICBRAINZ_LIBS)
1427 ])
1429 dnl *** nas ***
1430 translit(dnm, m, l) AM_CONDITIONAL(USE_NAS, true)
1431 GST_CHECK_FEATURE(NAS, [nas plug-in], nassink, [
1432   HAVE_NAS="no"
1433   if test "x$HAVE_X" = "xyes"; then
1434     save_cppflags=$CFLAGS
1435     CPPFLAGS="$CPPFLAGS $X_CFLAGS"
1436     GST_CHECK_LIBHEADER(NAS, audio, AuOpenServer, $X_LIBS, audio/audiolib.h,
1437       NAS_LIBS="$X_LIBS -laudio" NAS_CFLAGS="$X_CFLAGS")
1438     CPPFLAGS="$save_cppflags"
1439   fi
1440   AC_SUBST(NAS_CFLAGS)
1441   AC_SUBST(NAS_LIBS)
1442 ])
1444 dnl *** pango ***
1445 translit(dnm, m, l) AM_CONDITIONAL(USE_PANGO, true)
1446 GST_CHECK_FEATURE(PANGO, [pango], pango, [
1447   PKG_CHECK_MODULES(PANGO, pango pangoft2,
1448       HAVE_PANGO="yes", HAVE_PANGO="no")
1449   AC_SUBST(PANGO_CFLAGS)
1450   AC_SUBST(PANGO_LIBS)
1451 ])
1453 dnl *** polypaudio ***
1454 translit(dnm, m, l) AM_CONDITIONAL(USE_POLYP, true)
1455 GST_CHECK_FEATURE(POLYP, [polyp], polyp, [
1456   PKG_CHECK_MODULES(POLYP, polyplib >= 0.7,
1457       HAVE_POLYP="yes", HAVE_POLYP="no")
1458   AC_SUBST(POLYP_CFLAGS)
1459   AC_SUBST(POLYP_CFLAGS)
1460 ])
1462 dnl *** dv1394 ***
1463 translit(dnm, m, l) AM_CONDITIONAL(USE_DV1394, true)
1464 GST_CHECK_FEATURE(DV1394, [raw1394 and avc1394 library], dv1394src, [
1465   dnl we need to test three headers and three libs
1466   GST_CHECK_LIBHEADER(RAW1394,
1467     raw1394, raw1394_new_handle,,
1468     libraw1394/raw1394.h, RAW1394_LIBS="-lraw1394")
1469   GST_CHECK_LIBHEADER(AVC1394,
1470     avc1394, avc1394_send_command, $RAW1394_LIBS,
1471     libavc1394/avc1394.h, AVC1394_LIBS="-lavc1394")
1472   GST_CHECK_LIBHEADER(ROM1394,
1473     rom1394, rom1394_free_directory, $RAW1394_LIBS,
1474     libavc1394/rom1394.h, ROM1394_LIBS="-lrom1394")
1476   dnl now see how far we got
1477   if test x$HAVE_RAW1394 = xyes && \
1478      test x$HAVE_AVC1394 = xyes && \
1479      test x$HAVE_ROM1394 = xyes; then
1480        HAVE_DV1394=yes
1481        DV1394_LIBS="$RAW1394_LIBS $AVC1394_LIBS $ROM1394_LIBS"
1482        AC_SUBST(DV1394_LIBS)
1483   else
1484        HAVE_DV1394=no
1485   fi
1486 ])
1488 dnl *** SDL ***
1489 translit(dnm, m, l) AM_CONDITIONAL(USE_SDL, true)
1490 GST_CHECK_FEATURE(SDL, [SDL plug-in], sdlvideosink, [
1491   dnl sdlvideosink depends on the xoverlay interface, which depends on X
1492   if test x$HAVE_X = xyes; then
1493     AM_PATH_SDL(, HAVE_SDL=yes, HAVE_SDL=no)
1494   fi
1495 ])
1497 dnl *** shout ***
1498 translit(dnm, m, l) AM_CONDITIONAL(USE_SHOUT, true)
1499 GST_CHECK_FEATURE(SHOUT, [shout plug-in], icecastsend, [
1500   GST_CHECK_LIBHEADER(SHOUT, shout, shout_init_connection,, shout/shout.h, SHOUT_LIBS="-lshout")
1501   AC_SUBST(SHOUT_LIBS)
1502 ])
1504 dnl *** shout2 *** 
1505 translit(dnm, m, l) AM_CONDITIONAL(USE_SHOUT2, true)
1506 GST_CHECK_FEATURE(SHOUT2, [shout2 plug-in], shout2send, [
1507   PKG_CHECK_MODULES(SHOUT2, shout >= 2.0, [
1508     HAVE_SHOUT2="yes"
1509     AC_SUBST(SHOUT2_CFLAGS)
1510     AC_SUBST(SHOUT2_LIBS)
1511   ], [
1512     AM_PATH_SHOUT2(HAVE_SHOUT2="yes", HAVE_SHOUT2="no")
1513     AC_SUBST(SHOUT2_CFLAGS)
1514     AC_SUBST(SHOUT2_LIBS)
1515   ])
1516 ])
1518 dnl *** sidplay : works with libsidplay 1.36.x (not 2.x.x) ***
1519 translit(dnm, m, l) AM_CONDITIONAL(USE_SIDPLAY, true)
1520 GST_CHECK_FEATURE(SIDPLAY, [sidplay plug-in], sidplay, [
1521   GST_PATH_SIDPLAY()
1522 ])
1524 dnl *** smoothwave ***
1525 translit(dnm, m, l) AM_CONDITIONAL(USE_SMOOTHWAVE, true)
1526 GST_CHECK_FEATURE(SMOOTHWAVE, [smoothwave plug-in], smoothwave, [
1527   if test $HAVE_GTK = "yes"; then HAVE_SMOOTHWAVE=yes; fi;
1528 ])
1531 dnl *** snapshot ***
1532 translit(dnm, m, l) AM_CONDITIONAL(USE_LIBPNG, true)
1533 GST_CHECK_FEATURE(LIBPNG, [snapshot plug-in], snapshot, [
1534   GST_CHECK_LIBHEADER(LIBPNG, png, png_read_info, -lz -lm, png.h, LIBPNG_LIBS="-lpng -lz -lm")
1535   AC_SUBST(LIBPNG_LIBS)
1536 ])
1538 dnl *** speex >= 1.0.4 or >= 1.1.5 ***
1539 dnl   1.1.4 and earlier were not API/ABI compatible with 1.0
1540 dnl   1.1.6 is the first to use a .pc/pkg-config file ***
1541 dnl   speex_jitter.h is 1.1.x only
1542 translit(dnm, m, l) AM_CONDITIONAL(USE_SPEEX, true)
1543 GST_CHECK_FEATURE(SPEEX, [speex plug-in], speex, [
1544   PKG_CHECK_MODULES(SPEEX, speex >= 1.1.6, [
1545     HAVE_SPEEX="yes"
1546     AC_SUBST(SPEEX_CFLAGS)
1547     AC_SUBST(SPEEX_LIBS)
1548   ], [
1549     GST_CHECK_LIBHEADER(SPEEX, speex, speex_bits_init, , speex.h, [
1550       AC_CHECK_HEADER(speex_jitter.h, [
1551         dnl speex 1.1.x :
1552         GST_CHECK_LIBHEADER(SPEEX, speex, speex_encode_int, , speex.h, [
1553           dnl speex 1.1.5 or + :
1554           HAVE_SPEEX="yes"
1555           SPEEX_LIBS="-lspeex"
1556           AC_SUBST(SPEEX_CFLAGS)
1557           AC_SUBST(SPEEX_LIBS)
1558         ],[
1559           HAVE_SPEEX="no"
1560         ])
1561       ],[
1562         dnl speex 1.0.x :
1563           AC_CHECK_DECL(SPEEX_GET_LOOKAHEAD, [
1564             dnl speex 1.0.4
1565             HAVE_SPEEX="yes"
1566             SPEEX_LIBS="-lspeex"
1567             AC_SUBST(SPEEX_CFLAGS)
1568             AC_SUBST(SPEEX_LIBS)
1569         ],[
1570             HAVE_SPEEX="no"
1571             AC_MSG_NOTICE(You need at least 1.0.4 to compile the speex plugin)
1572         ])
1573       ])
1574     ])
1575   ])
1576 ])
1578 dnl *** sndfile ***
1579 translit(dnm, m, l) AM_CONDITIONAL(USE_SNDFILE, true)
1580 GST_CHECK_FEATURE(SNDFILE, [sndfile plug-in], sfsrc sfsink, [
1581   PKG_CHECK_MODULES(SNDFILE, sndfile >= 1.0.0, HAVE_SNDFILE="yes", HAVE_SNDFILE="no")
1582   AC_SUBST(SNDFILE_CFLAGS)
1583   AC_SUBST(SNDFILE_LIBS)
1584 ])
1586 dnl *** swfdec ***
1587 translit(dnm, m, l) AM_CONDITIONAL(USE_SWFDEC, true)
1588 GST_CHECK_FEATURE(SWFDEC, [swfdec plug-in], swfdec, [
1589   PKG_CHECK_MODULES(SWFDEC, swfdec-0.3 >= 0.3.0, HAVE_SWFDEC=yes, HAVE_SWFDEC=no)
1590   AC_SUBST(SWFDEC_CFLAGS)
1591   AC_SUBST(SWFDEC_LIBS)
1592 ])
1594 dnl *** tarkin ***
1595 dnl for now the sources are included in the plug-in
1596 dnl and should be moved to ext-libs/ perhaps
1597 translit(dnm, m, l) AM_CONDITIONAL(USE_TARKIN, true)
1598 GST_CHECK_FEATURE(TARKIN, [tarkinenc tarkindec], tarkin, [
1599   HAVE_TARKIN="yes"
1600 ])
1602 dnl *** ogg ***
1603 translit(dnm, m, l) AM_CONDITIONAL(USE_OGG, true)
1604 GST_CHECK_FEATURE(OGG, [ogg de/encoder], oggdemux oggmux, [
1605   PKG_CHECK_MODULES(OGG, ogg >= 1.0, [
1606     HAVE_OGG="yes"
1607     AC_SUBST(OGG_CFLAGS)
1608     AC_SUBST(OGG_LIBS)
1609   ], [
1610     XIPH_PATH_OGG(HAVE_OGG="yes", HAVE_OGG="no")
1611     AS_SCRUB_INCLUDE(OGG_CFLAGS)
1612   ])
1613 ])
1615 dnl *** theora ***
1616 translit(dnm, m, l) AM_CONDITIONAL(USE_THEORA, true)
1617 GST_CHECK_FEATURE(THEORA, [ogg theora codec], theoradec theoraenc, [
1618   PKG_CHECK_MODULES(THEORA, theora, [
1619     HAVE_THEORA="yes"
1620     AC_SUBST(THEORA_LIBS)
1621     AC_SUBST(THEORA_CFLAGS)
1622   ], [
1623     GST_CHECK_LIBHEADER(THEORA, theora, theora_version_string, "-logg", theora/theora.h, THEORA_LIBS="-ltheora -logg")
1624     AC_SUBST(THEORA_LIBS)
1625   ])
1626 ])
1628 dnl *** vorbis ***
1629 dnl AM_PATH_VORBIS only takes two options
1630 translit(dnm, m, l) AM_CONDITIONAL(USE_VORBIS, true)
1631 GST_CHECK_FEATURE(VORBIS, [vorbis plug-in], vorbisenc vorbisdec, [
1632   PKG_CHECK_MODULES(VORBIS, vorbis >= 1.0 vorbisenc >= 1.0, [
1633     HAVE_VORBIS="yes"
1634   ], [
1635     XIPH_PATH_VORBIS(HAVE_VORBIS="yes", HAVE_VORBIS="no")
1636     AS_SCRUB_INCLUDE(VORBIS_CFLAGS)
1637   ])
1638 ])
1639 if test "x$HAVE_VORBIS" = "xyes"; then
1640   ac_cflags_save="$CFLAGS"
1641   dnl FIXME: does this work on non-gcc? -- Company
1642   CFLAGS="-Wall -Werror"
1643   AC_COMPILE_IFELSE(
1644     AC_LANG_PROGRAM([
1645 #include <vorbis/codec.h>
1646                      ],[
1647 vorbis_dsp_state *v;
1649 vorbis_synthesis_restart (v);
1650                      ]), HAVE_VSR=yes, HAVE_VSR=no)
1651   if test "x$HAVE_VSR" = "xyes"; then
1652     AC_DEFINE_UNQUOTED(HAVE_VORBIS_SYNTHESIS_RESTART, 1,
1653                        [defined if vorbis_synthesis_restart is present])
1654   fi
1655   CFLAGS="$ac_cflags_save"
1656 fi
1658 dnl *** xine ***
1659 translit(dnm, m, l) AM_CONDITIONAL(USE_XINE, true)
1660 GST_CHECK_FEATURE(XINE, [xine wrapper], xine, [
1661   PKG_CHECK_MODULES(XINE, libxine >= 1.0.0, HAVE_XINE=yes, HAVE_XINE=no)
1662   AC_SUBST(XINE_CFLAGS)
1663   AC_SUBST(XINE_LIBS)
1664 ],disabled)
1666 dnl *** XVID ***
1667 translit(dnm, m, l) AM_CONDITIONAL(USE_XVID, true)
1668 GST_CHECK_FEATURE(XVID, [xvid plugins], xvid, [
1669   HAVE_XVID=no
1670   AC_CHECK_HEADER(xvid.h, [
1671     OLD_LIBS="$LIBS"
1672     LIBS="-lm"
1673     AC_CHECK_LIB(xvidcore, xvid_encore, [
1674       AC_CHECK_LIB(xvidcore, xvid_decore, [
1675         AC_CHECK_LIB(xvidcore, xvid_global, [
1676           AC_MSG_CHECKING([for uptodate XviD API version])
1677           AC_TRY_RUN([
1678 #include <xvid.h>
1679 #if XVID_API != XVID_MAKE_API(4,0)
1680 #error "Incompatible XviD API version"
1681 #endif
1682 int main () { return 0; }
1683           ],[ AC_MSG_RESULT(yes)
1684             XVID_LIBS="-lxvidcore -lm"
1685             AC_SUBST(XVID_LIBS)
1686             HAVE_XVID=yes
1687           ], AC_MSG_RESULT(no) )
1688         ], )
1689       ], )
1690     ], )
1691     LIBS="$OLD_LIBS"
1692   ], )
1693 ])
1696 fi dnl of EXT plugins
1698 dnl Check for atomic.h
1699 dnl Note: use AC_CHECK_HEADER not AC_CHECK_HEADERS, because the latter
1700 dnl defines the wrong default symbol as well (HAVE_ASM_ATOMIC_H)
1701 AC_CHECK_HEADER(asm/atomic.h, HAVE_ATOMIC_H=yes, HAVE_ATOMIC_H=no)
1702 dnl Do a compile to check that it has atomic_set (eg, linux 2.0 didn't)
1703 if test x$HAVE_ATOMIC_H = xyes; then
1704   AC_TRY_RUN([
1705 #include "asm/atomic.h"
1706 main() { atomic_t t; atomic_set(&t,0); atomic_inc(&t); atomic_add(1,&t);return 0;}
1707   ],, [
1708     # Not successful
1709     if test x$HAVE_ATOMIC_H = xyes; then
1710       AC_MSG_WARN(Atomic reference counting is out of date: doing without.)
1711     fi
1712     HAVE_ATOMIC_H=no
1713   ], [
1714     # Cross compiling
1715     AC_MSG_RESULT(yes)
1716     AC_MSG_WARN(Can't check properly for atomic reference counting.  Assuming OK.)
1717   ])
1718 fi
1721 dnl ######################################################################
1722 dnl # Check command line parameters, and set shell variables accordingly #
1723 dnl ######################################################################
1725 AC_ARG_ENABLE(libmmx,
1726   AC_HELP_STRING([--enable-libmmx],[use libmmx, if available]),
1727 [case "${enableval}" in
1728   yes) USE_LIBMMX=$HAVE_LIBMMX ;;
1729   no)  USE_LIBMMX=no ;;
1730   *) AC_MSG_ERROR(bad value ${enableval} for --enable-libmmx) ;;
1731 esac], 
1732 [USE_LIBMMX=$HAVE_LIBMMX]) dnl Default value
1734 AC_ARG_ENABLE(atomic,
1735   AC_HELP_STRING([--enable-atomic],[use atomic reference counting header]),
1736 [case "${enableval}" in
1737   yes) USE_ATOMIC_H=$HAVE_ATOMIC_H;;
1738   noset) USE_ATOMIC_H=$HAVE_ATOMIC_H;;
1739   no)  USE_ATOMIC_H=no;;
1740   *) AC_MSG_ERROR(bad value ${enableval} for --enable-atomic) ;;
1741 esac], 
1742 [USE_ATOMIC_H=$HAVE_ATOMIC_H]) dnl Default value
1744 AC_ARG_ENABLE(profiling,
1745   AC_HELP_STRING([--enable-profiling],
1746                  [-pg to compiler commandline, for profiling]),
1747 [case "${enableval}" in
1748   yes) USE_PROFILING=yes ;;
1749   no)  UES_PROFILING=no ;;
1750   *) AC_MSG_ERROR(bad value ${enableval} for --enable-profiling) ;;
1751 esac], 
1752 [USE_PROFILING=no]) dnl Default value
1754 AC_ARG_ENABLE(tests,
1755   AC_HELP_STRING([--disable-tests],[disable building test apps]),
1756 [case "${enableval}" in
1757   yes) BUILD_TESTS=yes ;;
1758   no)  BUILD_TESTS=no ;;
1759   *) AC_MSG_ERROR(bad value ${enableval} for --disable-tests) ;;
1760 esac], 
1761 [BUILD_TESTS=yes]) dnl Default value
1763 AC_ARG_ENABLE(examples,
1764   AC_HELP_STRING([--disable-examples],[disable building examples]),
1765 [case "${enableval}" in
1766   yes) BUILD_EXAMPLES=yes ;;
1767   no)  BUILD_EXAMPLES=no ;;
1768   *) AC_MSG_ERROR(bad value ${enableval} for --disable-examples) ;;
1769 esac], 
1770 [BUILD_EXAMPLES=yes]) dnl Default value
1772 dnl seeking needs freetype, so check for it here
1773 PKG_CHECK_MODULES(FT2, freetype2 >= 2.0.9, HAVE_FT2="yes", [
1774   AC_CHECK_FT2(2.0.9, HAVE_FT2="yes", HAVE_FT2="no")
1775 ])
1776 dnl make the HAVE_FT2 variable available to automake and Makefile.am
1777 AM_CONDITIONAL(HAVE_FT2, test "x$HAVE_FT2" = "xyes")
1778 AC_SUBST(FT2_CFLAGS)
1779 AC_SUBST(FT2_LIBS)
1781 dnl ################################################
1782 dnl # Set defines according to variables set above #
1783 dnl ################################################
1786 if test "x$USE_LIBMMX" = xyes; then
1787   AC_DEFINE(HAVE_LIBMMX, 1, [Define if libmmx is available])
1788 fi
1790 if test "x$USE_ATOMIC_H" = xyes; then
1791   AC_DEFINE(HAVE_ATOMIC_H, 1, [Define if atomic.h header file is available])
1792 fi
1794 # do not use deprecated stuff
1795 GST_CFLAGS="$GST_CFLAGS -DGST_DISABLE_DEPRECATED"
1797 if test "x$USE_DEBUG" = xyes; then
1798   GST_CFLAGS="$GST_CFLAGS -g"
1799 fi
1801 dnl #############################
1802 dnl # Set automake conditionals #
1803 dnl #############################
1805 dnl These should be "USE_*" instead of "HAVE_*", but some packages expect
1806 dnl HAVE_ and it is likely to be easier to stick with the old name
1807 AM_CONDITIONAL(HAVE_LIBMMX,         test "x$USE_LIBMMX" = "xyes")
1809 AM_CONDITIONAL(HAVE_ATOMIC_H,       test "x$USE_ATOMIC_H" = "xyes")
1811 AM_CONDITIONAL(EXPERIMENTAL,        test "$EXPERIMENTAL" = "$xyes")
1812 AM_CONDITIONAL(BROKEN,              test "$BROKEN" = "$xyes")
1814 AM_CONDITIONAL(HAVE_NASM,           test "x$HAVE_NASM" = "xyes")
1815 AM_CONDITIONAL(HAVE_GTK,            test "x$HAVE_GTK" = "xyes")
1816 AM_CONDITIONAL(HAVE_GTK_DOC,        $HAVE_GTK_DOC)
1817 AM_CONDITIONAL(BUILD_DOCS,          test "x$BUILD_DOCS" = "xyes")
1818 AM_CONDITIONAL(BUILD_TESTS,         test "x$BUILD_TESTS" = "xyes")
1819 AM_CONDITIONAL(BUILD_EXAMPLES,      test "x$BUILD_EXAMPLES" = "xyes")
1820 AM_CONDITIONAL(BUILD_PLUGIN_DOCS,   test "x$BUILD_PLUGIN_DOCS" = "xyes")
1821 AM_CONDITIONAL(HAVE_FIG2DEV_PNG,    $HAVE_FIG2DEV_PNG)
1822 AM_CONDITIONAL(HAVE_FIG2DEV_PDF,    $HAVE_FIG2DEV_PDF)
1823 AM_CONDITIONAL(HAVE_RAW1394,        test "x$HAVE_RAW1394" = "xyes")
1825 dnl prefer internal headers to already installed ones
1826 dnl also add builddir include for enumtypes and marshal
1827 GST_CFLAGS="-I\$(top_srcdir)/gst-libs -I\$(top_builddir)/gst-libs $GST_CFLAGS $GST_ERROR"
1829 AC_SUBST(GST_LIBS)
1830 AC_SUBST(GST_CFLAGS)
1832 dnl ###########################
1833 dnl # Configure external libs #
1834 dnl ###########################
1836 dnl ############################
1837 dnl # Set up some more defines #
1838 dnl ############################
1840 dnl set license and copyright notice
1841 AC_DEFINE(GST_LICENSE, "LGPL", [GStreamer license])
1843 dnl package name in plugins
1844 AC_ARG_WITH(package-name,
1845 AC_HELP_STRING([--with-package-name],[specify package name to use in plugins]),
1846 [case "${withval}" in
1847   yes) AC_MSG_ERROR(bad value ${withval} for --with-package-name) ;;
1848   no) AC_MSG_ERROR(bad value ${withval} for --with-package-name) ;;
1849   *) GST_PACKAGE="${withval}" ;;
1850 esac], 
1852 dnl default value
1853 if test "x$GST_CVS" = "xyes"
1854 then
1855   dnl nano >= 1
1856   GST_PACKAGE="GStreamer CVS/prerelease"
1857 else
1858   GST_PACKAGE="GStreamer source release"
1859 fi
1862 AC_MSG_NOTICE(Using $GST_PACKAGE as package name)
1863 AC_DEFINE_UNQUOTED(GST_PACKAGE, "$GST_PACKAGE", [package name in plugins])
1865 dnl package origin URL
1866 AC_ARG_WITH(package-origin,
1867 AC_HELP_STRING([--with-package-origin],[specify package origin URL to use in plugins]),
1868 [case "${withval}" in
1869   yes) AC_MSG_ERROR(bad value ${withval} for --with-package-origin) ;;
1870   no) AC_MSG_ERROR(bad value ${withval} for --with-package-origin) ;;
1871   *) GST_ORIGIN="${withval}" ;;
1872 esac], 
1873 [GST_ORIGIN="http://gstreamer.freedesktop.org/"]) dnl Default value
1874 AC_MSG_NOTICE(Using $GST_ORIGIN as package origin)
1875 AC_DEFINE_UNQUOTED(GST_ORIGIN, "$GST_ORIGIN", [package origin])
1877 dnl #########################
1878 dnl # Make the output files #
1879 dnl #########################
1881 AC_CONFIG_FILES(
1882 Makefile
1883 gst-plugins.spec
1884 gst/Makefile
1885 gst/ac3parse/Makefile
1886 gst/adder/Makefile
1887 gst/alpha/Makefile
1888 gst/apetag/Makefile
1889 gst/asfdemux/Makefile
1890 gst/audioconvert/Makefile
1891 gst/audioscale/Makefile
1892 gst/audiorate/Makefile
1893 gst/auparse/Makefile
1894 gst/avi/Makefile
1895 gst/cdxaparse/Makefile
1896 gst/chart/Makefile
1897 gst/colorspace/Makefile
1898 gst/cutter/Makefile
1899 gst/debug/Makefile
1900 gst/deinterlace/Makefile
1901 gst/effectv/Makefile
1902 gst/equalizer/Makefile
1903 gst/festival/Makefile
1904 gst/ffmpegcolorspace/Makefile
1905 gst/filter/Makefile
1906 gst/flx/Makefile
1907 gst/goom/Makefile
1908 gst/interleave/Makefile
1909 gst/law/Makefile
1910 gst/level/Makefile
1911 gst/matroska/Makefile
1912 gst/median/Makefile
1913 gst/mixmatrix/Makefile
1914 gst/mpeg1sys/Makefile
1915 gst/mpeg1videoparse/Makefile
1916 gst/mpeg2sub/Makefile
1917 gst/mpegaudio/Makefile
1918 gst/mpegaudioparse/Makefile
1919 gst/mpegstream/Makefile
1920 gst/modplug/Makefile
1921 gst/modplug/libmodplug/Makefile
1922 gst/monoscope/Makefile
1923 gst/multifilesink/Makefile
1924 gst/multipart/Makefile
1925 gst/overlay/Makefile
1926 gst/passthrough/Makefile
1927 gst/playback/Makefile
1928 gst/playondemand/Makefile
1929 gst/qtdemux/Makefile
1930 gst/realmedia/Makefile
1931 gst/rtjpeg/Makefile
1932 gst/rtp/Makefile
1933 gst/silence/Makefile
1934 gst/sine/Makefile
1935 gst/smooth/Makefile
1936 gst/smpte/Makefile
1937 gst/spectrum/Makefile
1938 gst/speed/Makefile
1939 gst/stereo/Makefile
1940 gst/switch/Makefile
1941 gst/synaesthesia/Makefile
1942 gst/tags/Makefile
1943 gst/tcp/Makefile
1944 gst/tta/Makefile
1945 gst/typefind/Makefile
1946 gst/udp/Makefile
1947 gst/vbidec/Makefile
1948 gst/videobox/Makefile
1949 gst/videocrop/Makefile
1950 gst/videodrop/Makefile
1951 gst/videofilter/Makefile
1952 gst/videoflip/Makefile
1953 gst/videomixer/Makefile
1954 gst/videorate/Makefile
1955 gst/videoscale/Makefile
1956 gst/videotestsrc/Makefile
1957 gst/volenv/Makefile
1958 gst/volume/Makefile
1959 gst/wavenc/Makefile
1960 gst/wavparse/Makefile
1961 gst/y4m/Makefile
1962 sys/Makefile
1963 sys/cdrom/Makefile
1964 sys/dxr3/Makefile
1965 sys/glsink/Makefile
1966 sys/oss/Makefile
1967 sys/osxaudio/Makefile
1968 sys/osxvideo/Makefile
1969 sys/qcam/Makefile
1970 sys/sunaudio/Makefile
1971 sys/v4l/Makefile
1972 sys/v4l2/Makefile
1973 sys/vcd/Makefile
1974 sys/ximage/Makefile
1975 sys/xvimage/Makefile
1976 ext/Makefile
1977 ext/a52dec/Makefile
1978 ext/aalib/Makefile
1979 ext/alsa/Makefile
1980 ext/arts/Makefile
1981 ext/artsd/Makefile
1982 ext/audiofile/Makefile
1983 ext/cdaudio/Makefile
1984 ext/cdparanoia/Makefile
1985 ext/dirac/Makefile
1986 ext/directfb/Makefile
1987 ext/divx/Makefile
1988 ext/dts/Makefile
1989 ext/dv/Makefile
1990 ext/dvdread/Makefile
1991 ext/dvdnav/Makefile
1992 ext/esd/Makefile
1993 ext/faac/Makefile
1994 ext/faad/Makefile
1995 ext/flac/Makefile
1996 ext/gdk_pixbuf/Makefile
1997 ext/gnomevfs/Makefile
1998 ext/gsm/Makefile
1999 ext/hermes/Makefile
2000 dnl ext/http/Makefile
2001 ext/jack/Makefile
2002 ext/jpeg/Makefile
2003 ext/ladspa/Makefile
2004 ext/lame/Makefile
2005 ext/ivorbis/Makefile
2006 ext/lcs/Makefile
2007 ext/libcaca/Makefile
2008 ext/libfame/Makefile
2009 ext/libmng/Makefile
2010 ext/libpng/Makefile
2011 ext/librfb/Makefile
2012 ext/libvisual/Makefile
2013 ext/mad/Makefile
2014 dnl ext/mas/Makefile
2015 ext/mikmod/Makefile
2016 ext/mpeg2dec/Makefile
2017 ext/mpeg2enc/Makefile
2018 ext/mplex/Makefile
2019 ext/musepack/Makefile
2020 ext/musicbrainz/Makefile
2021 ext/nas/Makefile
2022 ext/ogg/Makefile
2023 ext/pango/Makefile
2024 ext/polyp/Makefile
2025 ext/raw1394/Makefile
2026 ext/sdl/Makefile
2027 ext/shout/Makefile
2028 ext/shout2/Makefile
2029 ext/sidplay/Makefile
2030 ext/smoothwave/Makefile
2031 ext/snapshot/Makefile
2032 ext/speex/Makefile
2033 ext/sndfile/Makefile
2034 ext/swfdec/Makefile
2035 ext/tarkin/Makefile
2036 ext/theora/Makefile
2037 ext/vorbis/Makefile
2038 ext/xine/Makefile
2039 ext/xvid/Makefile
2040 gst-libs/Makefile
2041 gst-libs/gst/Makefile
2042 gst-libs/gst/audio/Makefile
2043 gst-libs/gst/colorbalance/Makefile
2044 gst-libs/gst/floatcast/Makefile
2045 gst-libs/gst/gconf/Makefile
2046 gst-libs/gst/idct/Makefile
2047 gst-libs/gst/media-info/Makefile
2048 gst-libs/gst/mixer/Makefile
2049 gst-libs/gst/navigation/Makefile
2050 gst-libs/gst/play/Makefile
2051 gst-libs/gst/propertyprobe/Makefile
2052 gst-libs/gst/resample/Makefile
2053 gst-libs/gst/riff/Makefile
2054 gst-libs/gst/tag/Makefile
2055 gst-libs/gst/tuner/Makefile
2056 gst-libs/gst/video/Makefile
2057 gst-libs/gst/xoverlay/Makefile
2058 gst-libs/gst/xwindowlistener/Makefile
2059 gst-libs/ext/Makefile
2060 examples/dynparams/Makefile
2061 examples/capsfilter/Makefile
2062 examples/seeking/Makefile
2063 examples/indexing/Makefile
2064 examples/gstplay/Makefile
2065 examples/switch/Makefile
2066 examples/Makefile
2067 testsuite/spider/Makefile
2068 testsuite/alsa/Makefile
2069 testsuite/multifilesink/Makefile
2070 testsuite/Makefile
2071 tools/Makefile
2072 gconf/Makefile
2073 gconf/gstreamer.schemas
2074 pkgconfig/Makefile
2075 pkgconfig/gstreamer-gconf.pc
2076 pkgconfig/gstreamer-gconf-uninstalled.pc
2077 pkgconfig/gstreamer-interfaces.pc
2078 pkgconfig/gstreamer-interfaces-uninstalled.pc
2079 pkgconfig/gstreamer-libs.pc
2080 pkgconfig/gstreamer-libs-uninstalled.pc
2081 pkgconfig/gstreamer-media-info.pc
2082 pkgconfig/gstreamer-media-info-uninstalled.pc
2083 pkgconfig/gstreamer-play.pc
2084 pkgconfig/gstreamer-play-uninstalled.pc
2085 pkgconfig/gstreamer-plugins.pc
2086 pkgconfig/gstreamer-plugins-uninstalled.pc
2087 po/Makefile.in
2088 common/Makefile
2089 common/m4/Makefile
2090 m4/Makefile
2092 AC_OUTPUT
2094 echo -n "configure: *** Plug-ins that will be built :"
2095 echo -e "$GST_PLUGINS_YES" | sort
2096 echo
2097 echo -n "configure: *** Plug-ins that will not be built :"
2098 echo -e "$GST_PLUGINS_NO" | sort
2099 echo
2100 if test "x$BUILD_EXTERNAL" = "xno"; then
2101   echo "configure: *** No external plug-ins will be built"
2102 fi