[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: AS_FOR [was: Faster AC_CHECK_{HEADERS,FUNCS}]
From: |
Paolo Bonzini |
Subject: |
Re: AS_FOR [was: Faster AC_CHECK_{HEADERS,FUNCS}] |
Date: |
Sat, 15 Nov 2008 19:45:33 +0100 |
User-agent: |
Thunderbird 2.0.0.17 (Macintosh/20080914) |
Eric Blake wrote:
> According to Paolo Bonzini on 11/14/2008 12:59 AM:
>> Maybe a
>
>> m4_defun([AS_FOREACH], [
>> [m4_pushdef([_AS_VAR_$1], m4_quote(m4_tolower([$1]))
>> m4_pushdef([$1], m4_if(m4_index(m4_translit([$2], [ ][
>> $`], [ ]), [ ]), [-1], [[$2]], [[$_AS_VAR_$1])]]))]dnl
>> for _AS_VAR_$1] in $2; do
>> $3
>> done
>> _m4_popdef([_AS_VAR_$1])
>
>> could help (untested and probably wrong)?
>
> Like this?
Yes, looks nice.
Paolo