1 dnl autoconf configuration file for gst-ffmpeg
5 dnl We disable static building for development, for time savings
6 dnl this goes before AS_LIBTOOL to appease autoconf
7 dnl *NOTE*: dnl this line before release, so release does static too
10 dnl AM_MAINTAINER_MODE only provides the option to configure to enable it
13 dnl when going to/from release please set the nano (fourth number) right !
14 dnl releases only do Wall, cvs and prerelease does Werror too
15 AS_VERSION(gst-ffmpeg, GST_FFMPEG_VERSION, 0, 10, 0, 1,
16 GST_CVS="no", GST_CVS="yes")
18 dnl we cheat here so we don't have to change the actual configure code bit
19 GST_PLUGINS_VERSION_NANO=$GST_FFMPEG_VERSION_NANO
21 dnl required GStreamer version
24 AM_INIT_AUTOMAKE($PACKAGE,$VERSION)
26 dnl our libraries and install dirs use major.minor as a version
27 #GST_MAJORMINOR=$GST_FFMPEG_VERSION_MAJOR.$GST_FFMPEG_VERSION_MINOR
28 dnl hack while GST_MAJORMINOR doesn't match the release
30 AC_SUBST(GST_MAJORMINOR)
32 dnl CURRENT, REVISION, AGE
33 dnl - library source changed -> increment REVISION
34 dnl - interfaces added/removed/changed -> increment CURRENT, REVISION = 0
35 dnl - interfaces added -> increment AGE
36 dnl - interfaces removed -> AGE = 0
37 AS_LIBTOOL(GST_FFMPEG, 0, 0, 0)
40 AC_CONFIG_SRCDIR(configure.ac)
41 AM_CONFIG_HEADER(config.h)
43 dnl Add parameters for aclocal
44 AC_SUBST(ACLOCAL_AMFLAGS, "-I common/m4")
50 dnl decide on error flags
51 AS_COMPILER_FLAG(-Wall, GST_WALL="yes", GST_WALL="no")
53 if test "x$GST_WALL" = "xyes"; then
54 GST_ERROR="$GST_ERROR -Wall"
56 if test "x$GST_CVS" = "xyes"; then
57 AS_COMPILER_FLAG(-Werror,GST_ERROR="$GST_ERROR -Werror",GST_ERROR="$GST_ERROR")
58 GST_ERROR="$GST_ERROR -DG_DISABLE_DEPRECATED"
65 dnl check for gstreamer
66 dnl uninstalled is selected preferentially -- see pkg-config(1)
67 GST_CHECK_GST($GST_MAJORMINOR, [$GST_REQ])
68 GST_CHECK_GST_BASE($GST_MAJORMINOR, [$GST_REQ])
70 if test "x$HAVE_GST" = "xno"; then
71 AC_MSG_ERROR(no GStreamer found)
74 dnl ============================= gst plug-ins ================================
76 plugindir="\$(libdir)/gstreamer-$GST_MAJORMINOR"
79 GST_PLUGIN_LDFLAGS='-module -avoid-version -export-symbols-regex [_]*\(gst_\|Gst\|GST_\).* -no-undefined'
80 AC_SUBST(GST_PLUGIN_LDFLAGS)
85 GST_ARG_WITH_PKG_CONFIG_PATH
87 dnl check for documentation tools
91 dnl ###########################
92 dnl # Configure external libs #
93 dnl ###########################
95 AC_DEFINE_UNQUOTED(HAVE_FFMPEG_UNINSTALLED, 1,
96 [Defined if building against uninstalled FFmpeg source])
97 ac_configure_args="$ac_configure_args --disable-v4l --disable-audio-oss --disable-dv1394 --disable-vhook --disable-ffmpeg --disable-ffserver --enable-pp"
98 AC_CONFIG_SUBDIRS(gst-libs/ext/ffmpeg)
105 ext/libpostproc/Makefile
107 gst-libs/ext/Makefile
109 docs/plugins/Makefile