summaryrefslogtreecommitdiff
path: root/lib
diff options
context:
space:
mode:
authoreschnett <eschnett@17b73243-c579-4c4c-a9d2-2d5706c11dac>2011-08-17 18:39:36 +0000
committereschnett <eschnett@17b73243-c579-4c4c-a9d2-2d5706c11dac>2011-08-17 18:39:36 +0000
commitd67edb78b98c3fb9911bcddafcb185083b959e4a (patch)
tree9d866baefab4063f015e9f6653650a07a24250df /lib
parent54ed9d2850d8e9935751cdb21ce08d32f0c15c2c (diff)
When checking for particular compiler names on AIX, remove the path,
and check only the file names themselves. git-svn-id: http://svn.cactuscode.org/flesh/trunk@4717 17b73243-c579-4c4c-a9d2-2d5706c11dac
Diffstat (limited to 'lib')
-rw-r--r--lib/make/known-architectures/aix8
1 files changed, 4 insertions, 4 deletions
diff --git a/lib/make/known-architectures/aix b/lib/make/known-architectures/aix
index ed4f7a09..0e058472 100644
--- a/lib/make/known-architectures/aix
+++ b/lib/make/known-architectures/aix
@@ -82,7 +82,7 @@ else
# work best if this option is also supplied at link time. --SW
# C/C++ compilers
- case "$CC" in
+ case $(basename "$CC") in
gcc)
: ${C_DEPEND_OUT=' > $@'}
CC_VERSION="`$CC -v 2>&1 | grep -i version | tail -n1`"
@@ -99,7 +99,7 @@ else
;;
esac
- case "$CXX" in
+ case $(basename "$CXX") in
'g++'|'c++')
: ${CXX_DEPEND_OUT=' > $@'}
CXX_VERSION="`$CXX -v 2>&1 | grep -i version | tail -n1`"
@@ -116,7 +116,7 @@ else
;;
esac
- case "$F90" in
+ case $(basename "$F90") in
xlf|xlf_r|xlf90|xlf90_r|xlf95|xlf95_r)
: ${F90FLAGS="-q$AIX_BITS"}
: ${F90_OPTIMISE_FLAGS="-O3 -qarch=auto -qtune=auto -qcache=auto -qhot"}
@@ -127,7 +127,7 @@ else
;;
esac
- case "$F77" in
+ case $(basename "$F77") in
xlf|xlf_r|xlf77|xlf77_r|xlf90|xlf90_r|xlf95|xlf95_r)
: ${FF77LAGS="-q$AIX_BITS"}
: ${F77_OPTIMISE_FLAGS="-O3 -qarch=auto -qtune=auto -qcache=auto -qhot"}