From ae08e9a4cf10ddd9c6a4fa19bed2cbfabf878561 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Sebastian=20Dr=C3=B6ge?= Date: Wed, 8 Jan 2014 10:31:18 +0100 Subject: [PATCH] osxvideosink: Improve configure check for OSX >= 10.6 https://bugzilla.gnome.org/show_bug.cgi?id=721245 --- configure.ac | 15 +++++++-------- 1 file changed, 7 insertions(+), 8 deletions(-) diff --git a/configure.ac b/configure.ac index b29f63495d..7109ee8328 100644 --- a/configure.ac +++ b/configure.ac @@ -488,14 +488,13 @@ AG_GST_CHECK_FEATURE(OSX_VIDEO, [OSX video], osxvideosink, [ AC_CHECK_HEADER(OpenGL/gl.h, HAVE_OSX_VIDEO="yes", HAVE_OSX_VIDEO="no") dnl in case header OpenGL/gl.h is found on other platforms (or older, unsupported OS X) - case "$host" in - *-*darwin1*) - dnl do nothing on Snow Leopard or newer - ;; - *) - HAVE_OSX_VIDEO="no" - ;; - esac + dnl also require Snow Leopard or newer + + AC_COMPILE_IFELSE([AC_LANG_PROGRAM([[#include ]], [[ + #if MAC_OS_X_VERSION_MIN_REQUIRED < 1060 + #error Too old OSX version + #endif + ]])],[HAVE_OSX_VIDEO="yes"],[HAVE_OSX_VIDEO="no"]) ]) dnl *** Video 4 Linux 2 ***