[glib] configure: Require OSX >= 10.9
- From: Matthias Clasen <matthiasc src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [glib] configure: Require OSX >= 10.9
- Date: Fri, 5 Jun 2015 18:57:51 +0000 (UTC)
commit 89058e8a9b769ab223bc75739f5455dab18f7a3d
Author: Patrick Griffis <tingping tingping se>
Date: Mon Apr 13 13:39:28 2015 -0400
configure: Require OSX >= 10.9
https://bugzilla.gnome.org/show_bug.cgi?id=747146
configure.ac | 9 +++++++++
1 files changed, 9 insertions(+), 0 deletions(-)
---
diff --git a/configure.ac b/configure.ac
index 5138cb6..b297fc4 100644
--- a/configure.ac
+++ b/configure.ac
@@ -223,6 +223,15 @@ AS_IF([test "x$glib_have_cocoa" = "xyes"], [
AC_DEFINE(HAVE_COCOA, 1, [define to 1 if Cocoa is available])
COCOA_LIBS="-Wl,-framework,Foundation"
LDFLAGS="$LDFLAGS $COCOA_LIBS"
+
+ osx_version=`sw_vers -productVersion`
+ osx_min_version="10.9.0"
+ AC_MSG_CHECKING([OSX version >= $osx_min_version])
+ AS_VERSION_COMPARE([$osx_version], [$osx_min_version], [
+ AC_MSG_RESULT([no])
+ AC_MSG_ERROR([OSX version is too old!])
+ ])
+ AC_MSG_RESULT([yes])
], [COCOA_LIBS=""])
AC_SUBST([COCOA_LIBS])
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]