Commit d5ece0a1 by Rainer Orth Committed by Rainer Orth

run_acats (which): New function.

	* ada/acats/run_acats (which): New function.
	(host_gnatchop, host_gnatmake): Use it.

From-SVN: r158994
parent e6693cfa
2010-05-03 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
* ada/acats/run_acats (which): New function.
(host_gnatchop, host_gnatmake): Use it.
2010-05-03 Richard Guenther <rguenther@suse.de> 2010-05-03 Richard Guenther <rguenther@suse.de>
PR tree-optimization/43971 PR tree-optimization/43971
......
...@@ -5,10 +5,25 @@ if [ "$testdir" = "" ]; then ...@@ -5,10 +5,25 @@ if [ "$testdir" = "" ]; then
exit 1 exit 1
fi fi
# Provide which replacement.
#
# type -p is missing from Solaris 2 /bin/sh and /bin/ksh (ksh88), but both
# ksh93 and bash have it.
# type output format differs between ksh88 and ksh93, so avoid it if
# type -p is present.
# Fall back to whence which ksh88 and ksh93 provide, but bash does not.
which () {
type -p $* 2>/dev/null && return 0
type $* 2>/dev/null | awk '{print $3}' && return 0
whence $* 2>/dev/null && return 0
return 1
}
# Set up environment to use the Ada compiler from the object tree # Set up environment to use the Ada compiler from the object tree
host_gnatchop=`type gnatchop | awk '{print $3}'` host_gnatchop=`which gnatchop`
host_gnatmake=`type gnatmake | awk '{print $3}'` host_gnatmake=`which gnatmake`
ROOT=`${PWDCMD-pwd}` ROOT=`${PWDCMD-pwd}`
BASE=`cd $ROOT/../../..; ${PWDCMD-pwd}` BASE=`cd $ROOT/../../..; ${PWDCMD-pwd}`
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment