]> mj.ucw.cz Git - libucw.git/commitdiff
Moved endianity settings etc. to the per-CPU section.
authorMartin Mares <mj@ucw.cz>
Thu, 14 Apr 2005 09:58:34 +0000 (09:58 +0000)
committerMartin Mares <mj@ucw.cz>
Thu, 14 Apr 2005 09:58:34 +0000 (09:58 +0000)
lib/autoconf.cfg

index 829b9b93ad7d6bed7404b39a5bb5de9fd92389ec..9a353a23d055461a9af616cceaaccc015bcf052b 100644 (file)
@@ -41,6 +41,11 @@ Test("CPU_ARCH", "Checking for CPU architecture", sub {
        Fail "Unable to determine machine type" if $? || $mach eq "";
        if ($mach =~ /^i[0-9]86$/) {
                Set("CPU_I386");
+               UnSet("CPU_64BIT_POINTERS");
+               Set("CPU_LITTLE_ENDIAN");
+               UnSet("CPU_BIG_ENDIAN");
+               Set("CPU_ALLOW_UNALIGNED");
+               Set("CPU_STRUCT_ALIGN" => 4);
                my $arch = "";
                if (IsSet("CONFIG_EXACT_CPU") && IsSet("CONFIG_LINUX") && open X, "/proc/cpuinfo") {
                        my %pc = ();
@@ -144,13 +149,5 @@ if (IsSet("CONFIG_DEBUG")) {
 #CDEBUG+=-DDEBUG_DMALLOC
 #LIBS+=-ldmalloc
 
-### CPU Type and Features ###
-
-Set("CPU_LITTLE_ENDIAN");
-#CPU_BIG_ENDIAN=1
-Set("CPU_ALLOW_UNALIGNED");
-Set("CPU_STRUCT_ALIGN" => 4);
-Set("CPU_64BIT_POINTERS");
-
 # Return success
 1;