# HG changeset patch # User diego # Date 1293995075 0 # Node ID d71575a9c5626b4ad53f23e3e58de8b30cdf4d54 # Parent 4a354cdcf8475e9b77b45219e4e34d72e2746fb6 Revert previous wrong simplification of AltiVec vector declarations check. diff -r 4a354cdcf847 -r d71575a9c562 configure --- a/configure Sun Jan 02 18:52:46 2011 +0000 +++ b/configure Sun Jan 02 19:04:35 2011 +0000 @@ -2778,8 +2778,11 @@ echores "$_altivec_gcc_flags" # check if the compiler supports braces for vector declarations - statement_check "$inc_altivec_h" '(vector int) {1}' $_altivec_gcc_flags || - die "You need a compiler that supports {} in AltiVec vector declarations." + cat > $TMPC << EOF +$inc_altivec_h +int main(void) { (vector int) {1}; return 0; } +EOF + cc_check $_altivec_gcc_flags || die "You need a compiler that supports {} in AltiVec vector declarations." # Disable runtime cpudetection if we cannot generate AltiVec code or # AltiVec is disabled by the user.