configure.ac: Use pkg-config to locate check.

Original commit message from CVS:
* configure.ac:
Use pkg-config to locate check.
This commit is contained in:
Stefan Kost 2007-07-12 11:21:23 +00:00
parent 0e2c8a042f
commit c8f8ef9390
2 changed files with 9 additions and 3 deletions

View file

@ -1,3 +1,8 @@
2007-07-12 Stefan Kost <ensonic@users.sf.net>
* configure.ac:
Use pkg-config to locate check.
2007-07-12 Tim-Philipp Müller <tim at centricular dot net>
* configure.ac:

View file

@ -199,9 +199,10 @@ AG_GST_CHECK_GST_PLUGINS_BASE($GST_MAJORMINOR, [$GSTPB_REQ])
dnl FIXME: get rid of this by making sure gstreamer-check brings it in
dnl check for "check", unit testing library/header
AM_PATH_CHECK(0.9.2, HAVE_CHECK=yes, HAVE_CHECK=no)
AM_CONDITIONAL(HAVE_CHECK, test "x$HAVE_CHECK" = "xyes")
PKG_CHECK_MODULES(CHECK, check >= 0.9.2,
AM_CONDITIONAL(HAVE_CHECK, true),
AM_CONDITIONAL(HAVE_CHECK, false)
)
dnl Check for documentation xrefs
GLIB_PREFIX="`$PKG_CONFIG --variable=prefix glib-2.0`"
GST_PREFIX="`$PKG_CONFIG --variable=prefix gstreamer-$GST_MAJORMINOR`"