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.
3 canonicalizedname=$(readlink -nm "${0}")
4 dirname="$(dirname "${canonicalizedname}")"
5 basename="$(basename "${canonicalizedname}")"
7 ld_lib_path="$(dirname "${dirname}")/lib"
9 case ":${LD_LIBRARY_PATH}:" in
10 *":${ld_lib_path}:"*) ;;
11 *) LD_LIBRARY_PATH="${ld_lib_path}${LD_LIBRARY_PATH:+:${LD_LIBRARY_PATH}}";;
14 export LD_LIBRARY_PATH
15 exec "${dirname}/.${basename}" "$@"