configure: Fix ARM thumb detection

The detection detects the default but not if it even works.
Check building a simple piece of code and disable thumb if it fails
This fixes a compile failure

If someone has a better idea, just replace this by it!

Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
This commit is contained in:
Michael Niedermayer 2012-12-04 05:35:11 +01:00
parent 5e1bacf2d4
commit 400647f9ba

5
configure vendored
View File

@ -3424,7 +3424,10 @@ if enabled alpha; then
elif enabled arm; then
check_cpp_condition stddef.h "defined __thumb__" && enable_weak thumb
check_cpp_condition stddef.h "defined __thumb__" && check_cc <<EOF && enable_weak thumb
float func(float a, float b){ return a+b; }
EOF
enabled thumb && check_cflags -mthumb || check_cflags -marm
nogas=die