Quote URI in the example script
[gst-am7xxxsink.git] / configure.ac
index 3e6efb0..9ff90f8 100644 (file)
@@ -16,6 +16,11 @@ AM_INIT_AUTOMAKE([1.10])
 dnl enable mainainer mode by default
 AM_MAINTAINER_MODE([enable])
 
+dnl use pretty build output with automake >= 1.11
+m4_ifdef([AM_SILENT_RULES],[AM_SILENT_RULES([yes])],
+  [AM_DEFAULT_VERBOSITY=1
+   AC_SUBST(AM_DEFAULT_VERBOSITY)])
+
 dnl check for tools (compiler etc.)
 AC_PROG_CC
 
@@ -32,6 +37,7 @@ PKG_CHECK_MODULES(GST, [
   gstreamer-1.0 >= $GST_REQUIRED
   gstreamer-base-1.0 >= $GST_REQUIRED
   gstreamer-controller-1.0 >= $GST_REQUIRED
+  gstreamer-video-1.0 >= $GST_REQUIRED
 ], [
   AC_SUBST(GST_CFLAGS)
   AC_SUBST(GST_LIBS)
@@ -45,6 +51,17 @@ PKG_CHECK_MODULES(GST, [
   ])
 ])
 
+PKG_CHECK_MODULES(LIBAM7XXX, [
+  libam7xxx >= 0.1
+], [
+  AC_SUBST(LIBAM7XXX_CFLAGS)
+  AC_SUBST(LIBAM7XXX_LIBS)
+], [
+  AC_MSG_ERROR([
+      libam7xxx not found.
+  ])
+])
+
 dnl check if compiler understands -Wall (if yes, add -Wall to GST_CFLAGS)
 AC_MSG_CHECKING([to see if compiler understands -Wall])
 save_CFLAGS="$CFLAGS"