upc.m4 836 B

1234567891011121314151617181920
  1. # Find a compiler for Unified Parallel C. -*- Autoconf -*-
  2. # Copyright (C) 2006-2017 Free Software Foundation, Inc.
  3. #
  4. # This file is free software; the Free Software Foundation
  5. # gives unlimited permission to copy and/or distribute it,
  6. # with or without modifications, as long as this notice is preserved.
  7. AC_DEFUN([AM_PROG_UPC],
  8. [dnl We need OBJEXT and EXEEXT, but Autoconf doesn't offer any public
  9. dnl macro to compute them. Use AC_PROG_CC instead.
  10. AC_REQUIRE([AC_PROG_CC])dnl
  11. AC_ARG_VAR([UPC], [Unified Parallel C compiler command])dnl
  12. AC_ARG_VAR([UPCFLAGS], [Unified Parallel C compiler flags])dnl
  13. AC_CHECK_TOOLS([UPC], [m4_default([$1], [upcc upc])], [:])
  14. if test "$UPC" = :; then
  15. AC_MSG_ERROR([no Unified Parallel C compiler was found], [77])
  16. fi
  17. _AM_IF_OPTION([no-dependencies],, [_AM_DEPENDENCIES([UPC])])dnl
  18. ])