configure.ac: Do not probe availability of check unit test library when cross compiling, as test would not work anywa...

Original commit message from CVS:
* configure.ac:
Do not probe availability of check unit test library when cross
compiling, as test would not work anyway. Also cleanup verbose output
of the check test. Fixes #551952.
This commit is contained in:
Stefan Kost 2008-09-15 15:18:07 +00:00
parent 607fd58a5e
commit 40d2055451
2 changed files with 14 additions and 7 deletions

View file

@ -1,3 +1,10 @@
2008-09-15 Stefan Kost <ensonic@users.sf.net>
* configure.ac:
Do not probe availability of check unit test library when cross
compiling, as test would not work anyway. Also cleanup verbose output
of the check test. Fixes #551952.
2008-09-14 Wim Taymans <wim.taymans@collabora.co.uk>
Based on patch by: Antoine Tremblay <hexa00 at gmail dot com>

View file

@ -498,13 +498,13 @@ fi
AC_SUBST(GST_DISABLE_XML_DEFINE)
dnl check for "check", unit testing library/header
AM_PATH_CHECK(0.9.2,
[
HAVE_CHECK=yes
AC_MSG_NOTICE(CHECK_CFLAGS: $CHECK_CFLAGS)
AC_MSG_NOTICE(CHECK_LIBS: $CHECK_LIBS)
],
HAVE_CHECK=no)
if test "$cross_compiling" != yes; then
AM_PATH_CHECK(0.9.2,
HAVE_CHECK=yes,
HAVE_CHECK=no)
else
HAVE_CHECK=no
fi
AM_CONDITIONAL(HAVE_CHECK, test "x$HAVE_CHECK" = "xyes")
dnl pkg-config check that for libcheck that works for cross-compiling