automake
[Top][All Lists]
Advanced

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

determining 32 v. 64 bit compilation


From: Wesley Smith
Subject: determining 32 v. 64 bit compilation
Date: Tue, 29 Jun 2010 19:43:31 +0200

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

AC_CANONICAL_BUILD

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:

#if defined(__LP64__) || defined(_LP64)
        #define OSBIT 64;
    #else
        #define OSBIT 32;
    #endif


thanks in advance!
wes



reply via email to

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