be compatible with old 'which' supplied with OS X 10.4

This commit is contained in:
Thomas BERNARD 2018-04-06 20:13:36 +02:00
parent 72550efe66
commit 28c755a776

2
3rdparty/Makefile vendored
View File

@ -39,7 +39,7 @@ PREFIX = $(PWD)/usr
MKDIR = mkdir -p MKDIR = mkdir -p
CP = cp -v CP = cp -v
TAR = $(shell which tar) TAR = $(shell which tar)
GETURL = $(shell which wget || echo "curl -O -L") GETURL = $(shell WGET=`which wget` ; if [ "$?" = "0" ] && [ -x "$WGET" ] ; then echo "$WGET" ; else echo "curl -O -L" ; fi )
BUILD_CC := $(CC) BUILD_CC := $(CC)