changeset 32662:d71575a9c562

Revert previous wrong simplification of AltiVec vector declarations check.
author diego
date Sun, 02 Jan 2011 19:04:35 +0000
parents 4a354cdcf847
children 83c490a2e9f3
files configure
diffstat 1 files changed, 5 insertions(+), 2 deletions(-) [+]
line wrap: on
line diff
--- 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.