2015-04-23 15:39:20 +00:00
AC_PREREQ([2.69])
2001-12-17 18:37:01 +00:00
2006-04-01 10:09:11 +00:00
dnl initialize autoconf
dnl when going to/from release please set the nano (fourth number) right !
2015-06-12 22:08:40 +00:00
dnl releases only do Wall, git and prerelease does Werror too
2017-05-04 15:59:14 +00:00
AC_INIT([GStreamer Bad Plug-ins],[1.13.0.1],[http://bugzilla.gnome.org/enter_bug.cgi?product=GStreamer],[gst-plugins-bad])
2006-04-01 10:09:11 +00:00
2007-02-28 19:31:12 +00:00
AG_GST_INIT
2006-04-01 10:09:11 +00:00
dnl initialize automake
2015-04-23 15:39:20 +00:00
AM_INIT_AUTOMAKE([-Wno-portability 1.14 no-dist-gzip dist-xz tar-ustar subdir-objects])
2006-04-01 10:09:11 +00:00
dnl define PACKAGE_VERSION_* variables
AS_VERSION
dnl check if this is a release version
2010-03-21 16:54:26 +00:00
AS_NANO(GST_GIT="no", GST_GIT="yes")
2006-04-01 10:09:11 +00:00
dnl can autoconf find the source ?
2007-06-12 19:36:11 +00:00
AC_CONFIG_SRCDIR([docs/plugins/gst-plugins-bad-plugins-docs.sgml])
2006-04-01 10:09:11 +00:00
dnl define the output header for config
2012-12-31 00:16:42 +00:00
AC_CONFIG_HEADERS([config.h])
2002-02-16 05:44:09 +00:00
2002-08-27 09:54:08 +00:00
dnl AM_MAINTAINER_MODE only provides the option to configure to enable it
2012-04-13 11:44:46 +00:00
AM_MAINTAINER_MODE([enable])
2002-08-27 09:54:08 +00:00
2006-04-01 10:09:11 +00:00
dnl sets host_* variables
AC_CANONICAL_HOST
2002-12-08 14:50:10 +00:00
2010-02-26 14:45:57 +00:00
dnl use pretty build output with automake >= 1.11
m4_ifdef([AM_SILENT_RULES],[AM_SILENT_RULES([yes])],
[AM_DEFAULT_VERBOSITY=1
AC_SUBST(AM_DEFAULT_VERBOSITY)])
2015-08-20 12:09:37 +00:00
dnl PKG_CONFIG_SYSROOT_DIR is a valid environment variable
m4_pattern_allow(PKG_CONFIG_SYSROOT_DIR)
2012-04-04 12:41:22 +00:00
dnl our libraries and install dirs use GST_API_VERSION in the filename
dnl to allow side-by-side installation of different API versions
GST_API_VERSION=1.0
AC_SUBST(GST_API_VERSION)
AC_DEFINE_UNQUOTED(GST_API_VERSION, "$GST_API_VERSION",
[GStreamer API Version])
2002-12-08 14:50:10 +00:00
2012-04-13 11:44:46 +00:00
AG_GST_LIBTOOL_PREPARE
2012-03-03 15:57:11 +00:00
dnl CURRENT, REVISION, AGE
dnl - library source changed -> increment REVISION
dnl - interfaces added/removed/changed -> increment CURRENT, REVISION = 0
dnl - interfaces added -> increment AGE
dnl - interfaces removed -> AGE = 0
dnl sets GST_LT_LDFLAGS
2017-05-04 15:59:14 +00:00
AS_LIBTOOL(GST, 1300, 0, 1300)
2012-03-03 15:57:11 +00:00
2006-04-01 10:09:11 +00:00
dnl *** required versions of GStreamer stuff ***
2017-05-04 15:59:14 +00:00
GST_REQ=1.13.0.1
GSTPB_REQ=1.13.0.1
2001-12-17 18:37:01 +00:00
2006-04-01 10:09:11 +00:00
dnl *** autotools stuff ****
2002-02-06 18:18:16 +00:00
2006-04-01 10:09:11 +00:00
dnl allow for different autotools
AS_AUTOTOOLS_ALTERNATE
dnl Add parameters for aclocal
AC_SUBST(ACLOCAL_AMFLAGS, "-I m4 -I common/m4")
2004-07-13 06:36:55 +00:00
2006-03-12 23:56:47 +00:00
dnl set up gettext
dnl the version check needs to stay here because autopoint greps for it
2008-11-29 13:33:30 +00:00
AM_GNU_GETTEXT_VERSION([0.17])
2005-07-08 10:47:28 +00:00
AM_GNU_GETTEXT([external])
2012-04-04 12:41:22 +00:00
AG_GST_GETTEXT([gst-plugins-bad-$GST_API_VERSION])
2005-07-08 10:47:28 +00:00
2006-04-01 10:09:11 +00:00
dnl *** check for arguments to configure ***
2005-05-06 10:02:52 +00:00
2012-01-19 15:12:46 +00:00
AG_GST_ARG_DISABLE_FATAL_WARNINGS
2015-10-20 14:29:42 +00:00
AG_GST_ARG_ENABLE_EXTRA_CHECKS
2012-01-19 15:12:46 +00:00
2007-02-28 19:31:12 +00:00
AG_GST_ARG_DEBUG
AG_GST_ARG_PROFILING
AG_GST_ARG_VALGRIND
AG_GST_ARG_GCOV
2003-05-21 15:16:51 +00:00
2007-02-28 19:31:12 +00:00
AG_GST_ARG_EXAMPLES
2003-05-21 18:16:30 +00:00
2007-02-28 19:31:12 +00:00
AG_GST_ARG_WITH_PKG_CONFIG_PATH
AG_GST_ARG_WITH_PACKAGE_NAME
AG_GST_ARG_WITH_PACKAGE_ORIGIN
2003-05-21 15:16:51 +00:00
2007-02-28 19:31:12 +00:00
AG_GST_ARG_WITH_PLUGINS
2002-05-10 21:56:15 +00:00
2007-02-28 19:31:12 +00:00
AG_GST_ARG_ENABLE_EXTERNAL
2001-12-17 18:37:01 +00:00
2007-02-28 19:31:12 +00:00
AG_GST_ARG_ENABLE_EXPERIMENTAL
2001-12-17 18:37:01 +00:00
2013-01-25 15:44:39 +00:00
AG_GST_PKG_CONFIG_PATH
2006-04-01 10:09:11 +00:00
dnl *** checks for platform ***
2009-12-01 13:09:29 +00:00
AG_GST_PLATFORM
2005-05-05 16:35:52 +00:00
2006-04-01 10:09:11 +00:00
dnl * hardware/architecture *
2005-05-05 16:35:52 +00:00
2006-04-01 10:09:11 +00:00
dnl common/m4/gst-arch.m4
dnl check CPU type
2007-02-28 19:31:12 +00:00
AG_GST_ARCH
2005-05-05 16:35:52 +00:00
2006-04-01 10:09:11 +00:00
dnl Determine endianness
AC_C_BIGENDIAN
2005-05-06 18:00:56 +00:00
2006-04-01 10:09:11 +00:00
dnl *** checks for programs ***
2005-05-06 18:00:56 +00:00
2006-04-01 10:09:11 +00:00
dnl find a compiler
AC_PROG_CC
2010-08-04 17:26:51 +00:00
AC_PROG_CC_STDC
2005-05-05 16:35:52 +00:00
2006-04-01 16:50:49 +00:00
dnl determine c++ compiler
AC_PROG_CXX
dnl determine if c++ is available on this system
AC_CHECK_PROG(HAVE_CXX, $CXX, yes, no)
2012-05-30 09:24:06 +00:00
AC_PROG_OBJC
2007-01-30 17:19:33 +00:00
2008-01-10 12:36:46 +00:00
dnl check if the compiler supports '-c' and '-o' options
AM_PROG_CC_C_O
2008-03-21 14:50:41 +00:00
dnl check if the compiler supports do while(0) macros
AG_GST_CHECK_DOWHILE_MACROS
2006-04-01 10:09:11 +00:00
AC_PATH_PROG(VALGRIND_PATH, valgrind, no)
AM_CONDITIONAL(HAVE_VALGRIND, test ! "x$VALGRIND_PATH" = "xno")
2001-12-17 18:37:01 +00:00
2012-03-15 18:12:21 +00:00
dnl check for gobject-introspection
GOBJECT_INTROSPECTION_CHECK([1.31.1])
2006-04-01 10:09:11 +00:00
dnl check for documentation tools
2012-08-22 11:19:53 +00:00
GTK_DOC_CHECK([1.12])
2012-11-07 20:48:37 +00:00
AG_GST_PLUGIN_DOCS([1.12])
2002-04-26 09:22:35 +00:00
2006-04-01 10:09:11 +00:00
dnl *** checks for libraries ***
2001-12-17 18:37:01 +00:00
2007-02-24 22:52:48 +00:00
dnl check for libm, for sin() etc.
2012-04-13 11:44:46 +00:00
LT_LIB_M
2007-02-24 22:52:48 +00:00
AC_SUBST(LIBM)
2009-02-24 14:26:27 +00:00
AC_FUNC_MMAP
2014-10-21 11:28:50 +00:00
dnl check for pthreads
2014-11-26 16:35:10 +00:00
AX_PTHREAD
2014-10-21 11:28:50 +00:00
2006-04-01 10:09:11 +00:00
dnl *** checks for header files ***
2003-07-28 11:37:49 +00:00
2007-08-23 13:24:33 +00:00
AC_CHECK_HEADERS([unistd.h], HAVE_UNISTD_H=yes)
AM_CONDITIONAL(HAVE_UNISTD_H, test "x$HAVE_UNISTD_H" = "xyes")
if test "x$HAVE_UNISTD_H" != "xyes"; then
GST_PLUGINS_SELECTED=`echo $GST_PLUGINS_SELECTED | $SED -e s/festival//`
fi
2009-02-22 17:41:08 +00:00
AC_CHECK_HEADERS([sys/time.h])
2006-04-03 10:51:54 +00:00
dnl used by ext/dts
AX_CREATE_STDINT_H
2009-03-26 10:23:30 +00:00
AC_CHECK_HEADERS([pthread.h], HAVE_PTHREAD_H=yes)
AM_CONDITIONAL(HAVE_PTHREAD_H, test "x$HAVE_PTHREAD_H" = "xyes")
2006-04-01 10:09:11 +00:00
dnl *** checks for types/defines ***
2003-12-16 16:58:59 +00:00
2006-04-01 10:09:11 +00:00
dnl *** checks for structures ***
2004-02-20 15:49:27 +00:00
2006-04-01 10:09:11 +00:00
dnl *** checks for compiler characteristics ***
Convert a few inner loops to use liboil. This is currently optional, and is only enabled if liboil is present (duh!).
Original commit message from CVS:
Convert a few inner loops to use liboil. This is currently
optional, and is only enabled if liboil is present (duh!).
* configure.ac: Check for liboil-0.1
* gst/intfloat/Makefile.am:
* gst/intfloat/gstint2float.c: (conv_f32_s16), (scalarmult_f32),
(gst_int2float_chain_gint16):
* gst/videofilter/Makefile.am:
* gst/videofilter/gstvideobalance.c: (gst_videobalance_class_init),
(tablelookup_u8), (gst_videobalance_planar411):
* gst/videotestsrc/Makefile.am:
* gst/videotestsrc/gstvideotestsrc.c: (plugin_init):
* gst/videotestsrc/videotestsrc.c: (splat_u8), (paint_hline_YUY2),
(paint_hline_IYU2), (paint_hline_str4), (paint_hline_str3),
(paint_hline_RGB565), (paint_hline_xRGB1555):
2004-02-12 07:37:49 +00:00
2006-04-01 10:09:11 +00:00
dnl *** checks for library functions ***
2017-08-31 11:57:34 +00:00
AC_CHECK_FUNCS([gmtime_r pipe2])
2009-03-11 18:32:16 +00:00
dnl *** checks for headers ***
AC_CHECK_HEADERS([sys/utsname.h])
2002-08-13 10:39:26 +00:00
2007-02-13 09:44:20 +00:00
dnl *** checks for dependency libraries ***
2003-08-09 23:40:49 +00:00
2009-01-23 09:11:52 +00:00
dnl *** checks for socket and nsl libraries ***
AC_CHECK_FUNC(socket,,[AC_CHECK_LIB(socket,socket)])
AC_CHECK_FUNC(gethostbyname,,[AC_CHECK_LIB(nsl,gethostbyname)])
2006-04-01 10:09:11 +00:00
dnl GLib is required
2015-10-02 19:24:19 +00:00
GLIB_REQ=2.40.0
2012-01-18 15:35:04 +00:00
AG_GST_GLIB_CHECK([$GLIB_REQ])
2006-04-01 10:09:11 +00:00
dnl checks for gstreamer
dnl uninstalled is selected preferentially -- see pkg-config(1)
2012-04-04 12:41:22 +00:00
AG_GST_CHECK_GST($GST_API_VERSION, [$GST_REQ], yes)
AG_GST_CHECK_GST_BASE($GST_API_VERSION, [$GST_REQ], yes)
AG_GST_CHECK_GST_CHECK($GST_API_VERSION, [$GST_REQ], no)
AG_GST_CHECK_GST_CONTROLLER($GST_API_VERSION, [$GST_REQ], yes)
2015-10-11 09:00:43 +00:00
AG_GST_CHECK_GST_NET($GST_API_VERSION, [$GST_REQ], yes)
2016-08-25 12:35:59 +00:00
AG_GST_PKG_CHECK_MODULES(GST_VIDEO, gstreamer-video-[$GST_API_VERSION], [$GST_REQ], yes)
AG_GST_PKG_CHECK_MODULES(GST_AUDIO, gstreamer-audio-[$GST_API_VERSION], [$GST_REQ], yes)
AG_GST_PKG_CHECK_MODULES(GST_PBUTILS, gstreamer-pbutils-[$GST_API_VERSION], [$GST_REQ], yes)
2007-07-13 16:46:00 +00:00
AM_CONDITIONAL(HAVE_GST_CHECK, test "x$HAVE_GST_CHECK" = "xyes")
2012-04-04 12:41:22 +00:00
AG_GST_CHECK_GST_PLUGINS_BASE($GST_API_VERSION, [$GSTPB_REQ], yes)
2010-08-08 23:15:03 +00:00
dnl check for uninstalled plugin directories for unit tests
2012-01-20 15:23:54 +00:00
AG_GST_CHECK_UNINSTALLED_SETUP([
2012-04-04 12:41:22 +00:00
AG_GST_CHECK_GST_PLUGINS_GOOD($GST_API_VERSION, [0.11.0])
AG_GST_CHECK_GST_PLUGINS_UGLY($GST_API_VERSION, [0.11.0])
2013-02-28 20:02:16 +00:00
AG_GST_CHECK_GST_PLUGINS_LIBAV($GST_API_VERSION, [0.11.0])
2012-01-20 15:23:54 +00:00
])
2002-08-07 00:22:04 +00:00
2007-02-13 09:44:20 +00:00
dnl Check for documentation xrefs
GLIB_PREFIX="`$PKG_CONFIG --variable=prefix glib-2.0`"
2012-04-04 12:41:22 +00:00
GST_PREFIX="`$PKG_CONFIG --variable=prefix gstreamer-$GST_API_VERSION`"
GSTPB_PREFIX="`$PKG_CONFIG --variable=prefix gstreamer-plugins-base-$GST_API_VERSION`"
2007-02-13 09:44:20 +00:00
AC_SUBST(GLIB_PREFIX)
AC_SUBST(GST_PREFIX)
AC_SUBST(GSTPB_PREFIX)
2006-05-20 22:42:15 +00:00
dnl GTK is optional and used in examples
HAVE_GTK=NO
2010-11-06 12:27:32 +00:00
GTK2_REQ=2.14.0
GTK3_REQ=2.91.3
2010-11-05 00:32:35 +00:00
if test "x$BUILD_EXAMPLES" = "xyes"; then
AC_MSG_CHECKING([which gtk+ version to compile examples against (optional)])
AC_ARG_WITH([gtk],
2012-11-07 20:50:25 +00:00
AS_HELP_STRING([--with-gtk=3.0|2.0],[which gtk+ version to compile against (default: 2.0)]),
2010-11-05 00:32:35 +00:00
[case "$with_gtk" in
2010-11-06 12:27:32 +00:00
2.0) GTK_REQ=$GTK2_REQ ;;
3.0) GTK_REQ=$GTK3_REQ ;;
2010-11-05 00:32:35 +00:00
*) AC_MSG_ERROR([invalid gtk+ version specified]);;
esac],
2010-11-06 12:27:32 +00:00
[with_gtk=2.0
GTK_REQ=$GTK2_REQ])
AC_MSG_RESULT([$with_gtk (>= $GTK_REQ)])
PKG_CHECK_MODULES(GTK, gtk+-x11-$with_gtk >= $GTK_REQ, HAVE_GTK=yes, HAVE_GTK=no)
AC_SUBST(GTK_LIBS)
AC_SUBST(GTK_CFLAGS)
2010-11-05 00:32:35 +00:00
fi
2006-05-20 22:42:15 +00:00
AM_CONDITIONAL(HAVE_GTK, test "x$HAVE_GTK" = "xyes")
2001-12-23 03:25:55 +00:00
2015-12-21 11:33:25 +00:00
dnl Check for -Bsymbolic-functions linker flag used to avoid
dnl intra-library PLT jumps, if available.
AC_ARG_ENABLE(Bsymbolic,
[AS_HELP_STRING([--disable-Bsymbolic],[avoid linking with -Bsymbolic])],,
[SAVED_LDFLAGS="${LDFLAGS}" SAVED_LIBS="${LIBS}"
AC_MSG_CHECKING([for -Bsymbolic-functions linker flag])
LDFLAGS=-Wl,-Bsymbolic-functions
LIBS=
AC_TRY_LINK([], [return 0],
AC_MSG_RESULT(yes)
enable_Bsymbolic=yes,
AC_MSG_RESULT(no)
enable_Bsymbolic=no)
LDFLAGS="${SAVED_LDFLAGS}" LIBS="${SAVED_LIBS}"])
dnl *** set variables based on configure arguments ***
2011-08-31 02:39:36 +00:00
2014-04-29 06:38:55 +00:00
dnl GTK is optional and used in examples
HAVE_GTK3=NO
if test "x$BUILD_EXAMPLES" = "xyes"; then
PKG_CHECK_MODULES(GTK3, gtk+-3.0 >= 3.4, HAVE_GTK3=yes, HAVE_GTK3=no)
if test "x$HAVE_GTK3" = "xyes"; then
HAVE_GTK=yes
GTK_VERSION=`$PKG_CONFIG --variable=gtk_binary_version gtk+-3.0`
AC_SUBST(GTK_VERSION)
GTK_PREFIX=`$PKG_CONFIG --variable=prefix gdk-pixbuf-2.0`
AC_SUBST(GTK_BASE_DIR)
fi
fi
AC_SUBST(GTK3_LIBS)
AC_SUBST(GTK3_CFLAGS)
AC_SUBST(HAVE_GTK3)
AM_CONDITIONAL(HAVE_GTK3, test "x$HAVE_GTK3" = "xyes")
dnl clutter is optional and used in examples
HAVE_CLUTTER=no
HAVE_CLUTTER_X11=no
HAVE_CLUTTER_GLX=no
if test "x$BUILD_EXAMPLES" = "xyes"; then
PKG_CHECK_MODULES(CLUTTER, clutter-1.0 >= 1.8, HAVE_CLUTTER=yes, HAVE_CLUTTER=no)
AC_SUBST(CLUTTER_LIBS)
AC_SUBST(CLUTTER_CFLAGS)
AC_SUBST(HAVE_CLUTTER)
PKG_CHECK_MODULES(CLUTTER_GLX, clutter-glx-1.0 >= 1.8, HAVE_CLUTTER_GLX=yes, HAVE_CLUTTER_GLX=no)
AC_SUBST(CLUTTER_GLX_LIBS)
AC_SUBST(CLUTTER_GLX_CFLAGS)
AC_SUBST(HAVE_CLUTTER_GLX)
PKG_CHECK_MODULES(CLUTTER_X11, clutter-x11-1.0 >= 1.8, HAVE_CLUTTER_X11=yes, HAVE_CLUTTER_X11=no)
AC_SUBST(CLUTTER_X11_LIBS)
AC_SUBST(CLUTTER_X11_CFLAGS)
AC_SUBST(HAVE_CLUTTER_X11)
fi
AM_CONDITIONAL(HAVE_CLUTTER, test "x$HAVE_CLUTTER" = "xyes")
AM_CONDITIONAL(HAVE_CLUTTER_GLX, test "x$HAVE_CLUTTER_GLX" = "xyes")
AM_CONDITIONAL(HAVE_CLUTTER_X11, test "x$HAVE_CLUTTER_X11" = "xyes")
dnl used in the gl/clutteractor example
if test "x$BUILD_EXAMPLES" = "xyes"; then
PKG_CHECK_MODULES(XCOMPOSITE, xcomposite, HAVE_XCOMPOSITE=yes, HAVE_XCOMPOSITE=no)
AC_SUBST(XCOMPOSITE_CFLAGS)
AC_SUBST(XCOMPOSITE_LIBS)
fi
AM_CONDITIONAL(HAVE_XCOMPOSITE, test "x$HAVE_XCOMPOSITE" = "xyes")
2014-05-27 10:40:09 +00:00
dnl graphene-1.0 is optional and used in gltransformation
HAVE_GRAPHENE=NO
2016-08-19 07:11:13 +00:00
PKG_CHECK_MODULES(GRAPHENE, graphene-1.0 >= 1.4.0, HAVE_GRAPHENE=yes, HAVE_GRAPHENE=no)
2014-05-27 10:40:09 +00:00
if test "x$HAVE_GRAPHENE" = "xyes"; then
AC_DEFINE(HAVE_GRAPHENE, [1] , [Use graphene])
fi
AC_SUBST(HAVE_GRAPHENE)
AC_SUBST(GRAPHENE_LIBS)
AC_SUBST(GRAPHENE_CFLAGS)
AM_CONDITIONAL(HAVE_GRAPHENE, test "x$HAVE_GRAPHENE" = "xyes")
2014-04-29 06:38:55 +00:00
dnl sdl is optional and used in examples
HAVE_SDL=NO
if test "x$BUILD_EXAMPLES" = "xyes"; then
PKG_CHECK_MODULES(SDL, sdl >= 1.2.0, HAVE_SDL=yes, HAVE_SDL=no)
AC_SUBST(SDL_LIBS)
AC_SUBST(SDL_CFLAGS)
AC_SUBST(SDL_CLUTTER)
fi
AM_CONDITIONAL(HAVE_SDL, test "x$HAVE_SDL" = "xyes")
2011-08-31 02:39:36 +00:00
2010-01-16 10:26:15 +00:00
dnl Needed for GtkBuilder to autoconnect signals
PKG_CHECK_MODULES(GMODULE_EXPORT, gmodule-export-2.0, HAVE_GMODULE_EXPORT=yes, HAVE_GMODULE_EXPORT=no)
2012-11-30 20:01:16 +00:00
dnl Needed by plugins that use g_module_*() API
PKG_CHECK_MODULES(GMODULE_NO_EXPORT, gmodule-no-export-2.0)
2014-04-15 16:58:34 +00:00
dnl x11 is optional for librfb
2008-11-06 22:54:39 +00:00
HAVE_X11=NO
PKG_CHECK_MODULES(X11, x11, HAVE_X11=yes, HAVE_X11=no)
AC_SUBST(X11_LIBS)
AC_SUBST(X11_CFLAGS)
AC_SUBST(HAVE_X11)
AM_CONDITIONAL(HAVE_X11, test "x$HAVE_X11" = "xyes")
if test "x$HAVE_X11" = "xyes"; then
AC_DEFINE(HAVE_X11, 1, [Define if you have X11 library])
fi
2011-04-13 14:31:12 +00:00
dnl exif (used on jifmux tests) ****
PKG_CHECK_MODULES(EXIF, libexif >= 0.6.16, HAVE_EXIF="yes", HAVE_EXIF="no")
AC_SUBST(EXIF_LIBS)
AC_SUBST(EXIF_CFLAGS)
AM_CONDITIONAL(USE_EXIF, test "x$HAVE_EXIF" = "xyes")
2016-11-16 16:18:53 +00:00
AG_GST_CHECK_FEATURE(IQA, [iqa], iqa , [
PKG_CHECK_MODULES(DSSIM, dssim, [
HAVE_DSSIM="yes"
HAVE_IQA="yes"
], [
HAVE_DSSIM="no"
HAVE_IQA="no"
])
if test "x$HAVE_DSSIM" = "xyes"; then
AC_DEFINE(HAVE_DSSIM, 1, [Define if you have dssim library])
fi
AC_SUBST(DSSIM_LIBS)
AC_SUBST(DSSIM_CFLAGS)
])
2017-01-20 06:45:43 +00:00
AM_CONDITIONAL(HAVE_DSSIM, test "x$HAVE_DSSIM" = "xyes")
2016-11-16 16:18:53 +00:00
2010-06-01 23:55:17 +00:00
dnl Orc
2013-04-01 20:48:01 +00:00
ORC_CHECK([0.4.17])
2010-06-01 23:55:17 +00:00
2006-04-01 10:09:11 +00:00
dnl set license and copyright notice
GST_LICENSE="LGPL"
AC_DEFINE_UNQUOTED(GST_LICENSE, "$GST_LICENSE", [GStreamer license])
AC_SUBST(GST_LICENSE)
2001-12-23 03:25:55 +00:00
2009-03-04 13:05:48 +00:00
dnl define LIBDIR so we can inform people where we live
AS_AC_EXPAND(LIBDIR, $libdir)
AC_DEFINE_UNQUOTED(LIBDIR, "$LIBDIR", [library dir])
2006-04-01 10:09:11 +00:00
dnl set location of plugin directory
2007-02-28 19:31:12 +00:00
AG_GST_SET_PLUGINDIR
2001-12-23 03:25:55 +00:00
2010-09-23 23:05:17 +00:00
dnl set release date/time
AG_GST_SET_PACKAGE_RELEASE_DATETIME_WITH_NANO([$PACKAGE_VERSION_NANO],
["${srcdir}/gst-plugins-bad.doap"],
[$PACKAGE_VERSION_MAJOR.$PACKAGE_VERSION_MINOR.$PACKAGE_VERSION_MICRO])
2016-06-23 20:27:13 +00:00
dnl If only building static libraries, define GST_STATIC_COMPILATION. This is
dnl needed only on Windows, but it doesn't hurt to have it everywhere.
if test x$enable_static = xyes -a x$enable_shared = xno; then
GST_STATIC_CFLAGS="-DGST_STATIC_COMPILATION"
fi
2015-12-23 08:55:26 +00:00
AC_ARG_WITH([player-tests],
AS_HELP_STRING([--with-player-tests],[Enable GstPlayer tests that need network access (default: no)]))
if test x$with_player_tests = xyes; then
AC_PATH_PROG([WGET], [wget], no)
if test x$WGET = xno; then
AC_MSG_WARN([wget required for GstPlayer tests but not found - disabling])
with_player_tests=no
fi
fi
AM_CONDITIONAL(WITH_GST_PLAYER_TESTS, test "x$with_player_tests" = "xyes")
2012-05-23 16:19:52 +00:00
# set by AG_GST_PARSE_SUBSYSTEM_DISABLES above
dnl make sure it doesn't complain about unused variables if debugging is disabled
NO_WARNINGS=""
AG_GST_CHECK_GST_DEBUG_DISABLED([NO_WARNINGS="-Wno-unused"], [NO_WARNINGS=""])
2006-04-01 10:09:11 +00:00
dnl define an ERROR_CFLAGS Makefile variable
2010-03-23 00:14:33 +00:00
dnl -Waggregate-return - libexif returns aggregates
2010-03-23 00:15:27 +00:00
dnl -Wundef - Windows headers check _MSC_VER unconditionally
2012-05-30 09:32:01 +00:00
AG_GST_SET_ERROR_CFLAGS($FATAL_WARNINGS, [
-Wmissing-declarations -Wmissing-prototypes -Wredundant-decls
-Wwrite-strings -Wformat-security -Wold-style-definition
-Winit-self -Wmissing-include-dirs -Waddress -Wno-multichar
-Wnested-externs $NO_WARNINGS])
2001-12-21 11:46:15 +00:00
2008-02-23 15:01:32 +00:00
dnl define an ERROR_CXXFLAGS Makefile variable
2012-01-19 15:12:46 +00:00
AG_GST_SET_ERROR_CXXFLAGS($FATAL_WARNINGS, [
2010-04-12 10:42:06 +00:00
-Wmissing-declarations -Wredundant-decls
2010-03-23 00:14:33 +00:00
-Wwrite-strings -Wformat-nonliteral -Wformat-security
2012-05-23 16:19:52 +00:00
-Winit-self -Wmissing-include-dirs -Waddress -Wno-multichar $NO_WARNINGS])
2008-02-23 15:01:32 +00:00
2012-05-30 09:24:06 +00:00
dnl define an ERROR_OBJCFLAGS Makefile variable
AG_GST_SET_ERROR_OBJCFLAGS($FATAL_WARNINGS, [
-Wmissing-declarations -Wredundant-decls
-Wwrite-strings -Wformat-nonliteral -Wformat-security
-Winit-self -Wmissing-include-dirs -Wno-multichar $NO_WARNINGS])
2006-04-01 10:09:11 +00:00
dnl define correct level for debugging messages
2010-03-21 16:54:26 +00:00
AG_GST_SET_LEVEL_DEFAULT($GST_GIT)
2001-12-20 20:16:57 +00:00
2009-10-15 13:15:03 +00:00
dnl used in examples
AG_GST_DEFAULT_ELEMENTS
2008-03-03 12:48:56 +00:00
dnl *** plug-ins to include ***
dnl these are all the gst plug-ins, compilable without additional libs
2012-10-28 16:36:01 +00:00
AG_GST_CHECK_PLUGIN(accurip)
2009-05-22 23:56:52 +00:00
AG_GST_CHECK_PLUGIN(adpcmdec)
2009-12-12 00:32:48 +00:00
AG_GST_CHECK_PLUGIN(adpcmenc)
2009-10-31 17:20:53 +00:00
AG_GST_CHECK_PLUGIN(aiff)
2015-04-21 18:09:19 +00:00
AG_GST_CHECK_PLUGIN(videoframe_audiolevel)
2009-07-24 17:52:28 +00:00
AG_GST_CHECK_PLUGIN(asfmux)
2016-11-18 19:00:03 +00:00
AG_GST_CHECK_PLUGIN(audiobuffersplit)
2013-05-18 20:57:11 +00:00
AG_GST_CHECK_PLUGIN(audiofxbad)
2013-11-06 14:18:50 +00:00
AG_GST_CHECK_PLUGIN(audiomixer)
2017-01-16 17:36:07 +00:00
AG_GST_CHECK_PLUGIN(audiomixmatrix)
2014-05-22 17:46:02 +00:00
AG_GST_CHECK_PLUGIN(compositor)
2011-06-04 11:25:57 +00:00
AG_GST_CHECK_PLUGIN(audiovisualizers)
2009-02-26 02:05:42 +00:00
AG_GST_CHECK_PLUGIN(autoconvert)
2008-03-03 12:48:56 +00:00
AG_GST_CHECK_PLUGIN(bayer)
2010-11-24 20:28:57 +00:00
AG_GST_CHECK_PLUGIN(camerabin2)
2010-08-08 11:26:55 +00:00
AG_GST_CHECK_PLUGIN(coloreffects)
2009-04-16 15:36:13 +00:00
AG_GST_CHECK_PLUGIN(debugutils)
2010-11-29 20:06:07 +00:00
AG_GST_CHECK_PLUGIN(dvbsuboverlay)
2008-03-03 12:48:56 +00:00
AG_GST_CHECK_PLUGIN(dvdspu)
2017-04-05 21:03:08 +00:00
AG_GST_CHECK_PLUGIN(faceoverlay)
2008-03-03 12:48:56 +00:00
AG_GST_CHECK_PLUGIN(festival)
2010-09-15 15:32:09 +00:00
AG_GST_CHECK_PLUGIN(fieldanalysis)
2011-11-21 21:55:40 +00:00
AG_GST_CHECK_PLUGIN(freeverb)
2009-06-12 12:59:28 +00:00
AG_GST_CHECK_PLUGIN(frei0r)
2010-07-13 01:37:47 +00:00
AG_GST_CHECK_PLUGIN(gaudieffects)
2010-05-25 02:57:05 +00:00
AG_GST_CHECK_PLUGIN(geometrictransform)
2012-09-11 00:52:46 +00:00
AG_GST_CHECK_PLUGIN(gdp)
2009-05-21 20:15:46 +00:00
AG_GST_CHECK_PLUGIN(id3tag)
2011-06-04 02:41:33 +00:00
AG_GST_CHECK_PLUGIN(inter)
2010-08-23 04:43:20 +00:00
AG_GST_CHECK_PLUGIN(interlace)
2010-05-22 07:02:26 +00:00
AG_GST_CHECK_PLUGIN(ivfparse)
2013-02-20 23:32:15 +00:00
AG_GST_CHECK_PLUGIN(ivtc)
2010-11-15 19:03:01 +00:00
AG_GST_CHECK_PLUGIN(jp2kdecimator)
2009-08-19 10:22:30 +00:00
AG_GST_CHECK_PLUGIN(jpegformat)
2008-03-03 12:48:56 +00:00
AG_GST_CHECK_PLUGIN(librfb)
2013-03-21 05:50:52 +00:00
AG_GST_CHECK_PLUGIN(midi)
2008-09-02 12:04:32 +00:00
AG_GST_CHECK_PLUGIN(mpegdemux)
2011-02-16 16:57:42 +00:00
AG_GST_CHECK_PLUGIN(mpegtsdemux)
Add Fluendo MPEG-TS muxer and libtsmux to gst-plugins-bad. This is renamed to mpegtsmux to prevent conflicts. Also al...
Original commit message from CVS:
* configure.ac:
* gst/mpegtsmux/Makefile.am:
* gst/mpegtsmux/mpegtsmux.c: (mpegtsmux_base_init),
(mpegtsmux_class_init), (mpegtsmux_init), (mpegtsmux_dispose),
(gst_mpegtsmux_set_property), (gst_mpegtsmux_get_property),
(release_buffer_cb), (mpegtsmux_create_stream),
(mpegtsmux_create_streams), (mpegtsmux_choose_best_stream),
(mpegtsmux_collected), (mpegtsmux_request_new_pad),
(mpegtsmux_release_pad), (new_packet_cb),
(mpegtsdemux_prepare_srcpad), (mpegtsmux_change_state),
(plugin_init):
* gst/mpegtsmux/mpegtsmux.h:
* gst/mpegtsmux/mpegtsmux_aac.c: (mpegtsmux_prepare_aac):
* gst/mpegtsmux/mpegtsmux_aac.h:
* gst/mpegtsmux/mpegtsmux_h264.c: (mpegtsmux_prepare_h264):
* gst/mpegtsmux/mpegtsmux_h264.h:
* gst/mpegtsmux/tsmux/Makefile.am:
* gst/mpegtsmux/tsmux/crc.h:
* gst/mpegtsmux/tsmux/tsmux.c: (tsmux_new), (tsmux_set_write_func),
(tsmux_set_pat_frequency), (tsmux_get_pat_frequency), (tsmux_free),
(tsmux_program_new), (tsmux_set_pmt_frequency),
(tsmux_get_pmt_frequency), (tsmux_program_add_stream),
(tsmux_program_set_pcr_stream), (tsmux_get_new_pid),
(tsmux_create_stream), (tsmux_find_stream), (tsmux_packet_out),
(tsmux_write_adaptation_field), (tsmux_write_ts_header),
(tsmux_write_stream_packet), (tsmux_program_free),
(tsmux_write_section), (tsmux_write_section_hdr),
(tsmux_write_pat), (tsmux_write_pmt):
* gst/mpegtsmux/tsmux/tsmux.h:
* gst/mpegtsmux/tsmux/tsmuxcommon.h:
* gst/mpegtsmux/tsmux/tsmuxstream.c: (tsmux_stream_new),
(tsmux_stream_get_pid), (tsmux_stream_free),
(tsmux_stream_set_buffer_release_func), (tsmux_stream_consume),
(tsmux_stream_at_pes_start), (tsmux_stream_bytes_avail),
(tsmux_stream_bytes_in_buffer), (tsmux_stream_get_data),
(tsmux_stream_pes_header_length),
(tsmux_stream_find_pts_dts_within),
(tsmux_stream_write_pes_header), (tsmux_stream_add_data),
(tsmux_stream_get_es_descrs), (tsmux_stream_pcr_ref),
(tsmux_stream_pcr_unref), (tsmux_stream_is_pcr),
(tsmux_stream_get_pts):
* gst/mpegtsmux/tsmux/tsmuxstream.h:
Add Fluendo MPEG-TS muxer and libtsmux to gst-plugins-bad. This
is renamed to mpegtsmux to prevent conflicts. Also all relevant
informations about copyright and license are added to the top of
every file but apart from that no changes compared to the latest
SVN versions happened.
2008-09-01 16:38:40 +00:00
AG_GST_CHECK_PLUGIN(mpegtsmux)
2009-08-11 10:00:10 +00:00
AG_GST_CHECK_PLUGIN(mpegpsmux)
Add first version of an MXF demuxer. Currently it supports
Original commit message from CVS:
* configure.ac:
* gst/mxf/Makefile.am:
* gst/mxf/mxf.c: (plugin_init):
* gst/mxf/mxfaes-bwf.c:
(mxf_metadata_wave_audio_essence_descriptor_parse),
(mxf_metadata_wave_audio_essence_descriptor_reset),
(mxf_is_aes_bwf_essence_track), (mxf_bwf_handle_essence_element),
(mxf_bwf_create_caps), (mxf_aes_bwf_create_caps):
* gst/mxf/mxfaes-bwf.h:
* gst/mxf/mxfdemux.c: (gst_mxf_pad_finalize),
(gst_mxf_pad_class_init), (gst_mxf_pad_init),
(gst_mxf_demux_flush), (gst_mxf_demux_remove_pad),
(gst_mxf_demux_reset_mxf_state), (gst_mxf_demux_reset_metadata),
(gst_mxf_demux_reset), (gst_mxf_demux_pull_range),
(gst_mxf_demux_push_src_event),
(gst_mxf_demux_handle_partition_pack),
(gst_mxf_demux_handle_primer_pack),
(gst_mxf_demux_handle_metadata_preface),
(gst_mxf_demux_handle_metadata_identification),
(gst_mxf_demux_handle_metadata_content_storage),
(gst_mxf_demux_handle_metadata_essence_container_data),
(gst_mxf_demux_handle_metadata_material_package),
(gst_mxf_demux_handle_metadata_source_package),
(gst_mxf_demux_handle_metadata_track),
(gst_mxf_demux_handle_metadata_sequence),
(gst_mxf_demux_handle_metadata_structural_component),
(gst_mxf_demux_handle_metadata_generic_descriptor),
(gst_mxf_demux_handle_metadata_file_descriptor),
(gst_mxf_demux_handle_metadata_multiple_descriptor),
(gst_mxf_demux_handle_metadata_generic_picture_essence_descriptor),
(gst_mxf_demux_handle_metadata_cdci_picture_essence_descriptor),
(gst_mxf_demux_handle_metadata_mpeg_video_descriptor),
(gst_mxf_demux_handle_metadata_generic_sound_essence_descriptor),
(gst_mxf_demux_handle_metadata_wave_audio_essence_descriptor),
(gst_mxf_demux_handle_metadata_locator),
(gst_mxf_demux_handle_header_metadata_resolve_references),
(gst_mxf_demux_handle_header_metadata_update_streams),
(gst_mxf_demux_handle_metadata),
(gst_mxf_demux_handle_generic_container_system_item),
(gst_mxf_demux_handle_generic_container_essence_element),
(gst_mxf_demux_handle_random_index_pack),
(gst_mxf_demux_handle_index_table_segment),
(gst_mxf_demux_pull_klv_packet),
(gst_mxf_demux_parse_footer_metadata),
(gst_mxf_demux_handle_klv_packet),
(gst_mxf_demux_pull_and_handle_klv_packet), (gst_mxf_demux_loop),
(gst_mxf_demux_chain), (gst_mxf_demux_src_event),
(gst_mxf_demux_src_query_type), (gst_mxf_demux_src_query),
(gst_mxf_demux_sink_activate), (gst_mxf_demux_sink_activate_push),
(gst_mxf_demux_sink_activate_pull), (gst_mxf_demux_sink_event),
(gst_mxf_demux_change_state), (gst_mxf_demux_finalize),
(gst_mxf_demux_base_init), (gst_mxf_demux_class_init),
(gst_mxf_demux_init):
* gst/mxf/mxfdemux.h:
* gst/mxf/mxfmpeg.c: (mxf_metadata_mpeg_video_descriptor_parse),
(mxf_metadata_mpeg_video_descriptor_reset),
(mxf_is_mpeg_video_essence_track),
(mxf_mpeg_video_handle_essence_element),
(mxf_mpeg_video_create_caps):
* gst/mxf/mxfmpeg.h:
* gst/mxf/mxfparse.c: (mxf_is_mxf_packet), (mxf_is_partition_pack),
(mxf_is_header_partition_pack), (mxf_is_body_partition_pack),
(mxf_is_footer_partition_pack), (mxf_is_fill),
(mxf_is_primer_pack), (mxf_is_metadata),
(mxf_is_random_index_pack), (mxf_is_index_table_segment),
(mxf_is_generic_container_system_item),
(mxf_is_generic_container_essence_element),
(mxf_is_generic_container_essence_container_label),
(mxf_ul_is_equal), (mxf_ul_is_zero), (mxf_ul_to_string),
(mxf_umid_is_equal), (mxf_umid_is_zero), (mxf_umid_to_string),
(gst_mxf_ul_hash), (gst_mxf_ul_equal), (mxf_timestamp_parse),
(mxf_timestamp_is_unknown), (mxf_timestamp_compare),
(mxf_fraction_parse), (mxf_utf16_to_utf8),
(mxf_product_version_parse), (mxf_partition_pack_parse),
(mxf_partition_pack_reset), (_mxf_mapping_ul_free),
(mxf_primer_pack_parse), (mxf_primer_pack_reset),
(mxf_local_tag_parse), (gst_mxf_local_tag_free),
(gst_metadata_add_custom_tag), (mxf_metadata_preface_parse),
(mxf_metadata_preface_reset), (mxf_metadata_identification_parse),
(mxf_metadata_identification_reset),
(mxf_metadata_content_storage_parse),
(mxf_metadata_content_storage_reset),
(mxf_metadata_essence_container_data_parse),
(mxf_metadata_essence_container_data_reset),
(mxf_metadata_generic_package_parse),
(mxf_metadata_generic_package_reset), (mxf_metadata_track_parse),
(mxf_metadata_track_reset), (mxf_metadata_track_identifier_parse),
(mxf_metadata_sequence_parse), (mxf_metadata_sequence_reset),
(mxf_metadata_structural_component_parse),
(mxf_metadata_structural_component_reset),
(mxf_metadata_generic_descriptor_parse),
(mxf_metadata_generic_descriptor_reset),
(mxf_metadata_file_descriptor_parse),
(mxf_metadata_file_descriptor_reset),
(mxf_metadata_generic_sound_essence_descriptor_parse),
(mxf_metadata_generic_sound_essence_descriptor_reset),
(mxf_metadata_generic_picture_essence_descriptor_parse),
(mxf_metadata_generic_picture_essence_descriptor_reset),
(mxf_metadata_cdci_picture_essence_descriptor_parse),
(mxf_metadata_cdci_picture_essence_descriptor_reset),
(mxf_metadata_multiple_descriptor_parse),
(mxf_metadata_multiple_descriptor_reset),
(mxf_metadata_locator_parse), (mxf_metadata_locator_reset):
* gst/mxf/mxfparse.h:
* gst/mxf/mxftypes.h:
Add first version of an MXF demuxer. Currently it supports
MPEG video and raw audio and OP 1a/b/c.
2008-11-21 10:27:15 +00:00
AG_GST_CHECK_PLUGIN(mxf)
2015-10-07 21:49:58 +00:00
AG_GST_CHECK_PLUGIN(netsim)
2014-04-28 09:07:17 +00:00
AG_GST_CHECK_PLUGIN(onvif)
2008-08-24 13:53:29 +00:00
AG_GST_CHECK_PLUGIN(pcapparse)
2009-09-10 06:23:22 +00:00
AG_GST_CHECK_PLUGIN(pnm)
2008-03-03 12:48:56 +00:00
AG_GST_CHECK_PLUGIN(rawparse)
2011-06-16 20:19:49 +00:00
AG_GST_CHECK_PLUGIN(removesilence)
2008-03-03 12:48:56 +00:00
AG_GST_CHECK_PLUGIN(sdp)
2010-02-28 18:41:02 +00:00
AG_GST_CHECK_PLUGIN(segmentclip)
2009-02-10 17:29:05 +00:00
AG_GST_CHECK_PLUGIN(siren)
2011-11-21 07:20:14 +00:00
AG_GST_CHECK_PLUGIN(smooth)
2008-03-03 12:48:56 +00:00
AG_GST_CHECK_PLUGIN(speed)
2008-04-01 22:40:49 +00:00
AG_GST_CHECK_PLUGIN(subenc)
2008-03-03 12:48:56 +00:00
AG_GST_CHECK_PLUGIN(stereo)
2016-05-20 15:17:52 +00:00
AG_GST_CHECK_PLUGIN(timecode)
2011-02-27 00:20:52 +00:00
AG_GST_CHECK_PLUGIN(videofilters)
2011-01-27 17:16:14 +00:00
AG_GST_CHECK_PLUGIN(videoparsers)
2008-03-03 12:48:56 +00:00
AG_GST_CHECK_PLUGIN(videosignal)
AG_GST_CHECK_PLUGIN(vmnc)
2010-12-14 07:32:30 +00:00
AG_GST_CHECK_PLUGIN(y4m)
2013-02-07 23:09:51 +00:00
AG_GST_CHECK_PLUGIN(yadif)
2008-03-03 12:48:56 +00:00
2006-04-06 14:08:08 +00:00
dnl *** plug-ins to exclude ***
2013-10-28 11:20:27 +00:00
AC_CHECK_HEADER(AVFoundation/AVFoundation.h, HAVE_AVFOUNDATION="yes", HAVE_AVFOUNDATION="no", [-])
2013-09-23 11:20:46 +00:00
AC_CHECK_HEADER(MobileCoreServices/MobileCoreServices.h, HAVE_IOS="yes", HAVE_IOS="no", [-])
2014-07-02 10:54:45 +00:00
AC_CHECK_HEADER(VideoToolbox/VideoToolbox.h, HAVE_VIDEOTOOLBOX="yes", HAVE_VIDEOTOOLBOX="no", [-])
2013-09-23 11:20:46 +00:00
2014-10-19 12:51:40 +00:00
if test "x$HAVE_VIDEOTOOLBOX" = "xyes"; then
old_LIBS=$LIBS
LIBS="$LIBS -framework VideoToolbox"
AC_CHECK_FUNC(VTCompressionSessionPrepareToEncodeFrames, [
AC_DEFINE(HAVE_VIDEOTOOLBOX_10_9_6, 1, [Define if building with VideoToolbox >= 10.9.6])
], [
])
LIBS=$old_LIBS
fi
2013-10-28 11:20:27 +00:00
AM_CONDITIONAL(HAVE_AVFOUNDATION, test "x$HAVE_AVFOUNDATION" = "xyes")
if test "x$HAVE_AVFOUNDATION" = "xyes"; then
AC_DEFINE(HAVE_AVFOUNDATION, 1, [Define if building with AVFoundation])
fi
2013-09-23 11:20:46 +00:00
AM_CONDITIONAL(HAVE_IOS, test "x$HAVE_IOS" = "xyes")
if test "x$HAVE_IOS" = "xyes"; then
AC_DEFINE(HAVE_IOS, 1, [Define if building for Apple iOS])
fi
2014-09-15 12:25:46 +00:00
AM_CONDITIONAL(HAVE_VIDEOTOOLBOX, test "x$HAVE_VIDEOTOOLBOX" = "xyes")
2014-07-02 10:54:45 +00:00
if test "x$HAVE_VIDEOTOOLBOX" = "xyes"; then
AC_DEFINE(HAVE_VIDEOTOOLBOX, 1, [Define if building with VideoToolbox])
fi
2007-01-05 14:02:33 +00:00
dnl disable gst plugins we might not be able to build on this
2013-05-09 23:41:32 +00:00
dnl platform: (ugly but minimally invasive)
2007-01-05 14:02:33 +00:00
dnl FIXME: maybe move to sys, or make work with winsock2
AC_CHECK_HEADERS([sys/socket.h], HAVE_SYS_SOCKET_H=yes)
AC_CHECK_HEADERS([winsock2.h], HAVE_WINSOCK2_H=yes)
2009-04-08 18:52:46 +00:00
if test "x$HAVE_WINSOCK2_H" = "xyes"; then
2012-05-05 17:20:33 +00:00
WINSOCK2_LIBS="-lws2_32"
AC_SUBST(WINSOCK2_LIBS)
2009-03-26 10:32:08 +00:00
fi
2014-03-16 14:08:23 +00:00
dnl *** opengl ***
AC_ARG_ENABLE([opengl],
[ --enable-opengl Enable Desktop OpenGL support @<:@default=auto@:>@],
[case "${enableval}" in
yes) NEED_GL=yes ;;
no) NEED_GL=no ;;
auto) NEED_GL=auto ;;
*) AC_MSG_ERROR([bad value ${enableval} for --enable-opengl]) ;;
esac],[NEED_GL=auto])
2014-05-01 12:36:54 +00:00
AC_ARG_WITH([opengl-module-name],
AS_HELP_STRING([--with-opengl-module-name],[library module name for OpenGL (default: libGL)]))
if test x$with_opengl_module_name != x; then
AC_DEFINE_UNQUOTED(GST_GL_LIBGL_MODULE_NAME, "$with_opengl_module_name", [OpenGL module name])
fi
2014-03-16 14:08:23 +00:00
AC_ARG_ENABLE([gles2],
[ --enable-gles2 Enable OpenGL|ES 2.0 support @<:@default=auto@:>@],
[case "${enableval}" in
yes) NEED_GLES2=yes ;;
no) NEED_GLES2=no ;;
auto) NEED_GLES2=auto ;;
*) AC_MSG_ERROR([bad value ${enableval} for --enable-gles2]) ;;
esac],[NEED_GLES2=auto])
2014-05-01 12:36:54 +00:00
AC_ARG_WITH([gles2-module-name],
AS_HELP_STRING([--with-gles2-module-name],[library module name for GLES2 (default: libGLESv2)]))
if test x$with_gles2_module_name != x; then
AC_DEFINE_UNQUOTED(GST_GL_LIBGLESV2_MODULE_NAME, "$with_gles2_module_name", [GLES2 module name])
fi
2014-03-16 14:08:23 +00:00
AC_ARG_ENABLE([egl],
[ --enable-egl Enable EGL support @<:@default=auto@:>@],
[case "${enableval}" in
yes) NEED_EGL=yes ;;
no) NEED_EGL=no ;;
auto) NEED_EGL=auto ;;
*) AC_MSG_ERROR([bad value ${enableval} for --enable-egl]) ;;
esac],[NEED_EGL=auto])
2014-05-01 12:36:54 +00:00
AC_ARG_WITH([egl-module-name],
AS_HELP_STRING([--with-egl-module-name],[library module name for EGL (default: libEGL)]))
if test x$with_egl_module_name != x; then
AC_DEFINE_UNQUOTED(GST_GL_LIBEGL_MODULE_NAME, "$with_egl_module_name", [EGL module name])
fi
2014-03-16 14:08:23 +00:00
AC_ARG_ENABLE([wgl],
[ --enable-wgl Enable WGL support @<:@default=auto@:>@],
[case "${enableval}" in
yes) NEED_WGL=yes ;;
no) NEED_WGL=no ;;
auto) NEED_WGL=auto ;;
*) AC_MSG_ERROR([bad value ${enableval} for --enable-wgl]) ;;
esac],[NEED_WGL=auto])
AC_ARG_ENABLE([glx],
[ --enable-glx Enable GLX support @<:@default=auto@:>@],
[case "${enableval}" in
yes) NEED_GLX=yes ;;
no) NEED_GLX=no ;;
auto) NEED_GLX=auto ;;
*) AC_MSG_ERROR([bad value ${enableval} for --enable-glx]) ;;
esac],[NEED_GLX=auto])
AC_ARG_ENABLE([cocoa],
2014-11-13 10:58:07 +00:00
[ --enable-cocoa Enable Cocoa support @<:@default=auto@:>@],
2014-03-16 14:08:23 +00:00
[case "${enableval}" in
yes) NEED_COCOA=yes ;;
no) NEED_COCOA=no ;;
auto) NEED_COCOA=auto ;;
*) AC_MSG_ERROR([bad value ${enableval} for --enable-cocoa]) ;;
esac],[NEED_COCOA=auto])
AC_ARG_ENABLE([x11],
[ --enable-x11 Enable x11 support @<:@default=auto@:>@],
[case "${enableval}" in
yes) NEED_X11=yes ;;
no) NEED_X11=no ;;
auto) NEED_X11=auto ;;
*) AC_MSG_ERROR([bad value ${enableval} for --enable-x11]) ;;
esac],[NEED_X11=auto])
AC_ARG_ENABLE([wayland],
[ --enable-wayland Enable Wayland support (requires EGL) @<:@default=auto@:>@],
[case "${enableval}" in
yes) NEED_WAYLAND_EGL=yes ;;
no) NEED_WAYLAND_EGL=no ;;
auto) NEED_WAYLAND_EGL=auto ;;
*) AC_MSG_ERROR([bad value ${enableval} for --enable-wayland]) ;;
esac],[NEED_WAYLAND_EGL=auto])
AC_ARG_ENABLE([dispmanx],
[ --enable-dispmanx Enable Dispmanx support (requires EGL) @<:@default=auto@:>@],
[case "${enableval}" in
yes) NEED_DISPMANX=yes ;;
no) NEED_DISPMANX=no ;;
auto) NEED_DISPMANX=auto ;;
*) AC_MSG_ERROR([bad value ${enableval} for --enable-dispmanx]) ;;
esac],[NEED_DISPMANX=auto])
2016-06-30 14:07:23 +00:00
AG_GST_PKG_CHECK_MODULES(X11_XCB, x11-xcb)
2014-03-16 14:08:23 +00:00
save_CPPFLAGS="$CPPFLAGS"
save_LIBS="$LIBS"
HAVE_GL=no
HAVE_GLES2=no
2016-03-31 08:43:04 +00:00
HAVE_GLES3_H=no
2014-03-16 14:08:23 +00:00
HAVE_WAYLAND_EGL=no
2017-02-17 10:24:58 +00:00
HAVE_VIV_FB_EGL=no
2014-04-15 16:58:34 +00:00
HAVE_EGL_RPI=no
2014-03-16 14:08:23 +00:00
case $host in
*-mingw32* )
LIBS="$LIBS -lgdi32"
AG_GST_CHECK_LIBHEADER(GL, opengl32, glTexImage2D,, GL/gl.h)
2014-04-01 22:29:56 +00:00
AC_CHECK_HEADER(GL/wglext.h, HAVE_WGLEXT="yes", HAVE_WGLEXT="no", [#include <GL/gl.h>])
2014-03-27 11:41:02 +00:00
if test "x$HAVE_WGLEXT" = "xyes"; then
2014-04-02 01:38:28 +00:00
HAVE_WGL=yes
2014-03-27 11:41:02 +00:00
HAVE_GL=yes
fi
2014-03-16 14:08:23 +00:00
;;
*)
2014-08-27 12:47:25 +00:00
if test "x$NEED_GL" != "xno"; then
2015-12-14 21:48:45 +00:00
AG_GST_PKG_CHECK_MODULES(GL, gl)
if test "x$HAVE_GL" != "xyes"; then
AG_GST_CHECK_LIBHEADER(GL, GL, glTexImage2D,, GL/gl.h)
fi
2014-08-27 12:47:25 +00:00
fi
if test "x$NEED_GLES2" != "xno"; then
2015-12-14 21:48:45 +00:00
AG_GST_PKG_CHECK_MODULES(GLES2, glesv2)
if test "x$HAVE_GLES2" != "xyes"; then
AG_GST_CHECK_LIBHEADER(GLES2, GLESv2, glTexImage2D,, GLES2/gl2.h)
fi
2016-03-31 08:43:04 +00:00
AC_CHECK_HEADER([GLES3/gl3.h], [HAVE_GLES3_H=yes])
2017-05-11 08:29:58 +00:00
AS_IF([test "x$HAVE_GLES3_H" == "xyes"],
[
AC_CHECK_HEADER([GLES3/gl3ext.h], [HAVE_GLES3EXT3_H=yes], [HAVE_GLES3EXT3_H=no], [#include <GLES3/gl3.h>])
])
2014-08-27 12:47:25 +00:00
fi
if test "x$NEED_EGL" != "xno"; then
2015-12-14 21:48:45 +00:00
AG_GST_PKG_CHECK_MODULES(EGL, egl)
if test "x$HAVE_EGL" != "xyes"; then
AG_GST_CHECK_LIBHEADER(EGL, EGL, eglGetError,, EGL/egl.h)
fi
2014-08-27 12:47:25 +00:00
fi
2014-03-16 14:08:23 +00:00
2014-04-15 16:58:34 +00:00
old_LIBS=$LIBS
old_CFLAGS=$CFLAGS
2017-02-22 12:55:58 +00:00
dnl imx6 / Vivante specifics
2017-02-17 10:24:58 +00:00
if test "x$HAVE_EGL" = "xyes"; then
AC_CHECK_LIB([EGL], [fbGetDisplay], [HAVE_VIV_FB_EGL=yes])
fi
dnl FIXME: Mali EGL depends on GLESv1 or GLESv2
AC_CHECK_HEADER([EGL/fbdev_window.h],
[
LIBS="$LIBS -lUMP"
AC_CHECK_LIB([Mali], [mali_image_create],
[
LIBS="$LIBS -lMali"
AC_CHECK_LIB([GLESv2], [glEnable],
[
AC_CHECK_HEADER([GLES2/gl2.h],
[
AC_CHECK_LIB([EGL], [eglGetProcAddress],
[
AC_CHECK_HEADER([EGL/egl.h],
[
HAVE_EGL=yes
HAVE_GLES2=yes
EGL_LIBS="-lMali -lUMP"
EGL_CFLAGS=""
AC_DEFINE(USE_EGL_MALI_FB, [1], [Use Mali FB EGL platform])
])
])
])
])
])
])
2014-04-15 16:58:34 +00:00
dnl FIXME: EGL of RPi depends on GLESv1 or GLESv2
dnl FIXME: GLESv2 of RPi depends on EGL... WTF!
LIBS="$LIBS -lvcos -lvchiq_arm"
AC_CHECK_LIB([bcm_host], [bcm_host_init],
[
LIBS="$LIBS -lbcm_host"
AC_CHECK_HEADER(bcm_host.h,
[
LIBS="$LIBS -lGLESv2"
AC_CHECK_LIB([EGL], [eglGetProcAddress],
[
LIBS="$LIBS -lEGL"
AC_CHECK_HEADER([EGL/egl.h],
[
AC_CHECK_LIB([GLESv2], [glEnable],
[
AC_CHECK_HEADER([GLES2/gl2.h],
[
HAVE_EGL=yes
HAVE_GLES2=yes
HAVE_EGL_RPI=yes
EGL_LIBS="-lbcm_host -lvcos -lvchiq_arm"
EGL_CFLAGS=""
AC_DEFINE(USE_EGL_RPI, [1], [Use RPi platform])
])
])
])
])
])
])
LIBS=$old_LIBS
CFLAGS=$old_CFLAGS
2014-03-16 14:08:23 +00:00
PKG_CHECK_MODULES(WAYLAND_EGL, wayland-client >= 1.0 wayland-cursor >= 1.0 wayland-egl >= 9.0, HAVE_WAYLAND_EGL=yes, HAVE_WAYLAND_EGL=no)
2016-07-08 09:03:06 +00:00
# OS X and iOS always have GL available
case $host in
*-darwin*)
if test "x$HAVE_IOS" = "xyes"; then
HAVE_GLES2=yes
else
HAVE_GL=yes
fi
;;
esac
2014-03-16 14:08:23 +00:00
;;
esac
CPPFLAGS="$save_CPPFLAGS"
LIBS="$save_LIBS"
USE_OPENGL=no
USE_GLES2=no
USE_GLX=no
USE_COCOA=no
USE_WGL=no
USE_X11=no
2014-04-12 19:43:50 +00:00
USE_EAGL=no
2014-03-16 14:08:23 +00:00
GL_LIBS=
GL_CFLAGS=
GL_OBJCFLAGS=
dnl Check for what the user asked for and what we could find
if test "x$HAVE_EGL" = "xno"; then
if test "x$NEED_EGL" = "xyes"; then
AC_MSG_ERROR([Could not find the required EGL libraries])
fi
fi
if test "x$HAVE_GL" = "xno"; then
if test "x$NEED_GL" = "xyes"; then
AC_MSG_ERROR([Could not find the required OpenGL libraries])
fi
fi
if test "x$HAVE_GLES2" = "xno"; then
if test "x$NEED_GLES2" = "xyes"; then
AC_MSG_ERROR([Could not find the required OpenGL|ES 2.0 libraries])
fi
fi
dnl X, GLX and OpenGL
2016-06-30 14:07:23 +00:00
if test "x$HAVE_X11_XCB" = "xno"; then
2014-03-16 14:08:23 +00:00
if test "x$NEED_GLX" = "xyes"; then
AC_MSG_ERROR([Building the GLX backend without X11 is unsupported])
fi
if test "x$NEED_X11" = "xyes"; then
AC_MSG_ERROR([Could not find X11 development libraries])
fi
else
if test "x$NEED_GL" != "xno"; then
if test "x$HAVE_GL" = "xno"; then
if test "x$NEED_GLX" = "xyes"; then
AC_MSG_ERROR([Building the GLX backend without the OpenGL backend is unsupported])
fi
else dnl HAVE_GL=yes
2014-11-27 05:17:50 +00:00
USE_OPENGL=yes
if test "x$NEED_GLX" != "xno"; then
USE_GLX=yes
2014-03-16 14:08:23 +00:00
fi
fi
fi
fi
2015-10-02 11:31:39 +00:00
dnl check for DMABUF support
HAVE_DRM_FOURCC_HEADER=no
AC_CHECK_HEADER(libdrm/drm_fourcc.h,
HAVE_DRM_FOURCC_HEADER=yes, )
HAVE_GST_ALLOCATORS=no
PKG_CHECK_MODULES(GST_ALLOCATORS, gstreamer-allocators-1.0,
HAVE_GST_ALLOCATORS=yes, )
2016-03-22 07:16:34 +00:00
GST_GL_HAVE_DMABUF=0
2015-10-02 11:31:39 +00:00
if test "x$HAVE_DRM_FOURCC_HEADER" = "xyes" -a \
"x$HAVE_GST_ALLOCATORS" = "xyes" -a \
"x$HAVE_EGL" = "xyes"; then
2016-03-22 07:16:34 +00:00
GST_GL_HAVE_DMABUF=1
2015-10-02 11:31:39 +00:00
fi
2017-02-22 12:55:58 +00:00
dnl check for Vivante DirectVIV support
AC_CHECK_LIB(GLESv2, glTexDirectVIV, [HAVE_VIV_DIRECTVIV=yes], [HAVE_VIV_DIRECTVIV=no])
GST_GL_HAVE_VIV_DIRECTVIV=0
if test "x$HAVE_VIV_DIRECTVIV" = "xyes"; then
GST_GL_HAVE_VIV_DIRECTVIV=1
fi
2014-05-05 10:06:29 +00:00
dnl check if we can include both GL and GLES2 at the same time
2014-11-27 05:17:50 +00:00
if test "x$HAVE_GL" = "xyes" -a "x$HAVE_GLES2" = "xyes"; then
2016-05-03 09:58:00 +00:00
GLES3_H_DEFINE=0
2017-05-11 08:29:58 +00:00
GLES3EXT3_H_DEFINE=0
2016-05-03 09:58:00 +00:00
if test "x$HAVE_GLES3_H" == "xyes"; then
GLES3_H_DEFINE=1
fi
2017-05-11 08:29:58 +00:00
if test "x$HAVE_GLES3EXT3_H" == "xyes"; then
GLES3EXT3_H_DEFINE=1
fi
2014-05-05 10:06:29 +00:00
GL_INCLUDES="
2015-12-16 00:25:16 +00:00
#ifdef __GNUC__
# pragma GCC diagnostic push
# pragma GCC diagnostic ignored \"-Wredundant-decls\"
#endif
2014-05-05 10:30:32 +00:00
#ifndef GL_GLEXT_PROTOTYPES
#define GL_GLEXT_PROTOTYPES 1
#endif
2015-07-05 23:52:06 +00:00
# ifdef HAVE_IOS
2014-05-05 10:30:32 +00:00
# include <OpenGLES/ES2/gl.h>
# include <OpenGLES/ES2/glext.h>
# else
2016-05-03 09:58:00 +00:00
# if $GLES3_H_DEFINE
2016-03-31 08:43:04 +00:00
# include <GLES3/gl3.h>
2017-05-11 08:29:58 +00:00
# if $GLES3EXT3_H_DEFINE
# include <GLES3/gl3ext.h>
# endif
# include <GLES2/gl2ext.h>
2016-05-03 09:58:00 +00:00
# else
# include <GLES2/gl2.h>
# include <GLES2/gl2ext.h>
2016-03-31 08:43:04 +00:00
# endif
2014-05-05 10:30:32 +00:00
# endif
2015-07-05 23:52:06 +00:00
# ifdef __APPLE__
2014-05-05 10:06:29 +00:00
# include <OpenGL/OpenGL.h>
# include <OpenGL/gl.h>
2014-11-16 09:57:55 +00:00
# if MAC_OS_X_VERSION_MAX_ALLOWED >= 1070
2014-11-04 08:52:11 +00:00
# define GL_DO_NOT_WARN_IF_MULTI_GL_VERSION_HEADERS_INCLUDED
# include <OpenGL/gl3.h>
# endif
2014-05-05 10:06:29 +00:00
# else
# include <GL/gl.h>
# if __WIN32__ || _WIN32
# include <GL/glext.h>
# endif
# endif
2015-12-16 00:25:16 +00:00
int main (int argc, char **argv) { return 0; }
2014-05-05 10:06:29 +00:00
"
AC_MSG_CHECKING([whether it is possible to include both GL and GLES2 headers])
2015-12-16 00:25:16 +00:00
save_CFLAGS="$CFLAGS"
CFLAGS="$CFLAGS $GL_CFLAGS $GLES2_CFLAGS $WARNING_CFLAGS $ERROR_CFLAGS"
AC_COMPILE_IFELSE([AC_LANG_SOURCE([[$GL_INCLUDES]], [[
2014-05-05 10:06:29 +00:00
#if !defined(GL_FALSE)
#error Failed to include GL headers
#endif
]])],[ AC_MSG_RESULT(yes)
],[AC_MSG_RESULT(no)
if test "x$NEED_GLES2" = "xyes"; then
2015-03-14 11:01:12 +00:00
if test "x$NEED_GL" = "xyes"; then
2014-05-05 10:06:29 +00:00
AC_MSG_ERROR([Cannot seem to include both GL and GLES2 headers. Try disabling one API])
fi
AC_MSG_WARN([Disabling Desktop GL support])
2014-10-29 09:09:35 +00:00
HAVE_GL=no
2014-11-25 02:33:07 +00:00
USE_OPENGL=no
2014-05-05 10:06:29 +00:00
else
AC_MSG_WARN([Disabling GL|ES 2.0 support])
HAVE_GLES2=no
2016-03-31 08:43:04 +00:00
HAVE_GLES3_H=no
2014-05-05 10:06:29 +00:00
fi
])
2015-12-16 00:25:16 +00:00
CFLAGS="$save_CFLAGS"
2014-05-05 10:06:29 +00:00
fi
2014-11-27 05:17:50 +00:00
#dnl Check for OpenGL
2014-03-16 14:08:23 +00:00
echo host is $host
case $host in
*-android*)
if test "x$NEED_WGL" = "xyes"; then
AC_MSG_ERROR([WGL is not available on Android])
fi
if test "x$NEED_GLX" = "xyes"; then
AC_MSG_ERROR([GLX is not available on Android])
fi
if test "x$NEED_GL" = "xyes"; then
AC_MSG_ERROR([GL is not available on Android])
fi
if test "x$NEED_X11" = "xyes"; then
AC_MSG_ERROR([X11 is not available on Android])
fi
if test "x$NEED_COCOA" = "xyes"; then
AC_MSG_ERROR([Cocoa is not available on Android])
fi
dnl OpenGL|ES 2.0
if test "x$HAVE_GLES2" = "xyes"; then
if test "x$NEED_GLES2" != "xno"; then
GL_LIBS="$GL_LIBS -lGLESv2"
USE_GLES2=yes
fi
fi
dnl EGL
if test "x$HAVE_EGL" = "xyes"; then
if test "x$NEED_EGL" != "xno"; then
GL_LIBS="$GL_LIBS -lEGL"
USE_EGL=yes
fi
fi
if test "x$USE_EGL" != "xyes"; then
AC_MSG_ERROR([Need EGL on Android])
fi
if test "x$USE_GLES2" != "xyes"; then
AC_MSG_ERROR([Need OpenGL|ES 2.0 on Android])
fi
HAVE_WINDOW_ANDROID=yes
;;
*-linux* | *-cygwin* | *-solaris* | *-netbsd* | *-freebsd* | *-openbsd* | *-kfreebsd* | *-dragonflybsd* | *-gnu* )
if test "x$NEED_WGL" = "xyes"; then
AC_MSG_ERROR([WGL is not available on unix])
fi
2016-06-30 14:07:23 +00:00
if test "x$HAVE_X11_XCB" = "xno"; then
2014-03-16 14:08:23 +00:00
if test "x$HAVE_WAYLAND_EGL" = "xno"; then
2014-03-17 14:49:37 +00:00
AC_MSG_WARN([X or Wayland is required for OpenGL support])
2014-03-16 14:08:23 +00:00
fi
fi
dnl check Desktop OpenGL
if test "x$HAVE_GL" = "xyes"; then
if test "x$NEED_GL" != "xno"; then
GL_LIBS="$GL_LIBS -lGL"
fi
fi
dnl OpenGL|ES 2.0
if test "x$HAVE_GLES2" = "xyes"; then
if test "x$NEED_GLES2" != "xno"; then
GL_LIBS="$GL_LIBS -lGLESv2"
USE_GLES2=yes
fi
fi
2016-06-30 14:07:23 +00:00
if test "x$HAVE_X11_XCB" = "xyes" -a "x$HAVE_EGL_RPI" = "xno"; then
2014-03-16 14:08:23 +00:00
if test "x$NEED_X11" != "xno"; then
2016-06-30 14:07:23 +00:00
GL_LIBS="$GL_LIBS $X11_XCB_LIBS"
GL_CFLAGS="$GL_CFLAGS $X11_XCB_CFLAGS"
2014-03-16 14:08:23 +00:00
HAVE_WINDOW_X11=yes
fi
fi
if test "x$HAVE_WAYLAND_EGL" = "xyes"; then
if test "x$NEED_EGL" = "xno" -o "x$HAVE_EGL" = "xno"; then
2014-03-17 14:49:37 +00:00
AC_MSG_WARN([EGL is required by the Wayland backend for OpenGL support])
2014-03-16 14:08:23 +00:00
else
if test "x$NEED_WAYLAND_EGL" != "xno"; then
HAVE_WINDOW_WAYLAND=yes
GL_LIBS="$GL_LIBS $WAYLAND_EGL_LIBS"
GL_CFLAGS="$GL_CFLAGS $WAYLAND_EGL_CFLAGS"
fi
fi
fi
2017-02-17 10:24:58 +00:00
if test "x$HAVE_VIV_FB_EGL" = "xyes"; then
if test "x$NEED_EGL" = "xno" -o "x$HAVE_EGL" = "xno"; then
AC_MSG_WARN([EGL is required by the Vivante EGL FB backend])
else
HAVE_WINDOW_VIV_FB=yes
GL_LIBS="$GL_LIBS"
GL_CFLAGS="$GL_CFLAGS"
fi
fi
2014-03-16 14:08:23 +00:00
if test "x$HAVE_EGL_RPI" = "xyes"; then
if test "x$NEED_DISPMANX" != "xno"; then
HAVE_WINDOW_DISPMANX=yes
USE_EGL=yes
fi
fi
dnl EGL
if test "x$HAVE_EGL" = "xno"; then
if test "x$HAVE_GL" = "xno"; then
2014-03-17 14:49:37 +00:00
AC_MSG_WARN([Building requires either EGL or GLX for OpenGL support])
2014-03-16 14:08:23 +00:00
fi
else
if test "x$NEED_EGL" != "xno"; then
2017-02-17 10:24:58 +00:00
if test "x$HAVE_WINDOW_WAYLAND" = "xyes" -o "x$HAVE_WINDOW_X11" = "xyes" -o "x$HAVE_WINDOW_DISPMANX" = "xyes" -o "x$HAVE_WINDOW_VIV_FB" = "xyes"; then
2014-04-28 14:47:27 +00:00
GL_LIBS="$GL_LIBS -lEGL $EGL_LIBS"
2014-07-16 13:29:10 +00:00
GL_CFLAGS="$GL_CFLAGS $EGL_CFLAGS"
2014-03-16 14:08:23 +00:00
USE_EGL=yes
fi
fi
fi
;;
2014-04-04 07:19:39 +00:00
*-darwin*)
if test "x$HAVE_IOS" = "xyes"; then
2014-04-12 19:43:50 +00:00
if test "x$NEED_WGL" = "xyes"; then
AC_MSG_ERROR([WGL is not available on iOS])
fi
if test "x$NEED_GLX" = "xyes"; then
AC_MSG_ERROR([GLX is not available on iOS])
fi
if test "x$NEED_GL" = "xyes"; then
AC_MSG_ERROR([GL is not available on iOS])
fi
if test "x$NEED_X11" = "xyes"; then
AC_MSG_ERROR([X11 is not available on iOS])
fi
if test "x$NEED_COCOA" = "xyes"; then
AC_MSG_ERROR([Cocoa is not available on iOS])
fi
if test "x$NEED_EGL" = "xyes"; then
AC_MSG_ERROR([EGL is not available on iOS])
fi
GL_LIBS="$LIBS -framework OpenGLES -framework QuartzCore -framework UIKit -framework CoreGraphics -framework CoreFoundation -framework Foundation"
GL_CFLAGS="$GL_CFLAGS"
USE_GLES2=yes
USE_EAGL=yes
HAVE_WINDOW_EAGL=yes
ac_cv_type_GLsizeiptr=yes
ac_cv_type_GLintptr=yes
ac_cv_type_GLchar=yes
2014-04-04 07:19:39 +00:00
else
dnl Only osx supports cocoa.
if test "x$NEED_WGL" = "xyes"; then
AC_MSG_ERROR([WGL is not available on Mac OS X])
fi
2014-03-16 14:08:23 +00:00
2014-04-04 07:19:39 +00:00
if test "x$NEED_COCOA" != "xno"; then
2015-01-20 11:01:39 +00:00
GL_LIBS="$LIBS -framework OpenGL -framework Cocoa -framework QuartzCore -framework CoreFoundation"
2014-04-04 07:19:39 +00:00
GL_CFLAGS="$GL_CFLAGS"
USE_COCOA=yes
HAVE_WINDOW_COCOA=yes
USE_OPENGL=yes
2014-03-16 14:08:23 +00:00
fi
2014-04-04 07:19:39 +00:00
if test "x$USE_GLX" = "xyes"; then
2016-06-30 14:07:23 +00:00
if test "x$HAVE_X11_XCB" = "xyes"; then
2014-04-04 07:19:39 +00:00
if test "x$NEED_X11" != "xno"; then
2016-06-30 14:07:23 +00:00
GL_LIBS="$GL_LIBS $X11_XCB_LIBS"
GL_CFLAGS="$GL_CFLAGS $X11_XCB_CFLAGS"
2014-04-04 07:19:39 +00:00
HAVE_WINDOW_X11=yes
fi
2014-03-16 14:08:23 +00:00
fi
2014-04-04 07:19:39 +00:00
if test "x$HAVE_GL" = "xyes"; then
if test "x$NEED_GL" != "xno"; then
GL_LIBS="$GL_LIBS -lGL"
fi
USE_OPENGL=yes
2014-03-16 14:08:23 +00:00
fi
fi
2015-07-05 23:52:06 +00:00
if test "x$HAVE_EGL" = "xyes"; then
if test "x$NEED_EGL" != "xno"; then
if test "x$HAVE_WINDOW_X11" = "xyes"; then
GL_LIBS="$GL_LIBS -lEGL $EGL_LIBS"
GL_CFLAGS="$GL_CFLAGS $EGL_CFLAGS"
USE_EGL=yes
fi
fi
fi
dnl OpenGL|ES 2.0
if test "x$HAVE_GLES2" = "xyes"; then
if test "x$NEED_GLES2" != "xno"; then
GL_LIBS="$GL_LIBS -lGLESv2"
USE_GLES2=yes
fi
fi
2014-03-16 14:08:23 +00:00
fi
;;
*-mingw32*)
if test "x$NEED_GLX" = "xyes"; then
AC_MSG_ERROR([GLX is not available on Windows])
fi
if test "x$NEED_GLES2" = "xyes"; then
AC_MSG_ERROR([OpenGL|ES 2.0 is not supported on your platform yet])
fi
2014-03-27 11:41:02 +00:00
if test "x$HAVE_GL" = "xyes"; then
2015-03-14 11:01:12 +00:00
if test "x$NEED_GL" != "xno"; then
2014-03-27 11:41:02 +00:00
if test "x$HAVE_WGL" = "xyes"; then
if test "$NEED_WGL" != "xno"; then
2014-11-27 05:17:50 +00:00
GL_LIBS="$GL_LIBS -lgdi32 -lopengl32"
2014-03-27 11:41:02 +00:00
HAVE_WINDOW_WIN32=yes
USE_OPENGL=yes
USE_WGL=yes
fi
fi
fi
fi
2014-03-16 14:08:23 +00:00
;;
*)
2014-03-17 14:49:37 +00:00
AC_MSG_WARN([Don't know how to check for OpenGL on your platform.])
2014-03-16 14:08:23 +00:00
;;
esac
GL_PLATFORMS=
GL_WINDOWS=
GL_APIS=
GL_CONFIG_DEFINES=
dnl APIs
2014-03-17 17:35:22 +00:00
GST_GL_HAVE_OPENGL=0
GST_GL_HAVE_GLES2=0
GST_GL_HAVE_GLES3=0
2017-05-11 08:29:58 +00:00
GST_GL_HAVE_GLES3EXT3_H=0
2014-03-17 17:35:22 +00:00
2014-03-16 14:08:23 +00:00
if test "x$USE_OPENGL" = "xyes"; then
GL_APIS="gl $GL_APIS"
2014-03-17 17:35:22 +00:00
GST_GL_HAVE_OPENGL=1
2014-03-16 14:08:23 +00:00
fi
if test "x$USE_GLES2" = "xyes"; then
GL_APIS="gles2 $GL_APIS"
2014-03-17 17:35:22 +00:00
GST_GL_HAVE_GLES2=1
2016-03-31 08:43:04 +00:00
if test "x$HAVE_GLES3_H" = "xyes"; then
GST_GL_HAVE_GLES3=1
2017-05-11 08:29:58 +00:00
if test "x$HAVE_GLES3EXT3_H" = "xyes"; then
GST_GL_HAVE_GLES3EXT3_H=1
fi
2016-03-31 08:43:04 +00:00
fi
2014-03-16 14:08:23 +00:00
fi
2014-03-17 17:35:22 +00:00
GL_CONFIG_DEFINES="$GL_CONFIG_DEFINES
#define GST_GL_HAVE_OPENGL $GST_GL_HAVE_OPENGL
#define GST_GL_HAVE_GLES2 $GST_GL_HAVE_GLES2
#define GST_GL_HAVE_GLES3 $GST_GL_HAVE_GLES3
2017-05-11 08:29:58 +00:00
#define GST_GL_HAVE_GLES3EXT3_H $GST_GL_HAVE_GLES3EXT3_H
2014-03-17 17:35:22 +00:00
"
2014-03-16 14:08:23 +00:00
dnl WINDOW's
2014-03-17 17:35:22 +00:00
GST_GL_HAVE_WINDOW_X11=0
GST_GL_HAVE_WINDOW_COCOA=0
GST_GL_HAVE_WINDOW_WIN32=0
GST_GL_HAVE_WINDOW_WAYLAND=0
GST_GL_HAVE_WINDOW_ANDROID=0
2014-03-18 00:11:09 +00:00
GST_GL_HAVE_WINDOW_DISPMANX=0
2014-04-12 19:43:50 +00:00
GST_GL_HAVE_WINDOW_EAGL=0
2017-02-17 10:24:58 +00:00
GST_GL_HAVE_WINDOW_VIV_FB=0
2014-03-17 17:35:22 +00:00
2014-03-16 14:08:23 +00:00
if test "x$HAVE_WINDOW_X11" = "xyes"; then
GL_WINDOWS="x11 $GL_WINDOWS"
2014-03-17 17:35:22 +00:00
GST_GL_HAVE_WINDOW_X11=1
2014-03-16 14:08:23 +00:00
fi
if test "x$HAVE_WINDOW_COCOA" = "xyes"; then
GL_WINDOWS="cocoa $GL_WINDOWS"
2014-03-17 17:35:22 +00:00
GST_GL_HAVE_WINDOW_COCOA=1
2014-03-16 14:08:23 +00:00
fi
if test "x$HAVE_WINDOW_WIN32" = "xyes"; then
GL_WINDOWS="win32 $GL_WINDOWS"
2014-03-17 17:35:22 +00:00
GST_GL_HAVE_WINDOW_WIN32=1
2014-03-16 14:08:23 +00:00
fi
if test "x$HAVE_WINDOW_WAYLAND" = "xyes"; then
GL_WINDOWS="wayland $GL_WINDOWS"
2014-03-17 17:35:22 +00:00
GST_GL_HAVE_WINDOW_WAYLAND=1
2014-03-16 14:08:23 +00:00
fi
if test "x$HAVE_WINDOW_ANDROID" = "xyes"; then
GL_WINDOWS="android $GL_WINDOWS"
2014-03-17 17:35:22 +00:00
GST_GL_HAVE_WINDOW_ANDROID=1
2014-03-16 14:08:23 +00:00
fi
if test "x$HAVE_WINDOW_DISPMANX" = "xyes"; then
GL_WINDOWS="dispmanx $GL_WINDOWS"
2014-03-17 17:35:22 +00:00
GST_GL_HAVE_WINDOW_DISPMANX=1
2014-03-16 14:08:23 +00:00
fi
2014-04-12 19:43:50 +00:00
if test "x$HAVE_WINDOW_EAGL" = "xyes"; then
GL_WINDOWS="eagl $GL_WINDOWS"
GST_GL_HAVE_WINDOW_EAGL=1
fi
2017-02-17 10:24:58 +00:00
if test "x$HAVE_WINDOW_VIV_FB" = "xyes"; then
GL_WINDOWS="viv-fb $GL_WINDOWS"
GST_GL_HAVE_WINDOW_VIV_FB=1
fi
2014-03-16 14:08:23 +00:00
2014-03-17 17:35:22 +00:00
GL_CONFIG_DEFINES="$GL_CONFIG_DEFINES
#define GST_GL_HAVE_WINDOW_X11 $GST_GL_HAVE_WINDOW_X11
#define GST_GL_HAVE_WINDOW_COCOA $GST_GL_HAVE_WINDOW_COCOA
#define GST_GL_HAVE_WINDOW_WIN32 $GST_GL_HAVE_WINDOW_WIN32
#define GST_GL_HAVE_WINDOW_WAYLAND $GST_GL_HAVE_WINDOW_WAYLAND
#define GST_GL_HAVE_WINDOW_ANDROID $GST_GL_HAVE_WINDOW_ANDROID
#define GST_GL_HAVE_WINDOW_DISPMANX $GST_GL_HAVE_WINDOW_DISPMANX
2014-04-12 19:43:50 +00:00
#define GST_GL_HAVE_WINDOW_EAGL $GST_GL_HAVE_WINDOW_EAGL
2017-02-17 10:24:58 +00:00
#define GST_GL_HAVE_WINDOW_VIV_FB $GST_GL_HAVE_WINDOW_VIV_FB
2014-03-17 17:35:22 +00:00
"
2014-03-16 14:08:23 +00:00
dnl PLATFORM's
2014-03-17 17:35:22 +00:00
GST_GL_HAVE_PLATFORM_EGL=0
GST_GL_HAVE_PLATFORM_GLX=0
GST_GL_HAVE_PLATFORM_WGL=0
2014-05-27 07:46:16 +00:00
GST_GL_HAVE_PLATFORM_CGL=0
2014-04-12 19:43:50 +00:00
GST_GL_HAVE_PLATFORM_EAGL=0
2014-03-17 17:35:22 +00:00
2014-03-16 14:08:23 +00:00
if test "x$USE_EGL" = "xyes"; then
GL_PLATFORMS="egl $GL_PLATFORMS"
2014-03-17 17:35:22 +00:00
GST_GL_HAVE_PLATFORM_EGL=1
2014-03-16 14:08:23 +00:00
fi
if test "x$USE_GLX" = "xyes"; then
GL_PLATFORMS="glx $GL_PLATFORMS"
2014-03-17 17:35:22 +00:00
GST_GL_HAVE_PLATFORM_GLX=1
2014-03-16 14:08:23 +00:00
fi
if test "x$USE_WGL" = "xyes"; then
GL_PLATFORMS="wgl $GL_PLATFORMS"
2014-03-17 17:35:22 +00:00
GST_GL_HAVE_PLATFORM_WGL=1
2014-03-16 14:08:23 +00:00
fi
if test "x$USE_COCOA" = "xyes"; then
2014-05-27 07:46:16 +00:00
GL_PLATFORMS="cgl $GL_PLATFORMS"
GST_GL_HAVE_PLATFORM_CGL=1
2014-03-16 14:08:23 +00:00
fi
2014-04-12 19:43:50 +00:00
if test "x$USE_EAGL" = "xyes"; then
GL_PLATFORMS="eagl $GL_PLATFORMS"
GST_GL_HAVE_PLATFORM_EAGL=1
fi
2014-03-16 14:08:23 +00:00
2014-03-17 17:35:22 +00:00
GL_CONFIG_DEFINES="$GL_CONFIG_DEFINES
#define GST_GL_HAVE_PLATFORM_EGL $GST_GL_HAVE_PLATFORM_EGL
#define GST_GL_HAVE_PLATFORM_GLX $GST_GL_HAVE_PLATFORM_GLX
#define GST_GL_HAVE_PLATFORM_WGL $GST_GL_HAVE_PLATFORM_WGL
2014-05-27 07:46:16 +00:00
#define GST_GL_HAVE_PLATFORM_CGL $GST_GL_HAVE_PLATFORM_CGL
2014-04-12 19:43:50 +00:00
#define GST_GL_HAVE_PLATFORM_EAGL $GST_GL_HAVE_PLATFORM_EAGL
2014-03-17 17:35:22 +00:00
"
2016-03-22 07:16:34 +00:00
GL_CONFIG_DEFINES="$GL_CONFIG_DEFINES
#define GST_GL_HAVE_DMABUF $GST_GL_HAVE_DMABUF
2017-02-22 12:55:58 +00:00
#define GST_GL_HAVE_VIV_DIRECTVIV $GST_GL_HAVE_VIV_DIRECTVIV
2016-03-22 07:16:34 +00:00
"
2014-03-16 14:08:23 +00:00
dnl Check for no platforms/window systems
if test "x$GL_APIS" = "x"; then
2014-03-17 14:49:37 +00:00
AC_MSG_WARN([Either OpenGL or OpenGL|ES is required for OpenGL support])
2014-03-16 14:08:23 +00:00
fi
if test "x$GL_PLATFORMS" = "x"; then
2014-03-17 14:49:37 +00:00
AC_MSG_WARN([Could not find any OpenGL platforms to use such as CGL, WGL or GLX])
2014-03-16 14:08:23 +00:00
fi
if test "x$GL_WINDOWS" = "x"; then
2014-03-17 14:49:37 +00:00
AC_MSG_WARN([Could not find any window systems to use such as Cocoa, Win32API or X11])
fi
if test "x$GL_APIS" = "x" -o "x$GL_PLATFORMS" = "x" -o "x$GL_WINDOWS" = "x"; then
GL_LIBS=
GL_CFLAGS=
GL_OBJCFLAGS=
USE_OPENGL=no
USE_GLES2=no
USE_GLX=no
USE_EGL=no
USE_WGL=no
USE_COCOA=no
2014-04-15 16:58:34 +00:00
USE_EGL_MALI=no
2014-03-17 14:49:37 +00:00
USE_EGL_RPI=no
2014-04-12 19:43:50 +00:00
USE_EAGL=no
2014-03-17 14:49:37 +00:00
HAVE_WINDOW_X11=no
HAVE_WINDOW_WIN32=no
HAVE_WINDOW_DISPMANX=no
HAVE_WINDOW_WAYLAND=no
HAVE_WINDOW_ANDROID=no
2014-04-12 19:43:50 +00:00
HAVE_WINDOW_COCOA=no
HAVE_WINDOW_EAGL=no
2017-02-17 10:24:58 +00:00
HAVE_WINDOW_VIV_FB=no
2014-03-16 14:08:23 +00:00
fi
2016-11-17 06:15:55 +00:00
AC_SUBST(GL_APIS)
AC_SUBST(GL_PLATFORMS)
AC_SUBST(GL_WINDOWS)
2014-03-16 14:08:23 +00:00
AC_SUBST(GL_LIBS)
AC_SUBST(GL_CFLAGS)
AC_SUBST(GL_OBJCFLAGS)
AC_SUBST(USE_OPENGL)
AC_SUBST(USE_GLES2)
AM_CONDITIONAL(HAVE_WINDOW_X11, test "x$HAVE_WINDOW_X11" = "xyes")
AM_CONDITIONAL(HAVE_WINDOW_COCOA, test "x$HAVE_WINDOW_COCOA" = "xyes")
AM_CONDITIONAL(HAVE_WINDOW_WIN32, test "x$HAVE_WINDOW_WIN32" = "xyes")
AM_CONDITIONAL(HAVE_WINDOW_DISPMANX, test "x$HAVE_WINDOW_DISPMANX" = "xyes")
AM_CONDITIONAL(HAVE_WINDOW_WAYLAND, test "x$HAVE_WINDOW_WAYLAND" = "xyes")
AM_CONDITIONAL(HAVE_WINDOW_ANDROID, test "x$HAVE_WINDOW_ANDROID" = "xyes")
2014-04-12 19:43:50 +00:00
AM_CONDITIONAL(HAVE_WINDOW_EAGL, test "x$HAVE_WINDOW_EAGL" = "xyes")
2017-02-17 10:24:58 +00:00
AM_CONDITIONAL(HAVE_WINDOW_VIV_FB, test "x$HAVE_WINDOW_VIV_FB" = "xyes")
2014-03-16 14:08:23 +00:00
AM_CONDITIONAL(USE_OPENGL, test "x$USE_OPENGL" = "xyes")
AM_CONDITIONAL(USE_GLES2, test "x$USE_GLES2" = "xyes")
AM_CONDITIONAL(USE_GLX, test "x$USE_GLX" = "xyes")
AM_CONDITIONAL(USE_EGL, test "x$USE_EGL" = "xyes")
AM_CONDITIONAL(USE_WGL, test "x$USE_WGL" = "xyes")
AM_CONDITIONAL(USE_COCOA, test "x$USE_COCOA" = "xyes")
2014-04-15 16:58:34 +00:00
AM_CONDITIONAL(USE_EGL_MALI, test "x$USE_EGL_MALI" = "xyes")
2014-03-17 14:49:37 +00:00
AM_CONDITIONAL(USE_EGL_RPI, test "x$USE_EGL_RPI" = "xyes")
2014-04-12 19:43:50 +00:00
AM_CONDITIONAL(USE_EAGL, test "x$USE_EAGL" = "xyes")
2014-03-16 14:08:23 +00:00
2014-03-23 21:55:34 +00:00
AM_CONDITIONAL(HAVE_GST_GL, test "x$USE_OPENGL" = "xyes" -o "x$USE_GLES2" = "xyes")
2014-03-16 14:08:23 +00:00
dnl Check for some types that are not always present
GL_INCLUDES=""
if test "x$USE_GLES2" = "xyes"; then
GL_INCLUDES="$GL_INCLUDES
2014-05-04 20:22:14 +00:00
#ifndef GL_GLEXT_PROTOTYPES
#define GL_GLEXT_PROTOTYPES 1
#endif
2015-07-05 23:52:06 +00:00
# ifdef HAVE_IOS
2014-05-04 20:22:14 +00:00
# include <OpenGLES/ES2/gl.h>
# include <OpenGLES/ES2/glext.h>
# else
2016-05-03 09:58:00 +00:00
# if $GST_GL_HAVE_GLES3
2016-03-31 08:43:04 +00:00
# include <GLES3/gl3.h>
2017-05-11 08:29:58 +00:00
# if $GST_GL_HAVE_GLES3EXT3_H
# include <GLES3/gl3ext.h>
# endif
# include <GLES2/gl2ext.h>
2016-05-03 09:58:00 +00:00
# else
# include <GLES2/gl2.h>
# include <GLES2/gl2ext.h>
2016-03-31 08:43:04 +00:00
# endif
2014-05-04 20:22:14 +00:00
# endif
2014-03-16 14:08:23 +00:00
"
fi
if test "x$USE_OPENGL" = "xyes"; then
GL_INCLUDES="$GL_INCLUDES
2015-07-05 23:52:06 +00:00
# ifdef __APPLE__
2014-03-16 14:08:23 +00:00
# include <OpenGL/OpenGL.h>
# include <OpenGL/gl.h>
# else
# include <GL/gl.h>
# if __WIN32__ || _WIN32
# include <GL/glext.h>
# endif
# endif
"
fi
2014-03-17 17:35:22 +00:00
GST_GL_HAVE_GLEGLIMAGEOES=0
GST_GL_HAVE_GLCHAR=0
GST_GL_HAVE_GLSIZEIPTR=0
GST_GL_HAVE_GLINTPTR=0
2014-10-17 13:22:24 +00:00
GST_GL_HAVE_GLSYNC=0
2014-11-28 02:04:21 +00:00
GST_GL_HAVE_GLUINT64=0
2016-01-15 05:07:27 +00:00
GST_GL_HAVE_GLINT64=0
2016-08-16 06:51:02 +00:00
GST_GL_HAVE_EGLATTRIB=0
2014-03-17 17:35:22 +00:00
2014-07-16 13:31:27 +00:00
old_CFLAGS=$CFLAGS
CFLAGS="$GL_CFLAGS $CFLAGS"
2014-03-16 14:08:23 +00:00
AC_CHECK_TYPES(GLeglImageOES, [], [], [[$GL_INCLUDES]])
if test "x$ac_cv_type_GLeglImageOES" = "xyes"; then
2014-03-17 17:35:22 +00:00
GST_GL_HAVE_GLEGLIMAGEOES=1
2014-03-16 14:08:23 +00:00
fi
AC_CHECK_TYPES(GLchar, [], [], [[$GL_INCLUDES]])
if test "x$ac_cv_type_GLchar" = "xyes"; then
2014-03-17 17:35:22 +00:00
GST_GL_HAVE_GLCHAR=1
2014-03-16 14:08:23 +00:00
fi
AC_CHECK_TYPES(GLsizeiptr, [], [], [[$GL_INCLUDES]])
if test "x$ac_cv_type_GLsizeiptr" = "xyes"; then
2014-03-17 17:35:22 +00:00
GST_GL_HAVE_GLSIZEIPTR=1
2014-03-16 14:08:23 +00:00
fi
AC_CHECK_TYPES(GLintptr, [], [], [[$GL_INCLUDES]])
if test "x$ac_cv_type_GLintptr" = "xyes"; then
2014-03-17 17:35:22 +00:00
GST_GL_HAVE_GLINTPTR=1
2014-03-16 14:08:23 +00:00
fi
2014-10-17 13:22:24 +00:00
AC_CHECK_TYPES(GLsync, [], [], [[$GL_INCLUDES]])
if test "x$ac_cv_type_GLsync" = "xyes"; then
GST_GL_HAVE_GLSYNC=1
fi
2014-11-28 02:04:21 +00:00
AC_CHECK_TYPES(GLuint64, [], [], [[$GL_INCLUDES]])
if test "x$ac_cv_type_GLuint64" = "xyes"; then
GST_GL_HAVE_GLUINT64=1
fi
2016-01-15 05:07:27 +00:00
AC_CHECK_TYPES(GLint64, [], [], [[$GL_INCLUDES]])
if test "x$ac_cv_type_GLint64" = "xyes"; then
GST_GL_HAVE_GLINT64=1
fi
2016-08-16 06:51:02 +00:00
if test "x$USE_EGL" = "xyes"; then
EGL_INCLUDES="$GL_INCLUDES
#include <EGL/egl.h>
#include <EGL/eglext.h>
"
AC_CHECK_TYPES(EGLAttrib, [], [], [[$EGL_INCLUDES]])
if test "x$ac_cv_type_EGLAttrib" = "xyes"; then
GST_GL_HAVE_EGLATTRIB=1
fi
fi
2014-07-16 13:31:27 +00:00
CFLAGS=$old_CFLAGS
2014-03-17 17:35:22 +00:00
GL_CONFIG_DEFINES="$GL_CONFIG_DEFINES
#define GST_GL_HAVE_GLEGLIMAGEOES $GST_GL_HAVE_GLEGLIMAGEOES
#define GST_GL_HAVE_GLCHAR $GST_GL_HAVE_GLCHAR
#define GST_GL_HAVE_GLSIZEIPTR $GST_GL_HAVE_GLSIZEIPTR
#define GST_GL_HAVE_GLINTPTR $GST_GL_HAVE_GLINTPTR
2014-10-17 13:22:24 +00:00
#define GST_GL_HAVE_GLSYNC $GST_GL_HAVE_GLSYNC
2014-11-28 02:04:21 +00:00
#define GST_GL_HAVE_GLUINT64 $GST_GL_HAVE_GLUINT64
2016-01-15 05:07:27 +00:00
#define GST_GL_HAVE_GLINT64 $GST_GL_HAVE_GLINT64
2016-08-16 06:51:02 +00:00
#define GST_GL_HAVE_EGLATTRIB $GST_GL_HAVE_EGLATTRIB
2014-03-17 17:35:22 +00:00
"
2014-03-16 14:08:23 +00:00
AC_CONFIG_COMMANDS([gst-libs/gst/gl/gstglconfig.h], [
outfile=gstglconfig.h-tmp
cat > $outfile <<\_______EOF
/* gstglconfig.h
*
* This is a generated file. Please modify `configure.ac'
*/
#ifndef __GST_GL_CONFIG_H__
#define __GST_GL_CONFIG_H__
#include <gst/gst.h>
G_BEGIN_DECLS
_______EOF
cat >>$outfile <<_______EOF
$gl_config_defines
_______EOF
cat >>$outfile <<_______EOF
G_END_DECLS
#endif /* __GST_GL_CONFIG_H__ */
_______EOF
if cmp -s $outfile gst-libs/gst/gl/gstglconfig.h; then
AC_MSG_NOTICE([gst-libs/gst/gl/gstglconfig.h is unchanged])
rm -f $outfile
else
mv $outfile gst-libs/gst/gl/gstglconfig.h
fi
],[
gl_config_defines='$GL_CONFIG_DEFINES'
])
dnl libpng is optional
PKG_CHECK_MODULES(LIBPNG, libpng >= 1.0, HAVE_PNG=yes, HAVE_PNG=no)
if test "x$HAVE_PNG" = "xyes"; then
AC_DEFINE(HAVE_PNG, [1] , [Use libpng])
fi
AC_SUBST(HAVE_PNG)
AC_SUBST(LIBPNG_LIBS)
AC_SUBST(LIBPNG_CFLAGS)
AM_CONDITIONAL(HAVE_PNG, test "x$HAVE_PNG" = "xyes")
dnl libjpeg is optional
AC_ARG_WITH(jpeg-mmx, [ --with-jpeg-mmx, path to MMX'ified JPEG library])
OLD_LIBS="$LIBS"
if test x$with_jpeg_mmx != x; then
LIBS="$LIBS -L$with_jpeg_mmx"
fi
AC_CHECK_LIB(jpeg-mmx, jpeg_set_defaults, HAVE_JPEG="yes", HAVE_JPEG="no")
JPEG_LIBS="$LIBS -ljpeg-mmx"
LIBS="$OLD_LIBS"
if test x$HAVE_JPEG != xyes; then
JPEG_LIBS="-ljpeg"
AC_CHECK_LIB(jpeg, jpeg_set_defaults, HAVE_JPEG="yes", HAVE_JPEG="no")
fi
if test x$HAVE_JPEG = xyes; then
AC_DEFINE(HAVE_JPEG, [1], [Use libjpeg])
else
AC_DEFINE(HAVE_JPEG, [0], [Use libjpeg])
JPEG_LIBS=
fi
AC_SUBST(JPEG_LIBS)
AC_SUBST(HAVE_JPEG)
AM_CONDITIONAL(HAVE_JPEG, test "x$HAVE_JPEG" = "xyes")
2015-10-24 06:29:05 +00:00
dnl Vulkan
2016-04-10 07:46:15 +00:00
PKG_CHECK_MODULES(XCB, xcb >= 1.10, GST_VULKAN_HAVE_WINDOW_XCB=1, GST_VULKAN_HAVE_WINDOW_XCB=0)
AM_CONDITIONAL(USE_XCB, test "x$GST_VULKAN_HAVE_WINDOW_XCB" = "x1")
2015-10-24 06:29:05 +00:00
2016-11-17 19:19:54 +00:00
PKG_CHECK_MODULES(VULKAN_WAYLAND, wayland-client >= 1.4, GST_VULKAN_HAVE_WINDOW_WAYLAND=1, GST_VULKAN_HAVE_WINDOW_WAYLAND=0)
2016-04-10 07:46:15 +00:00
AM_CONDITIONAL(USE_WAYLAND, test "x$GST_VULKAN_HAVE_WINDOW_WAYLAND" = "x1")
VULKAN_CONFIG_DEFINES="
#define GST_VULKAN_HAVE_WINDOW_XCB $GST_VULKAN_HAVE_WINDOW_XCB
#define GST_VULKAN_HAVE_WINDOW_WAYLAND $GST_VULKAN_HAVE_WINDOW_WAYLAND"
2015-10-24 06:29:05 +00:00
AC_CONFIG_COMMANDS([ext/vulkan/vkconfig.h], [
outfile=vkconfig.h-tmp
cat > $outfile <<\_______EOF
/* vkconfig.h
*
* This is a generated file. Please modify `configure.ac'
*/
#ifndef __GST_VULKAN_CONFIG_H__
#define __GST_VULKAN_CONFIG_H__
#include <gst/gst.h>
G_BEGIN_DECLS
_______EOF
cat >>$outfile <<_______EOF
$vulkan_config_defines
_______EOF
cat >>$outfile <<_______EOF
G_END_DECLS
#endif /* __GST_VULKAN_CONFIG_H__ */
_______EOF
if cmp -s $outfile ext/vulkan/vkconfig.h; then
AC_MSG_NOTICE([ext/vulkan/vkconfig.h is unchanged])
rm -f $outfile
else
mv $outfile ext/vulkan/vkconfig.h
fi
],[
vulkan_config_defines='$VULKAN_CONFIG_DEFINES'
])
2014-03-16 14:08:23 +00:00
2006-04-02 09:33:12 +00:00
dnl *** sys plug-ins ***
2005-05-07 18:50:39 +00:00
2009-07-29 13:35:03 +00:00
dnl DirectSound
translit(dnm, m, l) AM_CONDITIONAL(USE_DIRECTSOUND, true)
2009-08-26 00:18:00 +00:00
AG_GST_CHECK_FEATURE(DIRECTSOUND, [DirectSound], directsoundsrc, [
HAVE_DIRECTSOUND="no"
save_CFLAGS="$CFLAGS"
save_LDFLAGS="$LDFLAGS"
save_LIBS="$LIBS"
CFLAGS="$CFLAGS $DIRECTX_CFLAGS"
LDFLAGS="$LDFLAGS $DIRECTX_LDFLAGS"
2015-03-31 09:53:55 +00:00
LIBS="$LIBS -lwinmm -ldsound -ldxerr9 -luser32"
2009-08-26 00:18:00 +00:00
AC_MSG_CHECKING(for DirectSound LDFLAGS)
2012-03-09 17:16:24 +00:00
AC_LINK_IFELSE([AC_LANG_PROGRAM([[
2009-08-26 00:18:00 +00:00
#include <windows.h>
#include <dxerr9.h>
#include <dsound.h>
2015-03-31 09:53:55 +00:00
#include <mmsystem.h>
2012-03-09 17:16:24 +00:00
]], [[
2009-08-26 00:18:00 +00:00
DXGetErrorString9 (0);
DirectSoundCreate(NULL, NULL, NULL);
2012-03-09 17:16:24 +00:00
]])],
2009-08-26 00:18:00 +00:00
[HAVE_DIRECTSOUND="yes"],
[HAVE_DIRECTSOUND="no"])
AC_MSG_RESULT($HAVE_DIRECTSOUND)
CFLAGS=$save_CFLAGS
LDFLAGS=$save_LDFLAGS
LIBS=$save_LIBS
if test "x$HAVE_DIRECTSOUND" = "xyes"; then
dnl this is much more than we want
2015-03-31 09:53:55 +00:00
DIRECTSOUND_LIBS="-lwinmm -ldsound -ldxerr9 -luser32"
2009-08-26 00:18:00 +00:00
AC_SUBST(DIRECTX_CFLAGS)
AC_SUBST(DIRECTX_LDFLAGS)
AC_SUBST(DIRECTSOUND_LIBS)
fi
AC_SUBST(HAVE_DIRECTSOUND)
])
2009-07-29 13:35:03 +00:00
2012-11-30 10:37:37 +00:00
dnl WASAPI
translit(dnm, m, l) AM_CONDITIONAL(USE_WASAPI, true)
AG_GST_CHECK_FEATURE(WASAPI, [WASAPI plug-in], wasapi, [
HAVE_WASAPI="no"
save_CFLAGS="$CFLAGS"
save_LDFLAGS="$LDFLAGS"
save_LIBS="$LIBS"
CFLAGS="$CFLAGS $DIRECTX_CFLAGS"
LDFLAGS="$LDFLAGS $DIRECTX_LDFLAGS"
LIBS="$LIBS -lole32 -lwinmm -lksuser"
AC_MSG_CHECKING(for WASAPI LDFLAGS)
2012-11-30 19:54:11 +00:00
AC_LINK_IFELSE([AC_LANG_PROGRAM([[
2012-11-30 10:37:37 +00:00
#include <windows.h>
#include <stdio.h>
#include <mmsystem.h>
#include <mmdeviceapi.h>
2012-11-30 19:54:11 +00:00
]], [[
2012-11-30 10:37:37 +00:00
int main ()
{
HRESULT hr = S_OK;
hr = CoInitialize(NULL);
if (FAILED(hr)) {
printf("CoInitialize failed: hr = 0x%08x", hr);
return __LINE__;
}
int result = 0;
// result = do_everything(argc, argv);
2014-03-17 11:00:09 +00:00
2012-11-30 10:37:37 +00:00
CoUninitialize();
return result;
}
2012-11-30 19:54:11 +00:00
]])],
2012-11-30 10:37:37 +00:00
[HAVE_WASAPI="yes"],
[HAVE_WASAPI="no"])
AC_MSG_RESULT($HAVE_WASAPI)
CFLAGS=$save_CFLAGS
LDFLAGS=$save_LDFLAGS
LIBS=$save_LIBS
if test "x$HAVE_WASAPI" = "xyes"; then
WASAPI_LIBS="-lole32 -lwinmm -lksuser"
AC_SUBST(WASAPI_LIBS)
fi
AC_SUBST(HAVE_WASAPI)
])
2011-06-05 01:43:45 +00:00
dnl Direct3D
translit(dnm, m, l) AM_CONDITIONAL(USE_DIRECT3D, true)
AG_GST_CHECK_FEATURE(DIRECT3D, [Direct3D plug-in], direct3dsink, [
HAVE_DIRECT3D="no"
save_CFLAGS="$CFLAGS"
save_LDFLAGS="$LDFLAGS"
save_LIBS="$LIBS"
CFLAGS="$CFLAGS $DIRECTX_CFLAGS"
LDFLAGS="$LDFLAGS $DIRECTX_LDFLAGS"
2011-06-07 10:55:38 +00:00
LIBS="$LIBS -ld3d9 -lgdi32"
2011-06-05 01:43:45 +00:00
AC_MSG_CHECKING(for Direct3D LDFLAGS)
2012-03-09 17:16:24 +00:00
AC_LINK_IFELSE([AC_LANG_PROGRAM([[
2011-06-05 01:43:45 +00:00
#include <windows.h>
2011-06-07 10:55:38 +00:00
#include <d3d9.h>
2012-03-09 17:16:24 +00:00
]], [[
2011-06-07 10:55:38 +00:00
Direct3DCreate9(D3D_SDK_VERSION);
2012-03-09 17:16:24 +00:00
]])],
2011-06-05 01:43:45 +00:00
[HAVE_DIRECT3D="yes"],
[HAVE_DIRECT3D="no"])
AC_MSG_RESULT($HAVE_DIRECT3D)
CFLAGS=$save_CFLAGS
LDFLAGS=$save_LDFLAGS
LIBS=$save_LIBS
if test "x$HAVE_DIRECT3D" = "xyes"; then
2012-12-22 11:05:14 +00:00
DIRECT3D_LIBS="-ld3d9 -lgdi32"
2011-06-05 01:43:45 +00:00
AC_SUBST(DIRECT3D_LIBS)
fi
AC_SUBST(HAVE_DIRECT3D)
])
2013-06-20 20:12:11 +00:00
dnl winscreencap
translit(dnm, m, l) AM_CONDITIONAL(USE_WINSCREENCAP, true)
AG_GST_CHECK_FEATURE(WINSCREENCAP, [winscreencap plug-in], winscreencap, [
HAVE_WINSCREENCAP="no"
2012-12-11 14:19:41 +00:00
save_CFLAGS="$CFLAGS"
save_LDFLAGS="$LDFLAGS"
2012-03-14 09:24:05 +00:00
save_LIBS="$LIBS"
2012-12-11 14:19:41 +00:00
CFLAGS="$CFLAGS $DIRECTX_CFLAGS"
LDFLAGS="$LDFLAGS $DIRECTX_LDFLAGS"
2012-03-14 09:24:05 +00:00
LIBS="$LIBS -ld3d9 -lgdi32"
2013-06-20 20:12:11 +00:00
AC_MSG_CHECKING(for Direct3D LDFLAGS)
2012-12-11 15:00:15 +00:00
AC_LINK_IFELSE([AC_LANG_PROGRAM([[
2012-03-14 09:24:05 +00:00
#include <windows.h>
#include <d3d9.h>
2012-12-11 15:00:15 +00:00
]], [[
2012-03-14 09:24:05 +00:00
Direct3DCreate9(D3D_SDK_VERSION);
2012-12-11 15:00:15 +00:00
]])],
2013-06-20 20:12:11 +00:00
[HAVE_WINSCREENCAP="yes"],
[HAVE_WINSCREENCAP="no"])
AC_MSG_RESULT($HAVE_WINSCREENCAP)
2012-12-11 14:19:41 +00:00
CFLAGS=$save_CFLAGS
LDFLAGS=$save_LDFLAGS
2012-03-14 09:24:05 +00:00
LIBS=$save_LIBS
2013-06-20 20:12:11 +00:00
if test "x$HAVE_WINSCREENCAP" = "xyes"; then
WINSCREENCAP_LIBS="-ld3d9 -lgdi32"
AC_SUBST(WINSCREENCAP_LIBS)
2012-03-14 09:24:05 +00:00
fi
2013-06-20 20:12:11 +00:00
AC_SUBST(HAVE_WINSCREENCAP)
2012-03-14 09:24:05 +00:00
])
2014-02-16 09:09:18 +00:00
dnl winks
translit(dnm, m, l) AM_CONDITIONAL(USE_WINKS, true)
AG_GST_CHECK_FEATURE(WINKS, [Winks plug-in], winks, [
HAVE_WINKS="no"
2012-08-07 14:53:02 +00:00
save_CFLAGS="$CFLAGS"
save_LDFLAGS="$LDFLAGS"
save_LIBS="$LIBS"
CFLAGS="$CFLAGS $DIRECTX_CFLAGS"
LDFLAGS="$LDFLAGS $DIRECTX_LDFLAGS"
LIBS="$LIBS -lole32 -luuid -lstrmiids"
2014-02-16 09:09:18 +00:00
AC_MSG_CHECKING(for Winks LDFLAGS)
2012-08-15 22:28:09 +00:00
AC_LINK_IFELSE([AC_LANG_PROGRAM([[
2012-08-07 14:53:02 +00:00
#include <windows.h>
#include <strmif.h>
#include <uuids.h>
2014-02-10 08:21:04 +00:00
]], [[
2012-08-07 14:53:02 +00:00
int main () {
IGraphBuilder *pGraph = NULL;
HRESULT hr = CoInitialize(NULL);
2014-03-17 11:00:09 +00:00
hr = CoCreateInstance(&CLSID_FilterGraph, NULL, CLSCTX_INPROC_SERVER,
2012-08-07 14:53:02 +00:00
&IID_IGraphBuilder, (void **)&pGraph);
return 0;
}
2012-08-15 22:28:09 +00:00
]])],
2014-02-16 09:09:18 +00:00
[HAVE_WINKS="yes"],
[HAVE_WINKS="no"])
AC_MSG_RESULT($HAVE_WINKS)
2012-08-07 14:53:02 +00:00
CFLAGS=$save_CFLAGS
LDFLAGS=$save_LDFLAGS
LIBS=$save_LIBS
2014-02-16 09:09:18 +00:00
if test "x$HAVE_WINKS" = "xyes"; then
2012-08-07 14:53:02 +00:00
dnl this is much more than we want
2014-02-16 09:09:18 +00:00
WINKS_LIBS="-ldxguid -lole32 -luuid -lstrmiids -lksuser -lsetupapi"
2012-08-07 14:53:02 +00:00
AC_SUBST(DIRECTX_CFLAGS)
AC_SUBST(DIRECTX_LDFLAGS)
2014-02-16 09:09:18 +00:00
AC_SUBST(WINKS_LIBS)
2012-08-07 14:53:02 +00:00
fi
2014-02-16 09:09:18 +00:00
AC_SUBST(HAVE_WINKS)
2012-08-07 14:53:02 +00:00
])
2012-10-15 13:53:12 +00:00
dnl *** Android Media ***
translit(dnm, m, l) AM_CONDITIONAL(USE_ANDROID_MEDIA, true)
HAVE_ANDROID_MEDIA="no"
AG_GST_CHECK_FEATURE(ANDROID_MEDIA, [Android Media], androidmedia, [
case "$host" in
*android*)
AC_CHECK_HEADER(jni.h, HAVE_ANDROID_MEDIA="yes", HAVE_ANDROID_MEDIA="no")
;;
*)
HAVE_ANDROID_MEDIA="no"
;;
2012-10-15 14:05:39 +00:00
esac
2012-10-15 13:53:12 +00:00
])
2010-10-27 17:30:11 +00:00
dnl *** AppleMedia (OS X and iOS) ***
translit(dnm, m, l) AM_CONDITIONAL(USE_APPLE_MEDIA, true)
HAVE_APPLE_MEDIA="no"
dnl SystemConfiguration.h is common to OS X and iOS, so we check for that
AG_GST_CHECK_FEATURE(APPLE_MEDIA, [Apple video], applemedia, [
AC_CHECK_HEADER(SystemConfiguration/SystemConfiguration.h, HAVE_APPLE_MEDIA="yes", HAVE_APPLE_MEDIA="no")
2014-02-03 02:17:06 +00:00
dnl OSX 10.7 and earlier lack VideoToolbox/VideoToolbox.h
if test "x$HAVE_IOS" = "xno"; then
AC_CHECK_HEADER(VideoToolbox/VideoToolbox.h,, HAVE_APPLE_MEDIA="no")
fi
2010-10-27 17:30:11 +00:00
])
2014-02-03 02:17:06 +00:00
2010-10-27 17:30:11 +00:00
dnl in case header SystemConfiguration/SystemConfiguration.h is found on other platforms
case "$host" in
*-*darwin*)
;;
*)
HAVE_APPLE_MEDIA="no"
;;
esac
2013-04-15 21:40:09 +00:00
2013-01-09 18:10:30 +00:00
dnl *** bluez ***
translit(dnm, m, l) AM_CONDITIONAL(USE_BLUEZ, true)
AG_GST_CHECK_FEATURE(BLUEZ, [Bluez], bluez, [
2015-07-03 13:54:58 +00:00
PKG_CHECK_MODULES([BLUEZ5], [bluez >= 5.0], [
PKG_CHECK_MODULES([GIO_UNIX], gio-unix-2.0 > 2.24, [
AC_CHECK_PROG([GDBUS_CODEGEN],[gdbus-codegen],[gdbus-codegen])
HAVE_BLUEZ=yes
AC_DEFINE(HAVE_BLUEZ5,[1],[Bluez5 detected])
2014-12-09 16:38:55 +00:00
], [
HAVE_BLUEZ=no
])
2015-07-03 13:54:58 +00:00
], [
HAVE_BLUEZ=no
2013-04-01 21:38:52 +00:00
])
2013-01-09 18:10:30 +00:00
])
2011-04-17 02:42:00 +00:00
dnl *** OS/X AVCVideoServices ***
translit(dnm, m, l) AM_CONDITIONAL(USE_AVC, true)
HAVE_AVC="no"
AG_GST_CHECK_FEATURE(AVC, [AVC Video Services], avcsrc, [
2011-04-18 19:28:52 +00:00
AC_LANG_PUSH([C++])
save_CPPFLAGS="$CPPFLAGS"
CPPFLAGS="$CPPFLAGS -framework AVCVideoServices -framework CoreFoundation"
save_LIBS="$LIBS"
LIBS="$LIBS -framework AVCVideoServices -framework CoreFoundation"
2012-11-07 20:50:25 +00:00
AC_LINK_IFELSE([AC_LANG_PROGRAM([[]], [[]])],[HAVE_AVC=yes],[HAVE_AVC=no])
2011-04-18 19:28:52 +00:00
LIBS=$save_LIBS
CPPFLAGS=$save_CPPFLAGS
AC_LANG_POP([C++])
2011-04-17 02:42:00 +00:00
])
dnl in case header AVCVideoServices/AVCVideoServices.h is found on other platforms
case "$host" in
*-*darwin*)
;;
*)
HAVE_AVC="no"
;;
esac
2010-06-03 18:42:06 +00:00
dnl check for shm_open (for shm plugin)
translit(dnm, m, l) AM_CONDITIONAL(USE_SHM, true)
AG_GST_CHECK_FEATURE(SHM, [POSIX shared memory source and sink], shm, [
2012-11-27 20:34:19 +00:00
if test "x$HAVE_SYS_SOCKET_H" = "xyes"; then
case $host in
*-darwin* | *-macos10*)
AC_DEFINE(HAVE_OSX,[1],[Apple Mac OS X operating system detected])
HAVE_SHM=yes
;;
2016-05-14 13:59:14 +00:00
*-*-OpenBSD*)
HAVE_SHM=yes
;;
2012-11-27 20:34:19 +00:00
*)
AC_CHECK_LIB([rt], [shm_open],
AC_CHECK_DECL([MSG_NOSIGNAL], HAVE_SHM=yes, HAVE_SHM=no, [
#include <sys/socket.h>
]),
HAVE_SHM=no)
2012-11-28 12:10:47 +00:00
AC_SUBST(SHM_LIBS, "-lrt")
2012-11-27 20:34:19 +00:00
;;
esac
else
HAVE_SHM=no
fi
2010-06-03 18:42:06 +00:00
])
2017-08-01 14:07:59 +00:00
dnl check for unix sockets (ipcpipeline plugin)
translit(dnm, m, l) AM_CONDITIONAL(USE_IPCPIPELINE, true)
AG_GST_CHECK_FEATURE(IPCPIPELINE, [Unix sockets], ipcpipeline, [
if test "x$HAVE_SYS_SOCKET_H" = "xyes"; then
AC_CHECK_FUNC(pipe, [
AC_CHECK_FUNC(socketpair, [HAVE_IPCPIPELINE=yes], [HAVE_IPCPIPELINE=no])
], [
HAVE_IPCPIPELINE=no
])
else
HAVE_IPCPIPELINE=no
fi
])
Port VCD element.
Original commit message from CVS:
* configure.ac:
* sys/Makefile.am:
* sys/vcd/Makefile.am:
* sys/vcd/vcdsrc.c: (gst_vcdsrc_setup_interfaces),
(gst_vcdsrc_base_init), (gst_vcdsrc_class_init), (gst_vcdsrc_init),
(gst_vcdsrc_msf), (gst_vcdsrc_recalculate),
(gst_vcdsrc_set_property), (gst_vcdsrc_get_property),
(gst_vcdsrc_create), (gst_vcdsrc_start), (gst_vcdsrc_stop),
(gst_vcdsrc_uri_set_uri):
* sys/vcd/vcdsrc.h:
Port VCD element.
2007-06-13 11:37:36 +00:00
dnl check for Video CD
translit(dnm, m, l) AM_CONDITIONAL(USE_VCD, true)
AG_GST_CHECK_FEATURE(VCD, [Video CD], vcdsrc, [
AC_CHECK_HEADER(linux/cdrom.h, HAVE_VCD="yes", HAVE_VCD="no")
])
2012-10-18 11:56:55 +00:00
dnl check for OpenSL ES
translit(dnm, m, l) AM_CONDITIONAL(USE_OPENSLES, true)
AG_GST_CHECK_FEATURE(OPENSLES, [OpenSL ES], opensl, [
2012-10-18 13:06:37 +00:00
AC_CHECK_HEADER(SLES/OpenSLES.h, HAVE_OPENSLES="yes", HAVE_OPENSLES="no")
2012-10-18 11:56:55 +00:00
])
2012-09-10 20:09:26 +00:00
dnl *** UVC H264 ***
translit(dnm, m, l) AM_CONDITIONAL(USE_UVCH264, true)
AG_GST_CHECK_FEATURE(UVCH264, [UVC H264], uvch264, [
2012-09-10 22:20:48 +00:00
AC_CHECK_HEADER(linux/uvcvideo.h, HAVE_UVCVIDEO_H=yes, HAVE_UVCVIDEO_H=no)
2012-09-10 20:09:26 +00:00
PKG_CHECK_MODULES(G_UDEV, gudev-1.0 , [
AC_DEFINE([HAVE_GUDEV], 1, [Define if gudev is installed])
HAVE_GUDEV="yes" ],
[HAVE_GUDEV="no"])
PKG_CHECK_MODULES(LIBUSB, libusb-1.0 , [
AC_DEFINE([HAVE_LIBUSB], 1, [Define if libusb 1.x is installed])
HAVE_LIBUSB="yes" ],
[HAVE_LIBUSB="no"])
2014-12-01 08:48:41 +00:00
if test "x$HAVE_UVCVIDEO_H" = "xyes" && \
test "x$HAVE_GUDEV" = "xyes" && \
test "x$HAVE_LIBUSB" = "xyes"; then
2012-09-10 22:20:48 +00:00
HAVE_UVCH264=yes
else
HAVE_UVCH264=no
fi
2012-09-10 20:09:26 +00:00
])
AC_SUBST(LIBUDEV_CFLAGS)
AC_SUBST(LIBUDEV_LIBS)
AC_SUBST(LIBUSB_CFLAGS)
AC_SUBST(LIBUSB_LIBS)
2017-05-03 00:21:43 +00:00
dnl *** CUDA ***
translit(dnm, m, l) AM_CONDITIONAL(USE_CUDA, true)
AG_GST_CHECK_FEATURE(CUDA, [NVIDIA CUDA API],, [
2015-07-30 06:42:38 +00:00
AC_ARG_WITH([cuda-prefix],
AS_HELP_STRING([--with-cuda-prefix],
[Use the provided prefix for detecting the cuda installation]),
[AS_IF([test "x$with_cuda_prefix" != "x"],
[CUDA_PREFIX="$with_cuda_prefix"])],
[CUDA_PREFIX=""])
HAVE_CUDA="yes"
if test "x$CUDA_PREFIX" != "x"; then
dnl only override if not already set
if test "x$CUDA_CFLAGS" = "x" -a "x$CUDA_LIBS" = "x"; then
dnl this is an educated guess, user can always override these
CUDA_CFLAGS="-I$CUDA_PREFIX/include"
CUDA_LIBS="-L$CUDA_PREFIX/lib -L$CUDA_PREFIX/lib64 -L$CUDA_PREFIX/lib/stubs -L$CUDA_PREFIX/lib64/stubs -lcuda -lcudart"
fi
else
2017-04-14 11:57:19 +00:00
PKG_CHECK_MODULES([CUDA], [cuda-8.0 cudart-8.0],, [
PKG_CHECK_MODULES([CUDA], [cuda-7.5 cudart-7.5],, [
PKG_CHECK_MODULES([CUDA], [cuda-7.0 cudart-7.0],, [
PKG_CHECK_MODULES([CUDA], [cuda-6.5 cudart-6.5],, [
AC_MSG_WARN([Could not find cuda headers/libraries])])])])])
2015-07-30 06:42:38 +00:00
fi
HAVE_CUDA_H=no
HAVE_CUDART_H=no
save_CPPFLAGS="$CPPFLAGS"
CPPFLAGS="$CUDA_CFLAGS $save_CPPFLAGS "
AC_CHECK_HEADER([cuda.h], [HAVE_CUDA_H=yes],
AC_MSG_WARN([Could not find cuda.h]))
AC_CHECK_HEADER([cuda_runtime_api.h], [HAVE_CUDART_H=yes],
AC_MSG_WARN([Could not find cuda_runtime_api.h]))
CPPFLAGS=$save_CPPFLAGS
dnl libcuda and libcudart libraries
save_LIBS="$LIBS"
LIBS="$CUDA_LIBS $save_LIBS"
HAVE_CUDART_LIB="no"
AC_CHECK_LIB(cudart,cudaGetErrorString,[HAVE_CUDART_LIB="yes"], [
AC_MSG_WARN([Could not find cudart library])])
HAVE_CUDA_LIB="no"
AC_CHECK_LIB(cuda,cuInit,[HAVE_CUDA_LIB="yes"], [
AC_MSG_WARN([Could not find cuda library])])
LIBS="$save_LIBS"
2017-05-03 00:21:43 +00:00
])
dnl *** NVDEC ***
translit(dnm, m, l) AM_CONDITIONAL(USE_NVDEC, true)
AG_GST_CHECK_FEATURE(NVDEC, [nvdec], nvdec, [
HAVE_NVCUVID_H=no
save_CPPFLAGS="$CPPFLAGS"
CPPFLAGS="$CUDA_CFLAGS $save_CPPFLAGS"
AC_CHECK_HEADER([nvcuvid.h], [HAVE_NVCUVID_H=yes],
AC_MSG_WARN([Could not find nvcuvid.h]))
CPPFLAGS=$save_CPPFLAGS
HAVE_NVCUVID=no
save_LIBS="$LIBS"
LIBS="$CUDA_LIBS $save_LIBS"
AC_CHECK_LIB(nvcuvid, cuvidCtxLock, [HAVE_NVCUVID=yes],
AC_MSG_WARN([Could not find library nvcuvid]))
LIBS="$save_LIBS"
2015-07-30 06:42:38 +00:00
2017-05-03 00:21:43 +00:00
if test "x$HAVE_NVCUVID_H" = "xyes" -a "x$HAVE_NVCUVID" = "xyes"; then
HAVE_NVDEC=yes
else
HAVE_NVDEC=no
fi
])
dnl *** NVENC ***
translit(dnm, m, l) AM_CONDITIONAL(USE_NVENC, true)
AG_GST_CHECK_FEATURE(NVENC, [NVIDIA Encode API], nvenc, [
2015-07-30 06:42:38 +00:00
dnl nvEncodeAPI.h header
HAVE_NVENCODEAPI_H=no
AC_ARG_VAR(NVENCODE_CFLAGS, [C compiler flags for NvEncodeAPI.h])
save_CPPFLAGS="$CPPFLAGS"
CPPFLAGS="$NVENCODE_CFLAGS $save_CPPFLAGS"
AC_CHECK_HEADER([nvEncodeAPI.h], [
AC_PREPROC_IFELSE([AC_LANG_SOURCE([[#include <nvEncodeAPI.h>
#if NVENCAPI_MAJOR_VERSION < 5
#error "Need nvEncodeAPI.h >= 5.0"
#endif
]])], [
HAVE_NVENCODEAPI_H=yes
], [
AC_MSG_WARN([nvEncodeAPI.h must be >= 5.0])
])
],
AC_MSG_WARN([Could not find nvEncodeAPI.h]))
AC_SUBST(NVENCODE_CFLAGS)
CPPFLAGS="$save_CPPFLAGS"
dnl libnvnidia-encode library
HAVE_NVENCODE_LIB=no
AC_ARG_VAR(NVENCODE_LIBS, [linker flags for nvidia-encode])
saved_LIBS="$LIBS"
LIBS="$NVENCODE_LIBS $saved_LIBS"
AC_CHECK_LIB(nvidia-encode, NvEncodeAPICreateInstance, [HAVE_NVENCODE_LIB="yes"],
AC_MSG_WARN([Could not find library nvidia-encode]))
NVENCODE_LIBS="$NVENCODE_LIBS -lnvidia-encode"
AC_SUBST(NVENCODE_LIBS)
LIBS="$saved_LIBS"
USE_NVENC_GST_GL=no
if test "x$HAVE_CUDA_H" = "xyes" \
-a "x$HAVE_CUDART_H" = "xyes" \
-a "x$HAVE_CUDA_LIB" = "xyes" \
-a "x$HAVE_CUDART_LIB" = "xyes" \
-a "x$HAVE_NVENCODEAPI_H" = "xyes" \
-a "x$HAVE_NVENCODE_LIB" = "xyes"; then
HAVE_NVENC="yes"
if test x"$USE_OPENGL" = x"yes"; then
dnl cuda-gl interop header
save_CPPFLAGS="$CPPFLAGS"
CPPFLAGS="$save_CPPFLAGS $CUDA_CFLAGS"
AC_CHECK_HEADER([cuda_gl_interop.h], [
USE_NVENC_GST_GL="yes"
AC_DEFINE(HAVE_NVENC_GST_GL, [1] , [NVENC GStreamer OpenGL support available])
])
CPPFLAGS="$save_CPPFLAGS"
fi
else
HAVE_NVENC="no"
fi
])
AM_CONDITIONAL(USE_NVENC_GST_GL, test "x$USE_NVENC_GST_GL" = "xyes")
2012-09-10 20:09:26 +00:00
2016-01-27 11:12:09 +00:00
dnl check for tinyalsa
translit(dnm, m, l) AM_CONDITIONAL(USE_TINYALSA, true)
AG_GST_CHECK_FEATURE(TINYALSA, [tinyalsa], tinyalsa, [
AC_CHECK_HEADER(tinyalsa/asoundlib.h, HAVE_TINYALSA="yes", HAVE_TINYALSA="no")
])
2016-09-09 22:43:25 +00:00
dnl check for intel mediasdk
translit(dnm, m, l) AM_CONDITIONAL(USE_MSDK, true)
AG_GST_CHECK_FEATURE(MSDK, [Intel MediaSDK], msdk, [
AC_ARG_WITH([msdk-prefix],
AS_HELP_STRING([--with-msdk-prefix],
[Use the provided prefix for detecting the Intel MediaSDK]),
[AS_IF([test "x$with_msdk_prefix" != "x"],
[MSDK_PREFIX="$with_msdk_prefix"])],
[AS_IF([test "x$MFX_HOME" != "x"],
[MSDK_PREFIX="$MFX_HOME"],
[MSDK_PREFIX="/opt/intel/media"])])
MSDK_CFLAGS="-I$MSDK_PREFIX/include"
MSDK_LIBS="-L$MSDK_PREFIX/lib/lin_x64 -lmfx -ldl"
AC_SUBST(MSDK_CFLAGS)
AC_SUBST(MSDK_LIBS)
save_CPPFLAGS="$CPPFLAGS"
CPPFLAGS="$MSDK_CFLAGS $save_CPPFLAGS"
AC_CHECK_HEADER(mfxdefs.h, HAVE_MFXDEFS_H="yes", HAVE_MFXDEFS_H="no")
CPPFLAGS="$save_CPPFLAGS"
save_LIBS="$LIBS"
LIBS="$MSDK_LIBS $LIBS"
AC_LANG_PUSH([C++])
AC_CHECK_LIB(mfx,MFXInit,HAVE_MFX_LIB="yes",HAVE_MFX_LIB="no")
AC_LANG_POP([C++])
LIBS="$save_LIBS"
PKG_CHECK_MODULES(LIBVA_DRM, libva-drm, HAVE_LIBVA_DRM="yes", HAVE_LIBVA_DRM="no")
if test "x$HAVE_MFXDEFS_H" = "xyes" \
-a "x$HAVE_MFX_LIB" = "xyes" \
-a "x$HAVE_LIBVA_DRM" = "xyes"; then
HAVE_MSDK="yes"
else
HAVE_MSDK="no"
fi
])
AM_CONDITIONAL(USE_MSDK_LIBVA,
test "x$HAVE_MSDK" = "xyes" -a "x$HAVE_LIBVA_DRM" = "xyes")
2006-04-02 09:33:12 +00:00
dnl *** ext plug-ins ***
dnl keep this list sorted alphabetically !
if test "x$BUILD_EXTERNAL" = "xyes"; then
2005-09-19 21:47:54 +00:00
2009-02-05 15:54:01 +00:00
dnl *** assrender ***
translit(dnm, m, l) AM_CONDITIONAL(USE_ASSRENDER, true)
AG_GST_CHECK_FEATURE(ASSRENDER, [ASS/SSA renderer], assrender, [
2015-08-19 11:44:35 +00:00
PKG_CHECK_MODULES(ASSRENDER, libass >= 0.10.2, [
2009-08-14 13:10:23 +00:00
HAVE_ASSRENDER="yes" ], [
2009-02-05 15:54:01 +00:00
HAVE_ASSRENDER="no"
])
])
AC_SUBST(ASSRENDER_CFLAGS)
AC_SUBST(ASSRENDER_LIBS)
2011-04-19 08:07:23 +00:00
dnl *** vo-amrwbenc ***
translit(dnm, m, l) AM_CONDITIONAL(USE_VOAMRWBENC, true)
AG_GST_CHECK_FEATURE(VOAMRWBENC, [vo-amrwbenc library], vo-amrwbenc, [
AG_GST_PKG_CHECK_MODULES(VOAMRWBENC, vo-amrwbenc >= 0.1.0)
Added new plugin amrwb parse.
Original commit message from CVS:
Patch by: Renato Araujo Oliveira Filho <renatox at gmail dot com>
* configure.ac:
* ext/Makefile.am:
* ext/amrwb/Makefile.am:
* ext/amrwb/README:
* ext/amrwb/amrwb-code/Makefile.am:
* ext/amrwb/amrwb-code/run.sh:
* ext/amrwb/gstamrwb.c: (plugin_init):
* ext/amrwb/gstamrwbdec.c: (gst_amrwbdec_base_init),
(gst_amrwbdec_class_init), (gst_amrwbdec_init),
(gst_amrwbdec_setcaps), (gst_amrwbdec_event), (gst_amrwbdec_chain),
(gst_amrwbdec_state_change):
* ext/amrwb/gstamrwbdec.h:
* ext/amrwb/gstamrwbenc.c: (gst_amrwbenc_base_init),
(gst_amrwbenc_class_init), (gst_amrwbenc_init),
(gst_amrwbenc_finalize), (gst_amrwbenc_setcaps),
(gst_amrwbenc_chain), (gst_amrwbenc_state_change):
* ext/amrwb/gstamrwbenc.h:
* ext/amrwb/gstamrwbparse.c: (gst_amrwbparse_base_init),
(gst_amrwbparse_class_init), (gst_amrwbparse_init),
(gst_amrwbparse_querytypes), (gst_amrwbparse_query),
(gst_amrwbparse_chain), (gst_amrwbparse_read_header),
(gst_amrwbparse_loop), (gst_amrwbparse_sink_activate),
(gst_amrwbparse_sink_activate_pull), (gst_amrwbparse_state_change):
* ext/amrwb/gstamrwbparse.h:
Added new plugin amrwb parse.
Renamed audio/AMR to audio/AMR-WB as per spec.
Fixes #333307
2006-03-29 16:50:08 +00:00
])
2011-04-19 08:07:23 +00:00
dnl *** vo-aacenc ***
2011-04-18 15:19:00 +00:00
translit(dnm, m, l) AM_CONDITIONAL(USE_VOAACENC, true)
AG_GST_CHECK_FEATURE(VOAACENC, [vo-aacenc library], vo-aacenc, [
AG_GST_PKG_CHECK_MODULES(VOAACENC, vo-aacenc >= 0.1.0)
Added new plugin amrwb parse.
Original commit message from CVS:
Patch by: Renato Araujo Oliveira Filho <renatox at gmail dot com>
* configure.ac:
* ext/Makefile.am:
* ext/amrwb/Makefile.am:
* ext/amrwb/README:
* ext/amrwb/amrwb-code/Makefile.am:
* ext/amrwb/amrwb-code/run.sh:
* ext/amrwb/gstamrwb.c: (plugin_init):
* ext/amrwb/gstamrwbdec.c: (gst_amrwbdec_base_init),
(gst_amrwbdec_class_init), (gst_amrwbdec_init),
(gst_amrwbdec_setcaps), (gst_amrwbdec_event), (gst_amrwbdec_chain),
(gst_amrwbdec_state_change):
* ext/amrwb/gstamrwbdec.h:
* ext/amrwb/gstamrwbenc.c: (gst_amrwbenc_base_init),
(gst_amrwbenc_class_init), (gst_amrwbenc_init),
(gst_amrwbenc_finalize), (gst_amrwbenc_setcaps),
(gst_amrwbenc_chain), (gst_amrwbenc_state_change):
* ext/amrwb/gstamrwbenc.h:
* ext/amrwb/gstamrwbparse.c: (gst_amrwbparse_base_init),
(gst_amrwbparse_class_init), (gst_amrwbparse_init),
(gst_amrwbparse_querytypes), (gst_amrwbparse_query),
(gst_amrwbparse_chain), (gst_amrwbparse_read_header),
(gst_amrwbparse_loop), (gst_amrwbparse_sink_activate),
(gst_amrwbparse_sink_activate_pull), (gst_amrwbparse_state_change):
* ext/amrwb/gstamrwbparse.h:
Added new plugin amrwb parse.
Renamed audio/AMR to audio/AMR-WB as per spec.
Fixes #333307
2006-03-29 16:50:08 +00:00
])
2015-01-10 20:41:12 +00:00
dnl *** bs2b ***
translit(dnm, m, l) AM_CONDITIONAL(USE_BS2B, true)
AG_GST_CHECK_FEATURE(BS2B, [bs2b], bs2b, [
PKG_CHECK_MODULES(BS2B, libbs2b >= 3.1.0, HAVE_BS2B="yes", [
HAVE_BS2B="no"
])
AC_SUBST(BS2B_CFLAGS)
AC_SUBST(BS2B_LIBS)
])
2006-02-06 09:40:09 +00:00
dnl *** BZ2 ***
2006-02-22 14:37:20 +00:00
translit(dnm, m, l) AM_CONDITIONAL(USE_BZ2, true)
2007-02-28 19:31:12 +00:00
AG_GST_CHECK_FEATURE(BZ2, [bz2 library], bz2, [
2013-08-22 12:56:05 +00:00
save_LIBS=$LIBS
LIBS="$LIBS -lbz2"
AC_MSG_CHECKING([for BZ2_bzlibVersion in -lbz2])
AC_LINK_IFELSE([AC_LANG_PROGRAM([[#include <bzlib.h>]], [[const char *version = BZ2_bzlibVersion ();]])],[HAVE_BZ2=yes],[HAVE_BZ2=no])
AC_MSG_RESULT($HAVE_BZ2)
LIBS=$save_LIBS
2013-08-26 11:48:02 +00:00
if test "x$HAVE_BZ2" = "xyes"; then
BZ2_LIBS="-lbz2"
fi
2013-12-16 10:14:29 +00:00
AC_SUBST(BZ2_LIBS)
2013-08-22 12:56:05 +00:00
2006-02-06 09:40:09 +00:00
])
2006-04-02 09:33:12 +00:00
#dnl *** cairo ***
#translit(dnm, m, l) AM_CONDITIONAL(USE_CAIRO, true)
2007-02-28 19:31:12 +00:00
#AG_GST_CHECK_FEATURE(CAIRO, [cairo plug-in], cairo, [
2006-04-06 14:08:08 +00:00
# PKG_CHECK_MODULES(CAIRO, cairo >= 1.0 glitz-glx, HAVE_CAIRO=yes, [
# HAVE_CAIRO=no
# ])
2006-04-02 09:33:12 +00:00
# AC_SUBST(CAIRO_CFLAGS)
# AC_SUBST(CAIRO_LIBS)
#])
2011-01-02 19:34:04 +00:00
dnl *** chromaprint ***
translit(dnm, m, l) AM_CONDITIONAL(USE_CHROMAPRINT, true)
AG_GST_CHECK_FEATURE(CHROMAPRINT, [chromaprint], chromaprint, [
PKG_CHECK_MODULES(CHROMAPRINT, libchromaprint, HAVE_CHROMAPRINT="yes", [
HAVE_CHROMAPRINT="no"
])
AC_SUBST(CHROMAPRINT_CFLAGS)
AC_SUBST(CHROMAPRINT_LIBS)
])
2011-02-26 20:21:25 +00:00
dnl *** Curl ***
translit(dnm, m, l) AM_CONDITIONAL(USE_CURL, true)
AG_GST_CHECK_FEATURE(CURL, [Curl plugin], curl, [
2015-06-02 19:57:34 +00:00
PKG_CHECK_MODULES(CURL, libcurl >= 7.35.0, [
2011-03-01 10:49:57 +00:00
HAVE_CURL="yes"
2015-08-21 18:29:24 +00:00
AC_CHECK_HEADERS([unistd.h sys/socket.h sys/types.h netinet/in.h netinet/tcp.h fcntl.h], [ ], [
2012-09-26 04:20:49 +00:00
AC_CHECK_HEADERS([unistd.h sys/types.h winsock2.h ws2tcpip.h fcntl.h], [ ], [HAVE_CURL="no"])
])
2015-08-21 18:29:24 +00:00
AC_CHECK_HEADERS([netinet/ip.h], [], [HAVE_CURL="no"],
[[#ifdef HAVE_SYS_TYPES_H
# include <sys/types.h>
#endif
#ifdef HAVE_NETINET_IN_H
# include <netinet/in.h>
#endif
]])
2011-03-01 10:49:57 +00:00
AC_MSG_CHECKING([for socket support needed by curlsink])
AC_MSG_RESULT($HAVE_CURL)
], [
2011-02-26 20:21:25 +00:00
HAVE_CURL="no"
])
AC_SUBST(CURL_CFLAGS)
AC_SUBST(CURL_LIBS)
2013-10-04 10:48:10 +00:00
PKG_CHECK_MODULES(SSH2, libssh2 >= 1.4.3, [
HAVE_SSH2="yes"
AC_DEFINE(HAVE_SSH2, 1, [Define if libssh2 is available])
], [
HAVE_SSH2="no"
])
AM_CONDITIONAL(USE_SSH2, test "x$HAVE_SSH2" = "xyes")
AC_SUBST(SSH2_CFLAGS)
AC_SUBST(SSH2_LIBS)
],,,[AM_CONDITIONAL(USE_SSH2, false)])
2011-02-26 20:21:25 +00:00
2013-05-08 14:14:15 +00:00
dnl **** DASH ****
translit(dnm, m, l) AM_CONDITIONAL(USE_DASH, true)
AG_GST_CHECK_FEATURE(DASH, [DASH plug-in], dash, [
2015-07-22 06:50:26 +00:00
PKG_CHECK_MODULES(LIBXML2, libxml-2.0 >= 2.8, [HAVE_LIBXML2="yes"
2013-05-08 14:14:15 +00:00
HAVE_DASH="yes"], [HAVE_LIBXML2="no"
HAVE_DASH="no"])
AC_SUBST(LIBXML2_CFLAGS)
AC_SUBST(LIBXML2_LIBS)
])
Commit new dc1394src element.
Original commit message from CVS:
* configure.ac:
* ext/Makefile.am:
* ext/dc1394/Makefile.am:
* ext/dc1394/gstdc1394.c: (gst_dc1394_base_init),
(gst_dc1394_class_init), (gst_dc1394_init),
(gst_dc1394_src_fixate), (gst_dc1394_set_property),
(gst_dc1394_get_property), (gst_dc1394_getcaps),
(gst_dc1394_setcaps), (gst_dc1394_get_times), (gst_dc1394_create),
(gst_dc1394_parse_caps), (gst_dc1394_change_state),
(gst_dc1394_caps_set_format_vmode_caps),
(gst_dc1394_set_caps_color), (gst_dc1394_set_caps_framesize),
(gst_dc1394_set_caps_framesize_range),
(gst_dc1394_caps_set_framerate_list),
(gst_dc1394_framerate_const_to_frac),
(gst_dc1394_get_all_dc1394_caps), (gst_dc1394_get_cam_caps),
(gst_dc1394_framerate_frac_to_const),
(gst_dc1394_open_cam_with_best_caps),
(gst_dc1394_change_camera_transmission), (plugin_init):
* ext/dc1394/gstdc1394.h:
Commit new dc1394src element.
Patch By: Eric Jonas < jonas at mit dot edu >
Close: #387251
2007-06-29 13:03:27 +00:00
dnl *** dc1394 ***
translit(dnm, m, l) AM_CONDITIONAL(USE_DC1394, true)
AG_GST_CHECK_FEATURE(DC1394, [libdc1394], dc1394, [
2008-03-07 13:28:06 +00:00
PKG_CHECK_MODULES(LIBDC1394, libdc1394-2 >= 2.0.0, [
2010-02-23 16:28:00 +00:00
if test -z "`$PKG_CONFIG --modversion libdc1394-2 | grep 2.0.0-rc`"; then
2008-03-07 13:28:06 +00:00
HAVE_DC1394="yes"
else
HAVE_DC1394="no"
fi
], [
Commit new dc1394src element.
Original commit message from CVS:
* configure.ac:
* ext/Makefile.am:
* ext/dc1394/Makefile.am:
* ext/dc1394/gstdc1394.c: (gst_dc1394_base_init),
(gst_dc1394_class_init), (gst_dc1394_init),
(gst_dc1394_src_fixate), (gst_dc1394_set_property),
(gst_dc1394_get_property), (gst_dc1394_getcaps),
(gst_dc1394_setcaps), (gst_dc1394_get_times), (gst_dc1394_create),
(gst_dc1394_parse_caps), (gst_dc1394_change_state),
(gst_dc1394_caps_set_format_vmode_caps),
(gst_dc1394_set_caps_color), (gst_dc1394_set_caps_framesize),
(gst_dc1394_set_caps_framesize_range),
(gst_dc1394_caps_set_framerate_list),
(gst_dc1394_framerate_const_to_frac),
(gst_dc1394_get_all_dc1394_caps), (gst_dc1394_get_cam_caps),
(gst_dc1394_framerate_frac_to_const),
(gst_dc1394_open_cam_with_best_caps),
(gst_dc1394_change_camera_transmission), (plugin_init):
* ext/dc1394/gstdc1394.h:
Commit new dc1394src element.
Patch By: Eric Jonas < jonas at mit dot edu >
Close: #387251
2007-06-29 13:03:27 +00:00
HAVE_DC1394="no"
AC_MSG_RESULT(no)
])
AC_SUBST(LIBDC1394_CFLAGS)
AC_SUBST(LIBDC1394_LIBS)
])
2011-02-27 08:48:19 +00:00
dnl *** decklink ***
translit(dnm, m, l) AM_CONDITIONAL(USE_DECKLINK, true)
AG_GST_CHECK_FEATURE(DECKLINK, [decklink], decklink, [
2011-04-28 08:07:04 +00:00
HAVE_DECKLINK=no
2011-04-17 09:54:00 +00:00
case "$host" in
2015-05-05 10:45:24 +00:00
*android*)
HAVE_DECKLINK=no
;;
2011-04-17 09:54:00 +00:00
*-*linux*)
2011-04-28 08:07:04 +00:00
if test "x$HAVE_PTHREAD_H" = "xyes"; then
AC_CHECK_LIB(dl, dlopen,
[
HAVE_DECKLINK=yes
DECKLINK_CXXFLAGS=
DECKLINK_LIBS="-lpthread -ldl"
])
fi
2011-04-17 09:54:00 +00:00
;;
2012-03-22 06:04:31 +00:00
*-*darwin*)
if test "x$HAVE_PTHREAD_H" = "xyes"; then
AC_CHECK_LIB(dl, dlopen,
[
HAVE_DECKLINK=yes
DECKLINK_CXXFLAGS=
DECKLINK_LIBS="-lpthread -ldl"
2015-05-05 10:45:24 +00:00
HAVE_DECKLINK_OSX=yes
2012-03-22 06:04:31 +00:00
])
fi
;;
2017-07-14 08:44:38 +00:00
*-mingw*)
HAVE_DECKLINK=yes
DECKLINK_CXXFLAGS=
2017-07-20 12:39:15 +00:00
DECKLINK_LIBS="-lole32 -loleaut32"
2017-07-14 08:44:38 +00:00
HAVE_DECKLINK_WIN=yes
;;
2011-04-17 09:54:00 +00:00
*)
HAVE_DECKLINK=no
;;
esac
2011-04-28 08:07:04 +00:00
2011-02-27 08:48:19 +00:00
AC_SUBST(DECKLINK_CXXFLAGS)
AC_SUBST(DECKLINK_LIBS)
])
2012-03-29 15:51:57 +00:00
AM_CONDITIONAL(DECKLINK_OSX, test "x$HAVE_DECKLINK_OSX" = xyes)
2017-07-14 08:44:38 +00:00
AM_CONDITIONAL(DECKLINK_WIN, test "x$HAVE_DECKLINK_WIN" = xyes)
Commit new dc1394src element.
Original commit message from CVS:
* configure.ac:
* ext/Makefile.am:
* ext/dc1394/Makefile.am:
* ext/dc1394/gstdc1394.c: (gst_dc1394_base_init),
(gst_dc1394_class_init), (gst_dc1394_init),
(gst_dc1394_src_fixate), (gst_dc1394_set_property),
(gst_dc1394_get_property), (gst_dc1394_getcaps),
(gst_dc1394_setcaps), (gst_dc1394_get_times), (gst_dc1394_create),
(gst_dc1394_parse_caps), (gst_dc1394_change_state),
(gst_dc1394_caps_set_format_vmode_caps),
(gst_dc1394_set_caps_color), (gst_dc1394_set_caps_framesize),
(gst_dc1394_set_caps_framesize_range),
(gst_dc1394_caps_set_framerate_list),
(gst_dc1394_framerate_const_to_frac),
(gst_dc1394_get_all_dc1394_caps), (gst_dc1394_get_cam_caps),
(gst_dc1394_framerate_frac_to_const),
(gst_dc1394_open_cam_with_best_caps),
(gst_dc1394_change_camera_transmission), (plugin_init):
* ext/dc1394/gstdc1394.h:
Commit new dc1394src element.
Patch By: Eric Jonas < jonas at mit dot edu >
Close: #387251
2007-06-29 13:03:27 +00:00
2006-04-02 09:33:12 +00:00
dnl **** DirectFB ****
translit(dnm, m, l) AM_CONDITIONAL(USE_DIRECTFB, true)
2007-02-28 19:31:12 +00:00
AG_GST_CHECK_FEATURE(DIRECTFB, [directfb], dfbvideosink , [
2006-04-06 14:08:08 +00:00
PKG_CHECK_MODULES(DIRECTFB, directfb >= 0.9.24, HAVE_DIRECTFB="yes", [
2006-04-02 09:33:12 +00:00
HAVE_DIRECTFB="no"
])
])
2011-11-02 09:02:11 +00:00
dnl **** Wayland ****
translit(dnm, m, l) AM_CONDITIONAL(USE_WAYLAND, true)
2015-07-21 21:02:38 +00:00
AC_PATH_PROG([wayland_scanner], [wayland-scanner])
2011-11-02 09:02:11 +00:00
AG_GST_CHECK_FEATURE(WAYLAND, [wayland sink], wayland , [
2016-11-15 17:48:15 +00:00
PKG_CHECK_MODULES(WAYLAND, wayland-client >= 1.4.0 libdrm >= 2.4.55 wayland-protocols >= 1.4, [
if test "x$wayland_scanner" != "x"; then
HAVE_WAYLAND="yes"
AC_SUBST(WAYLAND_PROTOCOLS_DATADIR, `$PKG_CONFIG --variable=pkgdatadir wayland-protocols`)
else
AC_MSG_RESULT([wayland-scanner is required to build the wayland plugin])
HAVE_WAYLAND="no"
fi
],
[ HAVE_WAYLAND="no"
2011-11-02 09:02:11 +00:00
])
])
2013-08-23 21:46:38 +00:00
dnl **** WebP ****
translit(dnm, m, l) AM_CONDITIONAL(USE_WEBP, true)
AG_GST_CHECK_FEATURE(WEBP, [WebP], webp , [
PKG_CHECK_MODULES(WEBP, libwebp >= 0.2.1, [
HAVE_WEBP="yes" ], [ HAVE_WEBP="no"
])
AC_SUBST(WEBP_CFLAGS)
AC_SUBST(WEBP_LIBS)
])
2013-06-22 09:27:37 +00:00
dnl *** Daala ***
translit(dnm, m, l) AM_CONDITIONAL(USE_DAALA, true)
AG_GST_CHECK_FEATURE(DAALA, [daala], daala, [
if test "x$BUILD_EXPERIMENTAL" = "xyes"; then
2013-06-23 08:04:29 +00:00
PKG_CHECK_MODULES(DAALA, daalaenc daaladec, [
2013-06-22 09:27:37 +00:00
HAVE_DAALA="yes"
], [
HAVE_DAALA="no"
])
AC_SUBST(DAALA_CFLAGS)
AC_SUBST(DAALA_LIBS)
fi
])
2005-12-14 20:54:06 +00:00
dnl *** DTS ***
translit(dnm, m, l) AM_CONDITIONAL(USE_DTS, true)
2007-02-28 19:31:12 +00:00
AG_GST_CHECK_FEATURE(DTS, [dts library], dtsdec, [
2008-01-23 15:51:20 +00:00
HAVE_DTS="yes"
2011-01-07 14:51:46 +00:00
AG_GST_CHECK_LIBHEADER(DTS, dca, dca_init, $LIBM, dca.h,
DTS_LIBS="-ldca $LIBM", HAVE_DTS="no")
2008-01-23 15:51:20 +00:00
if test $HAVE_DTS = "no"; then
2011-01-07 14:51:46 +00:00
AG_GST_CHECK_LIBHEADER(DTS, dts_pic, dts_init, $LIBM, dts.h,
[ DTS_LIBS="-ldts_pic $LIBM"
2009-02-24 15:21:18 +00:00
AC_DEFINE(DTS_OLD, 1, [Define if an old libdts is used])
])
2008-01-23 15:51:20 +00:00
fi
2005-12-14 20:54:06 +00:00
AC_SUBST(DTS_LIBS)
])
2010-05-15 13:37:59 +00:00
dnl *** resindvd ***
translit(dnm, m, l) AM_CONDITIONAL(USE_RESINDVD, true)
AG_GST_CHECK_FEATURE(RESINDVD, [resindvd plugin], resindvd, [
PKG_CHECK_MODULES(DVDNAV, dvdnav >= 4.1.2 dvdread >= 4.1.2, HAVE_RESINDVD="yes", [
HAVE_RESINDVD="no"
2010-06-11 18:29:43 +00:00
])
])
2006-04-02 09:33:12 +00:00
dnl **** Free AAC Encoder (FAAC) ****
translit(dnm, m, l) AM_CONDITIONAL(USE_FAAC, true)
2007-02-28 19:31:12 +00:00
AG_GST_CHECK_FEATURE(FAAC, [AAC encoder plug-in], faac, [
2011-01-07 14:51:46 +00:00
AG_GST_CHECK_LIBHEADER(FAAC, faac, faacEncOpen, $LIBM, faac.h,
FAAC_LIBS="-lfaac $LIBM")
2006-04-02 09:33:12 +00:00
AC_SUBST(FAAC_LIBS)
])
2016-01-31 14:42:21 +00:00
dnl **** Free AAC Decoder (FAAD2) ****
2006-04-02 09:33:12 +00:00
translit(dnm, m, l) AM_CONDITIONAL(USE_FAAD, true)
2016-01-31 14:42:21 +00:00
AG_GST_CHECK_FEATURE(FAAD, [FAAD2 AAC decoder plug-in], faad, [
AG_GST_CHECK_LIBHEADER(FAAD, faad, NeAACDecOpen, $LIBM, neaacdec.h, [
2012-11-07 20:50:25 +00:00
AC_COMPILE_IFELSE([AC_LANG_PROGRAM([[#include <faad.h>]], [[
2016-01-31 14:42:21 +00:00
#if !defined(FAAD2_VERSION) || !defined(FAAD_FMT_DOUBLE)
#error Not faad2
#elif !defined(LATM)
#error Not faad2 >= 2.7
#endif
2012-11-07 20:50:25 +00:00
]])],[
2006-04-06 14:08:08 +00:00
HAVE_FAAD="yes"
2016-01-31 14:42:21 +00:00
FAAD_LIBS="-lfaad"
], [
AC_MSG_WARN([Found libfaad, but version not recent enough. Need faad2 >= 2.7])
2006-04-06 14:08:08 +00:00
HAVE_FAAD="no"
])
2016-01-31 14:42:21 +00:00
], [
HAVE_FAAD="no"
])
2006-04-02 09:33:12 +00:00
AC_SUBST(FAAD_LIBS)
])
2008-01-06 22:00:32 +00:00
dnl *** fbdev ***
translit(dnm, m, l) AM_CONDITIONAL(USE_FBDEV, true)
AG_GST_CHECK_FEATURE(FBDEV, [linux framebuffer], fbdevsink, [
if test "x$HAVE_FBDEV" != "xyes"; then
AC_CHECK_HEADER([linux/fb.h], HAVE_FBDEV=yes, HAVE_FBDEV=no)
fi
])
2016-08-07 05:51:06 +00:00
dnl *** fdkaac ***
translit(dnm, m, l) AM_CONDITIONAL(USE_FDK_AAC, true)
AG_GST_CHECK_FEATURE(FDK_AAC, [fdkaac plugin], fdkaac, [
2017-01-20 15:44:42 +00:00
PKG_CHECK_MODULES(FDK_AAC, fdk-aac >= 0.1.4, [
2016-12-07 15:06:48 +00:00
HAVE_FDK_AAC="yes",
2017-01-20 15:44:42 +00:00
HAVE_FDK_AAC_0_1_4="yes"
AC_DEFINE(HAVE_FDK_AAC_0_1_4 1, [Define if we have fdk-aac >= 0.1.4])
2016-12-07 15:06:48 +00:00
],[
PKG_CHECK_MODULES(FDK_AAC, fdk-aac, HAVE_FDK_AAC="yes", HAVE_FDK_AAC="no")
2016-08-07 05:51:06 +00:00
])
])
2010-01-16 20:43:43 +00:00
dnl *** flite ***
translit(dnm, m, l) AM_CONDITIONAL(USE_FLITE, true)
AG_GST_CHECK_FEATURE(FLITE, [Flite plugin], flite, [
2011-01-07 14:51:46 +00:00
AG_GST_CHECK_LIBHEADER(FLITE, flite, flite_init, $LIBM, flite/flite.h,
FLITE_LIBS="-lflite -lflite_cmu_us_kal -lflite_usenglish -lflite_cmulex $LIBM")
2010-01-16 20:43:43 +00:00
AC_SUBST(FLITE_CFLAGS)
AC_SUBST(FLITE_LIBS)
])
2006-04-02 09:33:12 +00:00
dnl *** gsm ***
translit(dnm, m, l) AM_CONDITIONAL(USE_GSM, true)
2007-02-28 19:31:12 +00:00
AG_GST_CHECK_FEATURE(GSM, [GSM library], gsmenc gsmdec, [
AG_GST_CHECK_LIBHEADER(GSM, gsm, gsm_create, , gsm.h, GSM_LIBS="-lgsm")
2006-04-02 09:33:12 +00:00
if test $HAVE_GSM != "yes"; then
2007-02-28 19:31:12 +00:00
AG_GST_CHECK_LIBHEADER(GSM, gsm, gsm_create, , gsm/gsm.h, GSM_LIBS="-lgsm")
2007-05-16 13:50:51 +00:00
if test $HAVE_GSM = "yes"; then
2006-04-02 09:33:12 +00:00
AC_DEFINE(GSM_HEADER_IN_SUBDIR, 1, [Define if GSM header in gsm/ subdir])
fi
fi
AC_SUBST(GSM_LIBS)
])
2013-03-21 06:05:54 +00:00
dnl *** fluidSynth ***
translit(dnm, m, l) AM_CONDITIONAL(USE_FLUIDSYNTH, true)
AG_GST_CHECK_FEATURE(FLUIDSYNTH, [fluidsynth], fluidsynth, [
PKG_CHECK_MODULES(FLUIDSYNTH, fluidsynth >= 1.0, HAVE_FLUIDSYNTH="yes", [
HAVE_FLUIDSYNTH="no"
])
])
2009-02-15 18:35:04 +00:00
dnl *** kate ***
translit(dnm, m, l) AM_CONDITIONAL(USE_KATE, true)
AG_GST_CHECK_FEATURE(KATE, [Kate], kate, [
PKG_CHECK_MODULES(KATE, kate >= 0.1.7, HAVE_KATE="yes", [
HAVE_KATE="no"
])
AC_SUBST(KATE_CFLAGS)
AC_SUBST(KATE_LIBS)
PKG_CHECK_MODULES(TIGER, tiger >= 0.3.2,
[
HAVE_TIGER="yes"
AC_DEFINE(HAVE_TIGER, 1, [Define if libtiger is available])
],
[
HAVE_TIGER="no"
]
)
AM_CONDITIONAL(USE_TIGER, test "x$HAVE_TIGER" = "xyes")
AC_SUBST(TIGER_CFLAGS)
AC_SUBST(TIGER_LIBS)
2009-08-31 16:47:44 +00:00
],,,[AM_CONDITIONAL(USE_TIGER, false)])
2009-02-15 18:35:04 +00:00
2016-01-20 11:00:51 +00:00
dnl *** kms ***
translit(dnm, m, l) AM_CONDITIONAL(USE_KMS, true)
AG_GST_CHECK_FEATURE(KMS, [drm/kms libraries], kms, [
2016-02-10 19:43:47 +00:00
AG_GST_PKG_CHECK_MODULES(GST_ALLOCATORS, gstreamer-allocators-1.0)
2016-10-19 10:39:36 +00:00
PKG_CHECK_MODULES([KMS_DRM], [libdrm >= 2.4.55], HAVE_KMS=yes, HAVE_KMS=no)
2016-01-20 11:00:51 +00:00
])
2006-12-18 16:47:23 +00:00
dnl *** ladspa ***
translit(dnm, m, l) AM_CONDITIONAL(USE_LADSPA, true)
2007-02-28 19:31:12 +00:00
AG_GST_CHECK_FEATURE(LADSPA, [ladspa], ladspa, [
2006-12-18 16:47:23 +00:00
AC_CHECK_HEADER(ladspa.h, HAVE_LADSPA="yes", HAVE_LADSPA="no")
2011-06-04 11:25:57 +00:00
2009-03-05 20:37:52 +00:00
PKG_CHECK_MODULES(LRDF, lrdf, HAVE_LRDF=yes, HAVE_LRDF=no)
if test $HAVE_LRDF = "yes"; then
AC_DEFINE(HAVE_LRDF, 1, [Define if we have liblrdf])
fi
AC_SUBST(LRDF_LIBS)
AC_SUBST(LRDF_CFLAGS)
2006-12-18 16:47:23 +00:00
])
2009-03-29 17:23:02 +00:00
dnl *** LV2 ***
translit(dnm, m, l) AM_CONDITIONAL(USE_LV2, true)
AG_GST_CHECK_FEATURE(LV2, [lv2], lv2, [
2016-07-10 18:42:42 +00:00
PKG_CHECK_MODULES(LILV, lilv-0 >= 0.22, [
HAVE_LV2="yes",
HAVE_LILV_0_22="yes"
AC_DEFINE(HAVE_LILV_0_22, 1, [Define if we have liblilv >= 0.22])
],[
PKG_CHECK_MODULES(LILV, lilv-0 >= 0.16, HAVE_LV2="yes", HAVE_LV2="no")
])
2016-02-23 14:11:36 +00:00
AC_SUBST(LILV_CFLAGS)
AC_SUBST(LILV_LIBS)
2009-03-29 17:23:02 +00:00
])
2014-09-17 08:38:44 +00:00
dnl *** libde265 ***
translit(dnm, m, l) AM_CONDITIONAL(USE_LIBDE265, true)
AG_GST_CHECK_FEATURE(LIBDE265, [libde265 HEVC/H.265 decoder], libde265, [
PKG_CHECK_MODULES(LIBDE265, libde265 >= 0.9, HAVE_LIBDE265="yes", HAVE_LIBDE265="no")
AC_SUBST(LIBDE265_CFLAGS)
AC_SUBST(LIBDE265_LIBS)
])
2006-04-02 09:33:12 +00:00
dnl *** libmms ***
translit(dnm, m, l) AM_CONDITIONAL(USE_LIBMMS, true)
2007-02-28 19:31:12 +00:00
AG_GST_CHECK_FEATURE(LIBMMS, [mms protocol library], libmms, [
2006-04-02 09:33:12 +00:00
dnl check with pkg-config first
2009-01-23 10:50:29 +00:00
PKG_CHECK_MODULES(LIBMMS, libmms >= 0.4, HAVE_LIBMMS="yes", [
2006-04-06 14:08:08 +00:00
HAVE_LIBMMS="no"
])
2006-04-02 09:33:12 +00:00
])
AC_SUBST(LIBMMS_LIBS)
2005-12-19 14:40:22 +00:00
2013-03-12 23:47:51 +00:00
dnl *** libsrtp ***
translit(dnm, m, l) AM_CONDITIONAL(USE_SRTP, true)
AG_GST_CHECK_FEATURE(SRTP, [srtp library], srtp, [
2015-06-19 01:09:24 +00:00
PKG_CHECK_MODULES(SRTP, libsrtp, HAVE_SRTP="yes",
2014-10-24 13:53:59 +00:00
AG_GST_CHECK_LIBHEADER(SRTP, srtp, srtp_init, , srtp/srtp.h, SRTP_LIBS="-lsrtp")
)
2013-03-12 23:47:51 +00:00
AC_SUBST(SRTP_LIBS)
2014-10-24 13:53:59 +00:00
AC_SUBST(SRTP_CFLAGS)
2013-03-12 23:47:51 +00:00
])
2015-03-16 16:33:03 +00:00
dnl *** dtls ***
translit(dnm, m, l) AM_CONDITIONAL(USE_DTLS, true)
AG_GST_CHECK_FEATURE(DTLS, [DTLS plugin], dtls, [
2015-09-30 17:27:06 +00:00
PKG_CHECK_MODULES(DTLS, [ openssl >= 1.0.1 libcrypto ], [
2015-03-16 16:33:03 +00:00
HAVE_DTLS="yes"
AC_SUBST(DTLS_CFLAGS)
AC_SUBST(DTLS_LIBS)
], [
HAVE_DTLS="no"
])
])
2016-06-29 08:58:38 +00:00
dnl *** ttml ***
translit(dnm, m, l) AM_CONDITIONAL(USE_TTML, true)
AG_GST_CHECK_FEATURE(TTML, [TTML plugin], ttml, [
2017-04-13 10:33:41 +00:00
PKG_CHECK_MODULES(TTML, [ libxml-2.0 >= 2.9.2 pango cairo pangocairo ], [
HAVE_TTML="yes"
], [
HAVE_TTML="no"
])
2016-06-29 08:58:38 +00:00
])
2009-01-24 17:13:39 +00:00
dnl *** modplug ***
translit(dnm, m, l) AM_CONDITIONAL(USE_MODPLUG, true)
AG_GST_CHECK_FEATURE(MODPLUG, modplug, modplug, [
if test "x$HAVE_CXX" != "xyes"; then
AC_MSG_WARN([Not compiling modplug plugin as it requires a C++ compiler])
HAVE_MODPLUG="no"
else
PKG_CHECK_MODULES(MODPLUG, libmodplug, HAVE_MODPLUG="yes", HAVE_MODPLUG="no")
fi
AC_SUBST(MODPLUG_CFLAGS)
AC_SUBST(MODPLUG_LIBS)
])
2006-07-13 11:06:45 +00:00
dnl *** mjpegtools version info ***
dnl some may prefer older version (given quirks above)
dnl hm, no version info seems available within mjpegtools headers
2008-03-05 05:38:06 +00:00
dnl and API really moves along
echo
PKG_CHECK_EXISTS(mjpegtools >= 1.6.1.93 mjpegtools < 1.8.0, [
mjpegtools_api=10601
], [
PKG_CHECK_EXISTS(mjpegtools >= 1.8.0 mjpegtools < 1.9.0, [
mjpegtools_api=10800
2006-07-13 11:06:45 +00:00
], [
2011-05-25 13:42:38 +00:00
PKG_CHECK_EXISTS(mjpegtools >= 2.0.0, [
mjpegtools_api=20000
2008-03-05 05:38:06 +00:00
], [
2011-05-25 13:42:38 +00:00
PKG_CHECK_MODULES(MJPEG, mjpegtools >= 1.9.0 mjpegtools < 2.0.0, [
dnl logging API changed in release candidates
OLD_CFLAGS="$CFLAGS"
OLD_LIBS="$LIBS"
CFLAGS="$MJPEG_CFLAGS"
2014-10-21 11:28:50 +00:00
LIBS="$LIBS $MJPEG_LIBS -lmjpegutils $LIBM $PTHREAD_LIBS"
2011-05-25 13:42:38 +00:00
AC_CHECK_FUNC(mjpeg_loglev_t, [
mjpegtools_api=10903
], [
mjpegtools_api=10900
])
CFLAGS="$OLD_CFLAGS"
LIBS="$OLD_LIBS"
], [
mjpegtools_api=0
])
2008-03-05 05:38:06 +00:00
])
])
])
AC_DEFINE_UNQUOTED(GST_MJPEGTOOLS_API, $mjpegtools_api,
[mjpegtools API evolution])
2006-07-13 11:06:45 +00:00
dnl *** mpeg2enc ***
translit(dnm, m, l) AM_CONDITIONAL(USE_MPEG2ENC, true)
2007-02-28 19:31:12 +00:00
AG_GST_CHECK_FEATURE(MPEG2ENC, [mpeg2enc], mpeg2enc, [
2006-07-13 11:06:45 +00:00
HAVE_MPEG2ENC="no"
dnl we require a c++ compiler for this one
if [ test x$HAVE_CXX = xyes ]; then
dnl libmpeg2enc was first included in mjpegtools-1.6.2-rc3 (1.6.1.92)
dnl since many distros include mjpegtools specifically without mplex
dnl and mpeg2enc, we check for mpeg2enc on its own, too.
PKG_CHECK_MODULES(MPEG2ENC, mjpegtools >= 1.6.1.93, [
2006-07-13 12:24:58 +00:00
dnl HACK because mpeg2enc 1.8.0 header files have a spurious 'include config.h'
touch config.h
2006-07-13 11:06:45 +00:00
dnl switch over to c++ to test things
2012-11-07 20:50:25 +00:00
AC_LANG([C++])
2006-07-13 11:06:45 +00:00
OLD_CPPFLAGS="$CPPFLAGS"
dnl HACK as above
CPPFLAGS_GOOD="$CPPFLAGS $MPEG2ENC_CFLAGS"
CPPFLAGS="$CPPFLAGS_GOOD -I."
dnl check headers
mpeg2enc_headers_ok=no
AC_CHECK_HEADER([mpeg2encoder.hh], [
2014-10-21 11:28:50 +00:00
MPEG2ENC_LIBS="$MPEG2ENC_LIBS -lmpeg2encpp $LIBM $PTHREAD_LIBS"
2006-07-13 11:06:45 +00:00
OLD_LIBS="$LIBS"
LIBS="$LIBS $MPEG2ENC_LIBS"
AC_MSG_CHECKING([for valid mpeg2enc objects])
2012-11-07 20:50:25 +00:00
AC_RUN_IFELSE([AC_LANG_SOURCE([[
2006-07-13 11:06:45 +00:00
#include <mpeg2encoder.hh>
#include <mpeg2encoptions.hh>
int
main (int argc,
char *argv[])
{
MPEG2EncOptions *options = new MPEG2EncOptions ();
MPEG2Encoder *encoder = new MPEG2Encoder (*options);
return 0;
}
2012-11-07 20:50:25 +00:00
]])],[
2006-07-13 11:06:45 +00:00
AC_MSG_RESULT(yes)
dnl so far so good, let's check more things:
dnl mjpegtools-1.8.0 does not install the required
dnl mpeg2syntaxcodes.h header by default, and a new release
dnl is not in sight, so check for this oversight in case
dnl distros or folks have fixed this themselves
2008-03-05 05:38:06 +00:00
if test "$mjpegtools_api" -ge "10800"; then
2006-07-13 11:06:45 +00:00
AC_CHECK_HEADER([mpeg2syntaxcodes.h], [
mpeg2enc_headers_ok=yes
], [
mpeg2enc_headers_ok=no
])
2008-03-05 05:38:06 +00:00
else
mpeg2enc_headers_ok=yes
2006-07-13 11:06:45 +00:00
fi
if test "x$mpeg2enc_headers_ok" = "xyes"; then
HAVE_MPEG2ENC="yes"
fi
2011-11-01 11:09:52 +00:00
CPPFLAGS="$CPPFLAGS_GOOD"
2006-07-13 11:06:45 +00:00
AC_SUBST(MPEG2ENC_CFLAGS)
AC_SUBST(MPEG2ENC_LIBS)
2012-11-07 20:50:25 +00:00
],[
2006-07-13 11:06:45 +00:00
AC_MSG_RESULT(no)
2012-11-07 20:50:25 +00:00
],[])
2006-07-13 11:06:45 +00:00
LIBS="$OLD_LIBS"
])
CPPFLAGS="$OLD_CPPFLAGS"
2012-11-07 20:50:25 +00:00
AC_LANG([C])
2006-07-13 12:24:58 +00:00
], [
HAVE_MPEG2ENC="no"
2006-07-13 11:06:45 +00:00
])
fi
])
2008-03-05 06:03:03 +00:00
dnl *** mplex ***
translit(dnm, m, l) AM_CONDITIONAL(USE_MPLEX, true)
AG_GST_CHECK_FEATURE(MPLEX, [mplex], mplex, [
HAVE_MPLEX="no"
dnl we require a c++ compiler for this one
if [ test x$HAVE_CXX = xyes ]; then
dnl libmplex was first included in mjpegtools-1.6.2-rc4 (1.6.1.93)
dnl since many distros include mjpegtools specifically without mplex
dnl and mpeg2enc, we check for mplex on its own, too.
dnl libmplex < 1.9rc? has fuzzy ABI, valgrind and other problems
PKG_CHECK_MODULES(MPLEX, mjpegtools >= 1.9.0, [
2011-11-01 11:11:47 +00:00
dnl HACK because mplex 2.0.0 header files have a spurious 'include config.h'
touch config.h
2008-03-05 06:03:03 +00:00
dnl switch over to c++ to test things
2012-11-07 20:50:25 +00:00
AC_LANG([C++])
2008-03-05 06:03:03 +00:00
OLD_CPPFLAGS="$CPPFLAGS"
2011-11-01 11:11:47 +00:00
dnl HACK as above
CPPFLAGS_GOOD="$CPPFLAGS $MPLEX_CFLAGS"
CPPFLAGS="$CPPFLAGS_GOOD -I."
2008-03-05 06:03:03 +00:00
AC_CHECK_HEADER(interact.hpp, [
2011-01-07 14:51:46 +00:00
MPLEX_LIBS="$MPLEX_LIBS -lmplex2 $LIBM"
2008-03-05 06:03:03 +00:00
OLD_LIBS="$LIBS"
LIBS="$LIBS $MPLEX_LIBS"
2010-05-07 12:42:12 +00:00
OLD_LDFLAGS="$LDFLAGS"
LDFLAGS="$LDFLAGS $MPLEX_LDFLAGS"
2008-03-05 06:03:03 +00:00
dnl older libmplex uses off_t SegmentSize (), which leads to fuzzy ABI;
dnl don't want this here
AC_MSG_CHECKING([for valid mplex objects])
2012-11-07 20:50:25 +00:00
AC_RUN_IFELSE([AC_LANG_SOURCE([[
2008-03-05 06:03:03 +00:00
#include <interact.hpp>
#include <outputstrm.hpp>
#include <multiplexor.hpp>
int
main (int argc,
char *argv[])
{
class TestOutputStream : public OutputStream {
public:
TestOutputStream () : OutputStream () { }
void Write (uint8_t *a, unsigned int b) { }
void NextSegment () { }
uint64_t SegmentSize () { }
void Close () { }
int Open () { }
};
MultiplexJob *job = new MultiplexJob ();
vector<IBitStream *> inputs;
job->SetupInputStreams (inputs);
TestOutputStream *out = new TestOutputStream ();
Multiplexor *mux = new Multiplexor(*job, *out, NULL);
return 0;
}
2012-11-07 20:50:25 +00:00
]])],[
2008-03-05 06:03:03 +00:00
HAVE_MPLEX="yes"
2011-11-01 11:11:47 +00:00
CPPFLAGS="$CPPFLAGS_GOOD"
2008-03-05 06:03:03 +00:00
AC_SUBST(MPLEX_CFLAGS)
AC_SUBST(MPLEX_LIBS)
2010-05-07 12:42:12 +00:00
AC_SUBST(MPLEX_LDFLAGS)
2008-03-05 06:03:03 +00:00
AC_MSG_RESULT(yes)
2012-11-07 20:50:25 +00:00
],[AC_MSG_RESULT(no)],[])
2008-03-05 06:03:03 +00:00
LIBS="$OLD_LIBS"
2010-05-07 12:42:12 +00:00
LDFLAGS="$OLD_LDFLAGS"
2008-03-05 06:03:03 +00:00
])
CPPFLAGS="$OLD_CPPFLAGS"
2012-11-07 20:50:25 +00:00
AC_LANG([C])
2008-03-05 06:03:03 +00:00
], HAVE_MPLEX="no")
fi
])
2005-11-22 15:09:28 +00:00
dnl *** musepack ***
translit(dnm, m, l) AM_CONDITIONAL(USE_MUSEPACK, true)
2007-02-28 19:31:12 +00:00
AG_GST_CHECK_FEATURE(MUSEPACK, [musepackdec], musepack, [
2008-04-24 22:19:48 +00:00
AC_CHECK_HEADER([mpc/mpcdec.h], [
2005-11-22 15:09:28 +00:00
HAVE_MUSEPACK="yes"
MUSEPACK_LIBS="-lmpcdec"
AC_SUBST(MUSEPACK_LIBS)
2008-04-24 22:19:48 +00:00
], [AC_CHECK_HEADER([mpcdec/mpcdec.h], [
HAVE_MUSEPACK="yes"
MUSEPACK_LIBS="-lmpcdec"
AC_DEFINE(MPC_IS_OLD_API, 1, [Define if the old MusePack API is used])
AC_SUBST(MUSEPACK_LIBS)
], [HAVE_MUSEPACK="no"])])
2005-11-22 15:09:28 +00:00
])
2005-12-28 21:07:17 +00:00
dnl *** neon ***
translit(dnm, m, l) AM_CONDITIONAL(USE_NEON, true)
2007-02-28 19:31:12 +00:00
AG_GST_CHECK_FEATURE(NEON, [neon http client plugins], neonhttpsrc, [
2013-08-12 05:02:51 +00:00
PKG_CHECK_MODULES(NEON, neon >= 0.27.0 neon <= 0.30.99, HAVE_NEON="yes", [
2006-04-06 14:08:08 +00:00
HAVE_NEON="no"
])
2005-12-28 21:07:17 +00:00
AC_SUBST(NEON_CFLAGS)
AC_SUBST(NEON_LIBS)
])
Add an OFA element, the successor of MusicBrainz TRM fingerprinting.
Original commit message from CVS:
Based on a patch by: Eric Buehl <eric dot buehl at gmail dot com>
* configure.ac:
* ext/ofa/Makefile.am:
* ext/ofa/gstofa.c: (gst_ofa_base_init), (gst_ofa_finalize),
(gst_ofa_class_init), (create_fingerprint), (gst_ofa_event),
(gst_ofa_init), (gst_ofa_transform_ip), (gst_ofa_get_property),
(plugin_init):
* ext/ofa/gstofa.h:
Add an OFA element, the successor of MusicBrainz TRM fingerprinting.
Fixes bug #351309.
2008-03-19 18:14:17 +00:00
dnl *** ofa ***
translit(dnm, m, l) AM_CONDITIONAL(USE_OFA, true)
AG_GST_CHECK_FEATURE(OFA, [ofa plugins], ofa, [
PKG_CHECK_MODULES(OFA, libofa >= 0.9.3, HAVE_OFA="yes", [
HAVE_OFA="no"
])
AC_SUBST(OFA_CFLAGS)
AC_SUBST(OFA_LIBS)
])
2011-05-23 11:41:36 +00:00
dnl *** OpenAL ***
translit(dnm, m, l) AM_CONDITIONAL(USE_OPENAL, true)
AG_GST_CHECK_FEATURE(OPENAL, [OpenAL plugin], openal, [
2013-05-15 17:57:07 +00:00
PKG_CHECK_MODULES(OPENAL, openal >= 1.14, HAVE_OPENAL="yes", [
2011-05-23 11:41:36 +00:00
HAVE_OPENAL="no"
])
AC_SUBST(OPENAL_CFLAGS)
AC_SUBST(OPENAL_LIBS)
])
2010-09-08 03:08:44 +00:00
dnl *** opencv ***
translit(dnm, m, l) AM_CONDITIONAL(USE_OPENCV, true)
AG_GST_CHECK_FEATURE(OPENCV, [opencv plugins], opencv, [
2010-09-09 14:03:24 +00:00
dnl we specify a max. version too because we set CV_NO_BACKWARD_COMPATIBILITY
dnl and don't want the build to break when a new opencv version comes out.
dnl Need to adjust this upwards once we know that our code compiles fine with
dnl a new version and the no-backward-compatibility define. (There doesn't
dnl seem to be a switch to suppress the warnings the cvcompat.h header
dnl causes.)
2017-09-04 06:30:58 +00:00
PKG_CHECK_MODULES(OPENCV, opencv >= 2.3.0 opencv <= 3.3.0 , [
2010-09-08 03:08:44 +00:00
AC_PROG_CXX
2012-11-07 20:50:25 +00:00
AC_LANG([C++])
2010-09-08 03:08:44 +00:00
OLD_CPPFLAGS=$CPPFLAGS
CPPFLAGS=$OPENCV_CFLAGS
2015-04-12 00:56:48 +00:00
something_not_found=no
2016-01-28 16:40:51 +00:00
AC_CHECK_HEADERS([opencv2/core/core_c.h \
2015-04-12 00:56:48 +00:00
opencv2/core/version.hpp \
opencv2/highgui/highgui_c.h \
opencv2/imgproc/imgproc.hpp \
opencv2/imgproc/imgproc_c.h \
opencv2/objdetect/objdetect.hpp \
opencv2/video/background_segm.hpp], [], [something_not_found=yes])
2017-01-12 13:55:52 +00:00
dnl Only required for OpenCV >= 3, we have compat code for older versions
PKG_CHECK_MODULES(OPENCV_3, opencv >= 3, [
dnl check opencv_contrib headers (not always present in opencv distributions)
AC_CHECK_HEADERS([opencv2/bgsegm.hpp], [], [something_not_found=yes])],
[NOT_A_PROBLEM=yes])
2010-09-08 03:08:44 +00:00
CPPFLAGS=$OLD_CPPFLAGS
2012-11-07 20:50:25 +00:00
AC_LANG([C])
2012-03-17 12:47:52 +00:00
2015-04-12 00:56:48 +00:00
if test $something_not_found = "yes"; then
AC_MSG_RESULT([not all opencv2 headers were found])
2012-03-17 12:47:52 +00:00
HAVE_OPENCV="no"
2015-04-12 00:56:48 +00:00
else
HAVE_OPENCV="yes"
2010-09-08 03:08:44 +00:00
fi
], [
HAVE_OPENCV="no"
])
2012-03-16 11:57:05 +00:00
OPENCV_PREFIX="`$PKG_CONFIG --variable=prefix opencv`"
AC_DEFINE_UNQUOTED(OPENCV_PREFIX, "$OPENCV_PREFIX", [opencv install prefix])
AC_SUBST(OPENCV_PREFIX)
2010-09-08 03:08:44 +00:00
AC_SUBST(OPENCV_CFLAGS)
AC_SUBST(OPENCV_LIBS)
2015-08-20 12:09:37 +00:00
dnl the OpenCV prefix is used at runtime for some object properties, and also
dnl used here to detect which directory is the correct one. For the second
dnl case, make sure the right sysroot is used, ensuring correct behavior
dnl during cross compilation.
if test -d "$PKG_CONFIG_SYSROOT_DIR/$OPENCV_PREFIX/share/opencv/"; then
AC_DEFINE_UNQUOTED(OPENCV_PATH_NAME, ["opencv"], [OpenCV path name])
else
AC_DEFINE_UNQUOTED(OPENCV_PATH_NAME, ["OpenCV"], [OpenCV path name])
fi
2010-09-08 03:08:44 +00:00
])
2013-11-23 10:29:08 +00:00
dnl *** OpenEXR ***
translit(dnm, m, l) AM_CONDITIONAL(USE_OPENEXR, true)
AG_GST_CHECK_FEATURE(OPENEXR, [openexr library], openexr, [
AG_GST_PKG_CHECK_MODULES(OPENEXR, OpenEXR)
])
2014-10-03 10:45:26 +00:00
dnl *** openh264 ***
translit(dnm, m, l) AM_CONDITIONAL(USE_OPENH264, true)
AG_GST_CHECK_FEATURE(OPENH264, [openh264 library], openh264, [
2015-04-07 13:57:30 +00:00
AG_GST_PKG_CHECK_MODULES(OPENH264, openh264 >= 1.3.0)
2014-10-03 10:45:26 +00:00
])
2013-01-07 10:36:45 +00:00
dnl *** OpenJPEG ***
translit(dnm, m, l) AM_CONDITIONAL(USE_OPENJPEG, true)
AG_GST_CHECK_FEATURE(OPENJPEG, [openjpeg library], openjpeg, [
HAVE_OPENJPEG="no"
2016-05-10 10:54:08 +00:00
AG_GST_PKG_CHECK_MODULES(OPENJPEG, libopenjp2 >= 2.0)
if test x"$HAVE_OPENJPEG" = x"yes"; then
dnl minor API changes in v2.1
AG_GST_PKG_CHECK_MODULES(OPENJPEG_2_1, libopenjp2 >= 2.1)
2017-08-13 19:17:18 +00:00
if test x"$HAVE_OPENJPEG_2_1" = x"yes"; then
2016-05-10 10:54:08 +00:00
AC_DEFINE([HAVE_OPENJPEG_2_1], 1, [Define if OpenJPEG 2.1 is used])
2017-08-13 19:17:18 +00:00
dnl include paths changed for v2.2
AG_GST_PKG_CHECK_MODULES(OPENJPEG_2_2, libopenjp2 >= 2.2)
if test x"$HAVE_OPENJPEG_2_2" = x"yes"; then
AC_DEFINE([HAVE_OPENJPEG_2_2], 1, [Define if OpenJPEG 2.2 is used])
fi
2016-05-10 10:54:08 +00:00
fi
else
# Fallback to v1.5
2014-07-21 15:34:52 +00:00
OPENJPEG_LIBS=""
2013-10-02 08:55:30 +00:00
PKG_CHECK_MODULES(OPENJPEG, libopenjpeg1,
HAVE_OPENJPEG="yes",
AG_GST_CHECK_LIBHEADER(OPENJPEG, openjpeg, opj_version, , openjpeg.h, OPENJPEG_LIBS="-lopenjpeg")
)
if test x"$HAVE_OPENJPEG" = x"yes"; then
AC_DEFINE([HAVE_OPENJPEG_1], 1, [Define if OpenJPEG 1 is used])
fi
fi
2013-01-07 10:36:45 +00:00
AC_SUBST(OPENJPEG_CFLAGS)
AC_SUBST(OPENJPEG_LIBS)
])
2016-07-27 00:22:26 +00:00
dnl *** OpenMPT ***
translit(dnm, m, l) AM_CONDITIONAL(USE_OPENMPT, true)
AG_GST_CHECK_FEATURE(OPENMPT, openmpt, openmpt, [
PKG_CHECK_MODULES(OPENMPT, libopenmpt, HAVE_OPENMPT="yes", HAVE_OPENMPT="no")
AC_SUBST(OPENMPT_CFLAGS)
AC_SUBST(OPENMPT_LIBS)
])
2013-12-02 10:17:02 +00:00
dnl *** OpenNI2 ***
translit(dnm, m, l) AM_CONDITIONAL(USE_OPENNI2, true)
AG_GST_CHECK_FEATURE(OPENNI2, [openni2 library], openni2, [
PKG_CHECK_MODULES(OPENNI2, libopenni2 >= 0.26, HAVE_OPENNI2="yes", [ HAVE_OPENNI2="no" ] )
AC_SUBST(OPENNI2_CFLAGS)
AC_SUBST(OPENNI2_LIBS)
])
2011-06-05 07:54:19 +00:00
dnl *** Opus ***
translit(dnm, m, l) AM_CONDITIONAL(USE_OPUS, true)
AG_GST_CHECK_FEATURE(OPUS, [opus], opus, [
PKG_CHECK_MODULES(OPUS, opus >= 0.9.4, [
AC_DEFINE([HAVE_OPUS], 1, [Define if Opus >= 0.9.4 is installed])
HAVE_OPUS="yes"
], [
HAVE_OPUS="no"
])
AC_SUBST(OPUS_CFLAGS)
AC_SUBST(OPUS_LIBS)
])
2009-08-13 14:45:55 +00:00
dnl *** rsvg ***
translit(dnm, m, l) AM_CONDITIONAL(USE_RSVG, true)
AG_GST_CHECK_FEATURE(RSVG, [rsvg decoder], rsvg, [
2016-02-01 00:49:48 +00:00
AG_GST_PKG_CHECK_MODULES(RSVG, librsvg-2.0 >= 2.36.2)
2009-08-13 14:45:55 +00:00
])
2014-03-16 14:08:23 +00:00
dnl *** gl ***
translit(dnm, m, l) AM_CONDITIONAL(USE_GL, true)
AG_GST_CHECK_FEATURE(GL, [gl elements], gl, [
HAVE_GL="no"
2014-03-17 14:49:37 +00:00
if test x"$USE_OPENGL" = x"yes" -o x"$USE_GLES2" = x"yes"; then
2014-03-16 14:08:23 +00:00
HAVE_GL="yes"
fi
])
2014-12-18 06:00:30 +00:00
dnl *** gtk+ ***
HAVE_GTK3_GL="no"
translit(dnm, m, l) AM_CONDITIONAL(USE_GTK3, true)
AG_GST_CHECK_FEATURE(GTK3, [Gtk+ elements], gtk, [
PKG_CHECK_MODULES(GTK3, gtk+-3.0, [
2015-09-09 14:07:18 +00:00
AC_DEFINE([HAVE_GTK3], 1, [Define if Gtk+ 3.0 is installed])
HAVE_GTK3="yes"
2014-12-18 06:00:30 +00:00
], [
2015-09-09 14:07:18 +00:00
HAVE_GTK3="no"
2014-12-18 06:00:30 +00:00
])
PKG_CHECK_MODULES(GTK3_GL, gtk+-3.0 >= 3.15.0, [
2015-09-09 14:07:18 +00:00
GDK_WINDOWING="no"
if test "x$GST_GL_HAVE_WINDOW_X11" = "x1" -a "x$GST_GL_HAVE_PLATFORM_GLX" = "x1"; then
PKG_CHECK_MODULES(GTK3_X11, gtk+-x11-3.0, [
GTK3_CFLAGS="$GTK3_CFLAGS $GTK3_X11_CFLAGS"
GTK3_LIBS="$GTK3_LIBS $GTK3_X11_LIBS"
GDK_WINDOWING="yes"
], [AC_MSG_NOTICE([Could not find Gtk X11 integration])])
fi
if test "x$GST_GL_HAVE_WINDOW_WAYLAND" = "x1" -a "x$GST_GL_HAVE_PLATFORM_EGL" = "x1"; then
PKG_CHECK_MODULES(GTK3_WAYLAND, gtk+-wayland-3.0, [
GTK3_CFLAGS="$GTK3_CFLAGS $GTK3_WAYLAND_CFLAGS"
GTK3_LIBS="$GTK3_LIBS $GTK3_WAYLAND_LIBS"
GDK_WINDOWING="yes"
], [AC_MSG_NOTICE([Could not find Gtk Wayland integration])])
fi
if test "x$GDK_WINDOWING" = "xyes"; then
2014-12-18 06:00:30 +00:00
AC_DEFINE([HAVE_GTK3_GL], 1, [Define if Gtk+ 3.0 GL is installed])
2015-09-09 14:07:18 +00:00
HAVE_GTK3_GL="yes"
fi
2014-12-18 06:00:30 +00:00
], [
HAVE_GTK3_GL="no"
])
])
AM_CONDITIONAL(USE_GTK3_GL, test "x$HAVE_GTK3_GL" = "xyes")
2015-07-06 13:10:51 +00:00
dnl *** Qt ***
translit(dnm, m, l) AM_CONDITIONAL(USE_QT, true)
AG_GST_CHECK_FEATURE(QT, [Qt elements], qt, [
2015-09-14 17:14:37 +00:00
PKG_CHECK_MODULES(QT, Qt5Core Qt5Gui Qt5Qml Qt5Quick >= 5.4.0, [
2015-07-10 18:05:41 +00:00
QT_PATH=`$PKG_CONFIG --variable=exec_prefix Qt5Core`
QT_HOST_PATH=`$PKG_CONFIG --variable=host_bins Qt5Core`
2017-06-21 15:01:40 +00:00
AC_ARG_WITH([moc],
AS_HELP_STRING([--with-moc], [Set location of qt moc tool]),
[MOC=$withval])
AC_PATH_PROGS(MOC, [moc-qt5 moc], [moc], ["${QT_HOST_PATH}" "${QT_PATH}/bin"])
AC_ARG_WITH([rcc],
AS_HELP_STRING([--with-rcc], [Set location of qt rcc tool]),
[RCC=$withval])
AC_PATH_PROGS(RCC, [rcc-qt5 rcc], [rcc], ["${QT_HOST_PATH}" "${QT_PATH}/bin"])
AC_ARG_WITH([uic],
AS_HELP_STRING([--with-uic], [Set location of qt uic tool]),
[UIC=$withval])
AC_PATH_PROGS(UIC, [uic-qt5 uic], [uic], ["${QT_HOST_PATH}" "${QT_PATH}/bin"])
2015-07-06 13:10:51 +00:00
if test "x$MOC" = "x" || test "x$UIC" = "x" || test "x$RCC" = "x"; then
AC_MSG_WARN([One of the required qt build programs was not found])
HAVE_QT="no"
else
HAVE_QT="yes"
2015-08-07 11:57:48 +00:00
HAVE_QT_WINDOWING="no"
2017-02-17 12:37:08 +00:00
QT_VERSION="`$PKG_CONFIG --define-prefix --modversion Qt5Core`"
2016-06-12 07:35:28 +00:00
QPA_INCLUDE_PATH=`$PKG_CONFIG --variable=includedir Qt5Core`/QtGui/${QT_VERSION}/QtGui
2016-12-22 16:48:05 +00:00
AS_IF([test -f "$PKG_CONFIG_SYSROOT_DIR/$QPA_INCLUDE_PATH/qpa/qplatformnativeinterface.h"], [
2017-02-17 12:37:08 +00:00
QT_CFLAGS="$QT_CFLAGS -I$PKG_CONFIG_SYSROOT_DIR/$QPA_INCLUDE_PATH"
2016-06-27 10:15:08 +00:00
HAVE_QT_QPA_HEADER="yes"
], [AC_MSG_NOTICE([Cannot find QPA])])
2017-05-17 02:58:05 +00:00
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
2015-09-09 14:07:18 +00:00
PKG_CHECK_MODULES(QT_X11, Qt5X11Extras, [
AC_DEFINE([HAVE_QT_X11], [], [Define if Qt X11 integration is installed])
2015-09-02 13:42:34 +00:00
QT_CFLAGS="$QT_CFLAGS $QT_X11_CFLAGS"
2015-07-06 13:10:51 +00:00
QT_LIBS="$QT_LIBS $QT_X11_LIBS"
2015-08-07 11:57:48 +00:00
HAVE_QT_WINDOWING="yes"
2015-09-09 14:07:18 +00:00
], [AC_MSG_NOTICE([Could not find Qt X11 integration])])
fi
2016-06-27 10:15:08 +00:00
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
2015-09-09 14:07:18 +00:00
PKG_CHECK_MODULES(QT_WAYLAND, Qt5WaylandClient, [
AC_DEFINE([HAVE_QT_WAYLAND], [],
[Define if Qt Wayland integration is installed])
QT_CFLAGS="$QT_CFLAGS $QT_WAYLAND_CFLAGS"
QT_LIBS="$QT_LIBS $QT_WAYLAND_LIBS"
HAVE_QT_WINDOWING="yes"
], [AC_MSG_NOTICE([Could not find Qt Wayland integration])])
fi
2016-04-14 15:14:32 +00:00
if test "x$GST_GL_HAVE_PLATFORM_EGL" = "x1"; then
if test "x$GST_GL_HAVE_WINDOW_ANDROID" = "x1"; then
PKG_CHECK_MODULES(QT_ANDROID, Qt5AndroidExtras, [
# c++ on android requires a standard library and there are multiple
# choices. cerbero provides a pkg-config file the describes a choice
# so try to use that. Outside cerbero one has to pass these flags
# manually for the library one is using
PKG_CHECK_MODULES(GNUSTL, gnustl, [
QT_CFLAGS="$QT_CFLAGS $GNUSTL_CFLAGS"
QT_LIBS="$QT_LIBS $GNUSTL_LIBS"
], [
AC_MSG_NOTICE([Could not find Standard C++ library])])
AC_DEFINE([HAVE_QT_EGLFS], [],
[Define if Qt eglfs integration is installed])
QT_CFLAGS="$QT_CFLAGS $QT_ANDROID_CFLAGS"
QT_LIBS="$QT_LIBS $QT_ANDROID_LIBS"
HAVE_QT_WINDOWING="yes"
], [AC_MSG_NOTICE([Could not find Qt Android integration])])
else
AC_DEFINE([HAVE_QT_EGLFS], [],
[Define if Qt eglfs integration is installed])
HAVE_QT_WINDOWING="yes"
fi
2015-09-02 13:45:07 +00:00
fi
2015-09-14 17:14:37 +00:00
if test "x$GST_GL_HAVE_WINDOW_COCOA" = "x1" -a "x$GST_GL_HAVE_PLATFORM_CGL" = "x1"; then
PKG_CHECK_MODULES(QT_MAC, Qt5MacExtras, [
AC_DEFINE([HAVE_QT_MAC], [],
[Define if Qt Mac integration is installed])
QT_LIBDIR=`$PKG_CONFIG --variable=libdir Qt5Core`
QT_CFLAGS="$QT_CFLAGS $QT_MAC_CFLAGS -F$QT_LIBDIR -framework QtCore -framework QtGui -framework QtQuick -framework QtQml -framework QtMacExtras"
QT_LIBS="$QT_LIBS $QT_MAC_LIBS"
HAVE_QT_WINDOWING="yes"
], [AC_MSG_NOTICE([Could not find Qt Mac integration])])
fi
if test "x$GST_GL_HAVE_WINDOW_EAGL" = "x1" -a "x$GST_GL_HAVE_PLATFORM_EAGL" = "x1"; then
if test "x$HAVE_IOS" = "xyes"; then
# iOS doesn't have its own extras package so if we have the core
# modules we are good to go
AC_DEFINE([HAVE_QT_IOS], [],
[Define if Qt iOS integration is installed])
HAVE_QT_WINDOWING="yes"
fi
fi
2015-08-07 11:57:48 +00:00
if test "x$HAVE_QT_WINDOWING" = "xno"; then
AC_MSG_WARN([Could not find any Qt Windowing integration])
HAVE_QT="no"
fi
AC_SUBST([QT_CFLAGS])
AC_SUBST([QT_LIBS])
2015-07-06 13:10:51 +00:00
fi
], [
HAVE_QT="no"
])
])
2015-10-24 06:29:05 +00:00
dnl *** Vulkan ***
translit(dnm, m, l) AM_CONDITIONAL(USE_VULKAN, true)
AG_GST_CHECK_FEATURE(VULKAN, [Vulkan elements], vulkan, [
AC_CHECK_HEADER(vulkan/vulkan.h, [
2016-02-16 04:36:41 +00:00
AC_CHECK_LIB(vulkan, vkCreateDevice, [
VULKAN_LIBS="-lvulkan"
2015-10-24 06:29:05 +00:00
AC_SUBST(VULKAN_LIBS)
2016-09-06 10:00:07 +00:00
if test "x$GST_VULKAN_HAVE_WINDOW_XCB" = "x1"; then
HAVE_VULKAN="yes"
fi
if test "x$GST_VULKAN_HAVE_WINDOW_WAYLAND" = "x1"; then
HAVE_VULKAN="yes"
2015-10-24 06:29:05 +00:00
fi
], [])
], [])
])
2010-09-13 09:59:18 +00:00
dnl *** teletextdec ***
translit(dnm, m, l) AM_CONDITIONAL(USE_TELETEXTDEC, true)
AG_GST_CHECK_FEATURE(TELETEXTDEC, [Teletext decoder], teletextdec, [
AG_GST_PKG_CHECK_MODULES(TELETEXTDEC, zvbi-0.2)
])
Add second midi renderer. Fix some double frees and leaks. Clean up logging.
Original commit message from CVS:
* configure.ac:
* ext/timidity/Makefile.am:
* ext/timidity/gsttimidity.c: (plugin_init):
* ext/timidity/gstwildmidi.c: (gst_wildmidi_base_init),
(gst_wildmidi_class_init), (gst_wildmidi_init),
(gst_wildmidi_src_convert), (gst_wildmidi_src_query),
(gst_wildmidi_get_upstream_size), (gst_wildmidi_get_segment),
(gst_wildmidi_get_new_segment_event), (gst_wildmidi_src_event),
(gst_wildmidi_activate), (gst_wildmidi_activatepull),
(gst_wildmidi_allocate_buffer), (gst_wildmidi_clip_buffer),
(gst_wildmidi_fill_buffer), (gst_wildmidi_get_buffer),
(gst_wildmidi_loop), (gst_wildmidi_change_state),
(gst_wildmidi_set_property), (gst_wildmidi_get_property),
(gst_wildmidi_typefind), (wildmidi_open_config), (plugin_init):
* ext/timidity/gstwildmidi.h:
Add second midi renderer. Fix some double frees and leaks. Clean up
logging.
2007-02-11 15:46:24 +00:00
dnl *** wildmidi ***
translit(dnm, m, l) AM_CONDITIONAL(USE_WILDMIDI, true)
2007-02-28 19:31:12 +00:00
AG_GST_CHECK_FEATURE(WILDMIDI, [wildmidi midi soft synth plugin], wildmidi, [
2010-07-07 06:37:12 +00:00
AG_GST_CHECK_LIBHEADER(WILDMIDI, WildMidi,
WildMidi_Init, ,
wildmidi_lib.h,
WILDMIDI_LIBS="-lWildMidi")
2017-05-23 08:57:28 +00:00
WILDMIDI_CFLAGS=
WILDMIDI_LIBS=
Add second midi renderer. Fix some double frees and leaks. Clean up logging.
Original commit message from CVS:
* configure.ac:
* ext/timidity/Makefile.am:
* ext/timidity/gsttimidity.c: (plugin_init):
* ext/timidity/gstwildmidi.c: (gst_wildmidi_base_init),
(gst_wildmidi_class_init), (gst_wildmidi_init),
(gst_wildmidi_src_convert), (gst_wildmidi_src_query),
(gst_wildmidi_get_upstream_size), (gst_wildmidi_get_segment),
(gst_wildmidi_get_new_segment_event), (gst_wildmidi_src_event),
(gst_wildmidi_activate), (gst_wildmidi_activatepull),
(gst_wildmidi_allocate_buffer), (gst_wildmidi_clip_buffer),
(gst_wildmidi_fill_buffer), (gst_wildmidi_get_buffer),
(gst_wildmidi_loop), (gst_wildmidi_change_state),
(gst_wildmidi_set_property), (gst_wildmidi_get_property),
(gst_wildmidi_typefind), (wildmidi_open_config), (plugin_init):
* ext/timidity/gstwildmidi.h:
Add second midi renderer. Fix some double frees and leaks. Clean up
logging.
2007-02-11 15:46:24 +00:00
if test "x$HAVE_WILDMIDI" = "xyes"; then
2017-05-23 08:57:28 +00:00
AC_MSG_CHECKING([for wildmidi >= 4.0])
AC_COMPILE_IFELSE([AC_LANG_PROGRAM([[#include <wildmidi_lib.h>]], [[
#if LIBWILDMIDI_VER_MAJOR == 0 && LIBWILDMIDI_VER_MINOR < 4
#error "wildmidi too old"
#endif
]])], [ AC_MSG_RESULT(yes)
HAVE_WILDMIDI="yes"
WILDMIDI_CFLAGS=
WILDMIDI_LIBS=-lWildMidi
], [ AC_MSG_RESULT(no)
HAVE_WILDMIDI="no"
])
Add second midi renderer. Fix some double frees and leaks. Clean up logging.
Original commit message from CVS:
* configure.ac:
* ext/timidity/Makefile.am:
* ext/timidity/gsttimidity.c: (plugin_init):
* ext/timidity/gstwildmidi.c: (gst_wildmidi_base_init),
(gst_wildmidi_class_init), (gst_wildmidi_init),
(gst_wildmidi_src_convert), (gst_wildmidi_src_query),
(gst_wildmidi_get_upstream_size), (gst_wildmidi_get_segment),
(gst_wildmidi_get_new_segment_event), (gst_wildmidi_src_event),
(gst_wildmidi_activate), (gst_wildmidi_activatepull),
(gst_wildmidi_allocate_buffer), (gst_wildmidi_clip_buffer),
(gst_wildmidi_fill_buffer), (gst_wildmidi_get_buffer),
(gst_wildmidi_loop), (gst_wildmidi_change_state),
(gst_wildmidi_set_property), (gst_wildmidi_get_property),
(gst_wildmidi_typefind), (wildmidi_open_config), (plugin_init):
* ext/timidity/gstwildmidi.h:
Add second midi renderer. Fix some double frees and leaks. Clean up
logging.
2007-02-11 15:46:24 +00:00
else
2017-05-23 08:57:28 +00:00
AC_MSG_WARN([WildMidi library or development headers not found])
Add second midi renderer. Fix some double frees and leaks. Clean up logging.
Original commit message from CVS:
* configure.ac:
* ext/timidity/Makefile.am:
* ext/timidity/gsttimidity.c: (plugin_init):
* ext/timidity/gstwildmidi.c: (gst_wildmidi_base_init),
(gst_wildmidi_class_init), (gst_wildmidi_init),
(gst_wildmidi_src_convert), (gst_wildmidi_src_query),
(gst_wildmidi_get_upstream_size), (gst_wildmidi_get_segment),
(gst_wildmidi_get_new_segment_event), (gst_wildmidi_src_event),
(gst_wildmidi_activate), (gst_wildmidi_activatepull),
(gst_wildmidi_allocate_buffer), (gst_wildmidi_clip_buffer),
(gst_wildmidi_fill_buffer), (gst_wildmidi_get_buffer),
(gst_wildmidi_loop), (gst_wildmidi_change_state),
(gst_wildmidi_set_property), (gst_wildmidi_get_property),
(gst_wildmidi_typefind), (wildmidi_open_config), (plugin_init):
* ext/timidity/gstwildmidi.h:
Add second midi renderer. Fix some double frees and leaks. Clean up
logging.
2007-02-11 15:46:24 +00:00
fi
AC_SUBST(WILDMIDI_CFLAGS)
AC_SUBST(WILDMIDI_LIBS)
])
2012-11-08 18:42:39 +00:00
dnl **** Smooth Streaming ****
translit(dnm, m, l) AM_CONDITIONAL(USE_SMOOTHSTREAMING, true)
AG_GST_CHECK_FEATURE(SMOOTHSTREAMING, [Smooth Streaming plug-in], smoothstreaming, [
PKG_CHECK_MODULES(LIBXML2, libxml-2.0 >= 2.4,
[HAVE_LIBXML2="yes"
HAVE_SMOOTHSTREAMING="yes"],
[HAVE_LIBXML2="no"
HAVE_SMOOTHSTREAMING="no"])
AC_SUBST(LIBXML2_CFLAGS)
AC_SUBST(LIBXML2_LIBS)
])
2007-02-02 13:28:05 +00:00
dnl *** sndfile ***
translit(dnm, m, l) AM_CONDITIONAL(USE_SNDFILE, true)
2013-12-17 16:56:32 +00:00
AG_GST_CHECK_FEATURE(SNDFILE, [sndfile plug-in], sfdec sfenc, [
2007-02-06 10:16:52 +00:00
PKG_CHECK_MODULES(SNDFILE, sndfile >= 1.0.16, HAVE_SNDFILE="yes", HAVE_SNDFILE="no")
2007-02-02 13:28:05 +00:00
AC_SUBST(SNDFILE_CFLAGS)
AC_SUBST(SNDFILE_LIBS)
])
2006-03-22 14:31:47 +00:00
dnl *** soundtouch ***
translit(dnm, m, l) AM_CONDITIONAL(USE_SOUNDTOUCH, true)
2007-02-28 19:31:12 +00:00
AG_GST_CHECK_FEATURE(SOUNDTOUCH, [soundtouch plug-in], soundtouch, [
2009-02-22 19:17:30 +00:00
dnl We only need -lBPM on soundtouch < 1.4
2009-03-19 21:49:13 +00:00
dnl We check for libSoundTouch since Debian used it before upstream
dnl added a pkgconfig file.
2009-04-23 16:33:25 +00:00
HAVE_SOUNDTOUCH_1_4=yes
2011-03-07 09:36:46 +00:00
PKG_CHECK_MODULES(SOUNDTOUCH, soundtouch,
2009-04-23 16:33:25 +00:00
[HAVE_SOUNDTOUCH=yes],
2011-03-07 09:36:46 +00:00
[PKG_CHECK_MODULES(SOUNDTOUCH, soundtouch-1.4,
[HAVE_SOUNDTOUCH=yes],
[PKG_CHECK_MODULES(SOUNDTOUCH, soundtouch-1.0,
[HAVE_SOUNDTOUCH=yes
HAVE_SOUNDTOUCH_1_4=no
2011-06-04 11:25:57 +00:00
SOUNDTOUCH_LIBS="$SOUNDTOUCH_LIBS -lBPM"],
2011-03-07 09:36:46 +00:00
[PKG_CHECK_MODULES(SOUNDTOUCH, libSoundTouch >= 1.4,
[HAVE_SOUNDTOUCH=yes],
[PKG_CHECK_MODULES(SOUNDTOUCH, libSoundTouch,
[HAVE_SOUNDTOUCH=yes
HAVE_SOUNDTOUCH_1_4=no
SOUNDTOUCH_LIBS="$SOUNDTOUCH_LIBS -lBPM"],
HAVE_SOUNDTOUCH=no)])])])])
2006-03-22 14:31:47 +00:00
AC_SUBST(SOUNDTOUCH_CFLAGS)
AC_SUBST(SOUNDTOUCH_LIBS)
if test "x$HAVE_CXX" != "xyes"; then
USE_SOUNDTOUCH=false
AC_MSG_NOTICE([Not building soundtouch plugin: no C++ compiler found])
fi
2009-04-23 16:33:25 +00:00
if test "x$HAVE_SOUNDTOUCH" = "xyes" -a "x$HAVE_SOUNDTOUCH_1_4" = "xyes"; then
AC_DEFINE([HAVE_SOUNDTOUCH_1_4], [1],
[Defined if the available libSoundTouch is >= 1.4])
fi
2006-03-22 14:31:47 +00:00
])
2009-08-08 19:17:37 +00:00
dnl *** spc ***
translit(dnm, m, l) AM_CONDITIONAL(USE_SPC, true)
AG_GST_CHECK_FEATURE(SPC, [spc decoder], spc, [
AC_CHECK_HEADER(openspc.h, [
AC_CHECK_LIB(openspc, OSPC_Init, [
SPC_LIBS="-lopenspc"
AC_SUBST(SPC_LIBS)
HAVE_SPC=yes
], [
HAVE_SPC=no
])
], [
HAVE_SPC=no
])
])
2009-08-07 04:41:43 +00:00
dnl *** gme ***
translit(dnm, m, l) AM_CONDITIONAL(USE_GME, true)
AG_GST_CHECK_FEATURE(GME, [gme decoder], gme, [
2009-08-04 08:06:54 +00:00
AC_CHECK_HEADER(gme/gme.h, [
AC_CHECK_LIB(gme, gme_new_emu, [
2009-08-07 04:41:43 +00:00
GME_LIBS="-lgme"
AC_SUBST(GME_LIBS)
HAVE_GME=yes
Add libopenspc-based SPC decoder element (#348220).
Original commit message from CVS:
Patch by: Chris Lee <clee at kde org>
* configure.ac:
* ext/Makefile.am:
* ext/spc/Makefile.am:
* ext/spc/gstspc.c: (spc_negotiate), (gst_spc_dec_base_init),
(gst_spc_dec_class_init), (gst_spc_dec_init), (gst_spc_dec_chain),
(gst_spc_dec_sink_event), (gst_spc_dec_src_event),
(gst_spc_dec_src_query), (spc_play), (spc_setup),
(gst_spc_dec_change_state), (plugin_init):
* ext/spc/gstspc.h:
Add libopenspc-based SPC decoder element (#348220).
2006-07-23 11:52:34 +00:00
], [
2009-08-07 04:41:43 +00:00
HAVE_GME=no
Add libopenspc-based SPC decoder element (#348220).
Original commit message from CVS:
Patch by: Chris Lee <clee at kde org>
* configure.ac:
* ext/Makefile.am:
* ext/spc/Makefile.am:
* ext/spc/gstspc.c: (spc_negotiate), (gst_spc_dec_base_init),
(gst_spc_dec_class_init), (gst_spc_dec_init), (gst_spc_dec_chain),
(gst_spc_dec_sink_event), (gst_spc_dec_src_event),
(gst_spc_dec_src_query), (spc_play), (spc_setup),
(gst_spc_dec_change_state), (plugin_init):
* ext/spc/gstspc.h:
Add libopenspc-based SPC decoder element (#348220).
2006-07-23 11:52:34 +00:00
])
], [
2009-08-07 04:41:43 +00:00
HAVE_GME=no
Add libopenspc-based SPC decoder element (#348220).
Original commit message from CVS:
Patch by: Chris Lee <clee at kde org>
* configure.ac:
* ext/Makefile.am:
* ext/spc/Makefile.am:
* ext/spc/gstspc.c: (spc_negotiate), (gst_spc_dec_base_init),
(gst_spc_dec_class_init), (gst_spc_dec_init), (gst_spc_dec_chain),
(gst_spc_dec_sink_event), (gst_spc_dec_src_event),
(gst_spc_dec_src_query), (spc_play), (spc_setup),
(gst_spc_dec_change_state), (plugin_init):
* ext/spc/gstspc.h:
Add libopenspc-based SPC decoder element (#348220).
2006-07-23 11:52:34 +00:00
])
2009-08-04 08:18:46 +00:00
2009-08-07 04:41:43 +00:00
if test "x$HAVE_GME" = "xyes"; then
2009-08-04 08:18:46 +00:00
AC_CHECK_LIB(gme, gme_enable_accuracy, [
AC_DEFINE(HAVE_LIBGME_ACCURACY, 1, [Define if gme 0.5.6 or newer is available])
])
fi
Add libopenspc-based SPC decoder element (#348220).
Original commit message from CVS:
Patch by: Chris Lee <clee at kde org>
* configure.ac:
* ext/Makefile.am:
* ext/spc/Makefile.am:
* ext/spc/gstspc.c: (spc_negotiate), (gst_spc_dec_base_init),
(gst_spc_dec_class_init), (gst_spc_dec_init), (gst_spc_dec_chain),
(gst_spc_dec_sink_event), (gst_spc_dec_src_event),
(gst_spc_dec_src_query), (spc_play), (spc_setup),
(gst_spc_dec_change_state), (plugin_init):
* ext/spc/gstspc.h:
Add libopenspc-based SPC decoder element (#348220).
2006-07-23 11:52:34 +00:00
])
2006-10-10 15:47:49 +00:00
dnl *** dvb ***
translit(dnm, m, l) AM_CONDITIONAL(USE_DVB, true)
2007-02-28 19:31:12 +00:00
AG_GST_CHECK_FEATURE(DVB, [DVB Source], dvb, [
2006-10-10 15:47:49 +00:00
AC_MSG_CHECKING([Checking for up to date dvb installation])
2014-01-10 07:58:27 +00:00
AC_CHECK_HEADER(linux/dvb/version.h, [
2014-01-09 15:38:13 +00:00
AC_MSG_CHECKING([for up-to-date dvb API])
2014-01-10 07:58:27 +00:00
AC_COMPILE_IFELSE([AC_LANG_PROGRAM([[#include <linux/dvb/version.h>]], [[
2014-01-14 17:08:36 +00:00
#if DVB_API_VERSION < 5 || (DVB_API_VERSION == 5 && DVB_API_VERSION_MINOR <= 4)
2014-01-09 15:38:13 +00:00
#error "Incompatible dvb API"
#endif
]])], [ AC_MSG_RESULT(yes)
HAVE_DVB="yes"
], [ AC_MSG_RESULT(no)
HAVE_DVB="no"
])
], [HAVE_DVB="no"])
2006-10-10 15:47:49 +00:00
])
2008-08-20 21:44:22 +00:00
dnl *** acm ***
translit(dnm, m, l) AM_CONDITIONAL(USE_ACM, true)
AG_GST_CHECK_FEATURE(ACM, [Windows ACM library], acm, [
AC_MSG_CHECKING([Checking for ACM support])
AC_CHECK_HEADERS([windows.h msacm.h],
2009-03-26 10:37:28 +00:00
[HAVE_ACM="yes"
AC_SUBST(ACMENC_CFLAGS)
AC_SUBST(ACMMP3DEC_CFLAGS)
2010-01-11 15:09:38 +00:00
], [HAVE_ACM="no"],
[AC_INCLUDES_DEFAULT
#include <windows.h>])
2008-08-20 21:44:22 +00:00
])
2009-03-14 09:43:28 +00:00
dnl *** vdpau ***
translit(dnm, m, l) AM_CONDITIONAL(USE_VDPAU, true)
AG_GST_CHECK_FEATURE(VDPAU, [VDPAU], vdpau, [
2009-06-12 15:39:39 +00:00
VDPAU_CFLAGS=
VDPAU_LIBS=-lvdpau
HAVE_VDPAU=no
2009-09-01 18:48:43 +00:00
PKG_CHECK_MODULES(VDPAU, vdpau, [HAVE_VDPAU="yes"],
[
if test "$HAVE_VDPAU" = "no"; then
saved_CPPFLAGS="$CPPFLAGS"
2009-06-29 20:50:42 +00:00
AC_CHECK_HEADER([vdpau/vdpau.h], [HAVE_VDPAU_H=yes])
2011-06-04 11:25:57 +00:00
2009-09-01 18:48:43 +00:00
if test -z "$HAVE_VDPAU_H"; then
dnl Didn't find VDPAU header straight away.
dnl Try /usr/include/nvidia. Need to clear caching vars first
AC_MSG_NOTICE([VDPAU header not in standard path. Checking /usr/include/nvidia])
unset ac_cv_header_vdpau_vdpau_h
unset ac_cv_header_vdpau_vdpau_x11_h
VDPAU_CFLAGS="-I/usr/include/nvidia"
VDPAU_LIBS="-L/usr/lib/nvidia -lvdpau"
CPPFLAGS="$VDPAU_CFLAGS $saved_CPPFLAGS"
AC_CHECK_HEADER([vdpau/vdpau.h], [HAVE_VDPAU_H=yes])
fi
2011-06-04 11:25:57 +00:00
2009-09-01 18:48:43 +00:00
AC_CHECK_HEADER([vdpau/vdpau_x11.h], [HAVE_VDPAU_X11_H=yes])
2011-06-04 11:25:57 +00:00
2009-09-01 18:48:43 +00:00
if test "x$HAVE_VDPAU_H" = "xyes" -a "x$HAVE_VDPAU_X11_H" = "xyes"; then
dnl Found the headers - look for the lib
AC_MSG_NOTICE([VDPAU headers found. Checking libraries])
saved_LIBS="$LIBS"
LIBS="$VDPAU_LIBS $saved_LIBS"
AC_CHECK_LIB(vdpau,vdp_device_create_x11,[HAVE_VDPAU="yes"])
LIBS="$saved_LIBS"
fi
2009-06-29 20:50:42 +00:00
fi
2009-09-01 18:48:43 +00:00
])
2009-06-12 15:39:39 +00:00
if test "$HAVE_VDPAU" = "yes"; then
AC_MSG_NOTICE([Found up to date VDPAU installation])
AC_SUBST(VDPAU_CFLAGS)
AC_SUBST(VDPAU_LIBS)
fi
2009-03-14 09:43:28 +00:00
])
2013-01-16 11:36:25 +00:00
dnl *** sbc ***
translit(dnm, m, l) AM_CONDITIONAL(USE_SBC, true)
AG_GST_CHECK_FEATURE(SBC, [SBC bluetooth audio codec], sbc, [
2013-03-28 13:18:59 +00:00
AG_GST_PKG_CHECK_MODULES(SBC, [sbc >= 1.0])
2013-01-16 11:36:25 +00:00
])
2009-07-01 17:55:12 +00:00
dnl *** schroedinger ***
translit(dnm, m, l) AM_CONDITIONAL(USE_SCHRO, true)
AG_GST_CHECK_FEATURE(SCHRO, [Schroedinger video codec], schro, [
2012-01-22 23:48:28 +00:00
AG_GST_PKG_CHECK_MODULES(SCHRO, schroedinger-1.0 >= 1.0.10)
2009-07-01 17:55:12 +00:00
])
2009-10-01 20:51:04 +00:00
dnl *** zbar ***
translit(dnm, m, l) AM_CONDITIONAL(USE_ZBAR, true)
AG_GST_CHECK_FEATURE(ZBAR, [ZBar barcode detector], zbar, [
AG_GST_PKG_CHECK_MODULES(ZBAR, zbar >= 0.9)
])
2010-06-04 06:14:42 +00:00
dnl *** rtmp ***
translit(dnm, m, l) AM_CONDITIONAL(USE_RTMP, true)
AG_GST_CHECK_FEATURE(RTMP, [rtmp library], rtmp, [
AG_GST_PKG_CHECK_MODULES(RTMP, librtmp)
])
2011-09-07 02:11:06 +00:00
dnl *** spandsp ***
translit(dnm, m, l) AM_CONDITIONAL(USE_SPANDSP, true)
AG_GST_CHECK_FEATURE(SPANDSP, [Spandsp], spandsp, [
PKG_CHECK_MODULES(SPANDSP, spandsp >= 0.0.6, [
HAVE_SPANDSP="yes" ], [
HAVE_SPANDSP="no"
])
])
AC_SUBST(SPANDSP_CFLAGS)
AC_SUBST(SPANDSP_LIBS)
2015-11-05 10:12:41 +00:00
dnl *** hls-crypto ***
AC_ARG_WITH([hls-crypto],
AS_HELP_STRING([--with-hls-crypto=auto|nettle|libgcrypt|openssl], [
which cryptographic library version to compile against for hls (default: auto)
]), [
AS_CASE([$with_hls_crypto],
[nettle],[],
[libgcrypt],[],
[openssl],[],
[with_hls_crypto=auto]
)
]
)
2013-03-19 09:47:25 +00:00
dnl *** hls ***
translit(dnm, m, l) AM_CONDITIONAL(USE_HLS, true)
AG_GST_CHECK_FEATURE(HLS, [http live streaming plugin], hls, [
2015-11-05 10:12:41 +00:00
AS_CASE([$with_hls_crypto],
[nettle], [
PKG_CHECK_MODULES(NETTLE, nettle, [
AC_DEFINE(HAVE_NETTLE, 1, [Define if nettle is available])
HAVE_HLS="yes"
],[AC_MSG_ERROR([Could not find nettle library])])
],
[libgcrypt], [
AM_PATH_LIBGCRYPT([1.2.0], [
AC_DEFINE(HAVE_LIBGCRYPT, 1, [Define if libgcrypt is available])
HAVE_HLS="yes"
],[AC_MSG_ERROR([Could not find libgcrypt library])])
],
[openssl], [
PKG_CHECK_MODULES(OPENSSL, openssl, [
2014-08-22 21:18:59 +00:00
AC_DEFINE(HAVE_OPENSSL, 1, [Define if openssl is available])
HAVE_HLS="yes"
2015-11-05 10:12:41 +00:00
],[AC_MSG_ERROR([Could not find openssl library])])
],
[
dnl Try to find a valid crypto library
PKG_CHECK_MODULES(NETTLE, nettle, [
AC_DEFINE(HAVE_NETTLE, 1, [Define if nettle is available])
HAVE_HLS="yes"
],[
AM_PATH_LIBGCRYPT([1.2.0], [
AC_DEFINE(HAVE_LIBGCRYPT, 1, [Define if libgcrypt is available])
HAVE_HLS="yes"
],[
PKG_CHECK_MODULES(OPENSSL, openssl, [
AC_DEFINE(HAVE_OPENSSL, 1, [Define if openssl is available])
HAVE_HLS="yes"
],[
HAVE_HLS="no"
])
])
2014-08-22 21:18:59 +00:00
])
2015-11-05 10:12:41 +00:00
]
)
2013-03-19 09:47:25 +00:00
])
2014-03-05 15:39:30 +00:00
dnl *** x265 (H.265/HEVC encoder) ***
translit(dnm, m, l) AM_CONDITIONAL(USE_X265, true)
AG_GST_CHECK_FEATURE(X265, [x265 plug-in], x265, [
AG_GST_PKG_CHECK_MODULES(X265, x265)
])
2016-06-06 19:10:05 +00:00
dnl *** WebRTC Audio Processing ***
dnl Note: We test for a specific version as there is no API stability
translit(dnm, m, l) AM_CONDITIONAL(USE_WEBRTCDSP, true)
AG_GST_CHECK_FEATURE(WEBRTCDSP, [WebRTC Audio Processing], webrtcdsp, [
2016-07-07 16:31:03 +00:00
AG_GST_PKG_CHECK_MODULES(WEBRTCDSP, webrtc-audio-processing >= 0.2 webrtc-audio-processing < 0.4)
# On Android, C++ headers comes with the STL implementation
AS_CASE(["${host}"],
[*android*],
[
PKG_CHECK_MODULES(GNUSTL, gnustl, [
WEBRTCDSP_CFLAGS="$WEBRTCDSP_CFLAGS $GNUSTL_CFLAGS"
WEBRTCDSP_LIBS="$WEBRTCDSP_LIBS $GNUSTL_LIBS"])
])
AC_SUBST([WEBRTCDSP_CFLAGS])
AC_SUBST([WEBRTCDSP_LIBS])
2016-06-06 19:10:05 +00:00
AC_LANG_PUSH([C++])
old_CPPFLAGS=$CPPFLAGS
2016-07-07 16:31:03 +00:00
CPPFLAGS="-std=c++11 $CPPFLAGS $GNUSTL_CFLAGS"
2016-07-07 16:31:20 +00:00
AC_CHECK_HEADER([vector],[],[HAVE_WEBRTCDSP=no])
2016-06-06 19:10:05 +00:00
CPPFLAGS=$old_CPPFLAGS
AC_LANG_POP([C++])
])
2006-06-17 15:09:39 +00:00
else
dnl not building plugins with external dependencies,
dnl but we still need to set the conditionals
2009-02-05 15:54:01 +00:00
AM_CONDITIONAL(USE_ASSRENDER, false)
2011-04-19 08:07:23 +00:00
AM_CONDITIONAL(USE_VOAMRWBENC, false)
2011-04-18 15:19:00 +00:00
AM_CONDITIONAL(USE_VOAACENC, false)
2015-01-10 20:41:12 +00:00
AM_CONDITIONAL(USE_BS2B, false)
2006-06-17 15:09:39 +00:00
AM_CONDITIONAL(USE_BZ2, false)
2011-01-02 19:34:04 +00:00
AM_CONDITIONAL(USE_CHROMAPRINT, false)
2011-02-26 20:21:25 +00:00
AM_CONDITIONAL(USE_CURL, false)
2013-10-04 10:48:10 +00:00
AM_CONDITIONAL(USE_SSH2, false)
2013-05-08 14:14:15 +00:00
AM_CONDITIONAL(USE_DASH, false)
2008-03-30 21:06:58 +00:00
AM_CONDITIONAL(USE_DC1394, false)
2011-04-16 15:36:06 +00:00
AM_CONDITIONAL(USE_DECKLINK, false)
2012-06-21 10:43:23 +00:00
AM_CONDITIONAL(DECKLINK_OSX, false)
2006-06-17 15:09:39 +00:00
AM_CONDITIONAL(USE_DIRECTFB, false)
2011-11-02 09:02:11 +00:00
AM_CONDITIONAL(USE_WAYLAND, false)
2013-06-22 09:27:37 +00:00
AM_CONDITIONAL(USE_DAALA, false)
2009-08-31 16:55:52 +00:00
AM_CONDITIONAL(USE_DTS, false)
2010-08-08 23:42:25 +00:00
AM_CONDITIONAL(USE_EXIF, false)
2010-05-15 13:37:59 +00:00
AM_CONDITIONAL(USE_RESINDVD, false)
2006-06-17 15:09:39 +00:00
AM_CONDITIONAL(USE_FAAC, false)
AM_CONDITIONAL(USE_FAAD, false)
2008-01-06 22:00:32 +00:00
AM_CONDITIONAL(USE_FBDEV, false)
2016-08-07 19:53:30 +00:00
AM_CONDITIONAL(USE_FDK_AAC, false)
2010-05-14 15:53:20 +00:00
AM_CONDITIONAL(USE_FLITE, false)
2013-03-21 06:05:54 +00:00
AM_CONDITIONAL(USE_FLUIDSYNTH, false)
2014-07-04 15:51:58 +00:00
AM_CONDITIONAL(USE_GL, false)
2006-06-17 15:09:39 +00:00
AM_CONDITIONAL(USE_GSM, false)
2014-12-18 06:00:30 +00:00
AM_CONDITIONAL(USE_GTK3, false)
AM_CONDITIONAL(USE_GTK3_GL, false)
2013-03-20 15:19:15 +00:00
AM_CONDITIONAL(USE_HLS, false)
2016-11-16 16:18:53 +00:00
AM_CONDITIONAL(USE_IQA, false)
2009-08-31 16:55:52 +00:00
AM_CONDITIONAL(USE_KATE, false)
2016-01-20 11:00:51 +00:00
AM_CONDITIONAL(USE_KMS, false)
2009-08-31 16:55:52 +00:00
AM_CONDITIONAL(USE_TIGER, false)
2006-12-18 16:47:23 +00:00
AM_CONDITIONAL(USE_LADSPA, false)
2009-08-31 16:49:16 +00:00
AM_CONDITIONAL(USE_LV2, false)
2014-09-17 08:38:44 +00:00
AM_CONDITIONAL(USE_LIBDE265, false)
2006-06-17 15:09:39 +00:00
AM_CONDITIONAL(USE_LIBMMS, false)
2009-01-24 17:13:39 +00:00
AM_CONDITIONAL(USE_MODPLUG, false)
2009-08-31 16:55:52 +00:00
AM_CONDITIONAL(USE_MPEG2ENC, false)
2008-03-05 06:03:03 +00:00
AM_CONDITIONAL(USE_MPLEX, false)
2006-06-17 15:09:39 +00:00
AM_CONDITIONAL(USE_MUSEPACK, false)
AM_CONDITIONAL(USE_NEON, false)
Add an OFA element, the successor of MusicBrainz TRM fingerprinting.
Original commit message from CVS:
Based on a patch by: Eric Buehl <eric dot buehl at gmail dot com>
* configure.ac:
* ext/ofa/Makefile.am:
* ext/ofa/gstofa.c: (gst_ofa_base_init), (gst_ofa_finalize),
(gst_ofa_class_init), (create_fingerprint), (gst_ofa_event),
(gst_ofa_init), (gst_ofa_transform_ip), (gst_ofa_get_property),
(plugin_init):
* ext/ofa/gstofa.h:
Add an OFA element, the successor of MusicBrainz TRM fingerprinting.
Fixes bug #351309.
2008-03-19 18:14:17 +00:00
AM_CONDITIONAL(USE_OFA, false)
2011-05-23 11:41:36 +00:00
AM_CONDITIONAL(USE_OPENAL, false)
2011-01-07 15:47:39 +00:00
AM_CONDITIONAL(USE_OPENCV, false)
2013-12-14 12:32:26 +00:00
AM_CONDITIONAL(USE_OPENEXR, false)
2013-01-07 10:36:45 +00:00
AM_CONDITIONAL(USE_OPENJPEG, false)
2016-07-27 00:22:26 +00:00
AM_CONDITIONAL(USE_OPENMPT, false)
2013-12-02 10:17:02 +00:00
AM_CONDITIONAL(USE_OPENNI2, false)
2011-06-05 07:54:19 +00:00
AM_CONDITIONAL(USE_OPUS, false)
2015-07-06 13:10:51 +00:00
AM_CONDITIONAL(USE_QT, false)
2009-08-31 16:55:52 +00:00
AM_CONDITIONAL(USE_WILDMIDI, false)
2012-11-08 18:42:39 +00:00
AM_CONDITIONAL(USE_SMOOTHSTREAMING, false)
2007-02-02 13:28:05 +00:00
AM_CONDITIONAL(USE_SNDFILE, false)
2006-06-17 15:09:39 +00:00
AM_CONDITIONAL(USE_SOUNDTOUCH, false)
2011-09-07 02:11:06 +00:00
AM_CONDITIONAL(USE_SPANDSP, false)
2009-08-08 19:17:37 +00:00
AM_CONDITIONAL(USE_SPC, false)
2013-03-12 23:47:51 +00:00
AM_CONDITIONAL(USE_SRTP, false)
2009-08-31 16:55:52 +00:00
AM_CONDITIONAL(USE_GME, false)
AM_CONDITIONAL(USE_DVB, false)
2008-08-20 21:44:22 +00:00
AM_CONDITIONAL(USE_ACM, false)
2009-03-14 09:43:28 +00:00
AM_CONDITIONAL(USE_VDPAU, false)
2013-12-14 12:32:26 +00:00
AM_CONDITIONAL(USE_SBC, false)
2009-08-31 16:49:16 +00:00
AM_CONDITIONAL(USE_SCHRO, false)
2009-10-01 20:51:04 +00:00
AM_CONDITIONAL(USE_ZBAR, false)
2014-07-04 15:51:58 +00:00
AM_CONDITIONAL(USE_RSVG, false)
2010-06-04 06:14:42 +00:00
AM_CONDITIONAL(USE_RTMP, false)
2010-09-13 09:59:18 +00:00
AM_CONDITIONAL(USE_TELETEXTDEC, false)
2012-09-10 20:09:26 +00:00
AM_CONDITIONAL(USE_UVCH264, false)
2013-08-23 21:46:38 +00:00
AM_CONDITIONAL(USE_WEBP, false)
2016-07-07 16:20:45 +00:00
AM_CONDITIONAL(USE_WEBRTCDSP, false)
2014-10-03 10:45:26 +00:00
AM_CONDITIONAL(USE_OPENH264, false)
2014-03-05 15:39:30 +00:00
AM_CONDITIONAL(USE_X265, false)
2015-03-16 16:33:03 +00:00
AM_CONDITIONAL(USE_DTLS, false)
2016-09-19 09:18:22 +00:00
AM_CONDITIONAL(USE_VULKAN, false)
2016-06-29 08:58:38 +00:00
AM_CONDITIONAL(USE_TTML, false)
2006-06-17 15:09:39 +00:00
2006-04-01 10:09:11 +00:00
fi dnl of EXT plugins
2005-12-14 22:41:47 +00:00
2006-04-01 10:09:11 +00:00
dnl *** finalize CFLAGS, LDFLAGS, LIBS
2005-06-29 16:14:29 +00:00
2006-04-01 10:09:11 +00:00
dnl Overview:
dnl GST_OPTION_CFLAGS: common flags for profiling, debugging, errors, ...
dnl GST_*: flags shared by built objects to link against GStreamer
dnl GST_ALL_LDFLAGS: linker flags shared by all
dnl GST_LIB_LDFLAGS: additional linker flags for all libaries
dnl GST_LT_LDFLAGS: library versioning of our libraries
dnl GST_PLUGIN_LDFLAGS: flags to be used for all plugins
dnl GST_OPTION_CFLAGS
if test "x$USE_DEBUG" = xyes; then
PROFILE_CFLAGS="-g"
fi
AC_SUBST(PROFILE_CFLAGS)
2001-12-17 18:37:01 +00:00
2008-02-08 01:12:09 +00:00
if test "x$PACKAGE_VERSION_NANO" = "x1"; then
dnl Define _only_ during CVS (not pre-releases or releases)
2010-09-21 10:33:18 +00:00
DEPRECATED_CFLAGS="-DGST_DISABLE_DEPRECATED"
2007-12-09 04:30:06 +00:00
else
DEPRECATED_CFLAGS=""
fi
2006-04-01 10:09:11 +00:00
AC_SUBST(DEPRECATED_CFLAGS)
2005-11-06 21:55:01 +00:00
2008-02-23 15:01:32 +00:00
dnl every flag in GST_OPTION_CFLAGS and GST_OPTION_CXXFLAGS can be overridden
dnl at make time with e.g. make ERROR_CFLAGS=""
2010-03-10 20:01:20 +00:00
GST_OPTION_CFLAGS="\$(WARNING_CFLAGS) \$(ERROR_CFLAGS) \$(DEBUG_CFLAGS) \$(PROFILE_CFLAGS) \$(GCOV_CFLAGS) \$(OPT_CFLAGS) \$(DEPRECATED_CFLAGS)"
GST_OPTION_CXXFLAGS="\$(WARNING_CXXFLAGS) \$(ERROR_CXXFLAGS) \$(DEBUG_CFLAGS) \$(PROFILE_CFLAGS) \$(GCOV_CFLAGS) \$(OPT_CFLAGS) \$(DEPRECATED_CFLAGS)"
2012-05-30 09:24:06 +00:00
GST_OPTION_OBJCFLAGS="\$(WARNING_OBJCFLAGS) \$(ERROR_OBJCFLAGS) \$(DEBUG_CFLAGS) \$(PROFILE_CFLAGS) \$(GCOV_CFLAGS) \$(OPT_CFLAGS) \$(DEPRECATED_CFLAGS)"
2006-04-01 10:09:11 +00:00
AC_SUBST(GST_OPTION_CFLAGS)
2008-02-23 15:01:32 +00:00
AC_SUBST(GST_OPTION_CXXFLAGS)
2012-05-30 09:24:06 +00:00
AC_SUBST(GST_OPTION_OBJCFLAGS)
2005-11-06 21:55:01 +00:00
2006-04-01 10:09:11 +00:00
dnl FIXME: do we want to rename to GST_ALL_* ?
dnl prefer internal headers to already installed ones
dnl also add builddir include for enumtypes and marshal
dnl add GST_OPTION_CFLAGS, but overridable
2016-06-23 20:27:13 +00:00
GST_CFLAGS="$GST_CFLAGS $GST_STATIC_CFLAGS -DGST_USE_UNSTABLE_API"
2010-06-14 11:26:49 +00:00
GST_CXXFLAGS="$GST_CFLAGS $GLIB_EXTRA_CFLAGS \$(GST_OPTION_CXXFLAGS)"
2012-05-30 09:24:06 +00:00
GST_OBJCFLAGS="$GST_CFLAGS $GLIB_EXTRA_CFLAGS \$(GST_OPTION_OBJCFLAGS)"
2010-06-14 11:26:49 +00:00
GST_CFLAGS="$GST_CFLAGS $GLIB_EXTRA_CFLAGS \$(GST_OPTION_CFLAGS)"
2006-04-01 10:09:11 +00:00
AC_SUBST(GST_CFLAGS)
2008-02-23 15:01:32 +00:00
AC_SUBST(GST_CXXFLAGS)
2012-05-30 09:24:06 +00:00
AC_SUBST(GST_OBJCFLAGS)
2006-04-01 10:09:11 +00:00
AC_SUBST(GST_LIBS)
2010-05-20 00:12:55 +00:00
GST_PLUGINS_BAD_CXXFLAGS="-I\$(top_srcdir)/gst-libs -I\$(top_builddir)/gst-libs"
2012-05-30 09:24:06 +00:00
GST_PLUGINS_BAD_OBJCFLAGS="-I\$(top_srcdir)/gst-libs -I\$(top_builddir)/gst-libs"
2010-05-20 00:12:55 +00:00
GST_PLUGINS_BAD_CFLAGS="-I\$(top_srcdir)/gst-libs -I\$(top_builddir)/gst-libs"
AC_SUBST(GST_PLUGINS_BAD_CFLAGS)
AC_SUBST(GST_PLUGINS_BAD_CXXFLAGS)
2012-05-30 09:24:06 +00:00
AC_SUBST(GST_PLUGINS_BAD_OBJCFLAGS)
2006-04-01 10:09:11 +00:00
2006-05-11 20:47:50 +00:00
dnl LDFLAGS really should only contain flags, not libs - they get added before
dnl whatevertarget_LIBS and -L flags here affect the rest of the linking
GST_ALL_LDFLAGS="-no-undefined"
2015-12-21 11:33:25 +00:00
if test "x${enable_Bsymbolic}" = "xyes"; then
GST_ALL_LDFLAGS="$GST_ALL_LDFLAGS -Wl,-Bsymbolic-functions"
fi
2006-05-11 20:47:50 +00:00
AC_SUBST(GST_ALL_LDFLAGS)
2011-02-07 13:05:34 +00:00
dnl GST_LIB_LDFLAGS
dnl linker flags shared by all libraries
dnl LDFLAGS modifier defining exported symbols from built libraries
dnl (export _gst_foo but not __gst_foo)
GST_LIB_LDFLAGS="-export-symbols-regex ^_?\(gst_\|Gst\|GST_\).*"
AC_SUBST(GST_LIB_LDFLAGS)
2006-04-01 10:09:11 +00:00
dnl this really should only contain flags, not libs - they get added before
dnl whatevertarget_LIBS and -L flags here affect the rest of the linking
2012-10-24 10:16:39 +00:00
GST_PLUGIN_LDFLAGS="-module -avoid-version -export-symbols-regex '^[_]*gst_plugin_.*' $GST_ALL_LDFLAGS"
2006-04-01 10:09:11 +00:00
AC_SUBST(GST_PLUGIN_LDFLAGS)
dnl *** output files ***
2003-10-31 20:03:29 +00:00
2013-08-09 19:12:09 +00:00
$MKDIR_P tests/check/orc
2005-08-31 18:07:29 +00:00
dnl po/Makefile.in
2001-12-17 18:37:01 +00:00
2002-02-08 20:12:28 +00:00
AC_CONFIG_FILES(
2001-12-17 18:37:01 +00:00
Makefile
2009-06-12 07:40:48 +00:00
common/Makefile
common/m4/Makefile
2001-12-21 11:46:15 +00:00
gst/Makefile
2012-10-28 16:36:01 +00:00
gst/accurip/Makefile
2009-05-22 23:56:52 +00:00
gst/adpcmdec/Makefile
2009-12-12 00:32:48 +00:00
gst/adpcmenc/Makefile
2009-10-31 17:20:53 +00:00
gst/aiff/Makefile
2015-04-21 18:09:19 +00:00
gst/videoframe_audiolevel/Makefile
2009-07-24 17:52:28 +00:00
gst/asfmux/Makefile
2016-11-18 19:00:03 +00:00
gst/audiobuffersplit/Makefile
2013-05-18 20:57:11 +00:00
gst/audiofxbad/Makefile
2013-11-06 14:18:50 +00:00
gst/audiomixer/Makefile
2017-01-16 17:36:07 +00:00
gst/audiomixmatrix/Makefile
2011-06-04 11:25:57 +00:00
gst/audiovisualizers/Makefile
2009-02-26 02:05:42 +00:00
gst/autoconvert/Makefile
2007-05-15 02:54:52 +00:00
gst/bayer/Makefile
2010-11-24 20:28:57 +00:00
gst/camerabin2/Makefile
2010-08-01 21:03:24 +00:00
gst/coloreffects/Makefile
2009-04-16 15:36:13 +00:00
gst/debugutils/Makefile
2010-11-29 20:06:07 +00:00
gst/dvbsuboverlay/Makefile
dvdspu element donated by Fluendo. It implements a DVD Sub-Picture
Original commit message from CVS:
* configure.ac:
* gst/dvdspu/.cvsignore:
* gst/dvdspu/Notes.txt:
* gst/dvdspu/gstdvdspu-render.c: (dvdspu_recalc_palette),
(dvdspu_update_palettes), (dvdspu_clear_comp_buffers),
(dvdspu_get_nibble), (dvdspu_get_rle_code), (dvdspu_draw_rle_run),
(rle_end_x), (dvdspu_render_line), (dvdspu_update_chgcol),
(dvdspu_render_line_with_chgcol), (dvdspu_blend_comp_buffers),
(gstdvdspu_render_spu):
* gst/dvdspu/gstdvdspu.c: (dvdspu_base_init), (dvdspu_class_init),
(dvdspu_init), (dvdspu_clear), (dvdspu_dispose), (dvdspu_finalize),
(dvdspu_flush_spu_info), (dvdspu_buffer_alloc), (dvdspu_src_event),
(dvdspu_video_set_caps), (dvdspu_video_proxy_getcaps),
(dvdspu_video_event), (dvdspu_video_chain),
(dvspu_handle_vid_buffer), (dvdspu_redraw_still),
(gstdvdspu_parse_chg_colcon), (dvdspu_exec_cmd_blk),
(dvdspu_finish_spu_buf), (dvdspu_setup_cmd_blk),
(dvdspu_handle_new_spu_buf), (dvdspu_handle_dvd_event),
(dvdspu_dump_dcsq), (dvdspu_advance_spu),
(dvdspu_check_still_updates), (dvdspu_subpic_chain),
(dvdspu_subpic_event), (dvdspu_change_state),
(gstdvdspu_plugin_init):
* gst/dvdspu/gstdvdspu.h:
dvdspu element donated by Fluendo. It implements a DVD Sub-Picture
Unit, decoding and overlaying DVD subtitles and menu graphics.
* gst/mpeg2sub/.cvsignore:
* gst/mpeg2sub/Makefile.am:
* gst/mpeg2sub/Notes.txt:
* gst/mpeg2sub/gstmpeg2subt.c:
* gst/mpeg2sub/gstmpeg2subt.h:
* gst/mpeg2sub/mpeg2subt.vcproj:
Delete old and broken mpeg2subt element that was never ported from 0.8
2007-08-27 14:33:59 +00:00
gst/dvdspu/Makefile
2017-04-05 21:03:08 +00:00
gst/faceoverlay/Makefile
2007-08-23 13:24:33 +00:00
gst/festival/Makefile
2010-09-15 15:32:09 +00:00
gst/fieldanalysis/Makefile
2011-11-21 21:55:40 +00:00
gst/freeverb/Makefile
2009-06-12 12:59:28 +00:00
gst/frei0r/Makefile
2010-07-13 01:37:47 +00:00
gst/gaudieffects/Makefile
2010-05-25 02:57:05 +00:00
gst/geometrictransform/Makefile
2012-09-11 00:52:46 +00:00
gst/gdp/Makefile
2009-05-21 20:15:46 +00:00
gst/id3tag/Makefile
2011-06-04 02:41:33 +00:00
gst/inter/Makefile
2010-08-23 04:43:20 +00:00
gst/interlace/Makefile
2010-05-22 07:02:26 +00:00
gst/ivfparse/Makefile
2013-02-20 23:32:15 +00:00
gst/ivtc/Makefile
2010-11-15 19:03:01 +00:00
gst/jp2kdecimator/Makefile
2009-08-19 10:22:30 +00:00
gst/jpegformat/Makefile
2006-11-17 03:15:40 +00:00
gst/librfb/Makefile
2013-03-21 05:50:52 +00:00
gst/midi/Makefile
2008-09-02 12:04:32 +00:00
gst/mpegdemux/Makefile
2011-02-16 16:57:42 +00:00
gst/mpegtsdemux/Makefile
Add Fluendo MPEG-TS muxer and libtsmux to gst-plugins-bad. This is renamed to mpegtsmux to prevent conflicts. Also al...
Original commit message from CVS:
* configure.ac:
* gst/mpegtsmux/Makefile.am:
* gst/mpegtsmux/mpegtsmux.c: (mpegtsmux_base_init),
(mpegtsmux_class_init), (mpegtsmux_init), (mpegtsmux_dispose),
(gst_mpegtsmux_set_property), (gst_mpegtsmux_get_property),
(release_buffer_cb), (mpegtsmux_create_stream),
(mpegtsmux_create_streams), (mpegtsmux_choose_best_stream),
(mpegtsmux_collected), (mpegtsmux_request_new_pad),
(mpegtsmux_release_pad), (new_packet_cb),
(mpegtsdemux_prepare_srcpad), (mpegtsmux_change_state),
(plugin_init):
* gst/mpegtsmux/mpegtsmux.h:
* gst/mpegtsmux/mpegtsmux_aac.c: (mpegtsmux_prepare_aac):
* gst/mpegtsmux/mpegtsmux_aac.h:
* gst/mpegtsmux/mpegtsmux_h264.c: (mpegtsmux_prepare_h264):
* gst/mpegtsmux/mpegtsmux_h264.h:
* gst/mpegtsmux/tsmux/Makefile.am:
* gst/mpegtsmux/tsmux/crc.h:
* gst/mpegtsmux/tsmux/tsmux.c: (tsmux_new), (tsmux_set_write_func),
(tsmux_set_pat_frequency), (tsmux_get_pat_frequency), (tsmux_free),
(tsmux_program_new), (tsmux_set_pmt_frequency),
(tsmux_get_pmt_frequency), (tsmux_program_add_stream),
(tsmux_program_set_pcr_stream), (tsmux_get_new_pid),
(tsmux_create_stream), (tsmux_find_stream), (tsmux_packet_out),
(tsmux_write_adaptation_field), (tsmux_write_ts_header),
(tsmux_write_stream_packet), (tsmux_program_free),
(tsmux_write_section), (tsmux_write_section_hdr),
(tsmux_write_pat), (tsmux_write_pmt):
* gst/mpegtsmux/tsmux/tsmux.h:
* gst/mpegtsmux/tsmux/tsmuxcommon.h:
* gst/mpegtsmux/tsmux/tsmuxstream.c: (tsmux_stream_new),
(tsmux_stream_get_pid), (tsmux_stream_free),
(tsmux_stream_set_buffer_release_func), (tsmux_stream_consume),
(tsmux_stream_at_pes_start), (tsmux_stream_bytes_avail),
(tsmux_stream_bytes_in_buffer), (tsmux_stream_get_data),
(tsmux_stream_pes_header_length),
(tsmux_stream_find_pts_dts_within),
(tsmux_stream_write_pes_header), (tsmux_stream_add_data),
(tsmux_stream_get_es_descrs), (tsmux_stream_pcr_ref),
(tsmux_stream_pcr_unref), (tsmux_stream_is_pcr),
(tsmux_stream_get_pts):
* gst/mpegtsmux/tsmux/tsmuxstream.h:
Add Fluendo MPEG-TS muxer and libtsmux to gst-plugins-bad. This
is renamed to mpegtsmux to prevent conflicts. Also all relevant
informations about copyright and license are added to the top of
every file but apart from that no changes compared to the latest
SVN versions happened.
2008-09-01 16:38:40 +00:00
gst/mpegtsmux/Makefile
gst/mpegtsmux/tsmux/Makefile
2009-08-11 10:00:10 +00:00
gst/mpegpsmux/Makefile
Add first version of an MXF demuxer. Currently it supports
Original commit message from CVS:
* configure.ac:
* gst/mxf/Makefile.am:
* gst/mxf/mxf.c: (plugin_init):
* gst/mxf/mxfaes-bwf.c:
(mxf_metadata_wave_audio_essence_descriptor_parse),
(mxf_metadata_wave_audio_essence_descriptor_reset),
(mxf_is_aes_bwf_essence_track), (mxf_bwf_handle_essence_element),
(mxf_bwf_create_caps), (mxf_aes_bwf_create_caps):
* gst/mxf/mxfaes-bwf.h:
* gst/mxf/mxfdemux.c: (gst_mxf_pad_finalize),
(gst_mxf_pad_class_init), (gst_mxf_pad_init),
(gst_mxf_demux_flush), (gst_mxf_demux_remove_pad),
(gst_mxf_demux_reset_mxf_state), (gst_mxf_demux_reset_metadata),
(gst_mxf_demux_reset), (gst_mxf_demux_pull_range),
(gst_mxf_demux_push_src_event),
(gst_mxf_demux_handle_partition_pack),
(gst_mxf_demux_handle_primer_pack),
(gst_mxf_demux_handle_metadata_preface),
(gst_mxf_demux_handle_metadata_identification),
(gst_mxf_demux_handle_metadata_content_storage),
(gst_mxf_demux_handle_metadata_essence_container_data),
(gst_mxf_demux_handle_metadata_material_package),
(gst_mxf_demux_handle_metadata_source_package),
(gst_mxf_demux_handle_metadata_track),
(gst_mxf_demux_handle_metadata_sequence),
(gst_mxf_demux_handle_metadata_structural_component),
(gst_mxf_demux_handle_metadata_generic_descriptor),
(gst_mxf_demux_handle_metadata_file_descriptor),
(gst_mxf_demux_handle_metadata_multiple_descriptor),
(gst_mxf_demux_handle_metadata_generic_picture_essence_descriptor),
(gst_mxf_demux_handle_metadata_cdci_picture_essence_descriptor),
(gst_mxf_demux_handle_metadata_mpeg_video_descriptor),
(gst_mxf_demux_handle_metadata_generic_sound_essence_descriptor),
(gst_mxf_demux_handle_metadata_wave_audio_essence_descriptor),
(gst_mxf_demux_handle_metadata_locator),
(gst_mxf_demux_handle_header_metadata_resolve_references),
(gst_mxf_demux_handle_header_metadata_update_streams),
(gst_mxf_demux_handle_metadata),
(gst_mxf_demux_handle_generic_container_system_item),
(gst_mxf_demux_handle_generic_container_essence_element),
(gst_mxf_demux_handle_random_index_pack),
(gst_mxf_demux_handle_index_table_segment),
(gst_mxf_demux_pull_klv_packet),
(gst_mxf_demux_parse_footer_metadata),
(gst_mxf_demux_handle_klv_packet),
(gst_mxf_demux_pull_and_handle_klv_packet), (gst_mxf_demux_loop),
(gst_mxf_demux_chain), (gst_mxf_demux_src_event),
(gst_mxf_demux_src_query_type), (gst_mxf_demux_src_query),
(gst_mxf_demux_sink_activate), (gst_mxf_demux_sink_activate_push),
(gst_mxf_demux_sink_activate_pull), (gst_mxf_demux_sink_event),
(gst_mxf_demux_change_state), (gst_mxf_demux_finalize),
(gst_mxf_demux_base_init), (gst_mxf_demux_class_init),
(gst_mxf_demux_init):
* gst/mxf/mxfdemux.h:
* gst/mxf/mxfmpeg.c: (mxf_metadata_mpeg_video_descriptor_parse),
(mxf_metadata_mpeg_video_descriptor_reset),
(mxf_is_mpeg_video_essence_track),
(mxf_mpeg_video_handle_essence_element),
(mxf_mpeg_video_create_caps):
* gst/mxf/mxfmpeg.h:
* gst/mxf/mxfparse.c: (mxf_is_mxf_packet), (mxf_is_partition_pack),
(mxf_is_header_partition_pack), (mxf_is_body_partition_pack),
(mxf_is_footer_partition_pack), (mxf_is_fill),
(mxf_is_primer_pack), (mxf_is_metadata),
(mxf_is_random_index_pack), (mxf_is_index_table_segment),
(mxf_is_generic_container_system_item),
(mxf_is_generic_container_essence_element),
(mxf_is_generic_container_essence_container_label),
(mxf_ul_is_equal), (mxf_ul_is_zero), (mxf_ul_to_string),
(mxf_umid_is_equal), (mxf_umid_is_zero), (mxf_umid_to_string),
(gst_mxf_ul_hash), (gst_mxf_ul_equal), (mxf_timestamp_parse),
(mxf_timestamp_is_unknown), (mxf_timestamp_compare),
(mxf_fraction_parse), (mxf_utf16_to_utf8),
(mxf_product_version_parse), (mxf_partition_pack_parse),
(mxf_partition_pack_reset), (_mxf_mapping_ul_free),
(mxf_primer_pack_parse), (mxf_primer_pack_reset),
(mxf_local_tag_parse), (gst_mxf_local_tag_free),
(gst_metadata_add_custom_tag), (mxf_metadata_preface_parse),
(mxf_metadata_preface_reset), (mxf_metadata_identification_parse),
(mxf_metadata_identification_reset),
(mxf_metadata_content_storage_parse),
(mxf_metadata_content_storage_reset),
(mxf_metadata_essence_container_data_parse),
(mxf_metadata_essence_container_data_reset),
(mxf_metadata_generic_package_parse),
(mxf_metadata_generic_package_reset), (mxf_metadata_track_parse),
(mxf_metadata_track_reset), (mxf_metadata_track_identifier_parse),
(mxf_metadata_sequence_parse), (mxf_metadata_sequence_reset),
(mxf_metadata_structural_component_parse),
(mxf_metadata_structural_component_reset),
(mxf_metadata_generic_descriptor_parse),
(mxf_metadata_generic_descriptor_reset),
(mxf_metadata_file_descriptor_parse),
(mxf_metadata_file_descriptor_reset),
(mxf_metadata_generic_sound_essence_descriptor_parse),
(mxf_metadata_generic_sound_essence_descriptor_reset),
(mxf_metadata_generic_picture_essence_descriptor_parse),
(mxf_metadata_generic_picture_essence_descriptor_reset),
(mxf_metadata_cdci_picture_essence_descriptor_parse),
(mxf_metadata_cdci_picture_essence_descriptor_reset),
(mxf_metadata_multiple_descriptor_parse),
(mxf_metadata_multiple_descriptor_reset),
(mxf_metadata_locator_parse), (mxf_metadata_locator_reset):
* gst/mxf/mxfparse.h:
* gst/mxf/mxftypes.h:
Add first version of an MXF demuxer. Currently it supports
MPEG video and raw audio and OP 1a/b/c.
2008-11-21 10:27:15 +00:00
gst/mxf/Makefile
2015-10-07 21:49:58 +00:00
gst/netsim/Makefile
2014-04-28 09:07:17 +00:00
gst/onvif/Makefile
2008-08-24 13:53:29 +00:00
gst/pcapparse/Makefile
2009-09-10 06:23:22 +00:00
gst/pnm/Makefile
Add new plugin rawparse that contains a base class for raw data parsers and the two elements audioparse and videopars...
Original commit message from CVS:
* configure.ac:
* gst/rawparse/Makefile.am:
* gst/rawparse/README:
* gst/rawparse/gstaudioparse.c: (gst_audio_parse_format_get_type),
(gst_audio_parse_endianness_get_type), (gst_audio_parse_base_init),
(gst_audio_parse_class_init), (gst_audio_parse_init),
(gst_audio_parse_set_property), (gst_audio_parse_get_property),
(gst_audio_parse_update_frame_size), (gst_audio_parse_get_caps):
* gst/rawparse/gstaudioparse.h:
* gst/rawparse/gstrawparse.c: (gst_raw_parse_base_init),
(gst_raw_parse_class_init), (gst_raw_parse_init),
(gst_raw_parse_dispose),
(gst_raw_parse_class_set_src_pad_template),
(gst_raw_parse_class_set_multiple_frames_per_buffer),
(gst_raw_parse_reset), (gst_raw_parse_chain),
(gst_raw_parse_convert), (gst_raw_parse_sink_event),
(gst_raw_parse_src_event), (gst_raw_parse_src_query_type),
(gst_raw_parse_src_query), (gst_raw_parse_set_framesize),
(gst_raw_parse_set_fps), (gst_raw_parse_get_fps),
(gst_raw_parse_is_negotiated):
* gst/rawparse/gstrawparse.h:
* gst/rawparse/gstvideoparse.c: (gst_video_parse_format_get_type),
(gst_video_parse_endianness_get_type), (gst_video_parse_base_init),
(gst_video_parse_class_init), (gst_video_parse_init),
(gst_video_parse_set_property), (gst_video_parse_get_property),
(gst_video_parse_format_to_fourcc),
(gst_video_parse_update_frame_size), (gst_video_parse_get_caps):
* gst/rawparse/gstvideoparse.h:
* gst/rawparse/plugin.c: (plugin_init):
Add new plugin rawparse that contains a base class for raw data
parsers and the two elements audioparse and videoparse that can
be used to parse raw audio and video. These are inspired by the
old videoparse element which the new rawparse plugin deprecates.
2007-12-23 06:22:32 +00:00
gst/rawparse/Makefile
2011-06-16 20:19:49 +00:00
gst/removesilence/Makefile
Added SDP demuxer element. Fixes #426657.
Original commit message from CVS:
* configure.ac:
* gst/sdp/gstsdpdemux.c: (_do_init), (gst_sdp_demux_base_init),
(gst_sdp_demux_class_init), (gst_sdp_demux_init),
(gst_sdp_demux_finalize), (gst_sdp_demux_set_property),
(gst_sdp_demux_get_property), (find_stream_by_id),
(find_stream_by_pt), (find_stream_by_udpsrc), (find_stream),
(gst_sdp_demux_stream_free), (gst_sdp_demux_create_stream),
(gst_sdp_demux_cleanup), (get_default_rate_for_pt),
(gst_sdp_demux_parse_rtpmap), (gst_sdp_demux_media_to_caps),
(new_session_pad), (request_pt_map), (gst_sdp_demux_do_stream_eos),
(on_bye_ssrc), (on_timeout), (gst_sdp_demux_configure_manager),
(gst_sdp_demux_stream_configure_udp),
(gst_sdp_demux_stream_configure_udp_sink),
(gst_sdp_demux_combine_flows), (gst_sdp_demux_stream_push_event),
(gst_sdp_demux_handle_message), (gst_sdp_demux_start),
(gst_sdp_demux_sink_event), (gst_sdp_demux_sink_chain),
(gst_sdp_demux_change_state):
* gst/sdp/gstsdpdemux.h:
* gst/sdp/gstsdpelem.c: (plugin_init):
Added SDP demuxer element. Fixes #426657.
2007-10-01 11:43:09 +00:00
gst/sdp/Makefile
2010-02-28 18:41:02 +00:00
gst/segmentclip/Makefile
2009-02-10 17:29:05 +00:00
gst/siren/Makefile
2011-11-21 07:20:14 +00:00
gst/smooth/Makefile
2005-10-17 20:48:35 +00:00
gst/speed/Makefile
2008-04-01 22:40:49 +00:00
gst/subenc/Makefile
2007-08-09 17:39:47 +00:00
gst/stereo/Makefile
2016-05-20 15:17:52 +00:00
gst/timecode/Makefile
2011-02-27 00:20:52 +00:00
gst/videofilters/Makefile
2011-01-27 17:16:14 +00:00
gst/videoparsers/Makefile
Added videosignal plugin with two plugins to analyse video frames.
Original commit message from CVS:
* configure.ac:
* docs/plugins/Makefile.am:
* docs/plugins/gst-plugins-bad-plugins-docs.sgml:
* docs/plugins/gst-plugins-bad-plugins-sections.txt:
* docs/plugins/inspect/plugin-videosignal.xml:
* gst/videosignal/Makefile.am:
* gst/videosignal/gstvideoanalyse.c: (gst_video_analyse_set_caps),
(gst_video_analyse_post_message), (gst_video_analyse_420),
(gst_video_analyse_transform_ip), (gst_video_analyse_set_property),
(gst_video_analyse_get_property), (gst_video_analyse_base_init),
(gst_video_analyse_class_init), (gst_video_analyse_init),
(gst_video_analyse_get_type):
* gst/videosignal/gstvideoanalyse.h:
* gst/videosignal/gstvideodetect.c: (gst_video_detect_set_caps),
(gst_video_detect_post_message),
(gst_video_detect_calc_brightness), (gst_video_detect_420),
(gst_video_detect_transform_ip), (gst_video_detect_set_property),
(gst_video_detect_get_property), (gst_video_detect_base_init),
(gst_video_detect_class_init), (gst_video_detect_init),
(gst_video_detect_get_type):
* gst/videosignal/gstvideodetect.h:
* gst/videosignal/gstvideosignal.c: (plugin_init):
* gst/videosignal/gstvideosignal.h:
Added videosignal plugin with two plugins to analyse video frames.
Added videoanalyse to report about brightness and variance in video
frames.
Added videodetect to detect predefined patterns in a video signal.
2007-05-30 14:52:07 +00:00
gst/videosignal/Makefile
Add VMnc decoder.
Original commit message from CVS:
* configure.ac:
* gst/vmnc/Makefile.am:
* gst/vmnc/vmncdec.c: (gst_vmnc_dec_base_init),
(gst_vmnc_dec_class_init), (gst_vmnc_dec_init),
(gst_vmnc_dec_reset), (vmnc_handle_wmvi_rectangle),
(render_colour_cursor), (render_cursor), (vmnc_make_buffer),
(vmnc_handle_wmvd_rectangle), (vmnc_handle_wmve_rectangle),
(vmnc_handle_wmvf_rectangle), (vmnc_handle_wmvg_rectangle),
(vmnc_handle_wmvh_rectangle), (vmnc_handle_wmvj_rectangle),
(render_raw_tile), (render_subrect), (vmnc_handle_raw_rectangle),
(vmnc_handle_hextile_rectangle), (vmnc_handle_packet),
(vmnc_dec_setcaps), (vmnc_dec_chain), (vmnc_dec_change_state),
(vmnc_dec_set_property), (vmnc_dec_get_property), (plugin_init):
Add VMnc decoder.
Still missing support for:
- rectangle types I didn't find in my samples (e.g. copy, RRE,
ZRLE)
- alpha-composited cursors
2007-03-03 22:13:22 +00:00
gst/vmnc/Makefile
2010-12-14 07:32:30 +00:00
gst/y4m/Makefile
2013-02-07 23:09:51 +00:00
gst/yadif/Makefile
2014-05-22 17:46:02 +00:00
gst/compositor/Makefile
2006-03-12 23:56:47 +00:00
gst-libs/Makefile
gst-libs/gst/Makefile
2014-11-21 23:42:09 +00:00
gst-libs/gst/adaptivedemux/Makefile
2010-12-13 22:36:41 +00:00
gst-libs/gst/basecamerabinsrc/Makefile
2014-03-16 14:08:23 +00:00
gst-libs/gst/gl/Makefile
gst-libs/gst/gl/android/Makefile
gst-libs/gst/gl/cocoa/Makefile
gst-libs/gst/gl/dispmanx/Makefile
gst-libs/gst/gl/glprototypes/Makefile
2014-04-12 19:43:50 +00:00
gst-libs/gst/gl/eagl/Makefile
2014-03-24 12:12:42 +00:00
gst-libs/gst/gl/egl/Makefile
2014-03-16 14:08:23 +00:00
gst-libs/gst/gl/wayland/Makefile
gst-libs/gst/gl/win32/Makefile
gst-libs/gst/gl/x11/Makefile
2017-02-17 10:24:58 +00:00
gst-libs/gst/gl/viv-fb/Makefile
2012-03-15 18:12:21 +00:00
gst-libs/gst/insertbin/Makefile
2009-02-06 10:06:23 +00:00
gst-libs/gst/interfaces/Makefile
2017-05-25 09:14:09 +00:00
gst-libs/gst/isoff/Makefile
2011-07-19 11:52:01 +00:00
gst-libs/gst/codecparsers/Makefile
2013-06-23 06:41:12 +00:00
gst-libs/gst/mpegts/Makefile
2013-04-16 22:47:02 +00:00
gst-libs/gst/uridownloader/Makefile
2013-05-06 10:16:02 +00:00
gst-libs/gst/wayland/Makefile
2014-05-22 17:44:37 +00:00
gst-libs/gst/base/Makefile
2015-12-22 13:24:00 +00:00
gst-libs/gst/player/Makefile
2014-06-03 17:00:34 +00:00
gst-libs/gst/video/Makefile
2016-01-16 16:56:26 +00:00
gst-libs/gst/audio/Makefile
2016-11-10 17:42:29 +00:00
gst-libs/gst/opencv/Makefile
2017-02-17 17:26:41 +00:00
gst-libs/gst/allocators/Makefile
2001-12-20 20:16:57 +00:00
sys/Makefile
2008-02-12 23:16:21 +00:00
sys/dshowdecwrapper/Makefile
2008-08-20 21:44:22 +00:00
sys/acmenc/Makefile
2008-11-25 00:20:22 +00:00
sys/acmmp3dec/Makefile
2012-10-16 09:34:04 +00:00
sys/androidmedia/Makefile
2010-10-27 17:30:11 +00:00
sys/applemedia/Makefile
2013-01-09 18:10:30 +00:00
sys/bluez/Makefile
2011-06-05 01:43:45 +00:00
sys/d3dvideosink/Makefile
2011-02-27 08:48:19 +00:00
sys/decklink/Makefile
2009-07-29 13:35:03 +00:00
sys/directsound/Makefile
2008-02-12 23:16:21 +00:00
sys/dshowsrcwrapper/Makefile
2008-06-02 18:23:54 +00:00
sys/dshowvideosink/Makefile
2006-10-10 15:05:32 +00:00
sys/dvb/Makefile
2008-04-02 20:18:58 +00:00
sys/fbdev/Makefile
2017-08-01 14:07:59 +00:00
sys/ipcpipeline/Makefile
2016-01-20 11:00:51 +00:00
sys/kms/Makefile
2016-09-09 22:43:25 +00:00
sys/msdk/Makefile
2017-05-03 00:21:43 +00:00
sys/nvdec/Makefile
2015-07-30 06:42:38 +00:00
sys/nvenc/Makefile
2012-10-18 11:56:55 +00:00
sys/opensles/Makefile
2010-06-03 18:42:06 +00:00
sys/shm/Makefile
2016-01-27 11:12:09 +00:00
sys/tinyalsa/Makefile
2012-09-10 20:09:26 +00:00
sys/uvch264/Makefile
Port VCD element.
Original commit message from CVS:
* configure.ac:
* sys/Makefile.am:
* sys/vcd/Makefile.am:
* sys/vcd/vcdsrc.c: (gst_vcdsrc_setup_interfaces),
(gst_vcdsrc_base_init), (gst_vcdsrc_class_init), (gst_vcdsrc_init),
(gst_vcdsrc_msf), (gst_vcdsrc_recalculate),
(gst_vcdsrc_set_property), (gst_vcdsrc_get_property),
(gst_vcdsrc_create), (gst_vcdsrc_start), (gst_vcdsrc_stop),
(gst_vcdsrc_uri_set_uri):
* sys/vcd/vcdsrc.h:
Port VCD element.
2007-06-13 11:37:36 +00:00
sys/vcd/Makefile
2009-03-14 09:43:28 +00:00
sys/vdpau/Makefile
2008-10-09 16:51:35 +00:00
sys/wasapi/Makefile
2008-08-24 22:05:48 +00:00
sys/winks/Makefile
2008-08-24 13:23:44 +00:00
sys/winscreencap/Makefile
2009-06-12 07:40:48 +00:00
tests/Makefile
tests/check/Makefile
2010-11-03 00:04:27 +00:00
tests/files/Makefile
2009-02-24 15:33:51 +00:00
tests/examples/Makefile
2015-01-19 01:43:23 +00:00
tests/examples/avsamplesink/Makefile
2010-11-27 02:55:12 +00:00
tests/examples/camerabin2/Makefile
2015-06-21 10:20:57 +00:00
tests/examples/codecparsers/Makefile
2009-02-24 15:33:51 +00:00
tests/examples/directfb/Makefile
2017-01-16 17:36:07 +00:00
tests/examples/audiomixmatrix/Makefile
2014-04-29 06:38:55 +00:00
tests/examples/gl/Makefile
tests/examples/gl/cocoa/Makefile
tests/examples/gl/clutter/Makefile
tests/examples/gl/generic/Makefile
tests/examples/gl/generic/cube/Makefile
tests/examples/gl/generic/cubeyuv/Makefile
tests/examples/gl/generic/doublecube/Makefile
tests/examples/gl/generic/recordgraphic/Makefile
tests/examples/gl/gtk/Makefile
2015-05-29 17:09:17 +00:00
tests/examples/gl/gtk/3dvideo/Makefile
2014-04-29 06:38:55 +00:00
tests/examples/gl/gtk/filternovideooverlay/Makefile
tests/examples/gl/gtk/filtervideooverlay/Makefile
tests/examples/gl/gtk/fxtest/Makefile
tests/examples/gl/gtk/switchvideooverlay/Makefile
tests/examples/gl/qt/Makefile
tests/examples/gl/sdl/Makefile
2014-12-18 06:00:30 +00:00
tests/examples/gtk/Makefile
2017-07-05 13:56:24 +00:00
tests/examples/ipcpipeline/Makefile
2013-07-01 06:35:26 +00:00
tests/examples/mpegts/Makefile
2009-02-26 17:46:00 +00:00
tests/examples/mxf/Makefile
2011-07-27 20:34:23 +00:00
tests/examples/opencv/Makefile
2012-09-10 20:09:26 +00:00
tests/examples/uvch264/Makefile
2015-10-26 15:24:40 +00:00
tests/examples/waylandsink/Makefile
2009-06-12 07:40:48 +00:00
tests/icles/Makefile
2011-04-19 08:07:23 +00:00
ext/voamrwbenc/Makefile
2011-04-18 15:19:00 +00:00
ext/voaacenc/Makefile
2009-02-05 15:54:01 +00:00
ext/assrender/Makefile
2015-01-10 20:41:12 +00:00
ext/bs2b/Makefile
2006-02-06 09:40:09 +00:00
ext/bz2/Makefile
2011-01-02 19:34:04 +00:00
ext/chromaprint/Makefile
2011-02-26 20:21:25 +00:00
ext/curl/Makefile
2013-05-08 14:14:15 +00:00
ext/dash/Makefile
Commit new dc1394src element.
Original commit message from CVS:
* configure.ac:
* ext/Makefile.am:
* ext/dc1394/Makefile.am:
* ext/dc1394/gstdc1394.c: (gst_dc1394_base_init),
(gst_dc1394_class_init), (gst_dc1394_init),
(gst_dc1394_src_fixate), (gst_dc1394_set_property),
(gst_dc1394_get_property), (gst_dc1394_getcaps),
(gst_dc1394_setcaps), (gst_dc1394_get_times), (gst_dc1394_create),
(gst_dc1394_parse_caps), (gst_dc1394_change_state),
(gst_dc1394_caps_set_format_vmode_caps),
(gst_dc1394_set_caps_color), (gst_dc1394_set_caps_framesize),
(gst_dc1394_set_caps_framesize_range),
(gst_dc1394_caps_set_framerate_list),
(gst_dc1394_framerate_const_to_frac),
(gst_dc1394_get_all_dc1394_caps), (gst_dc1394_get_cam_caps),
(gst_dc1394_framerate_frac_to_const),
(gst_dc1394_open_cam_with_best_caps),
(gst_dc1394_change_camera_transmission), (plugin_init):
* ext/dc1394/gstdc1394.h:
Commit new dc1394src element.
Patch By: Eric Jonas < jonas at mit dot edu >
Close: #387251
2007-06-29 13:03:27 +00:00
ext/dc1394/Makefile
Complete rewrite/port of
Original commit message from CVS:
2005-11-02 Julien MOUTTE <julien@moutte.net>
* configure.ac:
* ext/Makefile.am:
* ext/directfb/Makefile.am:
* ext/directfb/dfbvideosink.c:
(gst_dfbvideosink_get_format_name),
(gst_dfbvideosink_surface_create),
(gst_dfbvideosink_surface_destroy),
(gst_dfbvideosink_event_thread), (gst_dfbvideosink_enum_layers),
(gst_dfbvideosink_enum_vmodes), (gst_dfbvideosink_enum_devices),
(gst_dfbvideosink_setup), (gst_dfbvideosink_cleanup),
(gst_dfbvideosink_get_format_from_caps),
(gst_dfbvideosink_get_caps_from_format),
(gst_dfbvideosink_can_blit_from_format),
(gst_dfbvideosink_get_best_vmode), (gst_dfbvideosink_getcaps),
(gst_dfbvideosink_setcaps), (gst_dfbvideosink_change_state),
(gst_dfbvideosink_get_times), (gst_dfbvideosink_center_rect),
(gst_dfbvideosink_show_frame),
(gst_dfbvideosink_bufferpool_clear),
(gst_dfbvideosink_buffer_alloc), (gst_dfbsurface_finalize),
(gst_dfbsurface_init), (gst_dfbsurface_class_init),
(gst_dfbsurface_get_type),
(gst_dfbvideosink_interface_supported),
(gst_dfbvideosink_interface_init),
(gst_dfbvideosink_navigation_send_event),
(gst_dfbvideosink_navigation_init),
(gst_dfbvideosink_set_property),
(gst_dfbvideosink_get_property),
(gst_dfbvideosink_init), (gst_dfbvideosink_base_init),
(gst_dfbvideosink_class_init), (gst_dfbvideosink_get_type),
(plugin_init):
* ext/directfb/dfbvideosink.h:
* ext/directfb/directfbvideosink.c:
* ext/directfb/directfbvideosink.h: Complete rewrite/port of
DirectFB video sink to 0.9. Handles reverse negotiation,
hardware
scaling, navigation, buffer allocation from video memory etc...
2005-11-02 12:43:03 +00:00
ext/directfb/Makefile
2011-11-02 09:02:11 +00:00
ext/wayland/Makefile
2013-06-22 09:27:37 +00:00
ext/daala/Makefile
2006-04-02 09:33:12 +00:00
ext/dts/Makefile
2014-03-16 14:08:23 +00:00
ext/gl/Makefile
2014-12-18 06:00:30 +00:00
ext/gtk/Makefile
2005-09-01 19:12:44 +00:00
ext/faac/Makefile
2005-08-30 18:00:06 +00:00
ext/faad/Makefile
2016-08-07 05:51:06 +00:00
ext/fdkaac/Makefile
2010-01-16 20:43:43 +00:00
ext/flite/Makefile
2013-03-21 06:05:54 +00:00
ext/fluidsynth/Makefile
2005-09-02 20:21:17 +00:00
ext/gsm/Makefile
2013-03-19 09:47:25 +00:00
ext/hls/Makefile
2016-11-16 16:18:53 +00:00
ext/iqa/Makefile
2009-02-15 18:35:04 +00:00
ext/kate/Makefile
2006-12-18 16:47:23 +00:00
ext/ladspa/Makefile
2009-04-29 03:24:45 +00:00
ext/lv2/Makefile
2014-09-17 08:38:44 +00:00
ext/libde265/Makefile
2005-11-29 02:55:18 +00:00
ext/libmms/Makefile
2006-04-02 09:33:12 +00:00
ext/Makefile
2009-01-24 17:13:39 +00:00
ext/modplug/Makefile
2006-07-13 11:06:45 +00:00
ext/mpeg2enc/Makefile
2008-03-05 06:03:03 +00:00
ext/mplex/Makefile
2005-11-22 15:09:28 +00:00
ext/musepack/Makefile
2006-04-02 09:33:12 +00:00
ext/neon/Makefile
Add an OFA element, the successor of MusicBrainz TRM fingerprinting.
Original commit message from CVS:
Based on a patch by: Eric Buehl <eric dot buehl at gmail dot com>
* configure.ac:
* ext/ofa/Makefile.am:
* ext/ofa/gstofa.c: (gst_ofa_base_init), (gst_ofa_finalize),
(gst_ofa_class_init), (create_fingerprint), (gst_ofa_event),
(gst_ofa_init), (gst_ofa_transform_ip), (gst_ofa_get_property),
(plugin_init):
* ext/ofa/gstofa.h:
Add an OFA element, the successor of MusicBrainz TRM fingerprinting.
Fixes bug #351309.
2008-03-19 18:14:17 +00:00
ext/ofa/Makefile
2011-05-23 11:41:36 +00:00
ext/openal/Makefile
2010-09-08 03:08:44 +00:00
ext/opencv/Makefile
2013-11-23 10:29:08 +00:00
ext/openexr/Makefile
2014-10-03 10:45:26 +00:00
ext/openh264/Makefile
2012-12-14 14:38:45 +00:00
ext/openjpeg/Makefile
2016-07-27 00:22:26 +00:00
ext/openmpt/Makefile
2013-12-02 10:17:02 +00:00
ext/openni2/Makefile
2011-06-05 07:54:19 +00:00
ext/opus/Makefile
2015-07-06 13:10:51 +00:00
ext/qt/Makefile
2009-08-13 14:45:55 +00:00
ext/rsvg/Makefile
2008-06-17 01:08:14 +00:00
ext/resindvd/Makefile
2010-06-04 06:14:42 +00:00
ext/rtmp/Makefile
2013-01-16 11:36:25 +00:00
ext/sbc/Makefile
2009-07-01 17:55:12 +00:00
ext/schroedinger/Makefile
2012-11-08 18:42:39 +00:00
ext/smoothstreaming/Makefile
2007-02-02 13:28:05 +00:00
ext/sndfile/Makefile
2006-04-02 09:33:12 +00:00
ext/soundtouch/Makefile
2011-09-07 02:11:06 +00:00
ext/spandsp/Makefile
2013-03-12 23:47:51 +00:00
ext/srtp/Makefile
2010-09-13 09:59:18 +00:00
ext/teletextdec/Makefile
2009-08-07 04:41:43 +00:00
ext/gme/Makefile
2009-08-08 19:17:37 +00:00
ext/spc/Makefile
2016-12-21 09:00:47 +00:00
ext/wildmidi/Makefile
2015-10-24 06:29:05 +00:00
ext/vulkan/Makefile
ext/vulkan/xcb/Makefile
2016-04-10 07:46:15 +00:00
ext/vulkan/wayland/Makefile
2013-08-23 21:46:38 +00:00
ext/webp/Makefile
2014-03-05 15:39:30 +00:00
ext/x265/Makefile
2009-10-01 20:51:04 +00:00
ext/zbar/Makefile
2015-03-16 16:33:03 +00:00
ext/dtls/Makefile
2016-06-06 19:10:05 +00:00
ext/webrtcdsp/Makefile
2016-06-29 08:58:38 +00:00
ext/ttml/Makefile
2006-04-01 10:09:11 +00:00
po/Makefile.in
2005-11-06 21:55:01 +00:00
docs/Makefile
docs/plugins/Makefile
2011-08-30 17:50:41 +00:00
docs/libs/Makefile
2005-11-06 21:55:01 +00:00
docs/version.entities
2009-02-23 21:18:33 +00:00
pkgconfig/Makefile
pkgconfig/gstreamer-plugins-bad.pc
pkgconfig/gstreamer-plugins-bad-uninstalled.pc
2011-08-12 08:17:47 +00:00
pkgconfig/gstreamer-codecparsers.pc
pkgconfig/gstreamer-codecparsers-uninstalled.pc
2012-03-15 18:12:21 +00:00
pkgconfig/gstreamer-insertbin.pc
pkgconfig/gstreamer-insertbin-uninstalled.pc
2014-03-16 14:08:23 +00:00
pkgconfig/gstreamer-gl.pc
pkgconfig/gstreamer-gl-uninstalled.pc
2013-09-30 21:32:55 +00:00
pkgconfig/gstreamer-mpegts.pc
pkgconfig/gstreamer-mpegts-uninstalled.pc
2015-12-23 12:04:23 +00:00
pkgconfig/gstreamer-player.pc
pkgconfig/gstreamer-player-uninstalled.pc
2014-06-12 15:43:40 +00:00
pkgconfig/gstreamer-wayland.pc
pkgconfig/gstreamer-wayland-uninstalled.pc
2014-05-22 17:44:37 +00:00
pkgconfig/gstreamer-bad-base.pc
pkgconfig/gstreamer-bad-base-uninstalled.pc
2014-06-03 17:00:34 +00:00
pkgconfig/gstreamer-bad-video.pc
pkgconfig/gstreamer-bad-video-uninstalled.pc
2016-01-16 16:56:26 +00:00
pkgconfig/gstreamer-bad-audio.pc
pkgconfig/gstreamer-bad-audio-uninstalled.pc
2017-02-17 17:26:41 +00:00
pkgconfig/gstreamer-bad-allocators.pc
pkgconfig/gstreamer-bad-allocators-uninstalled.pc
2010-04-14 23:32:34 +00:00
tools/Makefile
2004-03-18 12:38:53 +00:00
m4/Makefile
2001-12-17 18:37:01 +00:00
)
2013-09-02 12:40:37 +00:00
2002-02-08 20:12:28 +00:00
AC_OUTPUT
2007-02-28 19:31:12 +00:00
AG_GST_OUTPUT_PLUGINS
2010-06-10 01:39:38 +00:00
ORC_OUTPUT