aboutsummaryrefslogtreecommitdiffstats
path: root/configure.ac
diff options
context:
space:
mode:
authorMatthias P. Braendli <matthias.braendli@mpb.li>2019-09-24 15:16:11 +0200
committerMatthias P. Braendli <matthias.braendli@mpb.li>2019-09-24 15:16:11 +0200
commit2f84a54ec1d10b10293c7b1f4ab9fee31f3c6327 (patch)
tree02979dbbe248b47063c1168ee711436cab3bf299 /configure.ac
parent4e207da0b1d2faa5fa38888ea824e0430ecd2f33 (diff)
downloadODR-AudioEnc-2f84a54ec1d10b10293c7b1f4ab9fee31f3c6327.tar.gz
ODR-AudioEnc-2f84a54ec1d10b10293c7b1f4ab9fee31f3c6327.tar.bz2
ODR-AudioEnc-2f84a54ec1d10b10293c7b1f4ab9fee31f3c6327.zip
Add GStreamer input prototype
Diffstat (limited to 'configure.ac')
-rw-r--r--configure.ac40
1 files changed, 39 insertions, 1 deletions
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"],