From: Mike Frysinger Date: Sun, 19 Dec 2004 15:43:03 +0000 (-0000) Subject: use which to locate apps (useful for non-Linux systems like OS X) X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=f336cfc9dba41ab854183680d6ccd30e0cb77157;p=buildroot.git use which to locate apps (useful for non-Linux systems like OS X) --- diff --git a/toolchain/binutils/binutils.mk b/toolchain/binutils/binutils.mk index cdb5f823dc..9841278cfc 100644 --- a/toolchain/binutils/binutils.mk +++ b/toolchain/binutils/binutils.mk @@ -58,15 +58,15 @@ $(STAGING_DIR)/$(REAL_GNU_TARGET_NAME)/bin/ld: $(BINUTILS_DIR1)/binutils/objdump $(MAKE) -C $(BINUTILS_DIR1) install binutils-dependancies: - @if [ ! -x /usr/bin/bison ] ; then \ + @if ! which bison ; then \ echo -e "\n\nYou must install 'bison' on your build machine\n"; \ exit 1; \ fi; - @if [ ! -x /usr/bin/flex ] ; then \ + @if ! which flex ; then \ echo -e "\n\nYou must install 'flex' on your build machine\n"; \ exit 1; \ fi; - @if [ ! -x /usr/bin/msgfmt ] ; then \ + @if ! which msgfmt ; then \ echo -e "\n\nYou must install 'gettext' on your build machine\n"; \ exit 1; \ fi;