2006-04-01 10:09:11 +00:00
|
|
|
AC_PREREQ(2.52)
|
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 !
|
|
|
|
dnl releases only do Wall, cvs and prerelease does Werror too
|
|
|
|
AC_INIT(GStreamer Bad Plug-ins, 0.10.2.1,
|
|
|
|
http://bugzilla.gnome.org/enter_bug.cgi?product=GStreamer,
|
|
|
|
gst-plugins-bad)
|
|
|
|
|
|
|
|
dnl initialize automake
|
|
|
|
AM_INIT_AUTOMAKE
|
|
|
|
|
|
|
|
dnl define PACKAGE_VERSION_* variables
|
|
|
|
AS_VERSION
|
|
|
|
|
|
|
|
dnl check if this is a release version
|
|
|
|
AS_NANO(GST_CVS="no", GST_CVS="yes")
|
|
|
|
|
|
|
|
dnl can autoconf find the source ?
|
|
|
|
AC_CONFIG_SRCDIR([gst/qtdemux/qtdemux.c])
|
|
|
|
|
|
|
|
dnl define the output header for config
|
|
|
|
AM_CONFIG_HEADER([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
|
|
|
|
AM_MAINTAINER_MODE
|
|
|
|
|
2006-04-01 10:09:11 +00:00
|
|
|
dnl sets host_* variables
|
|
|
|
AC_CANONICAL_HOST
|
2002-12-08 14:50:10 +00:00
|
|
|
|
|
|
|
dnl our libraries and install dirs use major.minor as a version
|
2005-09-05 15:10:18 +00:00
|
|
|
GST_MAJORMINOR=$GST_PLUGINS_BAD_VERSION_MAJOR.$GST_PLUGINS_BAD_VERSION_MINOR
|
2005-02-22 16:48:58 +00:00
|
|
|
dnl we override it here if we need to for the release candidate of new series
|
2005-12-01 19:13:20 +00:00
|
|
|
GST_MAJORMINOR=0.10
|
2002-12-08 14:50:10 +00:00
|
|
|
AC_SUBST(GST_MAJORMINOR)
|
|
|
|
|
2006-04-01 15:36:25 +00:00
|
|
|
dnl FIXME: this macro doesn't actually work;
|
|
|
|
dnl the generated libtool script has no support for the listed tags.
|
|
|
|
dnl So this needs to be fixed first if we want to use this
|
|
|
|
dnl AS_LIBTOOL_TAGS([CXX])
|
|
|
|
|
2004-02-04 21:30:15 +00:00
|
|
|
AM_PROG_LIBTOOL
|
2001-12-17 18:37:01 +00:00
|
|
|
|
2006-04-01 10:09:11 +00:00
|
|
|
dnl *** required versions of GStreamer stuff ***
|
|
|
|
GST_REQ=0.10.3
|
|
|
|
GSTPB_REQ=0.10.3
|
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
|
|
|
|
AM_GNU_GETTEXT_VERSION([0.11.5])
|
2005-07-08 10:47:28 +00:00
|
|
|
AM_GNU_GETTEXT([external])
|
2006-03-12 23:56:47 +00:00
|
|
|
GST_GETTEXT([gst-plugins-bad-$GST_MAJORMINOR])
|
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
|
|
|
|
2006-04-01 10:09:11 +00:00
|
|
|
GST_ARG_DEBUG
|
|
|
|
GST_ARG_PROFILING
|
|
|
|
GST_ARG_VALGRIND
|
|
|
|
GST_ARG_GCOV
|
2003-05-21 15:16:51 +00:00
|
|
|
|
2006-04-01 10:09:11 +00:00
|
|
|
GST_ARG_EXAMPLES
|
2003-05-21 18:16:30 +00:00
|
|
|
|
2006-04-01 10:09:11 +00:00
|
|
|
GST_ARG_WITH_PKG_CONFIG_PATH
|
|
|
|
GST_ARG_WITH_PACKAGE_NAME
|
|
|
|
GST_ARG_WITH_PACKAGE_ORIGIN
|
2003-05-21 15:16:51 +00:00
|
|
|
|
2006-04-01 10:09:11 +00:00
|
|
|
GST_ARG_EXAMPLES
|
2004-03-15 16:27:29 +00:00
|
|
|
|
2006-04-01 10:09:11 +00:00
|
|
|
dnl these are all the gst plug-ins, compilable without additional libs
|
|
|
|
GST_PLUGINS_ALL="\
|
|
|
|
cdxaparse \
|
|
|
|
freeze \
|
|
|
|
speed \
|
|
|
|
qtdemux \
|
|
|
|
xingheader \
|
|
|
|
tta \
|
|
|
|
"
|
2003-11-11 03:22:53 +00:00
|
|
|
|
2006-04-01 10:09:11 +00:00
|
|
|
dnl see if we can build C++ plug-ins
|
|
|
|
if test "x$HAVE_CXX" = "xyes"; then
|
|
|
|
GST_PLUGINS_ALL="$GST_PLUGINS_ALL \
|
|
|
|
modplug \
|
|
|
|
"
|
|
|
|
else
|
|
|
|
AC_MSG_WARN([Not compiling plug-ins requiring C++ compiler])
|
2003-11-06 02:32:42 +00:00
|
|
|
fi
|
|
|
|
|
2006-04-01 10:09:11 +00:00
|
|
|
AC_SUBST(GST_PLUGINS_ALL)
|
2004-12-09 11:54:10 +00:00
|
|
|
|
2006-04-01 10:09:11 +00:00
|
|
|
GST_PLUGINS_SELECTED=""
|
2002-07-01 15:41:13 +00:00
|
|
|
|
2006-04-01 10:09:11 +00:00
|
|
|
GST_ARG_WITH_PLUGINS
|
2002-05-10 21:56:15 +00:00
|
|
|
|
2006-04-01 10:09:11 +00:00
|
|
|
GST_ARG_ENABLE_EXTERNAL
|
2001-12-17 18:37:01 +00:00
|
|
|
|
2006-04-01 10:09:11 +00:00
|
|
|
GST_ARG_ENABLE_EXPERIMENTAL
|
2001-12-17 18:37:01 +00:00
|
|
|
|
2006-04-01 10:09:11 +00:00
|
|
|
USE_TARKIN=$BUILD_EXPERIMENTAL
|
2002-02-16 17:53:57 +00:00
|
|
|
|
2006-04-01 10:09:11 +00:00
|
|
|
dnl *** checks for 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
|
|
|
|
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
|
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)
|
|
|
|
|
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
|
|
|
|
2006-04-01 10:09:11 +00:00
|
|
|
dnl check for documentation tools
|
|
|
|
GTK_DOC_CHECK([1.3])
|
|
|
|
AS_PATH_PYTHON([2.1])
|
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
|
|
|
|
2006-04-01 10:09:11 +00:00
|
|
|
dnl *** checks for header files ***
|
2003-07-28 11:37:49 +00:00
|
|
|
|
2006-04-03 10:51:54 +00:00
|
|
|
dnl used by ext/dts
|
|
|
|
AX_CREATE_STDINT_H
|
|
|
|
|
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 ***
|
2002-08-13 10:39:26 +00:00
|
|
|
|
2006-04-01 10:09:11 +00:00
|
|
|
dnl *** checks for dependancy libraries ***
|
2003-08-09 23:40:49 +00:00
|
|
|
|
2006-04-01 10:09:11 +00:00
|
|
|
dnl GLib is required
|
|
|
|
GST_GLIB_CHECK([2.6])
|
2001-12-21 11:46:15 +00:00
|
|
|
|
2006-04-02 09:17:23 +00:00
|
|
|
dnl liboil is required
|
|
|
|
PKG_CHECK_MODULES(LIBOIL, liboil-0.3 >= 0.3.2, HAVE_LIBOIL=yes, HAVE_LIBOIL=no)
|
|
|
|
if test "x${HAVE_LIBOIL}" != xyes ; then
|
|
|
|
AC_ERROR([liboil-0.3 is required])
|
|
|
|
fi
|
|
|
|
|
2006-04-01 10:09:11 +00:00
|
|
|
dnl checks for gstreamer
|
|
|
|
dnl uninstalled is selected preferentially -- see pkg-config(1)
|
|
|
|
GST_CHECK_GST($GST_MAJORMINOR, [$GST_REQ])
|
|
|
|
GST_CHECK_GST_BASE($GST_MAJORMINOR, [$GST_REQ])
|
|
|
|
GST_CHECK_GST_CHECK($GST_MAJORMINOR, [$GST_REQ], no)
|
2002-08-07 00:22:04 +00:00
|
|
|
|
2006-04-01 10:09:11 +00:00
|
|
|
dnl FIXME: get rid of this by making sure gstreamer-check brings it in
|
|
|
|
dnl check for "check", unit testing library/header
|
|
|
|
AM_PATH_CHECK(0.9.2, HAVE_CHECK=yes, HAVE_CHECK=no)
|
|
|
|
AM_CONDITIONAL(HAVE_CHECK, test "x$HAVE_CHECK" = "xyes")
|
2001-12-23 03:25:55 +00:00
|
|
|
|
2006-04-01 10:09:11 +00:00
|
|
|
GST_CHECK_GST_PLUGINS_BASE($GST_MAJORMINOR, [$GSTPB_REQ], no)
|
2006-04-01 16:50:49 +00:00
|
|
|
GSTPB_PLUGINS_DIR=`$PKG_CONFIG gstreamer-plugins-base-$GST_MAJORMINOR --variable pluginsdir`
|
|
|
|
AC_SUBST(GSTPB_PLUGINS_DIR)
|
|
|
|
AC_MSG_NOTICE(Using GStreamer Base Plugins in $GSTPB_PLUGINS_DIR)
|
2001-12-23 03:25:55 +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
|
|
|
|
2006-04-01 10:09:11 +00:00
|
|
|
dnl set location of plugin directory
|
|
|
|
GST_SET_PLUGINDIR
|
2001-12-23 03:25:55 +00:00
|
|
|
|
2006-04-01 10:09:11 +00:00
|
|
|
dnl define an ERROR_CFLAGS Makefile variable
|
|
|
|
GST_SET_ERROR_CFLAGS($GST_CVS)
|
2001-12-21 11:46:15 +00:00
|
|
|
|
2006-04-01 10:09:11 +00:00
|
|
|
dnl define correct level for debugging messages
|
|
|
|
GST_SET_LEVEL_DEFAULT($GST_CVS)
|
2001-12-20 20:16:57 +00:00
|
|
|
|
2006-04-02 09:33:12 +00:00
|
|
|
dnl *** sys plug-ins ***
|
2005-05-07 18:50:39 +00:00
|
|
|
|
2006-04-02 09:33:12 +00:00
|
|
|
dnl OpenGL
|
|
|
|
translit(dnm, m, l) AM_CONDITIONAL(USE_OPENGL, true)
|
|
|
|
save_CPPFLAGS="$CPPFLAGS"
|
|
|
|
save_LIBS="$LIBS"
|
|
|
|
CPPFLAGS="$CPPFLAGS $X_CFLAGS"
|
|
|
|
LIBS="$LIBS $X_LIBS"
|
|
|
|
GST_CHECK_FEATURE(OPENGL, [Open GL], glsink, [
|
|
|
|
GST_CHECK_LIBHEADER(GL, GL, glTexImage2D,,
|
|
|
|
GL/gl.h, HAVE_OPENGL="yes", HAVE_OPENGL="no")
|
2005-09-01 19:12:44 +00:00
|
|
|
])
|
2006-04-02 09:33:12 +00:00
|
|
|
CPPFLAGS="$save_CPPFLAGS"
|
|
|
|
LIBS="$save_LIBS"
|
2005-09-01 19:12:44 +00:00
|
|
|
|
2005-07-19 20:51:15 +00:00
|
|
|
|
2005-09-19 21:47:54 +00:00
|
|
|
dnl Check for X11
|
Port ximagesrc to 0.10 (Closes #304795)
Original commit message from CVS:
* configure.ac:
* sys/Makefile.am:
* sys/ximagesrc/Makefile.am:
* sys/ximagesrc/ximagesrc.c: (gst_ximagesrc_return_buf),
(gst_ximagesrc_open_display), (gst_ximagesrc_start),
(gst_ximagesrc_stop), (gst_ximagesrc_unlock),
(gst_ximagesrc_recalc), (composite_pixel),
(gst_ximagesrc_ximage_get), (gst_ximagesrc_create),
(gst_ximagesrc_set_property), (gst_ximagesrc_get_property),
(gst_ximagesrc_clear_bufpool), (gst_ximagesrc_base_init),
(gst_ximagesrc_dispose), (gst_ximagesrc_finalize),
(gst_ximagesrc_get_caps), (gst_ximagesrc_set_caps),
(gst_ximagesrc_fixate), (gst_ximagesrc_class_init),
(gst_ximagesrc_init), (plugin_init):
* sys/ximagesrc/ximagesrc.h:
* sys/ximagesrc/ximageutil.c: (ximageutil_handle_xerror),
(ximageutil_check_xshm_calls), (ximageutil_xcontext_get),
(ximageutil_xcontext_clear),
(ximageutil_calculate_pixel_aspect_ratio),
(gst_ximagesrc_buffer_finalize), (gst_ximage_buffer_free),
(gst_ximagesrc_buffer_init), (gst_ximagesrc_buffer_class_init),
(gst_ximagesrc_buffer_get_type), (gst_ximageutil_ximage_new),
(gst_ximageutil_ximage_destroy):
* sys/ximagesrc/ximageutil.h:
Port ximagesrc to 0.10 (Closes #304795)
2006-02-20 21:19:59 +00:00
|
|
|
translit(dnm, m, l) AM_CONDITIONAL(USE_X, true)
|
|
|
|
GST_CHECK_FEATURE(X, [X libraries and plugins],
|
|
|
|
[ximagesrc], [
|
|
|
|
AC_PATH_XTRA
|
2006-02-22 14:37:20 +00:00
|
|
|
|
|
|
|
dnl now try to find the HEADER
|
Port ximagesrc to 0.10 (Closes #304795)
Original commit message from CVS:
* configure.ac:
* sys/Makefile.am:
* sys/ximagesrc/Makefile.am:
* sys/ximagesrc/ximagesrc.c: (gst_ximagesrc_return_buf),
(gst_ximagesrc_open_display), (gst_ximagesrc_start),
(gst_ximagesrc_stop), (gst_ximagesrc_unlock),
(gst_ximagesrc_recalc), (composite_pixel),
(gst_ximagesrc_ximage_get), (gst_ximagesrc_create),
(gst_ximagesrc_set_property), (gst_ximagesrc_get_property),
(gst_ximagesrc_clear_bufpool), (gst_ximagesrc_base_init),
(gst_ximagesrc_dispose), (gst_ximagesrc_finalize),
(gst_ximagesrc_get_caps), (gst_ximagesrc_set_caps),
(gst_ximagesrc_fixate), (gst_ximagesrc_class_init),
(gst_ximagesrc_init), (plugin_init):
* sys/ximagesrc/ximagesrc.h:
* sys/ximagesrc/ximageutil.c: (ximageutil_handle_xerror),
(ximageutil_check_xshm_calls), (ximageutil_xcontext_get),
(ximageutil_xcontext_clear),
(ximageutil_calculate_pixel_aspect_ratio),
(gst_ximagesrc_buffer_finalize), (gst_ximage_buffer_free),
(gst_ximagesrc_buffer_init), (gst_ximagesrc_buffer_class_init),
(gst_ximagesrc_buffer_get_type), (gst_ximageutil_ximage_new),
(gst_ximageutil_ximage_destroy):
* sys/ximagesrc/ximageutil.h:
Port ximagesrc to 0.10 (Closes #304795)
2006-02-20 21:19:59 +00:00
|
|
|
ac_cflags_save="$CFLAGS"
|
|
|
|
ac_cppflags_save="$CPPFLAGS"
|
|
|
|
CFLAGS="$CFLAGS $X_CFLAGS"
|
|
|
|
CPPFLAGS="$CPPFLAGS $X_CFLAGS"
|
|
|
|
AC_CHECK_HEADER(X11/Xlib.h, HAVE_X="yes", HAVE_X="no")
|
|
|
|
|
|
|
|
if test "x$HAVE_X" = "xno"
|
|
|
|
then
|
|
|
|
AC_MSG_NOTICE([cannot find X11 development files])
|
|
|
|
else
|
|
|
|
dnl this is much more than we want
|
|
|
|
X_LIBS="$X_LIBS $X_PRE_LIBS $X_EXTRA_LIBS"
|
|
|
|
dnl AC_PATH_XTRA only defines the path needed to find the X libs,
|
|
|
|
dnl it does not add the libs; therefore we add them here
|
|
|
|
X_LIBS="$X_LIBS -lX11"
|
|
|
|
AC_SUBST(X_CFLAGS)
|
|
|
|
AC_SUBST(X_LIBS)
|
|
|
|
|
|
|
|
dnl check for Xfixes
|
|
|
|
PKG_CHECK_MODULES(XFIXES, xfixes, HAVE_XFIXES="yes", HAVE_XFIXES="no")
|
|
|
|
if test "x$HAVE_XFIXES" = "xyes"
|
|
|
|
then
|
|
|
|
XFIXES_CFLAGS="-DHAVE_XFIXES $XFIXES_CFLAGS"
|
|
|
|
fi
|
|
|
|
AC_SUBST(XFIXES_LIBS)
|
|
|
|
AC_SUBST(XFIXES_CFLAGS)
|
|
|
|
|
|
|
|
dnl check for Xdamage
|
|
|
|
PKG_CHECK_MODULES(XDAMAGE, xdamage, HAVE_XDAMAGE="yes", HAVE_XDAMAGE="no")
|
|
|
|
if test "x$HAVE_XDAMAGE" = "xyes"
|
|
|
|
then
|
|
|
|
XDAMAGE_CFLAGS="-DHAVE_XDAMAGE $XDAMAGE_CFLAGS"
|
|
|
|
fi
|
|
|
|
AC_SUBST(XDAMAGE_LIBS)
|
|
|
|
AC_SUBST(XDAMAGE_CFLAGS)
|
|
|
|
fi
|
|
|
|
AC_SUBST(HAVE_X)
|
|
|
|
CFLAGS="$ac_cflags_save"
|
|
|
|
CPPFLAGS="$ac_cppflags_save"
|
|
|
|
])
|
2005-09-19 21:47:54 +00:00
|
|
|
|
2006-04-02 09:33:12 +00:00
|
|
|
dnl FIXME: this should be rolled into the test above, it's just an additional
|
|
|
|
dnl feature of the ximagesrc plug-in
|
Port ximagesrc to 0.10 (Closes #304795)
Original commit message from CVS:
* configure.ac:
* sys/Makefile.am:
* sys/ximagesrc/Makefile.am:
* sys/ximagesrc/ximagesrc.c: (gst_ximagesrc_return_buf),
(gst_ximagesrc_open_display), (gst_ximagesrc_start),
(gst_ximagesrc_stop), (gst_ximagesrc_unlock),
(gst_ximagesrc_recalc), (composite_pixel),
(gst_ximagesrc_ximage_get), (gst_ximagesrc_create),
(gst_ximagesrc_set_property), (gst_ximagesrc_get_property),
(gst_ximagesrc_clear_bufpool), (gst_ximagesrc_base_init),
(gst_ximagesrc_dispose), (gst_ximagesrc_finalize),
(gst_ximagesrc_get_caps), (gst_ximagesrc_set_caps),
(gst_ximagesrc_fixate), (gst_ximagesrc_class_init),
(gst_ximagesrc_init), (plugin_init):
* sys/ximagesrc/ximagesrc.h:
* sys/ximagesrc/ximageutil.c: (ximageutil_handle_xerror),
(ximageutil_check_xshm_calls), (ximageutil_xcontext_get),
(ximageutil_xcontext_clear),
(ximageutil_calculate_pixel_aspect_ratio),
(gst_ximagesrc_buffer_finalize), (gst_ximage_buffer_free),
(gst_ximagesrc_buffer_init), (gst_ximagesrc_buffer_class_init),
(gst_ximagesrc_buffer_get_type), (gst_ximageutil_ximage_new),
(gst_ximageutil_ximage_destroy):
* sys/ximagesrc/ximageutil.h:
Port ximagesrc to 0.10 (Closes #304795)
2006-02-20 21:19:59 +00:00
|
|
|
dnl check for X Shm
|
|
|
|
translit(dnm, m, l) AM_CONDITIONAL(USE_XSHM, true)
|
2006-04-02 09:33:12 +00:00
|
|
|
GST_CHECK_FEATURE(XSHM, [X Shared Memory extension], [], [
|
Port ximagesrc to 0.10 (Closes #304795)
Original commit message from CVS:
* configure.ac:
* sys/Makefile.am:
* sys/ximagesrc/Makefile.am:
* sys/ximagesrc/ximagesrc.c: (gst_ximagesrc_return_buf),
(gst_ximagesrc_open_display), (gst_ximagesrc_start),
(gst_ximagesrc_stop), (gst_ximagesrc_unlock),
(gst_ximagesrc_recalc), (composite_pixel),
(gst_ximagesrc_ximage_get), (gst_ximagesrc_create),
(gst_ximagesrc_set_property), (gst_ximagesrc_get_property),
(gst_ximagesrc_clear_bufpool), (gst_ximagesrc_base_init),
(gst_ximagesrc_dispose), (gst_ximagesrc_finalize),
(gst_ximagesrc_get_caps), (gst_ximagesrc_set_caps),
(gst_ximagesrc_fixate), (gst_ximagesrc_class_init),
(gst_ximagesrc_init), (plugin_init):
* sys/ximagesrc/ximagesrc.h:
* sys/ximagesrc/ximageutil.c: (ximageutil_handle_xerror),
(ximageutil_check_xshm_calls), (ximageutil_xcontext_get),
(ximageutil_xcontext_clear),
(ximageutil_calculate_pixel_aspect_ratio),
(gst_ximagesrc_buffer_finalize), (gst_ximage_buffer_free),
(gst_ximagesrc_buffer_init), (gst_ximagesrc_buffer_class_init),
(gst_ximagesrc_buffer_get_type), (gst_ximageutil_ximage_new),
(gst_ximageutil_ximage_destroy):
* sys/ximagesrc/ximageutil.h:
Port ximagesrc to 0.10 (Closes #304795)
2006-02-20 21:19:59 +00:00
|
|
|
if test x$HAVE_X = xyes; then
|
|
|
|
AC_CHECK_LIB(Xext, XShmAttach,
|
|
|
|
HAVE_XSHM="yes", HAVE_XSHM="no",
|
|
|
|
$X_LIBS)
|
|
|
|
if test "x$HAVE_XSHM" = "xyes"; then
|
|
|
|
XSHM_LIBS="-lXext"
|
|
|
|
else
|
|
|
|
dnl On AIX, it is in XextSam instead, but we still need -lXext
|
|
|
|
AC_CHECK_LIB(XextSam, XShmAttach,
|
|
|
|
HAVE_XSHM="yes", HAVE_XSHM="no",
|
|
|
|
$X_LIBS)
|
|
|
|
if test "x$HAVE_XSHM" = "xyes"; then
|
|
|
|
XSHM_LIBS="-lXext -lXextSam"
|
|
|
|
fi
|
|
|
|
fi
|
|
|
|
fi
|
2006-04-02 09:33:12 +00:00
|
|
|
], ,[
|
Port ximagesrc to 0.10 (Closes #304795)
Original commit message from CVS:
* configure.ac:
* sys/Makefile.am:
* sys/ximagesrc/Makefile.am:
* sys/ximagesrc/ximagesrc.c: (gst_ximagesrc_return_buf),
(gst_ximagesrc_open_display), (gst_ximagesrc_start),
(gst_ximagesrc_stop), (gst_ximagesrc_unlock),
(gst_ximagesrc_recalc), (composite_pixel),
(gst_ximagesrc_ximage_get), (gst_ximagesrc_create),
(gst_ximagesrc_set_property), (gst_ximagesrc_get_property),
(gst_ximagesrc_clear_bufpool), (gst_ximagesrc_base_init),
(gst_ximagesrc_dispose), (gst_ximagesrc_finalize),
(gst_ximagesrc_get_caps), (gst_ximagesrc_set_caps),
(gst_ximagesrc_fixate), (gst_ximagesrc_class_init),
(gst_ximagesrc_init), (plugin_init):
* sys/ximagesrc/ximagesrc.h:
* sys/ximagesrc/ximageutil.c: (ximageutil_handle_xerror),
(ximageutil_check_xshm_calls), (ximageutil_xcontext_get),
(ximageutil_xcontext_clear),
(ximageutil_calculate_pixel_aspect_ratio),
(gst_ximagesrc_buffer_finalize), (gst_ximage_buffer_free),
(gst_ximagesrc_buffer_init), (gst_ximagesrc_buffer_class_init),
(gst_ximagesrc_buffer_get_type), (gst_ximageutil_ximage_new),
(gst_ximageutil_ximage_destroy):
* sys/ximagesrc/ximageutil.h:
Port ximagesrc to 0.10 (Closes #304795)
2006-02-20 21:19:59 +00:00
|
|
|
AC_SUBST(HAVE_XSHM)
|
|
|
|
AC_SUBST(XSHM_LIBS)
|
2006-04-02 09:33:12 +00:00
|
|
|
])
|
|
|
|
|
|
|
|
dnl *** Video 4 Linux 2 ***
|
|
|
|
dnl for information about the header/define, see sys/v4l2/gstv4l2element.h
|
|
|
|
dnl renamed to GST_V4L2 because of some conflict with kernel headers
|
|
|
|
translit(dnm, m, l) AM_CONDITIONAL(USE_GST_V4L2, true)
|
|
|
|
GST_CHECK_FEATURE(GST_V4L2, [Video 4 Linux 2], v4l2src, [
|
|
|
|
AC_MSG_CHECKING([Checking for uptodate v4l2 installation])
|
|
|
|
AC_TRY_COMPILE([
|
|
|
|
#include <sys/types.h>
|
|
|
|
#include <linux/types.h>
|
|
|
|
#define _LINUX_TIME_H
|
|
|
|
#define __user
|
|
|
|
#include <linux/videodev2.h>
|
|
|
|
#if defined(V4L2_MAJOR_VERSION) || defined(V4L2_MINOR_VERSION)
|
|
|
|
#error too early v4l2 version or no v4l2 at all
|
|
|
|
#endif
|
|
|
|
], [
|
|
|
|
return 0;
|
|
|
|
], [
|
|
|
|
HAVE_GST_V4L2="yes"
|
|
|
|
AC_MSG_RESULT(yes)
|
|
|
|
], [
|
|
|
|
HAVE_GST_V4L2="no"
|
|
|
|
AC_MSG_RESULT(no)
|
|
|
|
AC_CHECK_HEADER(linux/videodev2.h,
|
|
|
|
[
|
|
|
|
AC_MSG_WARN([video4linux2 headers were found, but they're old.])
|
|
|
|
AC_MSG_WARN([Please update v4l2 to compile the v4l2 plugins])
|
|
|
|
], [
|
|
|
|
AC_MSG_WARN([video4linux2 was not found])
|
|
|
|
])
|
|
|
|
])
|
|
|
|
|
|
|
|
if [ test x$HAVE_GST_V4L2 = xyes ]; then
|
|
|
|
dnl check for missing v4l2_buffer declaration (see #135919)
|
|
|
|
MISSING_DECL=0
|
|
|
|
AC_MSG_CHECKING(struct v4l2_buffer declaration)
|
|
|
|
AC_TRY_COMPILE([
|
|
|
|
#include <sys/types.h>
|
|
|
|
#include <linux/types.h>
|
|
|
|
#define _LINUX_TIME_H
|
|
|
|
#define __user
|
|
|
|
#include <linux/videodev2.h>
|
|
|
|
],[
|
|
|
|
struct v4l2_buffer buf;
|
|
|
|
buf.index = 0;
|
|
|
|
return 0;
|
|
|
|
], [ AC_MSG_RESULT(yes) ], [ MISSING_DECL=1 && AC_MSG_RESULT(no) ])
|
|
|
|
if [ test x$MISSING_DECL = x1 ]; then
|
|
|
|
AC_DEFINE(GST_V4L2_MISSING_BUFDECL, 1, [struct v4l2_buffer missing])
|
|
|
|
fi
|
|
|
|
|
|
|
|
dnl check for XOverlay libraries
|
|
|
|
GST_CHECK_XV
|
|
|
|
fi
|
|
|
|
])
|
|
|
|
AM_CONDITIONAL(USE_XVIDEO, test "x$HAVE_XVIDEO" = "xyes")
|
|
|
|
|
|
|
|
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
|
|
|
|
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
|
|
|
dnl *** amrwb ***
|
|
|
|
translit(dnm, m, l) AM_CONDITIONAL(USE_AMRWB, true)
|
|
|
|
GST_CHECK_FEATURE(AMRWB, [amrwb code], amrwb, [
|
|
|
|
if test -f "ext/amrwb/amrwb-code/readme.txt"; then
|
|
|
|
HAVE_AMRWB="yes"
|
|
|
|
else
|
|
|
|
AC_MSG_WARN(Not amrwb code found. See README at ext/amrwb/)
|
|
|
|
HAVE_AMRWB="no"
|
|
|
|
fi
|
|
|
|
AC_SUBST(HAVE_AMRWB)
|
|
|
|
])
|
|
|
|
|
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)
|
2006-02-06 09:40:09 +00:00
|
|
|
GST_CHECK_FEATURE(BZ2, [bz2 library], bz2, [
|
|
|
|
GST_CHECK_LIBHEADER(BZ2, bz2, BZ2_bzCompress, ,bzlib.h, BZ2_LIBS="-lbz2")
|
|
|
|
AC_SUBST(BZ2_LIBS)
|
|
|
|
])
|
|
|
|
|
2006-04-02 09:33:12 +00:00
|
|
|
#dnl *** cairo ***
|
|
|
|
#translit(dnm, m, l) AM_CONDITIONAL(USE_CAIRO, true)
|
|
|
|
#GST_CHECK_FEATURE(CAIRO, [cairo plug-in], cairo, [
|
|
|
|
# PKG_CHECK_MODULES(CAIRO, cairo >= 1.0 glitz-glx, HAVE_CAIRO=yes, HAVE_CAIRO=no)
|
|
|
|
# AC_SUBST(CAIRO_CFLAGS)
|
|
|
|
# AC_SUBST(CAIRO_LIBS)
|
|
|
|
#])
|
|
|
|
|
|
|
|
dnl **** DirectFB ****
|
|
|
|
translit(dnm, m, l) AM_CONDITIONAL(USE_DIRECTFB, true)
|
|
|
|
GST_CHECK_FEATURE(DIRECTFB, [directfb], dfbvideosink , [
|
|
|
|
PKG_CHECK_MODULES(DIRECTFB, directfb >= 0.9.24, [
|
|
|
|
HAVE_DIRECTFB="yes"
|
|
|
|
AC_SUBST(DIRECTFB_CFLAGS)
|
|
|
|
AC_SUBST(DIRECTFB_LIBS)
|
|
|
|
], [
|
|
|
|
HAVE_DIRECTFB="no"
|
|
|
|
])
|
|
|
|
])
|
|
|
|
|
2005-12-14 20:54:06 +00:00
|
|
|
dnl *** DTS ***
|
|
|
|
translit(dnm, m, l) AM_CONDITIONAL(USE_DTS, true)
|
|
|
|
GST_CHECK_FEATURE(DTS, [dts library], dtsdec, [
|
|
|
|
GST_CHECK_LIBHEADER(DTS, dts_pic, dts_init, -lm, dts.h, DTS_LIBS="-ldts_pic -lm")
|
|
|
|
AC_SUBST(DTS_LIBS)
|
|
|
|
])
|
|
|
|
|
2005-12-19 14:40:22 +00:00
|
|
|
dnl *** DIVX ***
|
|
|
|
translit(dnm, m, l) AM_CONDITIONAL(USE_DIVX, true)
|
|
|
|
GST_CHECK_FEATURE(DIVX, [divx plugins], divx, [
|
|
|
|
HAVE_DIVX=yes
|
|
|
|
AC_CHECK_HEADER(encore2.h, ,
|
|
|
|
[ AC_MSG_WARN([Divx4linux encore headers not found]) &&
|
|
|
|
HAVE_DIVX=no ] )
|
|
|
|
if [ test x$HAVE_DIVX = xyes ]; then
|
|
|
|
AC_MSG_CHECKING([Checking for valid divx4linux encore version])
|
|
|
|
AC_TRY_COMPILE([
|
|
|
|
#include <encore2.h>
|
|
|
|
#if ENCORE_VERSION != 20021024
|
|
|
|
#error Wrong version of divx encore libraries
|
|
|
|
#endif
|
|
|
|
], [
|
|
|
|
return 0;
|
|
|
|
], [ HAVE_DIVX=yes && AC_MSG_RESULT(yes)],
|
|
|
|
[ HAVE_DIVX=no && AC_MSG_RESULT(no) &&
|
|
|
|
AC_MSG_WARN([Wrong version of divx4linux installed]) ])
|
|
|
|
fi
|
|
|
|
if [ test x$HAVE_DIVX = xyes ]; then
|
|
|
|
AC_CHECK_HEADER(decore.h, ,
|
|
|
|
[ AC_MSG_WARN([Divx4linux decoder headers not found]) &&
|
|
|
|
HAVE_DIVX=no ] )
|
|
|
|
fi
|
|
|
|
if [ test x$HAVE_DIVX = xyes ]; then
|
|
|
|
AC_MSG_CHECKING([Checking for valid divx4linux decore version])
|
|
|
|
AC_TRY_COMPILE([
|
|
|
|
#include <decore.h>
|
|
|
|
#if DECORE_VERSION != 20021112
|
|
|
|
#error Wrong version of divx decore libraries
|
|
|
|
#endif
|
|
|
|
], [
|
|
|
|
return 0;
|
|
|
|
], [ HAVE_DIVX=yes && AC_MSG_RESULT(yes)],
|
|
|
|
[ HAVE_DIVX=no && AC_MSG_RESULT(no) &&
|
|
|
|
AC_MSG_WARN([Wrong version of divx4linux installed]) ])
|
|
|
|
fi
|
|
|
|
LIBS="-lm"
|
|
|
|
if test x$HAVE_DIVX = xyes; then
|
|
|
|
AC_CHECK_LIB(divxencore, encore, ,
|
|
|
|
[ AC_MSG_WARN([Divx4linux encore libs not found]) &&
|
|
|
|
HAVE_DIVX=no ] )
|
|
|
|
fi
|
|
|
|
if test x$HAVE_DIVX = xyes; then
|
|
|
|
AC_CHECK_LIB(divxdecore, decore, ,
|
|
|
|
[ AC_MSG_WARN([Divx4linux decore libs not found]) &&
|
|
|
|
HAVE_DIVX=no ] )
|
|
|
|
fi
|
|
|
|
if test x$HAVE_DIVX = xyes; then
|
|
|
|
DIVXENC_LIBS="-ldivxencore -lm"
|
|
|
|
DIVXDEC_LIBS="-ldivxdecore -lm"
|
|
|
|
AC_SUBST(DIVXENC_LIBS)
|
|
|
|
AC_SUBST(DIVXDEC_LIBS)
|
|
|
|
fi
|
|
|
|
])
|
|
|
|
|
2006-04-02 09:33:12 +00:00
|
|
|
dnl **** Free AAC Encoder (FAAC) ****
|
|
|
|
translit(dnm, m, l) AM_CONDITIONAL(USE_FAAC, true)
|
|
|
|
GST_CHECK_FEATURE(FAAC, [AAC encoder plug-in], faac, [
|
|
|
|
GST_CHECK_LIBHEADER(FAAC, faac, faacEncOpen, -lm, faac.h, FAAC_LIBS="-lfaac -lm")
|
|
|
|
AS_SCRUB_INCLUDE(FAAC_CFLAGS)
|
|
|
|
AC_SUBST(FAAC_LIBS)
|
|
|
|
])
|
|
|
|
|
|
|
|
dnl **** Free AAC Decoder (FAAD) ****
|
|
|
|
translit(dnm, m, l) AM_CONDITIONAL(USE_FAAD, true)
|
|
|
|
GST_CHECK_FEATURE(FAAD, [AAC decoder plug-in], faad, [
|
|
|
|
HAVE_FAAD="yes"
|
|
|
|
GST_CHECK_LIBHEADER(FAAD, faad, faacDecOpen, -lm, faad.h, FAAD_LIBS="-lfaad -lm", HAVE_FAAD="no")
|
|
|
|
if test $HAVE_FAAD = "yes"; then
|
|
|
|
AC_MSG_CHECKING([Checking for FAAD >= 2])
|
|
|
|
AC_TRY_RUN([
|
|
|
|
|
|
|
|
#include <faad.h>
|
|
|
|
#if !defined(FAAD2_VERSION) || !defined(FAAD_FMT_DOUBLE)
|
|
|
|
#error Not faad2
|
|
|
|
#else
|
|
|
|
#include <string.h>
|
|
|
|
|
|
|
|
int main()
|
|
|
|
{
|
|
|
|
char version[9] = FAAD2_VERSION;
|
|
|
|
// a release candidate of 2.0 is not enought for us
|
|
|
|
if ( strstr( version, "2.0 RC" ) ) { return 1; }
|
|
|
|
|
|
|
|
return 0;
|
|
|
|
}
|
|
|
|
|
|
|
|
#endif
|
|
|
|
],
|
|
|
|
[ HAVE_FAAD="yes" && AC_MSG_RESULT(yes)],
|
|
|
|
[ HAVE_FAAD="no" && AC_MSG_RESULT(no)])
|
|
|
|
fi;
|
|
|
|
AS_SCRUB_INCLUDE(FAAD_CFLAGS)
|
|
|
|
AC_SUBST(FAAD_LIBS)
|
|
|
|
])
|
|
|
|
|
|
|
|
dnl *** gsm ***
|
|
|
|
translit(dnm, m, l) AM_CONDITIONAL(USE_GSM, true)
|
|
|
|
GST_CHECK_FEATURE(GSM, [GSM library], gsmenc gsmdec, [
|
|
|
|
GST_CHECK_LIBHEADER(GSM, gsm, gsm_create, , gsm.h, GSM_LIBS="-lgsm")
|
|
|
|
if test $HAVE_GSM != "yes"; then
|
|
|
|
GST_CHECK_LIBHEADER(GSM, gsm, gsm_create, , gsm/gsm.h, GSM_LIBS="-lgsm")
|
|
|
|
if test $HAVE_GSM = "yes"; then
|
|
|
|
AC_DEFINE(GSM_HEADER_IN_SUBDIR, 1, [Define if GSM header in gsm/ subdir])
|
|
|
|
fi
|
|
|
|
fi
|
|
|
|
AC_SUBST(GSM_LIBS)
|
|
|
|
])
|
|
|
|
|
|
|
|
dnl *** ivorbis ***
|
|
|
|
dnl AM_PATH_IVORBIS only takes two options
|
|
|
|
translit(dnm, m, l) AM_CONDITIONAL(USE_IVORBIS, true)
|
|
|
|
GST_CHECK_FEATURE(IVORBIS, [integer vorbis plug-in], ivorbisdec, [
|
|
|
|
IVORBIS_LIBS=
|
|
|
|
IVORBIS_CFLAGS=
|
|
|
|
AC_CHECK_LIB(vorbisidec, vorbis_block_init,
|
|
|
|
[IVORBIS_LIBS=-lvorbisidec
|
|
|
|
HAVE_IVORBIS=yes],
|
|
|
|
HAVE_IVORBIS=no)
|
|
|
|
AC_SUBST(IVORBIS_LIBS)
|
|
|
|
AC_SUBST(IVORBIS_CFLAGS)
|
|
|
|
])
|
|
|
|
|
|
|
|
dnl *** libmms ***
|
|
|
|
translit(dnm, m, l) AM_CONDITIONAL(USE_LIBMMS, true)
|
|
|
|
GST_CHECK_FEATURE(LIBMMS, [mms protocol library], libmms, [
|
|
|
|
dnl check with pkg-config first
|
|
|
|
PKG_CHECK_MODULES(LIBMMS, libmms >= 0.2, HAVE_LIBMMS="yes", HAVE_LIBMMS="no")
|
|
|
|
])
|
|
|
|
AC_SUBST(LIBMMS_LIBS)
|
2005-12-19 14:40:22 +00:00
|
|
|
|
2005-11-22 15:09:28 +00:00
|
|
|
dnl *** musepack ***
|
|
|
|
translit(dnm, m, l) AM_CONDITIONAL(USE_MUSEPACK, true)
|
|
|
|
GST_CHECK_FEATURE(MUSEPACK, [musepackdec], musepack, [
|
|
|
|
AC_LANG_CPLUSPLUS
|
|
|
|
AC_CHECK_HEADER([mpcdec/mpcdec.h], [
|
|
|
|
HAVE_MUSEPACK="yes"
|
|
|
|
MUSEPACK_LIBS="-lmpcdec"
|
|
|
|
AC_SUBST(MUSEPACK_LIBS)
|
|
|
|
], [HAVE_MUSEPACK="no"])
|
|
|
|
AC_LANG_C
|
|
|
|
])
|
|
|
|
|
2005-12-28 21:07:17 +00:00
|
|
|
dnl *** neon ***
|
|
|
|
translit(dnm, m, l) AM_CONDITIONAL(USE_NEON, true)
|
|
|
|
GST_CHECK_FEATURE(NEON, [neon http client plugins], neonhttpsrc, [
|
2006-02-21 15:44:05 +00:00
|
|
|
PKG_CHECK_MODULES(NEON, neon >= 0.25.5, HAVE_NEON="yes", HAVE_NEON="no")
|
2005-12-28 21:07:17 +00:00
|
|
|
AC_SUBST(NEON_CFLAGS)
|
|
|
|
AC_SUBST(NEON_LIBS)
|
|
|
|
])
|
|
|
|
|
2005-09-19 21:47:54 +00:00
|
|
|
dnl *** SDL ***
|
|
|
|
translit(dnm, m, l) AM_CONDITIONAL(USE_SDL, true)
|
2006-01-09 18:20:56 +00:00
|
|
|
GST_CHECK_FEATURE(SDL, [SDL plug-in], sdlvideosink sdlaudiosink, [
|
2005-09-19 21:47:54 +00:00
|
|
|
AM_PATH_SDL(, HAVE_SDL=yes, HAVE_SDL=no)
|
|
|
|
])
|
|
|
|
|
2006-03-22 14:31:47 +00:00
|
|
|
dnl *** soundtouch ***
|
|
|
|
translit(dnm, m, l) AM_CONDITIONAL(USE_SOUNDTOUCH, true)
|
|
|
|
GST_CHECK_FEATURE(SOUNDTOUCH, [soundtouch plug-in], soundtouch, [
|
|
|
|
PKG_CHECK_MODULES(SOUNDTOUCH, libSoundTouch, HAVE_SOUNDTOUCH=yes, HAVE_SOUNDTOUCH=no)
|
|
|
|
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
|
|
|
|
])
|
|
|
|
|
2005-12-09 04:15:02 +00:00
|
|
|
dnl *** swfdec ***
|
|
|
|
translit(dnm, m, l) AM_CONDITIONAL(USE_SWFDEC, true)
|
|
|
|
GST_CHECK_FEATURE(SWFDEC, [swfdec plug-in], swfdec, [
|
2006-01-21 18:35:29 +00:00
|
|
|
PKG_CHECK_MODULES(SWFDEC, swfdec-0.3 >= 0.3.6, HAVE_SWFDEC=yes, HAVE_SWFDEC=no)
|
2005-12-09 04:15:02 +00:00
|
|
|
AC_SUBST(SWFDEC_CFLAGS)
|
|
|
|
AC_SUBST(SWFDEC_LIBS)
|
|
|
|
])
|
|
|
|
|
2005-09-19 21:47:54 +00:00
|
|
|
|
2006-04-02 09:33:12 +00:00
|
|
|
dnl *** taglib ***
|
|
|
|
translit(dnm, m, l) AM_CONDITIONAL(USE_TAGLIB, true)
|
|
|
|
GST_CHECK_FEATURE(TAGLIB, [taglib ID3v2 tag writer], taglib, [
|
|
|
|
PKG_CHECK_MODULES(TAGLIB, taglib >= 1.4, HAVE_TAGLIB="yes", HAVE_TAGLIB="no")
|
|
|
|
AC_SUBST(TAGLIB_CFLAGS)
|
|
|
|
AC_SUBST(TAGLIB_LIBS)
|
|
|
|
if test "x$HAVE_CXX" != "xyes"; then
|
|
|
|
USE_TAGLIB=false
|
|
|
|
AC_MSG_NOTICE([Not building taglib plugin: no C++ compiler found])
|
2005-09-02 20:21:17 +00:00
|
|
|
fi
|
|
|
|
])
|
|
|
|
|
2006-04-02 09:33:12 +00:00
|
|
|
dnl *** theora ***
|
|
|
|
translit(dnm, m, l) AM_CONDITIONAL(USE_THEORADEC, true)
|
|
|
|
GST_CHECK_FEATURE(THEORADEC, [ogg theora codec], theoraexpdec, [
|
|
|
|
PKG_CHECK_MODULES(THEORADEC, theoradec, HAVE_THEORADEC="yes", HAVE_THEORADEC="no")
|
|
|
|
AC_SUBST(THEORADEC_LIBS)
|
|
|
|
AC_SUBST(THEORADEC_CFLAGS)
|
2006-01-28 04:39:18 +00:00
|
|
|
])
|
|
|
|
|
2005-12-14 22:41:47 +00:00
|
|
|
dnl *** XVID ***
|
|
|
|
translit(dnm, m, l) AM_CONDITIONAL(USE_XVID, true)
|
|
|
|
GST_CHECK_FEATURE(XVID, [xvid plugins], xvid, [
|
|
|
|
HAVE_XVID=no
|
|
|
|
AC_CHECK_HEADER(xvid.h, [
|
|
|
|
OLD_LIBS="$LIBS"
|
|
|
|
LIBS="-lm"
|
|
|
|
AC_CHECK_LIB(xvidcore, xvid_encore, [
|
|
|
|
AC_CHECK_LIB(xvidcore, xvid_decore, [
|
|
|
|
AC_CHECK_LIB(xvidcore, xvid_global, [
|
|
|
|
AC_MSG_CHECKING([for uptodate XviD API version])
|
|
|
|
AC_TRY_RUN([
|
|
|
|
#include <xvid.h>
|
|
|
|
#if XVID_API_MAJOR(XVID_API) != 4
|
|
|
|
#error "Incompatible XviD API version"
|
|
|
|
#endif
|
|
|
|
int main () { return 0; }
|
|
|
|
],[ AC_MSG_RESULT(yes)
|
|
|
|
XVID_LIBS="-lxvidcore -lm"
|
|
|
|
AC_SUBST(XVID_LIBS)
|
|
|
|
HAVE_XVID=yes
|
|
|
|
], AC_MSG_RESULT(no) )
|
|
|
|
], )
|
|
|
|
], )
|
|
|
|
], )
|
|
|
|
LIBS="$OLD_LIBS"
|
|
|
|
], )
|
|
|
|
])
|
|
|
|
|
2006-04-02 09:33:12 +00:00
|
|
|
dnl *** wavpack ***
|
|
|
|
translit(dnm, m, l) AM_CONDITIONAL(USE_WAVPACK, true)
|
|
|
|
GST_CHECK_FEATURE(WAVPACK, [wavpack plug-in], wavpack, [
|
|
|
|
PKG_CHECK_MODULES(WAVPACK, wavpack >= 4.2, HAVE_WAVPACK=yes, HAVE_WAVPACK=no)
|
|
|
|
AC_SUBST(WAVPACK_CFLAGS)
|
|
|
|
AC_SUBST(WAVPACK_LIBS)
|
2006-03-11 22:50:03 +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
|
|
|
|
2006-04-01 10:09:11 +00:00
|
|
|
DEPRECATED_CFLAGS="-DGST_DISABLE_DEPRECATED"
|
|
|
|
AC_SUBST(DEPRECATED_CFLAGS)
|
2005-11-06 21:55:01 +00:00
|
|
|
|
2006-04-01 10:09:11 +00:00
|
|
|
dnl every flag in GST_OPTION_CFLAGS can be overridden at make time
|
|
|
|
GST_OPTION_CFLAGS="\$(ERROR_CFLAGS) \$(DEBUG_CFLAGS) \$(PROFILE_CFLAGS) \$(GCOV_CFLAGS) \$(OPT_CFLAGS) \$(DEPRECATED_CFLAGS)"
|
|
|
|
AC_SUBST(GST_OPTION_CFLAGS)
|
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
|
|
|
|
GST_CFLAGS="-I\$(top_srcdir)/gst-libs -I\$(top_builddir)/gst-libs $GST_CFLAGS \$(GST_OPTION_CFLAGS)"
|
|
|
|
AC_SUBST(GST_CFLAGS)
|
|
|
|
AC_SUBST(GST_LIBS)
|
|
|
|
|
|
|
|
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
|
|
|
|
GST_PLUGIN_LDFLAGS="-module -avoid-version -export-symbols-regex '^[_]*gst_plugin_desc\$\$' $GST_ALL_LDFLAGS"
|
|
|
|
AC_SUBST(GST_PLUGIN_LDFLAGS)
|
|
|
|
|
|
|
|
dnl *** output files ***
|
2003-10-31 20:03:29 +00:00
|
|
|
|
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
|
2005-09-06 14:05:50 +00:00
|
|
|
gst-plugins-bad.spec
|
2001-12-21 11:46:15 +00:00
|
|
|
gst/Makefile
|
2006-02-10 17:41:18 +00:00
|
|
|
gst/cdxaparse/Makefile
|
2006-02-13 17:02:09 +00:00
|
|
|
gst/freeze/Makefile
|
2006-03-10 17:10:09 +00:00
|
|
|
gst/modplug/Makefile
|
|
|
|
gst/modplug/libmodplug/Makefile
|
2005-10-17 20:48:35 +00:00
|
|
|
gst/speed/Makefile
|
2005-08-30 18:00:06 +00:00
|
|
|
gst/qtdemux/Makefile
|
2005-09-22 11:17:26 +00:00
|
|
|
gst/tta/Makefile
|
2006-03-11 11:12:30 +00:00
|
|
|
gst/xingheader/Makefile
|
2006-03-12 23:56:47 +00:00
|
|
|
gst-libs/Makefile
|
|
|
|
gst-libs/gst/Makefile
|
2001-12-20 20:16:57 +00:00
|
|
|
sys/Makefile
|
2006-01-28 04:39:18 +00:00
|
|
|
sys/glsink/Makefile
|
Port ximagesrc to 0.10 (Closes #304795)
Original commit message from CVS:
* configure.ac:
* sys/Makefile.am:
* sys/ximagesrc/Makefile.am:
* sys/ximagesrc/ximagesrc.c: (gst_ximagesrc_return_buf),
(gst_ximagesrc_open_display), (gst_ximagesrc_start),
(gst_ximagesrc_stop), (gst_ximagesrc_unlock),
(gst_ximagesrc_recalc), (composite_pixel),
(gst_ximagesrc_ximage_get), (gst_ximagesrc_create),
(gst_ximagesrc_set_property), (gst_ximagesrc_get_property),
(gst_ximagesrc_clear_bufpool), (gst_ximagesrc_base_init),
(gst_ximagesrc_dispose), (gst_ximagesrc_finalize),
(gst_ximagesrc_get_caps), (gst_ximagesrc_set_caps),
(gst_ximagesrc_fixate), (gst_ximagesrc_class_init),
(gst_ximagesrc_init), (plugin_init):
* sys/ximagesrc/ximagesrc.h:
* sys/ximagesrc/ximageutil.c: (ximageutil_handle_xerror),
(ximageutil_check_xshm_calls), (ximageutil_xcontext_get),
(ximageutil_xcontext_clear),
(ximageutil_calculate_pixel_aspect_ratio),
(gst_ximagesrc_buffer_finalize), (gst_ximage_buffer_free),
(gst_ximagesrc_buffer_init), (gst_ximagesrc_buffer_class_init),
(gst_ximagesrc_buffer_get_type), (gst_ximageutil_ximage_new),
(gst_ximageutil_ximage_destroy):
* sys/ximagesrc/ximageutil.h:
Port ximagesrc to 0.10 (Closes #304795)
2006-02-20 21:19:59 +00:00
|
|
|
sys/ximagesrc/Makefile
|
2006-03-11 22:50:03 +00:00
|
|
|
sys/v4l2/Makefile
|
2005-11-06 21:55:01 +00:00
|
|
|
examples/Makefile
|
|
|
|
examples/directfb/Makefile
|
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
|
|
|
ext/amrwb/amrwb-code/Makefile
|
2006-04-02 09:33:12 +00:00
|
|
|
ext/amrwb/Makefile
|
2006-02-06 09:40:09 +00:00
|
|
|
ext/bz2/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
|
2006-04-02 09:33:12 +00:00
|
|
|
ext/divx/Makefile
|
|
|
|
ext/dts/Makefile
|
2005-09-01 19:12:44 +00:00
|
|
|
ext/faac/Makefile
|
2005-08-30 18:00:06 +00:00
|
|
|
ext/faad/Makefile
|
2005-09-02 20:21:17 +00:00
|
|
|
ext/gsm/Makefile
|
2006-04-02 09:33:12 +00:00
|
|
|
ext/ivorbis/Makefile
|
2005-11-29 02:55:18 +00:00
|
|
|
ext/libmms/Makefile
|
2006-04-02 09:33:12 +00:00
|
|
|
ext/Makefile
|
2005-11-22 15:09:28 +00:00
|
|
|
ext/musepack/Makefile
|
2006-04-02 09:33:12 +00:00
|
|
|
ext/neon/Makefile
|
2005-09-19 21:47:54 +00:00
|
|
|
ext/sdl/Makefile
|
2006-04-02 09:33:12 +00:00
|
|
|
ext/soundtouch/Makefile
|
2006-01-28 04:39:18 +00:00
|
|
|
ext/swfdec/Makefile
|
2006-03-09 17:44:17 +00:00
|
|
|
ext/taglib/Makefile
|
configure.ac: Add autoconfery for theoradec.
Original commit message from CVS:
* configure.ac:
Add autoconfery for theoradec.
* ext/Makefile.am:
Add theora directory.
* ext/theora/Makefile.am:
* ext/theora/theoradec.c: (gst_theoradec_base_init),
(gst_theoradec_class_init), (gst_theoradec_init),
(gst_theoradec_reset), (inc_granulepos), (theora_get_query_types),
(gst_theoradec_granule_clocktime), (theora_dec_src_convert),
(theora_dec_sink_convert), (theora_dec_src_query),
(theora_dec_sink_query), (theora_dec_src_event),
(theora_dec_sink_event), (theora_handle_comment_packet),
(theora_handle_type_packet), (theora_handle_header_packet),
(theora_dec_push), (theora_handle_data_packet), (theora_dec_chain),
(theora_dec_change_state), (plugin_init):
* ext/theora/theoradec.h:
Add theora plugin for theora-exp decoder. Very heavily based on the
existing theora decoder plugin.
2006-03-31 14:26:05 +00:00
|
|
|
ext/theora/Makefile
|
2006-04-02 09:33:12 +00:00
|
|
|
ext/wavpack/Makefile
|
2005-12-14 22:41:47 +00:00
|
|
|
ext/xvid/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
|
|
|
|
docs/version.entities
|
2004-03-18 12:38:53 +00:00
|
|
|
common/Makefile
|
|
|
|
common/m4/Makefile
|
|
|
|
m4/Makefile
|
2006-03-31 17:52:36 +00:00
|
|
|
tests/Makefile
|
2006-04-01 16:50:49 +00:00
|
|
|
tests/check/Makefile
|
2006-03-31 17:52:36 +00:00
|
|
|
tests/icles/Makefile
|
2001-12-17 18:37:01 +00:00
|
|
|
)
|
2002-02-08 20:12:28 +00:00
|
|
|
AC_OUTPUT
|
|
|
|
|
2006-04-01 10:09:11 +00:00
|
|
|
GST_OUTPUT_PLUGINS
|