summaryrefslogtreecommitdiff
path: root/configure
diff options
context:
space:
mode:
authorMichael Niedermayer <michaelni@gmx.at>2014-04-05 02:03:15 +0200
committerMichael Niedermayer <michaelni@gmx.at>2014-04-05 02:03:15 +0200
commita2c6a99ba56a8c4c4b5efb7474002de10e67bb06 (patch)
tree0fc07a6ee3c43d718026c1cb172db1545179aab0 /configure
parentb6850e132f36f5e467b949c36666787b4c2f1331 (diff)
configure: Fix testing of objective-c headers for qtkit
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
Diffstat (limited to 'configure')
-rwxr-xr-xconfigure12
1 files changed, 11 insertions, 1 deletions
diff --git a/configure b/configure
index 28b724696f..1098fe66db 100755
--- a/configure
+++ b/configure
@@ -943,6 +943,16 @@ int x;
EOF
}
+check_header_oc(){
+ log check_header_oc "$@"
+ header=$1
+ shift
+ {
+ echo "#include <$header>"
+ echo "int main(void) { return 0; }"
+ } | check_cc "-x" "objective-c" "$@" && enable_safe $headers
+}
+
check_func(){
log check_func "$@"
func=$1
@@ -4649,7 +4659,7 @@ enabled openssl && { check_lib openssl/ssl.h SSL_library_init -lssl -l
check_lib openssl/ssl.h SSL_library_init -lssl32 -leay32 ||
check_lib openssl/ssl.h SSL_library_init -lssl -lcrypto -lws2_32 -lgdi32 ||
die "ERROR: openssl not found"; }
-enabled qtkit_indev && { check_header QTKit/QTKit.h || disable qtkit_indev; }
+enabled qtkit_indev && { check_header_oc QTKit/QTKit.h || disable qtkit_indev; }
if enabled gnutls; then
{ check_lib nettle/bignum.h nettle_mpz_get_str_256 -lnettle -lhogweed -lgmp && enable nettle; } ||