diff options
author | Paolo Bonzini <pbonzini@redhat.com> | 2020-09-01 06:38:25 -0400 |
---|---|---|
committer | Paolo Bonzini <pbonzini@redhat.com> | 2020-09-08 11:43:16 +0200 |
commit | 738aa606248ba4c04ca666f42db234c750728050 (patch) | |
tree | cb049e4feecc349b3130197105023216bcd69035 /docs | |
parent | f2995ee4cb1cd866ce523a51cbee7f3359a4466b (diff) |
docs: suggest Meson replacements for various configure functions
Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
Diffstat (limited to 'docs')
-rw-r--r-- | docs/devel/build-system.rst | 10 |
1 files changed, 7 insertions, 3 deletions
diff --git a/docs/devel/build-system.rst b/docs/devel/build-system.rst index 28492cfcae..591e93f4b4 100644 --- a/docs/devel/build-system.rst +++ b/docs/devel/build-system.rst @@ -125,23 +125,27 @@ developers in checking for system features: `compile_object $CFLAGS` Attempt to compile a test program with the system C compiler using $CFLAGS. The test program must have been previously written to a file - called $TMPC. + called $TMPC. The replacement in Meson is the compiler object `cc`, + which has methods such as `cc.compiles()`, + `cc.check_header()`, `cc.has_function()`. `compile_prog $CFLAGS $LDFLAGS` Attempt to compile a test program with the system C compiler using $CFLAGS and link it with the system linker using $LDFLAGS. The test program must have been previously written to a file called $TMPC. + The replacement in Meson is `cc.find_library()` and `cc.links()`. `has $COMMAND` Determine if $COMMAND exists in the current environment, either as a - shell builtin, or executable binary, returning 0 on success. + shell builtin, or executable binary, returning 0 on success. The + replacement in Meson is `find_program()`. `check_define $NAME` Determine if the macro $NAME is defined by the system C compiler `check_include $NAME` Determine if the include $NAME file is available to the system C - compiler + compiler. The replacement in Meson is `cc.has_header()`. `write_c_skeleton` Write a minimal C program main() function to the temporary file |