]>
Commit | Line | Data |
---|---|---|
ef416fc2 | 1 | dnl |
503b54c9 | 2 | dnl Operating system stuff for CUPS. |
ef416fc2 | 3 | dnl |
105922ec | 4 | dnl Copyright 2007-2017 by Apple Inc. |
503b54c9 | 5 | dnl Copyright 1997-2006 by Easy Software Products, all rights reserved. |
ef416fc2 | 6 | dnl |
e3101897 | 7 | dnl Licensed under Apache License v2.0. See the file "LICENSE" for more information. |
ef416fc2 | 8 | dnl |
9 | ||
105922ec MS |
10 | dnl Get the build and host platforms and split the host_os value |
11 | AC_CANONICAL_BUILD | |
12 | AC_CANONICAL_HOST | |
fa73b229 | 13 | |
105922ec MS |
14 | [host_os_name=`echo $host_os | sed -e '1,$s/[0-9.]*$//g'`] |
15 | [host_os_version=`echo $host_os | sed -e '1,$s/^[^0-9.]*//g' | awk -F. '{print $1 $2}'`] | |
bb719eb3 MS |
16 | # Linux often does not yield an OS version we can use... |
17 | if test "x$host_os_version" = x; then | |
18 | host_os_version="0" | |
19 | fi | |
c1420c87 | 20 | |
105922ec MS |
21 | if test "$host_os_name" = darwin -a $host_os_version -lt 120; then |
22 | AC_MSG_ERROR([Sorry, this version of CUPS requires macOS 10.8 or higher.]) | |
23 | fi | |
24 | ||
25 | dnl Determine whether we are cross-compiling... | |
26 | if test "$build" = "$host"; then | |
27 | # No, build local targets | |
28 | LOCALTARGET="local" | |
29 | else | |
30 | # Yes, don't build local targets | |
31 | LOCALTARGET="" | |
32 | fi | |
33 | AC_SUBST(LOCALTARGET) |