aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMans Rullgard <mans@mansr.com>2012-09-13 20:17:54 +0100
committerMans Rullgard <mans@mansr.com>2012-09-14 15:26:05 +0100
commit692dd8ed2617f390ff53b1152a21170e886be726 (patch)
tree04bb303a1f94b0474ef9c65b9455beaec9ed1c79
parent714508bcb91057868a96588b9fba4d29c6c4fc77 (diff)
downloadffmpeg-692dd8ed2617f390ff53b1152a21170e886be726.tar.gz
configure: x86: improve ebp availability check
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>
-rwxr-xr-xconfigure5
1 files changed, 4 insertions, 1 deletions
diff --git a/configure b/configure
index 2e28124348..7c377aa061 100755
--- 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
}