scripts/crosstool-NG.sh.in: On MacOS/BSD use the output of CT_DoConfigGuess for CT_BUILD.
On 64bit MacOS `gcc -dumpmachine` gives i686 for the host machine.
This conflicts with the expectations of some following configure scripts
that a 64bit x86 is given as x86_64; i686 is understood as a 32 bit machine.
config.guess sets the host machine in CT_BUILD correctly.
yann.morin.1998@anciens.enib.fr:
As suggested by Khem RAJ on the ML, always use config.guess.
5 do_companion_tools_m4_get() {
6 CT_GetFile "m4-${CT_M4_VERSION}" \
7 {ftp,http}://ftp.gnu.org/gnu/m4
10 do_companion_tools_m4_extract() {
11 CT_Extract "m4-${CT_M4_VERSION}"
12 CT_Patch "m4" "${CT_M4_VERSION}"
15 do_companion_tools_m4_build() {
16 CT_DoStep EXTRA "Installing m4"
17 mkdir -p "${CT_BUILD_DIR}/build-m4"
18 CT_Pushd "${CT_BUILD_DIR}/build-m4"
21 "${CT_SRC_DIR}/m4-${CT_M4_VERSION}/configure" \
22 --prefix="${CT_TOOLS_OVERIDE_DIR}"
24 CT_DoExecLog ALL make install