Remove Mac OS X 10.5 parts (Scilab 5.5.2 was already compiled with --with-min-macosx...
[scilab.git] / scilab / m4 / macosx.m4
1 #
2 # Return MacOSX version using system_profile tool.
3 #
4 AC_DEFUN([AC_GET_MACOSX_VERSION],[
5     AC_MSG_CHECKING([Mac OS X Version])
6     [macosx_version=`defaults read loginwindow SystemVersionStampAsString`]
7     case $macosx_version in
8          10.10*)
9               AC_MSG_RESULT([Mac OS X 10.10 - Yosemite.])
10          ;;
11          10.9*)
12               AC_MSG_RESULT([Mac OS X 10.9 - Mavericks.])
13          ;;
14          10.8*)
15               AC_MSG_RESULT([Mac OS X 10.8 - Mountain Lion.])
16          ;;
17          10.7*)
18               AC_MSG_RESULT([Mac OS X 10.7 - Lion.])
19          ;;
20          10.6*)
21               AC_MSG_RESULT([Mac OS X 10.6 - Snow Leopard.])
22          ;;
23          *)
24               AC_MSG_ERROR([MacOSX 10.6 to 10.10 are needed. Found $macosx_version])
25          ;;
26     esac
27 ])