config.guess β guess the build system triplet
| Use Case | Command | Description |
|---|---|---|
| π Guess build system type | config.guess | Output the configuration name of the build machine |
| β Show help | config.guess -h | Print help and exit |
| π Show timestamp | config.guess -t | Print date of last modification and exit |
| π’ Show version | config.guess -v | Print version number and exit |
| βοΈ Specify build compiler | CC_FOR_BUILD=clang config.guess | Use a specific compiler for the build machine |
config.guess [OPTION]
The GNU build system distinguishes three types of machines, the build machine on which the compilers are run, the host machine on which the package being built will run, and, exclusively when you build a compiler, assembler etc., the target machine, for which the compiler being built will produce code.
This script will guess the type of the build machine.
Output the configuration name of the system config.guess is run on.
-h, --help β π¨οΈ print this help, then exit-t, --time-stamp β π
print date of last modification, then exit-v, --version β π’ print version number, then exitconfig.guess might need to compile and run C code, hence it needs a compiler for the build machine: use the environment variable CC_FOR_BUILD to specify the compiler for the build machine. If CC_FOR_BUILD is not specified, CC will be used. Be sure to specify CC_FOR_BUILD if CC is a crossβcompiler to the host machine.
CC_FOR_BUILD β π οΈ a native C compiler, defaults to ccCC β βοΈ a native C compiler, CC_FOR_BUILD is preferredReport bugs and patches to config-patches AT gnu.org.
Originally written by Per Bothner.
Copyright 1992β2022 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.
GNU config.guess (2022β01β09) January 2022
Generated by phpman v4.9.26-5-g7740029 Author: Che Dong Under GNU General Public License
2026-08-14 21:22 @2600:1f28:365:80b0:4d23:66fa:c2bb:7bae
CrawledBy CCBot/2.0 (https://commoncrawl.org/faq/)