]> git.ipfire.org Git - thirdparty/cups.git/blame - config.h.in
Merge changes from CUPS 1.5rc1-r9834.
[thirdparty/cups.git] / config.h.in
CommitLineData
ef416fc2 1/*
b19ccc9e 2 * "$Id: config.h.in 7918 2008-09-08 22:03:01Z mike $"
ef416fc2 3 *
71e16022 4 * Configuration file for CUPS.
ef416fc2 5 *
0268488e 6 * Copyright 2007-2011 by Apple Inc.
b86bc4cf 7 * Copyright 1997-2007 by Easy Software Products.
ef416fc2 8 *
9 * These coded instructions, statements, and computer programs are the
bc44d920 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/".
ef416fc2 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/*
09ec0018 28 * Default user and groups...
ef416fc2 29 */
30
31#define CUPS_DEFAULT_USER "lp"
32#define CUPS_DEFAULT_GROUP "sys"
09ec0018 33#define CUPS_DEFAULT_SYSTEM_GROUPS "sys root system"
b9faaae1 34#define CUPS_DEFAULT_PRINTOPERATOR_AUTH "@SYSTEM"
09ec0018 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
1f0275e3
MS
45/*
46 * Default logging settings...
47 */
48
49#define CUPS_DEFAULT_LOG_LEVEL "warn"
50#define CUPS_DEFAULT_ACCESS_LOG_LEVEL "actions"
51
52
49d87452
MS
53/*
54 * Default fatal error settings...
55 */
56
57#define CUPS_DEFAULT_FATAL_ERRORS "config"
58
59
09ec0018 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
e00b005a 70#define CUPS_DEFAULT_USE_NETWORK_DEFAULT 1
ef416fc2 71
72
73/*
74 * Default IPP port...
75 */
76
77#define CUPS_DEFAULT_IPP_PORT 631
78
79
e53920b9 80/*
81 * Default printcap file...
82 */
83
84#define CUPS_DEFAULT_PRINTCAP "/etc/printcap"
85
86
2e4ff8af
MS
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
f7deaa1a 95/*
96 * Default MaxCopies value...
97 */
98
99#define CUPS_DEFAULT_MAX_COPIES 100
100
101
ef416fc2 102/*
229681c1 103 * Do we have domain socket support, and if so what is the default one?
ef416fc2 104 */
105
106#undef CUPS_DEFAULT_DOMAINSOCKET
107
108
229681c1
MS
109/*
110 * Default WebInterface value...
111 */
112
113#undef CUPS_DEFAULT_WEBIF
114
115
ef416fc2 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
fa73b229 123#define CUPS_BINDIR "/usr/bin"
ef416fc2 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"
fa73b229 131#define CUPS_SBINDIR "/usr/sbin"
ef416fc2 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
a4924f6c 156#undef HAVE_PAM_SET_ITEM
ee571f26 157#undef HAVE_PAM_SETCRED
ef416fc2 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
2abf387c 174/*
175 * Do we have <scsi/sg.h>?
176 */
177
178#undef HAVE_SCSI_SG_H
179
180
ef416fc2 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
eac3a0a0 189
ef416fc2 190/*
191 * Do we have the long long type?
192 */
193
194#undef HAVE_LONG_LONG
195
196#ifdef HAVE_LONG_LONG
197# define CUPS_LLFMT "%lld"
198# define CUPS_LLCAST (long long)
199#else
200# define CUPS_LLFMT "%ld"
201# define CUPS_LLCAST (long)
202#endif /* HAVE_LONG_LONG */
203
eac3a0a0 204
ef416fc2 205/*
206 * Do we have the strtoll() function?
207 */
208
209#undef HAVE_STRTOLL
210
211#ifndef HAVE_STRTOLL
212# define strtoll(nptr,endptr,base) strtol((nptr), (endptr), (base))
213#endif /* !HAVE_STRTOLL */
214
eac3a0a0 215
ef416fc2 216/*
217 * Do we have the strXXX() functions?
218 */
219
220#undef HAVE_STRDUP
ef416fc2 221#undef HAVE_STRLCAT
222#undef HAVE_STRLCPY
223
224
225/*
226 * Do we have the geteuid() function?
227 */
228
229#undef HAVE_GETEUID
230
231
88f9aafc
MS
232/*
233 * Do we have the setpgid() function?
234 */
235
236#undef HAVE_SETPGID
237
238
ef416fc2 239/*
240 * Do we have the vsyslog() function?
241 */
242
243#undef HAVE_VSYSLOG
244
245
246/*
247 * Do we have the (v)snprintf() functions?
248 */
249
250#undef HAVE_SNPRINTF
251#undef HAVE_VSNPRINTF
252
253
254/*
255 * What signal functions to use?
256 */
257
258#undef HAVE_SIGSET
259#undef HAVE_SIGACTION
260
261
262/*
263 * What wait functions to use?
264 */
265
266#undef HAVE_WAITPID
267#undef HAVE_WAIT3
268
269
270/*
271 * Do we have the mallinfo function and malloc.h?
272 */
273
274#undef HAVE_MALLINFO
275#undef HAVE_MALLOC_H
276
277
fa73b229 278/*
279 * Do we have the POSIX ACL functions?
280 */
281
282#undef HAVE_ACL_INIT
283
284
ef416fc2 285/*
286 * Do we have the langinfo.h header file?
287 */
288
289#undef HAVE_LANGINFO_H
290
291
292/*
293 * Which encryption libraries do we have?
294 */
295
296#undef HAVE_CDSASSL
297#undef HAVE_GNUTLS
298#undef HAVE_LIBSSL
299#undef HAVE_SSL
300
301
ed486911 302/*
b86bc4cf 303 * What Security framework headers do we have?
ed486911 304 */
305
f7deaa1a 306#undef HAVE_AUTHORIZATION_H
eac3a0a0 307#undef HAVE_SECBASEPRIV_H
7cf5915e 308#undef HAVE_SECCERTIFICATE_H
eac3a0a0 309#undef HAVE_SECIDENTITYSEARCHPRIV_H
0268488e 310#undef HAVE_SECITEM_H
c7017ecc 311#undef HAVE_SECITEMPRIV_H
b86bc4cf 312#undef HAVE_SECPOLICY_H
313#undef HAVE_SECPOLICYPRIV_H
eac3a0a0 314#undef HAVE_SECURETRANSPORTPRIV_H
b86bc4cf 315
316
82f97232
MS
317/*
318 * Do we have the SecCertificateCopyData function?
319 */
320
321#undef HAVE_SECCERTIFICATECOPYDATA
322
323
b86bc4cf 324/*
325 * Do we have the SecIdentitySearchCreateWithPolicy function?
326 */
327
328#undef HAVE_SECIDENTITYSEARCHCREATEWITHPOLICY
ed486911 329
c8fef167 330
7cf5915e
MS
331/*
332 * Do we have the SecPolicyCreateSSL function?
333 */
334
335#undef HAVE_SECPOLICYCREATESSL
336
ed486911 337
c7017ecc
MS
338/*
339 * Do we have the SecPolicyCreateSSL function?
340 */
341
342#undef HAVE_SECPOLICYCREATESSL
343
344
7cf5915e
MS
345/*
346 * Do we have the cssmErrorString function?
347 */
348
349#undef HAVE_CSSMERRORSTRING
350
351
ef416fc2 352/*
b423cd4c 353 * Do we have the SLP library?
ef416fc2 354 */
355
356#undef HAVE_LIBSLP
357
358
b423cd4c 359/*
360 * Do we have an LDAP library?
361 */
362
363#undef HAVE_LDAP
364#undef HAVE_OPENLDAP
749b1e90
MS
365#undef HAVE_MOZILLA_LDAP
366#undef HAVE_LDAP_SSL_H
367#undef HAVE_LDAP_SSL
368#undef HAVE_LDAP_REBIND_PROC
b423cd4c 369
370
ef416fc2 371/*
372 * Do we have libpaper?
373 */
374
375#undef HAVE_LIBPAPER
376
377
f7deaa1a 378/*
379 * Do we have DNS Service Discovery (aka Bonjour)?
380 */
381
382#undef HAVE_DNSSD
383
384
ef416fc2 385/*
386 * Do we have <sys/ioctl.h>?
387 */
388
389#undef HAVE_SYS_IOCTL_H
390
391
c7017ecc
MS
392/*
393 * Does the "stat" structure contain the "st_gen" member?
394 */
395
396#undef HAVE_ST_GEN
397
398
ef416fc2 399/*
400 * Does the "tm" structure contain the "tm_gmtoff" member?
401 */
402
403#undef HAVE_TM_GMTOFF
404
405
406/*
407 * Do we have rresvport_af()?
408 */
409
410#undef HAVE_RRESVPORT_AF
411
412
413/*
414 * Do we have getaddrinfo()?
415 */
416
417#undef HAVE_GETADDRINFO
418
419
420/*
421 * Do we have getnameinfo()?
422 */
423
424#undef HAVE_GETNAMEINFO
425
426
427/*
428 * Do we have getifaddrs()?
429 */
430
431#undef HAVE_GETIFADDRS
432
433
434/*
435 * Do we have hstrerror()?
436 */
437
438#undef HAVE_HSTRERROR
439
440
49d87452
MS
441/*
442 * Do we have res_init()?
443 */
444
445#undef HAVE_RES_INIT
446
447
448/*
449 * Do we have <resolv.h>
450 */
451
452#undef HAVE_RESOLV_H
453
454
ef416fc2 455/*
456 * Do we have the <sys/sockio.h> header file?
457 */
458
459#undef HAVE_SYS_SOCKIO_H
460
461
462/*
463 * Does the sockaddr structure contain an sa_len parameter?
464 */
465
466#undef HAVE_STRUCT_SOCKADDR_SA_LEN
467
468
469/*
470 * Do we have the AIX usersec.h header file?
471 */
472
473#undef HAVE_USERSEC_H
474
536bc2c6 475
ef416fc2 476/*
477 * Do we have pthread support?
478 */
479
480#undef HAVE_PTHREAD_H
481
482
a4d04587 483/*
484 * Do we have launchd support?
485 */
486
487#undef HAVE_LAUNCH_H
488#undef HAVE_LAUNCHD
a4d04587 489
490
ef416fc2 491/*
492 * Various scripting languages...
493 */
494
495#undef HAVE_JAVA
496#define CUPS_JAVA "/usr/bin/java"
497#undef HAVE_PERL
498#define CUPS_PERL "/usr/bin/perl"
499#undef HAVE_PHP
500#define CUPS_PHP "/usr/bin/php"
501#undef HAVE_PYTHON
502#define CUPS_PYTHON "/usr/bin/python"
503
504
91c84a35
MS
505/*
506 * Location of the poppler/Xpdf pdftops program...
507 */
508
ae71f5de 509#undef HAVE_PDFTOPS
eac3a0a0 510#undef HAVE_PDFTOPS_WITH_ORIGPAGESIZES
91c84a35
MS
511#define CUPS_PDFTOPS "/usr/bin/pdftops"
512
513
ae71f5de
MS
514/*
515 * Location of the Ghostscript gs program...
516 */
517
518#undef HAVE_GHOSTSCRIPT
eac3a0a0 519#undef HAVE_GHOSTSCRIPT_PS2WRITE
ae71f5de
MS
520#define CUPS_GHOSTSCRIPT "/usr/bin/gs"
521
522
fa73b229 523/*
524 * Do we have Darwin's CoreFoundation and SystemConfiguration frameworks?
525 */
526
527#undef HAVE_COREFOUNDATION
528#undef HAVE_SYSTEMCONFIGURATION
529
530
531/*
532 * Do we have CoreFoundation public and private headers?
533 */
534
535#undef HAVE_COREFOUNDATION_H
536#undef HAVE_CFPRIV_H
537#undef HAVE_CFBUNDLEPRIV_H
538
539
6d2f911b
MS
540/*
541 * Do we have ApplicationServices public headers?
542 */
543
544#undef HAVE_APPLICATIONSERVICES_H
545
546
547/*
548 * Do we have the SCDynamicStoreCopyComputerName function?
549 */
550
551#undef HAVE_SCDYNAMICSTORECOPYCOMPUTERNAME
552
553
fa73b229 554/*
eac3a0a0 555 * Do we have Mac OS X 10.4's mbr_XXX functions?
fa73b229 556 */
557
558#undef HAVE_MEMBERSHIP_H
7594b224 559#undef HAVE_MEMBERSHIPPRIV_H
fa73b229 560#undef HAVE_MBR_UID_TO_UUID
561
562
563/*
cc754834 564 * Do we have Darwin's notify_post header and function?
fa73b229 565 */
566
567#undef HAVE_NOTIFY_H
568#undef HAVE_NOTIFY_POST
569
570
84315f46
MS
571/*
572 * Do we have Darwin's IOKit private headers?
573 */
574
575#undef HAVE_IOKIT_PWR_MGT_IOPMLIBPRIVATE_H
576
577
e00b005a 578/*
579 * Do we have DBUS?
580 */
581
582#undef HAVE_DBUS
2abf387c 583#undef HAVE_DBUS_MESSAGE_ITER_INIT_APPEND
e00b005a 584
585
f7deaa1a 586/*
587 * Do we have the GSSAPI support library (for Kerberos support)?
588 */
589
eac3a0a0
MS
590#undef HAVE_GSS_ACQUIRE_CRED_EX_F
591#undef HAVE_GSS_C_NT_HOSTBASED_SERVICE
592#undef HAVE_GSS_GSSAPI_H
593#undef HAVE_GSS_GSSAPI_SPI_H
f7deaa1a 594#undef HAVE_GSSAPI
eac3a0a0 595#undef HAVE_GSSAPI_GENERIC_H
f7deaa1a 596#undef HAVE_GSSAPI_GSSAPI_H
eac3a0a0
MS
597#undef HAVE_GSSAPI_H
598#undef HAVE_GSSAPI_KRB5_H
f7deaa1a 599#undef HAVE_KRB5_H
f7deaa1a 600
601
602/*
603 * Default GSS service name...
604 */
605
606#define CUPS_DEFAULT_GSSSERVICENAME ""
607
608
609/*
610 * Select/poll interfaces...
611 */
612
613#undef HAVE_POLL
614#undef HAVE_EPOLL
615#undef HAVE_KQUEUE
616
617
7594b224 618/*
619 * Do we have the <dlfcn.h> header?
620 */
621
622#undef HAVE_DLFCN_H
623
624
db1f069b
MS
625/*
626 * Do we have <sys/param.h>?
627 */
628
629#undef HAVE_SYS_PARAM_H
630
631
bc44d920 632/*
633 * Do we have <sys/ucred.h>?
634 */
635
636#undef HAVE_SYS_UCRED_H
637
638
cc0d019f
MS
639/*
640 * Do we have removefile()?
641 */
642
643#undef HAVE_REMOVEFILE
644
645
a4924f6c
MS
646/*
647 * Do we have <sandbox.h>?
648 */
649
650#undef HAVE_SANDBOX_H
651
652
ac884b6a
MS
653/*
654 * Which random number generator function to use...
655 */
656
41681883 657#undef HAVE_ARC4RANDOM
ac884b6a 658#undef HAVE_RANDOM
ac884b6a
MS
659#undef HAVE_LRAND48
660
41681883
MS
661#ifdef HAVE_ARC4RANDOM
662# define CUPS_RAND() arc4random()
663# define CUPS_SRAND(v) arc4random_stir()
664#elif defined(HAVE_RANDOM)
665# define CUPS_RAND() random()
666# define CUPS_SRAND(v) srandom(v)
667#elif defined(HAVE_LRAND48)
668# define CUPS_RAND() lrand48()
669# define CUPS_SRAND(v) srand48(v)
670#else
671# define CUPS_RAND() rand()
672# define CUPS_SRAND(v) srand(v)
673#endif /* HAVE_ARC4RANDOM */
674
ac884b6a 675
178cb736
MS
676/*
677 * Do we have vproc_transaction_begin/end?
678 */
679
680#undef HAVE_VPROC_TRANSACTION_BEGIN
681
682
75bd9771
MS
683/*
684 * Do we have libusb?
685 */
686
687#undef HAVE_USB_H
688
689
749b1e90
MS
690/*
691 * Do we have libwrap and tcpd.h?
692 */
693
694#undef HAVE_TCPD_H
695
696
cc754834
MS
697/*
698 * Do we have <iconv.h>?
699 */
700
701#undef HAVE_ICONV_H
702
703
7cf5915e
MS
704/*
705 * Do we have statfs or statvfs and one of the corresponding headers?
706 */
707
708#undef HAVE_STATFS
709#undef HAVE_STATVFS
710#undef HAVE_SYS_MOUNT_H
711#undef HAVE_SYS_STATFS_H
712#undef HAVE_SYS_STATVFS_H
713#undef HAVE_SYS_VFS_H
714
715
0837b7e8
MS
716/*
717 * Location of Mac OS X localization bundle, if any.
718 */
719
720#undef CUPS_BUNDLEDIR
721
722
229681c1
MS
723/*
724 * Do we have the ColorSyncRegisterDevice function?
725 */
726
727#undef HAVE_COLORSYNCREGISTERDEVICE
728
729
eac3a0a0
MS
730/*
731 * Do we have XPC?
732 */
733
734#undef HAVE_XPC
735
736
ef416fc2 737#endif /* !_CUPS_CONFIG_H_ */
738
739/*
b19ccc9e 740 * End of "$Id: config.h.in 7918 2008-09-08 22:03:01Z mike $".
ef416fc2 741 */