Commit 458059ca authored by Dafydd Harries's avatar Dafydd Harries

only build GStreamer plugin if it's available/requested

darcs-hash:20070228171552-c9803-44dae9c4f391d34546413c5ddc99c2b08e3a4847.gz
parent 0f4dc36a
...@@ -9,8 +9,11 @@ SUBDIRS = \ ...@@ -9,8 +9,11 @@ SUBDIRS = \
udp \ udp \
random \ random \
agent \ agent \
nice \ nice
gst
if WITH_GSTREAMER
SUBDIRS += gst
endif
EXTRA_DIST = scripts common.mk EXTRA_DIST = scripts common.mk
...@@ -30,10 +30,27 @@ PKG_CHECK_MODULES(GLIB, [dnl ...@@ -30,10 +30,27 @@ PKG_CHECK_MODULES(GLIB, [dnl
gobject-2.0 >= 2.10 dnl gobject-2.0 >= 2.10 dnl
]) ])
PKG_CHECK_MODULES(GST, [ AC_ARG_WITH(gstreamer,
gstreamer-0.10 >= 0.10.0 AC_HELP_STRING([--with-gstreamer], [use GStreamer]),
gstreamer-base-0.10 >= 0.10.0 [with_gstreamer=${withval}],
]) [with_gstreamer=auto])
if test "$with_gstreamer" != no; then
PKG_CHECK_MODULES(GST, [
gstreamer-0.10 >= 0.10.0
gstreamer-base-0.10 >= 0.10.0
],
[with_gstreamer=yes],
[
if test "$with_gstreamer" = yes; then
AC_MSG_ERROR([GStreamer support was requested but GStreamer libraries are not available])
fi
with_gstreamer=no
])
fi
AM_CONDITIONAL(WITH_GSTREAMER, test "$with_gstreamer" = yes)
AC_OUTPUT AC_OUTPUT
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment