You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

17 lines
648 B

  1. --- a/configure.ac
  2. +++ b/configure.ac
  3. @@ -357,7 +357,13 @@ if test -n "$BUILD_DPAPVIEW" ; then
  4. AC_WARN([will not build dpapview])
  5. fi
  6. -PKG_CHECK_MODULES([CHECK], [check >= 0.9.4],have_check=yes,have_check=no)
  7. +dnl Test if --enable-unit-test given
  8. +AC_ARG_ENABLE(unit-test, [AC_HELP_STRING([--enable-unit-test],[enable unit test])])
  9. +if test "x$enable_unit_test" = "xyes" ; then
  10. + PKG_CHECK_MODULES([CHECK], [check >= 0.9.4],have_check=yes,have_check=no)
  11. +else
  12. + have_check=no
  13. +fi
  14. AM_CONDITIONAL(HAVE_CHECK, test x"$have_check" = "xyes")
  15. if test "x$have_check" = "xyes"; then
  16. AC_DEFINE(HAVE_CHECK, 1, [Define if check support is enabled])