]> git.ipfire.org Git - thirdparty/cups.git/blame - config-scripts/cups-opsys.m4
Fix source file header text duplication text duplication.
[thirdparty/cups.git] / config-scripts / cups-opsys.m4
CommitLineData
ef416fc2 1dnl
503b54c9 2dnl Operating system stuff for CUPS.
ef416fc2 3dnl
503b54c9
MS
4dnl Copyright 2007-2012 by Apple Inc.
5dnl Copyright 1997-2006 by Easy Software Products, all rights reserved.
ef416fc2 6dnl
503b54c9
MS
7dnl These coded instructions, statements, and computer programs are the
8dnl property of Apple Inc. and are protected by Federal copyright
9dnl law. Distribution and use rights are outlined in the file "LICENSE.txt"
10dnl which should have been included with this file. If this file is
57b7b66b 11dnl missing or damaged, see the license at "http://www.cups.org/".
ef416fc2 12dnl
13
b86bc4cf 14dnl Get the operating system, version number, and architecture...
ef416fc2 15uname=`uname`
fa73b229 16uversion=`uname -r | sed -e '1,$s/^[[^0-9]]*\([[0-9]]*\)\.\([[0-9]]*\).*/\1\2/'`
b86bc4cf 17uarch=`uname -m`
fa73b229 18
ef416fc2 19case "$uname" in
c1420c87
MS
20 Darwin*)
21 uname="Darwin"
22 if test $uversion -lt 120; then
8072030b 23 AC_MSG_ERROR([Sorry, this version of CUPS requires macOS 10.8 or higher.])
c1420c87
MS
24 fi
25 ;;
26
ef416fc2 27 GNU* | GNU/*)
28 uname="GNU"
29 ;;
ef416fc2 30 Linux*)
31 uname="Linux"
32 ;;
33esac