aboutsummaryrefslogtreecommitdiffstats
path: root/ServiceBasedPlugins/dists/autogen/m4/macosx_version.m4
diff options
context:
space:
mode:
authortobigun <tobigun@b956fd51-792f-4845-bead-9b4dfca2ff2c>2009-03-21 19:25:18 +0000
committertobigun <tobigun@b956fd51-792f-4845-bead-9b4dfca2ff2c>2009-03-21 19:25:18 +0000
commitb38772ffdbcc6bf2189d0e14a9828f911ea44a7d (patch)
tree2101a9210ae02284af56415f65e9f108ebd12163 /ServiceBasedPlugins/dists/autogen/m4/macosx_version.m4
parent5d69ab51fd28961fd43b7e7646768b5a6dcbcb25 (diff)
downloadusdx-b38772ffdbcc6bf2189d0e14a9828f911ea44a7d.tar.gz
usdx-b38772ffdbcc6bf2189d0e14a9828f911ea44a7d.tar.xz
usdx-b38772ffdbcc6bf2189d0e14a9828f911ea44a7d.zip
new branch for whiteshark's service and hook based (party) plugins
git-svn-id: svn://svn.code.sf.net/p/ultrastardx/svn/branches/experimental@1643 b956fd51-792f-4845-bead-9b4dfca2ff2c
Diffstat (limited to '')
-rw-r--r--ServiceBasedPlugins/dists/autogen/m4/macosx_version.m431
1 files changed, 31 insertions, 0 deletions
diff --git a/ServiceBasedPlugins/dists/autogen/m4/macosx_version.m4 b/ServiceBasedPlugins/dists/autogen/m4/macosx_version.m4
new file mode 100644
index 00000000..ddedd908
--- /dev/null
+++ b/ServiceBasedPlugins/dists/autogen/m4/macosx_version.m4
@@ -0,0 +1,31 @@
+# This file is part of UltraStar Deluxe
+# Created by the UltraStar Deluxe Team
+
+# SYNOPSIS
+#
+# AC_MACOSX_VERSION
+#
+# DESCRIPTION
+#
+# Determines the Mac OS X and Darwin version.
+#
+# +----------+---------+
+# | Mac OS X | Darwin |
+# +----------+---------+
+# | 10.4 | 8 |
+# | 10.5 | 9 |
+# +----------+---------+
+
+AC_DEFUN([AC_MACOSX_VERSION],
+[
+ AC_MSG_CHECKING([for Mac OS X version])
+ MACOSX_VERSION=`sw_vers -productVersion`
+ AX_EXTRACT_VERSION(MACOSX, $MACOSX_VERSION)
+ AC_MSG_RESULT(@<:@$MACOSX_VERSION@:>@)
+ AC_SUBST(MACOSX_VERSION)
+
+ AC_MSG_CHECKING([for Darwin version])
+ DARWIN_VERSION=`uname -r | cut -f1 -d.`
+ AC_MSG_RESULT(@<:@$DARWIN_VERSION@:>@)
+ AC_SUBST(DARWIN_VERSION)
+])