• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1dnl
2dnl Operating system stuff for CUPS.
3dnl
4dnl Copyright © 2020-2024 by OpenPrinting.
5dnl Copyright © 2007-2019 by Apple Inc.
6dnl Copyright © 1997-2006 by Easy Software Products, all rights reserved.
7dnl
8dnl Licensed under Apache License v2.0.  See the file "LICENSE" for more
9dnl information.
10dnl
11
12dnl Get the build and host platforms and split the host_os value
13AC_CANONICAL_BUILD
14AC_CANONICAL_HOST
15
16[host_os_name="$(echo $host_os | sed -e '1,$s/[0-9.]*$//g')"]
17[host_os_version="$(echo $host_os | sed -e '1,$s/^[^0-9.]*//g' | awk -F. '{print $1 $2}')"]
18# Linux often does not yield an OS version we can use...
19AS_IF([test "x$host_os_version" = x], [
20    host_os_version="0"
21])
22
23dnl Determine whether we are cross-compiling...
24AS_IF([test "$build" = "$host"], [
25    # No, build local targets
26    LOCALTARGET="local"
27], [
28    # Yes, don't build local targets
29    LOCALTARGET=""
30])
31AC_SUBST([LOCALTARGET])
32
33AC_PATH_PROGS([CODE_SIGN], [codesign true])
34