2015-04-23 15:22:39 +00:00
|
|
|
AC_PREREQ([2.69])
|
2001-12-17 18:37:01 +00:00
|
|
|
|
2006-06-11 17:08:11 +00:00
|
|
|
dnl please read gstreamer/docs/random/autotools before changing this file
|
|
|
|
|
2006-04-01 09:54:39 +00:00
|
|
|
dnl initialize autoconf
|
2006-06-11 17:08:11 +00:00
|
|
|
dnl releases only do -Wall, cvs and prerelease does -Werror too
|
|
|
|
dnl use a three digit version number for releases, and four for cvs/prerelease
|
2017-01-12 14:32:52 +00:00
|
|
|
AC_INIT([GStreamer Ugly Plug-ins],[1.11.1.1],[http://bugzilla.gnome.org/enter_bug.cgi?product=GStreamer],[gst-plugins-ugly])
|
2007-07-23 09:07:19 +00:00
|
|
|
|
2007-02-28 19:30:35 +00:00
|
|
|
AG_GST_INIT
|
2006-04-01 09:54:39 +00:00
|
|
|
|
|
|
|
dnl initialize automake
|
2015-04-23 15:22:39 +00:00
|
|
|
AM_INIT_AUTOMAKE([-Wno-portability 1.14 no-dist-gzip dist-xz tar-ustar subdir-objects])
|
2006-04-01 09:54:39 +00:00
|
|
|
|
|
|
|
dnl define PACKAGE_VERSION_* variables
|
|
|
|
AS_VERSION
|
|
|
|
|
|
|
|
dnl check if this is a release version
|
2010-03-24 10:27:40 +00:00
|
|
|
AS_NANO(GST_GIT="no", GST_GIT="yes")
|
2006-04-01 09:54:39 +00:00
|
|
|
|
|
|
|
dnl can autoconf find the source ?
|
2016-12-28 10:42:15 +00:00
|
|
|
AC_CONFIG_SRCDIR([gst/asfdemux/gstasfdemux.c])
|
2006-04-01 09:54:39 +00:00
|
|
|
|
|
|
|
dnl define the output header for config
|
2012-12-30 23:56:14 +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:43:30 +00:00
|
|
|
AM_MAINTAINER_MODE([enable])
|
2002-08-27 09:54:08 +00:00
|
|
|
|
2006-04-01 09:54:39 +00:00
|
|
|
dnl sets host_* variables
|
|
|
|
AC_CANONICAL_HOST
|
2002-12-08 14:50:04 +00:00
|
|
|
|
2010-02-26 14:43:58 +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)])
|
|
|
|
|
2012-04-04 12:38:53 +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:04 +00:00
|
|
|
|
2017-01-12 14:10:25 +00:00
|
|
|
AS_LIBTOOL(GST, 1101, 0, 1101)
|
2001-12-17 18:37:01 +00:00
|
|
|
|
2006-01-11 11:44:02 +00:00
|
|
|
dnl *** required versions of GStreamer stuff ***
|
2017-01-12 14:32:52 +00:00
|
|
|
GST_REQ=1.11.1.1
|
|
|
|
GSTPB_REQ=1.11.1.1
|
2006-01-11 11:44:02 +00:00
|
|
|
|
2006-04-01 09:54:39 +00:00
|
|
|
dnl *** autotools stuff ****
|
2001-12-17 18:37:01 +00:00
|
|
|
|
2006-04-01 09:54:39 +00:00
|
|
|
dnl allow for different autotools
|
|
|
|
AS_AUTOTOOLS_ALTERNATE
|
2002-02-06 18:18:16 +00:00
|
|
|
|
2006-04-01 09:54:39 +00:00
|
|
|
dnl Add parameters for aclocal
|
|
|
|
AC_SUBST(ACLOCAL_AMFLAGS, "-I m4 -I common/m4")
|
2004-07-13 06:36:55 +00:00
|
|
|
|
2006-04-01 09:54:39 +00:00
|
|
|
dnl set up gettext
|
2006-07-28 15:11:42 +00:00
|
|
|
dnl the version check needs to stay here because autopoint greps for it
|
2008-11-29 13:33:37 +00:00
|
|
|
AM_GNU_GETTEXT_VERSION(0.17)
|
2006-07-28 15:11:42 +00:00
|
|
|
AM_GNU_GETTEXT([external])
|
2012-04-04 12:38:53 +00:00
|
|
|
AG_GST_GETTEXT([gst-plugins-ugly-$GST_API_VERSION])
|
2003-05-21 15:16:51 +00:00
|
|
|
|
2006-04-01 09:54:39 +00:00
|
|
|
dnl *** check for arguments to configure ***
|
2001-12-17 18:37:01 +00:00
|
|
|
|
2012-01-19 15:06:47 +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:06:47 +00:00
|
|
|
|
2007-02-28 19:30:35 +00:00
|
|
|
AG_GST_ARG_DEBUG
|
|
|
|
AG_GST_ARG_PROFILING
|
|
|
|
AG_GST_ARG_VALGRIND
|
|
|
|
AG_GST_ARG_GCOV
|
2005-10-19 09:47:31 +00:00
|
|
|
|
2007-02-28 19:30:35 +00:00
|
|
|
AG_GST_ARG_EXAMPLES
|
2001-12-17 18:37:01 +00:00
|
|
|
|
2007-02-28 19:30:35 +00:00
|
|
|
AG_GST_ARG_WITH_PKG_CONFIG_PATH
|
|
|
|
AG_GST_ARG_WITH_PACKAGE_NAME
|
|
|
|
AG_GST_ARG_WITH_PACKAGE_ORIGIN
|
2004-03-15 16:27:29 +00:00
|
|
|
|
2007-09-25 09:16:05 +00:00
|
|
|
AG_GST_ARG_WITH_PLUGINS
|
2006-04-01 09:54:39 +00:00
|
|
|
|
2007-09-25 09:16:05 +00:00
|
|
|
AG_GST_ARG_ENABLE_EXTERNAL
|
|
|
|
|
|
|
|
AG_GST_ARG_ENABLE_EXPERIMENTAL
|
|
|
|
|
2006-04-01 09:54:39 +00:00
|
|
|
dnl *** checks for platform ***
|
2001-12-17 18:37:01 +00:00
|
|
|
|
2006-04-01 09:54:39 +00:00
|
|
|
dnl * hardware/architecture *
|
2001-12-17 18:37:01 +00:00
|
|
|
|
2006-04-01 09:54:39 +00:00
|
|
|
dnl common/m4/gst-arch.m4
|
|
|
|
dnl check CPU type
|
2007-02-28 19:30:35 +00:00
|
|
|
AG_GST_ARCH
|
2002-05-27 14:01:51 +00:00
|
|
|
|
2006-04-01 09:54:39 +00:00
|
|
|
dnl Determine endianness
|
|
|
|
AC_C_BIGENDIAN
|
2001-12-26 23:14:44 +00:00
|
|
|
|
2006-04-01 09:54:39 +00:00
|
|
|
dnl *** checks for programs ***
|
2004-02-13 13:09:27 +00:00
|
|
|
|
2006-04-01 09:54:39 +00:00
|
|
|
dnl find a compiler
|
|
|
|
AC_PROG_CC
|
2010-08-04 17:28:09 +00:00
|
|
|
AC_PROG_CC_STDC
|
2001-12-17 18:37:01 +00:00
|
|
|
|
2006-04-01 09:54:39 +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)
|
2001-12-17 18:37:01 +00:00
|
|
|
|
2008-01-10 12:28:19 +00:00
|
|
|
dnl check if the compiler supports '-c' and '-o' options
|
|
|
|
AM_PROG_CC_C_O
|
|
|
|
|
2006-04-01 09:54:39 +00:00
|
|
|
AC_PATH_PROG(VALGRIND_PATH, valgrind, no)
|
|
|
|
AM_CONDITIONAL(HAVE_VALGRIND, test ! "x$VALGRIND_PATH" = "xno")
|
2002-02-16 17:53:57 +00:00
|
|
|
|
2008-03-21 14:15:27 +00:00
|
|
|
dnl check if the compiler supports do while(0) macros
|
|
|
|
AG_GST_CHECK_DOWHILE_MACROS
|
|
|
|
|
2006-04-01 09:54:39 +00:00
|
|
|
dnl check for documentation tools
|
2012-08-22 11:19:01 +00:00
|
|
|
GTK_DOC_CHECK([1.12])
|
2012-11-07 20:39:56 +00:00
|
|
|
AG_GST_PLUGIN_DOCS([1.12])
|
2005-05-05 16:35:52 +00:00
|
|
|
|
2006-04-01 09:54:39 +00:00
|
|
|
dnl *** checks for libraries ***
|
2005-05-05 16:35:52 +00:00
|
|
|
|
2007-07-23 09:07:19 +00:00
|
|
|
dnl check for libm, for sin()
|
2012-04-13 11:43:30 +00:00
|
|
|
LT_LIB_M
|
2007-07-23 09:07:19 +00:00
|
|
|
AC_SUBST(LIBM)
|
|
|
|
|
2006-04-01 09:54:39 +00:00
|
|
|
dnl *** checks for header files ***
|
2005-05-05 16:35:52 +00:00
|
|
|
|
2006-04-01 09:54:39 +00:00
|
|
|
dnl used by ext/a52dec
|
|
|
|
AX_CREATE_STDINT_H
|
2005-05-06 18:00:56 +00:00
|
|
|
|
2006-04-01 09:54:39 +00:00
|
|
|
dnl Check for malloc.h
|
|
|
|
AC_CHECK_HEADERS([malloc.h])
|
2005-05-06 18:00:56 +00:00
|
|
|
|
2006-04-01 09:54:39 +00:00
|
|
|
dnl *** checks for types/defines ***
|
2005-05-05 16:35:52 +00:00
|
|
|
|
2006-04-01 09:54:39 +00:00
|
|
|
dnl *** checks for structures ***
|
2001-12-17 18:37:01 +00:00
|
|
|
|
2006-04-01 09:54:39 +00:00
|
|
|
dnl *** checks for compiler characteristics ***
|
2001-12-17 18:37:01 +00:00
|
|
|
|
2006-04-01 09:54:39 +00:00
|
|
|
dnl *** checks for library functions ***
|
2003-07-28 11:37:49 +00:00
|
|
|
|
2006-04-01 09:54:39 +00:00
|
|
|
dnl Check for a way to display the function name in debug output
|
2007-02-28 19:30:35 +00:00
|
|
|
AG_GST_CHECK_FUNCTION
|
2003-12-16 16:58:59 +00:00
|
|
|
|
2007-02-13 09:15:41 +00:00
|
|
|
dnl *** checks for dependency libraries ***
|
|
|
|
|
|
|
|
dnl GLib is required
|
2015-10-02 19:24:46 +00:00
|
|
|
GLIB_REQ=2.40.0
|
2012-01-18 16:00:26 +00:00
|
|
|
AG_GST_GLIB_CHECK([$GLIB_REQ])
|
|
|
|
|
2012-08-08 14:23:53 +00:00
|
|
|
ORC_CHECK([0.4.16])
|
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 09:54:39 +00:00
|
|
|
dnl checks for gstreamer
|
|
|
|
dnl uninstalled is selected preferentially -- see pkg-config(1)
|
2012-04-04 12:38:53 +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_PLUGINS_BASE($GST_API_VERSION, [$GSTPB_REQ], yes)
|
2007-07-13 16:46:35 +00:00
|
|
|
AM_CONDITIONAL(HAVE_GST_CHECK, test "x$HAVE_GST_CHECK" = "xyes")
|
2002-08-13 10:39:26 +00:00
|
|
|
|
2007-02-13 09:15:41 +00:00
|
|
|
dnl Check for documentation xrefs
|
|
|
|
GLIB_PREFIX="`$PKG_CONFIG --variable=prefix glib-2.0`"
|
2012-04-04 12:38:53 +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:15:41 +00:00
|
|
|
AC_SUBST(GLIB_PREFIX)
|
|
|
|
AC_SUBST(GST_PREFIX)
|
|
|
|
AC_SUBST(GSTPB_PREFIX)
|
|
|
|
|
2012-11-30 20:09:03 +00:00
|
|
|
dnl Needed by plugins that use g_module_*() API
|
|
|
|
PKG_CHECK_MODULES(GMODULE_NO_EXPORT, gmodule-no-export-2.0)
|
|
|
|
|
2015-12-21 11:32:32 +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}"])
|
|
|
|
|
2006-04-01 09:54:39 +00:00
|
|
|
dnl *** set variables based on configure arguments ***
|
2001-12-21 11:46:15 +00:00
|
|
|
|
2006-04-01 09:54:39 +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
|
|
|
|
2006-04-01 09:54:39 +00:00
|
|
|
dnl set location of plugin directory
|
2007-02-28 19:30:35 +00:00
|
|
|
AG_GST_SET_PLUGINDIR
|
2001-12-23 03:25:55 +00:00
|
|
|
|
2010-09-23 23:03:50 +00:00
|
|
|
dnl set release date/time
|
|
|
|
AG_GST_SET_PACKAGE_RELEASE_DATETIME_WITH_NANO([$PACKAGE_VERSION_NANO],
|
|
|
|
["${srcdir}/gst-plugins-ugly.doap"],
|
|
|
|
[$PACKAGE_VERSION_MAJOR.$PACKAGE_VERSION_MINOR.$PACKAGE_VERSION_MICRO])
|
|
|
|
|
2012-10-24 10:15:54 +00:00
|
|
|
dnl build static plugins or not
|
|
|
|
AC_MSG_CHECKING([whether to build static plugins or not])
|
|
|
|
AC_ARG_ENABLE(
|
|
|
|
static-plugins,
|
|
|
|
AC_HELP_STRING(
|
|
|
|
[--enable-static-plugins],
|
|
|
|
[build static plugins @<:@default=no@:>@]),
|
|
|
|
[AS_CASE(
|
|
|
|
[$enableval], [no], [], [yes], [],
|
|
|
|
[AC_MSG_ERROR([bad value "$enableval" for --enable-static-plugins])])],
|
|
|
|
[enable_static_plugins=no])
|
|
|
|
AC_MSG_RESULT([$enable_static_plugins])
|
|
|
|
if test "x$enable_static_plugins" = xyes; then
|
|
|
|
AC_DEFINE(GST_PLUGIN_BUILD_STATIC, 1,
|
|
|
|
[Define if static plugins should be built])
|
|
|
|
GST_PLUGIN_LIBTOOLFLAGS=""
|
|
|
|
else
|
|
|
|
GST_PLUGIN_LIBTOOLFLAGS="--tag=disable-static"
|
|
|
|
fi
|
|
|
|
AC_SUBST(GST_PLUGIN_LIBTOOLFLAGS)
|
|
|
|
AM_CONDITIONAL(GST_PLUGIN_BUILD_STATIC, test "x$enable_static_plugins" = "xyes")
|
|
|
|
|
2006-04-01 09:54:39 +00:00
|
|
|
dnl define an ERROR_CFLAGS Makefile variable
|
2012-01-19 15:06:47 +00:00
|
|
|
AG_GST_SET_ERROR_CFLAGS($FATAL_WARNINGS, [
|
2010-04-12 10:43:05 +00:00
|
|
|
-Wmissing-declarations -Wmissing-prototypes -Wredundant-decls
|
2010-03-24 10:27:40 +00:00
|
|
|
-Wwrite-strings -Wformat-nonliteral -Wformat-security -Wold-style-definition
|
2010-04-15 10:20:20 +00:00
|
|
|
-Winit-self -Wmissing-include-dirs -Waddress
|
2010-03-24 10:27:40 +00:00
|
|
|
-Waggregate-return -Wno-multichar -Wnested-externs ])
|
2001-12-23 03:25:55 +00:00
|
|
|
|
2008-02-23 12:35:53 +00:00
|
|
|
dnl define an ERROR_CXXFLAGS Makefile variable
|
2012-01-19 15:06:47 +00:00
|
|
|
AG_GST_SET_ERROR_CXXFLAGS($FATAL_WARNINGS, [
|
2010-04-12 10:43:05 +00:00
|
|
|
-Wmissing-declarations -Wredundant-decls
|
2010-04-15 10:20:20 +00:00
|
|
|
-Wwrite-strings -Wformat-nonliteral -Wformat-security
|
2010-03-24 10:27:40 +00:00
|
|
|
-Winit-self -Wmissing-include-dirs -Waddress -Waggregate-return
|
|
|
|
-Wno-multichar])
|
2008-02-23 12:35:53 +00:00
|
|
|
|
2006-04-01 09:54:39 +00:00
|
|
|
dnl define correct level for debugging messages
|
2010-03-24 10:27:40 +00:00
|
|
|
AG_GST_SET_LEVEL_DEFAULT($GST_GIT)
|
2001-12-23 03:25:55 +00:00
|
|
|
|
2006-04-01 09:54:39 +00:00
|
|
|
dnl used in examples
|
2007-02-28 19:30:35 +00:00
|
|
|
AG_GST_DEFAULT_ELEMENTS
|
2006-04-01 09:54:39 +00:00
|
|
|
|
2008-03-03 12:50:56 +00:00
|
|
|
dnl *** plug-ins to include ***
|
|
|
|
|
|
|
|
dnl these are all the gst plug-ins, compilable without additional libs
|
|
|
|
AG_GST_CHECK_PLUGIN(asfdemux)
|
|
|
|
AG_GST_CHECK_PLUGIN(dvdlpcmdec)
|
|
|
|
AG_GST_CHECK_PLUGIN(dvdsub)
|
2011-08-03 00:08:43 +00:00
|
|
|
AG_GST_CHECK_PLUGIN(xingmux)
|
2008-03-03 12:50:56 +00:00
|
|
|
AG_GST_CHECK_PLUGIN(realmedia)
|
|
|
|
|
2009-04-08 18:44:53 +00:00
|
|
|
AC_CHECK_HEADERS([winsock2.h], HAVE_WINSOCK2_H=yes)
|
|
|
|
|
|
|
|
if test "x$HAVE_WINSOCK2_H" = "xyes"; then
|
|
|
|
WIN32_LIBS="-lws2_32"
|
|
|
|
AC_SUBST(WIN32_LIBS)
|
|
|
|
fi
|
|
|
|
|
2006-04-01 09:54:39 +00:00
|
|
|
dnl *** ext plug-ins ***
|
|
|
|
dnl keep this list sorted alphabetically !
|
2001-12-21 11:46:15 +00:00
|
|
|
|
2006-04-01 09:54:39 +00:00
|
|
|
if test "x$BUILD_EXTERNAL" = "xyes"; then
|
|
|
|
|
|
|
|
echo
|
|
|
|
AC_MSG_NOTICE([Checking libraries for plugins in ext/])
|
|
|
|
echo
|
2005-05-07 18:50:39 +00:00
|
|
|
|
2005-10-20 09:00:30 +00:00
|
|
|
dnl *** a52dec ***
|
|
|
|
translit(dnm, m, l) AM_CONDITIONAL(USE_A52DEC, true)
|
2007-02-28 19:30:35 +00:00
|
|
|
AG_GST_CHECK_FEATURE(A52DEC, [a52dec], a52dec, [
|
2005-10-20 09:00:30 +00:00
|
|
|
AC_CHECK_A52DEC(HAVE_A52DEC=yes, HAVE_A52DEC=no)
|
|
|
|
])
|
|
|
|
|
2009-07-27 18:12:20 +00:00
|
|
|
dnl *** amr-nb ***
|
2005-07-19 20:51:16 +00:00
|
|
|
translit(dnm, m, l) AM_CONDITIONAL(USE_AMRNB, true)
|
2009-07-27 18:12:20 +00:00
|
|
|
AG_GST_CHECK_FEATURE(AMRNB, [amrnb library], amrnb, [
|
2016-01-25 20:00:26 +00:00
|
|
|
AG_GST_PKG_CHECK_MODULES(AMRNB, opencore-amrnb >= 0.1.3)
|
2005-07-19 20:51:16 +00:00
|
|
|
])
|
|
|
|
|
2009-07-27 18:12:20 +00:00
|
|
|
dnl *** amr-wb dec ***
|
|
|
|
translit(dnm, m, l) AM_CONDITIONAL(USE_AMRWB, true)
|
|
|
|
AG_GST_CHECK_FEATURE(AMRWB, [amrwb library], amrwbdec, [
|
2016-01-25 20:00:26 +00:00
|
|
|
AG_GST_PKG_CHECK_MODULES(AMRWB, opencore-amrwb >= 0.1.3)
|
2009-07-27 18:12:20 +00:00
|
|
|
])
|
|
|
|
|
2008-08-12 09:16:13 +00:00
|
|
|
dnl *** cdio ***
|
|
|
|
translit(dnm, m, l) AM_CONDITIONAL(USE_CDIO, true)
|
|
|
|
AG_GST_CHECK_FEATURE(CDIO, [cdio library], cdio, [
|
|
|
|
AG_GST_PKG_CHECK_MODULES(CDIO, libcdio >= 0.76)
|
|
|
|
])
|
|
|
|
|
2006-02-09 17:27:57 +00:00
|
|
|
dnl *** dvdread ***
|
|
|
|
translit(dnm, m, l) AM_CONDITIONAL(USE_DVDREAD, true)
|
2007-02-28 19:30:35 +00:00
|
|
|
AG_GST_CHECK_FEATURE(DVDREAD, [dvdread library], dvdreadsrc, [
|
|
|
|
AG_GST_CHECK_LIBHEADER(DVDREAD, dvdread, DVDOpen, , dvdread/dvd_reader.h, DVDREAD_LIBS="-ldvdread")
|
2006-02-09 17:27:57 +00:00
|
|
|
AC_SUBST(DVDREAD_LIBS)
|
|
|
|
])
|
2005-07-19 20:51:16 +00:00
|
|
|
|
2005-08-16 16:12:15 +00:00
|
|
|
dnl *** lame ***
|
|
|
|
translit(dnm, m, l) AM_CONDITIONAL(USE_LAME, true)
|
2007-02-28 19:30:35 +00:00
|
|
|
AG_GST_CHECK_FEATURE(LAME, [lame mp3 encoder library], lame, [
|
2011-01-07 14:33:37 +00:00
|
|
|
AG_GST_CHECK_LIBHEADER(LAME, mp3lame, lame_init, $LIBM, lame/lame.h,
|
2005-08-16 16:12:15 +00:00
|
|
|
[
|
|
|
|
HAVE_LAME="yes"
|
2011-01-07 14:33:37 +00:00
|
|
|
LAME_LIBS="-lmp3lame $LIBM"
|
2005-08-16 16:12:15 +00:00
|
|
|
dnl is lame presets available
|
|
|
|
LAME_CFLAGS=""
|
2012-11-07 20:45:38 +00:00
|
|
|
AC_COMPILE_IFELSE([AC_LANG_PROGRAM([[#include <lame/lame.h>]], [[ int preset = MEDIUM ]])],[LAME_CFLAGS="-DGSTLAME_PRESET"],[LAME_CFLAGS=""
|
|
|
|
])
|
|
|
|
AC_COMPILE_IFELSE([AC_LANG_PROGRAM([[#include <lame/lame.h>]], [[
|
2009-05-05 15:38:19 +00:00
|
|
|
void *ptr = &lame_set_VBR_quality
|
2012-11-07 20:45:38 +00:00
|
|
|
]])],[LAME_CFLAGS="$LAME_CFLAGS -DHAVE_LAME_SET_VBR_QUALITY"],[LAME_CFLAGS="$LAME_CFLAGS"
|
|
|
|
])
|
2005-08-16 16:12:15 +00:00
|
|
|
AC_SUBST(LAME_CFLAGS)
|
|
|
|
AC_SUBST(LAME_LIBS)
|
|
|
|
])
|
|
|
|
])
|
2005-07-19 20:51:16 +00:00
|
|
|
|
|
|
|
dnl *** mpeg2dec ***
|
|
|
|
translit(dnm, m, l) AM_CONDITIONAL(USE_MPEG2DEC, true)
|
2007-02-28 19:30:35 +00:00
|
|
|
AG_GST_CHECK_FEATURE(MPEG2DEC, [mpeg2dec], mpeg2dec, [
|
2016-04-15 17:37:42 +00:00
|
|
|
AG_GST_PKG_CHECK_MODULES(MPEG2DEC, libmpeg2 >= 0.5.1)
|
2005-07-19 20:51:16 +00:00
|
|
|
])
|
|
|
|
|
2016-02-16 10:38:18 +00:00
|
|
|
dnl *** mpg123 ***
|
|
|
|
translit(dnm, m, l) AM_CONDITIONAL(USE_MPG123, true)
|
|
|
|
AG_GST_CHECK_FEATURE(MPG123, [mpg123 audio decoder], mpg123, [
|
|
|
|
PKG_CHECK_MODULES(MPG123, libmpg123 >= 1.13, HAVE_MPG123="yes", HAVE_MPG123="no")
|
|
|
|
AC_SUBST(MPG123_CFLAGS)
|
|
|
|
AC_SUBST(MPG123_LIBS)
|
|
|
|
])
|
|
|
|
|
2005-08-25 09:30:23 +00:00
|
|
|
dnl *** sidplay : works with libsidplay 1.36.x (not 2.x.x) ***
|
|
|
|
translit(dnm, m, l) AM_CONDITIONAL(USE_SIDPLAY, true)
|
2007-02-28 19:30:35 +00:00
|
|
|
AG_GST_CHECK_FEATURE(SIDPLAY, [libsidplay], sid, [
|
2005-08-25 09:30:23 +00:00
|
|
|
GST_PATH_SIDPLAY()
|
2005-08-02 11:42:33 +00:00
|
|
|
])
|
|
|
|
|
2009-03-10 00:10:20 +00:00
|
|
|
dnl *** twolame ***
|
|
|
|
translit(dnm, m, l) AM_CONDITIONAL(USE_TWOLAME, true)
|
|
|
|
AG_GST_CHECK_FEATURE(TWOLAME, [twolame], twolame, [
|
2009-03-22 20:08:48 +00:00
|
|
|
PKG_CHECK_MODULES(TWOLAME, twolame >= 0.3.10, [
|
2009-03-10 00:10:20 +00:00
|
|
|
HAVE_TWOLAME="yes"], [
|
|
|
|
HAVE_TWOLAME="no"
|
|
|
|
])
|
|
|
|
AC_SUBST(TWOLAME_CFLAGS)
|
|
|
|
AC_SUBST(TWOLAME_LIBS)
|
|
|
|
])
|
|
|
|
|
2009-06-05 18:25:54 +00:00
|
|
|
dnl *** x264 (MPEG-4 part 10/h.264/AVC encoder) ***
|
|
|
|
translit(dnm, m, l) AM_CONDITIONAL(USE_X264, true)
|
|
|
|
AG_GST_CHECK_FEATURE(X264, [x264 plug-in], x264, [
|
2013-08-17 22:13:17 +00:00
|
|
|
AG_GST_PKG_CHECK_MODULES(X264, x264 >= 0.120)
|
2016-11-11 12:15:17 +00:00
|
|
|
|
|
|
|
dnl Paths to additional x264 library variants, e.g. 10/12 bit
|
|
|
|
AC_ARG_WITH([x264-libraries],
|
|
|
|
AS_HELP_STRING([--with-x264-libraries=PATHS], [Colon separated list of additional x264 library paths, e.g. for 10-bit version]),
|
|
|
|
[
|
|
|
|
if test "x$withval" != "x"
|
|
|
|
then
|
|
|
|
AC_DEFINE_UNQUOTED(HAVE_X264_ADDITIONAL_LIBRARIES, "$withval", [Additional x264 libraries])
|
|
|
|
fi
|
|
|
|
], []
|
|
|
|
)
|
2009-06-05 18:25:54 +00:00
|
|
|
])
|
|
|
|
|
2006-06-17 14:48:04 +00:00
|
|
|
else
|
|
|
|
|
|
|
|
dnl not building plugins with external dependencies,
|
|
|
|
dnl but we still need to set the conditionals
|
|
|
|
|
|
|
|
AM_CONDITIONAL(USE_A52DEC, false)
|
|
|
|
AM_CONDITIONAL(USE_AMRNB, false)
|
2009-07-27 18:12:20 +00:00
|
|
|
AM_CONDITIONAL(USE_AMRWB, false)
|
2008-08-12 09:16:13 +00:00
|
|
|
AM_CONDITIONAL(USE_CDIO, false)
|
2006-06-17 14:48:04 +00:00
|
|
|
AM_CONDITIONAL(USE_DVDREAD, false)
|
|
|
|
AM_CONDITIONAL(USE_LAME, false)
|
|
|
|
AM_CONDITIONAL(USE_MPEG2DEC, false)
|
2016-02-16 10:38:18 +00:00
|
|
|
AM_CONDITIONAL(USE_MPG123, false)
|
2006-06-17 14:48:04 +00:00
|
|
|
AM_CONDITIONAL(USE_SIDPLAY, false)
|
2009-03-10 00:10:20 +00:00
|
|
|
AM_CONDITIONAL(USE_TWOLAME, false)
|
2009-06-05 18:25:54 +00:00
|
|
|
AM_CONDITIONAL(USE_X264, false)
|
2006-06-17 14:48:04 +00:00
|
|
|
|
2006-04-01 09:54:39 +00:00
|
|
|
fi dnl of EXT plugins
|
2005-06-29 16:14:30 +00:00
|
|
|
|
2006-04-01 09:54:39 +00:00
|
|
|
dnl *** finalize CFLAGS, LDFLAGS, LIBS
|
2001-12-17 18:37:01 +00:00
|
|
|
|
2006-04-01 09:54:39 +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
|
2005-08-31 18:33:08 +00:00
|
|
|
|
2006-04-01 09:54:39 +00:00
|
|
|
dnl GST_OPTION_CFLAGS
|
|
|
|
if test "x$USE_DEBUG" = xyes; then
|
|
|
|
PROFILE_CFLAGS="-g"
|
|
|
|
fi
|
|
|
|
AC_SUBST(PROFILE_CFLAGS)
|
2005-08-31 18:33:08 +00:00
|
|
|
|
2008-02-08 01:09:53 +00:00
|
|
|
if test "x$PACKAGE_VERSION_NANO" = "x1"; then
|
|
|
|
dnl Define _only_ during CVS (not pre-releases or releases)
|
2010-09-06 22:53:10 +00:00
|
|
|
DEPRECATED_CFLAGS="-DGST_DISABLE_DEPRECATED"
|
2007-12-09 04:29:35 +00:00
|
|
|
else
|
|
|
|
DEPRECATED_CFLAGS=""
|
|
|
|
fi
|
2006-04-01 09:54:39 +00:00
|
|
|
AC_SUBST(DEPRECATED_CFLAGS)
|
2003-10-31 20:03:29 +00:00
|
|
|
|
2008-02-23 12:35:53 +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)"
|
2010-03-10 21:13:45 +00:00
|
|
|
GST_OPTION_CXXFLAGS="\$(WARNING_CXXFLAGS) \$(ERROR_CXXFLAGS) \$(DEBUG_CFLAGS) \$(PROFILE_CFLAGS) \$(GCOV_CFLAGS) \$(OPT_CFLAGS) \$(DEPRECATED_CFLAGS)"
|
2006-04-01 09:54:39 +00:00
|
|
|
AC_SUBST(GST_OPTION_CFLAGS)
|
2008-02-23 12:35:53 +00:00
|
|
|
AC_SUBST(GST_OPTION_CXXFLAGS)
|
2006-04-01 09:54:39 +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
|
2012-09-17 15:57:30 +00:00
|
|
|
GST_CFLAGS="$GST_CFLAGS"
|
2010-06-14 11:27:47 +00:00
|
|
|
GST_CXXFLAGS="-I\$(top_srcdir)/gst-libs -I\$(top_builddir)/gst-libs $GST_CFLAGS $GLIB_EXTRA_CFLAGS \$(GST_OPTION_CXXFLAGS)"
|
|
|
|
GST_CFLAGS="-I\$(top_srcdir)/gst-libs -I\$(top_builddir)/gst-libs $GST_CFLAGS $GLIB_EXTRA_CFLAGS \$(GST_OPTION_CFLAGS)"
|
2006-04-01 09:54:39 +00:00
|
|
|
AC_SUBST(GST_CFLAGS)
|
2008-02-23 12:35:53 +00:00
|
|
|
AC_SUBST(GST_CXXFLAGS)
|
2006-04-01 09:54:39 +00:00
|
|
|
AC_SUBST(GST_LIBS)
|
|
|
|
|
|
|
|
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:32:32 +00:00
|
|
|
if test "x${enable_Bsymbolic}" = "xyes"; then
|
|
|
|
GST_ALL_LDFLAGS="$GST_ALL_LDFLAGS -Wl,-Bsymbolic-functions"
|
|
|
|
fi
|
2006-04-01 09:54:39 +00:00
|
|
|
AC_SUBST(GST_ALL_LDFLAGS)
|
|
|
|
|
|
|
|
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:15:54 +00:00
|
|
|
GST_PLUGIN_LDFLAGS="-module -avoid-version -export-symbols-regex '^[_]*gst_plugin_.*' $GST_ALL_LDFLAGS"
|
2006-04-01 09:54:39 +00:00
|
|
|
AC_SUBST(GST_PLUGIN_LDFLAGS)
|
|
|
|
|
|
|
|
dnl *** output files ***
|
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-02-22 19:19:12 +00:00
|
|
|
common/Makefile
|
|
|
|
common/m4/Makefile
|
2006-07-31 09:53:05 +00:00
|
|
|
gst-libs/Makefile
|
|
|
|
gst-libs/gst/Makefile
|
2001-12-21 11:46:15 +00:00
|
|
|
gst/Makefile
|
asfdemux ported to 0.10. Does still need a bit of work (seems like there's something funky going on when timestamping...
Original commit message from CVS:
* configure.ac:
* gst/asfdemux/asfheaders.c: (gst_asf_identify_guid),
(gst_asf_get_guid_nick):
* gst/asfdemux/asfheaders.h:
* gst/asfdemux/gstasf.c: (plugin_init):
* gst/asfdemux/gstasfdemux.c: (gst_asf_demux_base_init),
(gst_asf_demux_class_init), (gst_asf_demux_init),
(gst_asf_demux_sink_event), (gst_asf_demux_handle_seek_event),
(gst_asf_demux_handle_src_event),
(gst_asf_demux_get_current_offset), (gst_asf_demux_chain),
(gst_asf_demux_skip_bytes), (gst_asf_demux_identify_guid),
(gst_asf_demux_get_uint8), (gst_asf_demux_get_uint16),
(gst_asf_demux_get_uint32), (gst_asf_demux_get_uint64),
(gst_asf_demux_get_var_length), (gst_asf_demux_get_buffer),
(gst_asf_demux_get_bytes), (gst_asf_demux_get_string),
(gst_asf_demux_get_guid), (gst_asf_demux_get_obj_file),
(gst_asf_demux_get_bitrate_record),
(gst_asf_demux_get_obj_comment), (gst_asf_demux_get_obj_header),
(gst_asf_demux_get_obj_header_ext), (gst_asf_demux_get_obj_stream),
(gst_asf_demux_get_replicated_data), (gst_asf_demux_get_obj_data),
(gst_asf_demux_get_obj_data_correction),
(gst_asf_demux_get_stream_audio),
(gst_asf_demux_get_stream_correction),
(gst_asf_demux_get_stream_video),
(gst_asf_demux_get_stream_video_format),
(gst_asf_demux_get_stream), (gst_asf_demux_setup_pad),
(gst_asf_demux_add_audio_stream), (gst_asf_demux_add_video_stream),
(gst_asf_demux_process_stream),
(gst_asf_demux_get_gst_tag_from_tag_name),
(gst_asf_demux_commit_taglist),
(gst_asf_demux_process_ext_content_desc),
(gst_asf_demux_get_object_header), (gst_asf_demux_process_data),
(gst_asf_demux_process_header), (gst_asf_demux_process_file),
(gst_asf_demux_process_comment),
(gst_asf_demux_process_bitrate_props_object),
(gst_asf_demux_process_header_ext), (gst_asf_demux_process_object),
(gst_asf_demux_descramble_segment),
(gst_asf_demux_element_send_event),
(gst_asf_demux_send_event_unlocked), (gst_asf_demux_push_buffer),
(gst_asf_demux_process_chunk), (gst_asf_demux_process_segment),
(gst_asf_demux_handle_data), (gst_asf_demux_parse_data),
(gst_asf_demux_get_src_query_types),
(gst_asf_demux_handle_src_query), (gst_asf_demux_change_state):
* gst/asfdemux/gstasfdemux.h:
asfdemux ported to 0.10. Does still need a bit of work (seems like
there's something funky going on when timestamping video frames).
The seeking code is likely to make Wim cry, but hey, at least it
compiles.
2006-02-15 15:48:07 +00:00
|
|
|
gst/asfdemux/Makefile
|
2005-08-31 11:53:35 +00:00
|
|
|
gst/dvdlpcmdec/Makefile
|
Port dvdsubdec to 0.10
Original commit message from CVS:
* configure.ac:
* gst/dvdsub/Makefile.am:
* gst/dvdsub/gstdvdsubdec.c: (gst_dvd_sub_dec_base_init),
(gst_dvd_sub_dec_class_init), (gst_dvd_sub_dec_init),
(gst_dvd_sub_dec_finalize), (gst_dvd_sub_dec_src_event),
(gst_dvd_sub_dec_get_event_delay), (gst_dvd_sub_dec_parse_subpic),
(gst_get_nibble), (gst_setup_palette), (gst_get_rle_code),
(gst_draw_rle_line), (gst_dvd_sub_dec_merge_title),
(gst_send_empty_fill), (gst_send_subtitle_frame),
(gst_dvd_sub_dec_advance_time), (gst_dvd_sub_dec_chain),
(gst_dvd_sub_dec_sink_event), (gst_dvd_sub_dec_handle_dvd_event),
(plugin_init):
* gst/dvdsub/gstdvdsubdec.h:
Port dvdsubdec to 0.10
2006-02-22 14:54:54 +00:00
|
|
|
gst/dvdsub/Makefile
|
2005-06-27 09:16:09 +00:00
|
|
|
gst/realmedia/Makefile
|
2011-08-03 00:08:43 +00:00
|
|
|
gst/xingmux/Makefile
|
2005-05-06 11:04:30 +00:00
|
|
|
ext/Makefile
|
2005-10-20 09:00:30 +00:00
|
|
|
ext/a52dec/Makefile
|
2005-08-30 17:59:55 +00:00
|
|
|
ext/amrnb/Makefile
|
2009-07-27 18:12:20 +00:00
|
|
|
ext/amrwbdec/Makefile
|
2008-08-12 09:16:13 +00:00
|
|
|
ext/cdio/Makefile
|
2006-02-09 17:27:57 +00:00
|
|
|
ext/dvdread/Makefile
|
2005-08-16 16:12:15 +00:00
|
|
|
ext/lame/Makefile
|
2005-07-19 20:51:16 +00:00
|
|
|
ext/mpeg2dec/Makefile
|
2016-02-16 10:38:18 +00:00
|
|
|
ext/mpg123/Makefile
|
2005-08-30 17:59:55 +00:00
|
|
|
ext/sidplay/Makefile
|
2009-03-10 00:10:20 +00:00
|
|
|
ext/twolame/Makefile
|
2009-06-05 18:25:54 +00:00
|
|
|
ext/x264/Makefile
|
2005-08-31 18:33:08 +00:00
|
|
|
docs/Makefile
|
|
|
|
docs/plugins/Makefile
|
|
|
|
docs/version.entities
|
add test for amrnbenc, enable test infrastructure, and fix a leak
Original commit message from CVS:
add test for amrnbenc, enable test infrastructure, and fix a leak
* common/check.mak:
allow for specifying more than one suppressions file in SUPPRESSIONS
* Makefile.am:
* tests/Makefile.am:
* tests/check/.cvsignore:
* tests/check/Makefile.am:
* tests/check/elements/.cvsignore:
* configure.ac:
add tests/check
* tests/check/gst-plugins-ugly.supp:
add suppressions for libs used by -ugly
* tests/check/elements/amrnbenc.c: (buffer_new), (buffer_unref),
(setup_amrnbenc), (cleanup_amrnbenc), (push_data),
(GST_START_TEST), (amrnbenc_suite), (main):
add a simple test for encoding amr
* ext/amrnb/amrnbenc.c: (gst_amrnbenc_init):
fix pad template leaks
2006-04-10 14:47:11 +00:00
|
|
|
tests/Makefile
|
|
|
|
tests/check/Makefile
|
2016-02-16 10:55:01 +00:00
|
|
|
tests/files/Makefile
|
2004-03-18 12:38:53 +00:00
|
|
|
m4/Makefile
|
2006-07-28 15:11:42 +00:00
|
|
|
po/Makefile.in
|
2010-09-07 23:09:35 +00:00
|
|
|
pkgconfig/Makefile
|
|
|
|
pkgconfig/gstreamer-plugins-ugly-uninstalled.pc
|
2001-12-17 18:37:01 +00:00
|
|
|
)
|
2010-02-01 01:33:22 +00:00
|
|
|
|
2002-02-08 20:12:28 +00:00
|
|
|
AC_OUTPUT
|
|
|
|
|
2007-02-28 19:30:35 +00:00
|
|
|
AG_GST_OUTPUT_PLUGINS
|
2010-06-14 12:34:25 +00:00
|
|
|
|
|
|
|
ORC_OUTPUT
|