configure.ac: use pkg-config for libcheck
This commit is contained in:
parent
3946807122
commit
67d0a0349d
|
@ -605,9 +605,7 @@ dnl Check if user disabled the tests.
|
|||
AC_ARG_ENABLE(tests, [ --disable-tests disable the test suite],,
|
||||
enable_tests="yes")
|
||||
if test "x$enable_tests" = xyes ; then
|
||||
AC_CHECK_LIB(check, srunner_set_log, enable_tests="yes", enable_tests="no")
|
||||
CHECK_CFLAGS=""
|
||||
CHECK_LIBS="-lcheck"
|
||||
PKG_CHECK_MODULES(CHECK, check)
|
||||
AC_SUBST(CHECK_CFLAGS)
|
||||
AC_SUBST(CHECK_LIBS)
|
||||
AC_CHECK_LIB(check, srunner_set_xml, [AC_DEFINE(CHECK_IS_XML, [], [Define if check available with XML support])])
|
||||
|
|
Loading…
Reference in New Issue