Browse Source

configure: Fix testing of objective-c headers for qtkit

Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
tags/n2.3
Michael Niedermayer 11 years ago
parent
commit
a2c6a99ba5
1 changed files with 11 additions and 1 deletions
  1. +11
    -1
      configure

+ 11
- 1
configure View File

@@ -943,6 +943,16 @@ int x;
EOF 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(){ check_func(){
log check_func "$@" log check_func "$@"
func=$1 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 -lssl32 -leay32 ||
check_lib openssl/ssl.h SSL_library_init -lssl -lcrypto -lws2_32 -lgdi32 || check_lib openssl/ssl.h SSL_library_init -lssl -lcrypto -lws2_32 -lgdi32 ||
die "ERROR: openssl not found"; } 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 if enabled gnutls; then
{ check_lib nettle/bignum.h nettle_mpz_get_str_256 -lnettle -lhogweed -lgmp && enable nettle; } || { check_lib nettle/bignum.h nettle_mpz_get_str_256 -lnettle -lhogweed -lgmp && enable nettle; } ||


Loading…
Cancel
Save