Collection of DPF-based plugins for packaging
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.

40 lines
1.3KB

  1. # ===========================================================================
  2. # https://www.gnu.org/software/autoconf-archive/ax_find_hamcrest.html
  3. # ===========================================================================
  4. #
  5. # SYNOPSIS
  6. #
  7. # AX_FIND_HAMCREST
  8. #
  9. # DESCRIPTION
  10. #
  11. # AX_FIND_HAMCREST will look for the Hamcrest java library. When found its
  12. # path will be put in HAMCREST_CPF as a classpath fragment.
  13. #
  14. # To override the location define HAMCREST_JAR to the wanted path.
  15. #
  16. # LICENSE
  17. #
  18. # Copyright (c) 2013 Sveinung Kvilhaugsvik <sveinung84@users.sourceforge.net>
  19. #
  20. # Copying and distribution of this file, with or without modification, are
  21. # permitted in any medium without royalty provided the copyright notice
  22. # and this notice are preserved. This file is offered as-is, without any
  23. # warranty.
  24. #serial 3
  25. AC_ARG_VAR(HAMCREST_JAR,
  26. [the location of the Hamcrest Matcher java library])
  27. AC_DEFUN([AX_FIND_HAMCREST], [
  28. AC_CACHE_VAL(ax_cv_hamcrest_cpf, [
  29. AS_IF([test x"$HAMCREST_JAR" != x],
  30. [ax_cv_hamcrest_cpf="$HAMCREST_JAR$PATH_SEPARATOR"], [
  31. AX_XTRA_CLASSPATH(ax_cv_hamcrest_cpf, org.hamcrest.Matcher,
  32. [hamcrest-core-1.3.jar hamcrest-core.jar])])])
  33. AS_IF([test x"$ax_cv_hamcrest_cpf" != x],
  34. [AC_SUBST(HAMCREST_CPF, $ax_cv_hamcrest_cpf)],
  35. AC_MSG_WARN([Hamcrest Matcher not found]))])