2 * "$Id: config.h.in 10371 2012-03-21 04:45:48Z mike $"
4 * Configuration file for CUPS.
6 * Copyright 2007-2011 by Apple Inc.
7 * Copyright 1997-2007 by Easy Software Products.
9 * These coded instructions, statements, and computer programs are the
10 * property of Apple Inc. and are protected by Federal copyright
11 * law. Distribution and use rights are outlined in the file "LICENSE.txt"
12 * which should have been included with this file. If this file is
13 * file is missing or damaged, see the license at "http://www.cups.org/".
16 #ifndef _CUPS_CONFIG_H_
17 #define _CUPS_CONFIG_H_
20 * Version of software...
23 #define CUPS_SVERSION ""
24 #define CUPS_MINIMAL ""
28 * Default user and groups...
31 #define CUPS_DEFAULT_USER "lp"
32 #define CUPS_DEFAULT_GROUP "sys"
33 #define CUPS_DEFAULT_SYSTEM_GROUPS "sys root system"
34 #define CUPS_DEFAULT_PRINTOPERATOR_AUTH "@SYSTEM"
38 * Default file permissions...
41 #define CUPS_DEFAULT_CONFIG_FILE_PERM 0640
42 #define CUPS_DEFAULT_LOG_FILE_PERM 0644
46 * Default logging settings...
49 #define CUPS_DEFAULT_LOG_LEVEL "warn"
50 #define CUPS_DEFAULT_ACCESS_LOG_LEVEL "actions"
54 * Default fatal error settings...
57 #define CUPS_DEFAULT_FATAL_ERRORS "config"
61 * Default browsing settings...
64 #define CUPS_DEFAULT_BROWSING 1
65 #define CUPS_DEFAULT_BROWSE_LOCAL_PROTOCOLS "CUPS"
66 #define CUPS_DEFAULT_BROWSE_REMOTE_PROTOCOLS "CUPS"
67 #define CUPS_DEFAULT_BROWSE_SHORT_NAMES 1
68 #define CUPS_DEFAULT_DEFAULT_SHARED 1
69 #define CUPS_DEFAULT_IMPLICIT_CLASSES 1
70 #define CUPS_DEFAULT_USE_NETWORK_DEFAULT 1
77 #define CUPS_DEFAULT_IPP_PORT 631
81 * Default printcap file...
84 #define CUPS_DEFAULT_PRINTCAP "/etc/printcap"
88 * Default Samba and LPD config files...
91 #define CUPS_DEFAULT_SMB_CONFIG_FILE ""
92 #define CUPS_DEFAULT_LPD_CONFIG_FILE ""
96 * Default MaxCopies value...
99 #define CUPS_DEFAULT_MAX_COPIES 100
103 * Do we have domain socket support, and if so what is the default one?
106 #undef CUPS_DEFAULT_DOMAINSOCKET
110 * Default WebInterface value...
113 #undef CUPS_DEFAULT_WEBIF
117 * Where are files stored?
119 * Note: These are defaults, which can be overridden by environment
120 * variables at run-time...
123 #define CUPS_BINDIR "/usr/bin"
124 #define CUPS_CACHEDIR "/var/cache/cups"
125 #define CUPS_DATADIR "/usr/share/cups"
126 #define CUPS_DOCROOT "/usr/share/doc/cups"
127 #define CUPS_FONTPATH "/usr/share/cups/fonts"
128 #define CUPS_LOCALEDIR "/usr/share/locale"
129 #define CUPS_LOGDIR "/var/logs/cups"
130 #define CUPS_REQUESTS "/var/spool/cups"
131 #define CUPS_SBINDIR "/usr/sbin"
132 #define CUPS_SERVERBIN "/usr/lib/cups"
133 #define CUPS_SERVERROOT "/etc/cups"
134 #define CUPS_STATEDIR "/var/run/cups"
138 * Do we have various image libraries?
148 * Do we have PAM stuff?
152 #define HAVE_LIBPAM 0
153 #endif /* !HAVE_LIBPAM */
155 #undef HAVE_PAM_PAM_APPL_H
156 #undef HAVE_PAM_SET_ITEM
157 #undef HAVE_PAM_SETCRED
161 * Do we have <shadow.h>?
168 * Do we have <crypt.h>?
175 * Do we have <scsi/sg.h>?
178 #undef HAVE_SCSI_SG_H
182 * Use <string.h>, <strings.h>, and/or <bstring.h>?
186 #undef HAVE_STRINGS_H
187 #undef HAVE_BSTRING_H
191 * Do we have the long long type?
194 #undef HAVE_LONG_LONG
196 #ifdef HAVE_LONG_LONG
197 # define CUPS_LLFMT "%lld"
198 # define CUPS_LLCAST (long long)
200 # define CUPS_LLFMT "%ld"
201 # define CUPS_LLCAST (long)
202 #endif /* HAVE_LONG_LONG */
206 * Do we have the strtoll() function?
212 # define strtoll(nptr,endptr,base) strtol((nptr), (endptr), (base))
213 #endif /* !HAVE_STRTOLL */
217 * Do we have the strXXX() functions?
226 * Do we have the geteuid() function?
233 * Do we have the setpgid() function?
240 * Do we have the vsyslog() function?
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 SSL_set_tlsext_host_name function?
306 #undef HAVE_SSL_SET_TLSEXT_HOST_NAME
310 * What Security framework headers do we have?
313 #undef HAVE_AUTHORIZATION_H
314 #undef HAVE_SECBASEPRIV_H
315 #undef HAVE_SECCERTIFICATE_H
316 #undef HAVE_SECIDENTITYSEARCHPRIV_H
317 #undef HAVE_SECITEM_H
318 #undef HAVE_SECITEMPRIV_H
319 #undef HAVE_SECPOLICY_H
320 #undef HAVE_SECPOLICYPRIV_H
321 #undef HAVE_SECURETRANSPORTPRIV_H
325 * Do we have the SecCertificateCopyData function?
328 #undef HAVE_SECCERTIFICATECOPYDATA
332 * Do we have the SecIdentitySearchCreateWithPolicy function?
335 #undef HAVE_SECIDENTITYSEARCHCREATEWITHPOLICY
339 * Do we have the SecPolicyCreateSSL function?
342 #undef HAVE_SECPOLICYCREATESSL
346 * Do we have the SecPolicyCreateSSL function?
349 #undef HAVE_SECPOLICYCREATESSL
353 * Do we have the SSLSetProtocolVersionMax function?
356 #undef HAVE_SSLSETPROTOCOLVERSIONMAX
360 * Do we have the cssmErrorString function?
363 #undef HAVE_CSSMERRORSTRING
367 * Do we have the SLP library?
374 * Do we have an LDAP library?
379 #undef HAVE_MOZILLA_LDAP
380 #undef HAVE_LDAP_SSL_H
382 #undef HAVE_LDAP_REBIND_PROC
386 * Do we have libpaper?
393 * Do we have DNS Service Discovery (aka Bonjour)?
400 * Do we have <sys/ioctl.h>?
403 #undef HAVE_SYS_IOCTL_H
407 * Does the "stat" structure contain the "st_gen" member?
414 * Does the "tm" structure contain the "tm_gmtoff" member?
417 #undef HAVE_TM_GMTOFF
421 * Do we have rresvport_af()?
424 #undef HAVE_RRESVPORT_AF
428 * Do we have getaddrinfo()?
431 #undef HAVE_GETADDRINFO
435 * Do we have getnameinfo()?
438 #undef HAVE_GETNAMEINFO
442 * Do we have getifaddrs()?
445 #undef HAVE_GETIFADDRS
449 * Do we have hstrerror()?
452 #undef HAVE_HSTRERROR
456 * Do we have res_init()?
463 * Do we have <resolv.h>
470 * Do we have the <sys/sockio.h> header file?
473 #undef HAVE_SYS_SOCKIO_H
477 * Does the sockaddr structure contain an sa_len parameter?
480 #undef HAVE_STRUCT_SOCKADDR_SA_LEN
484 * Do we have the AIX usersec.h header file?
487 #undef HAVE_USERSEC_H
491 * Do we have pthread support?
494 #undef HAVE_PTHREAD_H
498 * Do we have launchd support?
506 * Do we have systemd support?
513 * Various scripting languages...
517 #define CUPS_JAVA "/usr/bin/java"
519 #define CUPS_PERL "/usr/bin/perl"
521 #define CUPS_PHP "/usr/bin/php"
523 #define CUPS_PYTHON "/usr/bin/python"
527 * Location of the poppler/Xpdf pdftops program...
531 #undef HAVE_PDFTOPS_WITH_ORIGPAGESIZES
532 #define CUPS_PDFTOPS "/usr/bin/pdftops"
536 * Location of the Ghostscript gs program...
539 #undef HAVE_GHOSTSCRIPT
540 #undef HAVE_GHOSTSCRIPT_PS2WRITE
541 #define CUPS_GHOSTSCRIPT "/usr/bin/gs"
545 * Do we have Darwin's CoreFoundation and SystemConfiguration frameworks?
548 #undef HAVE_COREFOUNDATION
549 #undef HAVE_SYSTEMCONFIGURATION
553 * Do we have CoreFoundation public and private headers?
556 #undef HAVE_COREFOUNDATION_H
558 #undef HAVE_CFBUNDLEPRIV_H
562 * Do we have ApplicationServices public headers?
565 #undef HAVE_APPLICATIONSERVICES_H
569 * Do we have the SCDynamicStoreCopyComputerName function?
572 #undef HAVE_SCDYNAMICSTORECOPYCOMPUTERNAME
576 * Do we have Mac OS X 10.4's mbr_XXX functions?
579 #undef HAVE_MEMBERSHIP_H
580 #undef HAVE_MEMBERSHIPPRIV_H
581 #undef HAVE_MBR_UID_TO_UUID
585 * Do we have Darwin's notify_post header and function?
589 #undef HAVE_NOTIFY_POST
593 * Do we have Darwin's IOKit private headers?
596 #undef HAVE_IOKIT_PWR_MGT_IOPMLIBPRIVATE_H
604 #undef HAVE_DBUS_MESSAGE_ITER_INIT_APPEND
608 * Do we have the GSSAPI support library (for Kerberos support)?
611 #undef HAVE_GSS_ACQUIRE_CRED_EX_F
612 #undef HAVE_GSS_C_NT_HOSTBASED_SERVICE
613 #undef HAVE_GSS_GSSAPI_H
614 #undef HAVE_GSS_GSSAPI_SPI_H
616 #undef HAVE_GSSAPI_GENERIC_H
617 #undef HAVE_GSSAPI_GSSAPI_H
619 #undef HAVE_GSSAPI_KRB5_H
624 * Default GSS service name...
627 #define CUPS_DEFAULT_GSSSERVICENAME ""
631 * Select/poll interfaces...
640 * Do we have the <dlfcn.h> header?
647 * Do we have <sys/param.h>?
650 #undef HAVE_SYS_PARAM_H
654 * Do we have <sys/ucred.h>?
657 #undef HAVE_SYS_UCRED_H
661 * Do we have removefile()?
664 #undef HAVE_REMOVEFILE
668 * Do we have <sandbox.h>?
671 #undef HAVE_SANDBOX_H
675 * Which random number generator function to use...
678 #undef HAVE_ARC4RANDOM
682 #ifdef HAVE_ARC4RANDOM
683 # define CUPS_RAND() arc4random()
684 # define CUPS_SRAND(v) arc4random_stir()
685 #elif defined(HAVE_RANDOM)
686 # define CUPS_RAND() random()
687 # define CUPS_SRAND(v) srandom(v)
688 #elif defined(HAVE_LRAND48)
689 # define CUPS_RAND() lrand48()
690 # define CUPS_SRAND(v) srand48(v)
692 # define CUPS_RAND() rand()
693 # define CUPS_SRAND(v) srand(v)
694 #endif /* HAVE_ARC4RANDOM */
698 * Do we have vproc_transaction_begin/end?
701 #undef HAVE_VPROC_TRANSACTION_BEGIN
712 * Do we have libwrap and tcpd.h?
719 * Do we have <iconv.h>?
726 * Do we have statfs or statvfs and one of the corresponding headers?
731 #undef HAVE_SYS_MOUNT_H
732 #undef HAVE_SYS_STATFS_H
733 #undef HAVE_SYS_STATVFS_H
734 #undef HAVE_SYS_VFS_H
738 * Location of Mac OS X localization bundle, if any.
741 #undef CUPS_BUNDLEDIR
745 * Do we have the ColorSyncRegisterDevice function?
748 #undef HAVE_COLORSYNCREGISTERDEVICE
758 #endif /* !_CUPS_CONFIG_H_ */
761 * End of "$Id: config.h.in 10371 2012-03-21 04:45:48Z mike $".