]> git.ipfire.org Git - thirdparty/cups.git/blame - vc2005/config.h
Import changes from CUPS 1.4svn-r8704.
[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
536bc2c6
MS
388/*
389 * Do we have <sys/ioctl.h>?
390 */
391
392/* #undef HAVE_SYS_IOCTL_H */
393
394
536bc2c6
MS
395/*
396 * Does the "tm" structure contain the "tm_gmtoff" member?
397 */
398
399/* #undef HAVE_TM_GMTOFF */
400
401
402/*
403 * Do we have rresvport_af()?
404 */
405
406/* #undef HAVE_RRESVPORT_AF */
407
408
409/*
410 * Do we have getaddrinfo()?
411 */
412
413#define HAVE_GETADDRINFO 1
414
415
416/*
417 * Do we have getnameinfo()?
418 */
419
420#define HAVE_GETNAMEINFO 1
421
422
423/*
424 * Do we have getifaddrs()?
425 */
426
427/* #undef HAVE_GETIFADDRS */
428
429
430/*
431 * Do we have hstrerror()?
432 */
433
434/* #undef HAVE_HSTRERROR */
435
436
437/*
438 * Do we have res_init()?
439 */
440
441/* #undef HAVE_RES_INIT */
442
443
444/*
445 * Do we have <resolv.h>
446 */
447
448/* #undef HAVE_RESOLV_H */
449
450
451/*
452 * Do we have the <sys/sockio.h> header file?
453 */
454
455/* #undef HAVE_SYS_SOCKIO_H */
456
457
458/*
459 * Does the sockaddr structure contain an sa_len parameter?
460 */
461
462/* #undef HAVE_STRUCT_SOCKADDR_SA_LEN */
463
464
465/*
466 * Do we have the AIX usersec.h header file?
467 */
468
469/* #undef HAVE_USERSEC_H */
470
471
472/*
473 * Do we have pthread support?
474 */
475
476/* #undef HAVE_PTHREAD_H */
477
478
479/*
480 * Do we have launchd support?
481 */
482
483/* #undef HAVE_LAUNCH_H */
484/* #undef HAVE_LAUNCHD */
485#define CUPS_DEFAULT_LAUNCHD_CONF ""
486
487
488/*
489 * Various scripting languages...
490 */
491
492/* #undef HAVE_JAVA */
493#define CUPS_JAVA ""
494/* #undef HAVE_PERL */
495#define CUPS_PERL ""
496/* #undef HAVE_PHP */
497#define CUPS_PHP ""
498/* #undef HAVE_PYTHON */
499#define CUPS_PYTHON ""
500
501
502/*
503 * Location of the poppler/Xpdf pdftops program...
504 */
505
506/* #undef HAVE_PDFTOPS */
507#define CUPS_PDFTOPS ""
508
509
510/*
511 * Location of the Ghostscript gs program...
512 */
513
514/* #undef HAVE_GHOSTSCRIPT */
515#define CUPS_GHOSTSCRIPT ""
516
517
518/*
519 * Do we have Darwin's CoreFoundation and SystemConfiguration frameworks?
520 */
521
522/* #undef HAVE_COREFOUNDATION */
523/* #undef HAVE_SYSTEMCONFIGURATION */
524
525
526/*
527 * Do we have CoreFoundation public and private headers?
528 */
529
530/* #undef HAVE_COREFOUNDATION_H */
531/* #undef HAVE_CFPRIV_H */
532/* #undef HAVE_CFBUNDLEPRIV_H */
533
534
535/*
536 * Do we have MacOSX 10.4's mbr_XXX functions()?
537 */
538
539/* #undef HAVE_MEMBERSHIP_H */
540/* #undef HAVE_MEMBERSHIPPRIV_H */
541/* #undef HAVE_MBR_UID_TO_UUID */
542
543
544/*
545 * Do we have Darwin's notify_post() header and function?
546 */
547
548/* #undef HAVE_NOTIFY_H */
549/* #undef HAVE_NOTIFY_POST */
550
551
552/*
553 * Do we have DBUS?
554 */
555
556/* #undef HAVE_DBUS */
557/* #undef HAVE_DBUS_MESSAGE_ITER_INIT_APPEND */
558
559
560/*
561 * Do we have the AppleTalk/at_proto.h header?
562 */
563
564/* #undef HAVE_APPLETALK_AT_PROTO_H */
565
566
567/*
568 * Do we have the GSSAPI support library (for Kerberos support)?
569 */
570
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 */
582
583
584/*
585 * Default GSS service name...
586 */
587
588#define CUPS_DEFAULT_GSSSERVICENAME "ipp"
589
590
591/*
592 * Select/poll interfaces...
593 */
594
595/* #undef HAVE_POLL */
596/* #undef HAVE_EPOLL */
597/* #undef HAVE_KQUEUE */
598
599
600/*
601 * Do we have the <dlfcn.h> header?
602 */
603
604/* #undef HAVE_DLFCN_H */
605
606
607/*
608 * Do we have <sys/param.h>?
609 */
610
611/* #undef HAVE_SYS_PARAM_H */
612
613
614/*
615 * Do we have <sys/ucred.h>?
616 */
617
618/* #undef HAVE_SYS_UCRED_H */
619
620
621/*
622 * Do we have removefile()?
623 */
624
625/* #undef HAVE_REMOVEFILE */
626
627
628/*
629 * Do we have <sandbox.h>?
630 */
631
632/* #undef HAVE_SANDBOX_H */
633
634
635/*
636 * Which random number generator function to use...
637 */
638
639/* #undef HAVE_RANDOM */
640/* #undef HAVE_MRAND48 */
641/* #undef HAVE_LRAND48 */
642
643
644/*
645 * Do we have vproc_transaction_begin/end?
646 */
647
648/* #undef HAVE_VPROC_TRANSACTION_BEGIN */
649
650
651/*
652 * Do we have libusb?
653 */
654
655/* #undef HAVE_USB_H */
656
657
658/*
659 * Do we have libwrap and tcpd.h?
660 */
661
662/* #undef HAVE_TCPD_H */
663
664
665#endif /* !_CUPS_CONFIG_H_ */
666
667/*
668 * End of "$Id$".
669 */