]> git.sesse.net Git - vlc/commitdiff
* configure.ac: vec_ld() is not sufficient to check for AltiVec support on
authorSam Hocevar <sam@videolan.org>
Thu, 26 Jan 2006 20:22:00 +0000 (20:22 +0000)
committerSam Hocevar <sam@videolan.org>
Thu, 26 Jan 2006 20:22:00 +0000 (20:22 +0000)
    OS X x86, because it's just an undefined function; so we use the keyword
    "vector" to make sure.

configure.ac

index e7105d4b2632ff08cc046e4b008b9657b980e7c4..c6612724b6e5d54bbf9d7ae5efe578499640fd88 100644 (file)
@@ -1203,7 +1203,7 @@ AC_CACHE_CHECK([if \$CC groks AltiVec C extensions],
      [# OS X/PPC test (gcc 3.x)
       CFLAGS="${CFLAGS_save} -faltivec"
       AC_TRY_COMPILE([],
-        [vec_ld(0, (unsigned char *)0);],
+        [vec_ld(1 * sizeof(vector float), (unsigned char *)0);],
         [ac_cv_c_altivec="-faltivec"],
         dnl Below this are the Linux tests
         [# Linux/PPC test (gcc 4.x)