]>
git.ipfire.org Git - thirdparty/cups.git/blob - vc2005/config.h
4 * Configuration file for the Common UNIX Printing System (CUPS).
6 * Copyright 2007-2009 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 * Beginning with VC2005, Microsoft breaks ISO C and POSIX conformance
21 * by deprecating a number of functions in the name of security, even
22 * when many of the affected functions are otherwise completely secure.
23 * The _CRT_SECURE_NO_DEPRECATE definition ensures that we won't get
24 * warnings from their use...
26 * Then Microsoft decided that they should ignore this in VC2008 and use
27 * yet another define (_CRT_SECURE_NO_WARNINGS) instead. Bastards.
30 #define _CRT_SECURE_NO_DEPRECATE
31 #define _CRT_SECURE_NO_WARNINGS
35 * Include necessary headers...
47 * Microsoft also renames the POSIX functions to _name, and introduces
48 * a broken compatibility layer using the original names. As a result,
49 * random crashes can occur when, for example, strdup() allocates memory
50 * from a different heap than used by malloc() and free().
52 * To avoid moronic problems like this, we #define the POSIX function
53 * names to the corresponding non-standard Microsoft names.
59 #define snprintf _snprintf
60 #define strdup _strdup
61 #define vsnprintf _vsnprintf
70 #undef __CHAR_UNSIGNED__
74 * Version of software...
77 #define CUPS_SVERSION "CUPS v1.4b3"
78 #define CUPS_MINIMAL "CUPS/1.4b3"
82 * Default user and groups...
85 #define CUPS_DEFAULT_USER "lp"
86 #define CUPS_DEFAULT_GROUP "sys"
87 #define CUPS_DEFAULT_SYSTEM_GROUPS "admin"
88 #define CUPS_DEFAULT_PRINTOPERATOR_AUTH "@admin @lpadmin"
92 * Default file permissions...
95 #define CUPS_DEFAULT_CONFIG_FILE_PERM 0644
96 #define CUPS_DEFAULT_LOG_FILE_PERM 0644
100 * Default logging settings...
103 #define CUPS_DEFAULT_LOG_LEVEL "warn"
104 #define CUPS_DEFAULT_ACCESS_LOG_LEVEL "actions"
108 * Default fatal error settings...
111 #define CUPS_DEFAULT_FATAL_ERRORS "config"
115 * Default browsing settings...
118 #define CUPS_DEFAULT_BROWSING 1
119 #define CUPS_DEFAULT_BROWSE_LOCAL_PROTOCOLS "CUPS dnssd"
120 #define CUPS_DEFAULT_BROWSE_REMOTE_PROTOCOLS ""
121 #define CUPS_DEFAULT_BROWSE_SHORT_NAMES 1
122 #define CUPS_DEFAULT_DEFAULT_SHARED 1
123 #define CUPS_DEFAULT_IMPLICIT_CLASSES 1
124 #define CUPS_DEFAULT_USE_NETWORK_DEFAULT 0
128 * Default IPP port...
131 #define CUPS_DEFAULT_IPP_PORT 631
135 * Default printcap file...
138 #define CUPS_DEFAULT_PRINTCAP ""
142 * Default Samba and LPD config files...
145 #define CUPS_DEFAULT_SMB_CONFIG_FILE ""
146 #define CUPS_DEFAULT_LPD_CONFIG_FILE ""
150 * Default MaxCopies value...
153 #define CUPS_DEFAULT_MAX_COPIES 9999
157 * Do we have domain socket support?
160 #undef CUPS_DEFAULT_DOMAINSOCKET
164 * Where are files stored?
166 * Note: These are defaults, which can be overridden by environment
167 * variables at run-time...
170 #define CUPS_BINDIR "C:/CUPS/bin"
171 #define CUPS_CACHEDIR "C:/CUPS/cache"
172 #define CUPS_DATADIR "C:/CUPS/share"
173 #define CUPS_DOCROOT "C:/CUPS/share/doc"
174 #define CUPS_FONTPATH "C:/CUPS/share/fonts"
175 #define CUPS_LOCALEDIR "C:/CUPS/locale"
176 #define CUPS_LOGDIR "C:/CUPS/logs"
177 #define CUPS_REQUESTS "C:/CUPS/spool"
178 #define CUPS_SBINDIR "C:/CUPS/sbin"
179 #define CUPS_SERVERBIN "C:/CUPS/lib"
180 #define CUPS_SERVERROOT "C:/CUPS/etc"
181 #define CUPS_STATEDIR "C:/CUPS/run"
185 * Do we have various image libraries?
188 /* #undef HAVE_LIBPNG */
189 /* #undef HAVE_LIBZ */
190 /* #undef HAVE_LIBJPEG */
191 /* #undef HAVE_LIBTIFF */
195 * Do we have PAM stuff?
199 #define HAVE_LIBPAM 0
200 #endif /* !HAVE_LIBPAM */
202 /* #undef HAVE_PAM_PAM_APPL_H */
203 /* #undef HAVE_PAM_SET_ITEM */
204 /* #undef HAVE_PAM_SETCRED */
208 * Do we have <shadow.h>?
211 /* #undef HAVE_SHADOW_H */
215 * Do we have <crypt.h>?
218 /* #undef HAVE_CRYPT_H */
222 * Use <string.h>, <strings.h>, and/or <bstring.h>?
225 #define HAVE_STRING_H 1
226 /* #undef HAVE_STRINGS_H */
227 /* #undef HAVE_BSTRING_H */
231 * Do we have the long long type?
234 /* #undef HAVE_LONG_LONG */
236 #ifdef HAVE_LONG_LONG
237 # define CUPS_LLFMT "%lld"
238 # define CUPS_LLCAST (long long)
240 # define CUPS_LLFMT "%ld"
241 # define CUPS_LLCAST (long)
242 #endif /* HAVE_LONG_LONG */
246 * Do we have the strtoll() function?
249 /* #undef HAVE_STRTOLL */
252 # define strtoll(nptr,endptr,base) strtol((nptr), (endptr), (base))
253 #endif /* !HAVE_STRTOLL */
257 * Do we have the strXXX() functions?
261 #define HAVE_STRCASECMP
262 #define HAVE_STRNCASECMP
263 /* #undef HAVE_STRLCAT */
264 /* #undef HAVE_STRLCPY */
268 * Do we have the geteuid() function?
271 /* #undef HAVE_GETEUID */
275 * Do we have the vsyslog() function?
278 /* #undef HAVE_VSYSLOG */
282 * Do we have the (v)snprintf() functions?
285 #define HAVE_SNPRINTF 1
286 #define HAVE_VSNPRINTF 1
290 * What signal functions to use?
293 /* #undef HAVE_SIGSET */
294 /* #undef HAVE_SIGACTION */
298 * What wait functions to use?
301 /* #undef HAVE_WAITPID */
302 /* #undef HAVE_WAIT3 */
306 * Do we have the mallinfo function and malloc.h?
309 /* #undef HAVE_MALLINFO */
310 /* #undef HAVE_MALLOC_H */
314 * Do we have the POSIX ACL functions?
317 /* #undef HAVE_ACL_INIT */
321 * Do we have the langinfo.h header file?
324 /* #undef HAVE_LANGINFO_H */
328 * Which encryption libraries do we have?
331 /* #undef HAVE_CDSASSL */
332 /* #undef HAVE_GNUTLS */
333 /* #undef HAVE_LIBSSL */
334 /* #undef HAVE_SSL */
338 * What Security framework headers do we have?
341 /* #undef HAVE_AUTHORIZATION_H */
342 /* #undef HAVE_SECPOLICY_H */
343 /* #undef HAVE_SECPOLICYPRIV_H */
344 /* #undef HAVE_SECBASEPRIV_H */
345 /* #undef HAVE_SECIDENTITYSEARCHPRIV_H */
349 * Do we have the SecIdentitySearchCreateWithPolicy function?
352 /* #undef HAVE_SECIDENTITYSEARCHCREATEWITHPOLICY */
356 * Do we have the SLP library?
359 /* #undef HAVE_LIBSLP */
363 * Do we have an LDAP library?
366 /* #undef HAVE_LDAP */
367 /* #undef HAVE_OPENLDAP */
368 /* #undef HAVE_MOZILLA_LDAP */
369 /* #undef HAVE_LDAP_SSL_H */
370 /* #undef HAVE_LDAP_SSL */
371 /* #undef HAVE_LDAP_REBIND_PROC */
375 * Do we have libpaper?
378 /* #undef 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 "tm" structure contain the "tm_gmtoff" member?
399 /* #undef HAVE_TM_GMTOFF */
403 * Do we have rresvport_af()?
406 /* #undef HAVE_RRESVPORT_AF */
410 * Do we have getaddrinfo()?
413 #define HAVE_GETADDRINFO 1
417 * Do we have getnameinfo()?
420 #define HAVE_GETNAMEINFO 1
424 * Do we have getifaddrs()?
427 /* #undef HAVE_GETIFADDRS */
431 * Do we have hstrerror()?
434 /* #undef HAVE_HSTRERROR */
438 * Do we have res_init()?
441 /* #undef HAVE_RES_INIT */
445 * Do we have <resolv.h>
448 /* #undef HAVE_RESOLV_H */
452 * Do we have the <sys/sockio.h> header file?
455 /* #undef HAVE_SYS_SOCKIO_H */
459 * Does the sockaddr structure contain an sa_len parameter?
462 /* #undef HAVE_STRUCT_SOCKADDR_SA_LEN */
466 * Do we have the AIX usersec.h header file?
469 /* #undef HAVE_USERSEC_H */
473 * Do we have pthread support?
476 /* #undef HAVE_PTHREAD_H */
480 * Do we have launchd support?
483 /* #undef HAVE_LAUNCH_H */
484 /* #undef HAVE_LAUNCHD */
485 #define CUPS_DEFAULT_LAUNCHD_CONF ""
489 * Various scripting languages...
492 /* #undef HAVE_JAVA */
494 /* #undef HAVE_PERL */
496 /* #undef HAVE_PHP */
498 /* #undef HAVE_PYTHON */
499 #define CUPS_PYTHON ""
503 * Location of the poppler/Xpdf pdftops program...
506 /* #undef HAVE_PDFTOPS */
507 #define CUPS_PDFTOPS ""
511 * Location of the Ghostscript gs program...
514 /* #undef HAVE_GHOSTSCRIPT */
515 #define CUPS_GHOSTSCRIPT ""
519 * Do we have Darwin's CoreFoundation and SystemConfiguration frameworks?
522 /* #undef HAVE_COREFOUNDATION */
523 /* #undef HAVE_SYSTEMCONFIGURATION */
527 * Do we have CoreFoundation public and private headers?
530 /* #undef HAVE_COREFOUNDATION_H */
531 /* #undef HAVE_CFPRIV_H */
532 /* #undef HAVE_CFBUNDLEPRIV_H */
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?
548 /* #undef HAVE_NOTIFY_H */
549 /* #undef HAVE_NOTIFY_POST */
556 /* #undef HAVE_DBUS */
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)?
571 /* #undef HAVE_GSSAPI */
572 /* #undef HAVE_GSSAPI_H */
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 */
580 /* #undef HAVE_KRB5_H */
581 /* #undef HAVE_HEIMDAL */
585 * Default GSS service name...
588 #define CUPS_DEFAULT_GSSSERVICENAME "ipp"
592 * Select/poll interfaces...
595 /* #undef HAVE_POLL */
596 /* #undef HAVE_EPOLL */
597 /* #undef HAVE_KQUEUE */
601 * Do we have the <dlfcn.h> header?
604 /* #undef HAVE_DLFCN_H */
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_RANDOM */
640 /* #undef HAVE_MRAND48 */
641 /* #undef HAVE_LRAND48 */
645 * Do we have vproc_transaction_begin/end?
648 /* #undef HAVE_VPROC_TRANSACTION_BEGIN */
655 /* #undef HAVE_USB_H */
659 * Do we have libwrap and tcpd.h?
662 /* #undef HAVE_TCPD_H */
665 #endif /* !_CUPS_CONFIG_H_ */