~ubuntu-branches/ubuntu/vivid/gst-plugins-ugly0.10/vivid-proposed

« back to all changes in this revision

Viewing changes to .pc/a52dec.patch/configure.ac

  • Committer: Package Import Robot
  • Author(s): Artur Rona
  • Date: 2015-02-25 01:04:07 UTC
  • mfrom: (1.4.16 sid)
  • Revision ID: package-import@ubuntu.com-20150225010407-zrx3gg1f6eexyo3t
Tags: 0.10.19-2.1ubuntu1
* Merge from Debian unstable.  Remaining changes:
  - debian/rules, debian/patches/99_ltmain_as-needed.patch:
    + Use dh-autoreconf to fix FTBFS on ppc64el. (Closes: #734561)
* Drop following patch, fixed in Debian:
  - disable-a52_state_t-test.diff -> a52dec.patch

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
AC_PREREQ(2.60)
 
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 Ugly Plug-ins, 0.10.19,
 
9
    http://bugzilla.gnome.org/enter_bug.cgi?product=GStreamer,
 
10
    gst-plugins-ugly)
 
11
 
 
12
AG_GST_INIT
 
13
 
 
14
dnl initialize automake
 
15
AM_INIT_AUTOMAKE([-Wno-portability 1.10])
 
16
 
 
17
dnl define PACKAGE_VERSION_* variables
 
18
AS_VERSION
 
19
 
 
20
dnl check if this is a release version
 
21
AS_NANO(GST_GIT="no", GST_GIT="yes")
 
22
 
 
23
dnl can autoconf find the source ?
 
24
AC_CONFIG_SRCDIR([ext/mad/gstmad.c])
 
25
 
 
26
dnl define the output header for config
 
27
AM_CONFIG_HEADER(config.h)
 
28
 
 
29
dnl AM_MAINTAINER_MODE only provides the option to configure to enable it
 
30
AM_MAINTAINER_MODE
 
31
 
 
32
dnl sets host_* variables
 
33
AC_CANONICAL_HOST
 
34
 
 
35
dnl use pretty build output with automake >= 1.11
 
36
m4_ifdef([AM_SILENT_RULES],[AM_SILENT_RULES([yes])],
 
37
  [AM_DEFAULT_VERBOSITY=1
 
38
   AC_SUBST(AM_DEFAULT_VERBOSITY)])
 
39
 
 
40
dnl our libraries and install dirs use major.minor as a version
 
41
GST_MAJORMINOR=$PACKAGE_VERSION_MAJOR.$PACKAGE_VERSION_MINOR
 
42
dnl we override it here if we need to for the release candidate of new series
 
43
GST_MAJORMINOR=0.10
 
44
AC_SUBST(GST_MAJORMINOR)
 
45
 
 
46
dnl FIXME: this macro doesn't actually work;
 
47
dnl the generated libtool script has no support for the listed tags.
 
48
dnl So this needs to be fixed first if we want to use this
 
49
dnl AS_LIBTOOL_TAGS([CXX])
 
50
 
 
51
AC_LIBTOOL_WIN32_DLL
 
52
AM_PROG_LIBTOOL
 
53
 
 
54
dnl *** required versions of GStreamer stuff ***
 
55
GST_REQ=0.10.36
 
56
GSTPB_REQ=0.10.36
 
57
 
 
58
dnl *** autotools stuff ****
 
59
 
 
60
dnl allow for different autotools
 
61
AS_AUTOTOOLS_ALTERNATE
 
62
 
 
63
dnl Add parameters for aclocal
 
64
AC_SUBST(ACLOCAL_AMFLAGS, "-I m4 -I common/m4")
 
65
 
 
66
dnl set up gettext
 
67
dnl the version check needs to stay here because autopoint greps for it
 
68
AM_GNU_GETTEXT_VERSION(0.17)
 
69
AM_GNU_GETTEXT([external])
 
70
AG_GST_GETTEXT([gst-plugins-ugly-$GST_MAJORMINOR])
 
71
 
 
72
dnl *** check for arguments to configure ***
 
