diff options
author | Juan Quintela <quintela@redhat.com> | 2009-07-16 18:34:08 +0200 |
---|---|---|
committer | Anthony Liguori <aliguori@us.ibm.com> | 2009-07-16 17:28:56 -0500 |
commit | 16dbd14f195fe17502eb4d7610ed36c5ad3b1896 (patch) | |
tree | 9d9d0db3a9507b3c61febc3ad7f41da6e998a3d9 /configure | |
parent | d80438aad5b1ef6e11c7b5003665331cb68f193c (diff) |
generate ARCH name instead of coding it
Signed-off-by: Juan Quintela <quintela@redhat.com>
Signed-off-by: Anthony Liguori <aliguori@us.ibm.com>
Diffstat (limited to 'configure')
-rwxr-xr-x | configure | 55 |
1 files changed, 21 insertions, 34 deletions
@@ -1496,78 +1496,65 @@ echo "PTHREADLIBS=$PTHREADLIBS" >> $config_mak echo "CLOCKLIBS=$CLOCKLIBS" >> $config_mak case "$cpu" in i386) - echo "ARCH=i386" >> $config_mak - echo "#define HOST_I386 1" >> $config_h + ARCH=i386 ;; x86_64) - echo "ARCH=x86_64" >> $config_mak - echo "#define HOST_X86_64 1" >> $config_h + ARCH=x86_64 ;; alpha) - echo "ARCH=alpha" >> $config_mak - echo "#define HOST_ALPHA 1" >> $config_h + ARCH=alpha ;; armv4b) - echo "ARCH=arm" >> $config_mak - echo "#define HOST_ARM 1" >> $config_h + ARCH=arm ;; armv4l) - echo "ARCH=arm" >> $config_mak - echo "#define HOST_ARM 1" >> $config_h + ARCH=arm ;; cris) - echo "ARCH=cris" >> $config_mak - echo "#define HOST_CRIS 1" >> $config_h + ARCH=cris ;; hppa) - echo "ARCH=hppa" >> $config_mak - echo "#define HOST_HPPA 1" >> $config_h + ARCH=hppa ;; ia64) - echo "ARCH=ia64" >> $config_mak - echo "#define HOST_IA64 1" >> $config_h + ARCH=ia64 ;; m68k) - echo "ARCH=m68k" >> $config_mak - echo "#define HOST_M68K 1" >> $config_h + ARCH=m68k ;; microblaze) - echo "ARCH=microblaze" >> $config_mak - echo "#define HOST_MICROBLAZE 1" >> $config_h + ARCH=microblaze ;; mips) - echo "ARCH=mips" >> $config_mak - echo "#define HOST_MIPS 1" >> $config_h + ARCH=mips ;; mips64) - echo "ARCH=mips64" >> $config_mak - echo "#define HOST_MIPS64 1" >> $config_h + ARCH=mips64 ;; ppc) - echo "ARCH=ppc" >> $config_mak - echo "#define HOST_PPC 1" >> $config_h + ARCH=ppc ;; ppc64) - echo "ARCH=ppc64" >> $config_mak - echo "#define HOST_PPC64 1" >> $config_h + ARCH=ppc64 ;; s390) - echo "ARCH=s390" >> $config_mak - echo "#define HOST_S390 1" >> $config_h + ARCH=s390 ;; sparc) - echo "ARCH=sparc" >> $config_mak - echo "#define HOST_SPARC 1" >> $config_h + ARCH=sparc ;; sparc64) - echo "ARCH=sparc64" >> $config_mak - echo "#define HOST_SPARC64 1" >> $config_h + ARCH=sparc64 ;; *) echo "Unsupported CPU = $cpu" exit 1 ;; esac +echo "ARCH=$ARCH" >> $config_mak +arch_name=`echo $ARCH | tr '[:lower:]' '[:upper:]'` +echo "#define HOST_$arch_name 1" >> $config_h + if test "$debug_tcg" = "yes" ; then echo "#define DEBUG_TCG 1" >> $config_h fi |