]>
git.ipfire.org Git - thirdparty/cups.git/blob - config.h.in
2 * Configuration file for CUPS.
4 * Copyright 2007-2017 by Apple Inc.
5 * Copyright 1997-2007 by Easy Software Products.
7 * Licensed under Apache License v2.0. See the file "LICENSE" for more information.
10 #ifndef _CUPS_CONFIG_H_
11 #define _CUPS_CONFIG_H_
14 * Version of software...
17 #define CUPS_SVERSION ""
18 #define CUPS_MINIMAL ""
22 * Default user and groups...
25 #define CUPS_DEFAULT_USER "lp"
26 #define CUPS_DEFAULT_GROUP "sys"
27 #define CUPS_DEFAULT_SYSTEM_GROUPS "sys root system"
28 #define CUPS_DEFAULT_PRINTOPERATOR_AUTH "@SYSTEM"
29 #define CUPS_DEFAULT_SYSTEM_AUTHKEY "system.print.admin"
33 * Default file permissions...
36 #define CUPS_DEFAULT_CONFIG_FILE_PERM 0640
37 #define CUPS_DEFAULT_LOG_FILE_PERM 0644
41 * Default logging settings...
44 #define CUPS_DEFAULT_LOG_LEVEL "warn"
45 #define CUPS_DEFAULT_ACCESS_LOG_LEVEL "actions"
49 * Default fatal error settings...
52 #define CUPS_DEFAULT_FATAL_ERRORS "config"
56 * Default browsing settings...
59 #define CUPS_DEFAULT_BROWSING 1
60 #define CUPS_DEFAULT_BROWSE_LOCAL_PROTOCOLS ""
61 #define CUPS_DEFAULT_DEFAULT_SHARED 1
68 #define CUPS_DEFAULT_IPP_PORT 631
72 * Default printcap file...
75 #define CUPS_DEFAULT_PRINTCAP "/etc/printcap"
79 * Default Samba and LPD config files...
82 #define CUPS_DEFAULT_SMB_CONFIG_FILE ""
83 #define CUPS_DEFAULT_LPD_CONFIG_FILE ""
87 * Default MaxCopies value...
90 #define CUPS_DEFAULT_MAX_COPIES 9999
94 * Do we have domain socket support, and if so what is the default one?
97 #undef CUPS_DEFAULT_DOMAINSOCKET
101 * Default WebInterface value...
104 #undef CUPS_DEFAULT_WEBIF
108 * Where are files stored?
110 * Note: These are defaults, which can be overridden by environment
111 * variables at run-time...
114 #define CUPS_BINDIR "/usr/bin"
115 #define CUPS_CACHEDIR "/var/cache/cups"
116 #define CUPS_DATADIR "/usr/share/cups"
117 #define CUPS_DOCROOT "/usr/share/doc/cups"
118 #define CUPS_FONTPATH "/usr/share/cups/fonts"
119 #define CUPS_LOCALEDIR "/usr/share/locale"
120 #define CUPS_LOGDIR "/var/logs/cups"
121 #define CUPS_REQUESTS "/var/spool/cups"
122 #define CUPS_SBINDIR "/usr/sbin"
123 #define CUPS_SERVERBIN "/usr/lib/cups"
124 #define CUPS_SERVERROOT "/etc/cups"
125 #define CUPS_STATEDIR "/var/run/cups"
129 * Do we have posix_spawn?
132 #undef HAVE_POSIX_SPAWN
140 #undef HAVE_INFLATECOPY
144 * Do we have PAM stuff?
147 #define HAVE_LIBPAM 0
148 #undef HAVE_PAM_PAM_APPL_H
149 #undef HAVE_PAM_SET_ITEM
150 #undef HAVE_PAM_SETCRED
154 * Do we have <shadow.h>?
161 * Do we have <crypt.h>?
175 * Use <string.h>, <strings.h>, and/or <bstring.h>?
179 #undef HAVE_STRINGS_H
180 #undef HAVE_BSTRING_H
184 * Do we have the long long type?
187 #undef HAVE_LONG_LONG
189 #ifdef HAVE_LONG_LONG
190 # define CUPS_LLFMT "%lld"
191 # define CUPS_LLCAST (long long)
193 # define CUPS_LLFMT "%ld"
194 # define CUPS_LLCAST (long)
195 #endif /* HAVE_LONG_LONG */
199 * Do we have the strtoll() function?
205 # define strtoll(nptr,endptr,base) strtol((nptr), (endptr), (base))
206 #endif /* !HAVE_STRTOLL */
210 * Do we have the strXXX() functions?
219 * Do we have the geteuid() function?
226 * Do we have the setpgid() function?
233 * Do we have the vsyslog() function?
240 * Do we have the systemd journal functions?
243 #undef HAVE_SYSTEMD_SD_JOURNAL_H
247 * Do we have the (v)snprintf() functions?
251 #undef HAVE_VSNPRINTF
255 * What signal functions to use?
259 #undef HAVE_SIGACTION
263 * What wait functions to use?
271 * Do we have the mallinfo function and malloc.h?
279 * Do we have the POSIX ACL functions?
286 * Do we have the langinfo.h header file?
289 #undef HAVE_LANGINFO_H
293 * Which encryption libraries do we have?
303 * Do we have the gnutls_transport_set_pull_timeout_function function?
306 #undef HAVE_GNUTLS_TRANSPORT_SET_PULL_TIMEOUT_FUNCTION
310 * Do we have the gnutls_priority_set_direct function?
313 #undef HAVE_GNUTLS_PRIORITY_SET_DIRECT
317 * What Security framework headers do we have?
320 #undef HAVE_AUTHORIZATION_H
321 #undef HAVE_SECBASEPRIV_H
322 #undef HAVE_SECCERTIFICATE_H
323 #undef HAVE_SECIDENTITYSEARCHPRIV_H
324 #undef HAVE_SECITEM_H
325 #undef HAVE_SECITEMPRIV_H
326 #undef HAVE_SECPOLICY_H
327 #undef HAVE_SECPOLICYPRIV_H
328 #undef HAVE_SECURETRANSPORTPRIV_H
332 * Do we have the cssmErrorString function?
335 #undef HAVE_CSSMERRORSTRING
339 * Do we have the SecGenerateSelfSignedCertificate function?
342 #undef HAVE_SECGENERATESELFSIGNEDCERTIFICATE
346 * Do we have the SecKeychainOpen function?
349 #undef HAVE_SECKEYCHAINOPEN
353 * Do we have (a working) SSLSetEnabledCiphers function?
356 #undef HAVE_SSLSETENABLEDCIPHERS
360 * Do we have libpaper?
367 * Do we have mDNSResponder for DNS Service Discovery (aka Bonjour)?
374 * Do we have Avahi for DNS Service Discovery (aka Bonjour)?
381 * Do we have <sys/ioctl.h>?
384 #undef HAVE_SYS_IOCTL_H
388 * Does the "stat" structure contain the "st_gen" member?
395 * Does the "tm" structure contain the "tm_gmtoff" member?
398 #undef HAVE_TM_GMTOFF
402 * Do we have rresvport_af()?
405 #undef HAVE_RRESVPORT_AF
409 * Do we have getaddrinfo()?
412 #undef HAVE_GETADDRINFO
416 * Do we have getnameinfo()?
419 #undef HAVE_GETNAMEINFO
423 * Do we have getifaddrs()?
426 #undef HAVE_GETIFADDRS
430 * Do we have hstrerror()?
433 #undef HAVE_HSTRERROR
437 * Do we have res_init()?
444 * Do we have <resolv.h>
451 * Do we have the <sys/sockio.h> header file?
454 #undef HAVE_SYS_SOCKIO_H
458 * Does the sockaddr structure contain an sa_len parameter?
461 #undef HAVE_STRUCT_SOCKADDR_SA_LEN
465 * Do we have pthread support?
468 #undef HAVE_PTHREAD_H
472 * Do we have on-demand support (launchd/systemd/upstart)?
479 * Do we have launchd support?
487 * Do we have systemd support?
494 * Do we have upstart support?
501 * Do we have CoreFoundation public and private headers?
504 #undef HAVE_COREFOUNDATION_H
506 #undef HAVE_CFBUNDLEPRIV_H
510 * Do we have ApplicationServices public headers?
513 #undef HAVE_APPLICATIONSERVICES_H
517 * Do we have the SCDynamicStoreCopyComputerName function?
520 #undef HAVE_SCDYNAMICSTORECOPYCOMPUTERNAME
524 * Do we have the getgrouplist() function?
527 #undef HAVE_GETGROUPLIST
531 * Do we have macOS 10.4's mbr_XXX functions?
534 #undef HAVE_MEMBERSHIP_H
535 #undef HAVE_MEMBERSHIPPRIV_H
536 #undef HAVE_MBR_UID_TO_UUID
540 * Do we have Darwin's notify_post header and function?
544 #undef HAVE_NOTIFY_POST
552 #undef HAVE_DBUS_MESSAGE_ITER_INIT_APPEND
553 #undef HAVE_DBUS_THREADS_INIT
557 * Do we have the GSSAPI support library (for Kerberos support)?
560 #undef HAVE_GSS_ACQUIRE_CRED_EX_F
561 #undef HAVE_GSS_C_NT_HOSTBASED_SERVICE
562 #undef HAVE_GSS_GSSAPI_H
563 #undef HAVE_GSS_GSSAPI_SPI_H
565 #undef HAVE_GSSAPI_GSSAPI_H
570 * Default GSS service name...
573 #define CUPS_DEFAULT_GSSSERVICENAME ""
577 * Select/poll interfaces...
586 * Do we have the <dlfcn.h> header?
593 * Do we have <sys/param.h>?
596 #undef HAVE_SYS_PARAM_H
600 * Do we have <sys/ucred.h>?
603 #undef HAVE_SYS_UCRED_H
607 * Do we have removefile()?
610 #undef HAVE_REMOVEFILE
614 * Do we have <sandbox.h>?
617 #undef HAVE_SANDBOX_H
621 * Which random number generator function to use...
624 #undef HAVE_ARC4RANDOM
628 #ifdef HAVE_ARC4RANDOM
629 # define CUPS_RAND() arc4random()
630 # define CUPS_SRAND(v)
631 #elif defined(HAVE_RANDOM)
632 # define CUPS_RAND() random()
633 # define CUPS_SRAND(v) srandom(v)
634 #elif defined(HAVE_LRAND48)
635 # define CUPS_RAND() lrand48()
636 # define CUPS_SRAND(v) srand48(v)
638 # define CUPS_RAND() rand()
639 # define CUPS_SRAND(v) srand(v)
640 #endif /* HAVE_ARC4RANDOM */
651 * Do we have libwrap and tcpd.h?
658 * Do we have <iconv.h>?
665 * Do we have statfs or statvfs and one of the corresponding headers?
670 #undef HAVE_SYS_MOUNT_H
671 #undef HAVE_SYS_STATFS_H
672 #undef HAVE_SYS_STATVFS_H
673 #undef HAVE_SYS_VFS_H
677 * Location of macOS localization bundle, if any.
680 #undef CUPS_BUNDLEDIR
688 #undef HAVE_XPC_PRIVATE_H
692 * Do we have Mini-XML?
699 * Do we have the C99 abs() function?
703 #if !defined(HAVE_ABS) && !defined(abs)
704 # if defined(__GNUC__) || __STDC_VERSION__ >= 199901L
705 # define abs(x) _cups_abs(x)
706 static inline int _cups_abs(int i
) { return (i
< 0 ? -i
: i
); }
707 # elif defined(_MSC_VER)
708 # define abs(x) _cups_abs(x)
709 static __inline
int _cups_abs(int i
) { return (i
< 0 ? -i
: i
); }
711 # define abs(x) ((x) < 0 ? -(x) : (x))
712 # endif /* __GNUC__ || __STDC_VERSION__ */
713 #endif /* !HAVE_ABS && !abs */
715 #endif /* !_CUPS_CONFIG_H_ */