diff options
author | Brian Fraser <fraserbn@gmail.com> | 2014-01-22 17:13:25 -0300 |
---|---|---|
committer | Brian Fraser <fraserbn@gmail.com> | 2014-01-26 14:44:18 -0300 |
commit | 400f22b8f621a369c7474a3923a4d4d965942537 (patch) | |
tree | 9bd3e81d4015422e0fe194356c02ec83a2f25a0e /hints/linux.sh | |
parent | c2d9228f2ebd4faf3f1605e7adb5d962d6366bbd (diff) | |
download | perl-400f22b8f621a369c7474a3923a4d4d965942537.tar.gz |
Linux hints: try using user-provided binaries before going for the defaults
This means that if the user called Configure with -Dnm=/foo/bar/nm, the
hints will try using that before going for plain 'nm'
Diffstat (limited to 'hints/linux.sh')
-rw-r--r-- | hints/linux.sh | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/hints/linux.sh b/hints/linux.sh index 83567ec9b9..6479b1da07 100644 --- a/hints/linux.sh +++ b/hints/linux.sh @@ -39,7 +39,7 @@ i_libutil='undef' # SuSE Linux can be used as cross-compilation host for Cray XT4 Catamount/Qk. if test -d /opt/xt-pe then - case "`cc -V 2>&1`" in + case "`${cc:-cc} -V 2>&1`" in *catamount*) . hints/catamount.sh; return ;; esac fi @@ -268,7 +268,7 @@ fi rm -f try.c a.out -if /bin/sh -c exit; then +if ${sh:-/bin/sh} -c exit; then echo '' echo 'You appear to have a working bash. Good.' else @@ -464,7 +464,7 @@ then DBLIB="$DBDIR/libdb.so" if [ -f $DBLIB ] then - if nm -u $DBLIB | grep pthread >/dev/null + if ${nm:-nm} -u $DBLIB | grep pthread >/dev/null then if ldd $DBLIB | grep pthread >/dev/null then |