From 77e885a175cbf7323d6f4294adfe7a7b5efb4f0c Mon Sep 17 00:00:00 2001 From: midipix Date: Mon, 16 Jun 2025 19:58:00 +0000 Subject: m4/slibtool.m4: AR, NM, RANLIB: special-case identical ${build} and ${host}. --- m4/slibtool.m4 | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/m4/slibtool.m4 b/m4/slibtool.m4 index 0d7c458..2077f57 100644 --- a/m4/slibtool.m4 +++ b/m4/slibtool.m4 @@ -347,7 +347,7 @@ if [[ -n "${host}" ]] && [[ -z "${AR}" ]]; then AC_CHECK_PROG([AR],[llvm-ar],[llvm-ar]) fi -if [[ -z "${host}" ]]; then +if [[ "${host:-x}" = "${build:-x}" ]]; then AC_CHECK_PROG([AR],[ar],[ar]) fi ]) @@ -371,7 +371,7 @@ if [[ -n "${host}" ]] && [[ -z "${RANLIB}" ]]; then AC_CHECK_PROG([RANLIB],[llvm-ranlib],[llvm-ranlib]) fi -if [[ -z "${host}" ]]; then +if [[ "${host:-x}" = "${build:-x}" ]]; then AC_CHECK_PROG([RANLIB],[ranlib],[ranlib]) fi ]) @@ -395,7 +395,7 @@ if [[ -n "${host}" ]] && [[ -z "${NM}" ]]; then AC_CHECK_PROG([NM],[llvm-nm],[llvm-nm]) fi -if [[ -z "${host}" ]]; then +if [[ "${host:-x}" = "${build:-x}" ]]; then AC_CHECK_PROG([NM],[nm],[nm]) fi ]) -- cgit v1.2.3