Merge commit 'a5e011c8dcbf6968cc60f883d33382ba46147e90'

* commit 'a5e011c8dcbf6968cc60f883d33382ba46147e90':
  configure: Add check_cmd() helper function to simplify some expressions

Merged-by: James Almer <jamrial@gmail.com>
This commit is contained in:
James Almer 2018-03-17 15:00:40 -03:00
commit 40e32f83c6
1 changed files with 8 additions and 0 deletions

8
configure vendored
View File

@ -967,6 +967,14 @@ test_as(){
test_cmd $as $CPPFLAGS $ASFLAGS "$@" $AS_C $(as_o $TMPO) $TMPS
}
check_cmd(){
log check_cmd "$@"
cmd=$1
disabled $cmd && return
disable $cmd
test_cmd $@ && enable $cmd
}
check_inline_asm(){
log check_inline_asm "$@"
name="$1"