Revert manifest to default one
[external/cups.git] / config.h.in
1 /*
2  * "$Id: config.h.in 10371 2012-03-21 04:45:48Z mike $"
3  *
4  *   Configuration file for CUPS.
5  *
6  *   Copyright 2007-2011 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 /*
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
204
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
215
216 /*
217  * Do we have the strXXX() functions?
218  */
219
220 #undef HAVE_STRDUP
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
232 /*
233  * Do we have the setpgid() function?
234  */
235
236 #undef HAVE_SETPGID
237
238
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
278 /*
279  * Do we have the POSIX ACL functions?
280  */
281
282 #undef HAVE_ACL_INIT
283
284
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
302 /*
303  * Do we have the SSL_set_tlsext_host_name function?
304  */
305
306 #undef HAVE_SSL_SET_TLSEXT_HOST_NAME
307
308
309 /*
310  * What Security framework headers do we have?
311  */
312
313 #undef HAVE_AUTHORIZATION_H
314 #undef HAVE_SECBASEPRIV_H
315 #undef HAVE_SECCERTIFICATE_H
316 #undef HAVE_SECIDENTITYSEARCHPRIV_H
317 #undef HAVE_SECITEM_H
318 #undef HAVE_SECITEMPRIV_H
319 #undef HAVE_SECPOLICY_H
320 #undef HAVE_SECPOLICYPRIV_H
321 #undef HAVE_SECURETRANSPORTPRIV_H
322
323
324 /*
325  * Do we have the SecCertificateCopyData function?
326  */
327
328 #undef HAVE_SECCERTIFICATECOPYDATA
329
330
331 /*
332  * Do we have the SecIdentitySearchCreateWithPolicy function?
333  */
334
335 #undef HAVE_SECIDENTITYSEARCHCREATEWITHPOLICY
336
337
338 /*
339  * Do we have the SecPolicyCreateSSL function?
340  */
341
342 #undef HAVE_SECPOLICYCREATESSL
343
344
345 /*
346  * Do we have the SecPolicyCreateSSL function?
347  */
348
349 #undef HAVE_SECPOLICYCREATESSL
350
351
352 /*
353  * Do we have the SSLSetProtocolVersionMax function?
354  */
355
356 #undef HAVE_SSLSETPROTOCOLVERSIONMAX
357
358
359 /*
360  * Do we have the cssmErrorString function?
361  */
362
363 #undef HAVE_CSSMERRORSTRING
364
365
366 /*
367  * Do we have the SLP library?
368  */
369
370 #undef HAVE_LIBSLP
371
372
373 /*
374  * Do we have an LDAP library?
375  */
376
377 #undef HAVE_LDAP
378 #undef HAVE_OPENLDAP
379 #undef HAVE_MOZILLA_LDAP
380 #undef HAVE_LDAP_SSL_H
381 #undef HAVE_LDAP_SSL
382 #undef HAVE_LDAP_REBIND_PROC
383
384
385 /*
386  * Do we have libpaper?
387  */
388
389 #undef HAVE_LIBPAPER
390
391
392 /*
393  * Do we have DNS Service Discovery (aka Bonjour)?
394  */
395
396 #undef HAVE_DNSSD
397
398
399 /*
400  * Do we have Avahi for DNS Service Discovery?
401  */
402
403 #undef HAVE_AVAHI
404
405
406 /*
407  * Do we have <sys/ioctl.h>?
408  */
409
410 #undef HAVE_SYS_IOCTL_H
411
412
413 /*
414  * Does the "stat" structure contain the "st_gen" member?
415  */
416
417 #undef HAVE_ST_GEN
418
419
420 /*
421  * Does the "tm" structure contain the "tm_gmtoff" member?
422  */
423
424 #undef HAVE_TM_GMTOFF
425
426
427 /*
428  * Do we have rresvport_af()?
429  */
430
431 #undef HAVE_RRESVPORT_AF
432
433
434 /*
435  * Do we have getaddrinfo()?
436  */
437
438 #undef HAVE_GETADDRINFO
439
440
441 /*
442  * Do we have getnameinfo()?
443  */
444
445 #undef HAVE_GETNAMEINFO
446
447
448 /*
449  * Do we have getifaddrs()?
450  */
451
452 #undef HAVE_GETIFADDRS
453
454
455 /*
456  * Do we have hstrerror()?
457  */
458
459 #undef HAVE_HSTRERROR
460
461
462 /*
463  * Do we have res_init()?
464  */
465
466 #undef HAVE_RES_INIT
467
468
469 /*
470  * Do we have <resolv.h>
471  */
472
473 #undef HAVE_RESOLV_H
474
475
476 /*
477  * Do we have the <sys/sockio.h> header file?
478  */
479
480 #undef HAVE_SYS_SOCKIO_H
481
482
483 /*
484  * Does the sockaddr structure contain an sa_len parameter?
485  */
486
487 #undef HAVE_STRUCT_SOCKADDR_SA_LEN
488
489
490 /*
491  * Do we have the AIX usersec.h header file?
492  */
493
494 #undef HAVE_USERSEC_H
495
496
497 /*
498  * Do we have pthread support?
499  */
500
501 #undef HAVE_PTHREAD_H
502
503
504 /*
505  * Do we have launchd support?
506  */
507
508 #undef HAVE_LAUNCH_H
509 #undef HAVE_LAUNCHD
510
511
512 /*
513  * Various scripting languages...
514  */
515
516 #undef HAVE_JAVA
517 #define CUPS_JAVA       "/usr/bin/java"
518 #undef HAVE_PERL
519 #define CUPS_PERL       "/usr/bin/perl"
520 #undef HAVE_PHP
521 #define CUPS_PHP        "/usr/bin/php"
522 #undef HAVE_PYTHON
523 #define CUPS_PYTHON     "/usr/bin/python"
524
525
526 /*
527  * Location of the poppler/Xpdf pdftops program...
528  */
529
530 #undef HAVE_PDFTOPS
531 #undef HAVE_PDFTOPS_WITH_ORIGPAGESIZES
532 #define CUPS_PDFTOPS    "/usr/bin/pdftops"
533
534
535 /*
536  * Location of the Ghostscript gs program...
537  */
538
539 #undef HAVE_GHOSTSCRIPT
540 #undef HAVE_GHOSTSCRIPT_PS2WRITE
541 #define CUPS_GHOSTSCRIPT "/usr/bin/gs"
542
543
544 /*
545  * Do we have Darwin's CoreFoundation and SystemConfiguration frameworks?
546  */
547
548 #undef HAVE_COREFOUNDATION
549 #undef HAVE_SYSTEMCONFIGURATION
550
551
552 /*
553  * Do we have CoreFoundation public and private headers?
554  */
555
556 #undef HAVE_COREFOUNDATION_H
557 #undef HAVE_CFPRIV_H
558 #undef HAVE_CFBUNDLEPRIV_H
559
560
561 /*
562  * Do we have ApplicationServices public headers?
563  */
564
565 #undef HAVE_APPLICATIONSERVICES_H
566
567
568 /*
569  * Do we have the SCDynamicStoreCopyComputerName function?
570  */
571
572 #undef HAVE_SCDYNAMICSTORECOPYCOMPUTERNAME
573
574
575 /*
576  * Do we have Mac OS X 10.4's mbr_XXX functions?
577  */
578
579 #undef HAVE_MEMBERSHIP_H
580 #undef HAVE_MEMBERSHIPPRIV_H
581 #undef HAVE_MBR_UID_TO_UUID
582
583
584 /*
585  * Do we have Darwin's notify_post header and function?
586  */
587
588 #undef HAVE_NOTIFY_H
589 #undef HAVE_NOTIFY_POST
590
591
592 /*
593  * Do we have Darwin's IOKit private headers?
594  */
595
596 #undef HAVE_IOKIT_PWR_MGT_IOPMLIBPRIVATE_H
597
598
599 /*
600  * Do we have DBUS?
601  */
602
603 #undef HAVE_DBUS
604 #undef HAVE_DBUS_MESSAGE_ITER_INIT_APPEND
605
606
607 /*
608  * Do we have the GSSAPI support library (for Kerberos support)?
609  */
610
611 #undef HAVE_GSS_ACQUIRE_CRED_EX_F
612 #undef HAVE_GSS_C_NT_HOSTBASED_SERVICE
613 #undef HAVE_GSS_GSSAPI_H
614 #undef HAVE_GSS_GSSAPI_SPI_H
615 #undef HAVE_GSSAPI
616 #undef HAVE_GSSAPI_GENERIC_H
617 #undef HAVE_GSSAPI_GSSAPI_H
618 #undef HAVE_GSSAPI_H
619 #undef HAVE_GSSAPI_KRB5_H
620 #undef HAVE_KRB5_H
621
622
623 /*
624  * Default GSS service name...
625  */
626
627 #define CUPS_DEFAULT_GSSSERVICENAME     ""
628
629
630 /*
631  * Select/poll interfaces...
632  */
633
634 #undef HAVE_POLL
635 #undef HAVE_EPOLL
636 #undef HAVE_KQUEUE
637
638
639 /*
640  * Do we have the <dlfcn.h> header?
641  */
642
643 #undef HAVE_DLFCN_H
644
645
646 /*
647  * Do we have <sys/param.h>?
648  */
649
650 #undef HAVE_SYS_PARAM_H
651
652
653 /*
654  * Do we have <sys/ucred.h>?
655  */
656
657 #undef HAVE_SYS_UCRED_H
658
659
660 /*
661  * Do we have removefile()?
662  */
663
664 #undef HAVE_REMOVEFILE
665
666
667 /*
668  * Do we have <sandbox.h>?
669  */
670
671 #undef HAVE_SANDBOX_H
672
673
674 /*
675  * Which random number generator function to use...
676  */
677
678 #undef HAVE_ARC4RANDOM
679 #undef HAVE_RANDOM
680 #undef HAVE_LRAND48
681
682 #ifdef HAVE_ARC4RANDOM
683 #  define CUPS_RAND() arc4random()
684 #  define CUPS_SRAND(v) arc4random_stir()
685 #elif defined(HAVE_RANDOM)
686 #  define CUPS_RAND() random()
687 #  define CUPS_SRAND(v) srandom(v)
688 #elif defined(HAVE_LRAND48)
689 #  define CUPS_RAND() lrand48()
690 #  define CUPS_SRAND(v) srand48(v)
691 #else
692 #  define CUPS_RAND() rand()
693 #  define CUPS_SRAND(v) srand(v)
694 #endif /* HAVE_ARC4RANDOM */
695
696
697 /*
698  * Do we have vproc_transaction_begin/end?
699  */
700
701 #undef HAVE_VPROC_TRANSACTION_BEGIN
702
703
704 /*
705  * Do we have libusb?
706  */
707
708 #undef HAVE_LIBUSB
709
710
711 /*
712  * Do we have libwrap and tcpd.h?
713  */
714
715 #undef HAVE_TCPD_H
716
717
718 /*
719  * Do we have <iconv.h>?
720  */
721
722 #undef HAVE_ICONV_H
723
724
725 /*
726  * Do we have statfs or statvfs and one of the corresponding headers?
727  */
728
729 #undef HAVE_STATFS
730 #undef HAVE_STATVFS
731 #undef HAVE_SYS_MOUNT_H
732 #undef HAVE_SYS_STATFS_H
733 #undef HAVE_SYS_STATVFS_H
734 #undef HAVE_SYS_VFS_H
735
736
737 /*
738  * Location of Mac OS X localization bundle, if any.
739  */
740
741 #undef CUPS_BUNDLEDIR
742
743
744 /*
745  * Do we have the ColorSyncRegisterDevice function?
746  */
747
748 #undef HAVE_COLORSYNCREGISTERDEVICE
749
750
751 /*
752  * Do we have XPC?
753  */
754
755 #undef HAVE_XPC
756
757
758 #endif /* !_CUPS_CONFIG_H_ */
759
760 /*
761  * End of "$Id: config.h.in 10371 2012-03-21 04:45:48Z mike $".
762  */