/[gentoo-x86]/media-libs/libmpeg2/files/libmpeg2-0.5.1-altivec.patch
Gentoo

Contents of /media-libs/libmpeg2/files/libmpeg2-0.5.1-altivec.patch

Parent Directory Parent Directory | Revision Log Revision Log


Revision 1.1 - (show annotations) (download)
Tue May 25 17:24:04 2010 UTC (4 years, 4 months ago) by josejx
Branch: MAIN
CVS Tags: HEAD
Added patch to detect altivec.h correctly.
(Portage version: 2.1.8.3/cvs/Linux x86_64)

1 --- configure.ac.bak 2010-05-25 17:12:14.756245990 +0000
2 +++ configure.ac 2010-05-25 17:11:51.629581723 +0000
3 @@ -79,11 +79,10 @@
4 CFLAGS="$OPT_CFLAGS $TRY_CFLAGS $CFLAGS"
5 AC_MSG_CHECKING([if <altivec.h> is needed])
6 AC_TRY_COMPILE([],
7 - [typedef vector int t;
8 - vec_ld(0, (unsigned char *)0);],
9 + [vector int t; t = vec_add(t,t);],
10 [have_altivec=yes; AC_MSG_RESULT(no)],
11 [AC_TRY_COMPILE([#include <altivec.h>],
12 - [typedef vector int t; vec_ld(0, (unsigned char *)0);],
13 + [vector int t; t = vec_add(t,t);],
14 [AC_DEFINE([HAVE_ALTIVEC_H],,
15 [Define to 1 if you have the <altivec.h> header.])
16 have_altivec=yes; AC_MSG_RESULT(yes)],

  ViewVC Help
Powered by ViewVC 1.1.20