]> git.ipfire.org Git - thirdparty/cups.git/blob - config-scripts/cups-opsys.m4
Save work; public accessors for more stuff, continue transition away from private
[thirdparty/cups.git] / config-scripts / cups-opsys.m4
1 dnl
2 dnl "$Id$"
3 dnl
4 dnl Operating system stuff for CUPS.
5 dnl
6 dnl Copyright 2007-2012 by Apple Inc.
7 dnl Copyright 1997-2006 by Easy Software Products, all rights reserved.
8 dnl
9 dnl These coded instructions, statements, and computer programs are the
10 dnl property of Apple Inc. and are protected by Federal copyright
11 dnl law. Distribution and use rights are outlined in the file "LICENSE.txt"
12 dnl which should have been included with this file. If this file is
13 dnl file is missing or damaged, see the license at "http://www.cups.org/".
14 dnl
15
16 dnl Get the operating system, version number, and architecture...
17 uname=`uname`
18 uversion=`uname -r | sed -e '1,$s/^[[^0-9]]*\([[0-9]]*\)\.\([[0-9]]*\).*/\1\2/'`
19 uarch=`uname -m`
20
21 case "$uname" in
22 Darwin*)
23 uname="Darwin"
24 if test $uversion -lt 120; then
25 AC_MSG_ERROR([Sorry, this version of CUPS requires OS X 10.8 or higher.])
26 fi
27 ;;
28
29 GNU* | GNU/*)
30 uname="GNU"
31 ;;
32 Linux*)
33 uname="Linux"
34 ;;
35 esac
36
37 dnl
38 dnl "$Id$"
39 dnl