gst-checks.m4: document AG_GST_CHECK_GST_PLUGINS_BASE and set GST_PLUGINS_BASE_DIR
authorTim-Philipp Müller <tim.muller@collabora.co.uk>
Tue, 7 Sep 2010 17:53:59 +0000 (18:53 +0100)
committerTim-Philipp Müller <tim.muller@collabora.co.uk>
Tue, 7 Sep 2010 17:53:59 +0000 (18:53 +0100)
Also set GST_PLUGINS_BASE_DIR (in addition to GSTPB_PLUGINS_DIR), for consistency
with the good/ugly/bad/ffmpeg equivalents.

m4/gst-check.m4

index 302cddb..2ad00f2 100644 (file)
@@ -118,6 +118,13 @@ AC_DEFUN([AG_GST_CHECK_GST_CHECK],
 
 dnl ===========================================================================
 dnl AG_GST_CHECK_GST_PLUGINS_BASE([GST-MAJORMINOR], [MIN-VERSION], [REQUIRED])
+dnl
+dnl Sets GST_PLUGINS_BASE_CFLAGS and GST_PLUGINS_BASE_LIBS.
+dnl
+dnl Also sets GSTPB_PLUGINS_DIR (and for consistency also GST_PLUGINS_BASE_DIR)
+dnl for use in Makefile.am. This is only really needed/useful in uninstalled
+dnl setups, since in an installed setup all plugins will be found in
+dnl GST_PLUGINS_DIR anyway.
 dnl ===========================================================================
 AC_DEFUN([AG_GST_CHECK_GST_PLUGINS_BASE],
 [
@@ -136,6 +143,8 @@ AC_DEFUN([AG_GST_CHECK_GST_PLUGINS_BASE],
       fi
     fi
     AC_MSG_NOTICE([using GStreamer Base Plugins in $GSTPB_PLUGINS_DIR])
+    GST_PLUGINS_BASE_DIR="$GSTPB_PLUGINS_DIR/gst:$GSTPB_PLUGINS_DIR/sys:$GSTPB_PLUGINS_DIR/ext"
+    AC_SUBST(GST_PLUGINS_BASE_DIR)
     AC_SUBST(GSTPB_PLUGINS_DIR)
   fi
 ])