Since b1a756fd, applemedia fails to build on osx 10.7, which lacks VideoToolbox.h...
authorDan Kegel <dank@kegel.com>
Mon, 3 Feb 2014 02:17:06 +0000 (18:17 -0800)
committerEdward Hervey <bilboed@bilboed.com>
Mon, 3 Feb 2014 09:11:31 +0000 (10:11 +0100)
https://bugzilla.gnome.org/show_bug.cgi?id=723508

configure.ac

index fb80405..2f7e1e8 100644 (file)
@@ -860,7 +860,12 @@ HAVE_APPLE_MEDIA="no"
 dnl SystemConfiguration.h is common to OS X and iOS, so we check for that
 AG_GST_CHECK_FEATURE(APPLE_MEDIA, [Apple video], applemedia, [
   AC_CHECK_HEADER(SystemConfiguration/SystemConfiguration.h, HAVE_APPLE_MEDIA="yes", HAVE_APPLE_MEDIA="no")
+  dnl OSX 10.7 and earlier lack VideoToolbox/VideoToolbox.h
+  if test "x$HAVE_IOS" = "xno"; then
+    AC_CHECK_HEADER(VideoToolbox/VideoToolbox.h,, HAVE_APPLE_MEDIA="no")
+  fi
 ])
+
 dnl in case header SystemConfiguration/SystemConfiguration.h is found on other platforms
 case "$host" in
   *-*darwin*)