configure: x86: improve ebp availability check
authorMans Rullgard <mans@mansr.com>
Thu, 13 Sep 2012 19:17:54 +0000 (20:17 +0100)
committerMans Rullgard <mans@mansr.com>
Fri, 14 Sep 2012 14:26:05 +0000 (15:26 +0100)
Some compilers are extra strict about register usage in main(),
disallowing ebp in inline asm there while allowing it elsewhere.
This change makes the test better reflect actual usage.

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

index 2e28124..7c377aa 100755 (executable)
--- a/configure
+++ b/configure
@@ -863,6 +863,9 @@ check_exec_crash(){
 static void sighandler(int sig){
     raise(SIGTERM);
 }
+int foo(void){
+    $code
+}
 int main(void){
     signal(SIGILL, sighandler);
     signal(SIGFPE, sighandler);
@@ -870,7 +873,7 @@ int main(void){
 #ifdef SIGBUS
     signal(SIGBUS, sighandler);
 #endif
-    { $code }
+    foo();
 }
 EOF
 }