3 dnl initialize autoconf
4 dnl when going to/from release please set the nano (fourth number) right !
5 dnl releases only do Wall, git and prerelease does Werror too
6 AC_INIT([GStreamer Bad Plug-ins],[1.13.0.1],[http://bugzilla.gnome.org/enter_bug.cgi?product=GStreamer],[gst-plugins-bad])
10 dnl initialize automake
11 AM_INIT_AUTOMAKE([-Wno-portability 1.14 no-dist-gzip dist-xz tar-ustar subdir-objects])
13 dnl define PACKAGE_VERSION_* variables
16 dnl check if this is a release version
17 AS_NANO(GST_GIT="no", GST_GIT="yes")
19 dnl can autoconf find the source ?
20 AC_CONFIG_SRCDIR([docs/plugins/gst-plugins-bad-plugins-docs.sgml])
22 dnl define the output header for config
23 AC_CONFIG_HEADERS([config.h])
25 dnl AM_MAINTAINER_MODE only provides the option to configure to enable it
26 AM_MAINTAINER_MODE([enable])
28 dnl sets host_* variables
31 dnl use pretty build output with automake >= 1.11
32 m4_ifdef([AM_SILENT_RULES],[AM_SILENT_RULES([yes])],
33 [AM_DEFAULT_VERBOSITY=1
34 AC_SUBST(AM_DEFAULT_VERBOSITY)])
36 dnl PKG_CONFIG_SYSROOT_DIR is a valid environment variable
37 m4_pattern_allow(PKG_CONFIG_SYSROOT_DIR)
39 dnl our libraries and install dirs use GST_API_VERSION in the filename
40 dnl to allow side-by-side installation of different API versions
42 AC_SUBST(GST_API_VERSION)
43 AC_DEFINE_UNQUOTED(GST_API_VERSION, "$GST_API_VERSION",
44 [GStreamer API Version])
46 AG_GST_LIBTOOL_PREPARE
48 dnl CURRENT, REVISION, AGE
49 dnl - library source changed -> increment REVISION
50 dnl - interfaces added/removed/changed -> increment CURRENT, REVISION = 0
51 dnl - interfaces added -> increment AGE
52 dnl - interfaces removed -> AGE = 0
53 dnl sets GST_LT_LDFLAGS
54 AS_LIBTOOL(GST, 1300, 0, 1300)
56 dnl *** required versions of GStreamer stuff ***
60 dnl *** autotools stuff ****
62 dnl allow for different autotools
63 AS_AUTOTOOLS_ALTERNATE
65 dnl Add parameters for aclocal
66 AC_SUBST(ACLOCAL_AMFLAGS, "-I m4 -I common/m4")
69 dnl the version check needs to stay here because autopoint greps for it
70 AM_GNU_GETTEXT_VERSION([0.17])
71 AM_GNU_GETTEXT([external])
72 AG_GST_GETTEXT([gst-plugins-bad-$GST_API_VERSION])
74 dnl *** check for arguments to configure ***
76 AG_GST_ARG_DISABLE_FATAL_WARNINGS
77 AG_GST_ARG_ENABLE_EXTRA_CHECKS
86 AG_GST_ARG_WITH_PKG_CONFIG_PATH
87 AG_GST_ARG_WITH_PACKAGE_NAME
88 AG_GST_ARG_WITH_PACKAGE_ORIGIN
90 AG_GST_ARG_WITH_PLUGINS
92 AG_GST_ARG_ENABLE_EXTERNAL
94 AG_GST_ARG_ENABLE_EXPERIMENTAL
96 AG_GST_PKG_CONFIG_PATH
98 dnl *** checks for platform ***
101 dnl * hardware/architecture *
103 dnl common/m4/gst-arch.m4
107 dnl Determine endianness
110 dnl *** checks for programs ***
116 dnl determine c++ compiler
118 dnl determine if c++ is available on this system
119 AC_CHECK_PROG(HAVE_CXX, $CXX, yes, no)
123 dnl check if the compiler supports '-c' and '-o' options
126 dnl check if the compiler supports do while(0) macros
127 AG_GST_CHECK_DOWHILE_MACROS
129 AC_PATH_PROG(VALGRIND_PATH, valgrind, no)
130 AM_CONDITIONAL(HAVE_VALGRIND, test ! "x$VALGRIND_PATH" = "xno")
132 dnl check for gobject-introspection
133 GOBJECT_INTROSPECTION_CHECK([1.31.1])
135 dnl check for documentation tools
136 GTK_DOC_CHECK([1.12])
137 AG_GST_PLUGIN_DOCS([1.12])
139 dnl *** checks for libraries ***
141 dnl check for libm, for sin() etc.
147 dnl check for pthreads
150 dnl *** checks for header files ***
152 AC_CHECK_HEADERS([unistd.h], HAVE_UNISTD_H=yes)
153 AM_CONDITIONAL(HAVE_UNISTD_H, test "x$HAVE_UNISTD_H" = "xyes")
155 if test "x$HAVE_UNISTD_H" != "xyes"; then
156 GST_PLUGINS_SELECTED=`echo $GST_PLUGINS_SELECTED | $SED -e s/festival//`
159 AC_CHECK_HEADERS([sys/time.h])
164 AC_CHECK_HEADERS([pthread.h], HAVE_PTHREAD_H=yes)
165 AM_CONDITIONAL(HAVE_PTHREAD_H, test "x$HAVE_PTHREAD_H" = "xyes")
167 dnl *** checks for types/defines ***
169 dnl *** checks for structures ***
171 dnl *** checks for compiler characteristics ***
173 dnl *** checks for library functions ***
174 AC_CHECK_FUNCS([gmtime_r pipe2])
176 dnl *** checks for headers ***
177 AC_CHECK_HEADERS([sys/utsname.h])
179 dnl *** checks for dependency libraries ***
181 dnl *** checks for socket and nsl libraries ***
182 AC_CHECK_FUNC(socket,,[AC_CHECK_LIB(socket,socket)])
183 AC_CHECK_FUNC(gethostbyname,,[AC_CHECK_LIB(nsl,gethostbyname)])
187 AG_GST_GLIB_CHECK([$GLIB_REQ])
189 dnl checks for gstreamer
190 dnl uninstalled is selected preferentially -- see pkg-config(1)
191 AG_GST_CHECK_GST($GST_API_VERSION, [$GST_REQ], yes)
192 AG_GST_CHECK_GST_BASE($GST_API_VERSION, [$GST_REQ], yes)
193 AG_GST_CHECK_GST_CHECK($GST_API_VERSION, [$GST_REQ], no)
194 AG_GST_CHECK_GST_CONTROLLER($GST_API_VERSION, [$GST_REQ], yes)
195 AG_GST_CHECK_GST_NET($GST_API_VERSION, [$GST_REQ], yes)
196 AG_GST_PKG_CHECK_MODULES(GST_VIDEO, gstreamer-video-[$GST_API_VERSION], [$GST_REQ], yes)
197 AG_GST_PKG_CHECK_MODULES(GST_AUDIO, gstreamer-audio-[$GST_API_VERSION], [$GST_REQ], yes)
198 AG_GST_PKG_CHECK_MODULES(GST_PBUTILS, gstreamer-pbutils-[$GST_API_VERSION], [$GST_REQ], yes)
199 AG_GST_PKG_CHECK_MODULES(GST_GL, gstreamer-gl-[$GST_API_VERSION], [$GST_REQ], no)
201 AC_MSG_CHECKING([GStreamer OpenGL window systems ...])
202 GST_GL_WINSYS=`$PKG_CONFIG --variable=gl_winsys gstreamer-gl-1.0`
203 AC_MSG_RESULT([$GST_GL_WINSYS])
204 GST_GL_HAVE_WINDOW_X11=""
205 GST_GL_HAVE_WINDOW_WAYLAND=""
206 GST_GL_HAVE_WINDOW_ANDROID=""
207 GST_GL_HAVE_WINDOW_COCOA=""
208 GST_GL_HAVE_WINDOW_EAGL=""
209 case "$GST_GL_WINSYS" in *x11*) GST_GL_HAVE_WINDOW_X11="1" ;; esac
210 case "$GST_GL_WINSYS" in *wayland*) GST_GL_HAVE_WINDOW_WAYLAND="1" ;; esac
211 case "$GST_GL_WINSYS" in *android*) GST_GL_HAVE_WINDOW_ANDROID="1" ;; esac
212 case "$GST_GL_WINSYS" in *cocoa*) GST_GL_HAVE_WINDOW_COCOA="1" ;; esac
213 case "$GST_GL_WINSYS" in *eagl*) GST_GL_HAVE_WINDOW_EAGL="1" ;; esac
215 AC_MSG_CHECKING([GStreamer OpenGL platforms ...])
216 GST_GL_PLATFORMS=`$PKG_CONFIG --variable=gl_platforms gstreamer-gl-1.0`
217 AC_MSG_RESULT([$GST_GL_PLATFORMS])
218 GST_GL_HAVE_PLATFORM_GLX=""
219 GST_GL_HAVE_PLATFORM_EGL=""
220 GST_GL_HAVE_PLATFORM_CGL=""
221 GST_GL_HAVE_PLATFORM_EAGL=""
222 case "$GST_GL_PLATFORMS" in *glx*) GST_GL_HAVE_PLATFORM_GLX="1" ;; esac
223 case "$GST_GL_PLATFORMS" in *egl*) GST_GL_HAVE_PLATFORM_EGL="1" ;; esac
224 case "$GST_GL_PLATFORMS" in *cgl*) GST_GL_HAVE_PLATFORM_CGL="1" ;; esac
225 case "$GST_GL_PLATFORMS" in *eagl*) GST_GL_HAVE_PLATFORM_EAGL="1" ;; esac
227 AM_CONDITIONAL(HAVE_GST_CHECK, test "x$HAVE_GST_CHECK" = "xyes")
229 AG_GST_CHECK_GST_PLUGINS_BASE($GST_API_VERSION, [$GSTPB_REQ], yes)
231 dnl check for uninstalled plugin directories for unit tests
232 AG_GST_CHECK_UNINSTALLED_SETUP([
233 AG_GST_CHECK_GST_PLUGINS_GOOD($GST_API_VERSION, [0.11.0])
234 AG_GST_CHECK_GST_PLUGINS_UGLY($GST_API_VERSION, [0.11.0])
235 AG_GST_CHECK_GST_PLUGINS_LIBAV($GST_API_VERSION, [0.11.0])
238 dnl Check for documentation xrefs
239 GLIB_PREFIX="`$PKG_CONFIG --variable=prefix glib-2.0`"
240 GST_PREFIX="`$PKG_CONFIG --variable=prefix gstreamer-$GST_API_VERSION`"
241 GSTPB_PREFIX="`$PKG_CONFIG --variable=prefix gstreamer-plugins-base-$GST_API_VERSION`"
242 AC_SUBST(GLIB_PREFIX)
244 AC_SUBST(GSTPB_PREFIX)
246 dnl GTK is optional and used in examples
250 if test "x$BUILD_EXAMPLES" = "xyes"; then
251 AC_MSG_CHECKING([which gtk+ version to compile examples against (optional)])
253 AS_HELP_STRING([--with-gtk=3.0|2.0],[which gtk+ version to compile against (default: 2.0)]),
255 2.0) GTK_REQ=$GTK2_REQ ;;
256 3.0) GTK_REQ=$GTK3_REQ ;;
257 *) AC_MSG_ERROR([invalid gtk+ version specified]);;
261 AC_MSG_RESULT([$with_gtk (>= $GTK_REQ)])
262 PKG_CHECK_MODULES(GTK, gtk+-x11-$with_gtk >= $GTK_REQ, HAVE_GTK=yes, HAVE_GTK=no)
266 AM_CONDITIONAL(HAVE_GTK, test "x$HAVE_GTK" = "xyes")
268 dnl Check for -Bsymbolic-functions linker flag used to avoid
269 dnl intra-library PLT jumps, if available.
270 AC_ARG_ENABLE(Bsymbolic,
271 [AS_HELP_STRING([--disable-Bsymbolic],[avoid linking with -Bsymbolic])],,
272 [SAVED_LDFLAGS="${LDFLAGS}" SAVED_LIBS="${LIBS}"
273 AC_MSG_CHECKING([for -Bsymbolic-functions linker flag])
274 LDFLAGS=-Wl,-Bsymbolic-functions
276 AC_TRY_LINK([], [return 0],
278 enable_Bsymbolic=yes,
281 LDFLAGS="${SAVED_LDFLAGS}" LIBS="${SAVED_LIBS}"])
283 dnl *** set variables based on configure arguments ***
285 dnl GTK is optional and used in examples
287 if test "x$BUILD_EXAMPLES" = "xyes"; then
288 PKG_CHECK_MODULES(GTK3, gtk+-3.0 >= 3.4, HAVE_GTK3=yes, HAVE_GTK3=no)
289 if test "x$HAVE_GTK3" = "xyes"; then
291 GTK_VERSION=`$PKG_CONFIG --variable=gtk_binary_version gtk+-3.0`
292 AC_SUBST(GTK_VERSION)
293 GTK_PREFIX=`$PKG_CONFIG --variable=prefix gdk-pixbuf-2.0`
294 AC_SUBST(GTK_BASE_DIR)
298 AC_SUBST(GTK3_CFLAGS)
300 AM_CONDITIONAL(HAVE_GTK3, test "x$HAVE_GTK3" = "xyes")
302 dnl x11 is optional for librfb
304 PKG_CHECK_MODULES(X11, x11, HAVE_X11=yes, HAVE_X11=no)
308 AM_CONDITIONAL(HAVE_X11, test "x$HAVE_X11" = "xyes")
309 if test "x$HAVE_X11" = "xyes"; then
310 AC_DEFINE(HAVE_X11, 1, [Define if you have X11 library])
313 dnl exif (used on jifmux tests) ****
314 PKG_CHECK_MODULES(EXIF, libexif >= 0.6.16, HAVE_EXIF="yes", HAVE_EXIF="no")
316 AC_SUBST(EXIF_CFLAGS)
317 AM_CONDITIONAL(USE_EXIF, test "x$HAVE_EXIF" = "xyes")
319 AG_GST_CHECK_FEATURE(IQA, [iqa], iqa , [
320 PKG_CHECK_MODULES(DSSIM, dssim, [
328 if test "x$HAVE_DSSIM" = "xyes"; then
329 AC_DEFINE(HAVE_DSSIM, 1, [Define if you have dssim library])
332 AC_SUBST(DSSIM_CFLAGS)
334 AM_CONDITIONAL(HAVE_DSSIM, test "x$HAVE_DSSIM" = "xyes")
339 dnl set license and copyright notice
341 AC_DEFINE_UNQUOTED(GST_LICENSE, "$GST_LICENSE", [GStreamer license])
342 AC_SUBST(GST_LICENSE)
344 dnl define LIBDIR so we can inform people where we live
345 AS_AC_EXPAND(LIBDIR, $libdir)
346 AC_DEFINE_UNQUOTED(LIBDIR, "$LIBDIR", [library dir])
348 dnl set location of plugin directory
351 dnl set release date/time
352 AG_GST_SET_PACKAGE_RELEASE_DATETIME_WITH_NANO([$PACKAGE_VERSION_NANO],
353 ["${srcdir}/gst-plugins-bad.doap"],
354 [$PACKAGE_VERSION_MAJOR.$PACKAGE_VERSION_MINOR.$PACKAGE_VERSION_MICRO])
356 dnl If only building static libraries, define GST_STATIC_COMPILATION. This is
357 dnl needed only on Windows, but it doesn't hurt to have it everywhere.
358 if test x$enable_static = xyes -a x$enable_shared = xno; then
359 GST_STATIC_CFLAGS="-DGST_STATIC_COMPILATION"
362 AC_ARG_WITH([player-tests],
363 AS_HELP_STRING([--with-player-tests],[Enable GstPlayer tests that need network access (default: no)]))
364 if test x$with_player_tests = xyes; then
365 AC_PATH_PROG([WGET], [wget], no)
366 if test x$WGET = xno; then
367 AC_MSG_WARN([wget required for GstPlayer tests but not found - disabling])
371 AM_CONDITIONAL(WITH_GST_PLAYER_TESTS, test "x$with_player_tests" = "xyes")
373 # set by AG_GST_PARSE_SUBSYSTEM_DISABLES above
374 dnl make sure it doesn't complain about unused variables if debugging is disabled
376 AG_GST_CHECK_GST_DEBUG_DISABLED([NO_WARNINGS="-Wno-unused"], [NO_WARNINGS=""])
378 dnl define an ERROR_CFLAGS Makefile variable
379 dnl -Waggregate-return - libexif returns aggregates
380 dnl -Wundef - Windows headers check _MSC_VER unconditionally
381 AG_GST_SET_ERROR_CFLAGS($FATAL_WARNINGS, [
382 -Wmissing-declarations -Wmissing-prototypes -Wredundant-decls
383 -Wwrite-strings -Wformat-security -Wold-style-definition
384 -Winit-self -Wmissing-include-dirs -Waddress -Wno-multichar
385 -Wnested-externs $NO_WARNINGS])
387 dnl define an ERROR_CXXFLAGS Makefile variable
388 AG_GST_SET_ERROR_CXXFLAGS($FATAL_WARNINGS, [
389 -Wmissing-declarations -Wredundant-decls
390 -Wwrite-strings -Wformat-nonliteral -Wformat-security
391 -Winit-self -Wmissing-include-dirs -Waddress -Wno-multichar $NO_WARNINGS])
393 dnl define an ERROR_OBJCFLAGS Makefile variable
394 AG_GST_SET_ERROR_OBJCFLAGS($FATAL_WARNINGS, [
395 -Wmissing-declarations -Wredundant-decls
396 -Wwrite-strings -Wformat-nonliteral -Wformat-security
397 -Winit-self -Wmissing-include-dirs -Wno-multichar $NO_WARNINGS])
399 dnl define correct level for debugging messages
400 AG_GST_SET_LEVEL_DEFAULT($GST_GIT)
403 AG_GST_DEFAULT_ELEMENTS
405 dnl *** plug-ins to include ***
407 dnl these are all the gst plug-ins, compilable without additional libs
408 AG_GST_CHECK_PLUGIN(accurip)
409 AG_GST_CHECK_PLUGIN(adpcmdec)
410 AG_GST_CHECK_PLUGIN(adpcmenc)
411 AG_GST_CHECK_PLUGIN(aiff)
412 AG_GST_CHECK_PLUGIN(videoframe_audiolevel)
413 AG_GST_CHECK_PLUGIN(asfmux)
414 AG_GST_CHECK_PLUGIN(audiobuffersplit)
415 AG_GST_CHECK_PLUGIN(audiofxbad)
416 AG_GST_CHECK_PLUGIN(audiomixer)
417 AG_GST_CHECK_PLUGIN(audiomixmatrix)
418 AG_GST_CHECK_PLUGIN(compositor)
419 AG_GST_CHECK_PLUGIN(audiovisualizers)
420 AG_GST_CHECK_PLUGIN(autoconvert)
421 AG_GST_CHECK_PLUGIN(bayer)
422 AG_GST_CHECK_PLUGIN(camerabin2)
423 AG_GST_CHECK_PLUGIN(coloreffects)
424 AG_GST_CHECK_PLUGIN(debugutils)
425 AG_GST_CHECK_PLUGIN(dvbsuboverlay)
426 AG_GST_CHECK_PLUGIN(dvdspu)
427 AG_GST_CHECK_PLUGIN(faceoverlay)
428 AG_GST_CHECK_PLUGIN(festival)
429 AG_GST_CHECK_PLUGIN(fieldanalysis)
430 AG_GST_CHECK_PLUGIN(freeverb)
431 AG_GST_CHECK_PLUGIN(frei0r)
432 AG_GST_CHECK_PLUGIN(gaudieffects)
433 AG_GST_CHECK_PLUGIN(geometrictransform)
434 AG_GST_CHECK_PLUGIN(gdp)
435 AG_GST_CHECK_PLUGIN(id3tag)
436 AG_GST_CHECK_PLUGIN(inter)
437 AG_GST_CHECK_PLUGIN(interlace)
438 AG_GST_CHECK_PLUGIN(ivfparse)
439 AG_GST_CHECK_PLUGIN(ivtc)
440 AG_GST_CHECK_PLUGIN(jp2kdecimator)
441 AG_GST_CHECK_PLUGIN(jpegformat)
442 AG_GST_CHECK_PLUGIN(librfb)
443 AG_GST_CHECK_PLUGIN(midi)
444 AG_GST_CHECK_PLUGIN(mpegdemux)
445 AG_GST_CHECK_PLUGIN(mpegtsdemux)
446 AG_GST_CHECK_PLUGIN(mpegtsmux)
447 AG_GST_CHECK_PLUGIN(mpegpsmux)
448 AG_GST_CHECK_PLUGIN(mxf)
449 AG_GST_CHECK_PLUGIN(netsim)
450 AG_GST_CHECK_PLUGIN(onvif)
451 AG_GST_CHECK_PLUGIN(pcapparse)
452 AG_GST_CHECK_PLUGIN(pnm)
453 AG_GST_CHECK_PLUGIN(rawparse)
454 AG_GST_CHECK_PLUGIN(removesilence)
455 AG_GST_CHECK_PLUGIN(sdp)
456 AG_GST_CHECK_PLUGIN(segmentclip)
457 AG_GST_CHECK_PLUGIN(siren)
458 AG_GST_CHECK_PLUGIN(smooth)
459 AG_GST_CHECK_PLUGIN(speed)
460 AG_GST_CHECK_PLUGIN(subenc)
461 AG_GST_CHECK_PLUGIN(stereo)
462 AG_GST_CHECK_PLUGIN(timecode)
463 AG_GST_CHECK_PLUGIN(videofilters)
464 AG_GST_CHECK_PLUGIN(videoparsers)
465 AG_GST_CHECK_PLUGIN(videosignal)
466 AG_GST_CHECK_PLUGIN(vmnc)
467 AG_GST_CHECK_PLUGIN(y4m)
468 AG_GST_CHECK_PLUGIN(yadif)
470 dnl *** plug-ins to exclude ***
472 AC_CHECK_HEADER(AVFoundation/AVFoundation.h, HAVE_AVFOUNDATION="yes", HAVE_AVFOUNDATION="no", [-])
473 AC_CHECK_HEADER(MobileCoreServices/MobileCoreServices.h, HAVE_IOS="yes", HAVE_IOS="no", [-])
474 AC_CHECK_HEADER(VideoToolbox/VideoToolbox.h, HAVE_VIDEOTOOLBOX="yes", HAVE_VIDEOTOOLBOX="no", [-])
476 if test "x$HAVE_VIDEOTOOLBOX" = "xyes"; then
478 LIBS="$LIBS -framework VideoToolbox"
479 AC_CHECK_FUNC(VTCompressionSessionPrepareToEncodeFrames, [
480 AC_DEFINE(HAVE_VIDEOTOOLBOX_10_9_6, 1, [Define if building with VideoToolbox >= 10.9.6])
486 AM_CONDITIONAL(HAVE_AVFOUNDATION, test "x$HAVE_AVFOUNDATION" = "xyes")
487 if test "x$HAVE_AVFOUNDATION" = "xyes"; then
488 AC_DEFINE(HAVE_AVFOUNDATION, 1, [Define if building with AVFoundation])
491 AM_CONDITIONAL(HAVE_IOS, test "x$HAVE_IOS" = "xyes")
492 if test "x$HAVE_IOS" = "xyes"; then
493 AC_DEFINE(HAVE_IOS, 1, [Define if building for Apple iOS])
496 AM_CONDITIONAL(HAVE_VIDEOTOOLBOX, test "x$HAVE_VIDEOTOOLBOX" = "xyes")
497 if test "x$HAVE_VIDEOTOOLBOX" = "xyes"; then
498 AC_DEFINE(HAVE_VIDEOTOOLBOX, 1, [Define if building with VideoToolbox])
501 dnl disable gst plugins we might not be able to build on this
502 dnl platform: (ugly but minimally invasive)
503 dnl FIXME: maybe move to sys, or make work with winsock2
504 AC_CHECK_HEADERS([sys/socket.h], HAVE_SYS_SOCKET_H=yes)
505 AC_CHECK_HEADERS([winsock2.h], HAVE_WINSOCK2_H=yes)
507 if test "x$HAVE_WINSOCK2_H" = "xyes"; then
508 WINSOCK2_LIBS="-lws2_32"
509 AC_SUBST(WINSOCK2_LIBS)
513 PKG_CHECK_MODULES(XCB, xcb >= 1.10, GST_VULKAN_HAVE_WINDOW_XCB=1, GST_VULKAN_HAVE_WINDOW_XCB=0)
514 AM_CONDITIONAL(USE_XCB, test "x$GST_VULKAN_HAVE_WINDOW_XCB" = "x1")
516 PKG_CHECK_MODULES(VULKAN_WAYLAND, wayland-client >= 1.4, GST_VULKAN_HAVE_WINDOW_WAYLAND=1, GST_VULKAN_HAVE_WINDOW_WAYLAND=0)
517 AM_CONDITIONAL(USE_WAYLAND, test "x$GST_VULKAN_HAVE_WINDOW_WAYLAND" = "x1")
518 VULKAN_CONFIG_DEFINES="
519 #define GST_VULKAN_HAVE_WINDOW_XCB $GST_VULKAN_HAVE_WINDOW_XCB
520 #define GST_VULKAN_HAVE_WINDOW_WAYLAND $GST_VULKAN_HAVE_WINDOW_WAYLAND"
522 AC_CONFIG_COMMANDS([ext/vulkan/vkconfig.h], [
523 outfile=vkconfig.h-tmp
524 cat > $outfile <<\_______EOF
527 * This is a generated file. Please modify `configure.ac'
530 #ifndef __GST_VULKAN_CONFIG_H__
531 #define __GST_VULKAN_CONFIG_H__
539 cat >>$outfile <<_______EOF
540 $vulkan_config_defines
543 cat >>$outfile <<_______EOF
547 #endif /* __GST_VULKAN_CONFIG_H__ */
551 if cmp -s $outfile ext/vulkan/vkconfig.h; then
552 AC_MSG_NOTICE([ext/vulkan/vkconfig.h is unchanged])
555 mv $outfile ext/vulkan/vkconfig.h
558 vulkan_config_defines='$VULKAN_CONFIG_DEFINES'
561 dnl *** sys plug-ins ***
564 translit(dnm, m, l) AM_CONDITIONAL(USE_DIRECTSOUND, true)
565 AG_GST_CHECK_FEATURE(DIRECTSOUND, [DirectSound], directsoundsrc, [
566 HAVE_DIRECTSOUND="no"
567 save_CFLAGS="$CFLAGS"
568 save_LDFLAGS="$LDFLAGS"
570 CFLAGS="$CFLAGS $DIRECTX_CFLAGS"
571 LDFLAGS="$LDFLAGS $DIRECTX_LDFLAGS"
572 LIBS="$LIBS -lwinmm -ldsound -ldxerr9 -luser32"
573 AC_MSG_CHECKING(for DirectSound LDFLAGS)
574 AC_LINK_IFELSE([AC_LANG_PROGRAM([[
578 #include <mmsystem.h>
580 DXGetErrorString9 (0);
581 DirectSoundCreate(NULL, NULL, NULL);
583 [HAVE_DIRECTSOUND="yes"],
584 [HAVE_DIRECTSOUND="no"])
585 AC_MSG_RESULT($HAVE_DIRECTSOUND)
587 LDFLAGS=$save_LDFLAGS
590 if test "x$HAVE_DIRECTSOUND" = "xyes"; then
591 dnl this is much more than we want
592 DIRECTSOUND_LIBS="-lwinmm -ldsound -ldxerr9 -luser32"
593 AC_SUBST(DIRECTX_CFLAGS)
594 AC_SUBST(DIRECTX_LDFLAGS)
595 AC_SUBST(DIRECTSOUND_LIBS)
597 AC_SUBST(HAVE_DIRECTSOUND)
601 translit(dnm, m, l) AM_CONDITIONAL(USE_WASAPI, true)
602 AG_GST_CHECK_FEATURE(WASAPI, [WASAPI plug-in], wasapi, [
604 save_CFLAGS="$CFLAGS"
605 save_LDFLAGS="$LDFLAGS"
607 CFLAGS="$CFLAGS $DIRECTX_CFLAGS"
608 LDFLAGS="$LDFLAGS $DIRECTX_LDFLAGS"
609 LIBS="$LIBS -lole32 -lwinmm -lksuser"
610 AC_MSG_CHECKING(for WASAPI LDFLAGS)
611 AC_LINK_IFELSE([AC_LANG_PROGRAM([[
614 #include <mmsystem.h>
615 #include <mmdeviceapi.h>
621 hr = CoInitialize(NULL);
623 printf("CoInitialize failed: hr = 0x%08x", hr);
628 // result = do_everything(argc, argv);
636 AC_MSG_RESULT($HAVE_WASAPI)
638 LDFLAGS=$save_LDFLAGS
641 if test "x$HAVE_WASAPI" = "xyes"; then
642 WASAPI_LIBS="-lole32 -lwinmm -lksuser"
643 AC_SUBST(WASAPI_LIBS)
645 AC_SUBST(HAVE_WASAPI)
649 translit(dnm, m, l) AM_CONDITIONAL(USE_DIRECT3D, true)
650 AG_GST_CHECK_FEATURE(DIRECT3D, [Direct3D plug-in], direct3dsink, [
652 save_CFLAGS="$CFLAGS"
653 save_LDFLAGS="$LDFLAGS"
655 CFLAGS="$CFLAGS $DIRECTX_CFLAGS"
656 LDFLAGS="$LDFLAGS $DIRECTX_LDFLAGS"
657 LIBS="$LIBS -ld3d9 -lgdi32"
658 AC_MSG_CHECKING(for Direct3D LDFLAGS)
659 AC_LINK_IFELSE([AC_LANG_PROGRAM([[
663 Direct3DCreate9(D3D_SDK_VERSION);
665 [HAVE_DIRECT3D="yes"],
666 [HAVE_DIRECT3D="no"])
667 AC_MSG_RESULT($HAVE_DIRECT3D)
669 LDFLAGS=$save_LDFLAGS
672 if test "x$HAVE_DIRECT3D" = "xyes"; then
673 DIRECT3D_LIBS="-ld3d9 -lgdi32"
674 AC_SUBST(DIRECT3D_LIBS)
676 AC_SUBST(HAVE_DIRECT3D)
680 translit(dnm, m, l) AM_CONDITIONAL(USE_WINSCREENCAP, true)
681 AG_GST_CHECK_FEATURE(WINSCREENCAP, [winscreencap plug-in], winscreencap, [
682 HAVE_WINSCREENCAP="no"
683 save_CFLAGS="$CFLAGS"
684 save_LDFLAGS="$LDFLAGS"
686 CFLAGS="$CFLAGS $DIRECTX_CFLAGS"
687 LDFLAGS="$LDFLAGS $DIRECTX_LDFLAGS"
688 LIBS="$LIBS -ld3d9 -lgdi32"
689 AC_MSG_CHECKING(for Direct3D LDFLAGS)
690 AC_LINK_IFELSE([AC_LANG_PROGRAM([[
694 Direct3DCreate9(D3D_SDK_VERSION);
696 [HAVE_WINSCREENCAP="yes"],
697 [HAVE_WINSCREENCAP="no"])
698 AC_MSG_RESULT($HAVE_WINSCREENCAP)
700 LDFLAGS=$save_LDFLAGS
703 if test "x$HAVE_WINSCREENCAP" = "xyes"; then
704 WINSCREENCAP_LIBS="-ld3d9 -lgdi32"
705 AC_SUBST(WINSCREENCAP_LIBS)
707 AC_SUBST(HAVE_WINSCREENCAP)
711 translit(dnm, m, l) AM_CONDITIONAL(USE_WINKS, true)
712 AG_GST_CHECK_FEATURE(WINKS, [Winks plug-in], winks, [
714 save_CFLAGS="$CFLAGS"
715 save_LDFLAGS="$LDFLAGS"
717 CFLAGS="$CFLAGS $DIRECTX_CFLAGS"
718 LDFLAGS="$LDFLAGS $DIRECTX_LDFLAGS"
719 LIBS="$LIBS -lole32 -luuid -lstrmiids"
720 AC_MSG_CHECKING(for Winks LDFLAGS)
721 AC_LINK_IFELSE([AC_LANG_PROGRAM([[
727 IGraphBuilder *pGraph = NULL;
728 HRESULT hr = CoInitialize(NULL);
729 hr = CoCreateInstance(&CLSID_FilterGraph, NULL, CLSCTX_INPROC_SERVER,
730 &IID_IGraphBuilder, (void **)&pGraph);
737 AC_MSG_RESULT($HAVE_WINKS)
739 LDFLAGS=$save_LDFLAGS
742 if test "x$HAVE_WINKS" = "xyes"; then
743 dnl this is much more than we want
744 WINKS_LIBS="-ldxguid -lole32 -luuid -lstrmiids -lksuser -lsetupapi"
745 AC_SUBST(DIRECTX_CFLAGS)
746 AC_SUBST(DIRECTX_LDFLAGS)
752 dnl *** Android Media ***
753 translit(dnm, m, l) AM_CONDITIONAL(USE_ANDROID_MEDIA, true)
754 HAVE_ANDROID_MEDIA="no"
755 AG_GST_CHECK_FEATURE(ANDROID_MEDIA, [Android Media], androidmedia, [
758 AC_CHECK_HEADER(jni.h, HAVE_ANDROID_MEDIA="yes", HAVE_ANDROID_MEDIA="no")
761 HAVE_ANDROID_MEDIA="no"
766 dnl *** AppleMedia (OS X and iOS) ***
767 translit(dnm, m, l) AM_CONDITIONAL(USE_APPLE_MEDIA, true)
768 HAVE_APPLE_MEDIA="no"
769 dnl SystemConfiguration.h is common to OS X and iOS, so we check for that
770 AG_GST_CHECK_FEATURE(APPLE_MEDIA, [Apple video], applemedia, [
771 AC_CHECK_HEADER(SystemConfiguration/SystemConfiguration.h, HAVE_APPLE_MEDIA="yes", HAVE_APPLE_MEDIA="no")
772 dnl OSX 10.7 and earlier lack VideoToolbox/VideoToolbox.h
773 if test "x$HAVE_IOS" = "xno"; then
774 AC_CHECK_HEADER(VideoToolbox/VideoToolbox.h,, HAVE_APPLE_MEDIA="no")
778 dnl in case header SystemConfiguration/SystemConfiguration.h is found on other platforms
783 HAVE_APPLE_MEDIA="no"
788 translit(dnm, m, l) AM_CONDITIONAL(USE_BLUEZ, true)
789 AG_GST_CHECK_FEATURE(BLUEZ, [Bluez], bluez, [
790 PKG_CHECK_MODULES([BLUEZ5], [bluez >= 5.0], [
791 PKG_CHECK_MODULES([GIO_UNIX], gio-unix-2.0 > 2.24, [
792 AC_CHECK_PROG([GDBUS_CODEGEN],[gdbus-codegen],[gdbus-codegen])
794 AC_DEFINE(HAVE_BLUEZ5,[1],[Bluez5 detected])
803 dnl *** OS/X AVCVideoServices ***
804 translit(dnm, m, l) AM_CONDITIONAL(USE_AVC, true)
806 AG_GST_CHECK_FEATURE(AVC, [AVC Video Services], avcsrc, [
808 save_CPPFLAGS="$CPPFLAGS"
809 CPPFLAGS="$CPPFLAGS -framework AVCVideoServices -framework CoreFoundation"
811 LIBS="$LIBS -framework AVCVideoServices -framework CoreFoundation"
812 AC_LINK_IFELSE([AC_LANG_PROGRAM([[]], [[]])],[HAVE_AVC=yes],[HAVE_AVC=no])
814 CPPFLAGS=$save_CPPFLAGS
817 dnl in case header AVCVideoServices/AVCVideoServices.h is found on other platforms
826 dnl check for shm_open (for shm plugin)
827 translit(dnm, m, l) AM_CONDITIONAL(USE_SHM, true)
828 AG_GST_CHECK_FEATURE(SHM, [POSIX shared memory source and sink], shm, [
829 if test "x$HAVE_SYS_SOCKET_H" = "xyes"; then
831 *-darwin* | *-macos10*)
832 AC_DEFINE(HAVE_OSX,[1],[Apple Mac OS X operating system detected])
839 AC_CHECK_LIB([rt], [shm_open],
840 AC_CHECK_DECL([MSG_NOSIGNAL], HAVE_SHM=yes, HAVE_SHM=no, [
841 #include <sys/socket.h>
844 AC_SUBST(SHM_LIBS, "-lrt")
852 dnl check for unix sockets (ipcpipeline plugin)
853 translit(dnm, m, l) AM_CONDITIONAL(USE_IPCPIPELINE, true)
854 AG_GST_CHECK_FEATURE(IPCPIPELINE, [Unix sockets], ipcpipeline, [
855 if test "x$HAVE_SYS_SOCKET_H" = "xyes"; then
856 AC_CHECK_FUNC(pipe, [
857 AC_CHECK_FUNC(socketpair, [HAVE_IPCPIPELINE=yes], [HAVE_IPCPIPELINE=no])
866 dnl check for Video CD
867 translit(dnm, m, l) AM_CONDITIONAL(USE_VCD, true)
868 AG_GST_CHECK_FEATURE(VCD, [Video CD], vcdsrc, [
869 AC_CHECK_HEADER(linux/cdrom.h, HAVE_VCD="yes", HAVE_VCD="no")
872 dnl check for OpenSL ES
873 translit(dnm, m, l) AM_CONDITIONAL(USE_OPENSLES, true)
874 AG_GST_CHECK_FEATURE(OPENSLES, [OpenSL ES], opensl, [
875 AC_CHECK_HEADER(SLES/OpenSLES.h, HAVE_OPENSLES="yes", HAVE_OPENSLES="no")
879 translit(dnm, m, l) AM_CONDITIONAL(USE_UVCH264, true)
880 AG_GST_CHECK_FEATURE(UVCH264, [UVC H264], uvch264, [
881 AC_CHECK_HEADER(linux/uvcvideo.h, HAVE_UVCVIDEO_H=yes, HAVE_UVCVIDEO_H=no)
882 PKG_CHECK_MODULES(G_UDEV, gudev-1.0 , [
883 AC_DEFINE([HAVE_GUDEV], 1, [Define if gudev is installed])
886 PKG_CHECK_MODULES(LIBUSB, libusb-1.0 , [
887 AC_DEFINE([HAVE_LIBUSB], 1, [Define if libusb 1.x is installed])
890 if test "x$HAVE_UVCVIDEO_H" = "xyes" && \
891 test "x$HAVE_GUDEV" = "xyes" && \
892 test "x$HAVE_LIBUSB" = "xyes"; then
898 AC_SUBST(LIBUDEV_CFLAGS)
899 AC_SUBST(LIBUDEV_LIBS)
900 AC_SUBST(LIBUSB_CFLAGS)
901 AC_SUBST(LIBUSB_LIBS)
904 translit(dnm, m, l) AM_CONDITIONAL(USE_CUDA, true)
905 AG_GST_CHECK_FEATURE(CUDA, [NVIDIA CUDA API],, [
906 AC_ARG_WITH([cuda-prefix],
907 AS_HELP_STRING([--with-cuda-prefix],
908 [Use the provided prefix for detecting the cuda installation]),
909 [AS_IF([test "x$with_cuda_prefix" != "x"],
910 [CUDA_PREFIX="$with_cuda_prefix"])],
914 if test "x$CUDA_PREFIX" != "x"; then
915 dnl only override if not already set
916 if test "x$CUDA_CFLAGS" = "x" -a "x$CUDA_LIBS" = "x"; then
917 dnl this is an educated guess, user can always override these
918 CUDA_CFLAGS="-I$CUDA_PREFIX/include"
919 CUDA_LIBS="-L$CUDA_PREFIX/lib -L$CUDA_PREFIX/lib64 -L$CUDA_PREFIX/lib/stubs -L$CUDA_PREFIX/lib64/stubs -lcuda -lcudart"
922 PKG_CHECK_MODULES([CUDA], [cuda-8.0 cudart-8.0],, [
923 PKG_CHECK_MODULES([CUDA], [cuda-7.5 cudart-7.5],, [
924 PKG_CHECK_MODULES([CUDA], [cuda-7.0 cudart-7.0],, [
925 PKG_CHECK_MODULES([CUDA], [cuda-6.5 cudart-6.5],, [
926 AC_MSG_WARN([Could not find cuda headers/libraries])])])])])
931 save_CPPFLAGS="$CPPFLAGS"
932 CPPFLAGS="$CUDA_CFLAGS $save_CPPFLAGS "
933 AC_CHECK_HEADER([cuda.h], [HAVE_CUDA_H=yes],
934 AC_MSG_WARN([Could not find cuda.h]))
935 AC_CHECK_HEADER([cuda_runtime_api.h], [HAVE_CUDART_H=yes],
936 AC_MSG_WARN([Could not find cuda_runtime_api.h]))
937 CPPFLAGS=$save_CPPFLAGS
939 dnl libcuda and libcudart libraries
941 LIBS="$CUDA_LIBS $save_LIBS"
943 AC_CHECK_LIB(cudart,cudaGetErrorString,[HAVE_CUDART_LIB="yes"], [
944 AC_MSG_WARN([Could not find cudart library])])
946 AC_CHECK_LIB(cuda,cuInit,[HAVE_CUDA_LIB="yes"], [
947 AC_MSG_WARN([Could not find cuda library])])
952 translit(dnm, m, l) AM_CONDITIONAL(USE_NVDEC, true)
953 AG_GST_CHECK_FEATURE(NVDEC, [nvdec], nvdec, [
955 save_CPPFLAGS="$CPPFLAGS"
956 CPPFLAGS="$CUDA_CFLAGS $save_CPPFLAGS"
957 AC_CHECK_HEADER([nvcuvid.h], [HAVE_NVCUVID_H=yes],
958 AC_MSG_WARN([Could not find nvcuvid.h]))
959 CPPFLAGS=$save_CPPFLAGS
963 LIBS="$CUDA_LIBS $save_LIBS"
964 AC_CHECK_LIB(nvcuvid, cuvidCtxLock, [HAVE_NVCUVID=yes],
965 AC_MSG_WARN([Could not find library nvcuvid]))
968 if test "x$HAVE_NVCUVID_H" = "xyes" -a "x$HAVE_NVCUVID" = "xyes"; then
976 translit(dnm, m, l) AM_CONDITIONAL(USE_NVENC, true)
977 AG_GST_CHECK_FEATURE(NVENC, [NVIDIA Encode API], nvenc, [
978 dnl nvEncodeAPI.h header
979 HAVE_NVENCODEAPI_H=no
980 AC_ARG_VAR(NVENCODE_CFLAGS, [C compiler flags for NvEncodeAPI.h])
981 save_CPPFLAGS="$CPPFLAGS"
982 CPPFLAGS="$NVENCODE_CFLAGS $save_CPPFLAGS"
983 AC_CHECK_HEADER([nvEncodeAPI.h], [
984 AC_PREPROC_IFELSE([AC_LANG_SOURCE([[#include <nvEncodeAPI.h>
985 #if NVENCAPI_MAJOR_VERSION < 5
986 #error "Need nvEncodeAPI.h >= 5.0"
989 HAVE_NVENCODEAPI_H=yes
991 AC_MSG_WARN([nvEncodeAPI.h must be >= 5.0])
994 AC_MSG_WARN([Could not find nvEncodeAPI.h]))
995 AC_SUBST(NVENCODE_CFLAGS)
996 CPPFLAGS="$save_CPPFLAGS"
998 dnl libnvnidia-encode library
1000 AC_ARG_VAR(NVENCODE_LIBS, [linker flags for nvidia-encode])
1002 LIBS="$NVENCODE_LIBS $saved_LIBS"
1003 AC_CHECK_LIB(nvidia-encode, NvEncodeAPICreateInstance, [HAVE_NVENCODE_LIB="yes"],
1004 AC_MSG_WARN([Could not find library nvidia-encode]))
1005 NVENCODE_LIBS="$NVENCODE_LIBS -lnvidia-encode"
1006 AC_SUBST(NVENCODE_LIBS)
1010 if test "x$HAVE_CUDA_H" = "xyes" \
1011 -a "x$HAVE_CUDART_H" = "xyes" \
1012 -a "x$HAVE_CUDA_LIB" = "xyes" \
1013 -a "x$HAVE_CUDART_LIB" = "xyes" \
1014 -a "x$HAVE_NVENCODEAPI_H" = "xyes" \
1015 -a "x$HAVE_NVENCODE_LIB" = "xyes"; then
1017 if test x"$USE_OPENGL" = x"yes"; then
1018 dnl cuda-gl interop header
1019 save_CPPFLAGS="$CPPFLAGS"
1020 CPPFLAGS="$save_CPPFLAGS $CUDA_CFLAGS"
1021 AC_CHECK_HEADER([cuda_gl_interop.h], [
1022 USE_NVENC_GST_GL="yes"
1023 AC_DEFINE(HAVE_NVENC_GST_GL, [1] , [NVENC GStreamer OpenGL support available])
1025 CPPFLAGS="$save_CPPFLAGS"
1031 AM_CONDITIONAL(USE_NVENC_GST_GL, test "x$USE_NVENC_GST_GL" = "xyes")
1033 dnl check for tinyalsa
1034 translit(dnm, m, l) AM_CONDITIONAL(USE_TINYALSA, true)
1035 AG_GST_CHECK_FEATURE(TINYALSA, [tinyalsa], tinyalsa, [
1036 AC_CHECK_HEADER(tinyalsa/asoundlib.h, HAVE_TINYALSA="yes", HAVE_TINYALSA="no")
1039 dnl check for intel mediasdk
1040 translit(dnm, m, l) AM_CONDITIONAL(USE_MSDK, true)
1041 AG_GST_CHECK_FEATURE(MSDK, [Intel MediaSDK], msdk, [
1042 PKG_CHECK_MODULES(LIBMFX, libmfx,
1044 AC_DEFINE(HAVE_LIBMFX, 1, [Define if mfx_dispatcher is available])
1047 AC_ARG_WITH([msdk-prefix],
1048 AS_HELP_STRING([--with-msdk-prefix],
1049 [Use the provided prefix for detecting the Intel MediaSDK]),
1050 [AS_IF([test "x$with_msdk_prefix" != "x"],
1051 [MSDK_PREFIX="$with_msdk_prefix"])],
1052 [AS_IF([test "x$MFX_HOME" != "x"],
1053 [MSDK_PREFIX="$MFX_HOME"],
1054 [MSDK_PREFIX="/opt/intel/media"])])
1055 MSDK_CFLAGS="-I$MSDK_PREFIX/include"
1056 MSDK_LIBS="-L$MSDK_PREFIX/lib/lin_x64 -lmfx -ldl"
1057 AC_SUBST(MSDK_CFLAGS)
1060 save_CPPFLAGS="$CPPFLAGS"
1061 CPPFLAGS="$MSDK_CFLAGS $save_CPPFLAGS"
1062 AC_CHECK_HEADER(mfxdefs.h, HAVE_MFXDEFS_H="yes", HAVE_MFXDEFS_H="no")
1063 CPPFLAGS="$save_CPPFLAGS"
1066 LIBS="$MSDK_LIBS $LIBS"
1068 AC_CHECK_LIB(mfx,MFXInit,HAVE_MFX_LIB="yes",HAVE_MFX_LIB="no")
1072 if test "x$HAVE_MFXDEFS_H" = "xyes" \
1073 -a "x$HAVE_MFX_LIB" = "xyes"; then
1080 PKG_CHECK_MODULES(LIBVA_DRM, libva-drm, HAVE_LIBVA_DRM="yes", HAVE_LIBVA_DRM="no")
1082 if test "x$HAVE_MSDK" = "xyes" \
1083 -a "x$HAVE_LIBVA_DRM" = "xyes"; then
1089 AM_CONDITIONAL(USE_MSDK_LIBVA,
1090 test "x$HAVE_MSDK" = "xyes" -a "x$HAVE_LIBVA_DRM" = "xyes")
1092 dnl *** ext plug-ins ***
1093 dnl keep this list sorted alphabetically !
1095 if test "x$BUILD_EXTERNAL" = "xyes"; then
1097 dnl *** assrender ***
1098 translit(dnm, m, l) AM_CONDITIONAL(USE_ASSRENDER, true)
1099 AG_GST_CHECK_FEATURE(ASSRENDER, [ASS/SSA renderer], assrender, [
1100 PKG_CHECK_MODULES(ASSRENDER, libass >= 0.10.2, [
1101 HAVE_ASSRENDER="yes" ], [
1105 AC_SUBST(ASSRENDER_CFLAGS)
1106 AC_SUBST(ASSRENDER_LIBS)
1109 translit(dnm, m, l) AM_CONDITIONAL(USE_AOM, true)
1110 AG_GST_CHECK_FEATURE(AOM, [AV1 encoder/decoder], aom, [
1111 AG_GST_PKG_CHECK_MODULES(AOM, aom)
1114 dnl *** vo-amrwbenc ***
1115 translit(dnm, m, l) AM_CONDITIONAL(USE_VOAMRWBENC, true)
1116 AG_GST_CHECK_FEATURE(VOAMRWBENC, [vo-amrwbenc library], vo-amrwbenc, [
1117 AG_GST_PKG_CHECK_MODULES(VOAMRWBENC, vo-amrwbenc >= 0.1.0)
1120 dnl *** vo-aacenc ***
1121 translit(dnm, m, l) AM_CONDITIONAL(USE_VOAACENC, true)
1122 AG_GST_CHECK_FEATURE(VOAACENC, [vo-aacenc library], vo-aacenc, [
1123 AG_GST_PKG_CHECK_MODULES(VOAACENC, vo-aacenc >= 0.1.0)
1127 translit(dnm, m, l) AM_CONDITIONAL(USE_BS2B, true)
1128 AG_GST_CHECK_FEATURE(BS2B, [bs2b], bs2b, [
1129 PKG_CHECK_MODULES(BS2B, libbs2b >= 3.1.0, HAVE_BS2B="yes", [
1132 AC_SUBST(BS2B_CFLAGS)
1137 translit(dnm, m, l) AM_CONDITIONAL(USE_BZ2, true)
1138 AG_GST_CHECK_FEATURE(BZ2, [bz2 library], bz2, [
1141 AC_MSG_CHECKING([for BZ2_bzlibVersion in -lbz2])
1142 AC_LINK_IFELSE([AC_LANG_PROGRAM([[#include <bzlib.h>]], [[const char *version = BZ2_bzlibVersion ();]])],[HAVE_BZ2=yes],[HAVE_BZ2=no])
1143 AC_MSG_RESULT($HAVE_BZ2)
1145 if test "x$HAVE_BZ2" = "xyes"; then
1153 #translit(dnm, m, l) AM_CONDITIONAL(USE_CAIRO, true)
1154 #AG_GST_CHECK_FEATURE(CAIRO, [cairo plug-in], cairo, [
1155 # PKG_CHECK_MODULES(CAIRO, cairo >= 1.0 glitz-glx, HAVE_CAIRO=yes, [
1158 # AC_SUBST(CAIRO_CFLAGS)
1159 # AC_SUBST(CAIRO_LIBS)
1162 dnl *** chromaprint ***
1163 translit(dnm, m, l) AM_CONDITIONAL(USE_CHROMAPRINT, true)
1164 AG_GST_CHECK_FEATURE(CHROMAPRINT, [chromaprint], chromaprint, [
1165 PKG_CHECK_MODULES(CHROMAPRINT, libchromaprint, HAVE_CHROMAPRINT="yes", [
1166 HAVE_CHROMAPRINT="no"
1168 AC_SUBST(CHROMAPRINT_CFLAGS)
1169 AC_SUBST(CHROMAPRINT_LIBS)
1173 translit(dnm, m, l) AM_CONDITIONAL(USE_CURL, true)
1174 AG_GST_CHECK_FEATURE(CURL, [Curl plugin], curl, [
1175 PKG_CHECK_MODULES(CURL, libcurl >= 7.35.0, [
1177 AC_CHECK_HEADERS([unistd.h sys/socket.h sys/types.h netinet/in.h netinet/tcp.h fcntl.h], [ ], [
1178 AC_CHECK_HEADERS([unistd.h sys/types.h winsock2.h ws2tcpip.h fcntl.h], [ ], [HAVE_CURL="no"])
1180 AC_CHECK_HEADERS([netinet/ip.h], [], [HAVE_CURL="no"],
1181 [[#ifdef HAVE_SYS_TYPES_H
1182 # include <sys/types.h>
1184 #ifdef HAVE_NETINET_IN_H
1185 # include <netinet/in.h>
1188 AC_MSG_CHECKING([for socket support needed by curlsink])
1189 AC_MSG_RESULT($HAVE_CURL)
1193 AC_SUBST(CURL_CFLAGS)
1195 PKG_CHECK_MODULES(SSH2, libssh2 >= 1.4.3, [
1197 AC_DEFINE(HAVE_SSH2, 1, [Define if libssh2 is available])
1201 AM_CONDITIONAL(USE_SSH2, test "x$HAVE_SSH2" = "xyes")
1202 AC_SUBST(SSH2_CFLAGS)
1204 ],,,[AM_CONDITIONAL(USE_SSH2, false)])
1207 translit(dnm, m, l) AM_CONDITIONAL(USE_DASH, true)
1208 AG_GST_CHECK_FEATURE(DASH, [DASH plug-in], dash, [
1209 PKG_CHECK_MODULES(LIBXML2, libxml-2.0 >= 2.8, [HAVE_LIBXML2="yes"
1210 HAVE_DASH="yes"], [HAVE_LIBXML2="no"
1212 AC_SUBST(LIBXML2_CFLAGS)
1213 AC_SUBST(LIBXML2_LIBS)
1217 translit(dnm, m, l) AM_CONDITIONAL(USE_DC1394, true)
1218 AG_GST_CHECK_FEATURE(DC1394, [libdc1394], dc1394, [
1219 PKG_CHECK_MODULES(LIBDC1394, libdc1394-2 >= 2.0.0, [
1220 if test -z "`$PKG_CONFIG --modversion libdc1394-2 | grep 2.0.0-rc`"; then
1229 AC_SUBST(LIBDC1394_CFLAGS)
1230 AC_SUBST(LIBDC1394_LIBS)
1233 dnl *** decklink ***
1234 translit(dnm, m, l) AM_CONDITIONAL(USE_DECKLINK, true)
1235 AG_GST_CHECK_FEATURE(DECKLINK, [decklink], decklink, [
1242 if test "x$HAVE_PTHREAD_H" = "xyes"; then
1243 AC_CHECK_LIB(dl, dlopen,
1247 DECKLINK_LIBS="-lpthread -ldl"
1252 if test "x$HAVE_PTHREAD_H" = "xyes"; then
1253 AC_CHECK_LIB(dl, dlopen,
1257 DECKLINK_LIBS="-lpthread -ldl"
1258 HAVE_DECKLINK_OSX=yes
1265 DECKLINK_LIBS="-lole32 -loleaut32"
1266 HAVE_DECKLINK_WIN=yes
1273 AC_SUBST(DECKLINK_CXXFLAGS)
1274 AC_SUBST(DECKLINK_LIBS)
1276 AM_CONDITIONAL(DECKLINK_OSX, test "x$HAVE_DECKLINK_OSX" = xyes)
1277 AM_CONDITIONAL(DECKLINK_WIN, test "x$HAVE_DECKLINK_WIN" = xyes)
1279 dnl **** DirectFB ****
1280 translit(dnm, m, l) AM_CONDITIONAL(USE_DIRECTFB, true)
1281 AG_GST_CHECK_FEATURE(DIRECTFB, [directfb], dfbvideosink , [
1282 PKG_CHECK_MODULES(DIRECTFB, directfb >= 0.9.24, HAVE_DIRECTFB="yes", [
1287 dnl **** Wayland ****
1288 translit(dnm, m, l) AM_CONDITIONAL(USE_WAYLAND, true)
1289 AC_PATH_PROG([wayland_scanner], [wayland-scanner])
1290 AG_GST_CHECK_FEATURE(WAYLAND, [wayland sink], wayland , [
1291 PKG_CHECK_MODULES(WAYLAND, wayland-client >= 1.4.0 libdrm >= 2.4.55 wayland-protocols >= 1.4, [
1292 if test "x$wayland_scanner" != "x"; then
1294 AC_SUBST(WAYLAND_PROTOCOLS_DATADIR, `$PKG_CONFIG --variable=pkgdatadir wayland-protocols`)
1296 AC_MSG_RESULT([wayland-scanner is required to build the wayland plugin])
1305 translit(dnm, m, l) AM_CONDITIONAL(USE_WEBP, true)
1306 AG_GST_CHECK_FEATURE(WEBP, [WebP], webp , [
1307 PKG_CHECK_MODULES(WEBP, libwebp >= 0.2.1, [
1308 HAVE_WEBP="yes" ], [ HAVE_WEBP="no"
1310 AC_SUBST(WEBP_CFLAGS)
1315 translit(dnm, m, l) AM_CONDITIONAL(USE_DAALA, true)
1316 AG_GST_CHECK_FEATURE(DAALA, [daala], daala, [
1317 if test "x$BUILD_EXPERIMENTAL" = "xyes"; then
1318 PKG_CHECK_MODULES(DAALA, daalaenc daaladec, [
1323 AC_SUBST(DAALA_CFLAGS)
1324 AC_SUBST(DAALA_LIBS)
1329 translit(dnm, m, l) AM_CONDITIONAL(USE_DTS, true)
1330 AG_GST_CHECK_FEATURE(DTS, [dts library], dtsdec, [
1332 AG_GST_CHECK_LIBHEADER(DTS, dca, dca_init, $LIBM, dca.h,
1333 DTS_LIBS="-ldca $LIBM", HAVE_DTS="no")
1334 if test $HAVE_DTS = "no"; then
1335 AG_GST_CHECK_LIBHEADER(DTS, dts_pic, dts_init, $LIBM, dts.h,
1336 [ DTS_LIBS="-ldts_pic $LIBM"
1337 AC_DEFINE(DTS_OLD, 1, [Define if an old libdts is used])
1343 dnl *** resindvd ***
1344 translit(dnm, m, l) AM_CONDITIONAL(USE_RESINDVD, true)
1345 AG_GST_CHECK_FEATURE(RESINDVD, [resindvd plugin], resindvd, [
1346 PKG_CHECK_MODULES(DVDNAV, dvdnav >= 4.1.2 dvdread >= 4.1.2, HAVE_RESINDVD="yes", [
1351 dnl **** Free AAC Encoder (FAAC) ****
1352 translit(dnm, m, l) AM_CONDITIONAL(USE_FAAC, true)
1353 AG_GST_CHECK_FEATURE(FAAC, [AAC encoder plug-in], faac, [
1354 AG_GST_CHECK_LIBHEADER(FAAC, faac, faacEncOpen, $LIBM, faac.h,
1355 FAAC_LIBS="-lfaac $LIBM")
1359 dnl **** Free AAC Decoder (FAAD2) ****
1360 translit(dnm, m, l) AM_CONDITIONAL(USE_FAAD, true)
1361 AG_GST_CHECK_FEATURE(FAAD, [FAAD2 AAC decoder plug-in], faad, [
1362 AG_GST_CHECK_LIBHEADER(FAAD, faad, NeAACDecOpen, $LIBM, neaacdec.h, [
1363 AC_COMPILE_IFELSE([AC_LANG_PROGRAM([[#include <faad.h>]], [[
1364 #if !defined(FAAD2_VERSION) || !defined(FAAD_FMT_DOUBLE)
1366 #elif !defined(LATM)
1367 #error Not faad2 >= 2.7
1373 AC_MSG_WARN([Found libfaad, but version not recent enough. Need faad2 >= 2.7])
1383 translit(dnm, m, l) AM_CONDITIONAL(USE_FBDEV, true)
1384 AG_GST_CHECK_FEATURE(FBDEV, [linux framebuffer], fbdevsink, [
1385 if test "x$HAVE_FBDEV" != "xyes"; then
1386 AC_CHECK_HEADER([linux/fb.h], HAVE_FBDEV=yes, HAVE_FBDEV=no)
1391 translit(dnm, m, l) AM_CONDITIONAL(USE_FDK_AAC, true)
1392 AG_GST_CHECK_FEATURE(FDK_AAC, [fdkaac plugin], fdkaac, [
1393 PKG_CHECK_MODULES(FDK_AAC, fdk-aac >= 0.1.4, [
1395 HAVE_FDK_AAC_0_1_4="yes"
1396 AC_DEFINE(HAVE_FDK_AAC_0_1_4, 1, [Define if we have fdk-aac >= 0.1.4])
1398 PKG_CHECK_MODULES(FDK_AAC, fdk-aac, HAVE_FDK_AAC="yes", HAVE_FDK_AAC="no")
1403 translit(dnm, m, l) AM_CONDITIONAL(USE_FLITE, true)
1404 AG_GST_CHECK_FEATURE(FLITE, [Flite plugin], flite, [
1405 AG_GST_CHECK_LIBHEADER(FLITE, flite, flite_init, $LIBM, flite/flite.h,
1406 FLITE_LIBS="-lflite -lflite_cmu_us_kal -lflite_usenglish -lflite_cmulex $LIBM")
1408 AC_SUBST(FLITE_CFLAGS)
1409 AC_SUBST(FLITE_LIBS)
1413 translit(dnm, m, l) AM_CONDITIONAL(USE_GSM, true)
1414 AG_GST_CHECK_FEATURE(GSM, [GSM library], gsmenc gsmdec, [
1415 AG_GST_CHECK_LIBHEADER(GSM, gsm, gsm_create, , gsm.h, GSM_LIBS="-lgsm")
1416 if test $HAVE_GSM != "yes"; then
1417 AG_GST_CHECK_LIBHEADER(GSM, gsm, gsm_create, , gsm/gsm.h, GSM_LIBS="-lgsm")
1418 if test $HAVE_GSM = "yes"; then
1419 AC_DEFINE(GSM_HEADER_IN_SUBDIR, 1, [Define if GSM header in gsm/ subdir])
1425 dnl *** fluidSynth ***
1426 translit(dnm, m, l) AM_CONDITIONAL(USE_FLUIDSYNTH, true)
1427 AG_GST_CHECK_FEATURE(FLUIDSYNTH, [fluidsynth], fluidsynth, [
1428 PKG_CHECK_MODULES(FLUIDSYNTH, fluidsynth >= 1.0, HAVE_FLUIDSYNTH="yes", [
1429 HAVE_FLUIDSYNTH="no"
1434 translit(dnm, m, l) AM_CONDITIONAL(USE_KATE, true)
1435 AG_GST_CHECK_FEATURE(KATE, [Kate], kate, [
1436 PKG_CHECK_MODULES(KATE, kate >= 0.1.7, HAVE_KATE="yes", [
1439 AC_SUBST(KATE_CFLAGS)
1441 PKG_CHECK_MODULES(TIGER, tiger >= 0.3.2,
1444 AC_DEFINE(HAVE_TIGER, 1, [Define if libtiger is available])
1450 AM_CONDITIONAL(USE_TIGER, test "x$HAVE_TIGER" = "xyes")
1451 AC_SUBST(TIGER_CFLAGS)
1452 AC_SUBST(TIGER_LIBS)
1453 ],,,[AM_CONDITIONAL(USE_TIGER, false)])
1456 translit(dnm, m, l) AM_CONDITIONAL(USE_KMS, true)
1457 AG_GST_CHECK_FEATURE(KMS, [drm/kms libraries], kms, [
1458 AG_GST_PKG_CHECK_MODULES(GST_ALLOCATORS, gstreamer-allocators-1.0)
1459 PKG_CHECK_MODULES([KMS_DRM], [libdrm >= 2.4.55], HAVE_KMS=yes, HAVE_KMS=no)
1463 translit(dnm, m, l) AM_CONDITIONAL(USE_LADSPA, true)
1464 AG_GST_CHECK_FEATURE(LADSPA, [ladspa], ladspa, [
1465 AC_CHECK_HEADER(ladspa.h, HAVE_LADSPA="yes", HAVE_LADSPA="no")
1467 PKG_CHECK_MODULES(LRDF, lrdf, HAVE_LRDF=yes, HAVE_LRDF=no)
1468 if test $HAVE_LRDF = "yes"; then
1469 AC_DEFINE(HAVE_LRDF, 1, [Define if we have liblrdf])
1472 AC_SUBST(LRDF_CFLAGS)
1476 #translit(dnm, m, l) AM_CONDITIONAL(USE_LCMS2, true)
1477 AG_GST_CHECK_FEATURE(LCMS2, [LCMS colormanagement plugin], lcms2, [
1478 PKG_CHECK_MODULES(LCMS2, lcms2 >= 2.7, HAVE_LCMS2="yes", [
1481 AC_SUBST(LCMS2_LIBS)
1485 translit(dnm, m, l) AM_CONDITIONAL(USE_LV2, true)
1486 AG_GST_CHECK_FEATURE(LV2, [lv2], lv2, [
1487 PKG_CHECK_MODULES(LILV, lilv-0 >= 0.22, [
1489 HAVE_LILV_0_22="yes"
1490 AC_DEFINE(HAVE_LILV_0_22, 1, [Define if we have liblilv >= 0.22])
1492 PKG_CHECK_MODULES(LILV, lilv-0 >= 0.16, HAVE_LV2="yes", HAVE_LV2="no")
1494 AC_SUBST(LILV_CFLAGS)
1498 dnl *** libde265 ***
1499 translit(dnm, m, l) AM_CONDITIONAL(USE_LIBDE265, true)
1500 AG_GST_CHECK_FEATURE(LIBDE265, [libde265 HEVC/H.265 decoder], libde265, [
1501 PKG_CHECK_MODULES(LIBDE265, libde265 >= 0.9, HAVE_LIBDE265="yes", HAVE_LIBDE265="no")
1502 AC_SUBST(LIBDE265_CFLAGS)
1503 AC_SUBST(LIBDE265_LIBS)
1507 translit(dnm, m, l) AM_CONDITIONAL(USE_LIBMMS, true)
1508 AG_GST_CHECK_FEATURE(LIBMMS, [mms protocol library], libmms, [
1509 dnl check with pkg-config first
1510 PKG_CHECK_MODULES(LIBMMS, libmms >= 0.4, HAVE_LIBMMS="yes", [
1514 AC_SUBST(LIBMMS_LIBS)
1517 translit(dnm, m, l) AM_CONDITIONAL(USE_SRT, true)
1518 AG_GST_CHECK_FEATURE(SRT, [srt library], srt, [
1519 PKG_CHECK_MODULES(SRT, libsrt, HAVE_SRT="yes",
1520 AG_GST_CHECK_LIBHEADER(SRT, srt, srt_startup, , srt/srt.h, SRT_LIBS="-lsrt")
1523 AC_SUBST(SRT_CFLAGS)
1527 translit(dnm, m, l) AM_CONDITIONAL(USE_SRTP, true)
1528 AG_GST_CHECK_FEATURE(SRTP, [srtp library], srtp, [
1529 PKG_CHECK_MODULES(SRTP, libsrtp, HAVE_SRTP="yes",
1530 AG_GST_CHECK_LIBHEADER(SRTP, srtp, srtp_init, , srtp/srtp.h, SRTP_LIBS="-lsrtp")
1533 AC_SUBST(SRTP_CFLAGS)
1537 translit(dnm, m, l) AM_CONDITIONAL(USE_DTLS, true)
1538 AG_GST_CHECK_FEATURE(DTLS, [DTLS plugin], dtls, [
1539 PKG_CHECK_MODULES(DTLS, [ openssl >= 1.0.1 libcrypto ], [
1541 AC_SUBST(DTLS_CFLAGS)
1549 translit(dnm, m, l) AM_CONDITIONAL(USE_TTML, true)
1550 AG_GST_CHECK_FEATURE(TTML, [TTML plugin], ttml, [
1551 PKG_CHECK_MODULES(TTML, [ libxml-2.0 >= 2.9.2 pango cairo pangocairo ], [
1559 translit(dnm, m, l) AM_CONDITIONAL(USE_MODPLUG, true)
1560 AG_GST_CHECK_FEATURE(MODPLUG, modplug, modplug, [
1561 if test "x$HAVE_CXX" != "xyes"; then
1562 AC_MSG_WARN([Not compiling modplug plugin as it requires a C++ compiler])
1565 PKG_CHECK_MODULES(MODPLUG, libmodplug, HAVE_MODPLUG="yes", HAVE_MODPLUG="no")
1567 AC_SUBST(MODPLUG_CFLAGS)
1568 AC_SUBST(MODPLUG_LIBS)
1571 dnl *** mjpegtools version info ***
1572 dnl some may prefer older version (given quirks above)
1573 dnl hm, no version info seems available within mjpegtools headers
1574 dnl and API really moves along
1576 PKG_CHECK_EXISTS(mjpegtools >= 1.6.1.93 mjpegtools < 1.8.0, [
1577 mjpegtools_api=10601
1579 PKG_CHECK_EXISTS(mjpegtools >= 1.8.0 mjpegtools < 1.9.0, [
1580 mjpegtools_api=10800
1582 PKG_CHECK_EXISTS(mjpegtools >= 2.0.0, [
1583 mjpegtools_api=20000
1585 PKG_CHECK_MODULES(MJPEG, mjpegtools >= 1.9.0 mjpegtools < 2.0.0, [
1586 dnl logging API changed in release candidates
1587 OLD_CFLAGS="$CFLAGS"
1589 CFLAGS="$MJPEG_CFLAGS"
1590 LIBS="$LIBS $MJPEG_LIBS -lmjpegutils $LIBM $PTHREAD_LIBS"
1591 AC_CHECK_FUNC(mjpeg_loglev_t, [
1592 mjpegtools_api=10903
1594 mjpegtools_api=10900
1596 CFLAGS="$OLD_CFLAGS"
1604 AC_DEFINE_UNQUOTED(GST_MJPEGTOOLS_API, $mjpegtools_api,
1605 [mjpegtools API evolution])
1607 dnl *** mpeg2enc ***
1608 translit(dnm, m, l) AM_CONDITIONAL(USE_MPEG2ENC, true)
1609 AG_GST_CHECK_FEATURE(MPEG2ENC, [mpeg2enc], mpeg2enc, [
1611 dnl we require a c++ compiler for this one
1612 if [ test x$HAVE_CXX = xyes ]; then
1613 dnl libmpeg2enc was first included in mjpegtools-1.6.2-rc3 (1.6.1.92)
1614 dnl since many distros include mjpegtools specifically without mplex
1615 dnl and mpeg2enc, we check for mpeg2enc on its own, too.
1616 PKG_CHECK_MODULES(MPEG2ENC, mjpegtools >= 1.6.1.93, [
1617 dnl HACK because mpeg2enc 1.8.0 header files have a spurious 'include config.h'
1619 dnl switch over to c++ to test things
1621 OLD_CPPFLAGS="$CPPFLAGS"
1623 CPPFLAGS_GOOD="$CPPFLAGS $MPEG2ENC_CFLAGS"
1624 CPPFLAGS="$CPPFLAGS_GOOD -I."
1626 mpeg2enc_headers_ok=no
1627 AC_CHECK_HEADER([mpeg2encoder.hh], [
1628 MPEG2ENC_LIBS="$MPEG2ENC_LIBS -lmpeg2encpp $LIBM $PTHREAD_LIBS"
1630 LIBS="$LIBS $MPEG2ENC_LIBS"
1631 AC_MSG_CHECKING([for valid mpeg2enc objects])
1632 AC_RUN_IFELSE([AC_LANG_SOURCE([[
1633 #include <mpeg2encoder.hh>
1634 #include <mpeg2encoptions.hh>
1640 MPEG2EncOptions *options = new MPEG2EncOptions ();
1641 MPEG2Encoder *encoder = new MPEG2Encoder (*options);
1646 dnl so far so good, let's check more things:
1647 dnl mjpegtools-1.8.0 does not install the required
1648 dnl mpeg2syntaxcodes.h header by default, and a new release
1649 dnl is not in sight, so check for this oversight in case
1650 dnl distros or folks have fixed this themselves
1651 if test "$mjpegtools_api" -ge "10800"; then
1652 AC_CHECK_HEADER([mpeg2syntaxcodes.h], [
1653 mpeg2enc_headers_ok=yes
1655 mpeg2enc_headers_ok=no
1658 mpeg2enc_headers_ok=yes
1660 if test "x$mpeg2enc_headers_ok" = "xyes"; then
1663 CPPFLAGS="$CPPFLAGS_GOOD"
1664 AC_SUBST(MPEG2ENC_CFLAGS)
1665 AC_SUBST(MPEG2ENC_LIBS)
1672 CPPFLAGS="$OLD_CPPFLAGS"
1681 translit(dnm, m, l) AM_CONDITIONAL(USE_MPLEX, true)
1682 AG_GST_CHECK_FEATURE(MPLEX, [mplex], mplex, [
1684 dnl we require a c++ compiler for this one
1685 if [ test x$HAVE_CXX = xyes ]; then
1686 dnl libmplex was first included in mjpegtools-1.6.2-rc4 (1.6.1.93)
1687 dnl since many distros include mjpegtools specifically without mplex
1688 dnl and mpeg2enc, we check for mplex on its own, too.
1689 dnl libmplex < 1.9rc? has fuzzy ABI, valgrind and other problems
1690 PKG_CHECK_MODULES(MPLEX, mjpegtools >= 1.9.0, [
1691 dnl HACK because mplex 2.0.0 header files have a spurious 'include config.h'
1693 dnl switch over to c++ to test things
1695 OLD_CPPFLAGS="$CPPFLAGS"
1697 CPPFLAGS_GOOD="$CPPFLAGS $MPLEX_CFLAGS"
1698 CPPFLAGS="$CPPFLAGS_GOOD -I."
1699 AC_CHECK_HEADER(interact.hpp, [
1700 MPLEX_LIBS="$MPLEX_LIBS -lmplex2 $LIBM"
1702 LIBS="$LIBS $MPLEX_LIBS"
1703 OLD_LDFLAGS="$LDFLAGS"
1704 LDFLAGS="$LDFLAGS $MPLEX_LDFLAGS"
1705 dnl older libmplex uses off_t SegmentSize (), which leads to fuzzy ABI;
1706 dnl don't want this here
1707 AC_MSG_CHECKING([for valid mplex objects])
1708 AC_RUN_IFELSE([AC_LANG_SOURCE([[
1710 #include <interact.hpp>
1711 #include <outputstrm.hpp>
1712 #include <multiplexor.hpp>
1717 class TestOutputStream : public OutputStream {
1719 TestOutputStream () : OutputStream () { }
1720 void Write (uint8_t *a, unsigned int b) { }
1721 void NextSegment () { }
1722 uint64_t SegmentSize () { }
1726 MultiplexJob *job = new MultiplexJob ();
1727 vector<IBitStream *> inputs;
1728 job->SetupInputStreams (inputs);
1729 TestOutputStream *out = new TestOutputStream ();
1730 Multiplexor *mux = new Multiplexor(*job, *out, NULL);
1735 CPPFLAGS="$CPPFLAGS_GOOD"
1736 AC_SUBST(MPLEX_CFLAGS)
1737 AC_SUBST(MPLEX_LIBS)
1738 AC_SUBST(MPLEX_LDFLAGS)
1740 ],[AC_MSG_RESULT(no)],[])
1742 LDFLAGS="$OLD_LDFLAGS"
1744 CPPFLAGS="$OLD_CPPFLAGS"
1750 dnl *** musepack ***
1751 translit(dnm, m, l) AM_CONDITIONAL(USE_MUSEPACK, true)
1752 AG_GST_CHECK_FEATURE(MUSEPACK, [musepackdec], musepack, [
1753 AC_CHECK_HEADER([mpc/mpcdec.h], [
1755 MUSEPACK_LIBS="-lmpcdec"
1756 AC_SUBST(MUSEPACK_LIBS)
1757 ], [AC_CHECK_HEADER([mpcdec/mpcdec.h], [
1759 MUSEPACK_LIBS="-lmpcdec"
1760 AC_DEFINE(MPC_IS_OLD_API, 1, [Define if the old MusePack API is used])
1761 AC_SUBST(MUSEPACK_LIBS)
1762 ], [HAVE_MUSEPACK="no"])])
1766 translit(dnm, m, l) AM_CONDITIONAL(USE_NEON, true)
1767 AG_GST_CHECK_FEATURE(NEON, [neon http client plugins], neonhttpsrc, [
1768 PKG_CHECK_MODULES(NEON, neon >= 0.27.0 neon <= 0.30.99, HAVE_NEON="yes", [
1771 AC_SUBST(NEON_CFLAGS)
1776 translit(dnm, m, l) AM_CONDITIONAL(USE_OFA, true)
1777 AG_GST_CHECK_FEATURE(OFA, [ofa plugins], ofa, [
1778 PKG_CHECK_MODULES(OFA, libofa >= 0.9.3, HAVE_OFA="yes", [
1781 AC_SUBST(OFA_CFLAGS)
1786 translit(dnm, m, l) AM_CONDITIONAL(USE_OPENAL, true)
1787 AG_GST_CHECK_FEATURE(OPENAL, [OpenAL plugin], openal, [
1788 PKG_CHECK_MODULES(OPENAL, openal >= 1.14, HAVE_OPENAL="yes", [
1791 AC_SUBST(OPENAL_CFLAGS)
1792 AC_SUBST(OPENAL_LIBS)
1796 translit(dnm, m, l) AM_CONDITIONAL(USE_OPENCV, true)
1797 AG_GST_CHECK_FEATURE(OPENCV, [opencv plugins], opencv, [
1798 dnl we specify a max. version too because we set CV_NO_BACKWARD_COMPATIBILITY
1799 dnl and don't want the build to break when a new opencv version comes out.
1800 dnl Need to adjust this upwards once we know that our code compiles fine with
1801 dnl a new version and the no-backward-compatibility define. (There doesn't
1802 dnl seem to be a switch to suppress the warnings the cvcompat.h header
1804 PKG_CHECK_MODULES(OPENCV, opencv >= 2.3.0 opencv < 3.5.0 , [
1807 OLD_CPPFLAGS=$CPPFLAGS
1808 CPPFLAGS=$OPENCV_CFLAGS
1809 something_not_found=no
1810 AC_CHECK_HEADERS([opencv2/core/core_c.h \
1811 opencv2/core/version.hpp \
1812 opencv2/highgui/highgui_c.h \
1813 opencv2/imgproc/imgproc.hpp \
1814 opencv2/imgproc/imgproc_c.h \
1815 opencv2/objdetect/objdetect.hpp \
1816 opencv2/video/background_segm.hpp], [], [something_not_found=yes])
1818 dnl Only required for OpenCV >= 3, we have compat code for older versions
1819 PKG_CHECK_MODULES(OPENCV_3, opencv >= 3, [
1820 dnl check opencv_contrib headers (not always present in opencv distributions)
1821 AC_CHECK_HEADERS([opencv2/bgsegm.hpp], [], [something_not_found=yes])],
1822 [NOT_A_PROBLEM=yes])
1824 CPPFLAGS=$OLD_CPPFLAGS
1827 if test $something_not_found = "yes"; then
1828 AC_MSG_RESULT([not all opencv2 headers were found])
1836 OPENCV_PREFIX="`$PKG_CONFIG --variable=prefix opencv`"
1837 AC_DEFINE_UNQUOTED(OPENCV_PREFIX, "$OPENCV_PREFIX", [opencv install prefix])
1838 AC_SUBST(OPENCV_PREFIX)
1839 AC_SUBST(OPENCV_CFLAGS)
1840 AC_SUBST(OPENCV_LIBS)
1841 dnl the OpenCV prefix is used at runtime for some object properties, and also
1842 dnl used here to detect which directory is the correct one. For the second
1843 dnl case, make sure the right sysroot is used, ensuring correct behavior
1844 dnl during cross compilation.
1845 if test -d "$PKG_CONFIG_SYSROOT_DIR/$OPENCV_PREFIX/share/opencv/"; then
1846 AC_DEFINE_UNQUOTED(OPENCV_PATH_NAME, ["opencv"], [OpenCV path name])
1848 AC_DEFINE_UNQUOTED(OPENCV_PATH_NAME, ["OpenCV"], [OpenCV path name])
1853 translit(dnm, m, l) AM_CONDITIONAL(USE_OPENEXR, true)
1854 AG_GST_CHECK_FEATURE(OPENEXR, [openexr library], openexr, [
1855 AG_GST_PKG_CHECK_MODULES(OPENEXR, OpenEXR)
1858 dnl *** openh264 ***
1859 translit(dnm, m, l) AM_CONDITIONAL(USE_OPENH264, true)
1860 AG_GST_CHECK_FEATURE(OPENH264, [openh264 library], openh264, [
1861 AG_GST_PKG_CHECK_MODULES(OPENH264, openh264 >= 1.3.0)
1864 dnl *** OpenJPEG ***
1865 translit(dnm, m, l) AM_CONDITIONAL(USE_OPENJPEG, true)
1866 AG_GST_CHECK_FEATURE(OPENJPEG, [openjpeg library], openjpeg, [
1868 AG_GST_PKG_CHECK_MODULES(OPENJPEG, libopenjp2 >= 2.1)
1869 if test x"$HAVE_OPENJPEG" != x"yes"; then
1872 PKG_CHECK_MODULES(OPENJPEG, libopenjpeg1,
1873 HAVE_OPENJPEG="yes",
1874 AG_GST_CHECK_LIBHEADER(OPENJPEG, openjpeg, opj_version, , openjpeg.h, OPENJPEG_LIBS="-lopenjpeg")
1876 if test x"$HAVE_OPENJPEG" = x"yes"; then
1877 AC_DEFINE([HAVE_OPENJPEG_1], 1, [Define if OpenJPEG 1 is used])
1880 AC_SUBST(OPENJPEG_CFLAGS)
1881 AC_SUBST(OPENJPEG_LIBS)
1885 translit(dnm, m, l) AM_CONDITIONAL(USE_OPENMPT, true)
1886 AG_GST_CHECK_FEATURE(OPENMPT, openmpt, openmpt, [
1887 PKG_CHECK_MODULES(OPENMPT, libopenmpt, HAVE_OPENMPT="yes", HAVE_OPENMPT="no")
1888 AC_SUBST(OPENMPT_CFLAGS)
1889 AC_SUBST(OPENMPT_LIBS)
1893 translit(dnm, m, l) AM_CONDITIONAL(USE_OPENNI2, true)
1894 AG_GST_CHECK_FEATURE(OPENNI2, [openni2 library], openni2, [
1895 PKG_CHECK_MODULES(OPENNI2, libopenni2 >= 0.26, HAVE_OPENNI2="yes", [ HAVE_OPENNI2="no" ] )
1896 AC_SUBST(OPENNI2_CFLAGS)
1897 AC_SUBST(OPENNI2_LIBS)
1901 translit(dnm, m, l) AM_CONDITIONAL(USE_OPUS, true)
1902 AG_GST_CHECK_FEATURE(OPUS, [opus], opus, [
1903 PKG_CHECK_MODULES(OPUS, opus >= 0.9.4, [
1904 AC_DEFINE([HAVE_OPUS], 1, [Define if Opus >= 0.9.4 is installed])
1909 AC_SUBST(OPUS_CFLAGS)
1914 translit(dnm, m, l) AM_CONDITIONAL(USE_RSVG, true)
1915 AG_GST_CHECK_FEATURE(RSVG, [rsvg decoder], rsvg, [
1916 AG_GST_PKG_CHECK_MODULES(RSVG, librsvg-2.0 >= 2.36.2)
1920 translit(dnm, m, l) AM_CONDITIONAL(USE_GL, true)
1921 AG_GST_CHECK_FEATURE(GL, [gl elements], gl, [
1922 if test "x$HAVE_GST_GL" = "xyes"; then
1927 dnl if test x"$USE_OPENGL" = x"yes" -o x"$USE_GLES2" = x"yes"; then
1932 AM_CONDITIONAL(USE_OPENGL, false)
1936 translit(dnm, m, l) AM_CONDITIONAL(USE_GTK3, true)
1937 AG_GST_CHECK_FEATURE(GTK3, [Gtk+ elements], gtk, [
1938 PKG_CHECK_MODULES(GTK3, gtk+-3.0, [
1939 AC_DEFINE([HAVE_GTK3], 1, [Define if Gtk+ 3.0 is installed])
1944 PKG_CHECK_MODULES(GTK3_GL, gtk+-3.0 >= 3.15.0, [
1946 if test "x$GST_GL_HAVE_WINDOW_X11" = "x1" -a "x$GST_GL_HAVE_PLATFORM_GLX" = "x1"; then
1947 PKG_CHECK_MODULES(GTK3_X11, gtk+-x11-3.0, [
1948 GTK3_CFLAGS="$GTK3_CFLAGS $GTK3_X11_CFLAGS"
1949 GTK3_LIBS="$GTK3_LIBS $GTK3_X11_LIBS"
1951 ], [AC_MSG_NOTICE([Could not find Gtk X11 integration])])
1953 if test "x$GST_GL_HAVE_WINDOW_WAYLAND" = "x1" -a "x$GST_GL_HAVE_PLATFORM_EGL" = "x1"; then
1954 PKG_CHECK_MODULES(GTK3_WAYLAND, gtk+-wayland-3.0, [
1955 GTK3_CFLAGS="$GTK3_CFLAGS $GTK3_WAYLAND_CFLAGS"
1956 GTK3_LIBS="$GTK3_LIBS $GTK3_WAYLAND_LIBS"
1958 ], [AC_MSG_NOTICE([Could not find Gtk Wayland integration])])
1960 if test "x$GDK_WINDOWING" = "xyes"; then
1961 AC_DEFINE([HAVE_GTK3_GL], 1, [Define if Gtk+ 3.0 GL is installed])
1968 AM_CONDITIONAL(USE_GTK3_GL, test "x$HAVE_GTK3_GL" = "xyes")
1971 translit(dnm, m, l) AM_CONDITIONAL(USE_QT, true)
1972 AG_GST_CHECK_FEATURE(QT, [Qt elements], qt, [
1973 PKG_CHECK_MODULES(QT, Qt5Core Qt5Gui Qt5Qml Qt5Quick >= 5.4.0, [
1974 QT_PATH=`$PKG_CONFIG --variable=exec_prefix Qt5Core`
1975 QT_HOST_PATH=`$PKG_CONFIG --variable=host_bins Qt5Core`
1977 AS_HELP_STRING([--with-moc], [Set location of qt moc tool]),
1979 AC_PATH_PROGS(MOC, [moc-qt5 moc], [moc], ["${QT_HOST_PATH}" "${QT_PATH}/bin"])
1981 AS_HELP_STRING([--with-rcc], [Set location of qt rcc tool]),
1983 AC_PATH_PROGS(RCC, [rcc-qt5 rcc], [rcc], ["${QT_HOST_PATH}" "${QT_PATH}/bin"])
1985 AS_HELP_STRING([--with-uic], [Set location of qt uic tool]),
1987 AC_PATH_PROGS(UIC, [uic-qt5 uic], [uic], ["${QT_HOST_PATH}" "${QT_PATH}/bin"])
1988 if test "x$MOC" = "x" || test "x$UIC" = "x" || test "x$RCC" = "x"; then
1989 AC_MSG_WARN([One of the required qt build programs was not found])
1993 HAVE_QT_WINDOWING="no"
1994 QT_VERSION="`$PKG_CONFIG --define-prefix --modversion Qt5Core`"
1995 QPA_INCLUDE_PATH=`$PKG_CONFIG --variable=includedir Qt5Core`/QtGui/${QT_VERSION}/QtGui
1996 AS_IF([test -f "$PKG_CONFIG_SYSROOT_DIR/$QPA_INCLUDE_PATH/qpa/qplatformnativeinterface.h"], [
1997 QT_CFLAGS="$QT_CFLAGS -I$PKG_CONFIG_SYSROOT_DIR/$QPA_INCLUDE_PATH"
1998 HAVE_QT_QPA_HEADER="yes"
1999 ], [AC_MSG_NOTICE([Cannot find QPA])])
2000 if test "x$GST_GL_HAVE_WINDOW_X11" = "x1" -a "x$GST_GL_HAVE_PLATFORM_GLX" = "x1" || test "x$GST_GL_HAVE_WINDOW_X11" = "x1" -a "x$GST_GL_HAVE_PLATFORM_EGL" = "x1"; then
2001 PKG_CHECK_MODULES(QT_X11, Qt5X11Extras, [
2002 AC_DEFINE([HAVE_QT_X11], [], [Define if Qt X11 integration is installed])
2003 QT_CFLAGS="$QT_CFLAGS $QT_X11_CFLAGS"
2004 QT_LIBS="$QT_LIBS $QT_X11_LIBS"
2005 HAVE_QT_WINDOWING="yes"
2006 ], [AC_MSG_NOTICE([Could not find Qt X11 integration])])
2008 if test "x$GST_GL_HAVE_WINDOW_WAYLAND" = "x1" -a "x$GST_GL_HAVE_PLATFORM_EGL" = "x1" -a "x$HAVE_QT_QPA_HEADER" = "xyes"; then
2009 PKG_CHECK_MODULES(QT_WAYLAND, Qt5WaylandClient, [
2010 AC_DEFINE([HAVE_QT_WAYLAND], [],
2011 [Define if Qt Wayland integration is installed])
2012 QT_CFLAGS="$QT_CFLAGS $QT_WAYLAND_CFLAGS"
2013 QT_LIBS="$QT_LIBS $QT_WAYLAND_LIBS"
2014 HAVE_QT_WINDOWING="yes"
2015 ], [AC_MSG_NOTICE([Could not find Qt Wayland integration])])
2017 if test "x$GST_GL_HAVE_PLATFORM_EGL" = "x1"; then
2018 if test "x$GST_GL_HAVE_WINDOW_ANDROID" = "x1"; then
2019 PKG_CHECK_MODULES(QT_ANDROID, Qt5AndroidExtras, [
2020 # c++ on android requires a standard library and there are multiple
2021 # choices. cerbero provides a pkg-config file the describes a choice
2022 # so try to use that. Outside cerbero one has to pass these flags
2023 # manually for the library one is using
2024 PKG_CHECK_MODULES(GNUSTL, gnustl, [
2025 QT_CFLAGS="$QT_CFLAGS $GNUSTL_CFLAGS"
2026 QT_LIBS="$QT_LIBS $GNUSTL_LIBS"
2028 AC_MSG_NOTICE([Could not find Standard C++ library])])
2029 AC_DEFINE([HAVE_QT_EGLFS], [],
2030 [Define if Qt eglfs integration is installed])
2031 QT_CFLAGS="$QT_CFLAGS $QT_ANDROID_CFLAGS"
2032 QT_LIBS="$QT_LIBS $QT_ANDROID_LIBS"
2033 HAVE_QT_WINDOWING="yes"
2034 ], [AC_MSG_NOTICE([Could not find Qt Android integration])])
2036 AC_DEFINE([HAVE_QT_EGLFS], [],
2037 [Define if Qt eglfs integration is installed])
2038 HAVE_QT_WINDOWING="yes"
2041 if test "x$GST_GL_HAVE_WINDOW_COCOA" = "x1" -a "x$GST_GL_HAVE_PLATFORM_CGL" = "x1"; then
2042 PKG_CHECK_MODULES(QT_MAC, Qt5MacExtras, [
2043 AC_DEFINE([HAVE_QT_MAC], [],
2044 [Define if Qt Mac integration is installed])
2045 QT_LIBDIR=`$PKG_CONFIG --variable=libdir Qt5Core`
2046 QT_CFLAGS="$QT_CFLAGS $QT_MAC_CFLAGS -F$QT_LIBDIR -framework QtCore -framework QtGui -framework QtQuick -framework QtQml -framework QtMacExtras"
2047 QT_LIBS="$QT_LIBS $QT_MAC_LIBS"
2048 HAVE_QT_WINDOWING="yes"
2049 ], [AC_MSG_NOTICE([Could not find Qt Mac integration])])
2051 if test "x$GST_GL_HAVE_WINDOW_EAGL" = "x1" -a "x$GST_GL_HAVE_PLATFORM_EAGL" = "x1"; then
2052 if test "x$HAVE_IOS" = "xyes"; then
2053 # iOS doesn't have its own extras package so if we have the core
2054 # modules we are good to go
2055 AC_DEFINE([HAVE_QT_IOS], [],
2056 [Define if Qt iOS integration is installed])
2057 HAVE_QT_WINDOWING="yes"
2060 if test "x$HAVE_QT_WINDOWING" = "xno"; then
2061 AC_MSG_WARN([Could not find any Qt Windowing integration])
2064 AC_SUBST([QT_CFLAGS])
2073 translit(dnm, m, l) AM_CONDITIONAL(USE_VULKAN, true)
2074 AG_GST_CHECK_FEATURE(VULKAN, [Vulkan elements], vulkan, [
2075 AC_CHECK_HEADER(vulkan/vulkan.h, [
2076 AC_CHECK_LIB(vulkan, vkCreateDevice, [
2077 VULKAN_LIBS="-lvulkan"
2078 AC_SUBST(VULKAN_LIBS)
2079 if test "x$GST_VULKAN_HAVE_WINDOW_XCB" = "x1"; then
2082 if test "x$GST_VULKAN_HAVE_WINDOW_WAYLAND" = "x1"; then
2089 dnl *** teletextdec ***
2090 translit(dnm, m, l) AM_CONDITIONAL(USE_TELETEXTDEC, true)
2091 AG_GST_CHECK_FEATURE(TELETEXTDEC, [Teletext decoder], teletextdec, [
2092 AG_GST_PKG_CHECK_MODULES(TELETEXTDEC, zvbi-0.2)
2095 dnl *** wildmidi ***
2096 translit(dnm, m, l) AM_CONDITIONAL(USE_WILDMIDI, true)
2097 AG_GST_CHECK_FEATURE(WILDMIDI, [wildmidi midi soft synth plugin], wildmidi, [
2098 AG_GST_CHECK_LIBHEADER(WILDMIDI, WildMidi,
2101 WILDMIDI_LIBS="-lWildMidi")
2104 if test "x$HAVE_WILDMIDI" = "xyes"; then
2105 AC_MSG_CHECKING([for wildmidi >= 4.0])
2106 AC_COMPILE_IFELSE([AC_LANG_PROGRAM([[#include <wildmidi_lib.h>]], [[
2107 #if LIBWILDMIDI_VER_MAJOR == 0 && LIBWILDMIDI_VER_MINOR < 4
2108 #error "wildmidi too old"
2110 ]])], [ AC_MSG_RESULT(yes)
2113 WILDMIDI_LIBS=-lWildMidi
2114 ], [ AC_MSG_RESULT(no)
2118 AC_MSG_WARN([WildMidi library or development headers not found])
2120 AC_SUBST(WILDMIDI_CFLAGS)
2121 AC_SUBST(WILDMIDI_LIBS)
2124 dnl **** Smooth Streaming ****
2125 translit(dnm, m, l) AM_CONDITIONAL(USE_SMOOTHSTREAMING, true)
2126 AG_GST_CHECK_FEATURE(SMOOTHSTREAMING, [Smooth Streaming plug-in], smoothstreaming, [
2127 PKG_CHECK_MODULES(LIBXML2, libxml-2.0 >= 2.4,
2129 HAVE_SMOOTHSTREAMING="yes"],
2131 HAVE_SMOOTHSTREAMING="no"])
2132 AC_SUBST(LIBXML2_CFLAGS)
2133 AC_SUBST(LIBXML2_LIBS)
2137 translit(dnm, m, l) AM_CONDITIONAL(USE_SNDFILE, true)
2138 AG_GST_CHECK_FEATURE(SNDFILE, [sndfile plug-in], sfdec sfenc, [
2139 PKG_CHECK_MODULES(SNDFILE, sndfile >= 1.0.16, HAVE_SNDFILE="yes", HAVE_SNDFILE="no")
2140 AC_SUBST(SNDFILE_CFLAGS)
2141 AC_SUBST(SNDFILE_LIBS)
2144 dnl *** soundtouch ***
2145 translit(dnm, m, l) AM_CONDITIONAL(USE_SOUNDTOUCH, true)
2146 AG_GST_CHECK_FEATURE(SOUNDTOUCH, [soundtouch plug-in], soundtouch, [
2147 dnl We only need -lBPM on soundtouch < 1.4
2148 dnl We check for libSoundTouch since Debian used it before upstream
2149 dnl added a pkgconfig file.
2150 HAVE_SOUNDTOUCH_1_4=yes
2151 PKG_CHECK_MODULES(SOUNDTOUCH, soundtouch,
2152 [HAVE_SOUNDTOUCH=yes],
2153 [PKG_CHECK_MODULES(SOUNDTOUCH, soundtouch-1.4,
2154 [HAVE_SOUNDTOUCH=yes],
2155 [PKG_CHECK_MODULES(SOUNDTOUCH, soundtouch-1.0,
2156 [HAVE_SOUNDTOUCH=yes
2157 HAVE_SOUNDTOUCH_1_4=no
2158 SOUNDTOUCH_LIBS="$SOUNDTOUCH_LIBS -lBPM"],
2159 [PKG_CHECK_MODULES(SOUNDTOUCH, libSoundTouch >= 1.4,
2160 [HAVE_SOUNDTOUCH=yes],
2161 [PKG_CHECK_MODULES(SOUNDTOUCH, libSoundTouch,
2162 [HAVE_SOUNDTOUCH=yes
2163 HAVE_SOUNDTOUCH_1_4=no
2164 SOUNDTOUCH_LIBS="$SOUNDTOUCH_LIBS -lBPM"],
2165 HAVE_SOUNDTOUCH=no)])])])])
2166 AC_SUBST(SOUNDTOUCH_CFLAGS)
2167 AC_SUBST(SOUNDTOUCH_LIBS)
2168 if test "x$HAVE_CXX" != "xyes"; then
2169 USE_SOUNDTOUCH=false
2170 AC_MSG_NOTICE([Not building soundtouch plugin: no C++ compiler found])
2172 if test "x$HAVE_SOUNDTOUCH" = "xyes" -a "x$HAVE_SOUNDTOUCH_1_4" = "xyes"; then
2173 AC_DEFINE([HAVE_SOUNDTOUCH_1_4], [1],
2174 [Defined if the available libSoundTouch is >= 1.4])
2179 translit(dnm, m, l) AM_CONDITIONAL(USE_SPC, true)
2180 AG_GST_CHECK_FEATURE(SPC, [spc decoder], spc, [
2181 AC_CHECK_HEADER(openspc.h, [
2182 AC_CHECK_LIB(openspc, OSPC_Init, [
2183 SPC_LIBS="-lopenspc"
2195 translit(dnm, m, l) AM_CONDITIONAL(USE_GME, true)
2196 AG_GST_CHECK_FEATURE(GME, [gme decoder], gme, [
2197 AC_CHECK_HEADER(gme/gme.h, [
2198 AC_CHECK_LIB(gme, gme_new_emu, [
2209 if test "x$HAVE_GME" = "xyes"; then
2210 AC_CHECK_LIB(gme, gme_enable_accuracy, [
2211 AC_DEFINE(HAVE_LIBGME_ACCURACY, 1, [Define if gme 0.5.6 or newer is available])
2217 translit(dnm, m, l) AM_CONDITIONAL(USE_DVB, true)
2218 AG_GST_CHECK_FEATURE(DVB, [DVB Source], dvb, [
2219 AC_MSG_CHECKING([Checking for up to date dvb installation])
2220 AC_CHECK_HEADER(linux/dvb/version.h, [
2221 AC_MSG_CHECKING([for up-to-date dvb API])
2222 AC_COMPILE_IFELSE([AC_LANG_PROGRAM([[#include <linux/dvb/version.h>]], [[
2223 #if DVB_API_VERSION < 5 || (DVB_API_VERSION == 5 && DVB_API_VERSION_MINOR <= 4)
2224 #error "Incompatible dvb API"
2226 ]])], [ AC_MSG_RESULT(yes)
2228 ], [ AC_MSG_RESULT(no)
2235 translit(dnm, m, l) AM_CONDITIONAL(USE_ACM, true)
2236 AG_GST_CHECK_FEATURE(ACM, [Windows ACM library], acm, [
2237 AC_MSG_CHECKING([Checking for ACM support])
2238 AC_CHECK_HEADERS([windows.h msacm.h],
2240 AC_SUBST(ACMENC_CFLAGS)
2241 AC_SUBST(ACMMP3DEC_CFLAGS)
2243 [AC_INCLUDES_DEFAULT
2244 #include <windows.h>])
2248 translit(dnm, m, l) AM_CONDITIONAL(USE_VDPAU, true)
2249 AG_GST_CHECK_FEATURE(VDPAU, [VDPAU], vdpau, [
2254 PKG_CHECK_MODULES(VDPAU, vdpau, [HAVE_VDPAU="yes"],
2256 if test "$HAVE_VDPAU" = "no"; then
2257 saved_CPPFLAGS="$CPPFLAGS"
2258 AC_CHECK_HEADER([vdpau/vdpau.h], [HAVE_VDPAU_H=yes])
2260 if test -z "$HAVE_VDPAU_H"; then
2261 dnl Didn't find VDPAU header straight away.
2262 dnl Try /usr/include/nvidia. Need to clear caching vars first
2263 AC_MSG_NOTICE([VDPAU header not in standard path. Checking /usr/include/nvidia])
2264 unset ac_cv_header_vdpau_vdpau_h
2265 unset ac_cv_header_vdpau_vdpau_x11_h
2266 VDPAU_CFLAGS="-I/usr/include/nvidia"
2267 VDPAU_LIBS="-L/usr/lib/nvidia -lvdpau"
2268 CPPFLAGS="$VDPAU_CFLAGS $saved_CPPFLAGS"
2269 AC_CHECK_HEADER([vdpau/vdpau.h], [HAVE_VDPAU_H=yes])
2272 AC_CHECK_HEADER([vdpau/vdpau_x11.h], [HAVE_VDPAU_X11_H=yes])
2274 if test "x$HAVE_VDPAU_H" = "xyes" -a "x$HAVE_VDPAU_X11_H" = "xyes"; then
2275 dnl Found the headers - look for the lib
2276 AC_MSG_NOTICE([VDPAU headers found. Checking libraries])
2278 LIBS="$VDPAU_LIBS $saved_LIBS"
2279 AC_CHECK_LIB(vdpau,vdp_device_create_x11,[HAVE_VDPAU="yes"])
2285 if test "$HAVE_VDPAU" = "yes"; then
2286 AC_MSG_NOTICE([Found up to date VDPAU installation])
2287 AC_SUBST(VDPAU_CFLAGS)
2288 AC_SUBST(VDPAU_LIBS)
2293 translit(dnm, m, l) AM_CONDITIONAL(USE_SBC, true)
2294 AG_GST_CHECK_FEATURE(SBC, [SBC bluetooth audio codec], sbc, [
2295 AG_GST_PKG_CHECK_MODULES(SBC, [sbc >= 1.0])
2298 dnl *** schroedinger ***
2299 translit(dnm, m, l) AM_CONDITIONAL(USE_SCHRO, true)
2300 AG_GST_CHECK_FEATURE(SCHRO, [Schroedinger video codec], schro, [
2301 AG_GST_PKG_CHECK_MODULES(SCHRO, schroedinger-1.0 >= 1.0.10)
2305 translit(dnm, m, l) AM_CONDITIONAL(USE_ZBAR, true)
2306 AG_GST_CHECK_FEATURE(ZBAR, [ZBar barcode detector], zbar, [
2307 AG_GST_PKG_CHECK_MODULES(ZBAR, zbar >= 0.9)
2311 translit(dnm, m, l) AM_CONDITIONAL(USE_RTMP, true)
2312 AG_GST_CHECK_FEATURE(RTMP, [rtmp library], rtmp, [
2313 AG_GST_PKG_CHECK_MODULES(RTMP, librtmp)
2317 translit(dnm, m, l) AM_CONDITIONAL(USE_SPANDSP, true)
2318 AG_GST_CHECK_FEATURE(SPANDSP, [Spandsp], spandsp, [
2319 PKG_CHECK_MODULES(SPANDSP, spandsp >= 0.0.6, [
2320 HAVE_SPANDSP="yes" ], [
2324 AC_SUBST(SPANDSP_CFLAGS)
2325 AC_SUBST(SPANDSP_LIBS)
2327 dnl *** hls-crypto ***
2328 AC_ARG_WITH([hls-crypto],
2329 AS_HELP_STRING([--with-hls-crypto=auto|nettle|libgcrypt|openssl], [
2330 which cryptographic library version to compile against for hls (default: auto)
2332 AS_CASE([$with_hls_crypto],
2336 [with_hls_crypto=auto]
2342 translit(dnm, m, l) AM_CONDITIONAL(USE_HLS, true)
2343 AG_GST_CHECK_FEATURE(HLS, [http live streaming plugin], hls, [
2344 AS_CASE([$with_hls_crypto],
2346 PKG_CHECK_MODULES(NETTLE, nettle, [
2347 AC_DEFINE(HAVE_NETTLE, 1, [Define if nettle is available])
2349 ],[AC_MSG_ERROR([Could not find nettle library])])
2352 AM_PATH_LIBGCRYPT([1.2.0], [
2353 AC_DEFINE(HAVE_LIBGCRYPT, 1, [Define if libgcrypt is available])
2355 ],[AC_MSG_ERROR([Could not find libgcrypt library])])
2358 PKG_CHECK_MODULES(OPENSSL, openssl, [
2359 AC_DEFINE(HAVE_OPENSSL, 1, [Define if openssl is available])
2361 ],[AC_MSG_ERROR([Could not find openssl library])])
2364 dnl Try to find a valid crypto library
2365 PKG_CHECK_MODULES(NETTLE, nettle, [
2366 AC_DEFINE(HAVE_NETTLE, 1, [Define if nettle is available])
2369 AM_PATH_LIBGCRYPT([1.2.0], [
2370 AC_DEFINE(HAVE_LIBGCRYPT, 1, [Define if libgcrypt is available])
2373 PKG_CHECK_MODULES(OPENSSL, openssl, [
2374 AC_DEFINE(HAVE_OPENSSL, 1, [Define if openssl is available])
2385 dnl *** x265 (H.265/HEVC encoder) ***
2386 translit(dnm, m, l) AM_CONDITIONAL(USE_X265, true)
2387 AG_GST_CHECK_FEATURE(X265, [x265 plug-in], x265, [
2388 AG_GST_PKG_CHECK_MODULES(X265, x265)
2391 dnl *** WebRTC Audio Processing ***
2392 dnl Note: We test for a specific version as there is no API stability
2393 translit(dnm, m, l) AM_CONDITIONAL(USE_WEBRTCDSP, true)
2394 AG_GST_CHECK_FEATURE(WEBRTCDSP, [WebRTC Audio Processing], webrtcdsp, [
2396 AG_GST_PKG_CHECK_MODULES(WEBRTCDSP, webrtc-audio-processing >= 0.2 webrtc-audio-processing < 0.4)
2398 # On Android, C++ headers comes with the STL implementation
2399 AS_CASE(["${host}"],
2402 PKG_CHECK_MODULES(GNUSTL, gnustl, [
2403 WEBRTCDSP_CFLAGS="$WEBRTCDSP_CFLAGS $GNUSTL_CFLAGS"
2404 WEBRTCDSP_LIBS="$WEBRTCDSP_LIBS $GNUSTL_LIBS"])
2406 AC_SUBST([WEBRTCDSP_CFLAGS])
2407 AC_SUBST([WEBRTCDSP_LIBS])
2410 old_CPPFLAGS=$CPPFLAGS
2411 CPPFLAGS="-std=c++11 $CPPFLAGS $GNUSTL_CFLAGS"
2412 AC_CHECK_HEADER([vector],[],[HAVE_WEBRTCDSP=no])
2413 CPPFLAGS=$old_CPPFLAGS
2418 PKG_CHECK_MODULES(LIBLTC, ltc >= 1.1.4, HAVE_LTC=yes, HAVE_LTC=no)
2419 if test "x$HAVE_LTC" = "xyes"; then
2421 AC_DEFINE(HAVE_LTC, 1, [Use libltc])
2426 dnl not building plugins with external dependencies,
2427 dnl but we still need to set the conditionals
2429 AM_CONDITIONAL(USE_ASSRENDER, false)
2430 AM_CONDITIONAL(USE_AOM, false)
2431 AM_CONDITIONAL(USE_VOAMRWBENC, false)
2432 AM_CONDITIONAL(USE_VOAACENC, false)
2433 AM_CONDITIONAL(USE_BS2B, false)
2434 AM_CONDITIONAL(USE_BZ2, false)
2435 AM_CONDITIONAL(USE_CHROMAPRINT, false)
2436 AM_CONDITIONAL(USE_CURL, false)
2437 AM_CONDITIONAL(USE_SSH2, false)
2438 AM_CONDITIONAL(USE_DASH, false)
2439 AM_CONDITIONAL(USE_DC1394, false)
2440 AM_CONDITIONAL(USE_DECKLINK, false)
2441 AM_CONDITIONAL(DECKLINK_OSX, false)
2442 AM_CONDITIONAL(USE_DIRECTFB, false)
2443 AM_CONDITIONAL(USE_WAYLAND, false)
2444 AM_CONDITIONAL(USE_DAALA, false)
2445 AM_CONDITIONAL(USE_DTS, false)
2446 AM_CONDITIONAL(USE_EXIF, false)
2447 AM_CONDITIONAL(USE_RESINDVD, false)
2448 AM_CONDITIONAL(USE_FAAC, false)
2449 AM_CONDITIONAL(USE_FAAD, false)
2450 AM_CONDITIONAL(USE_FBDEV, false)
2451 AM_CONDITIONAL(USE_FDK_AAC, false)
2452 AM_CONDITIONAL(USE_FLITE, false)
2453 AM_CONDITIONAL(USE_FLUIDSYNTH, false)
2454 AM_CONDITIONAL(USE_GSM, false)
2455 AM_CONDITIONAL(USE_GTK3, false)
2456 AM_CONDITIONAL(USE_GTK3_GL, false)
2457 AM_CONDITIONAL(USE_HLS, false)
2458 AM_CONDITIONAL(USE_IQA, false)
2459 AM_CONDITIONAL(USE_KATE, false)
2460 AM_CONDITIONAL(USE_KMS, false)
2461 AM_CONDITIONAL(USE_TIGER, false)
2462 AM_CONDITIONAL(USE_LADSPA, false)
2463 AM_CONDITIONAL(USE_LCMS2, false)
2464 AM_CONDITIONAL(USE_LV2, false)
2465 AM_CONDITIONAL(USE_LIBDE265, false)
2466 AM_CONDITIONAL(USE_LIBMMS, false)
2467 AM_CONDITIONAL(USE_MODPLUG, false)
2468 AM_CONDITIONAL(USE_MPEG2ENC, false)
2469 AM_CONDITIONAL(USE_MPLEX, false)
2470 AM_CONDITIONAL(USE_MUSEPACK, false)
2471 AM_CONDITIONAL(USE_NEON, false)
2472 AM_CONDITIONAL(USE_OFA, false)
2473 AM_CONDITIONAL(USE_OPENAL, false)
2474 AM_CONDITIONAL(USE_OPENCV, false)
2475 AM_CONDITIONAL(USE_OPENEXR, false)
2476 AM_CONDITIONAL(USE_OPENJPEG, false)
2477 AM_CONDITIONAL(USE_OPENMPT, false)
2478 AM_CONDITIONAL(USE_OPENNI2, false)
2479 AM_CONDITIONAL(USE_OPUS, false)
2480 AM_CONDITIONAL(USE_QT, false)
2481 AM_CONDITIONAL(USE_WILDMIDI, false)
2482 AM_CONDITIONAL(USE_SMOOTHSTREAMING, false)
2483 AM_CONDITIONAL(USE_SNDFILE, false)
2484 AM_CONDITIONAL(USE_SOUNDTOUCH, false)
2485 AM_CONDITIONAL(USE_SPANDSP, false)
2486 AM_CONDITIONAL(USE_SPC, false)
2487 AM_CONDITIONAL(USE_SRTP, false)
2488 AM_CONDITIONAL(USE_GME, false)
2489 AM_CONDITIONAL(USE_DVB, false)
2490 AM_CONDITIONAL(USE_ACM, false)
2491 AM_CONDITIONAL(USE_VDPAU, false)
2492 AM_CONDITIONAL(USE_SBC, false)
2493 AM_CONDITIONAL(USE_SCHRO, false)
2494 AM_CONDITIONAL(USE_ZBAR, false)
2495 AM_CONDITIONAL(USE_RSVG, false)
2496 AM_CONDITIONAL(USE_RTMP, false)
2497 AM_CONDITIONAL(USE_TELETEXTDEC, false)
2498 AM_CONDITIONAL(USE_UVCH264, false)
2499 AM_CONDITIONAL(USE_WEBP, false)
2500 AM_CONDITIONAL(USE_WEBRTCDSP, false)
2501 AM_CONDITIONAL(USE_OPENH264, false)
2502 AM_CONDITIONAL(USE_X265, false)
2503 AM_CONDITIONAL(USE_DTLS, false)
2504 AM_CONDITIONAL(USE_VULKAN, false)
2505 AM_CONDITIONAL(USE_TTML, false)
2507 fi dnl of EXT plugins
2509 dnl *** finalize CFLAGS, LDFLAGS, LIBS
2512 dnl GST_OPTION_CFLAGS: common flags for profiling, debugging, errors, ...
2513 dnl GST_*: flags shared by built objects to link against GStreamer
2514 dnl GST_ALL_LDFLAGS: linker flags shared by all
2515 dnl GST_LIB_LDFLAGS: additional linker flags for all libaries
2516 dnl GST_LT_LDFLAGS: library versioning of our libraries
2517 dnl GST_PLUGIN_LDFLAGS: flags to be used for all plugins
2519 dnl GST_OPTION_CFLAGS
2520 if test "x$USE_DEBUG" = xyes; then
2523 AC_SUBST(PROFILE_CFLAGS)
2525 if test "x$PACKAGE_VERSION_NANO" = "x1"; then
2526 dnl Define _only_ during CVS (not pre-releases or releases)
2527 DEPRECATED_CFLAGS="-DGST_DISABLE_DEPRECATED"
2529 DEPRECATED_CFLAGS=""
2531 AC_SUBST(DEPRECATED_CFLAGS)
2533 VISIBILITY_CFLAGS=""
2534 AS_COMPILER_FLAG([-fvisibility=hidden], [VISIBILITY_CFLAGS="-fvisibility=hidden"])
2535 AC_SUBST(VISIBILITY_CFLAGS)
2537 VISIBILITY_CXXFLAGS=""
2538 if test "x$HAVE_CXX" = "xyes"; then
2539 AS_CXX_COMPILER_FLAG([-fvisibility=hidden], [VISIBILITY_CXXFLAGS="-fvisibility=hidden"])
2541 AC_SUBST(VISIBILITY_CXXFLAGS)
2543 dnl every flag in GST_OPTION_CFLAGS and GST_OPTION_CXXFLAGS can be overridden
2544 dnl at make time with e.g. make ERROR_CFLAGS=""
2545 GST_OPTION_CFLAGS="\$(WARNING_CFLAGS) \$(ERROR_CFLAGS) \$(DEBUG_CFLAGS) \$(PROFILE_CFLAGS) \$(GCOV_CFLAGS) \$(OPT_CFLAGS) \$(DEPRECATED_CFLAGS)"
2546 GST_OPTION_CXXFLAGS="\$(WARNING_CXXFLAGS) \$(ERROR_CXXFLAGS) \$(DEBUG_CFLAGS) \$(PROFILE_CFLAGS) \$(GCOV_CFLAGS) \$(OPT_CFLAGS) \$(DEPRECATED_CFLAGS)"
2547 GST_OPTION_OBJCFLAGS="\$(WARNING_OBJCFLAGS) \$(ERROR_OBJCFLAGS) \$(DEBUG_CFLAGS) \$(PROFILE_CFLAGS) \$(GCOV_CFLAGS) \$(OPT_CFLAGS) \$(DEPRECATED_CFLAGS)"
2548 AC_SUBST(GST_OPTION_CFLAGS)
2549 AC_SUBST(GST_OPTION_CXXFLAGS)
2550 AC_SUBST(GST_OPTION_OBJCFLAGS)
2552 dnl FIXME: do we want to rename to GST_ALL_* ?
2553 dnl prefer internal headers to already installed ones
2554 dnl also add builddir include for enumtypes and marshal
2555 dnl add GST_OPTION_CFLAGS, but overridable
2556 GST_CFLAGS="$GST_CFLAGS $GST_STATIC_CFLAGS -DGST_USE_UNSTABLE_API"
2557 GST_CXXFLAGS="$GST_CFLAGS $GLIB_EXTRA_CFLAGS \$(GST_OPTION_CXXFLAGS) \$(VISIBILITY_CXXFLAGS)"
2558 GST_OBJCFLAGS="$GST_CFLAGS $GLIB_EXTRA_CFLAGS \$(GST_OPTION_OBJCFLAGS) \$(VISIBILITY_CFLAGS)"
2559 GST_CFLAGS="$GST_CFLAGS $GLIB_EXTRA_CFLAGS \$(GST_OPTION_CFLAGS) \$(VISIBILITY_CFLAGS)"
2560 AC_SUBST(GST_CFLAGS)
2561 AC_SUBST(GST_CXXFLAGS)
2562 AC_SUBST(GST_OBJCFLAGS)
2564 GST_PLUGINS_BAD_CXXFLAGS="-I\$(top_srcdir)/gst-libs -I\$(top_builddir)/gst-libs"
2565 GST_PLUGINS_BAD_OBJCFLAGS="-I\$(top_srcdir)/gst-libs -I\$(top_builddir)/gst-libs"
2566 GST_PLUGINS_BAD_CFLAGS="-I\$(top_srcdir)/gst-libs -I\$(top_builddir)/gst-libs"
2567 AC_SUBST(GST_PLUGINS_BAD_CFLAGS)
2568 AC_SUBST(GST_PLUGINS_BAD_CXXFLAGS)
2569 AC_SUBST(GST_PLUGINS_BAD_OBJCFLAGS)
2571 dnl LDFLAGS really should only contain flags, not libs - they get added before
2572 dnl whatevertarget_LIBS and -L flags here affect the rest of the linking
2573 GST_ALL_LDFLAGS="-no-undefined"
2574 if test "x${enable_Bsymbolic}" = "xyes"; then
2575 GST_ALL_LDFLAGS="$GST_ALL_LDFLAGS -Wl,-Bsymbolic-functions"
2577 AC_SUBST(GST_ALL_LDFLAGS)
2580 dnl linker flags shared by all libraries
2581 dnl LDFLAGS modifier defining exported symbols from built libraries
2582 dnl (export _gst_foo but not __gst_foo)
2584 AC_SUBST(GST_LIB_LDFLAGS)
2586 dnl this really should only contain flags, not libs - they get added before
2587 dnl whatevertarget_LIBS and -L flags here affect the rest of the linking
2588 GST_PLUGIN_LDFLAGS="-module -avoid-version $GST_ALL_LDFLAGS"
2589 AC_SUBST(GST_PLUGIN_LDFLAGS)
2591 dnl *** output files ***
2593 $MKDIR_P tests/check/orc
2602 gst/accurip/Makefile
2603 gst/adpcmdec/Makefile
2604 gst/adpcmenc/Makefile
2606 gst/videoframe_audiolevel/Makefile
2608 gst/audiobuffersplit/Makefile
2609 gst/audiofxbad/Makefile
2610 gst/audiomixer/Makefile
2611 gst/audiomixmatrix/Makefile
2612 gst/audiovisualizers/Makefile
2613 gst/autoconvert/Makefile
2615 gst/camerabin2/Makefile
2616 gst/coloreffects/Makefile
2617 gst/debugutils/Makefile
2618 gst/dvbsuboverlay/Makefile
2620 gst/faceoverlay/Makefile
2621 gst/festival/Makefile
2622 gst/fieldanalysis/Makefile
2623 gst/freeverb/Makefile
2625 gst/gaudieffects/Makefile
2626 gst/geometrictransform/Makefile
2630 gst/interlace/Makefile
2631 gst/ivfparse/Makefile
2633 gst/jp2kdecimator/Makefile
2634 gst/jpegformat/Makefile
2637 gst/mpegdemux/Makefile
2638 gst/mpegtsdemux/Makefile
2639 gst/mpegtsmux/Makefile
2640 gst/mpegtsmux/tsmux/Makefile
2641 gst/mpegpsmux/Makefile
2645 gst/pcapparse/Makefile
2647 gst/rawparse/Makefile
2648 gst/removesilence/Makefile
2650 gst/segmentclip/Makefile
2656 gst/timecode/Makefile
2657 gst/videofilters/Makefile
2658 gst/videoparsers/Makefile
2659 gst/videosignal/Makefile
2663 gst/compositor/Makefile
2665 gst-libs/gst/Makefile
2666 gst-libs/gst/adaptivedemux/Makefile
2667 gst-libs/gst/basecamerabinsrc/Makefile
2668 gst-libs/gst/insertbin/Makefile
2669 gst-libs/gst/interfaces/Makefile
2670 gst-libs/gst/isoff/Makefile
2671 gst-libs/gst/codecparsers/Makefile
2672 gst-libs/gst/mpegts/Makefile
2673 gst-libs/gst/uridownloader/Makefile
2674 gst-libs/gst/wayland/Makefile
2675 gst-libs/gst/player/Makefile
2676 gst-libs/gst/video/Makefile
2677 gst-libs/gst/audio/Makefile
2678 gst-libs/gst/opencv/Makefile
2680 sys/dshowdecwrapper/Makefile
2682 sys/acmmp3dec/Makefile
2683 sys/androidmedia/Makefile
2684 sys/applemedia/Makefile
2686 sys/d3dvideosink/Makefile
2687 sys/decklink/Makefile
2688 sys/directsound/Makefile
2689 sys/dshowsrcwrapper/Makefile
2690 sys/dshowvideosink/Makefile
2693 sys/ipcpipeline/Makefile
2698 sys/opensles/Makefile
2700 sys/tinyalsa/Makefile
2701 sys/uvch264/Makefile
2706 sys/winscreencap/Makefile
2708 tests/check/Makefile
2709 tests/files/Makefile
2710 tests/examples/Makefile
2711 tests/examples/avsamplesink/Makefile
2712 tests/examples/camerabin2/Makefile
2713 tests/examples/codecparsers/Makefile
2714 tests/examples/directfb/Makefile
2715 tests/examples/audiomixmatrix/Makefile
2716 tests/examples/gtk/Makefile
2717 tests/examples/ipcpipeline/Makefile
2718 tests/examples/mpegts/Makefile
2719 tests/examples/mxf/Makefile
2720 tests/examples/opencv/Makefile
2721 tests/examples/uvch264/Makefile
2722 tests/examples/waylandsink/Makefile
2723 tests/icles/Makefile
2724 ext/voamrwbenc/Makefile
2725 ext/voaacenc/Makefile
2726 ext/assrender/Makefile
2730 ext/chromaprint/Makefile
2731 ext/colormanagement/Makefile
2735 ext/directfb/Makefile
2736 ext/wayland/Makefile
2744 ext/fluidsynth/Makefile
2752 ext/libde265/Makefile
2755 ext/modplug/Makefile
2756 ext/mpeg2enc/Makefile
2758 ext/musepack/Makefile
2763 ext/openexr/Makefile
2764 ext/openh264/Makefile
2765 ext/openjpeg/Makefile
2766 ext/openmpt/Makefile
2767 ext/openni2/Makefile
2771 ext/resindvd/Makefile
2774 ext/schroedinger/Makefile
2775 ext/smoothstreaming/Makefile
2776 ext/sndfile/Makefile
2777 ext/soundtouch/Makefile
2778 ext/spandsp/Makefile
2781 ext/teletextdec/Makefile
2784 ext/wildmidi/Makefile
2786 ext/vulkan/xcb/Makefile
2787 ext/vulkan/wayland/Makefile
2792 ext/webrtcdsp/Makefile
2796 docs/plugins/Makefile
2798 docs/version.entities
2800 pkgconfig/gstreamer-plugins-bad.pc
2801 pkgconfig/gstreamer-plugins-bad-uninstalled.pc
2802 pkgconfig/gstreamer-codecparsers.pc
2803 pkgconfig/gstreamer-codecparsers-uninstalled.pc
2804 pkgconfig/gstreamer-insertbin.pc
2805 pkgconfig/gstreamer-insertbin-uninstalled.pc
2806 pkgconfig/gstreamer-mpegts.pc
2807 pkgconfig/gstreamer-mpegts-uninstalled.pc
2808 pkgconfig/gstreamer-player.pc
2809 pkgconfig/gstreamer-player-uninstalled.pc
2810 pkgconfig/gstreamer-wayland.pc
2811 pkgconfig/gstreamer-wayland-uninstalled.pc
2812 pkgconfig/gstreamer-bad-video.pc
2813 pkgconfig/gstreamer-bad-video-uninstalled.pc
2814 pkgconfig/gstreamer-bad-audio.pc
2815 pkgconfig/gstreamer-bad-audio-uninstalled.pc
2822 AG_GST_OUTPUT_PLUGINS