diff options
author | tobigun <tobigun@b956fd51-792f-4845-bead-9b4dfca2ff2c> | 2010-10-10 22:59:33 +0000 |
---|---|---|
committer | tobigun <tobigun@b956fd51-792f-4845-bead-9b4dfca2ff2c> | 2010-10-10 22:59:33 +0000 |
commit | 35187604cef84864a908972d07361a5bd57e29ca (patch) | |
tree | dc95a8b1abeabd3a466729056ab8d37aaa6e72ea /dists/autogen/m4/macosx_version.m4 | |
parent | 58c1daf3692d4c5c534750a4fda97e087b0f0cbb (diff) | |
parent | 02bd10f0798829ab69d2028b988cb2a54eae292a (diff) | |
download | usdx-github/svn/1.1.tar.gz usdx-github/svn/1.1.tar.xz usdx-github/svn/1.1.zip |
rename trunk to 1.1svn/1.1github/svn/1.1
git-svn-id: svn://svn.code.sf.net/p/ultrastardx/svn/branches/1.1@2662 b956fd51-792f-4845-bead-9b4dfca2ff2c
Diffstat (limited to '')
-rw-r--r-- | dists/autogen/m4/macosx_version.m4 | 31 |
1 files changed, 31 insertions, 0 deletions
diff --git a/dists/autogen/m4/macosx_version.m4 b/dists/autogen/m4/macosx_version.m4 new file mode 100644 index 00000000..ddedd908 --- /dev/null +++ b/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) +]) |