From: Martin Mares Date: Tue, 30 Aug 2005 21:35:29 +0000 (+0000) Subject: Make autoconf recognize the amd64 architecture. X-Git-Tag: holmes-import~750 X-Git-Url: http://mj.ucw.cz/gitweb/?a=commitdiff_plain;ds=sidebyside;h=adccd410be409235bcd59425615101a06693f36d;p=libucw.git Make autoconf recognize the amd64 architecture. --- diff --git a/lib/autoconf.cfg b/lib/autoconf.cfg index 4dcff1dd..0e8496dc 100644 --- a/lib/autoconf.cfg +++ b/lib/autoconf.cfg @@ -90,6 +90,14 @@ Test("CPU_ARCH", "Checking for CPU architecture", sub { } } return $arch ? $arch : "i386"; + } elsif ($mach =~ /^(x86[_-]|amd)64$/) { + Set("CPU_AMD64"); + Set("CPU_64BIT_POINTERS"); + Set("CPU_LITTLE_ENDIAN"); + UnSet("CPU_BIG_ENDIAN"); + Set("CPU_ALLOW_UNALIGNED"); + Set("CPU_STRUCT_ALIGN" => 8); + return "x86-64"; } else { return "unknown"; }