Commit d356f125 authored by diego's avatar diego

Implement a proper configure test for AltiVec vector declaration syntax.


git-svn-id: file:///var/local/repositories/ffmpeg/trunk@13555 9553f0bf-9b14-0410-a0b8-cfaf0461ba5b
parent b610bff9
......@@ -714,6 +714,7 @@ HAVE_LIST="
$ARCH_EXT_LIST
$THREADS_LIST
altivec_h
altivec_vector_braces
arpa_inet_h
bswap
byteswap_h
......@@ -1542,6 +1543,13 @@ int main(void) {
v1 = vec_add(v2,v3);
return 0;
}
EOF
# check if our compiler supports braces for vector declarations
check_cc <<EOF && enable altivec_vector_braces
$inc_altivec_h
#define AVV(x...) {x}
int main (void) { (vector int) AVV(1); return 0; }
EOF
fi
......
......@@ -50,11 +50,10 @@
#endif
#endif
/* Use Apple-specific AltiVec syntax for vector declarations when necessary. */
#ifdef __APPLE_CC__
#define AVV(x...) (x)
#else
#ifdef HAVE_ALTIVEC_VECTOR_BRACES
#define AVV(x...) {x}
#else
#define AVV(x...) (x)
#endif
#ifndef M_PI
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment