fixing the --help text for docs building/non-building. Finally the correct text for...
[platform/upstream/gstreamer.git] / gst-element-check.m4.in
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: 23/10/2002
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   AC_CHECK_PROG(GST_INSPECT, gst-inspect, gst-inspect, [])
10   if test "x$GST_INSPECT" != "x"; then
11     AC_MSG_CHECKING(GStreamer element $1)
12     if [ $GST_INSPECT $1 > /dev/null 2> /dev/null ]; then
13       AC_MSG_RESULT(found.)
14       $2
15     else
16       AC_MSG_RESULT(not found.)
17       $3
18     fi
19   fi
20 ])