[Spice-devel] [PATCH 1/7] spice-ppc: Adds powerppc compilation support

Paolo Bonzini pbonzini at redhat.com
Thu Aug 9 07:52:01 PDT 2012


Il 07/08/2012 20:39, Erlon Cruz ha scritto:
> -AC_MSG_CHECKING(for x86 or x86-64 platform)
> +AC_MSG_CHECKING(for x86,x86-64 or powerpc64 platform)
>  case $host_cpu in
>    i386|i486|i586|i686|i786|k6|k7|arm|armv7)
>  	variant=32
> @@ -64,13 +64,19 @@ case $host_cpu in
>    x86_64)
>  	variant=64
>  	;;
> +  powerpc64)
> +	variant=ppc64
> +	AC_DEFINE_UNQUOTED([WORDS_BIGENDIAN], 1,
> +	[Set on powerpc hosts])

Remove this...

> +	;;
>    *)
>  	AC_MSG_RESULT(no)
> -	echo Only x86 and x86-64 are supported
> +	echo Only x86,x86-64 and powerpc64 are supported
>  	exit 1
>  esac
>  AC_MSG_RESULT($variant bit)
>  AM_CONDITIONAL([X86_64], [test "$variant" = 64])
> +AM_CONDITIONAL([PPC64], [test "$variant" = ppc64])

... and add AC_C_BIGENDIAN here.

Paolo


More information about the Spice-devel mailing list