configure: Add -framework CoreVideo when building the avfoundation indev
authorMartin Storsjö <martin@martin.st>
Tue, 1 Dec 2015 08:14:00 +0000 (10:14 +0200)
committerMartin Storsjö <martin@martin.st>
Thu, 3 Dec 2015 12:28:12 +0000 (14:28 +0200)
This fixes builds with --disable-vda, which previously failed with
undefined references to CVImageBuffer* and CVPixelBuffer* functions.

Signed-off-by: Martin Storsjö <martin@martin.st>
configure

index 615a648..30db632 100755 (executable)
--- a/configure
+++ b/configure
@@ -4568,7 +4568,7 @@ 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 || \
+    add_extralibs -framework Foundation -framework AVFoundation -framework CoreVideo -framework CoreMedia ||
     disable AVFoundation_AVFoundation_h
 
 check_header sys/videoio.h