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.

44 lines
1.4KB

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