[FFmpeg-devel] patch: fix buf in configure to ensure the HAVE_VSX is only enabled when HAVE_ALTIVECT is enabled
Michael Niedermayer
michaelni at gmx.at
Mon Oct 20 20:14:03 CEST 2014
On Mon, Oct 13, 2014 at 03:04:42PM +0800, rongyan wrote:
> Hi,
> We present this patch to fix the bug in 'configure' file to make sure that the HAVE_VSX is only enabled when HAVE_ALTIVEC is enabled on POWER LE, and disabled when HAVE_ALTIVEC is disabled.
> The fate test result is attached here:
>
>
> The patch is attached. Thanks.
>
> Rong Yan
>
> -----------------
> The world has enough for everyone's need, but not enough for everyone's greed.
> configure | 2 +-
> 1 file changed, 1 insertion(+), 1 deletion(-)
> 3c8a02bd9b7f185a13e7dcf0fb72105dc013237f 0001-configure-fix-bug-to-ensure-that-HAVE_VSX-is-only-en.patch
> From e356cb16ad1a6b0f82969513360bbce481795a1c Mon Sep 17 00:00:00 2001
> From: Rong Yan <rongyan236 at gmail.com>
> Date: Mon, 13 Oct 2014 06:40:30 +0000
> Subject: [PATCH] configure: fix bug to ensure that HAVE_VSX is only enabled
> when HAVE_ALTIVEC is enabled and in LE environment
>
> ---
> configure | 2 +-
> 1 file changed, 1 insertion(+), 1 deletion(-)
>
> diff --git a/configure b/configure
> index cda463d..2ec6ad0 100755
> --- a/configure
> +++ b/configure
> @@ -4390,7 +4390,7 @@ EOF
> od -t x1 $TMPO | grep -q '42 *49 *47 *45' && enable bigendian
>
> if [ "$cpu" = "power7" ] || [ "$cpu" = "power8" ] ;then
> - if ! enabled bigendian ;then
> + if ! enabled bigendian && enabled altivec ;then
> enable vsx
> fi
applied
thanks
[...]
--
Michael GnuPG fingerprint: 9FF2128B147EF6730BADF133611EC787040B0FAB
No human being will ever know the Truth, for even if they happen to say it
by chance, they would not even known they had done so. -- Xenophanes
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 181 bytes
Desc: Digital signature
URL: <https://ffmpeg.org/pipermail/ffmpeg-devel/attachments/20141020/25018034/attachment.asc>
More information about the ffmpeg-devel
mailing list