summaryrefslogtreecommitdiffstats
path: root/configure
diff options
context:
space:
mode:
authordiego <diego@b3059339-0415-0410-9bf9-f77b7e298cf2>2008-05-30 11:45:08 +0000
committerdiego <diego@b3059339-0415-0410-9bf9-f77b7e298cf2>2008-05-30 11:45:08 +0000
commitb1bbd23b616a1288f58cff7d7997c61ab95a5bd2 (patch)
treebd273e9212344ce4c439fdbea448b90ca1e24663 /configure
parent38dd5d6fac387aefe19e75c84829a0dd141d5110 (diff)
downloadmpv-b1bbd23b616a1288f58cff7d7997c61ab95a5bd2.tar.bz2
mpv-b1bbd23b616a1288f58cff7d7997c61ab95a5bd2.tar.xz
Check for AltiVec vector declaration syntax.
git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@26926 b3059339-0415-0410-9bf9-f77b7e298cf2
Diffstat (limited to 'configure')
-rwxr-xr-xconfigure11
1 files changed, 11 insertions, 0 deletions
diff --git a/configure b/configure
index 5771169a57..0ed33e9859 100755
--- a/configure
+++ b/configure
@@ -2437,9 +2437,19 @@ EOF
int main(void) { return 0; }
EOF
cc_check $_altivec_gcc_flags && _have_altivec_h=yes \
+ && inc_altivec_h="#include <altivec.h>" \
&& _def_altivec_h='#define HAVE_ALTIVEC_H 1'
echores "$_have_altivec_h"
+ # check if the compiler supports braces for vector declarations
+ cat > $TMPC << EOF
+$inc_altivec_h
+#define AVV(x...) {x}
+int main (void) { (vector int) AVV(1); return 0; }
+EOF
+ cc_check $_altivec_gcc_flags &&
+ _def_altivec_vector_braces='#define HAVE_ALTIVEC_VECTOR_BRACES 1'
+
# Disable runtime cpudetection if we cannot generate AltiVec code or
# AltiVec is disabled by the user.
test "$_runtime_cpudetection" = yes && test "$_altivec" = no \
@@ -8488,6 +8498,7 @@ $_def_gethostbyname2
`ff_config_enable "$_cpuexts_all" "$_cpuexts" "HAVE"`
$_def_altivec_h // enables usage of altivec.h
+$_def_altivec_vector_braces
/* libvo options */
#define SCREEN_SIZE_X 1