first prerelease
[platform/upstream/gst-plugins-base.git] / configure.ac
1 AC_PREREQ(2.52)
2
3 dnl please read gstreamer/docs/random/autotools before changing this file
4
5 dnl initialize autoconf
6 dnl releases only do -Wall, cvs and prerelease does -Werror too
7 dnl use a three digit version number for releases, and four for cvs/prerelease
8 AC_INIT(GStreamer Base Plug-ins, 0.10.9.2,
9     http://bugzilla.gnome.org/enter_bug.cgi?product=GStreamer,
10     gst-plugins-base)
11
12 dnl initialize automake
13 AM_INIT_AUTOMAKE
14
15 dnl define PACKAGE_VERSION_* variables
16 AS_VERSION
17
18 dnl check if this is a release version
19 AS_NANO(GST_CVS="no", GST_CVS="yes")
20
21 dnl can autoconf find the source ?
22 AC_CONFIG_SRCDIR([gst/audiotestsrc/gstaudiotestsrc.c])
23
24 dnl define the output header for config
25 AM_CONFIG_HEADER([config.h])
26
27 dnl AM_MAINTAINER_MODE only provides the option to configure to enable it
28 AM_MAINTAINER_MODE
29
30 dnl sets host_* variables
31 AC_CANONICAL_HOST
32
33 dnl our libraries and install dirs use major.minor as a version
34 GST_MAJORMINOR=$PACKAGE_VERSION_MAJOR.$PACKAGE_VERSION_MINOR
35 dnl we override it here if we need to for the release candidate of new series
36 GST_MAJORMINOR=0.10
37 AC_SUBST(GST_MAJORMINOR)
38
39 dnl CURRENT, REVISION, AGE
40 dnl - library source changed -> increment REVISION
41 dnl - interfaces added/removed/changed -> increment CURRENT, REVISION = 0
42 dnl - interfaces added -> increment AGE
43 dnl - interfaces removed -> AGE = 0
44 dnl sets GST_LT_LDFLAGS
45 AS_LIBTOOL(GST, 6, 0, 6)
46
47 dnl FIXME: this macro doesn't actually work;
48 dnl the generated libtool script has no support for the listed tags.
49 dnl So this needs to be fixed first if we want to use this
50 dnl AS_LIBTOOL_TAGS
51
52 AM_PROG_LIBTOOL
53
54 dnl *** required versions of GStreamer stuff ***
55 GST_REQ=0.10.9.1
56
57 dnl *** autotools stuff ****
58
59 dnl allow for different autotools
60 AS_AUTOTOOLS_ALTERNATE
61
62 dnl Add parameters for aclocal
63 AC_SUBST(ACLOCAL_AMFLAGS, "-I m4 -I common/m4")
64
65 dnl set up gettext
66 dnl the version check needs to stay here because autopoint greps for it
67 AM_GNU_GETTEXT_VERSION([0.11.5])
68 AM_GNU_GETTEXT([external])
69 GST_GETTEXT([gst-plugins-base-$GST_MAJORMINOR])
70
71 dnl *** check for arguments to configure ***
72
73 GST_ARG_DEBUG
74 GST_ARG_PROFILING
75 GST_ARG_VALGRIND
76 GST_ARG_GCOV
77
78 GST_ARG_EXAMPLES
79
80 GST_ARG_WITH_PKG_CONFIG_PATH
81 GST_ARG_WITH_PACKAGE_NAME
82 GST_ARG_WITH_PACKAGE_ORIGIN
83
84 dnl these are all the gst plug-ins, compilable without additional libs
85 GST_PLUGINS_ALL="\
86         adder \
87         audioconvert \
88         audiorate \
89         audioresample \
90         audiotestsrc \
91         ffmpegcolorspace \
92         gdp \
93         playback \
94         typefind \
95         videotestsrc \
96         videorate \
97         videoscale \
98         volume \
99         "
100 AC_SUBST(GST_PLUGINS_ALL)
101
102 GST_PLUGINS_SELECTED=""
103
104 AC_ARG_WITH(plugins,
105     AC_HELP_STRING([--with-plugins],
106       [comma-separated list of plug-ins to compile]),
107     [for i in `echo $withval | tr , ' '`; do
108         if echo $GST_PLUGINS_ALL | grep $i > /dev/null
109         then
110             GST_PLUGINS_SELECTED="$GST_PLUGINS_SELECTED $i"
111         else
112             echo "plug-in $i not recognized, ignoring..."
113         fi
114     done],
115     [GST_PLUGINS_SELECTED=$GST_PLUGINS_ALL])
116
117 AC_SUBST(GST_PLUGINS_SELECTED)
118
119 dnl ext plug-ins; plug-ins that have external dependencies
120 GST_CHECK_FEATURE(EXTERNAL, [enable building of plug-ins with external deps],,
121   [HAVE_EXTERNAL=yes], enabled,
122   [
123     AC_MSG_NOTICE(building external plug-ins)
124     BUILD_EXTERNAL="yes"
125   ],[
126     AC_MSG_NOTICE(all plug-ins with external dependencies will not be built)
127     BUILD_EXTERNAL="no"
128   ])
129 AM_CONDITIONAL(BUILD_EXTERNAL, test "x$BUILD_EXTERNAL" = "xyes")
130
131 dnl *** checks for platform ***
132
133 dnl * hardware/architecture *
134
135 dnl common/m4/gst-arch.m4
136 dnl check CPU type
137 GST_ARCH
138
139 dnl *** checks for programs ***
140
141 dnl find a compiler
142 AC_PROG_CC
143
144 dnl determine c++ compiler
145 AC_PROG_CXX
146 dnl determine if c++ is available on this system
147 AC_CHECK_PROG(HAVE_CXX, $CXX, yes, no)
148
149 dnl determine c++ preprocessor
150 dnl FIXME: do we need this ?
151 AC_PROG_CXXCPP
152
153 AC_PATH_PROG(VALGRIND_PATH, valgrind, no)
154 AM_CONDITIONAL(HAVE_VALGRIND, test ! "x$VALGRIND_PATH" = "xno")
155
156 dnl check for documentation tools
157 GTK_DOC_CHECK([1.3])
158 AS_PATH_PYTHON([2.1])
159 GST_PLUGIN_DOCS([1.3],[2.1])
160
161 dnl *** checks for libraries ***
162
163 dnl For interactive UNIX (a Sun thing)
164 dnl FIXME: this adds -lcposix to LIBS, but I doubt we use LIBS
165 AC_ISC_POSIX
166
167 dnl *** checks for header files ***
168
169 dnl check if we have ANSI C header files
170 AC_HEADER_STDC
171
172 dnl used in gst/ffmpegcolorspace/mem.c
173 dnl FIXME: could be fixed by redefining av_malloc and av_free to GLib's
174 AC_CHECK_HEADERS([malloc.h])
175
176 dnl used in gst/subparse/gstsubparse.c
177 AC_CHECK_HEADERS([regex.h], HAVE_REGEX_H="yes", HAVE_REGEX_H="no")
178 AM_CONDITIONAL(HAVE_REGEX_H, test "x$HAVE_REGEX_H" = "xyes")
179
180 dnl used in gst/tcp
181 AC_CHECK_HEADERS([sys/socket.h], 
182   HAVE_SYS_SOCKET_H="yes", HAVE_SYS_SOCKET_H="no")
183 AM_CONDITIONAL(HAVE_SYS_SOCKET_H, test "x$HAVE_SYS_SOCKET_H" = "xyes")
184
185 dnl ffmpegcolorspace includes _stdint.h
186 dnl also, Windows does not have long long
187 AX_CREATE_STDINT_H
188
189 dnl *** checks for types/defines ***
190
191 dnl Check for FIONREAD ioctl declaration
192 dnl used in gst/tcp
193 GST_CHECK_FIONREAD
194
195 dnl *** checks for structures ***
196
197 dnl *** checks for compiler characteristics ***
198
199 dnl make sure we can use "inline" from C code
200 AC_C_INLINE
201
202 dnl *** checks for library functions ***
203
204 dnl Check for fast float to int casting as defined in C99
205 dnl used in gst-libs/gst/floatcast/floatcast.h
206 AC_C99_FUNC_LRINT
207 AC_C99_FUNC_LRINTF
208
209 dnl Check for a way to display the function name in debug output
210 GST_CHECK_FUNCTION
211
212 dnl *** checks for dependancy libraries ***
213
214 dnl GLib is required
215 GST_GLIB_CHECK([2.6])
216
217 dnl liboil is required
218 PKG_CHECK_MODULES(LIBOIL, liboil-0.3 >= 0.3.6, HAVE_LIBOIL=yes, HAVE_LIBOIL=no)
219 if test "x$HAVE_LIBOIL" != "xyes"
220 then
221   AC_ERROR([liboil-0.3.6 or later is required])
222 fi
223
224 dnl checks for gstreamer
225 dnl uninstalled is selected preferentially -- see pkg-config(1)
226 GST_CHECK_GST($GST_MAJORMINOR, [$GST_REQ])
227 GST_CHECK_GST_BASE($GST_MAJORMINOR, [$GST_REQ])
228 GST_CHECK_GST_GDP($GST_MAJORMINOR, [$GST_REQ])
229 GST_CHECK_GST_CONTROLLER($GST_MAJORMINOR, [$GST_REQ])
230 GST_CHECK_GST_CHECK($GST_MAJORMINOR, [$GST_REQ], no)
231
232 dnl FIXME: get rid of this by making sure gstreamer-check brings it in
233 dnl check for "check", unit testing library/header
234 AM_PATH_CHECK(0.9.2, HAVE_CHECK=yes, HAVE_CHECK=no)
235 AM_CONDITIONAL(HAVE_CHECK, test "x$HAVE_CHECK" = "xyes")
236
237 dnl GTK is optional and used in examples
238 HAVE_GTK=NO
239 PKG_CHECK_MODULES(GTK2, gtk+-2.0 >= 2.2.0, HAVE_GTK_22=yes, HAVE_GTK_22=no)
240 if test "x$HAVE_GTK_22" = "xyes"; then
241   HAVE_GTK=yes
242   GTK_VERSION=`$PKG_CONFIG --variable=gtk_binary_version gtk+-2.0`
243   AC_SUBST(GTK_VERSION)
244   GTK_PREFIX=`$PKG_CONFIG --variable=prefix gdk-pixbuf-2.0`
245   AC_SUBST(GTK_BASE_DIR)
246 else
247   PKG_CHECK_MODULES(GTK2, gtk+-2.0, HAVE_GTK_20=yes, HAVE_GTK_20=no)
248 fi
249 if test "x$HAVE_GTK_20" = "xyes"; then
250   HAVE_GTK=yes
251 fi
252 GTK_CFLAGS=$GTK2_CFLAGS
253 GTK_LIBS=$GTK2_LIBS
254 AC_SUBST(GTK_LIBS)
255 AC_SUBST(GTK_CFLAGS)
256 AC_SUBST(HAVE_GTK)
257 AM_CONDITIONAL(HAVE_GTK, test "x$HAVE_GTK" = "xyes")
258
259 dnl *** set variables based on configure arguments ***
260
261 dnl set license and copyright notice
262 GST_LICENSE="LGPL"
263 AC_DEFINE_UNQUOTED(GST_LICENSE, "$GST_LICENSE", [GStreamer license])
264 AC_SUBST(GST_LICENSE)
265
266 dnl set location of plugin directory
267 GST_SET_PLUGINDIR
268
269 dnl define an ERROR_CFLAGS Makefile variable
270 GST_SET_ERROR_CFLAGS($GST_CVS)
271
272 dnl define correct level for debugging messages
273 GST_SET_LEVEL_DEFAULT($GST_CVS)
274
275 dnl used in examples
276 GST_DEFAULT_ELEMENTS
277
278 dnl *** sys plug-ins ***
279
280 echo
281 AC_MSG_NOTICE([Checking libraries for plugins in sys/])
282 echo
283
284 dnl *** X11 ***
285 translit(dnm, m, l) AM_CONDITIONAL(USE_X, true)
286 GST_CHECK_FEATURE(X, [X libraries and plugins],
287                   [ximagesink], [
288   AC_PATH_XTRA
289   ac_cflags_save="$CFLAGS"
290   ac_cppflags_save="$CPPFLAGS"
291   CFLAGS="$CFLAGS $X_CFLAGS"
292   CPPFLAGS="$CPPFLAGS $X_CFLAGS"
293
294   dnl now try to find the HEADER
295   AC_CHECK_HEADER(X11/Xlib.h, HAVE_X="yes", HAVE_X="no")
296
297   if test "x$HAVE_X" = "xno"
298   then
299     AC_MSG_NOTICE([cannot find X11 development files])
300   else
301     dnl this is much more than we want
302     X_LIBS="$X_LIBS $X_PRE_LIBS $X_EXTRA_LIBS"
303     dnl AC_PATH_XTRA only defines the path needed to find the X libs,
304     dnl it does not add the libs; therefore we add them here
305     X_LIBS="$X_LIBS -lX11"
306     AC_SUBST(X_CFLAGS)
307     AC_SUBST(X_LIBS)
308   fi
309   AC_SUBST(HAVE_X)
310   CFLAGS="$ac_cflags_save"
311   CPPFLAGS="$ac_cppflags_save"
312 ])
313   
314 dnl Check for Xv extension
315 translit(dnm, m, l) AM_CONDITIONAL(USE_XVIDEO, true)
316 GST_CHECK_FEATURE(XVIDEO, [X11 XVideo extensions],
317                   [xvimagesink], [
318   GST_CHECK_XV
319 ])
320
321 dnl check for X Shm
322 translit(dnm, m, l) AM_CONDITIONAL(USE_XSHM, true)
323 GST_CHECK_FEATURE(XSHM, [X Shared Memory extension], , [
324   if test x$HAVE_X = xyes; then
325     AC_CHECK_LIB(Xext, XShmAttach, 
326                  HAVE_XSHM="yes", HAVE_XSHM="no",
327                  $X_LIBS) 
328     if test "x$HAVE_XSHM" = "xyes"; then
329       XSHM_LIBS="-lXext"
330     else
331       dnl On AIX, it is in XextSam instead, but we still need -lXext
332       AC_CHECK_LIB(XextSam, XShmAttach, 
333                    HAVE_XSHM="yes", HAVE_XSHM="no",
334                    $X_LIBS) 
335       if test "x$HAVE_XSHM" = "xyes"; then
336         XSHM_LIBS="-lXext -lXextSam"
337       fi
338     fi
339   fi
340 ], , [ 
341   AC_SUBST(HAVE_XSHM) 
342   AC_SUBST(XSHM_LIBS) 
343 ])
344
345 dnl v4l/v4l2 checks have been moved down because they require X
346
347 dnl *** Video 4 Linux ***
348 dnl for information about the header/define, see sys/v4l/gstv4lelement.h
349 dnl renamed to GST_V4L in accordance with V4L2 below
350 translit(dnm, m, l) AM_CONDITIONAL(USE_GST_V4L, true)
351 GST_CHECK_FEATURE(GST_V4L, [Video 4 Linux], video4linux, [
352   AC_CHECK_DECL(VID_TYPE_MPEG_ENCODER, HAVE_GST_V4L="yes", HAVE_GST_V4L="no", [
353 #include <sys/types.h>
354 #define _LINUX_TIME_H
355 #define __user
356 #include <linux/videodev.h>
357   ])
358
359   dnl we can build v4l without Xv, but then we won't have XOverlay support
360   if test "x$HAVE_GST_V4L" = "xyes" -a "x$HAVE_XVIDEO" != "xyes"
361   then
362     AC_MSG_NOTICE([NO XVIDEO FOUND, VIDEO4LINUX WILL BE BUILT])
363     AC_MSG_NOTICE([WITHOUT XOVERLAY SUPPORT])
364   fi
365 ])
366
367 dnl *** ext plug-ins ***
368 dnl keep this list sorted alphabetically !
369
370 if test "x$BUILD_EXTERNAL" = "xyes"; then
371
372 echo
373 AC_MSG_NOTICE([Checking libraries for plugins in ext/])
374 echo
375
376 dnl *** alsa ***
377 translit(dnm, m, l) AM_CONDITIONAL(USE_ALSA, true)
378 GST_CHECK_FEATURE(ALSA, [ALSA], alsa, [
379   PKG_CHECK_MODULES(ALSA, alsa >= 0.9.1, [
380     HAVE_ALSA="yes"
381     AC_SUBST(ALSA_CFLAGS)
382     AC_SUBST(ALSA_LIBS)
383   ], [
384     AM_PATH_ALSA(0.9.1, HAVE_ALSA="yes", HAVE_ALSA="no")
385   ])
386 ])
387
388 dnl *** CDParanoia ***
389 translit(dnm, m, l) AM_CONDITIONAL(USE_CDPARANOIA, true)
390 GST_CHECK_FEATURE(CDPARANOIA, [CDParanoia], cdparanoia, [
391   GST_CHECK_LIBHEADER(CDPARANOIA, cdda_interface, 
392                       cdda_open, -lm, 
393                       cdda_interface.h, 
394                       CDPARANOIA_LIBS="-lcdda_interface -lcdda_paranoia"
395                       HEADER_DIR="no"
396                       FOUND_CDPARANOIA="yes")
397   if test "x$FOUND_CDPARANOIA" != "xyes";
398   then
399     GST_CHECK_LIBHEADER(CDPARANOIA, cdda_interface, 
400                         cdda_open, -lm, 
401                         cdda/cdda_interface.h, 
402                         CDPARANOIA_LIBS="-lcdda_interface -lcdda_paranoia"
403                         HEADER_DIR="yes"
404                         FOUND_CDPARANOIA="yes")
405   fi
406   if test "x$HEADER_DIR" = "xyes";
407   then
408     AC_DEFINE_UNQUOTED(CDPARANOIA_HEADERS_IN_DIR, ,
409                        defined if cdda headers are in a cdda/ directory)
410   fi
411   AC_SUBST(CDPARANOIA_LIBS)
412 ])
413 dnl FIXME : add second check somehow if that is necessary
414 dnl AC_CHECK_LIB(cdda_paranoia, paranoia_init, : , HAVE_CDPARANOIA=no, -lcdda_interface )
415 dnl AC_CHECK_HEADER(cdda_paranoia.h, :, HAVE_CDPARANOIA=no)
416
417 dnl *** GNOME VFS ***
418 translit(dnm, m, l) AM_CONDITIONAL(USE_GNOME_VFS, true)
419 GST_CHECK_FEATURE(GNOME_VFS, [GNOME VFS], gnomevfs, [
420   GST_PKG_CHECK_MODULES(GNOME_VFS, gnome-vfs-2.0)
421 ])
422
423 dnl *** libvisual ***
424 translit(dnm, m, l) AM_CONDITIONAL(USE_LIBVISUAL, true)
425 GST_CHECK_FEATURE(LIBVISUAL, [libvisual visualization library], libvisual, [
426   GST_PKG_CHECK_MODULES(LIBVISUAL, libvisual-0.4 >= 0.4.0)
427   if test $HAVE_LIBVISUAL = no
428   then
429     GST_PKG_CHECK_MODULES(LIBVISUAL, libvisual = 0.2.0)
430   fi
431 ])
432
433 dnl *** ogg ***
434 translit(dnm, m, l) AM_CONDITIONAL(USE_OGG, true)
435 GST_CHECK_FEATURE(OGG, [Xiph Ogg library], ogg, [
436   GST_PKG_CHECK_MODULES(OGG, ogg >= 1.0)
437   if test $HAVE_OGG = no
438   then
439     XIPH_PATH_OGG(HAVE_OGG="yes", HAVE_OGG="no")
440     AS_SCRUB_INCLUDE(OGG_CFLAGS)
441   fi
442 ])
443
444 dnl *** pango ***
445 translit(dnm, m, l) AM_CONDITIONAL(USE_PANGO, true)
446 GST_CHECK_FEATURE(PANGO, [Pango font rendering], pango, [
447   GST_PKG_CHECK_MODULES(PANGO, pango pangoft2)
448 ])
449
450 dnl *** theora ***
451 translit(dnm, m, l) AM_CONDITIONAL(USE_THEORA, true)
452 GST_CHECK_FEATURE(THEORA, [Xiph Theora video codec], theora, [
453   GST_PKG_CHECK_MODULES(THEORA, theora)
454   if test $HAVE_THEORA = no
455   then
456     GST_CHECK_LIBHEADER(THEORA, theora, theora_version_string, "-logg", theora/theora.h, THEORA_LIBS="-ltheora -logg")
457     AC_SUBST(THEORA_LIBS)
458   fi
459 ])
460
461 dnl *** vorbis ***
462 dnl AM_PATH_VORBIS only takes two options
463 translit(dnm, m, l) AM_CONDITIONAL(USE_VORBIS, true)
464 GST_CHECK_FEATURE(VORBIS, [Xiph Vorbis audio codec], vorbis, [
465   GST_PKG_CHECK_MODULES(VORBIS, vorbis >= 1.0 vorbisenc >= 1.0)
466   if test $HAVE_VORBIS = no
467   then
468     XIPH_PATH_VORBIS(HAVE_VORBIS="yes", HAVE_VORBIS="no")
469     AS_SCRUB_INCLUDE(VORBIS_CFLAGS)
470   fi
471 ])
472
473 if test "x$HAVE_VORBIS" = "xyes"; then
474   ac_cflags_save="$CFLAGS"
475   dnl FIXME: does this work on non-gcc? -- Company
476   dnl FIXME: no, it doesn't.  Why is this here in the first place ? -- thomasvs
477   CFLAGS="-Wall -Werror"
478   AC_COMPILE_IFELSE(
479     AC_LANG_PROGRAM([
480 #include <vorbis/codec.h>
481                      ],[
482 vorbis_dsp_state *v;
483
484 vorbis_synthesis_restart (v);
485                      ]), HAVE_VSR=yes, HAVE_VSR=no)
486   if test "x$HAVE_VSR" = "xyes"; then
487     AC_DEFINE_UNQUOTED(HAVE_VORBIS_SYNTHESIS_RESTART, 1,
488                        [defined if vorbis_synthesis_restart is present])
489   fi
490   CFLAGS="$ac_cflags_save"
491 fi
492
493 else
494
495 dnl not building plugins with external dependencies,
496 dnl but we still need to set the conditionals
497 AM_CONDITIONAL(USE_ALSA, false)
498 AM_CONDITIONAL(USE_CDPARANOIA, false)
499 AM_CONDITIONAL(USE_GNOME_VFS, false)
500 AM_CONDITIONAL(USE_LIBVISUAL, false)
501 AM_CONDITIONAL(USE_OGG, false)
502 AM_CONDITIONAL(USE_PANGO, false)
503 AM_CONDITIONAL(USE_THEORA, false)
504 AM_CONDITIONAL(USE_VORBIS, false)
505
506 fi dnl of EXT plugins
507
508 dnl seeking needs freetype, so check for it here
509 PKG_CHECK_MODULES(FT2, freetype2 >= 2.0.9, HAVE_FT2="yes", [
510   AC_CHECK_FT2(2.0.9, HAVE_FT2="yes", HAVE_FT2="no")
511 ])
512 dnl make the HAVE_FT2 variable available to automake and Makefile.am
513 AM_CONDITIONAL(HAVE_FT2, test "x$HAVE_FT2" = "xyes")
514 AC_SUBST(FT2_CFLAGS)
515 AC_SUBST(FT2_LIBS)
516
517 dnl *** finalize CFLAGS, LDFLAGS, LIBS
518
519 dnl Overview:
520 dnl GST_OPTION_CFLAGS:  common flags for profiling, debugging, errors, ...
521 dnl GST_*:              flags shared by built objects to link against GStreamer
522 dnl GST_ALL_LDFLAGS:    linker flags shared by all
523 dnl GST_LIB_LDFLAGS:    additional linker flags for all libaries
524 dnl GST_LT_LDFLAGS:     library versioning of our libraries
525 dnl GST_PLUGIN_LDFLAGS: flags to be used for all plugins
526
527 dnl GST_OPTION_CFLAGS
528 if test "x$USE_DEBUG" = xyes; then
529    PROFILE_CFLAGS="-g"
530 fi
531 AC_SUBST(PROFILE_CFLAGS)
532
533 DEPRECATED_CFLAGS="-DGST_DISABLE_DEPRECATED"
534 AC_SUBST(DEPRECATED_CFLAGS)
535
536 dnl every flag in GST_OPTION_CFLAGS can be overridden at make time
537 GST_OPTION_CFLAGS="\$(ERROR_CFLAGS) \$(DEBUG_CFLAGS) \$(PROFILE_CFLAGS) \$(GCOV_CFLAGS) \$(OPT_CFLAGS) \$(DEPRECATED_CFLAGS)"
538 AC_SUBST(GST_OPTION_CFLAGS)
539
540 dnl our libraries need to be versioned correctly
541 AC_SUBST(GST_LT_LDFLAGS)
542
543 dnl FIXME: do we want to rename to GST_ALL_* ?
544 dnl prefer internal headers to already installed ones
545 dnl also add builddir include for enumtypes and marshal
546 dnl add GST_OPTION_CFLAGS, but overridable
547 GST_CFLAGS="-I\$(top_srcdir)/gst-libs -I\$(top_builddir)/gst-libs $GST_CFLAGS \$(GST_OPTION_CFLAGS)"
548 AC_SUBST(GST_CFLAGS)
549 dnl add GCOV libs because libtool strips -fprofile-arcs -ftest-coverage
550 GST_LIBS="$GST_LIBS \$(GCOV_LIBS)"
551 AC_SUBST(GST_LIBS)
552
553 dnl LDFLAGS really should only contain flags, not libs - they get added before
554 dnl whatevertarget_LIBS and -L flags here affect the rest of the linking
555 GST_ALL_LDFLAGS="-no-undefined"
556 AC_SUBST(GST_ALL_LDFLAGS)
557
558 dnl GST_LIB_LDFLAGS
559 dnl linker flags shared by all libraries
560 dnl LDFLAGS modifier defining exported symbols from built libraries
561 GST_LIB_LDFLAGS="-export-symbols-regex [_]*\(gst_\|Gst\|GST_\).*"
562 AC_SUBST(GST_LIB_LDFLAGS)
563
564 dnl this really should only contain flags, not libs - they get added before
565 dnl whatevertarget_LIBS and -L flags here affect the rest of the linking
566 GST_PLUGIN_LDFLAGS="-module -avoid-version -export-symbols-regex '^[_]*gst_plugin_desc\$\$' $GST_ALL_LDFLAGS"
567 AC_SUBST(GST_PLUGIN_LDFLAGS)
568
569 dnl *** output files ***
570
571 AC_CONFIG_FILES(
572 Makefile
573 gst-plugins-base.spec
574 gst/Makefile
575 gst/adder/Makefile
576 gst/audioconvert/Makefile
577 gst/audiorate/Makefile
578 gst/audioresample/Makefile
579 gst/audiotestsrc/Makefile
580 gst/ffmpegcolorspace/Makefile
581 gst/gdp/Makefile
582 gst/playback/Makefile
583 gst/subparse/Makefile
584 gst/tcp/Makefile
585 gst/typefind/Makefile
586 gst/videotestsrc/Makefile
587 gst/videorate/Makefile
588 gst/videoscale/Makefile
589 gst/volume/Makefile
590 sys/Makefile
591 sys/ximage/Makefile
592 sys/xvimage/Makefile
593 sys/v4l/Makefile
594 ext/Makefile
595 ext/alsa/Makefile
596 ext/cdparanoia/Makefile
597 ext/gnomevfs/Makefile
598 ext/libvisual/Makefile
599 ext/ogg/Makefile
600 ext/pango/Makefile
601 ext/theora/Makefile
602 ext/vorbis/Makefile
603 gst-libs/Makefile
604 gst-libs/gst/Makefile
605 gst-libs/gst/audio/Makefile
606 gst-libs/gst/cdda/Makefile
607 gst-libs/gst/floatcast/Makefile
608 gst-libs/gst/interfaces/Makefile
609 gst-libs/gst/netbuffer/Makefile
610 gst-libs/gst/riff/Makefile
611 gst-libs/gst/rtp/Makefile
612 gst-libs/gst/tag/Makefile
613 gst-libs/gst/video/Makefile
614 tools/Makefile
615 win32/common/config.h
616 pkgconfig/Makefile
617 pkgconfig/gstreamer-plugins-base.pc
618 pkgconfig/gstreamer-plugins-base-uninstalled.pc
619 tests/Makefile
620 tests/check/Makefile
621 tests/examples/Makefile
622 tests/examples/seek/Makefile
623 tests/examples/volume/Makefile
624 tests/icles/Makefile
625 docs/Makefile
626 docs/libs/Makefile
627 docs/plugins/Makefile
628 docs/version.entities
629 po/Makefile.in
630 common/Makefile
631 common/m4/Makefile
632 m4/Makefile
633 )
634 AC_OUTPUT
635
636 GST_OUTPUT_PLUGINS