[Spice-devel] [PATCH spice-server] build: Optimise headers check

Pavel Grunt pgrunt at redhat.com
Mon Dec 12 11:27:48 UTC 2016


On Mon, 2016-12-12 at 11:19 +0000, Frediano Ziglio wrote:
> Check multiple headers using a single m4 macro.
> The resulting script is reduced.
> 
> Signed-off-by: Frediano Ziglio <fziglio at redhat.com>
Acked-by: Pavel Grunt <pgrunt at redhat.com>
> ---
>  configure.ac | 4 +---
>  1 file changed, 1 insertion(+), 3 deletions(-)
> 
> diff --git a/configure.ac b/configure.ac
> index c978b92..a78b4ec 100644
> --- a/configure.ac
> +++ b/configure.ac
> @@ -49,9 +49,7 @@ AM_PROG_CC_C_O
>  AC_C_BIGENDIAN
>  PKG_PROG_PKG_CONFIG
>  
> -AC_CHECK_HEADERS([sys/time.h])
> -AC_CHECK_HEADERS([execinfo.h])
> -AC_CHECK_HEADERS([linux/sockios.h])
> +AC_CHECK_HEADERS([sys/time.h execinfo.h linux/sockios.h])
>  AC_FUNC_ALLOCA
>  
>  SPICE_LT_VERSION=m4_format("%d:%d:%d", SPICE_CURRENT,
> SPICE_REVISION, SPICE_AGE)


More information about the Spice-devel mailing list