summaryrefslogtreecommitdiff
path: root/configure
diff options
context:
space:
mode:
authorAlexandre Lision <alexandre.lision@savoirfairelinux.com>2015-11-23 17:08:50 -0500
committerLuca Barbato <lu_zero@gentoo.org>2015-11-26 10:55:28 +0100
commit4f979418c723652ad4e43115118c57a44bd46b52 (patch)
tree7d38fc9b6d9a07efa94ea74fcfae5c4ccb21bd0a /configure
parent9f57f134c19773d54269b6cb9ee455ff87c2e9e1 (diff)
avfoundation: Simple capture
Originally based on the capture written by Thilo Borgmann <thilo.borgmann@mail.de>. Signed-off-by: Luca Barbato <lu_zero@gentoo.org>
Diffstat (limited to 'configure')
-rwxr-xr-xconfigure7
1 files changed, 7 insertions, 0 deletions
diff --git a/configure b/configure
index 4ad9a2bc0e..16ad102ff4 100755
--- a/configure
+++ b/configure
@@ -1453,6 +1453,7 @@ HAVE_LIST_PUB="
"
HEADERS_LIST="
+ AVFoundation_AVFoundation_h
alsa_asoundlib_h
altivec_h
arpa_inet_h
@@ -2264,6 +2265,7 @@ xwma_demuxer_select="riffdec"
# indevs / outdevs
alsa_indev_deps="alsa_asoundlib_h snd_pcm_htimestamp"
alsa_outdev_deps="alsa_asoundlib_h"
+avfoundation_indev_deps="AVFoundation_AVFoundation_h"
bktr_indev_deps_any="dev_bktr_ioctl_bt848_h machine_ioctl_bt848_h dev_video_bktr_ioctl_bt848_h dev_ic_bt8xx_h"
dv1394_indev_deps="dv1394"
dv1394_indev_select="dv_demuxer"
@@ -4560,6 +4562,11 @@ check_header linux/fb.h
check_header linux/videodev2.h
check_struct linux/videodev2.h "struct v4l2_frmivalenum" discrete
+check_header AVFoundation/AVFoundation.h &&
+ check_objcflags -fobjc-arc &&
+ add_extralibs -framework Foundation -framework AVFoundation -framework CoreMedia || \
+ disable AVFoundation_AVFoundation_h
+
check_header sys/videoio.h
check_func_headers "windows.h vfw.h" capCreateCaptureWindow "$vfwcap_indev_extralibs"