]>
Commit | Line | Data |
---|---|---|
757eb98a AM |
1 | --- libmpeg2-0.5.1/configure.ac~ 2009-07-09 10:07:51.000000000 +0200 |
2 | +++ libmpeg2-0.5.1/configure.ac 2009-07-09 10:08:42.000000000 +0200 | |
3 | @@ -76,13 +76,15 @@ | |
4 | for TRY_CFLAGS in "-mpim-altivec -force_cpusubtype_ALL" -faltivec -maltivec -fvec; do | |
5 | AC_TRY_CFLAGS([$OPT_CFLAGS $TRY_CFLAGS $CFLAGS], | |
6 | [save_CFLAGS="$CFLAGS" | |
7 | - CFLAGS="$OPT_CFLAGS $TRY_CFLAGS $CFLAGS" | |
8 | + CFLAGS="$OPT_CFLAGS $TRY_CFLAGS $CFLAGS -Werror" | |
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 | [have_altivec=yes; AC_MSG_RESULT(no)], | |
14 | - [AC_TRY_COMPILE([#include <altivec.h>], | |
15 | + [CFLAGS="$save_CFLAGS" | |
16 | + CFLAGS="$OPT_CFLAGS $TRY_CFLAGS $CFLAGS" | |
17 | + AC_TRY_COMPILE([#include <altivec.h>], | |
18 | [typedef vector int t; vec_ld(0, (unsigned char *)0);], | |
19 | [AC_DEFINE([HAVE_ALTIVEC_H],, | |
20 | [Define to 1 if you have the <altivec.h> header.]) |