Commit 734d0a85 authored by Sam Hocevar's avatar Sam Hocevar

* configure.ac:

    + Check for vec_ld instead of vec_mtvscr in the C AltiVec detection.
    + Include <altivec.h> in the C AltiVec detection.
  * modules/misc/memcpy/memcpyaltivec.c modules/video_chroma/i420_yuy2.c:
    + Include <altivec.h> in the C AltiVec versions.
parent d27f781f
......@@ -1002,17 +1002,21 @@ AC_CACHE_CHECK([if \$CC groks AltiVec C extensions],
[# Darwin test
CFLAGS="${CFLAGS_save} -faltivec"
AC_TRY_COMPILE([],
[vec_mtvscr((vector unsigned int)(0));],
[vec_ld(0, (unsigned char *)0);],
[ac_cv_c_altivec="-faltivec"],
[# Linux/PPC test
CFLAGS="${CFLAGS_save} ${CFLAGS_idctaltivec} -maltivec -mabi=altivec"
AC_TRY_COMPILE([],
[vec_mtvscr((vector unsigned int)(0));],
AC_TRY_COMPILE([#ifdef HAVE_ALTIVEC_H
#include <altivec.h>
#endif],
[vec_ld(0, (unsigned char *)0);],
[ac_cv_c_altivec="-maltivec -mabi=altivec"],
[# Linux/PPC test (old GCC versions)
CFLAGS="${CFLAGS_save} ${CFLAGS_idctaltivec} -fvec"
AC_TRY_COMPILE([#include <altivec.h>],
[vec_mtvscr((vector unsigned int)(0));],
AC_TRY_COMPILE([#ifdef HAVE_ALTIVEC_H
#include <altivec.h>
#endif],
[vec_ld(0, (unsigned char *)0);],
[ac_cv_c_altivec="-fvec"],
[ac_cv_c_altivec=no])
])
......
......@@ -2,7 +2,7 @@
* memcpyaltivec.c : AltiVec memcpy module
*****************************************************************************
* Copyright (C) 2001 VideoLAN
* $Id: memcpyaltivec.c,v 1.4 2003/12/22 14:32:56 sam Exp $
* $Id$
*
* Author: Christophe Massiot <massiot@via.ecp.fr>
*
......@@ -31,6 +31,10 @@
#include <vlc/vlc.h>
#ifdef HAVE_ALTIVEC_H
# include <altivec.h>
#endif
/*****************************************************************************
* Local prototypes.
*****************************************************************************/
......
......@@ -30,6 +30,10 @@
#include <vlc/vlc.h>
#include <vlc/vout.h>
#ifdef HAVE_ALTIVEC_H
# include <altivec.h>
#endif
#include "i420_yuy2.h"
#define SRC_FOURCC "I420,IYUV,YV12"
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment