From 5077d4c915145e1805d2092236fdb75dec510212 Mon Sep 17 00:00:00 2001 From: OldWorldOrdr Date: Mon, 12 Jun 2023 03:53:05 -0400 Subject: [PATCH] change which to command -v --- Makefile | 4 ++-- configure | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/Makefile b/Makefile index 4f1eac8c..b52194ae 100644 --- a/Makefile +++ b/Makefile @@ -331,7 +331,7 @@ libtcc1.a : tcc$(EXESUF) FORCE .PRECIOUS: %-libtcc1.a FORCE: -run-if = $(if $(shell which $1),$S $1 $2) +run-if = $(if $(shell command -v $1),$S $1 $2) S = $(if $(findstring yes,$(SILENT)),@$(info * $@)) # -------------------------------------------------------------------------- @@ -412,7 +412,7 @@ ifneq "$(wildcard $(LIBTCC1_U))" "" endif # the msys-git shell works to configure && make except it does not have install -ifeq ($(CONFIG_WIN32)-$(shell which install || echo no),yes-no) +ifeq ($(CONFIG_WIN32)-$(shell command -v install || echo no),yes-no) install-win : INSTALL = cp install-win : INSTALLBIN = cp endif diff --git a/configure b/configure index 4d3e5fc9..6ec98f38 100755 --- a/configure +++ b/configure @@ -67,7 +67,7 @@ case $targetos in darwin=yes dwarf=4 confvars="$confvars OSX" - cc=`which cc` + cc=`command -v cc` cc=`readlink $cc || echo clang` tcc_usrinclude="`xcrun --show-sdk-path`/usr/include" DLLSUF=".dylib"