]>
git.ipfire.org Git - thirdparty/cups.git/blob - config.h.in
42a2b0f32989f72e3818a2a1c5a1e4ad0fc87de1
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
190 * Do we have the long long type?
193 #undef HAVE_LONG_LONG
195 #ifdef HAVE_LONG_LONG
196 # define CUPS_LLFMT "%lld"
197 # define CUPS_LLCAST (long long)
199 # define CUPS_LLFMT "%ld"
200 # define CUPS_LLCAST (long)
201 #endif /* HAVE_LONG_LONG */
204 * Do we have the strtoll() function?
210 # define strtoll(nptr,endptr,base) strtol((nptr), (endptr), (base))
211 #endif /* !HAVE_STRTOLL */
214 * Do we have the strXXX() functions?
218 #undef HAVE_STRCASECMP
219 #undef HAVE_STRNCASECMP
225 * Do we have the geteuid() function?
232 * Do we have the vsyslog() function?
239 * Do we have the (v)snprintf() functions?
243 #undef HAVE_VSNPRINTF
247 * What signal functions to use?
251 #undef HAVE_SIGACTION
255 * What wait functions to use?
263 * Do we have the mallinfo function and malloc.h?
271 * Do we have the POSIX ACL functions?
278 * Do we have the langinfo.h header file?
281 #undef HAVE_LANGINFO_H
285 * Which encryption libraries do we have?
295 * What Security framework headers do we have?
298 #undef HAVE_AUTHORIZATION_H
299 #undef HAVE_SECCERTIFICATE_H
300 #undef HAVE_SECITEM_H
301 #undef HAVE_SECITEMPRIV_H
302 #undef HAVE_SECPOLICY_H
303 #undef HAVE_SECPOLICYPRIV_H
304 #undef HAVE_SECBASEPRIV_H
305 #undef HAVE_SECIDENTITYSEARCHPRIV_H
309 * Do we have the SecIdentitySearchCreateWithPolicy function?
312 #undef HAVE_SECIDENTITYSEARCHCREATEWITHPOLICY
315 * Do we have the SecPolicyCreateSSL function?
318 #undef HAVE_SECPOLICYCREATESSL
322 * Do we have the SecPolicyCreateSSL function?
325 #undef HAVE_SECPOLICYCREATESSL
329 * Do we have the cssmErrorString function?
332 #undef HAVE_CSSMERRORSTRING
336 * Do we have the SLP library?
343 * Do we have an LDAP library?
348 #undef HAVE_MOZILLA_LDAP
349 #undef HAVE_LDAP_SSL_H
351 #undef HAVE_LDAP_REBIND_PROC
355 * Do we have libpaper?
362 * Do we have DNS Service Discovery (aka Bonjour)?
369 * Do we have <sys/ioctl.h>?
372 #undef HAVE_SYS_IOCTL_H
376 * Does the "stat" structure contain the "st_gen" member?
383 * Does the "tm" structure contain the "tm_gmtoff" member?
386 #undef HAVE_TM_GMTOFF
390 * Do we have rresvport_af()?
393 #undef HAVE_RRESVPORT_AF
397 * Do we have getaddrinfo()?
400 #undef HAVE_GETADDRINFO
404 * Do we have getnameinfo()?
407 #undef HAVE_GETNAMEINFO
411 * Do we have getifaddrs()?
414 #undef HAVE_GETIFADDRS
418 * Do we have hstrerror()?
421 #undef HAVE_HSTRERROR
425 * Do we have res_init()?
432 * Do we have <resolv.h>
439 * Do we have the <sys/sockio.h> header file?
442 #undef HAVE_SYS_SOCKIO_H
446 * Does the sockaddr structure contain an sa_len parameter?
449 #undef HAVE_STRUCT_SOCKADDR_SA_LEN
453 * Do we have the AIX usersec.h header file?
456 #undef HAVE_USERSEC_H
460 * Do we have pthread support?
463 #undef HAVE_PTHREAD_H
467 * Do we have launchd support?
475 * Various scripting languages...
479 #define CUPS_JAVA "/usr/bin/java"
481 #define CUPS_PERL "/usr/bin/perl"
483 #define CUPS_PHP "/usr/bin/php"
485 #define CUPS_PYTHON "/usr/bin/python"
489 * Location of the poppler/Xpdf pdftops program...
493 #define CUPS_PDFTOPS "/usr/bin/pdftops"
497 * Location of the Ghostscript gs program...
500 #undef HAVE_GHOSTSCRIPT
501 #define CUPS_GHOSTSCRIPT "/usr/bin/gs"
505 * Do we have Darwin's CoreFoundation and SystemConfiguration frameworks?
508 #undef HAVE_COREFOUNDATION
509 #undef HAVE_SYSTEMCONFIGURATION
513 * Do we have CoreFoundation public and private headers?
516 #undef HAVE_COREFOUNDATION_H
518 #undef HAVE_CFBUNDLEPRIV_H
522 * Do we have ApplicationServices public headers?
525 #undef HAVE_APPLICATIONSERVICES_H
529 * Do we have the SCDynamicStoreCopyComputerName function?
532 #undef HAVE_SCDYNAMICSTORECOPYCOMPUTERNAME
536 * Do we have MacOSX 10.4's mbr_XXX functions?
539 #undef HAVE_MEMBERSHIP_H
540 #undef HAVE_MEMBERSHIPPRIV_H
541 #undef HAVE_MBR_UID_TO_UUID
545 * Do we have Darwin's notify_post header and function?
549 #undef HAVE_NOTIFY_POST
557 #undef HAVE_DBUS_MESSAGE_ITER_INIT_APPEND
561 * Do we have the AppleTalk/at_proto.h header?
564 #undef HAVE_APPLETALK_AT_PROTO_H
568 * Do we have the GSSAPI support library (for Kerberos support)?
573 #undef HAVE_GSSAPI_GSSAPI_H
574 #undef HAVE_GSSAPI_GSSAPI_GENERIC_H
575 #undef HAVE_GSSAPI_GSSAPI_KRB5_H
576 #undef HAVE_GSSKRB5_REGISTER_ACCEPTOR_IDENTITY
577 #undef HAVE_GSS_C_NT_HOSTBASED_SERVICE
578 #undef HAVE_KRB5_CC_NEW_UNIQUE
579 #undef HAVE_KRB5_IPC_CLIENT_SET_TARGET_UID
585 * Default GSS service name...
588 #define CUPS_DEFAULT_GSSSERVICENAME ""
592 * Select/poll interfaces...
601 * Do we have the <dlfcn.h> header?
608 * Do we have <sys/param.h>?
611 #undef HAVE_SYS_PARAM_H
615 * Do we have <sys/ucred.h>?
618 #undef HAVE_SYS_UCRED_H
622 * Do we have removefile()?
625 #undef HAVE_REMOVEFILE
629 * Do we have <sandbox.h>?
632 #undef HAVE_SANDBOX_H
636 * Which random number generator function to use...
639 #undef HAVE_ARC4RANDOM
643 #ifdef HAVE_ARC4RANDOM
644 # define CUPS_RAND() arc4random()
645 # define CUPS_SRAND(v) arc4random_stir()
646 #elif defined(HAVE_RANDOM)
647 # define CUPS_RAND() random()
648 # define CUPS_SRAND(v) srandom(v)
649 #elif defined(HAVE_LRAND48)
650 # define CUPS_RAND() lrand48()
651 # define CUPS_SRAND(v) srand48(v)
653 # define CUPS_RAND() rand()
654 # define CUPS_SRAND(v) srand(v)
655 #endif /* HAVE_ARC4RANDOM */
659 * Do we have vproc_transaction_begin/end?
662 #undef HAVE_VPROC_TRANSACTION_BEGIN
673 * Do we have libwrap and tcpd.h?
680 * Do we have <iconv.h>?
687 * Do we have statfs or statvfs and one of the corresponding headers?
692 #undef HAVE_SYS_MOUNT_H
693 #undef HAVE_SYS_STATFS_H
694 #undef HAVE_SYS_STATVFS_H
695 #undef HAVE_SYS_VFS_H
699 * Location of Mac OS X localization bundle, if any.
702 #undef CUPS_BUNDLEDIR
706 * Do we have the ColorSyncRegisterDevice function?
709 #undef HAVE_COLORSYNCREGISTERDEVICE
712 #endif /* !_CUPS_CONFIG_H_ */
715 * End of "$Id: config.h.in 7918 2008-09-08 22:03:01Z mike $".