Commit 897efe1b authored by Christophe Mutricy's avatar Christophe Mutricy

Really fix #1055. Thanks to the Gentoo people for reporting and proposin patches

parent d04744ad
...@@ -1361,18 +1361,24 @@ AC_CACHE_CHECK([if \$CC groks AltiVec C extensions], ...@@ -1361,18 +1361,24 @@ AC_CACHE_CHECK([if \$CC groks AltiVec C extensions],
if test "${ac_cv_c_altivec}" != "no"; then if test "${ac_cv_c_altivec}" != "no"; then
CPPFLAGS="${CPPFLAGS_save} ${ac_cv_c_altivec}" CPPFLAGS="${CPPFLAGS_save} ${ac_cv_c_altivec}"
fi fi
AC_CHECK_HEADERS(altivec.h)
CPPFLAGS="${CPPFLAGS_save}" AS_IF( test "${enable_altivec}" != "no",
[
if test "${ac_cv_c_altivec}" != "no" -a "${enable_altivec}" != "no" ; then AC_CHECK_HEADERS(altivec.h)
AC_DEFINE(CAN_COMPILE_C_ALTIVEC, 1, Define if your compiler groks C AltiVec extensions.) CPPFLAGS="${CPPFLAGS_save}"
VLC_ADD_CFLAGS([libvlc],[${ac_cv_c_altivec}])
VLC_ADD_CFLAGS([idctaltivec motionaltivec],[${ac_cv_c_altivec}]) if test "${ac_cv_c_altivec}" != "no"; then
VLC_ADD_CFLAGS([i420_yuy2_altivec memcpyaltivec deinterlace],[${ac_cv_c_altivec} ${ac_cv_c_altivec_abi}]) AC_DEFINE(CAN_COMPILE_C_ALTIVEC, 1, Define if your compiler groks C AltiVec extensions.)
if test "${ac_cv_altivec_inline}" = "no"; then VLC_ADD_CFLAGS([libvlc],[${ac_cv_c_altivec}])
ACCEL_MODULES="${ACCEL_MODULES} ${ALTIVEC_MODULES}" VLC_ADD_CFLAGS([idctaltivec motionaltivec],[${ac_cv_c_altivec}])
VLC_ADD_CFLAGS([i420_yuy2_altivec memcpyaltivec deinterlace],[${ac_cv_c_altivec} ${ac_cv_c_altivec_abi}])
if test "${ac_cv_altivec_inline}" = "no"; then
ACCEL_MODULES="${ACCEL_MODULES} ${ALTIVEC_MODULES}"
fi
fi fi
fi ],[
CPPFLAGS="${CPPFLAGS_save}"
])
AC_CACHE_CHECK([if linker needs -framework vecLib], AC_CACHE_CHECK([if linker needs -framework vecLib],
[ac_cv_ld_altivec], [ac_cv_ld_altivec],
......
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