From abcb97dc0d6adc8d6512910ff1c5ad434a850413 Mon Sep 17 00:00:00 2001
From: Thilo Borgmann <thilo.borgmann@mail.de>
Date: Sat, 31 Jan 2015 19:12:02 +0100
Subject: [PATCH] configure: Check linking against CoreGraphics or
ApplicationServices framework for avfoundation input device.
Possibly fixes ticket #4238.
---
configure | 8 ++++++--
1 file changed, 6 insertions(+), 2 deletions(-)
diff --git a/configure b/configure
index 6c61f2a..7655871 100755
|
a
|
b
|
xwma_demuxer_select="riffdec"
|
| 2481 | 2481 | # indevs / outdevs |
| 2482 | 2482 | alsa_indev_deps="alsa_asoundlib_h snd_pcm_htimestamp" |
| 2483 | 2483 | alsa_outdev_deps="alsa_asoundlib_h" |
| 2484 | | avfoundation_indev_extralibs="-framework CoreVideo -framework Foundation -framework AVFoundation -framework CoreMedia -framework CoreGraphics" |
| | 2484 | avfoundation_indev_extralibs="-framework CoreVideo -framework Foundation -framework AVFoundation -framework CoreMedia" |
| 2485 | 2485 | avfoundation_indev_select="avfoundation" |
| 2486 | 2486 | bktr_indev_deps_any="dev_bktr_ioctl_bt848_h machine_ioctl_bt848_h dev_video_bktr_ioctl_bt848_h dev_ic_bt8xx_h" |
| 2487 | 2487 | caca_outdev_deps="libcaca" |
| … |
… |
for func in $MATH_FUNCS; do
|
| 4866 | 4866 | done |
| 4867 | 4867 | |
| 4868 | 4868 | # these are off by default, so fail if requested and not available |
| 4869 | | enabled avfoundation_indev && { check_header_oc AVFoundation/AVFoundation.h || disable avfoundation_indev; } |
| | 4869 | enabled avfoundation_indev && check_header_oc AVFoundation/AVFoundation.h && |
| | 4870 | { check_lib2 CoreGraphics/CoreGraphics.h CGImageGetTypeID -Wl,-framework,CoreGraphics || |
| | 4871 | check_lib2 ApplicationServices/ApplicationServices.h CGImageGetTypeID -Wl,-framework,ApplicationServices || |
| | 4872 | disable avfoundation_indev; } |
| | 4873 | |
| 4870 | 4874 | enabled avisynth && { { check_lib2 "windows.h" LoadLibrary; } || |
| 4871 | 4875 | { check_lib2 "dlfcn.h" dlopen -ldl; } || |
| 4872 | 4876 | die "ERROR: LoadLibrary/dlopen not found for avisynth"; } |