summaryrefslogtreecommitdiff
path: root/configure
diff options
context:
space:
mode:
authorLuca Barbato <lu_zero@gentoo.org>2017-05-10 17:18:48 +0200
committerLuca Barbato <lu_zero@gentoo.org>2017-05-29 13:40:47 +0200
commit6a7e928555d081ff86c867867ebce74fdc4c87d6 (patch)
tree5ef1e720f8e7e0ddccd431f00ab19ff17ee2212d /configure
parent3d040513a1de4797a4f81dde4984395f51db76b7 (diff)
configure: Do not check for the __builtin_vec_vsx_ld
Clang support for Altivec/VSX uses a different approach.
Diffstat (limited to 'configure')
-rwxr-xr-xconfigure9
1 files changed, 8 insertions, 1 deletions
diff --git a/configure b/configure
index d6c44cf89e..be52d4df92 100755
--- a/configure
+++ b/configure
@@ -4447,7 +4447,14 @@ EOF
if enabled vsx; then
check_cflags -mvsx &&
- check_builtin vec_vsx_ld "altivec.h" "__builtin_vec_vsx_ld" || disable vsx
+ check_cc <<EOF || disable vsx
+$inc_altivec_h
+int main(void) {
+ int v[4] = { 0 };
+ vector signed int v1 = vec_vsx_ld(0, v);
+ return 0;
+}
+EOF
fi
if enabled power8; then