build: add check_apple_framework()
This will be used in the following commits.
This commit is contained in:
committed by
Clément Bœsch
parent
f8519529cf
commit
b6dce64a8e
9
configure
vendored
9
configure
vendored
@@ -1121,6 +1121,15 @@ check_header_objcc(){
|
|||||||
} | check_objcc && check_stat "$TMPO" && enable_safe $header
|
} | 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(){
|
check_func(){
|
||||||
log check_func "$@"
|
log check_func "$@"
|
||||||
func=$1
|
func=$1
|
||||||
|
Reference in New Issue
Block a user