Re: [PATCH 1/3] autoconf: prefer an unrolled loop for trivial AC_CHECK_FUNCS

2016-10-31 Thread Paolo Bonzini
On 31/10/2016 18:01, Eric Blake wrote: > On 10/31/2016 10:33 AM, Paolo Bonzini wrote: >> >> >> On 31/10/2016 16:28, Eric Blake wrote: >>> On 10/31/2016 06:39 AM, Paolo Bonzini wrote: An unrolled loop avoids the cost of spawning sed in AS_TR_SH and AS_TR_CPP. Prefer it if there is

Re: [PATCH 1/3] autoconf: prefer an unrolled loop for trivial AC_CHECK_FUNCS

2016-10-31 Thread Eric Blake
On 10/31/2016 10:33 AM, Paolo Bonzini wrote: > > > On 31/10/2016 16:28, Eric Blake wrote: >> On 10/31/2016 06:39 AM, Paolo Bonzini wrote: >>> An unrolled loop avoids the cost of spawning sed in AS_TR_SH and >>> AS_TR_CPP. Prefer it if there is nothing in the second and third >>> argument of

Re: [PATCH 1/3] autoconf: prefer an unrolled loop for trivial AC_CHECK_FUNCS

2016-10-31 Thread Paolo Bonzini
On 31/10/2016 16:28, Eric Blake wrote: > On 10/31/2016 06:39 AM, Paolo Bonzini wrote: >> An unrolled loop avoids the cost of spawning sed in AS_TR_SH and >> AS_TR_CPP. Prefer it if there is nothing in the second and third >> argument of AC_CHECK_FUNCS and the first argument is a literal. >>

Re: [PATCH 1/3] autoconf: prefer an unrolled loop for trivial AC_CHECK_FUNCS

2016-10-31 Thread Eric Blake
On 10/31/2016 06:39 AM, Paolo Bonzini wrote: > An unrolled loop avoids the cost of spawning sed in AS_TR_SH and > AS_TR_CPP. Prefer it if there is nothing in the second and third > argument of AC_CHECK_FUNCS and the first argument is a literal. > Modify AC_CHECK_FUNCS_ONCE to avoid the variable

[PATCH 1/3] autoconf: prefer an unrolled loop for trivial AC_CHECK_FUNCS

2016-10-31 Thread Paolo Bonzini
An unrolled loop avoids the cost of spawning sed in AS_TR_SH and AS_TR_CPP. Prefer it if there is nothing in the second and third argument of AC_CHECK_FUNCS and the first argument is a literal. Modify AC_CHECK_FUNCS_ONCE to avoid the variable indirection too. * lib/autoconf/functions.m4