aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorClément Bœsch <cboesch@gopro.com>2017-09-06 11:29:23 +0200
committerClément Bœsch <u@pkh.me>2017-09-08 18:55:19 +0200
commitb6dce64a8ea5e98ce09916a056a7ac51316c9bce (patch)
treed93638a7819069084c29d775c7a30c26bac85933
parentf8519529cfed6453bc7cc7634660021d539049a0 (diff)
downloadffmpeg-b6dce64a8ea5e98ce09916a056a7ac51316c9bce.tar.gz
build: add check_apple_framework()
This will be used in the following commits.
-rwxr-xr-xconfigure9
1 files changed, 9 insertions, 0 deletions
diff --git a/configure b/configure
index 996cb9f309..8d4ab43933 100755
--- a/configure
+++ b/configure
@@ -1121,6 +1121,15 @@ check_header_objcc(){
} | check_objcc && check_stat "$TMPO" && enable_safe $header
}
+check_apple_framework(){
+ log check_apple_framework "$@"
+ framework="$1"
+ name="$(tolower $framework)"
+ header="${framework}/${framework}.h"
+ disable $name
+ check_header_objcc $header && enable $name && add_extralibs "-framework $framework"
+}
+
check_func(){
log check_func "$@"
func=$1