File: configure.ac

package info (click to toggle)
cups 2.4.16-1
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid
  • size: 33,500 kB
  • sloc: ansic: 159,650; cpp: 8,595; sh: 5,475; makefile: 2,770; php: 17; python: 10
file content (95 lines) | stat: -rw-r--r-- 2,835 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
dnl
dnl Configuration script for CUPS.
dnl
dnl Copyright © 2020-2025 by OpenPrinting
dnl Copyright © 2007-2020 by Apple Inc.
dnl Copyright © 1997-2007 by Easy Software Products, all rights reserved.
dnl
dnl Licensed under Apache License v2.0.  See the file "LICENSE" for more
dnl information.
dnl

dnl We need at least autoconf 2.71...
AC_PREREQ([2.71])

dnl Package name and version...
AC_INIT([CUPS],[2.4.16],[https://github.com/openprinting/cups/issues],[cups],[https://openprinting.github.io/cups])

dnl This line is provided to ensure that you don't run the autoheader program
dnl against this project.  Doing so is completely unsupported and WILL cause
dnl problems!
AH_TOP([#error "Somebody ran autoheader on this project which is unsupported and WILL cause problems."])

dnl Include configure tests for different areas...
sinclude(config-scripts/cups-opsys.m4)
sinclude(config-scripts/cups-common.m4)
sinclude(config-scripts/cups-directories.m4)
sinclude(config-scripts/cups-manpages.m4)

AC_MSG_CHECKING([for build system compiler])
if test "$cross_compiling" = yes; then
       CC_FOR_BUILD=${CC_FOR_BUILD-cc}
else
       CC_FOR_BUILD=${CC}
fi
AC_MSG_RESULT(${CC_FOR_BUILD})
AC_SUBST(CC_FOR_BUILD)

sinclude(config-scripts/cups-sharedlibs.m4)
sinclude(config-scripts/cups-libtool.m4)
sinclude(config-scripts/cups-compiler.m4)
sinclude(config-scripts/cups-network.m4)
sinclude(config-scripts/cups-poll.m4)
sinclude(config-scripts/cups-gssapi.m4)
sinclude(config-scripts/cups-threads.m4)
sinclude(config-scripts/cups-tls.m4)
sinclude(config-scripts/cups-pam.m4)
sinclude(config-scripts/cups-largefile.m4)
sinclude(config-scripts/cups-dnssd.m4)
sinclude(config-scripts/cups-container.m4)
sinclude(config-scripts/cups-startup.m4)
sinclude(config-scripts/cups-defaults.m4)

dnl See what languages are available and make sure we generate the localization
dnl files as needed...
LANGFILES=""
AS_IF([test "x$LANGUAGES" != x], [
    for lang in $LANGUAGES; do
	AS_IF([test -f doc/$lang/index.html.in], [
	    LANGFILES="$LANGFILES doc/$lang/index.html"
	])

	AS_IF([test -f templates/$lang/header.tmpl.in], [
	    LANGFILES="$LANGFILES templates/$lang/header.tmpl"
	])
    done
])

dnl Provide autoconf with a list of files to generate and output them...
AC_CONFIG_FILES([
    Makedefs
    conf/cups-files.conf
    conf/cupsd.conf
    conf/mime.convs
    conf/pam.std
    conf/snmp.conf
    cups.pc
    cups-config
    desktop/cups.desktop
    doc/index.html
    scheduler/cups-lpd.xinetd
    scheduler/cups.sh
    scheduler/cups.xml
    scheduler/org.cups.cups-lpd.plist
    scheduler/cups-lpdAT.service
    scheduler/cups.path
    scheduler/cups.service
    scheduler/cups.socket
    templates/header.tmpl
    packaging/cups.list
    $LANGFILES
])
AC_OUTPUT

dnl Make sure cups-config script is executable
chmod +x cups-config