]> git.ipfire.org Git - thirdparty/cups.git/blame - config.h.in
Merge changes from CUPS 1.5svn-r9717.
[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
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
fa73b229 270/*
271 * Do we have the POSIX ACL functions?
272 */
273
274#undef HAVE_ACL_INIT
275
276
ef416fc2 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
ed486911 294/*
b86bc4cf 295 * What Security framework headers do we have?
ed486911 296 */
297
f7deaa1a 298#undef HAVE_AUTHORIZATION_H
7cf5915e 299#undef HAVE_SECCERTIFICATE_H
0268488e 300#undef HAVE_SECITEM_H
c7017ecc 301#undef HAVE_SECITEMPRIV_H
b86bc4cf 302#undef HAVE_SECPOLICY_H
303#undef HAVE_SECPOLICYPRIV_H
ed486911 304#undef HAVE_SECBASEPRIV_H
b86bc4cf 305#undef HAVE_SECIDENTITYSEARCHPRIV_H
306
307
82f97232
MS
308/*
309 * Do we have the SecCertificateCopyData function?
310 */
311
312#undef HAVE_SECCERTIFICATECOPYDATA
313
314
b86bc4cf 315/*
316 * Do we have the SecIdentitySearchCreateWithPolicy function?
317 */
318
319#undef HAVE_SECIDENTITYSEARCHCREATEWITHPOLICY
ed486911 320
c8fef167 321
7cf5915e
MS
322/*
323 * Do we have the SecPolicyCreateSSL function?
324 */
325
326#undef HAVE_SECPOLICYCREATESSL
327
ed486911 328
c7017ecc
MS
329/*
330 * Do we have the SecPolicyCreateSSL function?
331 */
332
333#undef HAVE_SECPOLICYCREATESSL
334
335
7cf5915e
MS
336/*
337 * Do we have the cssmErrorString function?
338 */
339
340#undef HAVE_CSSMERRORSTRING
341
342
ef416fc2 343/*
b423cd4c 344 * Do we have the SLP library?
ef416fc2 345 */
346
347#undef HAVE_LIBSLP
348
349
b423cd4c 350/*
351 * Do we have an LDAP library?
352 */
353
354#undef HAVE_LDAP
355#undef HAVE_OPENLDAP
749b1e90
MS
356#undef HAVE_MOZILLA_LDAP
357#undef HAVE_LDAP_SSL_H
358#undef HAVE_LDAP_SSL
359#undef HAVE_LDAP_REBIND_PROC
b423cd4c 360
361
ef416fc2 362/*
363 * Do we have libpaper?
364 */
365
366#undef HAVE_LIBPAPER
367
368
f7deaa1a 369/*
370 * Do we have DNS Service Discovery (aka Bonjour)?
371 */
372
373#undef HAVE_DNSSD
374
375
ef416fc2 376/*
377 * Do we have <sys/ioctl.h>?
378 */
379
380#undef HAVE_SYS_IOCTL_H
381
382
c7017ecc
MS
383/*
384 * Does the "stat" structure contain the "st_gen" member?
385 */
386
387#undef HAVE_ST_GEN
388
389
ef416fc2 390/*
391 * Does the "tm" structure contain the "tm_gmtoff" member?
392 */
393
394#undef HAVE_TM_GMTOFF
395
396
397/*
398 * Do we have rresvport_af()?
399 */
400
401#undef HAVE_RRESVPORT_AF
402
403
404/*
405 * Do we have getaddrinfo()?
406 */
407
408#undef HAVE_GETADDRINFO
409
410
411/*
412 * Do we have getnameinfo()?
413 */
414
415#undef HAVE_GETNAMEINFO
416
417
418/*
419 * Do we have getifaddrs()?
420 */
421
422#undef HAVE_GETIFADDRS
423
424
425/*
426 * Do we have hstrerror()?
427 */
428
429#undef HAVE_HSTRERROR
430
431
49d87452
MS
432/*
433 * Do we have res_init()?
434 */
435
436#undef HAVE_RES_INIT
437
438
439/*
440 * Do we have <resolv.h>
441 */
442
443#undef HAVE_RESOLV_H
444
445
ef416fc2 446/*
447 * Do we have the <sys/sockio.h> header file?
448 */
449
450#undef HAVE_SYS_SOCKIO_H
451
452
453/*
454 * Does the sockaddr structure contain an sa_len parameter?
455 */
456
457#undef HAVE_STRUCT_SOCKADDR_SA_LEN
458
459
460/*
461 * Do we have the AIX usersec.h header file?
462 */
463
464#undef HAVE_USERSEC_H
465
536bc2c6 466
ef416fc2 467/*
468 * Do we have pthread support?
469 */
470
471#undef HAVE_PTHREAD_H
472
473
a4d04587 474/*
475 * Do we have launchd support?
476 */
477
478#undef HAVE_LAUNCH_H
479#undef HAVE_LAUNCHD
a4d04587 480
481
ef416fc2 482/*
483 * Various scripting languages...
484 */
485
486#undef HAVE_JAVA
487#define CUPS_JAVA "/usr/bin/java"
488#undef HAVE_PERL
489#define CUPS_PERL "/usr/bin/perl"
490#undef HAVE_PHP
491#define CUPS_PHP "/usr/bin/php"
492#undef HAVE_PYTHON
493#define CUPS_PYTHON "/usr/bin/python"
494
495
91c84a35
MS
496/*
497 * Location of the poppler/Xpdf pdftops program...
498 */
499
ae71f5de 500#undef HAVE_PDFTOPS
91c84a35
MS
501#define CUPS_PDFTOPS "/usr/bin/pdftops"
502
503
ae71f5de
MS
504/*
505 * Location of the Ghostscript gs program...
506 */
507
508#undef HAVE_GHOSTSCRIPT
509#define CUPS_GHOSTSCRIPT "/usr/bin/gs"
510
511
fa73b229 512/*
513 * Do we have Darwin's CoreFoundation and SystemConfiguration frameworks?
514 */
515
516#undef HAVE_COREFOUNDATION
517#undef HAVE_SYSTEMCONFIGURATION
518
519
520/*
521 * Do we have CoreFoundation public and private headers?
522 */
523
524#undef HAVE_COREFOUNDATION_H
525#undef HAVE_CFPRIV_H
526#undef HAVE_CFBUNDLEPRIV_H
527
528
6d2f911b
MS
529/*
530 * Do we have ApplicationServices public headers?
531 */
532
533#undef HAVE_APPLICATIONSERVICES_H
534
535
536/*
537 * Do we have the SCDynamicStoreCopyComputerName function?
538 */
539
540#undef HAVE_SCDYNAMICSTORECOPYCOMPUTERNAME
541
542
fa73b229 543/*
cc754834 544 * Do we have MacOSX 10.4's mbr_XXX functions?
fa73b229 545 */
546
547#undef HAVE_MEMBERSHIP_H
7594b224 548#undef HAVE_MEMBERSHIPPRIV_H
fa73b229 549#undef HAVE_MBR_UID_TO_UUID
550
551
552/*
cc754834 553 * Do we have Darwin's notify_post header and function?
fa73b229 554 */
555
556#undef HAVE_NOTIFY_H
557#undef HAVE_NOTIFY_POST
558
559
84315f46
MS
560/*
561 * Do we have Darwin's IOKit private headers?
562 */
563
564#undef HAVE_IOKIT_PWR_MGT_IOPMLIBPRIVATE_H
565
566
e00b005a 567/*
568 * Do we have DBUS?
569 */
570
571#undef HAVE_DBUS
2abf387c 572#undef HAVE_DBUS_MESSAGE_ITER_INIT_APPEND
e00b005a 573
574
a74454a7 575/*
576 * Do we have the AppleTalk/at_proto.h header?
577 */
578
579#undef HAVE_APPLETALK_AT_PROTO_H
580
581
f7deaa1a 582/*
583 * Do we have the GSSAPI support library (for Kerberos support)?
584 */
585
586#undef HAVE_GSSAPI
587#undef HAVE_GSSAPI_H
588#undef HAVE_GSSAPI_GSSAPI_H
589#undef HAVE_GSSAPI_GSSAPI_GENERIC_H
590#undef HAVE_GSSAPI_GSSAPI_KRB5_H
591#undef HAVE_GSSKRB5_REGISTER_ACCEPTOR_IDENTITY
592#undef HAVE_GSS_C_NT_HOSTBASED_SERVICE
c24d2134 593#undef HAVE_KRB5_CC_NEW_UNIQUE
e07d4801 594#undef HAVE_KRB5_IPC_CLIENT_SET_TARGET_UID
f7deaa1a 595#undef HAVE_KRB5_H
596#undef HAVE_HEIMDAL
597
598
599/*
600 * Default GSS service name...
601 */
602
603#define CUPS_DEFAULT_GSSSERVICENAME ""
604
605
606/*
607 * Select/poll interfaces...
608 */
609
610#undef HAVE_POLL
611#undef HAVE_EPOLL
612#undef HAVE_KQUEUE
613
614
7594b224 615/*
616 * Do we have the <dlfcn.h> header?
617 */
618
619#undef HAVE_DLFCN_H
620
621
db1f069b
MS
622/*
623 * Do we have <sys/param.h>?
624 */
625
626#undef HAVE_SYS_PARAM_H
627
628
bc44d920 629/*
630 * Do we have <sys/ucred.h>?
631 */
632
633#undef HAVE_SYS_UCRED_H
634
635
cc0d019f
MS
636/*
637 * Do we have removefile()?
638 */
639
640#undef HAVE_REMOVEFILE
641
642
a4924f6c
MS
643/*
644 * Do we have <sandbox.h>?
645 */
646
647#undef HAVE_SANDBOX_H
648
649
ac884b6a
MS
650/*
651 * Which random number generator function to use...
652 */
653
41681883 654#undef HAVE_ARC4RANDOM
ac884b6a 655#undef HAVE_RANDOM
ac884b6a
MS
656#undef HAVE_LRAND48
657
41681883
MS
658#ifdef HAVE_ARC4RANDOM
659# define CUPS_RAND() arc4random()
660# define CUPS_SRAND(v) arc4random_stir()
661#elif defined(HAVE_RANDOM)
662# define CUPS_RAND() random()
663# define CUPS_SRAND(v) srandom(v)
664#elif defined(HAVE_LRAND48)
665# define CUPS_RAND() lrand48()
666# define CUPS_SRAND(v) srand48(v)
667#else
668# define CUPS_RAND() rand()
669# define CUPS_SRAND(v) srand(v)
670#endif /* HAVE_ARC4RANDOM */
671
ac884b6a 672
178cb736
MS
673/*
674 * Do we have vproc_transaction_begin/end?
675 */
676
677#undef HAVE_VPROC_TRANSACTION_BEGIN
678
679
75bd9771
MS
680/*
681 * Do we have libusb?
682 */
683
684#undef HAVE_USB_H
685
686
749b1e90
MS
687/*
688 * Do we have libwrap and tcpd.h?
689 */
690
691#undef HAVE_TCPD_H
692
693
cc754834
MS
694/*
695 * Do we have <iconv.h>?
696 */
697
698#undef HAVE_ICONV_H
699
700
7cf5915e
MS
701/*
702 * Do we have statfs or statvfs and one of the corresponding headers?
703 */
704
705#undef HAVE_STATFS
706#undef HAVE_STATVFS
707#undef HAVE_SYS_MOUNT_H
708#undef HAVE_SYS_STATFS_H
709#undef HAVE_SYS_STATVFS_H
710#undef HAVE_SYS_VFS_H
711
712
0837b7e8
MS
713/*
714 * Location of Mac OS X localization bundle, if any.
715 */
716
717#undef CUPS_BUNDLEDIR
718
719
229681c1
MS
720/*
721 * Do we have the ColorSyncRegisterDevice function?
722 */
723
724#undef HAVE_COLORSYNCREGISTERDEVICE
725
726
ef416fc2 727#endif /* !_CUPS_CONFIG_H_ */
728
729/*
b19ccc9e 730 * End of "$Id: config.h.in 7918 2008-09-08 22:03:01Z mike $".
ef416fc2 731 */