]>
git.ipfire.org Git - thirdparty/cups.git/blob - config.h.in
2 * "$Id: config.h.in 7918 2008-09-08 22:03:01Z 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 * What Security framework headers do we have?
306 #undef HAVE_AUTHORIZATION_H
307 #undef HAVE_SECBASEPRIV_H
308 #undef HAVE_SECCERTIFICATE_H
309 #undef HAVE_SECIDENTITYSEARCHPRIV_H
310 #undef HAVE_SECITEM_H
311 #undef HAVE_SECITEMPRIV_H
312 #undef HAVE_SECPOLICY_H
313 #undef HAVE_SECPOLICYPRIV_H
314 #undef HAVE_SECURETRANSPORTPRIV_H
318 * Do we have the SecCertificateCopyData function?
321 #undef HAVE_SECCERTIFICATECOPYDATA
325 * Do we have the SecIdentitySearchCreateWithPolicy function?
328 #undef HAVE_SECIDENTITYSEARCHCREATEWITHPOLICY
332 * Do we have the SecPolicyCreateSSL function?
335 #undef HAVE_SECPOLICYCREATESSL
339 * Do we have the SecPolicyCreateSSL function?
342 #undef HAVE_SECPOLICYCREATESSL
346 * Do we have the SSLSetProtocolVersionMax function?
349 #undef HAVE_SSLSETPROTOCOLVERSIONMAX
353 * Do we have the cssmErrorString function?
356 #undef HAVE_CSSMERRORSTRING
360 * Do we have the SLP library?
367 * Do we have an LDAP library?
372 #undef HAVE_MOZILLA_LDAP
373 #undef HAVE_LDAP_SSL_H
375 #undef HAVE_LDAP_REBIND_PROC
379 * Do we have libpaper?
386 * Do we have DNS Service Discovery (aka Bonjour)?
393 * Do we have <sys/ioctl.h>?
396 #undef HAVE_SYS_IOCTL_H
400 * Does the "stat" structure contain the "st_gen" member?
407 * Does the "tm" structure contain the "tm_gmtoff" member?
410 #undef HAVE_TM_GMTOFF
414 * Do we have rresvport_af()?
417 #undef HAVE_RRESVPORT_AF
421 * Do we have getaddrinfo()?
424 #undef HAVE_GETADDRINFO
428 * Do we have getnameinfo()?
431 #undef HAVE_GETNAMEINFO
435 * Do we have getifaddrs()?
438 #undef HAVE_GETIFADDRS
442 * Do we have hstrerror()?
445 #undef HAVE_HSTRERROR
449 * Do we have res_init()?
456 * Do we have <resolv.h>
463 * Do we have the <sys/sockio.h> header file?
466 #undef HAVE_SYS_SOCKIO_H
470 * Does the sockaddr structure contain an sa_len parameter?
473 #undef HAVE_STRUCT_SOCKADDR_SA_LEN
477 * Do we have the AIX usersec.h header file?
480 #undef HAVE_USERSEC_H
484 * Do we have pthread support?
487 #undef HAVE_PTHREAD_H
491 * Do we have launchd support?
499 * Various scripting languages...
503 #define CUPS_JAVA "/usr/bin/java"
505 #define CUPS_PERL "/usr/bin/perl"
507 #define CUPS_PHP "/usr/bin/php"
509 #define CUPS_PYTHON "/usr/bin/python"
513 * Location of the poppler/Xpdf pdftops program...
517 #undef HAVE_PDFTOPS_WITH_ORIGPAGESIZES
518 #define CUPS_PDFTOPS "/usr/bin/pdftops"
522 * Location of the Ghostscript gs program...
525 #undef HAVE_GHOSTSCRIPT
526 #undef HAVE_GHOSTSCRIPT_PS2WRITE
527 #define CUPS_GHOSTSCRIPT "/usr/bin/gs"
531 * Do we have Darwin's CoreFoundation and SystemConfiguration frameworks?
534 #undef HAVE_COREFOUNDATION
535 #undef HAVE_SYSTEMCONFIGURATION
539 * Do we have CoreFoundation public and private headers?
542 #undef HAVE_COREFOUNDATION_H
544 #undef HAVE_CFBUNDLEPRIV_H
548 * Do we have ApplicationServices public headers?
551 #undef HAVE_APPLICATIONSERVICES_H
555 * Do we have the SCDynamicStoreCopyComputerName function?
558 #undef HAVE_SCDYNAMICSTORECOPYCOMPUTERNAME
562 * Do we have Mac OS X 10.4's mbr_XXX functions?
565 #undef HAVE_MEMBERSHIP_H
566 #undef HAVE_MEMBERSHIPPRIV_H
567 #undef HAVE_MBR_UID_TO_UUID
571 * Do we have Darwin's notify_post header and function?
575 #undef HAVE_NOTIFY_POST
579 * Do we have Darwin's IOKit private headers?
582 #undef HAVE_IOKIT_PWR_MGT_IOPMLIBPRIVATE_H
590 #undef HAVE_DBUS_MESSAGE_ITER_INIT_APPEND
594 * Do we have the GSSAPI support library (for Kerberos support)?
597 #undef HAVE_GSS_ACQUIRE_CRED_EX_F
598 #undef HAVE_GSS_C_NT_HOSTBASED_SERVICE
599 #undef HAVE_GSS_GSSAPI_H
600 #undef HAVE_GSS_GSSAPI_SPI_H
602 #undef HAVE_GSSAPI_GENERIC_H
603 #undef HAVE_GSSAPI_GSSAPI_H
605 #undef HAVE_GSSAPI_KRB5_H
610 * Default GSS service name...
613 #define CUPS_DEFAULT_GSSSERVICENAME ""
617 * Select/poll interfaces...
626 * Do we have the <dlfcn.h> header?
633 * Do we have <sys/param.h>?
636 #undef HAVE_SYS_PARAM_H
640 * Do we have <sys/ucred.h>?
643 #undef HAVE_SYS_UCRED_H
647 * Do we have removefile()?
650 #undef HAVE_REMOVEFILE
654 * Do we have <sandbox.h>?
657 #undef HAVE_SANDBOX_H
661 * Which random number generator function to use...
664 #undef HAVE_ARC4RANDOM
668 #ifdef HAVE_ARC4RANDOM
669 # define CUPS_RAND() arc4random()
670 # define CUPS_SRAND(v) arc4random_stir()
671 #elif defined(HAVE_RANDOM)
672 # define CUPS_RAND() random()
673 # define CUPS_SRAND(v) srandom(v)
674 #elif defined(HAVE_LRAND48)
675 # define CUPS_RAND() lrand48()
676 # define CUPS_SRAND(v) srand48(v)
678 # define CUPS_RAND() rand()
679 # define CUPS_SRAND(v) srand(v)
680 #endif /* HAVE_ARC4RANDOM */
684 * Do we have vproc_transaction_begin/end?
687 #undef HAVE_VPROC_TRANSACTION_BEGIN
698 * Do we have libwrap and tcpd.h?
705 * Do we have <iconv.h>?
712 * Do we have statfs or statvfs and one of the corresponding headers?
717 #undef HAVE_SYS_MOUNT_H
718 #undef HAVE_SYS_STATFS_H
719 #undef HAVE_SYS_STATVFS_H
720 #undef HAVE_SYS_VFS_H
724 * Location of Mac OS X localization bundle, if any.
727 #undef CUPS_BUNDLEDIR
731 * Do we have the ColorSyncRegisterDevice function?
734 #undef HAVE_COLORSYNCREGISTERDEVICE
744 #endif /* !_CUPS_CONFIG_H_ */
747 * End of "$Id: config.h.in 7918 2008-09-08 22:03:01Z mike $".