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.

33 lines
1.1 KiB

  1. diff --git a/configure.ac b/configure.ac
  2. index d14e193..645b341 100644
  3. --- a/configure.ac
  4. +++ b/configure.ac
  5. @@ -192,18 +192,18 @@ AM_CONDITIONAL(USE_GSTREAMER, test x"$HAVE_GSTREAMER" = "xyes")
  6. AC_SUBST(GSTREAMER_CFLAGS)
  7. AC_SUBST(GSTREAMER_LIBS)
  8. -dnl Check for check
  9. -PKG_CHECK_MODULES(CHECK, check >= 0.9.4, HAVE_CHECK=yes, HAVE_CHECK=no)
  10. -
  11. -if test x"$HAVE_CHECK" = "xyes"; then
  12. - AC_DEFINE(HAVE_CHECK, 1, [Define if check support is enabled])
  13. +dnl Check for check, which dmapd uses for its unit tests
  14. +AC_ARG_ENABLE(check, [ --disable-check do not build check support], enable_check=$enableval, enable_check=yes)
  15. +if test x$enable_check = xyes; then
  16. + PKG_CHECK_MODULES([CHECK], [check >= 0.9.4],have_check=yes,have_check=no)
  17. + AM_CONDITIONAL(USE_CHECK, test x"$have_check" = "xyes")
  18. + if test "x$have_check" = "xyes"; then
  19. + AC_DEFINE(HAVE_CHECK, 1, [Define if check support is enabled])
  20. + fi
  21. +else
  22. + AM_CONDITIONAL(USE_CHECK, false)
  23. fi
  24. -AM_CONDITIONAL(USE_CHECK, test x"$HAVE_CHECK" = "xyes")
  25. -
  26. -AC_SUBST(CHECK_CFLAGS)
  27. -AC_SUBST(CHECK_LIBS)
  28. -
  29. AM_CONDITIONAL(FLYN, test "$FLYN")
  30. AC_OUTPUT([