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.

42 lines
1.3KB

  1. # =============================================================================
  2. # https://www.gnu.org/software/autoconf-archive/ax_trilinos_thyra_epetra.html
  3. # =============================================================================
  4. #
  5. # SYNOPSIS
  6. #
  7. # AX_TRILINOS_THYRA_EPETRA([, ACTION-IF-FOUND [, ACTION-IF-NOT-FOUND]])
  8. #
  9. # DESCRIPTION
  10. #
  11. # Checks if the Thyra/Epetra adapters were compiled with Trilinos. When
  12. # ACTION-IF-NOT-FOUND is not specified, the default behavior is for
  13. # configure to fail.
  14. #
  15. # LICENSE
  16. #
  17. # Copyright (c) 2009 Rhys Ulerich <rhys.ulerich@gmail.com>
  18. #
  19. # Copying and distribution of this file, with or without modification, are
  20. # permitted in any medium without royalty provided the copyright notice
  21. # and this notice are preserved. This file is offered as-is, without any
  22. # warranty.
  23. #serial 8
  24. AC_DEFUN([AX_TRILINOS_THYRA_EPETRA],[
  25. AC_REQUIRE([AX_TRILINOS_BASE])
  26. AC_REQUIRE([AX_TRILINOS_EPETRA])
  27. AC_REQUIRE([AX_TRILINOS_THYRA])
  28. ax_trilinos_thyra_epetra=yes
  29. AC_HAVE_LIBRARY([thyraepetra],[:],[ax_trilinos_thyra_epetra=no])
  30. if test "$ax_trilinos_thyra_epetra" = yes; then
  31. : # NOP
  32. ifelse([$1],,,
  33. [$1])
  34. else
  35. : # NOP
  36. ifelse([$2],,AC_MSG_ERROR([Trilinos Thyra/Epetra support not usable.]),
  37. [$2])
  38. fi
  39. ])