Make gst-element-check-$VERSION.m4 call gst-inspect-$VERSION instead of the unversion...
authorTim-Philipp Müller <tim@centricular.net>
Fri, 7 Jul 2006 09:09:10 +0000 (09:09 +0000)
committerTim-Philipp Müller <tim@centricular.net>
Fri, 7 Jul 2006 09:09:10 +0000 (09:09 +0000)
Original commit message from CVS:
* Makefile.am:
* configure.ac:
* gst-element-check.m4:
* gst-element-check.m4.in:
Make gst-element-check-$VERSION.m4 call gst-inspect-$VERSION
instead of the unversioned gst-inspect (#324176, #168659).

ChangeLog
Makefile.am
configure.ac
gst-element-check.m4 [deleted file]
gst-element-check.m4.in

index a19158934bb60d539471e2152374db85b94af0df..a815a8a03ef5a1d095d2777e86ed537da48eaf2d 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,12 @@
+2006-07-07  Tim-Philipp Müller  <tim at centricular dot net>
+
+       * Makefile.am:
+       * configure.ac:
+       * gst-element-check.m4:
+       * gst-element-check.m4.in:
+         Make gst-element-check-$VERSION.m4 call gst-inspect-$VERSION
+         instead of the unversioned gst-inspect (#324176, #168659).
+
 2006-07-06  Wim Taymans  <wim@fluendo.com>
 
        * gst/gstmessage.h:
index bef54e07929ab366d4b7c6b13171c84f8ff344cc..3d0ae1a311f62918a6f4b79be0e5b85156c3283a 100644 (file)
@@ -29,7 +29,8 @@ debug:
        echo $(win32)
 
 EXTRA_DIST = \
-       gstreamer.spec gstreamer.spec.in gst-element-check.m4 \
+       gstreamer.spec gstreamer.spec.in \
+       gst-element-check.m4 gst-element-check.m4.in \
        configure.ac autogen.sh depcomp \
        ABOUT-NLS RELEASE \
        $(win32)
index b3e61537e4af1925a5342cd018c0133d21cf7dab..d0a8c1b7f82bb136a09cad1b861ee05352f25865 100644 (file)
@@ -541,6 +541,7 @@ pkgconfig/gstreamer-dataprotocol.pc
 pkgconfig/gstreamer-dataprotocol-uninstalled.pc
 pkgconfig/gstreamer-net.pc
 pkgconfig/gstreamer-net-uninstalled.pc
+gst-element-check.m4
 gstreamer.spec
 )
 
diff --git a/gst-element-check.m4 b/gst-element-check.m4
deleted file mode 100644 (file)
index e608f19..0000000
+++ /dev/null
@@ -1,23 +0,0 @@
-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
-])
index e608f195d09dd5c6f5920834f856d7bdfe2240c9..e535687a36909b0b5fcbcdb4528d5d1b30f0c545 100644 (file)
@@ -7,11 +7,11 @@ 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, [])
+    AC_CHECK_PROG(GST_INSPECT, gst-inspect-@GST_MAJORMINOR@, gst-inspect-@GST_MAJORMINOR@, [])
   fi
 
   if test "x$GST_INSPECT" != "x"; then
-    AC_MSG_CHECKING(GStreamer element $1)
+    AC_MSG_CHECKING(GStreamer @GST_MAJORMINOR@ element $1)
     if [ $GST_INSPECT $1 > /dev/null 2> /dev/null ]; then
       AC_MSG_RESULT(found.)
       $2