1 | AC_INIT |
---|
2 | AC_CANONICAL_TARGET([]) |
---|
3 | |
---|
4 | dnl when going to/from release please set the nano (fourth number) right ! |
---|
5 | dnl releases only do Wall, cvs and prerelease does Werror too |
---|
6 | AS_VERSION(gstreamer, GST_VERSION, 0, 6, 0, 0, GST_CVS="no", GST_CVS="yes") |
---|
7 | |
---|
8 | dnl AM_MAINTAINER_MODE only provides the option to configure to enable it |
---|
9 | AM_MAINTAINER_MODE |
---|
10 | AM_INIT_AUTOMAKE($PACKAGE,$VERSION) |
---|
11 | |
---|
12 | dnl our libraries and install dirs use major.minor as a version |
---|
13 | GST_MAJORMINOR=$GST_VERSION_MAJOR.$GST_VERSION_MINOR |
---|
14 | AC_SUBST(GST_MAJORMINOR) |
---|
15 | |
---|
16 | AC_PROG_CC |
---|
17 | dnl For interactive UNIX (a Sun thing) |
---|
18 | AC_ISC_POSIX |
---|
19 | |
---|
20 | dnl CURRENT, REVISION, AGE |
---|
21 | dnl - library source changed at all -> increment REVISION |
---|
22 | dnl - interfaces added/removed/changed -> increment CURRENT, REVISION = 0 |
---|
23 | dnl - interfaces added -> increment AGE |
---|
24 | dnl - interfaces removed -> AGE = 0 |
---|
25 | dnl - major/minor got increased -> reset to 0,0,0 |
---|
26 | AS_LIBTOOL(GST, 0, 0, 0) |
---|
27 | |
---|
28 | AC_CONFIG_SRCDIR([gst/gst.c]) |
---|
29 | AM_CONFIG_HEADER(config.h) |
---|
30 | |
---|
31 | dnl Add parameters for aclocal |
---|
32 | dnl (This must come after AM_INIT_AUTOMAKE, since it modifies ACLOCAL) |
---|
33 | ACLOCAL="$ACLOCAL -I common/m4 $ACLOCAL_FLAGS" |
---|
34 | |
---|
35 | AM_PROG_CC_STDC |
---|
36 | AM_PROG_AS |
---|
37 | AS="${CC}" |
---|
38 | |
---|
39 | dnl decide on error flags |
---|
40 | AS_COMPILER(COMPILER) |
---|
41 | if test "x$COMPILER" = "xforte"; then |
---|
42 | GST_ERROR= |
---|
43 | else |
---|
44 | if test "x$GST_CVS"="xyes"; then |
---|
45 | GST_ERROR="-Wall -Werror" |
---|
46 | else |
---|
47 | GST_ERROR="-Wall" |
---|
48 | fi |
---|
49 | fi |
---|
50 | dnl fix these error flags first, then reintroduce them |
---|
51 | GST_ERROR= |
---|
52 | |
---|
53 | dnl We disable static building for development, for time savings |
---|
54 | dnl *NOTE*: dnl this line before release, so release does static too |
---|
55 | dnl AM_DISABLE_STATIC |
---|
56 | |
---|
57 | AC_HEADER_STDC([]) |
---|
58 | |
---|
59 | |
---|
60 | dnl ############################## |
---|
61 | dnl # Do automated configuration # |
---|
62 | dnl ############################## |
---|
63 | |
---|
64 | dnl Check for tools: |
---|
65 | dnl ================ |
---|
66 | |
---|
67 | dnl allow for different autotools |
---|
68 | AS_AUTOTOOLS_ALTERNATE() |
---|
69 | |
---|
70 | dnl modify pkg-config path |
---|
71 | AC_ARG_WITH(pkg-config-path, |
---|
72 | AC_HELP_STRING([--with-pkg-config-path], |
---|
73 | [colon-separated list of pkg-config(1) dirs]), |
---|
74 | [export PKG_CONFIG_PATH=${withval}]) |
---|
75 | |
---|
76 | GST_DOC() |
---|
77 | GST_ARCH() |
---|
78 | |
---|
79 | dnl we require bison for building of some of the marshal files |
---|
80 | dnl FIXME: check if AC_PROG_YACC is suitable here |
---|
81 | AC_PATH_PROG(BISON_PATH, bison, no) |
---|
82 | if test x$BISON_PATH = xno; then |
---|
83 | AC_MSG_ERROR(Could not find bison) |
---|
84 | fi |
---|
85 | |
---|
86 | dnl we require flex for building the parser |
---|
87 | dnl FIXME: check if AC_PROG_LEX is suitable here |
---|
88 | AC_PATH_PROG(FLEX_PATH, flex, no) |
---|
89 | if test x$FLEX_PATH = xno; then |
---|
90 | AC_MSG_ERROR(Could not find flex) |
---|
91 | fi |
---|
92 | |
---|
93 | dnl |
---|
94 | dnl We should really use AC_SYS_LARGEFILE, but the problem is |
---|
95 | dnl many of the plugins don't include "config.h". To assure |
---|
96 | dnl binary compatibility, it is necessary that all gstreamer |
---|
97 | dnl code be compiled with the same sizeof(off_t), so we use |
---|
98 | dnl the following crude hack. |
---|
99 | dnl |
---|
100 | |
---|
101 | dnl |
---|
102 | dnl GST_CFLAGS are split up as GST_EXT_CFLAGS and GST_INT_CFLAGS |
---|
103 | dnl same for libs |
---|
104 | dnl this is so we can make GST_CFLAGS for external modules available |
---|
105 | dnl without mixing in internal (uninstalled) CFLAGS |
---|
106 | dnl |
---|
107 | |
---|
108 | dnl disable deprecated functions internally |
---|
109 | GST_INT_CFLAGS="-DGST_DISABLE_DEPRECATED" |
---|
110 | |
---|
111 | AC_MSG_CHECKING(for large file support) |
---|
112 | AC_TRY_RUN([ |
---|
113 | #define _LARGEFILE_SOURCE |
---|
114 | #define _FILE_OFFSET_BITS 64 |
---|
115 | #include <sys/types.h> |
---|
116 | int main () { return !(sizeof(off_t) == 8); } |
---|
117 | ], |
---|
118 | [ |
---|
119 | AC_MSG_RESULT(yes) |
---|
120 | GST_EXT_CFLAGS="-D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64" |
---|
121 | ], |
---|
122 | [ |
---|
123 | AC_MSG_RESULT(no) |
---|
124 | ], |
---|
125 | [ |
---|
126 | AC_MSG_RESULT(no) |
---|
127 | ]) |
---|
128 | |
---|
129 | dnl check for makecontext and define HAVE_MAKECONTEXT if we have it |
---|
130 | AC_CHECK_MCSC() |
---|
131 | if test "$ac_cv_check_mcsc" == "yes"; then |
---|
132 | AC_DEFINE_UNQUOTED(HAVE_MAKECONTEXT, $HAVE_MAKECONTEXT, |
---|
133 | [defined if we have makecontext ()]) |
---|
134 | fi |
---|
135 | |
---|
136 | dnl Check for a way to display the function name in debug output |
---|
137 | GST_CHECK_FUNCTION() |
---|
138 | |
---|
139 | dnl Check for essential libraries first: |
---|
140 | dnl ==================================== |
---|
141 | |
---|
142 | dnl === GLib 2 === |
---|
143 | dnl Minimum required version of GLib2 |
---|
144 | dnl required for compilation without warnings |
---|
145 | GLIB2_REQ="2.0.1" |
---|
146 | AC_SUBST(GLIB2_REQ) |
---|
147 | |
---|
148 | dnl Check for glib2 |
---|
149 | PKG_CHECK_MODULES(GLIB2, glib-2.0 >= $GLIB2_REQ gobject-2.0 gthread-2.0 gmodule-2.0,HAVE_GLIB2=yes,HAVE_GLIB2=no) |
---|
150 | GLIB_LIBS=$GLIB2_LIBS |
---|
151 | GLIB_CFLAGS=$GLIB2_CFLAGS |
---|
152 | AC_SUBST(GLIB_LIBS) |
---|
153 | AC_SUBST(GLIB_CFLAGS) |
---|
154 | |
---|
155 | if test "x$HAVE_GLIB2" = "xno"; then |
---|
156 | AC_MSG_ERROR([GStreamer requires GLib 2.0 to compile.]) |
---|
157 | fi |
---|
158 | |
---|
159 | GST_PKG_DEPS="glib-2.0, gobject-2.0, gmodule-2.0, gthread-2.0" |
---|
160 | AC_SUBST(GST_PKG_DEPS) |
---|
161 | |
---|
162 | dnl === libxml 2 === |
---|
163 | dnl Minimum required version of libxml2 |
---|
164 | LIBXML2_REQ="2.4.9" |
---|
165 | AC_SUBST(LIBXML2_REQ) |
---|
166 | |
---|
167 | dnl check for libxml2 |
---|
168 | GST_LIBXML2_CHECK() |
---|
169 | |
---|
170 | dnl popt checks |
---|
171 | GST_CHECK_LIBHEADER(POPT, popt, poptStrippedArgv,, popt.h, POPT_LIBS="-lpopt", |
---|
172 | AC_MSG_ERROR([popt 1.6.1 or newer is required to build gstreamer. You can |
---|
173 | download the latest version from |
---|
174 | ftp://ftp.rpm.org/pub/rpm/dist/rpm-4.0.x/]) |
---|
175 | ) |
---|
176 | AC_MSG_NOTICE(Checking for POPT_TABLEEND) |
---|
177 | AC_COMPILE_IFELSE([ |
---|
178 | #include <popt.h> |
---|
179 | int main () |
---|
180 | { |
---|
181 | #ifndef POPT_TABLEEND |
---|
182 | #error |
---|
183 | #else |
---|
184 | return 0; |
---|
185 | #endif |
---|
186 | } |
---|
187 | ],, [ |
---|
188 | dnl it failed |
---|
189 | AC_MSG_ERROR([popt 1.6.1 or newer is required to build gstreamer. You can |
---|
190 | download the latest version from |
---|
191 | ftp://ftp.rpm.org/pub/rpm/dist/rpm-4.0.x/]) |
---|
192 | ]) |
---|
193 | |
---|
194 | dnl Check for atomic.h |
---|
195 | dnl Note: use AC_CHECK_HEADER not AC_CHECK_HEADERS, because the latter |
---|
196 | dnl defines the wrong default symbol as well (HAVE_ASM_ATOMIC_H) |
---|
197 | AC_CHECK_HEADER(asm/atomic.h, HAVE_ATOMIC_H=yes, HAVE_ATOMIC_H=no) |
---|
198 | dnl Do a compile to check that it has atomic_set (eg, linux 2.0 didn't) |
---|
199 | if test x$HAVE_ATOMIC_H = xyes; then |
---|
200 | AC_LINK_IFELSE([ |
---|
201 | #include "asm/atomic.h" |
---|
202 | main() {atomic_t t; atomic_set(&t,0); atomic_inc(&t); atomic_add(1,&t);return 0;} |
---|
203 | ],, [ |
---|
204 | # Not successful |
---|
205 | if test x$HAVE_ATOMIC_H = xyes; then |
---|
206 | AC_MSG_WARN(Atomic reference counting is out of date: doing without.) |
---|
207 | fi |
---|
208 | HAVE_ATOMIC_H=no |
---|
209 | ]) |
---|
210 | fi |
---|
211 | |
---|
212 | dnl Check for ucontext.h |
---|
213 | AC_CHECK_HEADER(ucontext.h, AC_DEFINE(HAVE_UCONTEXT_H, 1, [defined if we have ucontext.h])) |
---|
214 | |
---|
215 | dnl ###################################################################### |
---|
216 | dnl # Check command line parameters, and set shell variables accordingly # |
---|
217 | dnl ###################################################################### |
---|
218 | |
---|
219 | dnl FIXME: simplify all this down using a few m4 macros |
---|
220 | |
---|
221 | AC_ARG_ENABLE(libmmx, |
---|
222 | AC_HELP_STRING([--enable-libmmx],[use libmmx, if available]), |
---|
223 | [case "${enableval}" in |
---|
224 | yes) USE_LIBMMX=$HAVE_LIBMMX ;; |
---|
225 | no) USE_LIBMMX=no ;; |
---|
226 | *) AC_MSG_ERROR(bad value ${enableval} for --enable-libmmx) ;; |
---|
227 | esac], |
---|
228 | [USE_LIBMMX=$HAVE_LIBMMX]) dnl Default value |
---|
229 | |
---|
230 | AC_ARG_ENABLE(atomic, |
---|
231 | AC_HELP_STRING([--enable-atomic],[use atomic reference counting header]), |
---|
232 | [case "${enableval}" in |
---|
233 | yes) USE_ATOMIC_H=$HAVE_ATOMIC_H;; |
---|
234 | noset) USE_ATOMIC_H=$HAVE_ATOMIC_H;; |
---|
235 | no) USE_ATOMIC_H=no;; |
---|
236 | *) AC_MSG_ERROR(bad value ${enableval} for --enable-atomic) ;; |
---|
237 | esac], |
---|
238 | [USE_ATOMIC_H=$HAVE_ATOMIC_H]) dnl Default value |
---|
239 | |
---|
240 | AC_ARG_ENABLE(plugin-builddir, |
---|
241 | AC_HELP_STRING([--enable-plugin-builddir],[allow tests/demos to use non-installed plugins]), |
---|
242 | [case "${enableval}" in |
---|
243 | yes) PLUGINS_USE_BUILDDIR=yes ;; |
---|
244 | no) PLUGINS_USE_BUILDDIR=no ;; |
---|
245 | *) AC_MSG_ERROR(bad value ${enableval} for --enable-plugin-builddir) ;; |
---|
246 | esac], |
---|
247 | [PLUGINS_USE_BUILDDIR=no]) dnl Default value |
---|
248 | |
---|
249 | GST_DEBUGINFO |
---|
250 | |
---|
251 | AC_ARG_ENABLE(profiling, |
---|
252 | AC_HELP_STRING([--enable-profiling],[adds -pg to compiler commandline, for profiling]), |
---|
253 | [case "${enableval}" in |
---|
254 | yes) USE_PROFILING=yes ;; |
---|
255 | no) UES_PROFILING=no ;; |
---|
256 | *) AC_MSG_ERROR(bad value ${enableval} for --enable-profiling) ;; |
---|
257 | esac], |
---|
258 | [USE_PROFILING=no]) dnl Default value |
---|
259 | |
---|
260 | dnl use a cache dir for storing element registry info. |
---|
261 | dnl default to building registry in the source tree if we are enabling plugin build dir |
---|
262 | if test "x$PLUGINS_USE_BUILDDIR" = "xyes"; then |
---|
263 | GST_CACHE_DIR=`pwd` |
---|
264 | else |
---|
265 | dnl ${localstatedir} points to PREFIX/var |
---|
266 | GST_CACHE_DIR=${localstatedir}/cache/gstreamer-$GST_MAJORMINOR |
---|
267 | fi |
---|
268 | AC_ARG_WITH(cachedir, |
---|
269 | AC_HELP_STRING([--with-cachedir],[specify path to use for plugin and command completion registries]), |
---|
270 | [case "${withval}" in |
---|
271 | yes) AC_MSG_ERROR(bad value ${withval} for --with-cachedir) ;; |
---|
272 | no) AC_MSG_ERROR(bad value ${withval} for --with-cachedir) ;; |
---|
273 | *) GST_CACHE_DIR="${withval}" ;; |
---|
274 | esac], |
---|
275 | [:]) dnl Default value |
---|
276 | |
---|
277 | AS_AC_EXPAND(GST_CACHE_DIR, $GST_CACHE_DIR) |
---|
278 | AC_MSG_NOTICE(Using $GST_CACHE_DIR as registry cache dir) |
---|
279 | |
---|
280 | |
---|
281 | dnl building of tests |
---|
282 | AC_ARG_ENABLE(tests, |
---|
283 | AC_HELP_STRING([--disable-tests],[disable building test apps]), |
---|
284 | [case "${enableval}" in |
---|
285 | yes) BUILD_TESTS=yes ;; |
---|
286 | no) BUILD_TESTS=no ;; |
---|
287 | *) AC_MSG_ERROR(bad value ${enableval} for --disable-tests) ;; |
---|
288 | esac], |
---|
289 | [BUILD_TESTS=yes]) dnl Default value |
---|
290 | AM_CONDITIONAL(BUILD_TESTS, test "x$BUILD_TESTS" = "xyes") |
---|
291 | |
---|
292 | dnl tests known to fail |
---|
293 | AC_ARG_ENABLE(failing-tests, |
---|
294 | AC_HELP_STRING([--disable-failing-tests],[disable building tests known to fail]), |
---|
295 | [case "${enableval}" in |
---|
296 | yes) BUILD_FAILING_TESTS=yes ;; |
---|
297 | no) BUILD_FAILING_TESTS=no ;; |
---|
298 | *) AC_MSG_ERROR(bad value ${enableval} for --disable-failing-tests) ;; |
---|
299 | esac], |
---|
300 | [BUILD_FAILING_TESTS=no]) dnl Default value |
---|
301 | AM_CONDITIONAL(BUILD_FAILING_TESTS, test "x$BUILD_FAILING_TESTS" = "xyes") |
---|
302 | if test x$BUILD_FAILING_TESTS = xyes; then |
---|
303 | AC_MSG_WARN([building tests known to fail, use --disable-failing-tests to disable]) |
---|
304 | else |
---|
305 | AC_MSG_WARN([Sissy ! By asking to not build the tests known to fail, you hereby waive your right to customer support. If you do not agree with this EULA, please press Ctrl-C before the next line is printed. By allowing the next line to be printed, you expressly acknowledge your acceptance of this EULA.]) |
---|
306 | fi |
---|
307 | |
---|
308 | AC_ARG_ENABLE(examples, |
---|
309 | AC_HELP_STRING([--disable-examples],[disable building examples]), |
---|
310 | [case "${enableval}" in |
---|
311 | yes) BUILD_EXAMPLES=yes ;; |
---|
312 | no) BUILD_EXAMPLES=no ;; |
---|
313 | *) AC_MSG_ERROR(bad value ${enableval} for --disable-examples) ;; |
---|
314 | esac], |
---|
315 | [BUILD_EXAMPLES=yes]) dnl Default value |
---|
316 | AM_CONDITIONAL(BUILD_EXAMPLES, test "x$BUILD_EXAMPLES" = "xyes") |
---|
317 | |
---|
318 | dnl Next, check for the optional components: |
---|
319 | dnl ======================================== |
---|
320 | |
---|
321 | translit(dnm, m, l) AM_CONDITIONAL(GST_DISABLE_LOADSAVE, true) |
---|
322 | GST_SUBSYSTEM_DISABLE(LOADSAVE,[pipeline XML load/save]) |
---|
323 | translit(dnm, m, l) AM_CONDITIONAL(GST_DISABLE_TYPEFIND, true) |
---|
324 | GST_SUBSYSTEM_DISABLE(TYPEFIND,[typefind plugin],) |
---|
325 | translit(dnm, m, l) AM_CONDITIONAL(GST_DISABLE_AUTOPLUG, true) |
---|
326 | GST_SUBSYSTEM_DISABLE(AUTOPLUG,[autoplugger subsystem]) |
---|
327 | translit(dnm, m, l) AM_CONDITIONAL(GST_DISABLE_PARSE, true) |
---|
328 | GST_SUBSYSTEM_DISABLE(PARSE,[command-line parser]) |
---|
329 | translit(dnm, m, l) AM_CONDITIONAL(GST_DISABLE_TRACE, true) |
---|
330 | GST_SUBSYSTEM_DISABLE(TRACE,[tracing subsystem]) |
---|
331 | translit(dnm, m, l) AM_CONDITIONAL(GST_DISABLE_REGISTRY, true) |
---|
332 | GST_SUBSYSTEM_DISABLE(REGISTRY,[plugin registry]) |
---|
333 | |
---|
334 | GST_EXT_CFLAGS="$GST_EXT_CFLAGS $GST_SUBSYSTEM_DISABLE_DEFINES" |
---|
335 | |
---|
336 | dnl ################################################ |
---|
337 | dnl # Set defines according to variables set above # |
---|
338 | dnl ################################################ |
---|
339 | |
---|
340 | |
---|
341 | dnl These should be "USE_*" instead of "HAVE_*", but some packages expect |
---|
342 | dnl HAVE_ and it is likely to be easier to stick with the old name |
---|
343 | if test "x$USE_LIBMMX" = xyes; then |
---|
344 | AC_DEFINE(HAVE_LIBMMX, 1, [Define if libmmx is available]) |
---|
345 | fi |
---|
346 | |
---|
347 | if test "x$USE_ATOMIC_H" = xyes; then |
---|
348 | AC_DEFINE(HAVE_ATOMIC_H, 1, [Define if atomic.h header file is available]) |
---|
349 | fi |
---|
350 | |
---|
351 | dnl test if we have pthread_attr_setstack; if not use the older calls |
---|
352 | AC_CHECK_LIB(pthread, pthread_attr_setstack, |
---|
353 | AC_DEFINE(HAVE_PTHREAD_ATTR_SETSTACK, 1, |
---|
354 | [Defined if libpthread has pthread_attr_setstack ()])) |
---|
355 | |
---|
356 | dnl test if we have posix_memalign; FreeBSD doesn't |
---|
357 | AC_CHECK_FUNC(posix_memalign, |
---|
358 | AC_DEFINE(HAVE_POSIX_MEMALIGN, 1, |
---|
359 | [Defined if we have posix_memalign ()])) |
---|
360 | |
---|
361 | if test "x$PLUGINS_USE_BUILDDIR" = xyes; then |
---|
362 | AC_DEFINE(PLUGINS_USE_BUILDDIR, 1, [Define if plugins should be loaded from the build tree - only developers should use this]) |
---|
363 | fi |
---|
364 | |
---|
365 | if test "x$USE_DEBUG" = xyes; then |
---|
366 | GST_INT_CFLAGS="$GST_INT_CFLAGS -g" |
---|
367 | fi |
---|
368 | |
---|
369 | if test "x$USE_PROFILING" = xyes; then |
---|
370 | dnl CFLAGS="$CFLAGS -pg -fprofile-arcs" |
---|
371 | FOMIT_FRAME_POINTER="" |
---|
372 | else |
---|
373 | FOMIT_FRAME_POINTER="-fomit-frame-pointer" |
---|
374 | fi |
---|
375 | |
---|
376 | dnl |
---|
377 | dnl AC_SUBST(FOMIT_FRAME_POINTER) |
---|
378 | dnl |
---|
379 | |
---|
380 | dnl ############################# |
---|
381 | dnl # Set automake conditionals # |
---|
382 | dnl ############################# |
---|
383 | |
---|
384 | dnl These should be "USE_*" instead of "HAVE_*", but some packages expect |
---|
385 | dnl HAVE_ and it is likely to be easier to stick with the old name |
---|
386 | AM_CONDITIONAL(HAVE_ATOMIC_H, test "x$USE_ATOMIC_H" = "xyes") |
---|
387 | |
---|
388 | AM_CONDITIONAL(EXPERIMENTAL, test "$EXPERIMENTAL" = "$xyes") |
---|
389 | AM_CONDITIONAL(BROKEN, test "$BROKEN" = "$xyes") |
---|
390 | |
---|
391 | AM_CONDITIONAL(PLUGINS_USE_BUILDDIR, test "x$PLUGINS_USE_BUILDDIR" = "xyes") |
---|
392 | |
---|
393 | |
---|
394 | dnl ############################ |
---|
395 | dnl # Set up some more defines # |
---|
396 | dnl ############################ |
---|
397 | |
---|
398 | dnl Set location of registry dir. |
---|
399 | AC_DEFINE_UNQUOTED(GST_CACHE_DIR, "$GST_CACHE_DIR", [Define the registry directory]) |
---|
400 | AC_SUBST(GST_CACHE_DIR) |
---|
401 | |
---|
402 | dnl Set location of plugin directory |
---|
403 | if test "x${prefix}" = "xNONE"; then |
---|
404 | PLUGINS_DIR=${ac_default_prefix}/lib/gstreamer-$GST_MAJORMINOR |
---|
405 | else |
---|
406 | PLUGINS_DIR=${prefix}/lib/gstreamer-$GST_MAJORMINOR |
---|
407 | fi |
---|
408 | AC_DEFINE_UNQUOTED(PLUGINS_DIR, "$PLUGINS_DIR", [Define the plugin directory]) |
---|
409 | AC_SUBST(PLUGINS_DIR) |
---|
410 | |
---|
411 | dnl Set location of uninstalled plugin directory |
---|
412 | PLUGINS_BUILDDIR=`pwd` |
---|
413 | AC_DEFINE_UNQUOTED(PLUGINS_BUILDDIR, "$PLUGINS_BUILDDIR", [Define the uninstalled plugin directory]) |
---|
414 | AC_SUBST(PLUGINS_BUILDDIR) |
---|
415 | |
---|
416 | dnl since glib and xml are package deps, there's no need to include their cflags |
---|
417 | dnl in the pkg-config file |
---|
418 | |
---|
419 | dnl for pkg-config |
---|
420 | GST_PKG_CFLAGS=$GST_EXT_CFLAGS |
---|
421 | GST_PKG_LIBS=$GST_EXT_LIBS |
---|
422 | AC_SUBST(GST_PKG_CFLAGS) |
---|
423 | AC_SUBST(GST_PKG_LIBS) |
---|
424 | |
---|
425 | dnl finalize _CFLAGS and _LIBS |
---|
426 | dnl add GLIB and XML if necessary to EXT_* |
---|
427 | GST_CFLAGS="$GST_EXT_CFLAGS $XML_CFLAGS $GLIB_CFLAGS" |
---|
428 | GST_LIBS="$GST_EXT_LIBS $XML_LIBS $GLIB_LIBS -lpopt" |
---|
429 | |
---|
430 | dnl Private vars for libgst only |
---|
431 | LIBGST_LIBS="$GST_LIBS" |
---|
432 | LIBGST_CFLAGS="$GST_CFLAGS -I\$(top_srcdir) $GST_ERROR" |
---|
433 | AC_SUBST(LIBGST_LIBS) |
---|
434 | AC_SUBST(LIBGST_CFLAGS) |
---|
435 | |
---|
436 | dnl Vars for everyone else |
---|
437 | GST_INT_LIBS="\$(top_builddir)/gst/libgstreamer-$GST_MAJORMINOR.la" |
---|
438 | GST_INT_CFLAGS="$GST_INT_CFLAGS -I\$(top_srcdir)/libs -I\$(top_srcdir)/include" |
---|
439 | |
---|
440 | AC_SUBST(GST_CFLAGS, "$LIBGST_CFLAGS $GST_INT_CFLAGS") |
---|
441 | AC_SUBST(GST_LIBS, "$LIBGST_LIBS $GST_INT_LIBS") |
---|
442 | |
---|
443 | GST_PLUGIN_LDFLAGS="-module -avoid-version" |
---|
444 | AC_SUBST(GST_PLUGIN_LDFLAGS, "$GST_PLUGIN_LDFLAGS") |
---|
445 | |
---|
446 | AC_CONFIG_SUBDIRS(libs/ext/cothreads) |
---|
447 | |
---|
448 | dnl ################################################## |
---|
449 | dnl # deps for examples from manual # |
---|
450 | dnl ################################################## |
---|
451 | |
---|
452 | PKG_CHECK_MODULES(LIBGNOMEUI, libgnomeui-2.0, |
---|
453 | HAVE_LIBGNOMEUI="yes", HAVE_LIBGNOMEUI="no") |
---|
454 | AC_SUBST(LIBGNOMEUI_CFLAGS) |
---|
455 | AC_SUBST(LIBGNOMEUI_LIBS) |
---|
456 | AM_CONDITIONAL(HAVE_LIBGNOMEUI, test "x$HAVE_LIBGNOMEUI" = "xyes") |
---|
457 | |
---|
458 | dnl ################################################## |
---|
459 | dnl # Prepare informative messages to display at end # |
---|
460 | dnl ################################################## |
---|
461 | |
---|
462 | infomessages= |
---|
463 | |
---|
464 | if test "x$PLUGINS_USE_BUILDDIR" = xyes; then |
---|
465 | infomessages="$infomessages |
---|
466 | *** Warning: You have configured using the --enable-plugin-builddir option. |
---|
467 | |
---|
468 | This option is for development purposes only: binaries built with |
---|
469 | it should be used with code in the build tree only. To build an |
---|
470 | installable version, use ./configure without the --enable-plugin-builddir |
---|
471 | option. Note that the autogen.sh script supplies the plugin builddir |
---|
472 | option automatically -- run ./autogen.sh -- --disable-plugin-builddir to make |
---|
473 | an installable build. |
---|
474 | |
---|
475 | " |
---|
476 | fi |
---|
477 | |
---|
478 | dnl ######################### |
---|
479 | dnl # Make the output files # |
---|
480 | dnl ######################### |
---|
481 | |
---|
482 | dnl libs/ext/Makefile |
---|
483 | dnl nothing there yet ! |
---|
484 | AC_OUTPUT( |
---|
485 | Makefile |
---|
486 | include/Makefile |
---|
487 | gst/Makefile |
---|
488 | gst/gstversion.h |
---|
489 | gst/autoplug/Makefile |
---|
490 | gst/indexers/Makefile |
---|
491 | gst/elements/Makefile |
---|
492 | gst/parse/Makefile |
---|
493 | gst/schedulers/Makefile |
---|
494 | gst/types/Makefile |
---|
495 | gst/registries/Makefile |
---|
496 | libs/Makefile |
---|
497 | libs/gst/Makefile |
---|
498 | libs/gst/bytestream/Makefile |
---|
499 | libs/gst/getbits/Makefile |
---|
500 | libs/gst/putbits/Makefile |
---|
501 | libs/gst/control/Makefile |
---|
502 | libs/ext/Makefile |
---|
503 | tests/Makefile |
---|
504 | tests/bufspeed/Makefile |
---|
505 | tests/memchunk/Makefile |
---|
506 | tests/muxing/Makefile |
---|
507 | tests/seeking/Makefile |
---|
508 | tests/sched/Makefile |
---|
509 | tests/threadstate/Makefile |
---|
510 | testsuite/Makefile |
---|
511 | testsuite/bytestream/Makefile |
---|
512 | testsuite/caps/Makefile |
---|
513 | testsuite/cleanup/Makefile |
---|
514 | testsuite/clock/Makefile |
---|
515 | testsuite/dynparams/Makefile |
---|
516 | testsuite/elements/Makefile |
---|
517 | testsuite/indexers/Makefile |
---|
518 | testsuite/plugin/Makefile |
---|
519 | testsuite/refcounting/Makefile |
---|
520 | testsuite/threads/Makefile |
---|
521 | examples/Makefile |
---|
522 | examples/autoplug/Makefile |
---|
523 | examples/cutter/Makefile |
---|
524 | examples/helloworld/Makefile |
---|
525 | examples/helloworld2/Makefile |
---|
526 | examples/launch/Makefile |
---|
527 | examples/manual/Makefile |
---|
528 | examples/mixer/Makefile |
---|
529 | examples/pingpong/Makefile |
---|
530 | examples/plugins/Makefile |
---|
531 | examples/queue/Makefile |
---|
532 | examples/queue2/Makefile |
---|
533 | examples/queue3/Makefile |
---|
534 | examples/queue4/Makefile |
---|
535 | examples/thread/Makefile |
---|
536 | examples/typefind/Makefile |
---|
537 | examples/xml/Makefile |
---|
538 | tools/Makefile |
---|
539 | docs/Makefile |
---|
540 | docs/devhelp/Makefile |
---|
541 | docs/faq/Makefile |
---|
542 | docs/gst/Makefile |
---|
543 | docs/gst/gstreamer.types |
---|
544 | docs/libs/Makefile |
---|
545 | docs/manual/Makefile |
---|
546 | docs/pwg/Makefile |
---|
547 | docs/plugins/Makefile |
---|
548 | docs/plugins/gstreamer-plugins.types |
---|
549 | docs/xsl/Makefile |
---|
550 | pkgconfig/Makefile |
---|
551 | pkgconfig/gstreamer.pc |
---|
552 | pkgconfig/gstreamer-uninstalled.pc |
---|
553 | pkgconfig/gstreamer-control.pc |
---|
554 | pkgconfig/gstreamer-control-uninstalled.pc |
---|
555 | stamp.h |
---|
556 | gstreamer.spec, |
---|
557 | echo "$infomessages", infomessages="$infomessages" |
---|
558 | ) |
---|