]>
git.ipfire.org Git - thirdparty/cups.git/blob - config.h.in
e5f383e15974f11005e6996ad4f2f5f44986bae4
2 * "$Id: config.h.in 7918 2008-09-08 22:03:01Z mike $"
4 * Configuration file for CUPS.
6 * Copyright 2007-2012 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 ""
66 #define CUPS_DEFAULT_DEFAULT_SHARED 1
73 #define CUPS_DEFAULT_IPP_PORT 631
77 * Default printcap file...
80 #define CUPS_DEFAULT_PRINTCAP "/etc/printcap"
84 * Default Samba and LPD config files...
87 #define CUPS_DEFAULT_SMB_CONFIG_FILE ""
88 #define CUPS_DEFAULT_LPD_CONFIG_FILE ""
92 * Default MaxCopies value...
95 #define CUPS_DEFAULT_MAX_COPIES 100
99 * Do we have domain socket support, and if so what is the default one?
102 #undef CUPS_DEFAULT_DOMAINSOCKET
106 * Default WebInterface value...
109 #undef CUPS_DEFAULT_WEBIF
113 * Where are files stored?
115 * Note: These are defaults, which can be overridden by environment
116 * variables at run-time...
119 #define CUPS_BINDIR "/usr/bin"
120 #define CUPS_CACHEDIR "/var/cache/cups"
121 #define CUPS_DATADIR "/usr/share/cups"
122 #define CUPS_DOCROOT "/usr/share/doc/cups"
123 #define CUPS_FONTPATH "/usr/share/cups/fonts"
124 #define CUPS_LOCALEDIR "/usr/share/locale"
125 #define CUPS_LOGDIR "/var/logs/cups"
126 #define CUPS_REQUESTS "/var/spool/cups"
127 #define CUPS_SBINDIR "/usr/sbin"
128 #define CUPS_SERVERBIN "/usr/lib/cups"
129 #define CUPS_SERVERROOT "/etc/cups"
130 #define CUPS_STATEDIR "/var/run/cups"
134 * Do we have various image libraries?
144 * Do we have PAM stuff?
148 #define HAVE_LIBPAM 0
149 #endif /* !HAVE_LIBPAM */
151 #undef HAVE_PAM_PAM_APPL_H
152 #undef HAVE_PAM_SET_ITEM
153 #undef HAVE_PAM_SETCRED
157 * Do we have <shadow.h>?
164 * Do we have <crypt.h>?
171 * Do we have <scsi/sg.h>?
174 #undef HAVE_SCSI_SG_H
178 * Use <string.h>, <strings.h>, and/or <bstring.h>?
182 #undef HAVE_STRINGS_H
183 #undef HAVE_BSTRING_H
187 * Do we have the long long type?
190 #undef HAVE_LONG_LONG
192 #ifdef HAVE_LONG_LONG
193 # define CUPS_LLFMT "%lld"
194 # define CUPS_LLCAST (long long)
196 # define CUPS_LLFMT "%ld"
197 # define CUPS_LLCAST (long)
198 #endif /* HAVE_LONG_LONG */
202 * Do we have the strtoll() function?
208 # define strtoll(nptr,endptr,base) strtol((nptr), (endptr), (base))
209 #endif /* !HAVE_STRTOLL */
213 * Do we have the strXXX() functions?
222 * Do we have the geteuid() function?
229 * Do we have the setpgid() function?
236 * Do we have the vsyslog() function?
243 * Do we have the (v)snprintf() functions?
247 #undef HAVE_VSNPRINTF
251 * What signal functions to use?
255 #undef HAVE_SIGACTION
259 * What wait functions to use?
267 * Do we have the mallinfo function and malloc.h?
275 * Do we have the POSIX ACL functions?
282 * Do we have the langinfo.h header file?
285 #undef HAVE_LANGINFO_H
289 * Which encryption libraries do we have?
299 * What Security framework headers do we have?
302 #undef HAVE_AUTHORIZATION_H
303 #undef HAVE_SECBASEPRIV_H
304 #undef HAVE_SECCERTIFICATE_H
305 #undef HAVE_SECIDENTITYSEARCHPRIV_H
306 #undef HAVE_SECITEM_H
307 #undef HAVE_SECITEMPRIV_H
308 #undef HAVE_SECPOLICY_H
309 #undef HAVE_SECPOLICYPRIV_H
310 #undef HAVE_SECURETRANSPORTPRIV_H
314 * Do we have the SecCertificateCopyData function?
317 #undef HAVE_SECCERTIFICATECOPYDATA
321 * Do we have the SecIdentitySearchCreateWithPolicy function?
324 #undef HAVE_SECIDENTITYSEARCHCREATEWITHPOLICY
328 * Do we have the SecPolicyCreateSSL function?
331 #undef HAVE_SECPOLICYCREATESSL
335 * Do we have the SecPolicyCreateSSL function?
338 #undef HAVE_SECPOLICYCREATESSL
342 * Do we have the SSLSetProtocolVersionMax function?
345 #undef HAVE_SSLSETPROTOCOLVERSIONMAX
349 * Do we have the cssmErrorString function?
352 #undef HAVE_CSSMERRORSTRING
356 * Do we have the SLP library?
363 * Do we have an LDAP library?
368 #undef HAVE_MOZILLA_LDAP
369 #undef HAVE_LDAP_SSL_H
371 #undef HAVE_LDAP_REBIND_PROC
375 * Do we have libpaper?
382 * Do we have DNS Service Discovery (aka Bonjour)?
389 * Do we have <sys/ioctl.h>?
392 #undef HAVE_SYS_IOCTL_H
396 * Does the "stat" structure contain the "st_gen" member?
403 * Does the "tm" structure contain the "tm_gmtoff" member?
406 #undef HAVE_TM_GMTOFF
410 * Do we have rresvport_af()?
413 #undef HAVE_RRESVPORT_AF
417 * Do we have getaddrinfo()?
420 #undef HAVE_GETADDRINFO
424 * Do we have getnameinfo()?
427 #undef HAVE_GETNAMEINFO
431 * Do we have getifaddrs()?
434 #undef HAVE_GETIFADDRS
438 * Do we have hstrerror()?
441 #undef HAVE_HSTRERROR
445 * Do we have res_init()?
452 * Do we have <resolv.h>
459 * Do we have the <sys/sockio.h> header file?
462 #undef HAVE_SYS_SOCKIO_H
466 * Does the sockaddr structure contain an sa_len parameter?
469 #undef HAVE_STRUCT_SOCKADDR_SA_LEN
473 * Do we have the AIX usersec.h header file?
476 #undef HAVE_USERSEC_H
480 * Do we have pthread support?
483 #undef HAVE_PTHREAD_H
487 * Do we have launchd support?
495 * Various scripting languages...
499 #define CUPS_JAVA "/usr/bin/java"
501 #define CUPS_PERL "/usr/bin/perl"
503 #define CUPS_PHP "/usr/bin/php"
505 #define CUPS_PYTHON "/usr/bin/python"
509 * Location of the poppler/Xpdf pdftops program...
513 #undef HAVE_PDFTOPS_WITH_ORIGPAGESIZES
514 #define CUPS_PDFTOPS "/usr/bin/pdftops"
518 * Location of the Ghostscript gs program...
521 #undef HAVE_GHOSTSCRIPT
522 #undef HAVE_GHOSTSCRIPT_PS2WRITE
523 #define CUPS_GHOSTSCRIPT "/usr/bin/gs"
527 * Do we have Darwin's CoreFoundation and SystemConfiguration frameworks?
530 #undef HAVE_COREFOUNDATION
531 #undef HAVE_SYSTEMCONFIGURATION
535 * Do we have CoreFoundation public and private headers?
538 #undef HAVE_COREFOUNDATION_H
540 #undef HAVE_CFBUNDLEPRIV_H
544 * Do we have ApplicationServices public headers?
547 #undef HAVE_APPLICATIONSERVICES_H
551 * Do we have the SCDynamicStoreCopyComputerName function?
554 #undef HAVE_SCDYNAMICSTORECOPYCOMPUTERNAME
558 * Do we have Mac OS X 10.4's mbr_XXX functions?
561 #undef HAVE_MEMBERSHIP_H
562 #undef HAVE_MEMBERSHIPPRIV_H
563 #undef HAVE_MBR_UID_TO_UUID
567 * Do we have Darwin's notify_post header and function?
571 #undef HAVE_NOTIFY_POST
575 * Do we have Darwin's IOKit private headers?
578 #undef HAVE_IOKIT_PWR_MGT_IOPMLIBPRIVATE_H
586 #undef HAVE_DBUS_MESSAGE_ITER_INIT_APPEND
590 * Do we have the GSSAPI support library (for Kerberos support)?
593 #undef HAVE_GSS_ACQUIRE_CRED_EX_F
594 #undef HAVE_GSS_C_NT_HOSTBASED_SERVICE
595 #undef HAVE_GSS_GSSAPI_H
596 #undef HAVE_GSS_GSSAPI_SPI_H
598 #undef HAVE_GSSAPI_GENERIC_H
599 #undef HAVE_GSSAPI_GSSAPI_H
601 #undef HAVE_GSSAPI_KRB5_H
606 * Default GSS service name...
609 #define CUPS_DEFAULT_GSSSERVICENAME ""
613 * Select/poll interfaces...
622 * Do we have the <dlfcn.h> header?
629 * Do we have <sys/param.h>?
632 #undef HAVE_SYS_PARAM_H
636 * Do we have <sys/ucred.h>?
639 #undef HAVE_SYS_UCRED_H
643 * Do we have removefile()?
646 #undef HAVE_REMOVEFILE
650 * Do we have <sandbox.h>?
653 #undef HAVE_SANDBOX_H
657 * Which random number generator function to use...
660 #undef HAVE_ARC4RANDOM
664 #ifdef HAVE_ARC4RANDOM
665 # define CUPS_RAND() arc4random()
666 # define CUPS_SRAND(v) arc4random_stir()
667 #elif defined(HAVE_RANDOM)
668 # define CUPS_RAND() random()
669 # define CUPS_SRAND(v) srandom(v)
670 #elif defined(HAVE_LRAND48)
671 # define CUPS_RAND() lrand48()
672 # define CUPS_SRAND(v) srand48(v)
674 # define CUPS_RAND() rand()
675 # define CUPS_SRAND(v) srand(v)
676 #endif /* HAVE_ARC4RANDOM */
680 * Do we have vproc_transaction_begin/end?
683 #undef HAVE_VPROC_TRANSACTION_BEGIN
694 * Do we have libwrap and tcpd.h?
701 * Do we have <iconv.h>?
708 * Do we have statfs or statvfs and one of the corresponding headers?
713 #undef HAVE_SYS_MOUNT_H
714 #undef HAVE_SYS_STATFS_H
715 #undef HAVE_SYS_STATVFS_H
716 #undef HAVE_SYS_VFS_H
720 * Location of Mac OS X localization bundle, if any.
723 #undef CUPS_BUNDLEDIR
727 * Do we have the ColorSyncRegisterDevice function?
730 #undef HAVE_COLORSYNCREGISTERDEVICE
741 * Do we have Mini-XML?
747 #endif /* !_CUPS_CONFIG_H_ */
750 * End of "$Id: config.h.in 7918 2008-09-08 22:03:01Z mike $".