Problem building v4.4.0 on MacOS

I have the latest MacOS for ARM 26.5.2 and the latest version of Xcode. I have a spot of trouble building CMake from git tag v4.4.0. In the past, I have found Apple’s provided libiconv files to be inadequate, so I built libiconv 1.19 from a tarball and installed it into /usr/local.

In the ./bootstrap command, find_library(LIBICONV_PATH ...) resolves to …/MacOSX.sdk/usr/lib/libiconv.tbd instead of /usr/local/lib/libiconv.dylib . Subsequently, these tests fail:
AVE_ICONV_libiconv_const
HAVE_ICONV_libiconv_

This work-around is a success:
./bootstrap -- -DICONV_INCLUDE_DIR=/usr/local/include -DLIBICONV_PATH=/usr/local/lib/libiconv.dylib