configure: Use x86 instead of i386 for $cpu for IA32
authorTomohiro Kusumi <tkusumi@tuxera.com>
Tue, 14 Feb 2017 15:19:43 +0000 (17:19 +0200)
committerJens Axboe <axboe@fb.com>
Tue, 14 Feb 2017 15:24:24 +0000 (08:24 -0700)
fio internally uses "x86" for any sort of IA32, so use x86 for $cpu
as well which gets printed on ./configure.

This change should have been a part of e12f4ede in 2016.

 # grep i386 . -rI
 ./arch/arch.h:#if defined(__i386__)
 ./configure:elif check_define __i386__ ; then
 ./configure:  cpu="i386"
 ./configure:  i386|i486|i586|i686|i86pc|BePC)
 ./configure:    cpu="i386"
 ./crc/sha1.c:#if defined(__i386__) || defined(__x86_64__)
 ./crc/xxhash.c:#if defined(__ARM_FEATURE_UNALIGNED) || defined(__i386) || defined(_M_IX86) || defined(__x86_64__) || defined(_M_X64)

Signed-off-by: Tomohiro Kusumi <tkusumi@tuxera.com>
Signed-off-by: Jens Axboe <axboe@fb.com>
configure

index 75a0db31c4155c304cef1e51598ff044ccfa7e70..be29db9a606d3bdf287cf5d7ef8ec518cdb98d3a 100755 (executable)
--- a/configure
+++ b/configure
@@ -378,7 +378,7 @@ case "$cpu" in
     cpu="$cpu"
   ;;
   i386|i486|i586|i686|i86pc|BePC)
-    cpu="i386"
+    cpu="x86"
   ;;
   x86_64|amd64)
     cpu="x86_64"