summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorTim-Philipp Müller <tim.muller@collabora.co.uk>2012-01-20 15:58:00 +0000
committerTim-Philipp Müller <tim.muller@collabora.co.uk>2012-01-20 15:58:00 +0000
commitc463bc0b05e14a0eec30558fd08bb109f789d7c8 (patch)
tree194e72a517d7082b6dcbba983a9e54c678274f3b
parent7f96f7dbfbc7f4d492465201ebdc169ac6f9e8a4 (diff)
parent7604bab58b5dfc9370d506952f0407fb75c00388 (diff)
Merge remote-tracking branch 'origin/master' into 0.11
-rw-r--r--m4/gst-check.m432
1 files changed, 32 insertions, 0 deletions
diff --git a/m4/gst-check.m4 b/m4/gst-check.m4
index b11dde7..eb2f8b8 100644
--- a/m4/gst-check.m4
+++ b/m4/gst-check.m4
@@ -117,6 +117,38 @@ AC_DEFUN([AG_GST_CHECK_GST_CHECK],
])
dnl ===========================================================================
+dnl AG_GST_CHECK_UNINSTALLED_SETUP([ACTION-IF-UNINSTALLED], [ACTION-IF-NOT])
+dnl
+dnl ACTION-IF-UNINSTALLED (optional) extra actions to perform if the setup
+dnl is an uninstalled setup
+dnl ACTION-IF-NOT (optional) extra actions to perform if the setup
+dnl is not an uninstalled setup
+dnl ===========================================================================
+AC_DEFUN([AG_GST_CHECK_UNINSTALLED_SETUP],
+[
+ AC_MSG_CHECKING([whether this is an uninstalled GStreamer setup])
+ AC_CACHE_VAL(gst_cv_is_uninstalled_setup,[
+ gst_cv_is_uninstalled_setup=no
+ if (set -u; : $GST_PLUGIN_SYSTEM_PATH) 2>/dev/null ; then
+ if test -z "$GST_PLUGIN_SYSTEM_PATH" \
+ -a -n "$GST_PLUGIN_SCANNER" \
+ -a -n "$GST_PLUGIN_PATH" \
+ -a -n "$GST_REGISTRY" \
+ -a -n "$DYLD_LIBRARY_PATH" \
+ -a -n "$LD_LIBRARY_PATH"; then
+ gst_cv_is_uninstalled_setup=yes;
+ fi
+ fi
+ ])
+ AC_MSG_RESULT($gst_cv_is_uninstalled_setup)
+ if test "x$gst_cv_is_uninstalled_setup" = "xyes"; then
+ ifelse([$1], , :, [$1])
+ else
+ ifelse([$2], , :, [$2])
+ fi
+])
+
+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.