2003-04-07 21:28:57 +00:00
|
|
|
dnl Perform a check for a GStreamer element using gst-inspect
|
|
|
|
dnl Thomas Vander Stichele <thomas at apestaart dot org>
|
2005-01-25 14:03:12 +00:00
|
|
|
dnl Last modification: 25/01/2005
|
2003-04-07 21:28:57 +00:00
|
|
|
|
|
|
|
dnl AM_GST_ELEMENT_CHECK(ELEMENT-NAME, ACTION-IF-FOUND, ACTION-IF-NOT-FOUND)
|
|
|
|
|
2004-02-11 18:21:51 +00:00
|
|
|
AC_DEFUN([AM_GST_ELEMENT_CHECK],
|
2003-04-07 21:28:57 +00:00
|
|
|
[
|
2011-01-08 02:19:31 +00:00
|
|
|
if test "x$GST_INSPECT" = "x"; then
|
2006-07-07 09:09:10 +00:00
|
|
|
AC_CHECK_PROG(GST_INSPECT, gst-inspect-@GST_MAJORMINOR@, gst-inspect-@GST_MAJORMINOR@, [])
|
2005-01-25 14:03:12 +00:00
|
|
|
fi
|
|
|
|
|
2003-04-07 21:28:57 +00:00
|
|
|
if test "x$GST_INSPECT" != "x"; then
|
2006-07-07 09:09:10 +00:00
|
|
|
AC_MSG_CHECKING(GStreamer @GST_MAJORMINOR@ element $1)
|
2003-04-07 21:28:57 +00:00
|
|
|
if [ $GST_INSPECT $1 > /dev/null 2> /dev/null ]; then
|
|
|
|
AC_MSG_RESULT(found.)
|
|
|
|
$2
|
|
|
|
else
|
|
|
|
AC_MSG_RESULT(not found.)
|
|
|
|
$3
|
|
|
|
fi
|
|
|
|
fi
|
|
|
|
])
|