[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [PATCH 5/6] configure / meson: Move check for sys/signal.h to meson.
From: |
Eric Blake |
Subject: |
Re: [PATCH 5/6] configure / meson: Move check for sys/signal.h to meson.build |
Date: |
Wed, 18 Nov 2020 11:27:20 -0600 |
User-agent: |
Mozilla/5.0 (X11; Linux x86_64; rv:78.0) Gecko/20100101 Thunderbird/78.4.0 |
On 11/18/20 11:10 AM, Thomas Huth wrote:
In the subject: s/signal/kcov/
> This check can be done in a much shorter way in meson.build. And while
> we're at it, rename the #define to HAVE_SYS_KCOV_H to match the other
> HAVE_someheader_H symbols that we already have.
>
> Signed-off-by: Thomas Huth <thuth@redhat.com>
> ---
> -# check for kcov support (kernel must be 4.4+, compiled with certain options)
> -kcov=no
> -if check_include sys/kcov.h ; then
> - kcov=yes
> -fi
> +config_host_data.set('HAVE_SYS_KCOV_H', cc.has_header('sys/kcov.h'))
> config_host_data.set('HAVE_SYS_SIGNAL_H', cc.has_header('sys/signal.h'))
>
> ignored = ['CONFIG_QEMU_INTERP_PREFIX'] # actually per-target
>
--
Eric Blake, Principal Software Engineer
Red Hat, Inc. +1-919-301-3226
Virtualization: qemu.org | libvirt.org
- [PATCH 2/6] configure / meson: Move check for pty.h to meson.build, (continued)
- [PATCH 2/6] configure / meson: Move check for pty.h to meson.build, Thomas Huth, 2020/11/18
- [PATCH 4/6] configure / meson: Move check for sys/signal.h to meson.build, Thomas Huth, 2020/11/18
- [PATCH 6/6] configure / meson: Move check for linux/btrfs.h to meson.build, Thomas Huth, 2020/11/18
- [PATCH 5/6] configure / meson: Move check for sys/signal.h to meson.build, Thomas Huth, 2020/11/18
- Re: [PATCH 0/6] configure / meson: Move check for headers to meson.build, Paolo Bonzini, 2020/11/18