This file looks large and may slow your browser down if we attempt
to syntax highlight it, so we are showing it without any
pretty colors.
Highlight
it anyway.
| 1 |
dnl Perform a check for a GStreamer element using gst-inspect |
| 2 |
dnl Thomas Vander Stichele <thomas at apestaart dot org> |
| 3 |
dnl Last modification: 25/01/2005 |
| 4 |
|
| 5 |
dnl AM_GST_ELEMENT_CHECK(ELEMENT-NAME, ACTION-IF-FOUND, ACTION-IF-NOT-FOUND) |
| 6 |
|
| 7 |
AC_DEFUN([AM_GST_ELEMENT_CHECK], |
| 8 |
[ |
| 9 |
if test "x$GST_INSPECT" == "x"; then |
| 10 |
AC_CHECK_PROG(GST_INSPECT, gst-inspect-@GST_MAJORMINOR@, gst-inspect-@GST_MAJORMINOR@, []) |
| 11 |
fi |
| 12 |
|
| 13 |
if test "x$GST_INSPECT" != "x"; then |
| 14 |
AC_MSG_CHECKING(GStreamer @GST_MAJORMINOR@ element $1) |
| 15 |
if [ $GST_INSPECT $1 > /dev/null 2> /dev/null ]; then |
| 16 |
AC_MSG_RESULT(found.) |
| 17 |
$2 |
| 18 |
else |
| 19 |
AC_MSG_RESULT(not found.) |
| 20 |
$3 |
| 21 |
fi |
| 22 |
fi |
| 23 |
]) |