From b59d06d5f4155c27d6c3aa14be8379723aaf0a08 Mon Sep 17 00:00:00 2001 From: Shivraj Patil Date: Mon, 7 Mar 2016 19:49:10 +0530 Subject: [PATCH] configure: add check_inline_asm_flags() Signed-off-by: Michael Niedermayer --- configure | 19 +++++++++++++++++++ 1 file changed, 19 insertions(+) diff --git a/configure b/configure index 3299b1bd11..c895b5035b 100755 --- a/configure +++ b/configure @@ -918,6 +918,25 @@ void foo(void){ __asm__ volatile($code); } EOF } +check_inline_asm_flags(){ + log check_inline_asm_flags "$@" + name="$1" + code="$2" + flags='' + shift 2 + while [ "$1" != "" ]; do + append flags $1 + shift + done; + disable $name + cat > $TMPC <