Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/FFmpeg/FFmpeg.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJames Almer <jamrial@gmail.com>2018-03-17 21:00:40 +0300
committerJames Almer <jamrial@gmail.com>2018-03-17 21:00:40 +0300
commit40e32f83c6a2085093b61e959f34a106fa2dad6b (patch)
treef4005bd454483ef7e8b822072959d90693b9c420 /configure
parent32dbee4462a06a7c82fd1719d044dde2e9b013e7 (diff)
parenta5e011c8dcbf6968cc60f883d33382ba46147e90 (diff)
Merge commit 'a5e011c8dcbf6968cc60f883d33382ba46147e90'
* commit 'a5e011c8dcbf6968cc60f883d33382ba46147e90': configure: Add check_cmd() helper function to simplify some expressions Merged-by: James Almer <jamrial@gmail.com>
Diffstat (limited to 'configure')
-rwxr-xr-xconfigure8
1 files changed, 8 insertions, 0 deletions
diff --git a/configure b/configure
index 0c5ed07a07..140825ab12 100755
--- a/configure
+++ b/configure
@@ -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"