]>
Commit | Line | Data |
---|---|---|
ef416fc2 | 1 | /* |
b19ccc9e | 2 | * "$Id: config.h.in 7918 2008-09-08 22:03:01Z mike $" |
ef416fc2 | 3 | * |
4 | * Configuration file for the Common UNIX Printing System (CUPS). | |
5 | * | |
b9faaae1 | 6 | * Copyright 2007-2009 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 | /* |
103 | * Do we have domain socket support? | |
104 | */ | |
105 | ||
106 | #undef CUPS_DEFAULT_DOMAINSOCKET | |
107 | ||
108 | ||
109 | /* | |
110 | * Where are files stored? | |
111 | * | |
112 | * Note: These are defaults, which can be overridden by environment | |
113 | * variables at run-time... | |
114 | */ | |
115 | ||
fa73b229 | 116 | #define CUPS_BINDIR "/usr/bin" |
ef416fc2 | 117 | #define CUPS_CACHEDIR "/var/cache/cups" |
118 | #define CUPS_DATADIR "/usr/share/cups" | |
119 | #define CUPS_DOCROOT "/usr/share/doc/cups" | |
120 | #define CUPS_FONTPATH "/usr/share/cups/fonts" | |
121 | #define CUPS_LOCALEDIR "/usr/share/locale" | |
122 | #define CUPS_LOGDIR "/var/logs/cups" | |
123 | #define CUPS_REQUESTS "/var/spool/cups" | |
fa73b229 | 124 | #define CUPS_SBINDIR "/usr/sbin" |
ef416fc2 | 125 | #define CUPS_SERVERBIN "/usr/lib/cups" |
126 | #define CUPS_SERVERROOT "/etc/cups" | |
127 | #define CUPS_STATEDIR "/var/run/cups" | |
128 | ||
129 | ||
130 | /* | |
131 | * Do we have various image libraries? | |
132 | */ | |
133 | ||
134 | #undef HAVE_LIBPNG | |
135 | #undef HAVE_LIBZ | |
136 | #undef HAVE_LIBJPEG | |
137 | #undef HAVE_LIBTIFF | |
138 | ||
139 | ||
140 | /* | |
141 | * Do we have PAM stuff? | |
142 | */ | |
143 | ||
144 | #ifndef HAVE_LIBPAM | |
145 | #define HAVE_LIBPAM 0 | |
146 | #endif /* !HAVE_LIBPAM */ | |
147 | ||
148 | #undef HAVE_PAM_PAM_APPL_H | |
a4924f6c | 149 | #undef HAVE_PAM_SET_ITEM |
ee571f26 | 150 | #undef HAVE_PAM_SETCRED |
ef416fc2 | 151 | |
152 | ||
153 | /* | |
154 | * Do we have <shadow.h>? | |
155 | */ | |
156 | ||
157 | #undef HAVE_SHADOW_H | |
158 | ||
159 | ||
160 | /* | |
161 | * Do we have <crypt.h>? | |
162 | */ | |
163 | ||
164 | #undef HAVE_CRYPT_H | |
165 | ||
166 | ||
2abf387c | 167 | /* |
168 | * Do we have <scsi/sg.h>? | |
169 | */ | |
170 | ||
171 | #undef HAVE_SCSI_SG_H | |
172 | ||
173 | ||
ef416fc2 | 174 | /* |
175 | * Use <string.h>, <strings.h>, and/or <bstring.h>? | |
176 | */ | |
177 | ||
178 | #undef HAVE_STRING_H | |
179 | #undef HAVE_STRINGS_H | |
180 | #undef HAVE_BSTRING_H | |
181 | ||
182 | /* | |
183 | * Do we have the long long type? | |
184 | */ | |
185 | ||
186 | #undef HAVE_LONG_LONG | |
187 | ||
188 | #ifdef HAVE_LONG_LONG | |
189 | # define CUPS_LLFMT "%lld" | |
190 | # define CUPS_LLCAST (long long) | |
191 | #else | |
192 | # define CUPS_LLFMT "%ld" | |
193 | # define CUPS_LLCAST (long) | |
194 | #endif /* HAVE_LONG_LONG */ | |
195 | ||
196 | /* | |
197 | * Do we have the strtoll() function? | |
198 | */ | |
199 | ||
200 | #undef HAVE_STRTOLL | |
201 | ||
202 | #ifndef HAVE_STRTOLL | |
203 | # define strtoll(nptr,endptr,base) strtol((nptr), (endptr), (base)) | |
204 | #endif /* !HAVE_STRTOLL */ | |
205 | ||
206 | /* | |
207 | * Do we have the strXXX() functions? | |
208 | */ | |
209 | ||
210 | #undef HAVE_STRDUP | |
211 | #undef HAVE_STRCASECMP | |
212 | #undef HAVE_STRNCASECMP | |
213 | #undef HAVE_STRLCAT | |
214 | #undef HAVE_STRLCPY | |
215 | ||
216 | ||
217 | /* | |
218 | * Do we have the geteuid() function? | |
219 | */ | |
220 | ||
221 | #undef HAVE_GETEUID | |
222 | ||
223 | ||
224 | /* | |
225 | * Do we have the vsyslog() function? | |
226 | */ | |
227 | ||
228 | #undef HAVE_VSYSLOG | |
229 | ||
230 | ||
231 | /* | |
232 | * Do we have the (v)snprintf() functions? | |
233 | */ | |
234 | ||
235 | #undef HAVE_SNPRINTF | |
236 | #undef HAVE_VSNPRINTF | |
237 | ||
238 | ||
239 | /* | |
240 | * What signal functions to use? | |
241 | */ | |
242 | ||
243 | #undef HAVE_SIGSET | |
244 | #undef HAVE_SIGACTION | |
245 | ||
246 | ||
247 | /* | |
248 | * What wait functions to use? | |
249 | */ | |
250 | ||
251 | #undef HAVE_WAITPID | |
252 | #undef HAVE_WAIT3 | |
253 | ||
254 | ||
255 | /* | |
256 | * Do we have the mallinfo function and malloc.h? | |
257 | */ | |
258 | ||
259 | #undef HAVE_MALLINFO | |
260 | #undef HAVE_MALLOC_H | |
261 | ||
262 | ||
fa73b229 | 263 | /* |
264 | * Do we have the POSIX ACL functions? | |
265 | */ | |
266 | ||
267 | #undef HAVE_ACL_INIT | |
268 | ||
269 | ||
ef416fc2 | 270 | /* |
271 | * Do we have the langinfo.h header file? | |
272 | */ | |
273 | ||
274 | #undef HAVE_LANGINFO_H | |
275 | ||
276 | ||
277 | /* | |
278 | * Which encryption libraries do we have? | |
279 | */ | |
280 | ||
281 | #undef HAVE_CDSASSL | |
282 | #undef HAVE_GNUTLS | |
283 | #undef HAVE_LIBSSL | |
284 | #undef HAVE_SSL | |
285 | ||
286 | ||
ed486911 | 287 | /* |
b86bc4cf | 288 | * What Security framework headers do we have? |
ed486911 | 289 | */ |
290 | ||
f7deaa1a | 291 | #undef HAVE_AUTHORIZATION_H |
b86bc4cf | 292 | #undef HAVE_SECPOLICY_H |
293 | #undef HAVE_SECPOLICYPRIV_H | |
ed486911 | 294 | #undef HAVE_SECBASEPRIV_H |
b86bc4cf | 295 | #undef HAVE_SECIDENTITYSEARCHPRIV_H |
296 | ||
297 | ||
298 | /* | |
299 | * Do we have the SecIdentitySearchCreateWithPolicy function? | |
300 | */ | |
301 | ||
302 | #undef HAVE_SECIDENTITYSEARCHCREATEWITHPOLICY | |
ed486911 | 303 | |
304 | ||
ef416fc2 | 305 | /* |
b423cd4c | 306 | * Do we have the SLP library? |
ef416fc2 | 307 | */ |
308 | ||
309 | #undef HAVE_LIBSLP | |
310 | ||
311 | ||
b423cd4c | 312 | /* |
313 | * Do we have an LDAP library? | |
314 | */ | |
315 | ||
316 | #undef HAVE_LDAP | |
317 | #undef HAVE_OPENLDAP | |
749b1e90 MS |
318 | #undef HAVE_MOZILLA_LDAP |
319 | #undef HAVE_LDAP_SSL_H | |
320 | #undef HAVE_LDAP_SSL | |
321 | #undef HAVE_LDAP_REBIND_PROC | |
b423cd4c | 322 | |
323 | ||
ef416fc2 | 324 | /* |
325 | * Do we have libpaper? | |
326 | */ | |
327 | ||
328 | #undef HAVE_LIBPAPER | |
329 | ||
330 | ||
f7deaa1a | 331 | /* |
332 | * Do we have DNS Service Discovery (aka Bonjour)? | |
333 | */ | |
334 | ||
335 | #undef HAVE_DNSSD | |
336 | ||
337 | ||
338 | /* | |
339 | * Do we have Darwin's CoreFoundation and SystemConfiguration frameworks? | |
340 | */ | |
341 | ||
342 | #undef HAVE_COREFOUNDATION | |
343 | #undef HAVE_SYSTEMCONFIGURATION | |
344 | ||
345 | ||
ef416fc2 | 346 | /* |
347 | * Do we have <sys/ioctl.h>? | |
348 | */ | |
349 | ||
350 | #undef HAVE_SYS_IOCTL_H | |
351 | ||
352 | ||
353 | /* | |
354 | * Do we have mkstemp() and/or mkstemps()? | |
355 | */ | |
356 | ||
357 | #undef HAVE_MKSTEMP | |
358 | #undef HAVE_MKSTEMPS | |
359 | ||
360 | ||
361 | /* | |
362 | * Does the "tm" structure contain the "tm_gmtoff" member? | |
363 | */ | |
364 | ||
365 | #undef HAVE_TM_GMTOFF | |
366 | ||
367 | ||
368 | /* | |
369 | * Do we have rresvport_af()? | |
370 | */ | |
371 | ||
372 | #undef HAVE_RRESVPORT_AF | |
373 | ||
374 | ||
375 | /* | |
376 | * Do we have getaddrinfo()? | |
377 | */ | |
378 | ||
379 | #undef HAVE_GETADDRINFO | |
380 | ||
381 | ||
382 | /* | |
383 | * Do we have getnameinfo()? | |
384 | */ | |
385 | ||
386 | #undef HAVE_GETNAMEINFO | |
387 | ||
388 | ||
389 | /* | |
390 | * Do we have getifaddrs()? | |
391 | */ | |
392 | ||
393 | #undef HAVE_GETIFADDRS | |
394 | ||
395 | ||
396 | /* | |
397 | * Do we have hstrerror()? | |
398 | */ | |
399 | ||
400 | #undef HAVE_HSTRERROR | |
401 | ||
402 | ||
49d87452 MS |
403 | /* |
404 | * Do we have res_init()? | |
405 | */ | |
406 | ||
407 | #undef HAVE_RES_INIT | |
408 | ||
409 | ||
410 | /* | |
411 | * Do we have <resolv.h> | |
412 | */ | |
413 | ||
414 | #undef HAVE_RESOLV_H | |
415 | ||
416 | ||
ef416fc2 | 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 | ||
536bc2c6 | 437 | |
ef416fc2 | 438 | /* |
439 | * Do we have pthread support? | |
440 | */ | |
441 | ||
442 | #undef HAVE_PTHREAD_H | |
443 | ||
444 | ||
a4d04587 | 445 | /* |
446 | * Do we have launchd support? | |
447 | */ | |
448 | ||
449 | #undef HAVE_LAUNCH_H | |
450 | #undef HAVE_LAUNCHD | |
451 | #define CUPS_DEFAULT_LAUNCHD_CONF "" | |
452 | ||
453 | ||
ef416fc2 | 454 | /* |
455 | * Various scripting languages... | |
456 | */ | |
457 | ||
458 | #undef HAVE_JAVA | |
459 | #define CUPS_JAVA "/usr/bin/java" | |
460 | #undef HAVE_PERL | |
461 | #define CUPS_PERL "/usr/bin/perl" | |
462 | #undef HAVE_PHP | |
463 | #define CUPS_PHP "/usr/bin/php" | |
464 | #undef HAVE_PYTHON | |
465 | #define CUPS_PYTHON "/usr/bin/python" | |
466 | ||
467 | ||
91c84a35 MS |
468 | /* |
469 | * Location of the poppler/Xpdf pdftops program... | |
470 | */ | |
471 | ||
ae71f5de | 472 | #undef HAVE_PDFTOPS |
91c84a35 MS |
473 | #define CUPS_PDFTOPS "/usr/bin/pdftops" |
474 | ||
475 | ||
ae71f5de MS |
476 | /* |
477 | * Location of the Ghostscript gs program... | |
478 | */ | |
479 | ||
480 | #undef HAVE_GHOSTSCRIPT | |
481 | #define CUPS_GHOSTSCRIPT "/usr/bin/gs" | |
482 | ||
483 | ||
fa73b229 | 484 | /* |
485 | * Do we have Darwin's CoreFoundation and SystemConfiguration frameworks? | |
486 | */ | |
487 | ||
488 | #undef HAVE_COREFOUNDATION | |
489 | #undef HAVE_SYSTEMCONFIGURATION | |
490 | ||
491 | ||
492 | /* | |
493 | * Do we have CoreFoundation public and private headers? | |
494 | */ | |
495 | ||
496 | #undef HAVE_COREFOUNDATION_H | |
497 | #undef HAVE_CFPRIV_H | |
498 | #undef HAVE_CFBUNDLEPRIV_H | |
499 | ||
500 | ||
501 | /* | |
502 | * Do we have MacOSX 10.4's mbr_XXX functions()? | |
503 | */ | |
504 | ||
505 | #undef HAVE_MEMBERSHIP_H | |
7594b224 | 506 | #undef HAVE_MEMBERSHIPPRIV_H |
fa73b229 | 507 | #undef HAVE_MBR_UID_TO_UUID |
508 | ||
509 | ||
510 | /* | |
511 | * Do we have Darwin's notify_post() header and function? | |
512 | */ | |
513 | ||
514 | #undef HAVE_NOTIFY_H | |
515 | #undef HAVE_NOTIFY_POST | |
516 | ||
517 | ||
e00b005a | 518 | /* |
519 | * Do we have DBUS? | |
520 | */ | |
521 | ||
522 | #undef HAVE_DBUS | |
2abf387c | 523 | #undef HAVE_DBUS_MESSAGE_ITER_INIT_APPEND |
e00b005a | 524 | |
525 | ||
a74454a7 | 526 | /* |
527 | * Do we have the AppleTalk/at_proto.h header? | |
528 | */ | |
529 | ||
530 | #undef HAVE_APPLETALK_AT_PROTO_H | |
531 | ||
532 | ||
f7deaa1a | 533 | /* |
534 | * Do we have the GSSAPI support library (for Kerberos support)? | |
535 | */ | |
536 | ||
537 | #undef HAVE_GSSAPI | |
538 | #undef HAVE_GSSAPI_H | |
539 | #undef HAVE_GSSAPI_GSSAPI_H | |
540 | #undef HAVE_GSSAPI_GSSAPI_GENERIC_H | |
541 | #undef HAVE_GSSAPI_GSSAPI_KRB5_H | |
542 | #undef HAVE_GSSKRB5_REGISTER_ACCEPTOR_IDENTITY | |
543 | #undef HAVE_GSS_C_NT_HOSTBASED_SERVICE | |
c24d2134 | 544 | #undef HAVE_KRB5_CC_NEW_UNIQUE |
e07d4801 | 545 | #undef HAVE_KRB5_IPC_CLIENT_SET_TARGET_UID |
f7deaa1a | 546 | #undef HAVE_KRB5_H |
547 | #undef HAVE_HEIMDAL | |
548 | ||
549 | ||
550 | /* | |
551 | * Default GSS service name... | |
552 | */ | |
553 | ||
554 | #define CUPS_DEFAULT_GSSSERVICENAME "" | |
555 | ||
556 | ||
557 | /* | |
558 | * Select/poll interfaces... | |
559 | */ | |
560 | ||
561 | #undef HAVE_POLL | |
562 | #undef HAVE_EPOLL | |
563 | #undef HAVE_KQUEUE | |
564 | ||
565 | ||
7594b224 | 566 | /* |
567 | * Do we have the <dlfcn.h> header? | |
568 | */ | |
569 | ||
570 | #undef HAVE_DLFCN_H | |
571 | ||
572 | ||
db1f069b MS |
573 | /* |
574 | * Do we have <sys/param.h>? | |
575 | */ | |
576 | ||
577 | #undef HAVE_SYS_PARAM_H | |
578 | ||
579 | ||
bc44d920 | 580 | /* |
581 | * Do we have <sys/ucred.h>? | |
582 | */ | |
583 | ||
584 | #undef HAVE_SYS_UCRED_H | |
585 | ||
586 | ||
cc0d019f MS |
587 | /* |
588 | * Do we have removefile()? | |
589 | */ | |
590 | ||
591 | #undef HAVE_REMOVEFILE | |
592 | ||
593 | ||
a4924f6c MS |
594 | /* |
595 | * Do we have <sandbox.h>? | |
596 | */ | |
597 | ||
598 | #undef HAVE_SANDBOX_H | |
599 | ||
600 | ||
ac884b6a MS |
601 | /* |
602 | * Which random number generator function to use... | |
603 | */ | |
604 | ||
605 | #undef HAVE_RANDOM | |
606 | #undef HAVE_MRAND48 | |
607 | #undef HAVE_LRAND48 | |
608 | ||
609 | ||
178cb736 MS |
610 | /* |
611 | * Do we have vproc_transaction_begin/end? | |
612 | */ | |
613 | ||
614 | #undef HAVE_VPROC_TRANSACTION_BEGIN | |
615 | ||
616 | ||
75bd9771 MS |
617 | /* |
618 | * Do we have libusb? | |
619 | */ | |
620 | ||
621 | #undef HAVE_USB_H | |
622 | ||
623 | ||
749b1e90 MS |
624 | /* |
625 | * Do we have libwrap and tcpd.h? | |
626 | */ | |
627 | ||
628 | #undef HAVE_TCPD_H | |
629 | ||
630 | ||
ef416fc2 | 631 | #endif /* !_CUPS_CONFIG_H_ */ |
632 | ||
633 | /* | |
b19ccc9e | 634 | * End of "$Id: config.h.in 7918 2008-09-08 22:03:01Z mike $". |
ef416fc2 | 635 | */ |