2004-02-13 13:00:18 +00:00
|
|
|
dnl autoconf configuration file for gst-ffmpeg
|
2003-12-09 15:59:48 +00:00
|
|
|
AC_INIT
|
2004-07-21 09:11:25 +00:00
|
|
|
AC_CANONICAL_TARGET
|
2003-12-09 15:59:48 +00:00
|
|
|
|
|
|
|
dnl We disable static building for development, for time savings
|
|
|
|
dnl this goes before AS_LIBTOOL to appease autoconf
|
|
|
|
dnl *NOTE*: dnl this line before release, so release does static too
|
|
|
|
AM_DISABLE_STATIC
|
|
|
|
|
|
|
|
dnl AM_MAINTAINER_MODE only provides the option to configure to enable it
|
|
|
|
AM_MAINTAINER_MODE
|
|
|
|
|
|
|
|
dnl when going to/from release please set the nano (fourth number) right !
|
|
|
|
dnl releases only do Wall, cvs and prerelease does Werror too
|
2005-12-05 18:11:16 +00:00
|
|
|
AS_VERSION(gst-ffmpeg, GST_FFMPEG_VERSION, 0, 10, 0, 1,
|
2005-10-03 18:01:15 +00:00
|
|
|
GST_CVS="no", GST_CVS="yes")
|
|
|
|
|
2003-12-09 17:29:20 +00:00
|
|
|
dnl we cheat here so we don't have to change the actual configure code bit
|
|
|
|
GST_PLUGINS_VERSION_NANO=$GST_FFMPEG_VERSION_NANO
|
2003-12-09 15:59:48 +00:00
|
|
|
|
2004-02-26 18:21:44 +00:00
|
|
|
dnl required GStreamer version
|
2005-12-01 19:12:47 +00:00
|
|
|
GST_REQ=0.9.7
|
2004-02-26 18:21:44 +00:00
|
|
|
|
2003-12-09 15:59:48 +00:00
|
|
|
AM_INIT_AUTOMAKE($PACKAGE,$VERSION)
|
|
|
|
|
|
|
|
dnl our libraries and install dirs use major.minor as a version
|
2004-03-10 18:52:29 +00:00
|
|
|
#GST_MAJORMINOR=$GST_FFMPEG_VERSION_MAJOR.$GST_FFMPEG_VERSION_MINOR
|
|
|
|
dnl hack while GST_MAJORMINOR doesn't match the release
|
2005-12-01 19:12:47 +00:00
|
|
|
GST_MAJORMINOR=0.10
|
2003-12-09 15:59:48 +00:00
|
|
|
AC_SUBST(GST_MAJORMINOR)
|
|
|
|
|
|
|
|
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
|
2005-12-01 19:12:47 +00:00
|
|
|
AS_LIBTOOL(GST_FFMPEG, 0, 0, 0)
|
2004-02-13 13:00:18 +00:00
|
|
|
AM_PROG_LIBTOOL()
|
2003-12-09 15:59:48 +00:00
|
|
|
|
|
|
|
AC_CONFIG_SRCDIR(configure.ac)
|
|
|
|
AM_CONFIG_HEADER(config.h)
|
|
|
|
|
|
|
|
dnl Add parameters for aclocal
|
2005-11-27 17:00:08 +00:00
|
|
|
AC_SUBST(ACLOCAL_AMFLAGS, "-I common/m4")
|
2003-12-09 15:59:48 +00:00
|
|
|
|
|
|
|
AC_PROG_CC
|
|
|
|
AM_PROG_CC_STDC
|
|
|
|
AS="${CC}"
|
|
|
|
|
|
|
|
dnl decide on error flags
|
|
|
|
AS_COMPILER_FLAG(-Wall, GST_WALL="yes", GST_WALL="no")
|
|
|
|
|
|
|
|
if test "x$GST_WALL" = "xyes"; then
|
|
|
|
GST_ERROR="$GST_ERROR -Wall"
|
|
|
|
|
|
|
|
if test "x$GST_CVS" = "xyes"; then
|
|
|
|
AS_COMPILER_FLAG(-Werror,GST_ERROR="$GST_ERROR -Werror",GST_ERROR="$GST_ERROR")
|
|
|
|
GST_ERROR="$GST_ERROR -DG_DISABLE_DEPRECATED"
|
|
|
|
fi
|
|
|
|
fi
|
|
|
|
|
|
|
|
AC_HEADER_STDC([])
|
|
|
|
|
|
|
|
|
|
|
|
dnl check for gstreamer; uninstalled is selected preferentially -- see pkg-config(1)
|
2005-06-03 11:34:13 +00:00
|
|
|
PKG_CHECK_MODULES(GST, gstreamer-$GST_MAJORMINOR >= $GST_REQ \
|
Backport BRANCH-THREADED to HEAD, fix a bit.
Original commit message from CVS:
* configure.ac:
* ext/ffmpeg/Makefile.am:
* ext/ffmpeg/gstffmpeg.c: (plugin_init):
* ext/ffmpeg/gstffmpegcodecmap.c: (gst_ffmpeg_caps_with_codecid):
* ext/ffmpeg/gstffmpegdec.c: (gst_ffmpegdec_class_init),
(gst_ffmpegdec_init), (gst_ffmpegdec_query), (gst_ffmpegdec_event),
(gst_ffmpegdec_open), (gst_ffmpegdec_setcaps),
(gst_ffmpegdec_get_buffer), (gst_ffmpegdec_negotiate),
(gst_ffmpegdec_frame), (gst_ffmpegdec_sink_event),
(gst_ffmpegdec_chain), (gst_ffmpegdec_change_state),
(gst_ffmpegdec_register):
* ext/ffmpeg/gstffmpegenc.c: (gst_ffmpegenc_class_init),
(gst_ffmpegenc_init), (gst_ffmpegenc_getcaps),
(gst_ffmpegenc_setcaps), (gst_ffmpegenc_chain_video),
(gst_ffmpegenc_chain_audio):
* ext/libpostproc/Makefile.am:
Backport BRANCH-THREADED to HEAD, fix a bit.
2005-08-05 15:29:56 +00:00
|
|
|
gstreamer-plugins-base-$GST_MAJORMINOR,
|
2003-12-09 15:59:48 +00:00
|
|
|
HAVE_GST="yes", HAVE_GST="no")
|
2005-06-10 23:55:38 +00:00
|
|
|
|
2003-12-09 15:59:48 +00:00
|
|
|
if test "x$HAVE_GST" = "xno"; then
|
|
|
|
AC_MSG_ERROR(no GStreamer found)
|
|
|
|
fi
|
|
|
|
|
|
|
|
dnl ============================= gst plug-ins ================================
|
|
|
|
|
|
|
|
plugindir="\$(libdir)/gstreamer-$GST_MAJORMINOR"
|
|
|
|
AC_SUBST(plugindir)
|
|
|
|
|
2005-11-14 17:14:22 +00:00
|
|
|
GST_PLUGIN_LDFLAGS='-module -avoid-version -export-symbols-regex [_]*\(gst_\|Gst\|GST_\).* -no-undefined'
|
2003-12-09 15:59:48 +00:00
|
|
|
AC_SUBST(GST_PLUGIN_LDFLAGS)
|
|
|
|
|
|
|
|
dnl Determine CPU
|
2004-02-13 13:00:18 +00:00
|
|
|
GST_ARCH()
|
2003-12-09 15:59:48 +00:00
|
|
|
|
2006-01-17 09:12:52 +00:00
|
|
|
GST_ARG_WITH_PKG_CONFIG_PATH
|
|
|
|
|
2003-12-09 15:59:48 +00:00
|
|
|
dnl ###########################
|
|
|
|
dnl # Configure external libs #
|
|
|
|
dnl ###########################
|
2004-03-11 18:18:36 +00:00
|
|
|
|
|
|
|
AC_DEFINE_UNQUOTED(HAVE_FFMPEG_UNINSTALLED, 1,
|
|
|
|
[Defined if building against uninstalled FFmpeg source])
|
2005-06-20 13:07:52 +00:00
|
|
|
ac_configure_args="$ac_configure_args --disable-v4l --disable-audio-oss --disable-dv1394 --disable-vhook --disable-ffmpeg --disable-ffserver --enable-pp"
|
2004-03-11 18:18:36 +00:00
|
|
|
AC_CONFIG_SUBDIRS(gst-libs/ext/ffmpeg)
|
2003-12-09 15:59:48 +00:00
|
|
|
|
|
|
|
AC_CONFIG_FILES(
|
|
|
|
Makefile
|
2004-02-14 11:46:48 +00:00
|
|
|
gst-ffmpeg.spec
|
2003-12-09 15:59:48 +00:00
|
|
|
ext/Makefile
|
|
|
|
ext/ffmpeg/Makefile
|
2005-06-20 13:07:52 +00:00
|
|
|
ext/libpostproc/Makefile
|
2003-12-09 15:59:48 +00:00
|
|
|
gst-libs/Makefile
|
|
|
|
gst-libs/ext/Makefile
|
|
|
|
)
|
|
|
|
AC_OUTPUT
|