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.

45 lines
1.5KB

  1. # ===========================================================================
  2. # https://www.gnu.org/software/autoconf-archive/ax_trilinos_teuchos.html
  3. # ===========================================================================
  4. #
  5. # SYNOPSIS
  6. #
  7. # AX_TRILINOS_TEUCHOS([, ACTION-IF-FOUND [, ACTION-IF-NOT-FOUND]])
  8. #
  9. # DESCRIPTION
  10. #
  11. # On success, adds "include Makefile.export.teuchos" statements to every
  12. # Automake file containing @INC_AMINCLUDE@. Requires that Trilinos was
  13. # configured with the --enable-export-makefiles option.
  14. #
  15. # When ACTION-IF-NOT-FOUND is not specified, the default behavior is for
  16. # configure to fail.
  17. #
  18. # LICENSE
  19. #
  20. # Copyright (c) 2009 Rhys Ulerich <rhys.ulerich@gmail.com>
  21. #
  22. # Copying and distribution of this file, with or without modification, are
  23. # permitted in any medium without royalty provided the copyright notice
  24. # and this notice are preserved. This file is offered as-is, without any
  25. # warranty.
  26. #serial 9
  27. AC_DEFUN([AX_TRILINOS_TEUCHOS],[
  28. AC_REQUIRE([AX_TRILINOS_BASE])
  29. ax_trilinos_teuchos=yes
  30. AC_HAVE_LIBRARY([teuchos],[:],[ax_trilinos_teuchos=no])
  31. AX_ADD_AM_TRILINOS_MAKEFILE_EXPORT([teuchos.macros],[ax_trilinos_teuchos=no])
  32. AX_ADD_AM_TRILINOS_MAKEFILE_EXPORT([teuchos],[ax_trilinos_teuchos=no])
  33. if test "$ax_trilinos_teuchos" = yes; then
  34. : # NOP
  35. ifelse([$1],,,
  36. [$1])
  37. else
  38. : # NOP
  39. ifelse([$2],,AC_MSG_ERROR([Trilinos Teuchos not usable]),
  40. [$2])
  41. fi
  42. ])