]>
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 * These coded instructions, statements, and computer programs are the
8 * property of Apple Inc. and are protected by Federal copyright
9 * law. Distribution and use rights are outlined in the file "LICENSE.txt"
10 * which should have been included with this file. If this file is
11 * missing or damaged, see the license at "http://www.cups.org/".
14 #ifndef _CUPS_CONFIG_H_
15 #define _CUPS_CONFIG_H_
18 * Version of software...
21 #define CUPS_SVERSION ""
22 #define CUPS_MINIMAL ""
26 * Default user and groups...
29 #define CUPS_DEFAULT_USER "lp"
30 #define CUPS_DEFAULT_GROUP "sys"
31 #define CUPS_DEFAULT_SYSTEM_GROUPS "sys root system"
32 #define CUPS_DEFAULT_PRINTOPERATOR_AUTH "@SYSTEM"
33 #define CUPS_DEFAULT_SYSTEM_AUTHKEY "system.print.admin"
37 * Default file permissions...
40 #define CUPS_DEFAULT_CONFIG_FILE_PERM 0640
41 #define CUPS_DEFAULT_LOG_FILE_PERM 0644
45 * Default logging settings...
48 #define CUPS_DEFAULT_LOG_LEVEL "warn"
49 #define CUPS_DEFAULT_ACCESS_LOG_LEVEL "actions"
53 * Default fatal error settings...
56 #define CUPS_DEFAULT_FATAL_ERRORS "config"
60 * Default browsing settings...
63 #define CUPS_DEFAULT_BROWSING 1
64 #define CUPS_DEFAULT_BROWSE_LOCAL_PROTOCOLS ""
65 #define CUPS_DEFAULT_DEFAULT_SHARED 1
72 #define CUPS_DEFAULT_IPP_PORT 631
76 * Default printcap file...
79 #define CUPS_DEFAULT_PRINTCAP "/etc/printcap"
83 * Default Samba and LPD config files...
86 #define CUPS_DEFAULT_SMB_CONFIG_FILE ""
87 #define CUPS_DEFAULT_LPD_CONFIG_FILE ""
91 * Default MaxCopies value...
94 #define CUPS_DEFAULT_MAX_COPIES 9999
98 * Do we have domain socket support, and if so what is the default one?
101 #undef CUPS_DEFAULT_DOMAINSOCKET
105 * Default WebInterface value...
108 #undef CUPS_DEFAULT_WEBIF
112 * Where are files stored?
114 * Note: These are defaults, which can be overridden by environment
115 * variables at run-time...
118 #define CUPS_BINDIR "/usr/bin"
119 #define CUPS_CACHEDIR "/var/cache/cups"
120 #define CUPS_DATADIR "/usr/share/cups"
121 #define CUPS_DOCROOT "/usr/share/doc/cups"
122 #define CUPS_FONTPATH "/usr/share/cups/fonts"
123 #define CUPS_LOCALEDIR "/usr/share/locale"
124 #define CUPS_LOGDIR "/var/logs/cups"
125 #define CUPS_REQUESTS "/var/spool/cups"
126 #define CUPS_SBINDIR "/usr/sbin"
127 #define CUPS_SERVERBIN "/usr/lib/cups"
128 #define CUPS_SERVERROOT "/etc/cups"
129 #define CUPS_STATEDIR "/var/run/cups"
133 * Do we have posix_spawn?
136 #undef HAVE_POSIX_SPAWN
144 #undef HAVE_INFLATECOPY
148 * Do we have PAM stuff?
151 #define HAVE_LIBPAM 0
152 #undef HAVE_PAM_PAM_APPL_H
153 #undef HAVE_PAM_SET_ITEM
154 #undef HAVE_PAM_SETCRED
158 * Do we have <shadow.h>?
165 * Do we have <crypt.h>?
179 * Use <string.h>, <strings.h>, and/or <bstring.h>?
183 #undef HAVE_STRINGS_H
184 #undef HAVE_BSTRING_H
188 * Do we have the long long type?
191 #undef HAVE_LONG_LONG
193 #ifdef HAVE_LONG_LONG
194 # define CUPS_LLFMT "%lld"
195 # define CUPS_LLCAST (long long)
197 # define CUPS_LLFMT "%ld"
198 # define CUPS_LLCAST (long)
199 #endif /* HAVE_LONG_LONG */
203 * Do we have the strtoll() function?
209 # define strtoll(nptr,endptr,base) strtol((nptr), (endptr), (base))
210 #endif /* !HAVE_STRTOLL */
214 * Do we have the strXXX() functions?
223 * Do we have the geteuid() function?
230 * Do we have the setpgid() function?
237 * Do we have the vsyslog() function?
244 * Do we have the systemd journal functions?
247 #undef HAVE_SYSTEMD_SD_JOURNAL_H
251 * Do we have the (v)snprintf() functions?
255 #undef HAVE_VSNPRINTF
259 * What signal functions to use?
263 #undef HAVE_SIGACTION
267 * What wait functions to use?
275 * Do we have the mallinfo function and malloc.h?
283 * Do we have the POSIX ACL functions?
290 * Do we have the langinfo.h header file?
293 #undef HAVE_LANGINFO_H
297 * Which encryption libraries do we have?
307 * Do we have the gnutls_transport_set_pull_timeout_function function?
310 #undef HAVE_GNUTLS_TRANSPORT_SET_PULL_TIMEOUT_FUNCTION
314 * Do we have the gnutls_priority_set_direct function?
317 #undef HAVE_GNUTLS_PRIORITY_SET_DIRECT
321 * What Security framework headers do we have?
324 #undef HAVE_AUTHORIZATION_H
325 #undef HAVE_SECBASEPRIV_H
326 #undef HAVE_SECCERTIFICATE_H
327 #undef HAVE_SECIDENTITYSEARCHPRIV_H
328 #undef HAVE_SECITEM_H
329 #undef HAVE_SECITEMPRIV_H
330 #undef HAVE_SECPOLICY_H
331 #undef HAVE_SECPOLICYPRIV_H
332 #undef HAVE_SECURETRANSPORTPRIV_H
336 * Do we have the cssmErrorString function?
339 #undef HAVE_CSSMERRORSTRING
343 * Do we have the SecGenerateSelfSignedCertificate function?
346 #undef HAVE_SECGENERATESELFSIGNEDCERTIFICATE
350 * Do we have the SecKeychainOpen function?
353 #undef HAVE_SECKEYCHAINOPEN
357 * Do we have (a working) SSLSetEnabledCiphers function?
360 #undef HAVE_SSLSETENABLEDCIPHERS
364 * Do we have libpaper?
371 * Do we have mDNSResponder for DNS Service Discovery (aka Bonjour)?
378 * Do we have Avahi for DNS Service Discovery (aka Bonjour)?
385 * Do we have <sys/ioctl.h>?
388 #undef HAVE_SYS_IOCTL_H
392 * Does the "stat" structure contain the "st_gen" member?
399 * Does the "tm" structure contain the "tm_gmtoff" member?
402 #undef HAVE_TM_GMTOFF
406 * Do we have rresvport_af()?
409 #undef HAVE_RRESVPORT_AF
413 * Do we have getaddrinfo()?
416 #undef HAVE_GETADDRINFO
420 * Do we have getnameinfo()?
423 #undef HAVE_GETNAMEINFO
427 * Do we have getifaddrs()?
430 #undef HAVE_GETIFADDRS
434 * Do we have hstrerror()?
437 #undef HAVE_HSTRERROR
441 * Do we have res_init()?
448 * Do we have <resolv.h>
455 * Do we have the <sys/sockio.h> header file?
458 #undef HAVE_SYS_SOCKIO_H
462 * Does the sockaddr structure contain an sa_len parameter?
465 #undef HAVE_STRUCT_SOCKADDR_SA_LEN
469 * Do we have pthread support?
472 #undef HAVE_PTHREAD_H
476 * Do we have on-demand support (launchd/systemd/upstart)?
483 * Do we have launchd support?
491 * Do we have systemd support?
498 * Do we have upstart support?
505 * Various scripting languages...
509 #define CUPS_JAVA "/usr/bin/java"
511 #define CUPS_PERL "/usr/bin/perl"
513 #define CUPS_PHP "/usr/bin/php"
515 #define CUPS_PYTHON "/usr/bin/python"
519 * Do we have CoreFoundation public and private headers?
522 #undef HAVE_COREFOUNDATION_H
524 #undef HAVE_CFBUNDLEPRIV_H
528 * Do we have ApplicationServices public headers?
531 #undef HAVE_APPLICATIONSERVICES_H
535 * Do we have the SCDynamicStoreCopyComputerName function?
538 #undef HAVE_SCDYNAMICSTORECOPYCOMPUTERNAME
542 * Do we have the getgrouplist() function?
545 #undef HAVE_GETGROUPLIST
549 * Do we have macOS 10.4's mbr_XXX functions?
552 #undef HAVE_MEMBERSHIP_H
553 #undef HAVE_MEMBERSHIPPRIV_H
554 #undef HAVE_MBR_UID_TO_UUID
558 * Do we have Darwin's notify_post header and function?
562 #undef HAVE_NOTIFY_POST
570 #undef HAVE_DBUS_MESSAGE_ITER_INIT_APPEND
571 #undef HAVE_DBUS_THREADS_INIT
575 * Do we have the GSSAPI support library (for Kerberos support)?
578 #undef HAVE_GSS_ACQUIRE_CRED_EX_F
579 #undef HAVE_GSS_C_NT_HOSTBASED_SERVICE
580 #undef HAVE_GSS_GSSAPI_H
581 #undef HAVE_GSS_GSSAPI_SPI_H
583 #undef HAVE_GSSAPI_GSSAPI_H
588 * Default GSS service name...
591 #define CUPS_DEFAULT_GSSSERVICENAME ""
595 * Select/poll interfaces...
604 * Do we have the <dlfcn.h> header?
611 * Do we have <sys/param.h>?
614 #undef HAVE_SYS_PARAM_H
618 * Do we have <sys/ucred.h>?
621 #undef HAVE_SYS_UCRED_H
625 * Do we have removefile()?
628 #undef HAVE_REMOVEFILE
632 * Do we have <sandbox.h>?
635 #undef HAVE_SANDBOX_H
639 * Which random number generator function to use...
642 #undef HAVE_ARC4RANDOM
646 #ifdef HAVE_ARC4RANDOM
647 # define CUPS_RAND() arc4random()
648 # define CUPS_SRAND(v)
649 #elif defined(HAVE_RANDOM)
650 # define CUPS_RAND() random()
651 # define CUPS_SRAND(v) srandom(v)
652 #elif defined(HAVE_LRAND48)
653 # define CUPS_RAND() lrand48()
654 # define CUPS_SRAND(v) srand48(v)
656 # define CUPS_RAND() rand()
657 # define CUPS_SRAND(v) srand(v)
658 #endif /* HAVE_ARC4RANDOM */
669 * Do we have libwrap and tcpd.h?
676 * Do we have <iconv.h>?
683 * Do we have statfs or statvfs and one of the corresponding headers?
688 #undef HAVE_SYS_MOUNT_H
689 #undef HAVE_SYS_STATFS_H
690 #undef HAVE_SYS_STATVFS_H
691 #undef HAVE_SYS_VFS_H
695 * Location of macOS localization bundle, if any.
698 #undef CUPS_BUNDLEDIR
706 #undef HAVE_XPC_PRIVATE_H
710 * Do we have Mini-XML?
717 * Do we have the C99 abs() function?
721 #if !defined(HAVE_ABS) && !defined(abs)
722 # if defined(__GNUC__) || __STDC_VERSION__ >= 199901L
723 # define abs(x) _cups_abs(x)
724 static inline int _cups_abs(int i
) { return (i
< 0 ? -i
: i
); }
725 # elif defined(_MSC_VER)
726 # define abs(x) _cups_abs(x)
727 static __inline
int _cups_abs(int i
) { return (i
< 0 ? -i
: i
); }
729 # define abs(x) ((x) < 0 ? -(x) : (x))
730 # endif /* __GNUC__ || __STDC_VERSION__ */
731 #endif /* !HAVE_ABS && !abs */
733 #endif /* !_CUPS_CONFIG_H_ */