]> git.ipfire.org Git - thirdparty/cups.git/blame - vc2005/config.h
Merge changes from CUPS 1.4svn-r8639.
[thirdparty/cups.git] / vc2005 / config.h
CommitLineData
536bc2c6
MS
1/*
2 * "$Id$"
3 *
4 * Configuration file for the Common UNIX Printing System (CUPS).
5 *
6 * Copyright 2007-2009 by Apple Inc.
7 * Copyright 1997-2007 by Easy Software Products.
8 *
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/".
14 */
15
16#ifndef _CUPS_CONFIG_H_
17#define _CUPS_CONFIG_H_
18
19/*
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...
25 *
26 * Then Microsoft decided that they should ignore this in VC2008 and use
27 * yet another define (_CRT_SECURE_NO_WARNINGS) instead. Bastards.
28 */
29
30#define _CRT_SECURE_NO_DEPRECATE
31#define _CRT_SECURE_NO_WARNINGS
32
33
34/*
35 * Include necessary headers...
36 */
37
38#include <stdio.h>
39#include <stdlib.h>
40#include <string.h>
41#include <stdarg.h>
42#include <ctype.h>
43#include <io.h>
44
45
46/*
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().
51 *
52 * To avoid moronic problems like this, we #define the POSIX function
53 * names to the corresponding non-standard Microsoft names.
54 */
55
56#define close _close
57#define open _open
58#define read _read
59#define snprintf _snprintf
60#define strdup _strdup
61#define vsnprintf _vsnprintf
62#define write _write
63
64
65/*
66 * Compiler stuff...
67 */
68
69#undef const
70#undef __CHAR_UNSIGNED__
71
72
73/*
74 * Version of software...
75 */
76
77#define CUPS_SVERSION "CUPS v1.4b3"
78#define CUPS_MINIMAL "CUPS/1.4b3"
79
80
81/*
82 * Default user and groups...
83 */
84
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"
89
90
91/*
92 * Default file permissions...
93 */
94
95#define CUPS_DEFAULT_CONFIG_FILE_PERM 0644
96#define CUPS_DEFAULT_LOG_FILE_PERM 0644
97
98
99/*
100 * Default logging settings...
101 */
102
103#define CUPS_DEFAULT_LOG_LEVEL "warn"
104#define CUPS_DEFAULT_ACCESS_LOG_LEVEL "actions"
105
106
107/*
108 * Default fatal error settings...
109 */
110
111#define CUPS_DEFAULT_FATAL_ERRORS "config"
112
113
114/*
115 * Default browsing settings...
116 */
117
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
125
126
127/*
128 * Default IPP port...
129 */
130
131#define CUPS_DEFAULT_IPP_PORT 631
132
133
134/*
135 * Default printcap file...
136 */
137
138#define CUPS_DEFAULT_PRINTCAP ""
139
140
141/*
142 * Default Samba and LPD config files...
143 */
144
145#define CUPS_DEFAULT_SMB_CONFIG_FILE ""
146#define CUPS_DEFAULT_LPD_CONFIG_FILE ""
147
148
149/*
150 * Default MaxCopies value...
151 */
152
153#define CUPS_DEFAULT_MAX_COPIES 9999
154
155
156/*
157 * Do we have domain socket support?
158 */
159
160#undef CUPS_DEFAULT_DOMAINSOCKET
161
162
163/*
164 * Where are files stored?
165 *
166 * Note: These are defaults, which can be overridden by environment
167 * variables at run-time...
168 */
169
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"
182
183
184/*
185 * Do we have various image libraries?
186 */
187
188/* #undef HAVE_LIBPNG */
189/* #undef HAVE_LIBZ */
190/* #undef HAVE_LIBJPEG */
191/* #undef HAVE_LIBTIFF */
192
193
194/*
195 * Do we have PAM stuff?
196 */
197
198#ifndef HAVE_LIBPAM
199#define HAVE_LIBPAM 0
200#endif /* !HAVE_LIBPAM */
201
202/* #undef HAVE_PAM_PAM_APPL_H */
203/* #undef HAVE_PAM_SET_ITEM */
204/* #undef HAVE_PAM_SETCRED */
205
206
207/*
208 * Do we have <shadow.h>?
209 */
210
211/* #undef HAVE_SHADOW_H */
212
213
214/*
215 * Do we have <crypt.h>?
216 */
217
218/* #undef HAVE_CRYPT_H */
219
220
221/*
222 * Use <string.h>, <strings.h>, and/or <bstring.h>?
223 */
224
225#define HAVE_STRING_H 1
226/* #undef HAVE_STRINGS_H */
227/* #undef HAVE_BSTRING_H */
228
229
230/*
231 * Do we have the long long type?
232 */
233
234/* #undef HAVE_LONG_LONG */
235
236#ifdef HAVE_LONG_LONG
237# define CUPS_LLFMT "%lld"
238# define CUPS_LLCAST (long long)
239#else
240# define CUPS_LLFMT "%ld"
241# define CUPS_LLCAST (long)
242#endif /* HAVE_LONG_LONG */
243
244
245/*
246 * Do we have the strtoll() function?
247 */
248
249/* #undef HAVE_STRTOLL */
250
251#ifndef HAVE_STRTOLL
252# define strtoll(nptr,endptr,base) strtol((nptr), (endptr), (base))
253#endif /* !HAVE_STRTOLL */
254
255
256/*
257 * Do we have the strXXX() functions?
258 */
259
260#define HAVE_STRDUP
261#define HAVE_STRCASECMP
262#define HAVE_STRNCASECMP
263/* #undef HAVE_STRLCAT */
264/* #undef HAVE_STRLCPY */
265
266
267/*
268 * Do we have the geteuid() function?
269 */
270
271/* #undef HAVE_GETEUID */
272
273
274/*
275 * Do we have the vsyslog() function?
276 */
277
278/* #undef HAVE_VSYSLOG */
279
280
281/*
282 * Do we have the (v)snprintf() functions?
283 */
284
285#define HAVE_SNPRINTF 1
286#define HAVE_VSNPRINTF 1
287
288
289/*
290 * What signal functions to use?
291 */
292
293/* #undef HAVE_SIGSET */
294/* #undef HAVE_SIGACTION */
295
296
297/*
298 * What wait functions to use?
299 */
300
301/* #undef HAVE_WAITPID */
302/* #undef HAVE_WAIT3 */
303
304
305/*
306 * Do we have the mallinfo function and malloc.h?
307 */
308
309/* #undef HAVE_MALLINFO */
310/* #undef HAVE_MALLOC_H */
311
312
313/*
314 * Do we have the POSIX ACL functions?
315 */
316
317/* #undef HAVE_ACL_INIT */
318
319
320/*
321 * Do we have the langinfo.h header file?
322 */
323
324/* #undef HAVE_LANGINFO_H */
325
326
327/*
328 * Which encryption libraries do we have?
329 */
330
331/* #undef HAVE_CDSASSL */
332/* #undef HAVE_GNUTLS */
333/* #undef HAVE_LIBSSL */
334/* #undef HAVE_SSL */
335
336
337/*
338 * What Security framework headers do we have?
339 */
340
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 */
346
347
348/*
349 * Do we have the SecIdentitySearchCreateWithPolicy function?
350 */
351
352/* #undef HAVE_SECIDENTITYSEARCHCREATEWITHPOLICY */
353
354
355/*
356 * Do we have the SLP library?
357 */
358
359/* #undef HAVE_LIBSLP */
360
361
362/*
363 * Do we have an LDAP library?
364 */
365
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 */
372
373
374/*
375 * Do we have libpaper?
376 */
377
378/* #undef HAVE_LIBPAPER */
379
380
381/*
382 * Do we have DNS Service Discovery (aka Bonjour)?
383 */
384
385#define HAVE_DNSSD 1
386
387
388/*
389 * Do we have Darwin's CoreFoundation and SystemConfiguration frameworks?
390 */
391
392/* #undef HAVE_COREFOUNDATION */
393/* #undef HAVE_SYSTEMCONFIGURATION */
394
395
396/*
397 * Do we have <sys/ioctl.h>?
398 */
399
400/* #undef HAVE_SYS_IOCTL_H */
401
402
403/*
404 * Do we have mkstemp() and/or mkstemps()?
405 */
406
407/* #undef HAVE_MKSTEMP */
408/* #undef HAVE_MKSTEMPS */
409
410
411/*
412 * Does the "tm" structure contain the "tm_gmtoff" member?
413 */
414
415/* #undef HAVE_TM_GMTOFF */
416
417
418/*
419 * Do we have rresvport_af()?
420 */
421
422/* #undef HAVE_RRESVPORT_AF */
423
424
425/*
426 * Do we have getaddrinfo()?
427 */
428
429#define HAVE_GETADDRINFO 1
430
431
432/*
433 * Do we have getnameinfo()?
434 */
435
436#define HAVE_GETNAMEINFO 1
437
438
439/*
440 * Do we have getifaddrs()?
441 */
442
443/* #undef HAVE_GETIFADDRS */
444
445
446/*
447 * Do we have hstrerror()?
448 */
449
450/* #undef HAVE_HSTRERROR */
451
452
453/*
454 * Do we have res_init()?
455 */
456
457/* #undef HAVE_RES_INIT */
458
459
460/*
461 * Do we have <resolv.h>
462 */
463
464/* #undef HAVE_RESOLV_H */
465
466
467/*
468 * Do we have the <sys/sockio.h> header file?
469 */
470
471/* #undef HAVE_SYS_SOCKIO_H */
472
473
474/*
475 * Does the sockaddr structure contain an sa_len parameter?
476 */
477
478/* #undef HAVE_STRUCT_SOCKADDR_SA_LEN */
479
480
481/*
482 * Do we have the AIX usersec.h header file?
483 */
484
485/* #undef HAVE_USERSEC_H */
486
487
488/*
489 * Do we have pthread support?
490 */
491
492/* #undef HAVE_PTHREAD_H */
493
494
495/*
496 * Do we have launchd support?
497 */
498
499/* #undef HAVE_LAUNCH_H */
500/* #undef HAVE_LAUNCHD */
501#define CUPS_DEFAULT_LAUNCHD_CONF ""
502
503
504/*
505 * Various scripting languages...
506 */
507
508/* #undef HAVE_JAVA */
509#define CUPS_JAVA ""
510/* #undef HAVE_PERL */
511#define CUPS_PERL ""
512/* #undef HAVE_PHP */
513#define CUPS_PHP ""
514/* #undef HAVE_PYTHON */
515#define CUPS_PYTHON ""
516
517
518/*
519 * Location of the poppler/Xpdf pdftops program...
520 */
521
522/* #undef HAVE_PDFTOPS */
523#define CUPS_PDFTOPS ""
524
525
526/*
527 * Location of the Ghostscript gs program...
528 */
529
530/* #undef HAVE_GHOSTSCRIPT */
531#define CUPS_GHOSTSCRIPT ""
532
533
534/*
535 * Do we have Darwin's CoreFoundation and SystemConfiguration frameworks?
536 */
537
538/* #undef HAVE_COREFOUNDATION */
539/* #undef HAVE_SYSTEMCONFIGURATION */
540
541
542/*
543 * Do we have CoreFoundation public and private headers?
544 */
545
546/* #undef HAVE_COREFOUNDATION_H */
547/* #undef HAVE_CFPRIV_H */
548/* #undef HAVE_CFBUNDLEPRIV_H */
549
550
551/*
552 * Do we have MacOSX 10.4's mbr_XXX functions()?
553 */
554
555/* #undef HAVE_MEMBERSHIP_H */
556/* #undef HAVE_MEMBERSHIPPRIV_H */
557/* #undef HAVE_MBR_UID_TO_UUID */
558
559
560/*
561 * Do we have Darwin's notify_post() header and function?
562 */
563
564/* #undef HAVE_NOTIFY_H */
565/* #undef HAVE_NOTIFY_POST */
566
567
568/*
569 * Do we have DBUS?
570 */
571
572/* #undef HAVE_DBUS */
573/* #undef HAVE_DBUS_MESSAGE_ITER_INIT_APPEND */
574
575
576/*
577 * Do we have the AppleTalk/at_proto.h header?
578 */
579
580/* #undef HAVE_APPLETALK_AT_PROTO_H */
581
582
583/*
584 * Do we have the GSSAPI support library (for Kerberos support)?
585 */
586
587/* #undef HAVE_GSSAPI */
588/* #undef HAVE_GSSAPI_H */
589/* #undef HAVE_GSSAPI_GSSAPI_H */
590/* #undef HAVE_GSSAPI_GSSAPI_GENERIC_H */
591/* #undef HAVE_GSSAPI_GSSAPI_KRB5_H */
592/* #undef HAVE_GSSKRB5_REGISTER_ACCEPTOR_IDENTITY */
593/* #undef HAVE_GSS_C_NT_HOSTBASED_SERVICE */
594/* #undef HAVE_KRB5_CC_NEW_UNIQUE */
595/* #undef HAVE_KRB5_IPC_CLIENT_SET_TARGET_UID */
596/* #undef HAVE_KRB5_H */
597/* #undef HAVE_HEIMDAL */
598
599
600/*
601 * Default GSS service name...
602 */
603
604#define CUPS_DEFAULT_GSSSERVICENAME "ipp"
605
606
607/*
608 * Select/poll interfaces...
609 */
610
611/* #undef HAVE_POLL */
612/* #undef HAVE_EPOLL */
613/* #undef HAVE_KQUEUE */
614
615
616/*
617 * Do we have the <dlfcn.h> header?
618 */
619
620/* #undef HAVE_DLFCN_H */
621
622
623/*
624 * Do we have <sys/param.h>?
625 */
626
627/* #undef HAVE_SYS_PARAM_H */
628
629
630/*
631 * Do we have <sys/ucred.h>?
632 */
633
634/* #undef HAVE_SYS_UCRED_H */
635
636
637/*
638 * Do we have removefile()?
639 */
640
641/* #undef HAVE_REMOVEFILE */
642
643
644/*
645 * Do we have <sandbox.h>?
646 */
647
648/* #undef HAVE_SANDBOX_H */
649
650
651/*
652 * Which random number generator function to use...
653 */
654
655/* #undef HAVE_RANDOM */
656/* #undef HAVE_MRAND48 */
657/* #undef HAVE_LRAND48 */
658
659
660/*
661 * Do we have vproc_transaction_begin/end?
662 */
663
664/* #undef HAVE_VPROC_TRANSACTION_BEGIN */
665
666
667/*
668 * Do we have libusb?
669 */
670
671/* #undef HAVE_USB_H */
672
673
674/*
675 * Do we have libwrap and tcpd.h?
676 */
677
678/* #undef HAVE_TCPD_H */
679
680
681#endif /* !_CUPS_CONFIG_H_ */
682
683/*
684 * End of "$Id$".
685 */