configure: arm: detect default thumb state of compiler
authorMans Rullgard <mans@mansr.com>
Fri, 30 Nov 2012 21:58:42 +0000 (21:58 +0000)
committerMans Rullgard <mans@mansr.com>
Mon, 3 Dec 2012 11:06:06 +0000 (11:06 +0000)
This makes configure honour the compiler default if thumb is not
explicitly enabled or disabled.

Signed-off-by: Mans Rullgard <mans@mansr.com>
configure

index 8cd5696..fd94bc0 100755 (executable)
--- a/configure
+++ b/configure
@@ -3092,6 +3092,7 @@ if enabled alpha; then
 
 elif enabled arm; then
 
+    check_cpp_condition stddef.h "defined __thumb__" && enable_weak thumb
     enabled thumb && check_cflags -mthumb || check_cflags -marm
     nogas=die