diff options
Diffstat (limited to 'gcc/fixinc')
-rwxr-xr-x | gcc/fixinc/fixincl.sh | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/gcc/fixinc/fixincl.sh b/gcc/fixinc/fixincl.sh index fa2982f9d63..b84d7014d97 100755 --- a/gcc/fixinc/fixincl.sh +++ b/gcc/fixinc/fixincl.sh @@ -97,6 +97,13 @@ esac ORIGDIR=`${PWDCMD}` export ORIGDIR FIXINCL=${ORIGDIR}/fixinc/fixincl +if [ ! -x $FIXINCL ] ; then + FIXINCL=${ORIGDIR}/fixincl + if [ ! -x $FIXINCL ] ; then + echo "Cannot find working fixincl" >&2 + exit 1 + fi +fi export FIXINCL # Make LIB absolute only if needed to avoid problems with the amd. |