mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2024-11-05 09:00:54 +00:00
b67a06b61b
Original commit message from CVS: Only check for gst-inspect if we haven't already found it in previous element check runs
23 lines
614 B
Text
23 lines
614 B
Text
dnl Perform a check for a GStreamer element using gst-inspect
|
|
dnl Thomas Vander Stichele <thomas at apestaart dot org>
|
|
dnl Last modification: 25/01/2005
|
|
|
|
dnl AM_GST_ELEMENT_CHECK(ELEMENT-NAME, ACTION-IF-FOUND, ACTION-IF-NOT-FOUND)
|
|
|
|
AC_DEFUN([AM_GST_ELEMENT_CHECK],
|
|
[
|
|
if test "x$GST_INSPECT" == "x"; then
|
|
AC_CHECK_PROG(GST_INSPECT, gst-inspect, gst-inspect, [])
|
|
fi
|
|
|
|
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
|
|
])
|