---
name: "mkc_check_compiler"
section: "1"
platform: "linux"
package: "mk-configure"
version: "0.40.3-1"
release: "Arch Linux 2026-11-01"
platforms: ["linux"]
url: "https://new.carta.tech/mkc_check_compiler"
---

# mkc\_check\_compiler(1)

checks for C and C++ compiler type.

## NAME

mkc\_check\_compiler - checks for C and C++ compiler type.

## SYNOPSIS

**mkc\_check\_compiler** *\[OPTIONS\]*

## DESCRIPTION

**mkc\_check\_compiler** recognizes the compiler type and version, and prints them to stdout. By default, temporary and cache files *\_mkc\_compiler\_type.{err,res}* (for C compiler) and *\_mkc\_cxx\_type.{err,res}* (for C++ compiler) are created under **MKC\_CACHEDIR** directory.

## OPTIONS

- **-x**

  Check C++ compiler type. By default C compiler type and version are checked.

- **-D**

  Delete cache files.

## ENVIRONMENT

- **CC**

  C compiler. The default is *cc*.

- **CXX**

  C++ compiler. The default is *c++*.

- **MKC\_VERBOSE**

  If set to 1, verbose messages are output to stderr.

- **MKC\_SHOW\_CACHED**

  If set to 1 and **MKC\_VERBOSE** is set to 1, cached results are output to stderr.

- **MKC\_CACHEDIR**

  Directory where temporary and cache files are created. If unset they are created in a current directory.

- **MKC\_NOCACHE**

  All results are cached unless **MKC\_NOCACHE** variable is set to 1.

- **MKC\_DELETE\_TMPFILES**

  If set to 1, temporary files are removed.

## EXAMPLES

```
   export CC=icc; mkc_check_compiler
   export CXX=clang++; mkc_check_compiler -x
```

## AUTHOR

Aleksey Cheusov \<vle@gmx.net\>
