Browse Source

configure: add check_insn function

The check_insn function tests an instruction in both inline asm and
standalone assembly, and sets _external/_inline config properties
accordingly.

Signed-off-by: Mans Rullgard <mans@mansr.com>
tags/n1.1
Mans Rullgard 13 years ago
parent
commit
c6ebc9faa2
1 changed files with 6 additions and 0 deletions
  1. +6
    -0
      configure

+ 6
- 0
configure View File

@@ -698,6 +698,12 @@ void foo(void){ __asm__ volatile($code); }
EOF
}

check_insn(){
log check_insn "$@"
check_inline_asm ${1}_inline "\"$2\""
echo "$2" | check_as && enable ${1}_external || disable ${1}_external
}

check_yasm(){
log check_yasm "$@"
echo "$1" > $TMPS


Loading…
Cancel
Save