From b5c2a72a4aefef6f27f91caf1fef5d1ab5350c64 Mon Sep 17 00:00:00 2001 From: Stefan Kost Date: Thu, 12 Jul 2007 11:13:32 +0000 Subject: [PATCH] configure.ac: Use pkg-config to locate check. Original commit message from CVS: * configure.ac: Use pkg-config to locate check. --- ChangeLog | 5 +++++ configure.ac | 6 ++++-- 2 files changed, 9 insertions(+), 2 deletions(-) diff --git a/ChangeLog b/ChangeLog index 4c1881d0a5..097b0d668a 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,8 @@ +2007-07-12 Stefan Kost + + * configure.ac: + Use pkg-config to locate check. + 2007-07-12 Tim-Philipp Müller * configure.ac: diff --git a/configure.ac b/configure.ac index 338e2b3242..1546302d2e 100644 --- a/configure.ac +++ b/configure.ac @@ -263,8 +263,10 @@ AG_GST_CHECK_GST_CHECK($GST_MAJORMINOR, [$GST_REQ], no) 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`"