Commit 253e15f7 authored by Peter Korsgaard's avatar Peter Korsgaard Committed by Jean-Marc Valin
Browse files fix bashism in ARM optimization handling

Breaks configure when /bin/sh isn't bash with:

configure: Trying to force-enable ARMv6 media instructions...
checking if assembler supports ARMv6 media instructions on ARM... yes
configure: Trying to force-enable NEON instructions...
checking if assembler supports NEON instructions on ARM... yes
./configure.lineno: 12799: Bad substitution

Fix it by using the %% expansion to remove everything from the first
space instead.
Signed-off-by: default avatarPeter Korsgaard <>
Signed-off-by: Jean-Marc Valin's avatarJean-Marc Valin <>
parent 306d7f5a
......@@ -333,9 +333,9 @@ AS_IF([test x"${enable_asm}" = x"yes"],[
AM_CONDITIONAL([CPU_ARM], [test "$cpu_arm" = "yes"])
[test x"${inline_optimization:0:3}" = x"ARM"])
[test x"${inline_optimization%% *}" = x"ARM"])
[test x"${asm_optimization:0:3}" = x"ARM"])
[test x"${asm_optimization%% *}" = x"ARM"])
AS_IF([test x"$enable_rtcd" = x"yes"],[
AS_IF([test x"$rtcd_support" != x"no"],[
Supports Markdown
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