]> mj.ucw.cz Git - libucw.git/commitdiff
Make autoconf recognize the amd64 architecture.
authorMartin Mares <mj@ucw.cz>
Tue, 30 Aug 2005 21:35:29 +0000 (21:35 +0000)
committerMartin Mares <mj@ucw.cz>
Tue, 30 Aug 2005 21:35:29 +0000 (21:35 +0000)
lib/autoconf.cfg

index 4dcff1dd499515c92baa8e3aa0f746c441f63d16..0e8496dc85d883fa64a9fde491005a87fc6d74cf 100644 (file)
@@ -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";
        }