Skip to content

Commit

Permalink
Build: Fix AltiVec detection on OS X Leopard
Browse files Browse the repository at this point in the history
The ability to directly access elements of an AltiVec vector is
apparently a more recent thing.
  • Loading branch information
dcommander committed Sep 1, 2017
1 parent 02fa8f2 commit 4ded4df
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion acinclude.m4
Original file line number Diff line number Diff line change
Expand Up @@ -263,7 +263,9 @@ AC_DEFUN([AC_CHECK_ALTIVEC],[
#include <altivec.h>
int main(void) {
__vector int vi = { 0, 0, 0, 0 };
return vi[0];
int i[4];
vec_st(vi, 0, i);
return i[0];
}]])], ac_has_altivec=yes)
CFLAGS="$ac_save_CFLAGS"
if test "x$ac_has_altivec" = "xyes" ; then
Expand Down

0 comments on commit 4ded4df

Please sign in to comment.