#!/bin/bash # DQ (2/2/2016): This script currently takes the name of the backend # compiler, but what we want to do instead is hand it the vendor name. if test $# -ne 3; then echo "usage: $0 " >&2 exit 1 fi compilerName="`basename $1`" language=$2 compilerVendorName=$3 if [ -n "$VERBOSE" ]; then echo "In get_compiler_header_dirs: compiler name with path = $1" >&2 echo "In get_compiler_header_dirs: compilerName = $compilerName" >&2 echo "In get_compiler_header_dirs: compilerVendorName = $compilerVendorName" >&2 echo "In get_compiler_header_dirs: language = $language" >&2 fi # case "$compilerName" in case "$compilerVendorName" in # DQ (3/21/2014): Added support for the MPI versions of the Intel compiler (as named on LC machines). # Support for compiling ROSE with GNU g++ compiler # g++*|gcc*|icpc|icc|mpiicpc|mpiicc|mpicc|mpic++|mpiCC|mpicxx|cc|c++|xt-xcc|xt-xc++|clang|clang++) gnu|intel|clang) $1 -v -E -x $language /dev/null 2>&1 | sed -n '/^#include "$tmpFile" #$1 -v -E $tmpFile 2>&1 # | sed -n '/^#include &1 | sed -n '/^#include &2 exit 1 ;; *) echo "$0: error: not able to recognize compiler (error) $1" >&2 exit 1 ;; esac