[Top][All Lists]

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

Re: determining 32 v. 64 bit compilatio

From: Bob Friesenhahn
Subject: Re: determining 32 v. 64 bit compilatio
Date: Tue, 29 Jun 2010 13:51:08 -0500 (CDT)
User-agent: Alpine 2.01 (GSO 1266 2009-07-14)

On Tue, 29 Jun 2010, Wesley Smith wrote:

What's the appropriate way to determine 32 v. 64 bit compilation?
I've looked into using:


with the $build_cpu $build_vendor $build_os variables, but it doesn't
give the right info (in my case i686 pc linux-gnu).  I'm essentially
looking for something in autoconf land equivalent to:

It is much more useful and reliable to test the size of the relevant types. For example, my package includes tests like this in

# Obtain size of a 'unsigned long' and define as SIZEOF_UNSIGNED_LONG
AC_CHECK_SIZEOF(unsigned long)

# Obtain size of size_t and define as SIZEOF_SIZE_T

# Obtain size of an unsigned int pointer and define as SIZEOF_UNSIGNED_INTP
AC_CHECK_SIZEOF(unsigned int*)

Bob Friesenhahn
GraphicsMagick Maintainer,

reply via email to

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