autoconf
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: using macro ...


From: Eric Blake
Subject: Re: using macro ...
Date: Fri, 08 Feb 2013 13:37:35 -0700
User-agent: Mozilla/5.0 (X11; Linux x86_64; rv:17.0) Gecko/20130110 Thunderbird/17.0.2

On 02/08/2013 12:30 PM, raespi wrote:
>> This behavior sounds like whoever wrote AC_SUBST_INT_HEX was calling
>> AC_SUBST_UNQUOTED([T_FPU], [$value], [documentation])
>> somewhere inside. 

Apologies; I was thinking of AC_DEFINE_UNQUOTED; there is no
AC_SUBST_UNQUOTED.  But based on how you want @T_FPU@ replacement,
rather than a #define added, you want AC_SUBST.

>> Would using AC_COMPUTE_INT be any less fragile than
>> directly grepping a platform header?
>>
> something like ?
> 
> AC_COMPUTE_INT( T_FPU, "T_FPU", include='<native/task.h>' )

That's not proper syntax.  More like:

AC_COMPUTE_INT([prefix_cv_t_fpu], [T_FPU], [[#include <native/task.h>]])
AC_SUBST([T_FPU], [$prefix_cv_t_fpu])

where you can replace prefix_ with your own package's namespace.

-- 
Eric Blake   eblake redhat com    +1-919-301-3266
Libvirt virtualization library http://libvirt.org

Attachment: signature.asc
Description: OpenPGP digital signature


reply via email to

[Prev in Thread] Current Thread [Next in Thread]