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