diff options
author | Thomas Vander Stichele <thomas@apestaart.org> | 2002-10-23 08:53:44 +0000 |
---|---|---|
committer | Thomas Vander Stichele <thomas@apestaart.org> | 2002-10-23 08:53:44 +0000 |
commit | 945a43139b558088e45f21628c8f31388b223025 (patch) | |
tree | 3e86b6d3639f660ab0affee2fc73708fe5a60c63 /gst-element-check.m4 | |
parent | 77351078d761513faa9c2a87793c041368ef77d5 (diff) | |
download | gst-plugins-bad-945a43139b558088e45f21628c8f31388b223025.tar.gz gst-plugins-bad-945a43139b558088e45f21628c8f31388b223025.tar.bz2 gst-plugins-bad-945a43139b558088e45f21628c8f31388b223025.zip |
.m4 to check for presence of an element let me know if this works
Original commit message from CVS:
.m4 to check for presence of an element
let me know if this works
Diffstat (limited to 'gst-element-check.m4')
-rw-r--r-- | gst-element-check.m4 | 20 |
1 files changed, 20 insertions, 0 deletions
diff --git a/gst-element-check.m4 b/gst-element-check.m4 new file mode 100644 index 00000000..f900dace --- /dev/null +++ b/gst-element-check.m4 @@ -0,0 +1,20 @@ +dnl Perform a check for a GStreamer element using gst-inspect +dnl Thomas Vander Stichele <thomas at apestaart dot org> +dnl Last modification: 23/10/2002 + +dnl AM_GST_ELEMENT_CHECK(ELEMENT-NAME, ACTION-IF-FOUND, ACTION-IF-NOT-FOUND) + +AC_DEFUN(AM_GST_ELEMENT_CHECK, +[ + AC_CHECK_PROG(GST_INSPECT, gst-inspect, gst-inspect, []) + if test "x$GST_INSPECT" != "x"; then + AC_MSG_CHECKING(GStreamer element $1) + if [ $GST_INSPECT $1 > /dev/null 2> /dev/null ]; then + AC_MSG_RESULT(found.) + $2 + else + AC_MSG_RESULT(not found.) + $3 + fi + fi +]) |