CONFIG.GUESS(1)

๐Ÿ’– CONFIG.GUESS โ€” the config.guess manual page, bestie edition ๐Ÿ’–

okay so you opened the manual for config.guess and honestly? iconic choice. it's a User Commands situation, so let's get into it โœจ


โœจ NAME โœจ

config.guess โ€” guess the build system triplet ๐Ÿฆ‹


๐ŸŽ€ SYNOPSIS ๐ŸŽ€

config.guess [OPTION]

๐Ÿ‘‘ DESCRIPTION ๐Ÿ‘‘

ok so the GNU build system is lowkey obsessed with the idea that there are three types of machines and you need to keep them straight, no cap:

  • the build machine โ€” the one where the compilers actually get run ๐Ÿ’…
  • the host machine โ€” the one where the package you're building will actually run ๐ŸŒธ
  • the target machine โ€” and this one only shows up when you're building a compiler, assembler, etc., and it's the machine that the compiler you're building will produce code for ๐Ÿงš

This script will guess the type of the build machine. that's literally its whole thing, and it ate.

It outputs the configuration name of the system config.guess is run on. fr fr, that's it. ๐Ÿซถ


โœจ OPTIONS โœจ

  • -h, --help โ€” print this help, then exit ๐Ÿ™ˆ
  • -t, --time-stamp โ€” print date of last modification, then exit โญ
  • -v, --version โ€” print version number, then exit ๐Ÿ’œ

๐ŸŒˆ ENVIRONMENT VARIABLES ๐ŸŒˆ

so here's the tea: config.guess might need to compile and run C code, which means it needs a compiler for the build machine. that's why we have the environment variable CC_FOR_BUILD โ€” use it to specify the compiler for the build machine ๐Ÿ’–

If CC_FOR_BUILD is not specified, CC will be used instead. But be sure to specify CC_FOR_BUILD if CC is a cross-compiler to the host machine. like, genuinely, do not skip that part, bestie ๐Ÿ˜ญ

  • CC_FOR_BUILD โ€” a native C compiler, defaults to cc ๐Ÿ’…
  • CC โ€” a native C compiler, CC_FOR_BUILD is preferred ๐Ÿ‘‘

๐Ÿ’€ REPORTING BUGS ๐Ÿ’€

Report bugs and patches to <config-patches@gnu.org>. they're waiting, they're ready, they're perched ๐ŸŒธ

Originally written by Per Bothner. ๐Ÿซถ Copyright 1992-2024 Free Software Foundation, Inc.

This is free software; see the source for copying conditions. There is NO warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. periodt. ๐Ÿ’…


ok that's the whole page, you're so welcome ๐ŸŽ€ this was GNU config.guess, version 2024-07-27, and this little manual page is dated February 2026. mwah, go guess some triplets ๐Ÿ’–โœจ๐Ÿฆ‹

๐Ÿ“ฆ where this page comes from