73
 
 
74
AG_GST_ARG_DEBUG
 
75
AG_GST_ARG_PROFILING
 
76
AG_GST_ARG_VALGRIND
 
77
AG_GST_ARG_GCOV
 
78
 
 
79
AG_GST_ARG_EXAMPLES
 
80
 
 
81
AG_GST_ARG_WITH_PKG_CONFIG_PATH
 
82
AG_GST_ARG_WITH_PACKAGE_NAME
 
83
AG_GST_ARG_WITH_PACKAGE_ORIGIN
 
84
 
 
85
AG_GST_ARG_WITH_PLUGINS
 
86
 
 
87
AG_GST_ARG_ENABLE_EXTERNAL
 
88
 
 
89
AG_GST_ARG_ENABLE_EXPERIMENTAL
 
90
 
 
91
dnl *** checks for platform ***
 
92
 
 
93
dnl * hardware/architecture *
 
94
 
 
95
dnl common/m4/gst-arch.m4
 
96
dnl check CPU type
 
97
AG_GST_ARCH
 
98
 
 
99
dnl Determine endianness
 
100
AC_C_BIGENDIAN
 
101
 
 
102
dnl *** checks for programs ***
 
103
 
 
104
dnl find a compiler
 
105
AC_PROG_CC
 
106
AC_PROG_CC_STDC
 
107
 
 
108
dnl determine c++ compiler
 
109
AC_PROG_CXX
 
110
dnl determine if c++ is available on this system
 
111
AC_CHECK_PROG(HAVE_CXX, $CXX, yes, no)
 
112
 
 
113
dnl check if the compiler supports '-c' and '-o' options
 
114
AM_PROG_CC_C_O
 
115
 
 
116
AC_PATH_PROG(VALGRIND_PATH, valgrind, no)
 
117
AM_CONDITIONAL(HAVE_VALGRIND, test ! "x$VALGRIND_PATH" = "xno")
 
118
 
 
119
dnl check if the compiler supports do while(0) macros
 
120
AG_GST_CHECK_DOWHILE_MACROS
 
121
 
 
122
dnl check for documentation tools
 
123
GTK_DOC_CHECK([1.3])
 
124
AS_PATH_PYTHON([2.1])
 
125
AG_GST_PLUGIN_DOCS([1.3],[2.1])
 
126
 
 
127
dnl *** checks for libraries ***
 
128
 
 
129
dnl check for libm, for sin()
 
130
AC_CHECK_LIBM
 
131
AC_SUBST(LIBM)
 
132
 
 
133
dnl *** checks for header files ***
 
134
 
 
135
dnl used by ext/a52dec
 
136
AX_CREATE_STDINT_H
 
137
 
 
138
dnl Check for malloc.h
 
139
AC_CHECK_HEADERS([malloc.h])
 
140
 
 
141
dnl *** checks for types/defines ***
 
142
 
 
143
dnl *** checks for structures ***
 
144
 
 
145
dnl *** checks for compiler characteristics ***
 
146
 
 
147
dnl *** checks for library functions ***
 
148
 
 
149
dnl Check for a way to display the function name in debug output
 
150
AG_GST_CHECK_FUNCTION
 
151
 
 
152
dnl *** checks for dependency libraries ***
 
153
 
 
154
dnl GLib is required
 
155
AG_GST_GLIB_CHECK([2.24])
 
156
ORC_CHECK([0.4.11])
 
157
 
 
158
dnl checks for gstreamer
 
159
dnl uninstalled is selected preferentially -- see pkg-config(1)
 
160
AG_GST_CHECK_GST($GST_MAJORMINOR, [$GST_REQ], yes)
 
161
AG_GST_CHECK_GST_BASE($GST_MAJORMINOR, [$GST_REQ], yes)
 
162
AG_GST_CHECK_GST_CHECK($GST_MAJORMINOR, [$GST_REQ], no)
 
163
AG_GST_CHECK_GST_PLUGINS_BASE($GST_MAJORMINOR, [$GSTPB_REQ], yes)
 
