268
268
dnl ===========================================================================
269
dnl AG_GST_CHECK_GST_PLUGINS_FFMPEG([GST-API_VERSION], [MIN-VERSION])
269
dnl AG_GST_CHECK_GST_PLUGINS_LIBAV([GST-API_VERSION], [MIN-VERSION])
271
dnl Will set GST_PLUGINS_FFMPEG_DIR for use in Makefile.am. Note that this will
272
dnl only be set in an uninstalled setup, since -ffmpeg ships no .pc file and in
271
dnl Will set GST_PLUGINS_LIBAV_DIR for use in Makefile.am. Note that this will
272
dnl only be set in an uninstalled setup, since -libav ships no .pc file and in
273
273
dnl an installed setup all plugins will be found in GST_PLUGINS_DIR anyway.
274
274
dnl ===========================================================================
275
AC_DEFUN([AG_GST_CHECK_GST_PLUGINS_FFMPEG],
275
AC_DEFUN([AG_GST_CHECK_GST_PLUGINS_LIBAV],
277
AG_GST_CHECK_MODULES(GST_PLUGINS_FFMPEG, gstreamer-plugins-ffmpeg-[$1], [$2],
278
[GStreamer FFmpeg Plugins], [no])
277
AG_GST_CHECK_MODULES(GST_PLUGINS_LIBAV, gstreamer-plugins-libav-[$1], [$2],
278
[GStreamer Libav Plugins], [no])
280
if test "x$HAVE_GST_PLUGINS_FFMPEG" = "xyes"; then
281
dnl check for where ffmpeg plugins got installed
280
if test "x$HAVE_GST_PLUGINS_LIBAV" = "xyes"; then
281
dnl check for where libav plugins got installed
282
282
dnl this is used for unit tests
283
283
dnl allow setting before calling this macro to override
284
if test -z $GST_PLUGINS_FFMPEG_DIR; then
285
GST_PLUGINS_FFMPEG_DIR=`$PKG_CONFIG --variable=pluginsdir gstreamer-plugins-ffmpeg-[$1]`
286
if test -z $GST_PLUGINS_FFMPEG_DIR; then
287
AC_MSG_ERROR([no pluginsdir set in GStreamer FFmpeg Plugins pkg-config file])
284
if test -z $GST_PLUGINS_LIBAV_DIR; then
285
GST_PLUGINS_LIBAV_DIR=`$PKG_CONFIG --variable=pluginsdir gstreamer-plugins-libav-[$1]`
286
if test -z $GST_PLUGINS_LIBAV_DIR; then
287
AC_MSG_ERROR([no pluginsdir set in GStreamer Libav Plugins pkg-config file])
290
GST_PLUGINS_FFMPEG_DIR="$GST_PLUGINS_FFMPEG_DIR/ext/ffmpeg"
291
AC_MSG_NOTICE([using GStreamer FFmpeg Plugins in $GST_PLUGINS_FFMPEG_DIR])
292
AC_SUBST(GST_PLUGINS_FFMPEG_DIR)
290
GST_PLUGINS_LIBAV_DIR="$GST_PLUGINS_LIBAV_DIR/ext/libav"
291
AC_MSG_NOTICE([using GStreamer Libav Plugins in $GST_PLUGINS_LIBAV_DIR])
292
AC_SUBST(GST_PLUGINS_LIBAV_DIR)