Skip to content

Commit

Permalink
Autoconf: allow for versioned GCC compilers (necessary for MacPorts).
Browse files Browse the repository at this point in the history
  • Loading branch information
Justin Too committed Oct 24, 2011
1 parent 751018c commit 7fe1756
Show file tree
Hide file tree
Showing 4 changed files with 5 additions and 5 deletions.
2 changes: 1 addition & 1 deletion config/choose-backend-compiler.m4
Original file line number Diff line number Diff line change
Expand Up @@ -196,7 +196,7 @@ dnl build using ROSE)
# DQ (1/15/2007): This does not work, it seems that BACKEND_C_COMPILER must be a simple name not a compound name using an option!
# Specify any option that specific backend compiler require (e.g. -restrict)
case $COMPILER_NAME in
gcc|g++)
gcc*|g++*)
;;
icc|icpc)
# BACKEND_C_COMPILER="$BACKEND_C_COMPILER -restrict"
Expand Down
2 changes: 1 addition & 1 deletion config/compiler-defs.m4
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ dnl predefined by a specific compiler
# g++|gcc|mpicc|mpic++|mpicxx|mpiCC)
# TOO (2/16/2011): added support for tensilica compilers, assuming they are
# like GCC (they use a GCC front-end)
g++|gcc|mpicc|mpic++|mpicxx|mpiCC|xt-xc++|xt-xcc)
g++*|gcc*|mpicc|mpic++|mpicxx|mpiCC|xt-xc++|xt-xcc)
BACKEND_GCC_MAJOR=`echo|$BACKEND_CXX_COMPILER -dumpversion | cut -d\. -f1`
BACKEND_GCC_MINOR=`echo|$BACKEND_CXX_COMPILER -dumpversion | cut -d\. -f2`
BACKEND_GCC_PATCHLEVEL=`echo|$BACKEND_CXX_COMPILER -dumpversion | cut -d\. -f3`
Expand Down
4 changes: 2 additions & 2 deletions config/create_system_headers
Original file line number Diff line number Diff line change
Expand Up @@ -198,8 +198,8 @@ fi
# Support for compiling ROSE with GNU g++ compiler
# g++|gcc|icpc|icc|mpicc|mpic++|mpiCC|mpicxx|roseTranslator)
# g++|gcc|icpc|icc|mpicc|mpic++|mpiCC|mpicxx|c++)
g++|gcc|icpc|icc|mpicc|mpic++|mpiCC|mpicxx|c++|xt-xcc|xt-xc++)
if [ "$compilerName" = "gcc" -o "$compilerName" = "icc" -o "$compilerName" = "mpicc" -o "$compilerName" = "xt-xcc" ]
g++*|gcc*|icpc|icc|mpicc|mpic++|mpiCC|mpicxx|c++|xt-xcc|xt-xc++)
if [[ "$compilerName" = gcc* || "$compilerName" = "icc" || "$compilerName" = "mpicc" || "$compilerName" = "xt-xcc" ]]
then
is_C_compiler="yes"
language="c"
Expand Down
2 changes: 1 addition & 1 deletion config/get_compiler_header_dirs
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ compilerName="`basename $1`"

case "$compilerName" in
# Support for compiling ROSE with GNU g++ compiler
g++|gcc|icpc|icc|mpicc|mpic++|mpiCC|mpicxx|c++|xt-xcc|xt-xc++)
g++*|gcc*|icpc|icc|mpicc|mpic++|mpiCC|mpicxx|c++|xt-xcc|xt-xc++)
if [ "$compilerName" = "gcc" -o "$compilerName" = "icc" -o "$compilerName" = "mpicc" -o "$compilerName" = "xt-xcc" ]
then
language="c"
Expand Down

0 comments on commit 7fe1756

Please sign in to comment.