164
AM_CONDITIONAL(HAVE_GST_CHECK, test "x$HAVE_GST_CHECK" = "xyes")
 
165
 
 
166
dnl Check for documentation xrefs
 
167
GLIB_PREFIX="`$PKG_CONFIG --variable=prefix glib-2.0`"
 
168
GST_PREFIX="`$PKG_CONFIG --variable=prefix gstreamer-$GST_MAJORMINOR`"
 
169
GSTPB_PREFIX="`$PKG_CONFIG --variable=prefix gstreamer-plugins-base-$GST_MAJORMINOR`"
 
170
AC_SUBST(GLIB_PREFIX)
 
171
AC_SUBST(GST_PREFIX)
 
172
AC_SUBST(GSTPB_PREFIX)
 
173
 
 
174
dnl *** set variables based on configure arguments ***
 
175
 
 
176
dnl set license and copyright notice
 
177
GST_LICENSE="LGPL"
 
178
AC_DEFINE_UNQUOTED(GST_LICENSE, "$GST_LICENSE", [GStreamer license])
 
179
AC_SUBST(GST_LICENSE)
 
180
 
 
181
dnl set location of plugin directory
 
182
AG_GST_SET_PLUGINDIR
 
183
 
 
184
dnl set release date/time
 
185
AG_GST_SET_PACKAGE_RELEASE_DATETIME_WITH_NANO([$PACKAGE_VERSION_NANO],
 
186
  ["${srcdir}/gst-plugins-ugly.doap"],
 
187
  [$PACKAGE_VERSION_MAJOR.$PACKAGE_VERSION_MINOR.$PACKAGE_VERSION_MICRO])
 
188
 
 
189
dnl define an ERROR_CFLAGS Makefile variable
 
190
AG_GST_SET_ERROR_CFLAGS($GST_GIT, [
 
191
    -Wmissing-declarations -Wmissing-prototypes -Wredundant-decls
 
192
    -Wwrite-strings -Wformat-nonliteral -Wformat-security -Wold-style-definition
 
193
    -Winit-self -Wmissing-include-dirs -Waddress
 
194
    -Waggregate-return -Wno-multichar -Wnested-externs ])
 
195
 
 
196
dnl define an ERROR_CXXFLAGS Makefile variable
 
197
AG_GST_SET_ERROR_CXXFLAGS($GST_GIT, [
 
198
    -Wmissing-declarations -Wredundant-decls
 
199
    -Wwrite-strings -Wformat-nonliteral -Wformat-security
 
200
    -Winit-self -Wmissing-include-dirs -Waddress -Waggregate-return
 
201
    -Wno-multichar])
 
202
 
 
203
dnl define correct level for debugging messages
 
204
AG_GST_SET_LEVEL_DEFAULT($GST_GIT)
 
205
 
 
206
dnl used in examples
 
207
AG_GST_DEFAULT_ELEMENTS
 
208
 
 
209
dnl *** plug-ins to include ***
 
210
 
 
211
dnl these are all the gst plug-ins, compilable without additional libs
 
212
AG_GST_CHECK_PLUGIN(asfdemux)
 
213
AG_GST_CHECK_PLUGIN(dvdlpcmdec)
 
214
AG_GST_CHECK_PLUGIN(dvdsub)
 
215
AG_GST_CHECK_PLUGIN(iec958)
 
216
AG_GST_CHECK_PLUGIN(mpegaudioparse)
 
217
AG_GST_CHECK_PLUGIN(mpegstream)
 
218
AG_GST_CHECK_PLUGIN(realmedia)
 
219
AG_GST_CHECK_PLUGIN(synaesthesia)
 
220
 
 
221
AC_CHECK_HEADERS([winsock2.h], HAVE_WINSOCK2_H=yes)
 
222
 
 
223
if test "x$HAVE_WINSOCK2_H" = "xyes"; then
 
224
  WIN32_LIBS="-lws2_32"
 
225
  AC_SUBST(WIN32_LIBS)
 
226
fi
 
227
 
 
228
dnl disable experimental plug-ins
 
