forked from rose-compiler/rose
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Added ROSE configuration support for UPC code.
- Loading branch information
Justin Too
committed
May 2, 2011
1 parent
39eb5cf
commit 0afdfdd
Showing
4 changed files
with
44 additions
and
4 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,20 @@ | ||
# Find a compiler for Unified Parallel C. -*- Autoconf -*- | ||
|
||
# Copyright (C) 2006 Free Software Foundation, Inc. | ||
# | ||
# This file is free software; the Free Software Foundation | ||
# gives unlimited permission to copy and/or distribute it, | ||
# with or without modifications, as long as this notice is preserved. | ||
|
||
AC_DEFUN([AM_PROG_UPC], | ||
[dnl We need OBJEXT and EXEEXT, but Autoconf doesn't offer any public | ||
dnl macro to compute them. Use AC_PROG_CC instead. | ||
AC_REQUIRE([AC_PROG_CC])dnl | ||
AC_ARG_VAR([UPC], [Unified Parallel C compiler command])dnl | ||
AC_ARG_VAR([UPCFLAGS], [Unified Parallel C compiler flags])dnl | ||
AC_CHECK_TOOLS([UPC], [m4_default([$1], [upcc upc])], [:]) | ||
if test "$UPC" = :; then | ||
AC_MSG_ERROR([no Unified Parallel C compiler was found], [77]) | ||
fi | ||
_AM_IF_OPTION([no-dependencies],, [_AM_DEPENDENCIES([UPC])])dnl | ||
]) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,14 @@ | ||
AC_DEFUN([ROSE_SUPPORT_UPC], | ||
[ | ||
# Begin macro ROSE_SUPPORT_UPC. | ||
# Automake-UPC Support http:https://www.gnu.org/software/hello/manual/automake/Unified-Parallel-C-Support.html | ||
# Handling new file extensions: https://idlebox.net/2009/apidocs/automake-1.11.zip/automake_18.html#SEC148 | ||
AC_MSG_CHECKING([for UPC]) | ||
AC_ARG_ENABLE([upc],AS_HELP_STRING([--enable-upc],[Enable UPC support in ROSE (default=no)]),,[enableval=no]) | ||
AM_CONDITIONAL(ROSE_WITH_UPC, [test "x$enableval" = "xyes"]) | ||
#if test "x$enableval" = "xyes" ; then | ||
AM_PROG_UPC | ||
#fi | ||
AC_MSG_RESULT([$enableval]) | ||
]) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters