freetype-devel
[Top][All Lists]
Advanced

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

Re: [ft-devel] how to support making a config.h for multiple architechtu


From: mpsuzuki
Subject: Re: [ft-devel] how to support making a config.h for multiple architechtures?
Date: Tue, 8 Jul 2008 02:20:58 +0900

On Mon, 7 Jul 2008 12:42:35 -0400
"Sean McBride" <address@hidden> wrote:

>On 7/7/08 2:18 PM, address@hidden said:
>
>>Does Autoconf have any support to generate a config.h which
>>can support multiple architectures, or multiple ABI, or
>>multiple data-model?
>
>Has the freetype team ever considered switching away from autoconf? 
>CMake is another option, and might simplify some of the cross-platform
>problems.  See:
><http://lwn.net/Articles/188693/>

I'm not sure whether CMake solves the issue: how to generate
single config.h supporting multiple architechtures, because
CheckTypeSizeC.c.in of CMake-2.6.0:

#define SIZE (sizeof(@CHECK_TYPE_SIZE_TYPE@))
const char info_sizeof[] =  {'I', 'N', 'F', 'O', ':', 
's','i','z','e','o','f','[',
  ('0' + ((SIZE / 10000)%10)),
  ('0' + ((SIZE / 1000)%10)),
  ('0' + ((SIZE / 100)%10)),
  ('0' + ((SIZE / 10)%10)),
  ('0' +  (SIZE    % 10)), 
  ']','\0'};


#ifdef __CLASSIC_C__
int main(){
  int ac;
  char*av[];
#else
int main(int ac, char*av[]){
#endif
  return (&info_sizeof[0] != &info_sizeof[0]);
}

It looks like as if it's compiled and executed on native
system (and it won't check the size in cross building).
Could you write small demonstration to check the sizes
of int and long by CMake, for cross-building case?

Regards,
mpsuzuki




reply via email to

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