]> git.ipfire.org Git - thirdparty/cups.git/blob - config.h.in
Merge changes from CUPS 1.5svn-r9400
[thirdparty/cups.git] / config.h.in
1 /*
2 * "$Id: config.h.in 7918 2008-09-08 22:03:01Z mike $"
3 *
4 * Configuration file for CUPS.
5 *
6 * Copyright 2007-2010 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 * Version of software...
21 */
22
23 #define CUPS_SVERSION ""
24 #define CUPS_MINIMAL ""
25
26
27 /*
28 * Default user and groups...
29 */
30
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"
35
36
37 /*
38 * Default file permissions...
39 */
40
41 #define CUPS_DEFAULT_CONFIG_FILE_PERM 0640
42 #define CUPS_DEFAULT_LOG_FILE_PERM 0644
43
44
45 /*
46 * Default logging settings...
47 */
48
49 #define CUPS_DEFAULT_LOG_LEVEL "warn"
50 #define CUPS_DEFAULT_ACCESS_LOG_LEVEL "actions"
51
52
53 /*
54 * Default fatal error settings...
55 */
56
57 #define CUPS_DEFAULT_FATAL_ERRORS "config"
58
59
60 /*
61 * Default browsing settings...
62 */
63
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
71
72
73 /*
74 * Default IPP port...
75 */
76
77 #define CUPS_DEFAULT_IPP_PORT 631
78
79
80 /*
81 * Default printcap file...
82 */
83
84 #define CUPS_DEFAULT_PRINTCAP "/etc/printcap"
85
86
87 /*
88 * Default Samba and LPD config files...
89 */
90
91 #define CUPS_DEFAULT_SMB_CONFIG_FILE ""
92 #define CUPS_DEFAULT_LPD_CONFIG_FILE ""
93
94
95 /*
96 * Default MaxCopies value...
97 */
98
99 #define CUPS_DEFAULT_MAX_COPIES 100
100
101
102 /*
103 * Do we have domain socket support, and if so what is the default one?
104 */
105
106 #undef CUPS_DEFAULT_DOMAINSOCKET
107
108
109 /*
110 * Default WebInterface value...
111 */
112
113 #undef CUPS_DEFAULT_WEBIF
114
115
116 /*
117 * Where are files stored?
118 *
119 * Note: These are defaults, which can be overridden by environment
120 * variables at run-time...
121 */
122
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"
135
136
137 /*
138 * Do we have various image libraries?
139 */
140
141 #undef HAVE_LIBPNG
142 #undef HAVE_LIBZ
143 #undef HAVE_LIBJPEG
144 #undef HAVE_LIBTIFF
145
146
147 /*
148 * Do we have PAM stuff?
149 */
150
151 #ifndef HAVE_LIBPAM
152 #define HAVE_LIBPAM 0
153 #endif /* !HAVE_LIBPAM */
154
155 #undef HAVE_PAM_PAM_APPL_H
156 #undef HAVE_PAM_SET_ITEM
157 #undef HAVE_PAM_SETCRED
158
159
160 /*
161 * Do we have <shadow.h>?
162 */
163
164 #undef HAVE_SHADOW_H
165
166
167 /*
168 * Do we have <crypt.h>?
169 */
170
171 #undef HAVE_CRYPT_H
172
173
174 /*
175 * Do we have <scsi/sg.h>?
176 */
177
178 #undef HAVE_SCSI_SG_H
179
180
181 /*
182 * Use <string.h>, <strings.h>, and/or <bstring.h>?
183 */
184
185 #undef HAVE_STRING_H
186 #undef HAVE_STRINGS_H
187 #undef HAVE_BSTRING_H
188
189 /*
190 * Do we have the long long type?
191 */
192
193 #undef HAVE_LONG_LONG
194
195 #ifdef HAVE_LONG_LONG
196 # define CUPS_LLFMT "%lld"
197 # define CUPS_LLCAST (long long)
198 #else
199 # define CUPS_LLFMT "%ld"
200 # define CUPS_LLCAST (long)
201 #endif /* HAVE_LONG_LONG */
202
203 /*
204 * Do we have the strtoll() function?
205 */
206
207 #undef HAVE_STRTOLL
208
209 #ifndef HAVE_STRTOLL
210 # define strtoll(nptr,endptr,base) strtol((nptr), (endptr), (base))
211 #endif /* !HAVE_STRTOLL */
212
213 /*
214 * Do we have the strXXX() functions?
215 */
216
217 #undef HAVE_STRDUP
218 #undef HAVE_STRCASECMP
219 #undef HAVE_STRNCASECMP
220 #undef HAVE_STRLCAT
221 #undef HAVE_STRLCPY
222
223
224 /*
225 * Do we have the geteuid() function?
226 */
227
228 #undef HAVE_GETEUID
229
230
231 /*
232 * Do we have the vsyslog() function?
233 */
234
235 #undef HAVE_VSYSLOG
236
237
238 /*
239 * Do we have the (v)snprintf() functions?
240 */
241
242 #undef HAVE_SNPRINTF
243 #undef HAVE_VSNPRINTF
244
245
246 /*
247 * What signal functions to use?
248 */
249
250 #undef HAVE_SIGSET
251 #undef HAVE_SIGACTION
252
253
254 /*
255 * What wait functions to use?
256 */
257
258 #undef HAVE_WAITPID
259 #undef HAVE_WAIT3
260
261
262 /*
263 * Do we have the mallinfo function and malloc.h?
264 */
265
266 #undef HAVE_MALLINFO
267 #undef HAVE_MALLOC_H
268
269
270 /*
271 * Do we have the POSIX ACL functions?
272 */
273
274 #undef HAVE_ACL_INIT
275
276
277 /*
278 * Do we have the langinfo.h header file?
279 */
280
281 #undef HAVE_LANGINFO_H
282
283
284 /*
285 * Which encryption libraries do we have?
286 */
287
288 #undef HAVE_CDSASSL
289 #undef HAVE_GNUTLS
290 #undef HAVE_LIBSSL
291 #undef HAVE_SSL
292
293
294 /*
295 * What Security framework headers do we have?
296 */
297
298 #undef HAVE_AUTHORIZATION_H
299 #undef HAVE_SECCERTIFICATE_H
300 #undef HAVE_SECITEMPRIV_H
301 #undef HAVE_SECPOLICY_H
302 #undef HAVE_SECPOLICYPRIV_H
303 #undef HAVE_SECBASEPRIV_H
304 #undef HAVE_SECIDENTITYSEARCHPRIV_H
305
306
307 /*
308 * Do we have the SecIdentitySearchCreateWithPolicy function?
309 */
310
311 #undef HAVE_SECIDENTITYSEARCHCREATEWITHPOLICY
312
313 /*
314 * Do we have the SecPolicyCreateSSL function?
315 */
316
317 #undef HAVE_SECPOLICYCREATESSL
318
319
320 /*
321 * Do we have the SecPolicyCreateSSL function?
322 */
323
324 #undef HAVE_SECPOLICYCREATESSL
325
326
327 /*
328 * Do we have the cssmErrorString function?
329 */
330
331 #undef HAVE_CSSMERRORSTRING
332
333
334 /*
335 * Do we have the SLP library?
336 */
337
338 #undef HAVE_LIBSLP
339
340
341 /*
342 * Do we have an LDAP library?
343 */
344
345 #undef HAVE_LDAP
346 #undef HAVE_OPENLDAP
347 #undef HAVE_MOZILLA_LDAP
348 #undef HAVE_LDAP_SSL_H
349 #undef HAVE_LDAP_SSL
350 #undef HAVE_LDAP_REBIND_PROC
351
352
353 /*
354 * Do we have libpaper?
355 */
356
357 #undef HAVE_LIBPAPER
358
359
360 /*
361 * Do we have DNS Service Discovery (aka Bonjour)?
362 */
363
364 #undef HAVE_DNSSD
365
366
367 /*
368 * Do we have <sys/ioctl.h>?
369 */
370
371 #undef HAVE_SYS_IOCTL_H
372
373
374 /*
375 * Does the "stat" structure contain the "st_gen" member?
376 */
377
378 #undef HAVE_ST_GEN
379
380
381 /*
382 * Does the "tm" structure contain the "tm_gmtoff" member?
383 */
384
385 #undef HAVE_TM_GMTOFF
386
387
388 /*
389 * Do we have rresvport_af()?
390 */
391
392 #undef HAVE_RRESVPORT_AF
393
394
395 /*
396 * Do we have getaddrinfo()?
397 */
398
399 #undef HAVE_GETADDRINFO
400
401
402 /*
403 * Do we have getnameinfo()?
404 */
405
406 #undef HAVE_GETNAMEINFO
407
408
409 /*
410 * Do we have getifaddrs()?
411 */
412
413 #undef HAVE_GETIFADDRS
414
415
416 /*
417 * Do we have hstrerror()?
418 */
419
420 #undef HAVE_HSTRERROR
421
422
423 /*
424 * Do we have res_init()?
425 */
426
427 #undef HAVE_RES_INIT
428
429
430 /*
431 * Do we have <resolv.h>
432 */
433
434 #undef HAVE_RESOLV_H
435
436
437 /*
438 * Do we have the <sys/sockio.h> header file?
439 */
440
441 #undef HAVE_SYS_SOCKIO_H
442
443
444 /*
445 * Does the sockaddr structure contain an sa_len parameter?
446 */
447
448 #undef HAVE_STRUCT_SOCKADDR_SA_LEN
449
450
451 /*
452 * Do we have the AIX usersec.h header file?
453 */
454
455 #undef HAVE_USERSEC_H
456
457
458 /*
459 * Do we have pthread support?
460 */
461
462 #undef HAVE_PTHREAD_H
463
464
465 /*
466 * Do we have launchd support?
467 */
468
469 #undef HAVE_LAUNCH_H
470 #undef HAVE_LAUNCHD
471
472
473 /*
474 * Various scripting languages...
475 */
476
477 #undef HAVE_JAVA
478 #define CUPS_JAVA "/usr/bin/java"
479 #undef HAVE_PERL
480 #define CUPS_PERL "/usr/bin/perl"
481 #undef HAVE_PHP
482 #define CUPS_PHP "/usr/bin/php"
483 #undef HAVE_PYTHON
484 #define CUPS_PYTHON "/usr/bin/python"
485
486
487 /*
488 * Location of the poppler/Xpdf pdftops program...
489 */
490
491 #undef HAVE_PDFTOPS
492 #define CUPS_PDFTOPS "/usr/bin/pdftops"
493
494
495 /*
496 * Location of the Ghostscript gs program...
497 */
498
499 #undef HAVE_GHOSTSCRIPT
500 #define CUPS_GHOSTSCRIPT "/usr/bin/gs"
501
502
503 /*
504 * Do we have Darwin's CoreFoundation and SystemConfiguration frameworks?
505 */
506
507 #undef HAVE_COREFOUNDATION
508 #undef HAVE_SYSTEMCONFIGURATION
509
510
511 /*
512 * Do we have CoreFoundation public and private headers?
513 */
514
515 #undef HAVE_COREFOUNDATION_H
516 #undef HAVE_CFPRIV_H
517 #undef HAVE_CFBUNDLEPRIV_H
518
519
520 /*
521 * Do we have ApplicationServices public headers?
522 */
523
524 #undef HAVE_APPLICATIONSERVICES_H
525
526
527 /*
528 * Do we have the SCDynamicStoreCopyComputerName function?
529 */
530
531 #undef HAVE_SCDYNAMICSTORECOPYCOMPUTERNAME
532
533
534 /*
535 * Do we have MacOSX 10.4's mbr_XXX functions?
536 */
537
538 #undef HAVE_MEMBERSHIP_H
539 #undef HAVE_MEMBERSHIPPRIV_H
540 #undef HAVE_MBR_UID_TO_UUID
541
542
543 /*
544 * Do we have Darwin's notify_post header and function?
545 */
546
547 #undef HAVE_NOTIFY_H
548 #undef HAVE_NOTIFY_POST
549
550
551 /*
552 * Do we have DBUS?
553 */
554
555 #undef HAVE_DBUS
556 #undef HAVE_DBUS_MESSAGE_ITER_INIT_APPEND
557
558
559 /*
560 * Do we have the AppleTalk/at_proto.h header?
561 */
562
563 #undef HAVE_APPLETALK_AT_PROTO_H
564
565
566 /*
567 * Do we have the GSSAPI support library (for Kerberos support)?
568 */
569
570 #undef HAVE_GSSAPI
571 #undef HAVE_GSSAPI_H
572 #undef HAVE_GSSAPI_GSSAPI_H
573 #undef HAVE_GSSAPI_GSSAPI_GENERIC_H
574 #undef HAVE_GSSAPI_GSSAPI_KRB5_H
575 #undef HAVE_GSSKRB5_REGISTER_ACCEPTOR_IDENTITY
576 #undef HAVE_GSS_C_NT_HOSTBASED_SERVICE
577 #undef HAVE_KRB5_CC_NEW_UNIQUE
578 #undef HAVE_KRB5_IPC_CLIENT_SET_TARGET_UID
579 #undef HAVE_KRB5_H
580 #undef HAVE_HEIMDAL
581
582
583 /*
584 * Default GSS service name...
585 */
586
587 #define CUPS_DEFAULT_GSSSERVICENAME ""
588
589
590 /*
591 * Select/poll interfaces...
592 */
593
594 #undef HAVE_POLL
595 #undef HAVE_EPOLL
596 #undef HAVE_KQUEUE
597
598
599 /*
600 * Do we have the <dlfcn.h> header?
601 */
602
603 #undef HAVE_DLFCN_H
604
605
606 /*
607 * Do we have <sys/param.h>?
608 */
609
610 #undef HAVE_SYS_PARAM_H
611
612
613 /*
614 * Do we have <sys/ucred.h>?
615 */
616
617 #undef HAVE_SYS_UCRED_H
618
619
620 /*
621 * Do we have removefile()?
622 */
623
624 #undef HAVE_REMOVEFILE
625
626
627 /*
628 * Do we have <sandbox.h>?
629 */
630
631 #undef HAVE_SANDBOX_H
632
633
634 /*
635 * Which random number generator function to use...
636 */
637
638 #undef HAVE_ARC4RANDOM
639 #undef HAVE_RANDOM
640 #undef HAVE_LRAND48
641
642 #ifdef HAVE_ARC4RANDOM
643 # define CUPS_RAND() arc4random()
644 # define CUPS_SRAND(v) arc4random_stir()
645 #elif defined(HAVE_RANDOM)
646 # define CUPS_RAND() random()
647 # define CUPS_SRAND(v) srandom(v)
648 #elif defined(HAVE_LRAND48)
649 # define CUPS_RAND() lrand48()
650 # define CUPS_SRAND(v) srand48(v)
651 #else
652 # define CUPS_RAND() rand()
653 # define CUPS_SRAND(v) srand(v)
654 #endif /* HAVE_ARC4RANDOM */
655
656
657 /*
658 * Do we have vproc_transaction_begin/end?
659 */
660
661 #undef HAVE_VPROC_TRANSACTION_BEGIN
662
663
664 /*
665 * Do we have libusb?
666 */
667
668 #undef HAVE_USB_H
669
670
671 /*
672 * Do we have libwrap and tcpd.h?
673 */
674
675 #undef HAVE_TCPD_H
676
677
678 /*
679 * Do we have <iconv.h>?
680 */
681
682 #undef HAVE_ICONV_H
683
684
685 /*
686 * Do we have statfs or statvfs and one of the corresponding headers?
687 */
688
689 #undef HAVE_STATFS
690 #undef HAVE_STATVFS
691 #undef HAVE_SYS_MOUNT_H
692 #undef HAVE_SYS_STATFS_H
693 #undef HAVE_SYS_STATVFS_H
694 #undef HAVE_SYS_VFS_H
695
696
697 /*
698 * Location of Mac OS X localization bundle, if any.
699 */
700
701 #undef CUPS_BUNDLEDIR
702
703
704 /*
705 * Do we have the ColorSyncRegisterDevice function?
706 */
707
708 #undef HAVE_COLORSYNCREGISTERDEVICE
709
710
711 #endif /* !_CUPS_CONFIG_H_ */
712
713 /*
714 * End of "$Id: config.h.in 7918 2008-09-08 22:03:01Z mike $".
715 */