0001-altivec.patch 933 B

1234567891011121314151617181920212223
  1. [PATCH] fix altivec.h detection
  2. Patch from Gentoo:
  3. http://sources.gentoo.org/cgi-bin/viewvc.cgi/gentoo-x86/media-libs/libmpeg2/files/libmpeg2-0.5.1-altivec.patch?revision=1.1&view=markup
  4. Signed-off-by: Peter Korsgaard <jacmet@sunsite.dk>
  5. --- a/configure.ac.bak 2010-05-25 17:12:14.756245990 +0000
  6. +++ b/configure.ac 2010-05-25 17:11:51.629581723 +0000
  7. @@ -79,11 +79,10 @@
  8. CFLAGS="$OPT_CFLAGS $TRY_CFLAGS $CFLAGS"
  9. AC_MSG_CHECKING([if <altivec.h> is needed])
  10. AC_TRY_COMPILE([],
  11. - [typedef vector int t;
  12. - vec_ld(0, (unsigned char *)0);],
  13. + [vector int t; t = vec_add(t,t);],
  14. [have_altivec=yes; AC_MSG_RESULT(no)],
  15. [AC_TRY_COMPILE([#include <altivec.h>],
  16. - [typedef vector int t; vec_ld(0, (unsigned char *)0);],
  17. + [vector int t; t = vec_add(t,t);],
  18. [AC_DEFINE([HAVE_ALTIVEC_H],,
  19. [Define to 1 if you have the <altivec.h> header.])
  20. have_altivec=yes; AC_MSG_RESULT(yes)],