Commit 5e0d4187 authored by Anton Blanchard's avatar Anton Blanchard Committed by Erik de Castro Lopo Add VSX enable/disable

We want to create functions with PowerPC VSX instructions, so add
a configure check.
Signed-off-by: default avatarAnton Blanchard <>
parent 595ac140
...@@ -228,6 +228,19 @@ AC_DEFINE(FLAC__USE_ALTIVEC) ...@@ -228,6 +228,19 @@ AC_DEFINE(FLAC__USE_ALTIVEC)
AH_TEMPLATE(FLAC__USE_ALTIVEC, [define to enable use of Altivec instructions]) AH_TEMPLATE(FLAC__USE_ALTIVEC, [define to enable use of Altivec instructions])
fi fi
AC_HELP_STRING([--disable-vsx], [Disable VSX optimizations]),
[case "${enableval}" in
yes) use_vsx=true ;;
no) use_vsx=false ;;
*) AC_MSG_ERROR(bad value ${enableval} for --enable-vsx) ;;
AM_CONDITIONAL(FLaC__USE_VSX, test "x$use_vsx" = xtrue)
if test "x$use_vsx" = xtrue ; then
AH_TEMPLATE(FLAC__USE_VSX, [define to enable use of VSX instructions])
AC_HELP_STRING([--disable-avx], [Disable AVX, AVX2 optimizations]), AC_HELP_STRING([--disable-avx], [Disable AVX, AVX2 optimizations]),
[case "${enableval}" in [case "${enableval}" in
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