configure: Simplify inline asm check with appropriate helper function
authorDiego Biurrun <diego@biurrun.de>
Fri, 20 Jan 2017 14:30:36 +0000 (15:30 +0100)
committerDiego Biurrun <diego@biurrun.de>
Thu, 2 Feb 2017 13:34:05 +0000 (14:34 +0100)
configure

index 7989818..4a8d04d 100755 (executable)
--- a/configure
+++ b/configure
@@ -4183,9 +4183,7 @@ EOF
 sym=$($nm $TMPO | awk '/ff_extern/{ print substr($0, match($0, /[^ \t]*ff_extern/)) }')
 extern_prefix=${sym%%ff_extern*}
 
-check_cc <<EOF && enable_weak inline_asm
-void foo(void) { __asm__ volatile ("" ::); }
-EOF
+check_inline_asm inline_asm '"" ::'
 
 _restrict=
 for restrict_keyword in restrict __restrict__ __restrict; do