]> git.ipfire.org Git - thirdparty/cups.git/blame - config-scripts/cups-opsys.m4
Import CUPS v2.0b1
[thirdparty/cups.git] / config-scripts / cups-opsys.m4
CommitLineData
ef416fc2 1dnl
1a18c85c 2dnl "$Id: cups-opsys.m4 11324 2013-10-04 03:11:42Z msweet $"
ef416fc2 3dnl
321d8d57 4dnl Operating system stuff for CUPS.
ef416fc2 5dnl
3dd9c340 6dnl Copyright 2007-2012 by Apple Inc.
bd7854cb 7dnl Copyright 1997-2006 by Easy Software Products, all rights reserved.
ef416fc2 8dnl
9dnl These coded instructions, statements, and computer programs are the
bc44d920 10dnl property of Apple Inc. and are protected by Federal copyright
11dnl law. Distribution and use rights are outlined in the file "LICENSE.txt"
12dnl which should have been included with this file. If this file is
13dnl file is missing or damaged, see the license at "http://www.cups.org/".
ef416fc2 14dnl
15
b86bc4cf 16dnl Get the operating system, version number, and architecture...
ef416fc2 17uname=`uname`
fa73b229 18uversion=`uname -r | sed -e '1,$s/^[[^0-9]]*\([[0-9]]*\)\.\([[0-9]]*\).*/\1\2/'`
b86bc4cf 19uarch=`uname -m`
fa73b229 20
ef416fc2 21case "$uname" in
c1420c87
MS
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
ef416fc2 29 GNU* | GNU/*)
30 uname="GNU"
31 ;;
ef416fc2 32 Linux*)
33 uname="Linux"
34 ;;
35esac
36
ef416fc2 37dnl
1a18c85c 38dnl "$Id: cups-opsys.m4 11324 2013-10-04 03:11:42Z msweet $"
ef416fc2 39dnl