From daf27aed082a505e787236c308f3c7fff9926592 Mon Sep 17 00:00:00 2001 From: OldWorldOrdr Date: Sun, 5 Mar 2023 17:46:04 -0500 Subject: Look for a cross-compile libtool first in configure. Permit cross-compilation for Darwin. --- configure | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/configure b/configure index 2b6993c..5a48bde 100755 --- a/configure +++ b/configure @@ -266,7 +266,9 @@ if test "$gcc" -eq 1 && ($cc -c $test.c) >> configure.log 2>&1; then SHAREDLIBV=libz.$VER$shared_ext SHAREDLIBM=libz.$VER1$shared_ext LDSHARED=${LDSHARED-"$cc -dynamiclib -install_name $libdir/$SHAREDLIBM -compatibility_version $VER1 -current_version $VER3"} - if libtool -V 2>&1 | grep Apple > /dev/null; then + if "${CROSS_PREFIX}libtool" -V 2>&1 | grep Apple > /dev/null; then + AR="${CROSS_PREFIX}libtool" + elif libtool -V 2>&1 | grep Apple > /dev/null; then AR="libtool" else AR="/usr/bin/libtool" -- cgit v1.2.3-55-g6feb