From 2f84a54ec1d10b10293c7b1f4ab9fee31f3c6327 Mon Sep 17 00:00:00 2001 From: "Matthias P. Braendli" Date: Tue, 24 Sep 2019 15:16:11 +0200 Subject: Add GStreamer input prototype --- configure.ac | 40 +++++++++++++++++++++++++++++++++++++++- 1 file changed, 39 insertions(+), 1 deletion(-) (limited to 'configure.ac') diff --git a/configure.ac b/configure.ac index 867e315..ae765f9 100644 --- a/configure.ac +++ b/configure.ac @@ -52,6 +52,44 @@ AC_ARG_ENABLE([jack], AC_ARG_ENABLE([vlc], AS_HELP_STRING([--enable-vlc], [Enable libvlc input])) +AC_ARG_ENABLE([gst], + AS_HELP_STRING([--enable-gst], [Enable GStreamer input])) + +GST_REQUIRED=1.0.0 + +AS_IF([test "x$enable_gst" = "xyes"], + [PKG_CHECK_MODULES(GST, [ + gstreamer-1.0 >= $GST_REQUIRED + gstreamer-base-1.0 >= $GST_REQUIRED + gstreamer-controller-1.0 >= $GST_REQUIRED + gstreamer-audio-1.0 >= $GST_REQUIRED + ], [ + AC_SUBST(GST_CFLAGS) + AC_SUBST(GST_LIBS) + ], [ + AC_MSG_ERROR([ + Can't find the following GStreamer development packages: + + gstreamer-1.0 >= $GST_REQUIRED + gstreamer-base-1.0 >= $GST_REQUIRED + gstreamer-controller-1.0 >= $GST_REQUIRED + gstreamer-audio-1.0 >= $GST_REQUIRED + + Please make sure you have the necessary GStreamer-1.0 + development headers installed. + + On debian/Ubuntu systems you will probably need to install the + 'libgstreamer1.0-dev' and 'libgstreamer-plugins-base1.0-dev' packages. + + On RPM-based systems you will probably need to install the + 'gstreamer-devel-1.0' package. + ]) + ]) +]) + +AS_IF([test "x$enable_gst" = "xyes"], + AC_DEFINE(HAVE_GST, [1], [Define if GST input is enabled])) + AS_IF([test "x$enable_alsa" = "xyes"], [AM_PATH_ALSA(1.0.25)]) @@ -130,7 +168,7 @@ echo echo "Features enabled:" enabled="" disabled="" -for feature in jack vlc alsa +for feature in jack vlc alsa gst do eval var=\$enable_$feature AS_IF([test "x$var" = "xyes"], -- cgit v1.2.3