[gst-cvs] gst-openmax: Make libcheck optional
Felipe Contreras
felipec at kemper.freedesktop.org
Wed Mar 11 14:36:32 PDT 2009
Module: gst-openmax
Branch: master
Commit: a1348bbb76455ed8232ed1ec7c7ad8cc02edbe68
URL: http://cgit.freedesktop.org/gstreamer/gst-openmax/commit/?id=a1348bbb76455ed8232ed1ec7c7ad8cc02edbe68
Author: Felipe Contreras <felipe.contreras at gmail.com>
Date: Wed Mar 11 23:10:25 2009 +0200
Make libcheck optional
Specially welcome while cross-compiling.
Signed-off-by: Felipe Contreras <felipe.contreras at gmail.com>
---
configure.ac | 7 +++++--
1 files changed, 5 insertions(+), 2 deletions(-)
diff --git a/configure.ac b/configure.ac
index 432eb5a..d52ea21 100644
--- a/configure.ac
+++ b/configure.ac
@@ -23,7 +23,8 @@ AC_PROG_CC
AM_PROG_CC_C_O
AC_PROG_INSTALL
AC_PROG_LIBTOOL
-AM_PATH_CHECK
+
+PKG_CHECK_MODULES([CHECK], [check], HAVE_CHECK=yes, HAVE_CHECK=no)
dnl Keep correct libtool macros in-tree.
dnl AC_CONFIG_MACRO_DIR([m4])
@@ -52,7 +53,9 @@ PKG_CHECK_MODULES([GTHREAD], [gthread-2.0])
dnl Check for GStreamer
AG_GST_CHECK_GST($GST_MAJORMINOR, [$GST_REQUIRED])
AG_GST_CHECK_GST_BASE($GST_MAJORMINOR, [$GST_REQUIRED])
-AG_GST_CHECK_GST_CHECK($GST_MAJORMINOR, [$GST_REQUIRED])
+if test "x$HAVE_CHECK=xyes" != yes; then
+ AG_GST_CHECK_GST_CHECK($GST_MAJORMINOR, [$GST_REQUIRED])
+fi
dnl ** finalize ***
More information about the Gstreamer-commits
mailing list