229
if test "x$BUILD_EXPERIMENTAL" != "xyes"; then
 
230
  AG_GST_DISABLE_PLUGIN(synaesthesia)
 
231
fi
 
232
 
 
233
dnl *** ext plug-ins ***
 
234
dnl keep this list sorted alphabetically !
 
235
 
 
236
if test "x$BUILD_EXTERNAL" = "xyes"; then
 
237
 
 
238
echo
 
239
AC_MSG_NOTICE([Checking libraries for plugins in ext/])
 
240
echo
 
241
 
 
242
dnl *** a52dec ***
 
243
translit(dnm, m, l) AM_CONDITIONAL(USE_A52DEC, true)
 
244
AG_GST_CHECK_FEATURE(A52DEC, [a52dec], a52dec, [
 
245
  AC_CHECK_A52DEC(HAVE_A52DEC=yes, HAVE_A52DEC=no)
 
246
])
 
247
 
 
248
dnl *** amr-nb ***
 
249
translit(dnm, m, l) AM_CONDITIONAL(USE_AMRNB, true)
 
250
AG_GST_CHECK_FEATURE(AMRNB, [amrnb library], amrnb, [
 
251
  PKG_CHECK_MODULES(AMRNB, opencore-amrnb, [
 
252
    if $PKG_CONFIG --atleast-version=0.1.3 opencore-amrnb; then
 
253
      AC_DEFINE(HAVE_OPENCORE_AMRNB_0_1_3_OR_LATER, 1, [Defined for newer opencore-amrnb])
 
254
    fi
 
255
    HAVE_AMRNB="yes"
 
256
  ], [
 
257
    HAVE_AMRNB="no"
 
258
  ])
 
259
  AC_SUBST(AMRNB_CFLAGS)
 
260
  AC_SUBST(AMRNB_LIBS)
 
261
])
 
262
 
 
263
dnl *** amr-wb dec ***
 
264
translit(dnm, m, l) AM_CONDITIONAL(USE_AMRWB, true)
 
265
AG_GST_CHECK_FEATURE(AMRWB, [amrwb library], amrwbdec, [
 
266
  PKG_CHECK_MODULES(AMRWB, opencore-amrwb, [
 
267
    if $PKG_CONFIG --atleast-version=0.1.3 opencore-amrwb; then
 
268
      AC_DEFINE(HAVE_OPENCORE_AMRWB_0_1_3_OR_LATER, 1, [Defined for newer opencore-amrwb])
 
269
    fi
 
270
    HAVE_AMRWB="yes"
 
271
  ], [
 
272
    HAVE_AMRWB="no"
 
273
  ])
 
274
  AC_SUBST(AMRWB_CFLAGS)
 
275
  AC_SUBST(AMRWB_LIBS)
 
276
])
 
277
 
 
278
dnl *** cdio ***
 
279
translit(dnm, m, l) AM_CONDITIONAL(USE_CDIO, true)
 
280
AG_GST_CHECK_FEATURE(CDIO, [cdio library], cdio, [
 
281
  AG_GST_PKG_CHECK_MODULES(CDIO, libcdio >= 0.76)
 
282
])
 
283
 
 
284
dnl *** dvdread ***
 
285
translit(dnm, m, l) AM_CONDITIONAL(USE_DVDREAD, true)
 
286
AG_GST_CHECK_FEATURE(DVDREAD, [dvdread library], dvdreadsrc, [
 
287
  AG_GST_CHECK_LIBHEADER(DVDREAD, dvdread, DVDOpen, , dvdread/dvd_reader.h, DVDREAD_LIBS="-ldvdread")
 
288
  AC_SUBST(DVDREAD_LIBS)
 
289
])
 
290
 
 
291
dnl *** lame ***
 
292
translit(dnm, m, l) AM_CONDITIONAL(USE_LAME, true)
 
