configure.ac: add check for module aubio, remove GSTCTRL check
authorPaul Brossier <piem@piem.org>
Mon, 24 Mar 2008 23:00:45 +0000 (00:00 +0100)
committerPaul Brossier <piem@piem.org>
Mon, 24 Mar 2008 23:00:45 +0000 (00:00 +0100)
configure.ac

index c5c6885..f2a39e5 100644 (file)
@@ -1,5 +1,9 @@
 AC_INIT
 
+dnl versions of aubio
+AUBIO_MAJORMINOR=0.3.2
+AUBIO_REQUIRED=0.3.2
+
 dnl versions of gstreamer and plugins-base
 GST_MAJORMINOR=0.10
 GST_REQUIRED=0.10.0
@@ -48,6 +52,21 @@ if test "x$HAVE_PKGCONFIG" = "xno"; then
   AC_MSG_ERROR(you need to have pkgconfig installed !)
 fi
 
+
+PKG_CHECK_MODULES(AUBIO, \
+  aubio >= $AUBIO_REQUIRED,
+  HAVE_AUBIO=yes,HAVE_AUBIO=no)
+
+dnl Give error and exit if we don't have AUBIOreamer
+if test "x$HAVE_AUBIO" = "xno"; then
+  AC_MSG_ERROR(you need aubio development package (libaubio-dev) installed !)
+fi
+
+dnl make AUBIO_CFLAGS and AUBIO_LIBS available
+AC_SUBST(AUBIO_CFLAGS)
+AC_SUBST(AUBIO_LIBS)
+
+
 dnl Now we're ready to ask for gstreamer libs and cflags
 dnl And we can also ask for the right version of gstreamer
 
@@ -100,21 +119,6 @@ dnl make _CFLAGS and _LIBS available
 AC_SUBST(GSTPB_BASE_CFLAGS)
 AC_SUBST(GSTPB_BASE_LIBS)
 
-dnl If we need them, we can also use the gstreamer-controller libraries
-PKG_CHECK_MODULES(GSTCTRL,
-                  gstreamer-controller-$GST_MAJORMINOR >= $GSTPB_REQUIRED,
-                  HAVE_GSTCTRL=yes, HAVE_GSTCTRL=no)
-
-dnl Give a warning if we don't have gstreamer-controller
-dnl you can turn this into an error if you need them
-if test "x$HAVE_GSTCTRL" = "xno"; then
-  AC_MSG_NOTICE(no GStreamer Controller libraries found (gstreamer-controller-$GST_MAJORMINOR))
-fi
-
-dnl make _CFLAGS and _LIBS available
-AC_SUBST(GSTCTRL_CFLAGS)
-AC_SUBST(GSTCTRL_LIBS)
-
 dnl set the plugindir where plugins should be installed
 if test "x${prefix}" = "x$HOME"; then
   plugindir="$HOME/.gstreamer-$GST_MAJORMINOR/plugins"