2022-05-13 20:08:20 +08:00
|
|
|
|
dnl
|
|
|
|
|
dnl Configuration script for CUPS.
|
|
|
|
|
dnl
|
2023-10-26 10:19:35 +08:00
|
|
|
|
dnl Copyright © 2020-2023 by OpenPrinting
|
2023-01-11 16:57:48 +08:00
|
|
|
|
dnl Copyright © 2007-2020 by Apple Inc.
|
2022-05-13 20:08:20 +08:00
|
|
|
|
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
|
|
|
|
|
|
2023-01-11 16:57:48 +08:00
|
|
|
|
dnl We need at least autoconf 2.71...
|
|
|
|
|
AC_PREREQ([2.71])
|
2022-05-13 20:08:20 +08:00
|
|
|
|
|
|
|
|
|
dnl Package name and version...
|
2024-06-11 14:13:39 +08:00
|
|
|
|
AC_INIT([CUPS],[2.4.7],[https://github.com/openprinting/cups/issues],[cups],[https://openprinting.github.io/cups])
|
2022-05-13 20:08:20 +08:00
|
|
|
|
|
2023-01-11 16:57:48 +08:00
|
|
|
|
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...
|
2022-05-13 20:08:20 +08:00
|
|
|
|
sinclude(config-scripts/cups-opsys.m4)
|
|
|
|
|
sinclude(config-scripts/cups-common.m4)
|
|
|
|
|
sinclude(config-scripts/cups-directories.m4)
|
|
|
|
|
sinclude(config-scripts/cups-manpages.m4)
|
|
|
|
|
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)
|
2023-01-11 16:57:48 +08:00
|
|
|
|
sinclude(config-scripts/cups-tls.m4)
|
2022-05-13 20:08:20 +08:00
|
|
|
|
sinclude(config-scripts/cups-pam.m4)
|
|
|
|
|
sinclude(config-scripts/cups-largefile.m4)
|
|
|
|
|
sinclude(config-scripts/cups-dnssd.m4)
|
2023-01-11 16:57:48 +08:00
|
|
|
|
sinclude(config-scripts/cups-container.m4)
|
2022-05-13 20:08:20 +08:00
|
|
|
|
sinclude(config-scripts/cups-startup.m4)
|
|
|
|
|
sinclude(config-scripts/cups-defaults.m4)
|
|
|
|
|
|
2023-01-11 16:57:48 +08:00
|
|
|
|
dnl See what languages are available and make sure we generate the localization
|
|
|
|
|
dnl files as needed...
|
2022-05-13 20:08:20 +08:00
|
|
|
|
INSTALL_LANGUAGES=""
|
|
|
|
|
UNINSTALL_LANGUAGES=""
|
|
|
|
|
LANGFILES=""
|
2023-01-11 16:57:48 +08:00
|
|
|
|
AS_IF([test "x$LANGUAGES" != x], [
|
|
|
|
|
INSTALL_LANGUAGES="install-languages"
|
|
|
|
|
UNINSTALL_LANGUAGES="uninstall-languages"
|
|
|
|
|
for lang in $LANGUAGES; do
|
|
|
|
|
AS_IF([test -f doc/$lang/index.html.in], [
|
|
|
|
|
LANGFILES="$LANGFILES doc/$lang/index.html"
|
|
|
|
|
])
|
2022-05-13 20:08:20 +08:00
|
|
|
|
|
2023-01-11 16:57:48 +08:00
|
|
|
|
AS_IF([test -f templates/$lang/header.tmpl.in], [
|
|
|
|
|
LANGFILES="$LANGFILES templates/$lang/header.tmpl"
|
|
|
|
|
])
|
|
|
|
|
done
|
|
|
|
|
], [test "x$CUPS_BUNDLEDIR" != x], [
|
|
|
|
|
INSTALL_LANGUAGES="install-langbundle"
|
|
|
|
|
UNINSTALL_LANGUAGES="uninstall-langbundle"
|
|
|
|
|
])
|
2022-05-13 20:08:20 +08:00
|
|
|
|
|
2023-01-11 16:57:48 +08:00
|
|
|
|
AC_SUBST([INSTALL_LANGUAGES])
|
|
|
|
|
AC_SUBST([UNINSTALL_LANGUAGES])
|
2022-05-13 20:08:20 +08:00
|
|
|
|
|
2023-01-11 16:57:48 +08:00
|
|
|
|
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
|
2022-05-13 20:08:20 +08:00
|
|
|
|
|
2023-01-11 16:57:48 +08:00
|
|
|
|
dnl Make sure cups-config script is executable
|
2022-05-13 20:08:20 +08:00
|
|
|
|
chmod +x cups-config
|