293
AG_GST_CHECK_FEATURE(LAME, [lame mp3 encoder library], lame, [
 
294
  AG_GST_CHECK_LIBHEADER(LAME, mp3lame, lame_init, $LIBM, lame/lame.h,
 
295
  [
 
296
    HAVE_LAME="yes"
 
297
    LAME_LIBS="-lmp3lame $LIBM"
 
298
    dnl is lame presets available
 
299
    LAME_CFLAGS=""
 
300
    AC_TRY_COMPILE([#include <lame/lame.h>], [ int preset = MEDIUM ],
 
301
      [LAME_CFLAGS="-DGSTLAME_PRESET"],
 
302
      [LAME_CFLAGS=""]
 
303
    )
 
304
    AC_TRY_COMPILE([#include <lame/lame.h>], [
 
305
        void *ptr = &lame_set_VBR_quality
 
306
      ],
 
307
      [LAME_CFLAGS="$LAME_CFLAGS -DHAVE_LAME_SET_VBR_QUALITY"],
 
308
      [LAME_CFLAGS="$LAME_CFLAGS"]
 
309
    )
 
310
  AC_SUBST(LAME_CFLAGS)
 
311
  AC_SUBST(LAME_LIBS)
 
312
  ])
 
313
])
 
314
 
 
315
dnl *** mad ***
 
316
translit(dnm, m, l) AM_CONDITIONAL(USE_MAD, true)
 
317
AG_GST_CHECK_FEATURE(MAD, [mad mp3 decoder], mad, [
 
318
 
 
319
  dnl check with pkg-config first
 
320
  AG_GST_PKG_CHECK_MODULES(MAD, mad >= 0.15)
 
321
  MAD_LIBS="$MAD_LIBS"
 
322
  if test "x$HAVE_MAD" = "xno"; then
 
323
    dnl fall back to oldskool detection
 
324
    AC_CHECK_HEADER(mad.h, [
 
325
      AC_CHECK_LIB(mad, mad_decoder_finish,
 
326
        HAVE_MAD="yes" MAD_LIBS="-lmad")
 
327
    ])
 
328
  fi
 
329
])
 
330
AC_SUBST(MAD_LIBS)
 
331
 
 
332
dnl *** mpeg2dec ***
 
333
translit(dnm, m, l) AM_CONDITIONAL(USE_MPEG2DEC, true)
 
334
AG_GST_CHECK_FEATURE(MPEG2DEC, [mpeg2dec], mpeg2dec, [
 
335
  AG_GST_PKG_CHECK_MODULES(MPEG2DEC, libmpeg2 >= 0.4.0)
 
336
])
 
337
 
 
338
dnl *** sidplay : works with libsidplay 1.36.x (not 2.x.x) ***
 
339
translit(dnm, m, l) AM_CONDITIONAL(USE_SIDPLAY, true)
 
340
AG_GST_CHECK_FEATURE(SIDPLAY, [libsidplay], sid, [
 
341
  GST_PATH_SIDPLAY()
 
342
])
 
343
 
 
344
dnl *** twolame ***
 
345
translit(dnm, m, l) AM_CONDITIONAL(USE_TWOLAME, true)
 
346
AG_GST_CHECK_FEATURE(TWOLAME, [twolame], twolame, [
 
347
  PKG_CHECK_MODULES(TWOLAME, twolame >= 0.3.10, [
 
348
      HAVE_TWOLAME="yes"], [
 
349
      HAVE_TWOLAME="no"
 
350
  ])
 
351
  AC_SUBST(TWOLAME_CFLAGS)
 
352
  AC_SUBST(TWOLAME_LIBS)
 
353
])
 
354
 
 
355
dnl *** x264 (MPEG-4 part 10/h.264/AVC encoder) ***
 
356
translit(dnm, m, l) AM_CONDITIONAL(USE_X264, true)
 
357
AG_GST_CHECK_FEATURE(X264, [x264 plug-in], x264, [
 
358
  AG_GST_PKG_CHECK_MODULES(X264, x264 >= 0.55.0)
 
359
])
 
360
 
 
361
else
 
362
 
 
363
dnl not building plugins with external dependencies,
 
364
dnl but we still need to set the conditionals
 
365
 
 
366
AM_CONDITIONAL(USE_A52DEC, false)
 
367
AM_CONDITIONAL(USE_AMRNB, false)
 
368
AM_CONDITIONAL(USE_AMRWB, false)
 
369
AM_CONDITIONAL(USE_CDIO, false)
 
370
AM_CONDITIONAL(USE_DVDREAD, false)
 
371
AM_CONDITIONAL(USE_LAME, false)
 
372
AM_CONDITIONAL(USE_MAD, false)
 
373
AM_CONDITIONAL(USE_MPEG2DEC, false)
 
374
AM_CONDITIONAL(USE_SIDPLAY, false)
 
375
AM_CONDITIONAL(USE_TWOLAME, false)
 
376
AM_CONDITIONAL(USE_X264, false)
 
377
 
 
378
fi dnl of EXT plugins
 
379
 
 
380
dnl *** finalize CFLAGS, LDFLAGS, LIBS
 
381
 
 
382
dnl Overview:
 
383
dnl GST_OPTION_CFLAGS:  common flags for profiling, debugging, errors, ...
 
384
dnl GST_*:              flags shared by built objects to link against GStreamer
 
385
dnl GST_ALL_LDFLAGS:    linker flags shared by all
 
386
dnl GST_LIB_LDFLAGS:    additional linker flags for all libaries
 
387
dnl GST_LT_LDFLAGS:     library versioning of our libraries
 
388
dnl GST_PLUGIN_LDFLAGS: flags to be used for all plugins
 
389
 
 
390
dnl GST_OPTION_CFLAGS
 
391
if test "x$USE_DEBUG" = xyes; then
 
392
   PROFILE_CFLAGS="-g"
 
393
fi
 
394
AC_SUBST(PROFILE_CFLAGS)
 
395
 
 
396
if test "x$PACKAGE_VERSION_NANO" = "x1"; then
 
397
  dnl Define _only_ during CVS (not pre-releases or releases)
 
398
  DEPRECATED_CFLAGS="-DGST_DISABLE_DEPRECATED"
 
399
else
 
400
  DEPRECATED_CFLAGS=""
 
401
fi
 
402
AC_SUBST(DEPRECATED_CFLAGS)
 
403
 
 
404
dnl every flag in GST_OPTION_CFLAGS and GST_OPTION_CXXFLAGS can be overridden
 
405
dnl at make time with e.g. make ERROR_CFLAGS=""
 
406
GST_OPTION_CFLAGS="\$(WARNING_CFLAGS) \$(ERROR_CFLAGS) \$(DEBUG_CFLAGS) \$(PROFILE_CFLAGS) \$(GCOV_CFLAGS) \$(OPT_CFLAGS) \$(DEPRECATED_CFLAGS)"
 
407
GST_OPTION_CXXFLAGS="\$(WARNING_CXXFLAGS) \$(ERROR_CXXFLAGS) \$(DEBUG_CFLAGS) \$(PROFILE_CFLAGS) \$(GCOV_CFLAGS) \$(OPT_CFLAGS) \$(DEPRECATED_CFLAGS)"
 
408
AC_SUBST(GST_OPTION_CFLAGS)
 
409
AC_SUBST(GST_OPTION_CXXFLAGS)
 
410
 
 
411
dnl FIXME: do we want to rename to GST_ALL_* ?
 
412
dnl prefer internal headers to already installed ones
 
413
dnl also add builddir include for enumtypes and marshal
 
414
dnl add GST_OPTION_CFLAGS, but overridable
 
415
GST_CXXFLAGS="-I\$(top_srcdir)/gst-libs -I\$(top_builddir)/gst-libs $GST_CFLAGS $GLIB_EXTRA_CFLAGS \$(GST_OPTION_CXXFLAGS)"
 
416
GST_CFLAGS="-I\$(top_srcdir)/gst-libs -I\$(top_builddir)/gst-libs $GST_CFLAGS $GLIB_EXTRA_CFLAGS \$(GST_OPTION_CFLAGS)"
 
417
AC_SUBST(GST_CFLAGS)
 
418
AC_SUBST(GST_CXXFLAGS)
 
419
AC_SUBST(GST_LIBS)
 
420
 
 
421
dnl LDFLAGS really should only contain flags, not libs - they get added before
 
422
dnl whatevertarget_LIBS and -L flags here affect the rest of the linking
 
423
GST_ALL_LDFLAGS="-no-undefined"
 
424
AC_SUBST(GST_ALL_LDFLAGS)
 
425
 
 
426
dnl this really should only contain flags, not libs - they get added before
 
427
dnl whatevertarget_LIBS and -L flags here affect the rest of the linking
 
428
GST_PLUGIN_LDFLAGS="-module -avoid-version -export-symbols-regex '^[_]*gst_plugin_desc.*' $GST_ALL_LDFLAGS"
 
429
AC_SUBST(GST_PLUGIN_LDFLAGS)
 
430
 
 
431
dnl *** output files ***
 
432
 
 
433
AC_CONFIG_FILES(
 
434
Makefile
 
435
common/Makefile
 
436
common/m4/Makefile
 
437
gst-libs/Makefile
 
438
gst-libs/gst/Makefile
 
439
gst/Makefile
 
440
gst/asfdemux/Makefile
 
441
gst/dvdlpcmdec/Makefile
 
442
gst/dvdsub/Makefile
 
443
gst/iec958/Makefile
 
444
gst/mpegaudioparse/Makefile
 
445
gst/mpegstream/Makefile
 
446
gst/realmedia/Makefile
 
447
gst/synaesthesia/Makefile
 
448
ext/Makefile
 
449
ext/a52dec/Makefile
 
450
ext/amrnb/Makefile
 
451
ext/amrwbdec/Makefile
 
452
ext/cdio/Makefile
 
453
ext/dvdread/Makefile
 
454
ext/lame/Makefile
 
455
ext/mad/Makefile
 
456
ext/mpeg2dec/Makefile
 
457
ext/sidplay/Makefile
 
458
ext/twolame/Makefile
 
459
ext/x264/Makefile
 
460
docs/Makefile
 
461
docs/plugins/Makefile
 
462
docs/version.entities
 
463
tests/Makefile
 
464
tests/check/Makefile
 
465
m4/Makefile
 
466
po/Makefile.in
 
467
pkgconfig/Makefile
 
468
pkgconfig/gstreamer-plugins-ugly-uninstalled.pc
 
469
gst-plugins-ugly.spec
 
470
)
 
471
 
 
472
dnl Create the config.h file for Visual Studio builds
 
473
dnl Beware of spaces and /'s in some of the shell variable contents.
 
474
sed \
 
475
    -e 's/.*config.h.in.*autoheader.*/\/* Autogenerated config.h created for win32 Visual Studio builds *\/\n\n\/* PREFIX -- specifically added for Windows for easier moving *\/\n#define PREFIX "C:\\\\gstreamer"\n\n/' \
 
476
    -e 's/.* GETTEXT_PACKAGE$/#define GETTEXT_PACKAGE "'$GETTEXT_PACKAGE'"/' \
 
477
    -e 's/.* GST_DATADIR$/#define GST_DATADIR PREFIX "\\\\share"/' \
 
478
    -e 's/.* GST_LEVEL_DEFAULT$/#define GST_LEVEL_DEFAULT GST_LEVEL_ERROR/' \
 
479
    -e 's/.* GST_LICENSE$/#define GST_LICENSE "'$GST_LICENSE'"/' \
 
480
    -e 's/.* GST_MAJORMINOR$/#define GST_MAJORMINOR "'$GST_MAJORMINOR'"/' \
 
481
    -e "s,.* GST_PACKAGE_NAME$,#define GST_PACKAGE_NAME \"${GST_PACKAGE_NAME}\"," \
 
482
    -e 's/.* GST_PACKAGE_ORIGIN$/#define GST_PACKAGE_ORIGIN "Unknown package origin"/' \
 
483
    -e "s,.* GST_PACKAGE_RELEASE_DATETIME$,#define GST_PACKAGE_RELEASE_DATETIME \"${GST_PACKAGE_RELEASE_DATETIME}\"," \
 
484
    -e 's/.* HAVE_CPU_I386$/#define HAVE_CPU_I386 1/' \
 
485
    -e 's/.* HAVE_FGETPOS$/#define HAVE_FGETPOS 1/' \
 
486
    -e 's/.* HAVE_FSETPOS$/#define HAVE_FSETPOS 1/' \
 
487
    -e 's/.* HAVE_LIBXML2$/#define HAVE_LIBXML2 1/' \
 
488
    -e 's/.* HAVE_PROCESS_H$/#define HAVE_PROCESS_H 1/' \
 
489
    -e 's/.* HAVE_STDLIB_H$/#define HAVE_STDLIB_H 1/' \
 
490
    -e 's/.* HAVE_STRING_H$/#define HAVE_STRING_H 1/' \
 
491
    -e 's/.* HAVE_SYS_STAT_H$/#define HAVE_SYS_STAT_H 1/' \
 
492
    -e 's/.* HAVE_SYS_TYPES_H$/#define HAVE_SYS_TYPES_H 1/' \
 
493
    -e 's/.* HAVE_WIN32$/#define HAVE_WIN32 1/' \
 
494
    -e 's/.* HAVE_WINSOCK2_H$/#define HAVE_WINSOCK2_H 1/' \
 
495
    -e 's/.* HOST_CPU$/#define HOST_CPU "i686"/' \
 
496
    -e 's/.* LIBDIR$/#ifdef _DEBUG\n#  define LIBDIR PREFIX "\\\\debug\\\\lib"\n#else\n#  define LIBDIR PREFIX "\\\\lib"\n#endif/' \
 
497
    -e 's/.* LOCALEDIR$/#define LOCALEDIR PREFIX "\\\\share\\\\locale"/' \
 
498
    -e "s/.* PACKAGE$/#define PACKAGE \"$PACKAGE\"/" \
 
499
    -e 's/.* PACKAGE_BUGREPORT$/#define PACKAGE_BUGREPORT "http:\/\/bugzilla.gnome.org\/enter_bug.cgi?product=GStreamer"/' \
 
500
    -e "s/.* PACKAGE_NAME$/#define PACKAGE_NAME \"$PACKAGE_NAME\"/" \
 
501
    -e "s/.* PACKAGE_STRING$/#define PACKAGE_STRING \"$PACKAGE_STRING\"/" \
 
502
    -e 's/.* PACKAGE_TARNAME$/#define PACKAGE_TARNAME "'$PACKAGE_TARNAME'"/' \
 
503
    -e 's/.* PACKAGE_VERSION$/#define PACKAGE_VERSION "'$PACKAGE_VERSION'"/' \
 
504
    -e 's/.* PLUGINDIR$/#ifdef _DEBUG\n#  define PLUGINDIR PREFIX "\\\\debug\\\\lib\\\\gstreamer-0.10"\n#else\n#  define PLUGINDIR PREFIX "\\\\lib\\\\gstreamer-0.10"\n#endif/' \
 
505
    -e 's/.* USE_BINARY_REGISTRY$/#define USE_BINARY_REGISTRY/' \
 
506
    -e 's/.* VERSION$/#define VERSION "'$VERSION'"/' \
 
507
    -e "s/.* DEFAULT_AUDIOSINK$/#define DEFAULT_AUDIOSINK \"directsoundsink\"/" \
 
508
    -e "s/.* DEFAULT_AUDIOSRC$/#define DEFAULT_AUDIOSRC \"audiotestsrc\"/" \
 
509
    -e "s/.* DEFAULT_VIDEOSRC$/#define DEFAULT_VIDEOSRC \"videotestsrc\"/" \
 
510
    -e "s/.* DEFAULT_VISUALIZER$/#define DEFAULT_VISUALIZER \"goom\"/" \
 
511
    config.h.in >win32/common/config.h-new
 
512
 
 
513
AC_OUTPUT
 
514
 
 
515
AG_GST_OUTPUT_PLUGINS
 
516
 
 
517
ORC_OUTPUT