]> git.ipfire.org Git - thirdparty/cups.git/blob - config.h.in
Merge changes from CUPS 1.4svn-r7696.
[thirdparty/cups.git] / config.h.in
1 /*
2 * "$Id: config.h.in 7687 2008-06-24 01:28:36Z mike $"
3 *
4 * Configuration file for the Common UNIX Printing System (CUPS).
5 *
6 * Copyright 2007-2008 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_PRINTADMIN_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 browsing settings...
47 */
48
49 #define CUPS_DEFAULT_BROWSING 1
50 #define CUPS_DEFAULT_BROWSE_LOCAL_PROTOCOLS "CUPS"
51 #define CUPS_DEFAULT_BROWSE_REMOTE_PROTOCOLS "CUPS"
52 #define CUPS_DEFAULT_BROWSE_SHORT_NAMES 1
53 #define CUPS_DEFAULT_DEFAULT_SHARED 1
54 #define CUPS_DEFAULT_IMPLICIT_CLASSES 1
55 #define CUPS_DEFAULT_USE_NETWORK_DEFAULT 1
56
57
58 /*
59 * Default IPP port...
60 */
61
62 #define CUPS_DEFAULT_IPP_PORT 631
63
64
65 /*
66 * Default printcap file...
67 */
68
69 #define CUPS_DEFAULT_PRINTCAP "/etc/printcap"
70
71
72 /*
73 * Default Samba and LPD config files...
74 */
75
76 #define CUPS_DEFAULT_SMB_CONFIG_FILE ""
77 #define CUPS_DEFAULT_LPD_CONFIG_FILE ""
78
79
80 /*
81 * Default MaxCopies value...
82 */
83
84 #define CUPS_DEFAULT_MAX_COPIES 100
85
86
87 /*
88 * Do we have domain socket support?
89 */
90
91 #undef CUPS_DEFAULT_DOMAINSOCKET
92
93
94 /*
95 * Where are files stored?
96 *
97 * Note: These are defaults, which can be overridden by environment
98 * variables at run-time...
99 */
100
101 #define CUPS_BINDIR "/usr/bin"
102 #define CUPS_CACHEDIR "/var/cache/cups"
103 #define CUPS_DATADIR "/usr/share/cups"
104 #define CUPS_DOCROOT "/usr/share/doc/cups"
105 #define CUPS_FONTPATH "/usr/share/cups/fonts"
106 #define CUPS_LOCALEDIR "/usr/share/locale"
107 #define CUPS_LOGDIR "/var/logs/cups"
108 #define CUPS_REQUESTS "/var/spool/cups"
109 #define CUPS_SBINDIR "/usr/sbin"
110 #define CUPS_SERVERBIN "/usr/lib/cups"
111 #define CUPS_SERVERROOT "/etc/cups"
112 #define CUPS_STATEDIR "/var/run/cups"
113
114
115 /*
116 * Do we have various image libraries?
117 */
118
119 #undef HAVE_LIBPNG
120 #undef HAVE_LIBZ
121 #undef HAVE_LIBJPEG
122 #undef HAVE_LIBTIFF
123
124
125 /*
126 * Do we have PAM stuff?
127 */
128
129 #ifndef HAVE_LIBPAM
130 #define HAVE_LIBPAM 0
131 #endif /* !HAVE_LIBPAM */
132
133 #undef HAVE_PAM_PAM_APPL_H
134 #undef HAVE_PAM_SET_ITEM
135
136
137 /*
138 * Do we have <shadow.h>?
139 */
140
141 #undef HAVE_SHADOW_H
142
143
144 /*
145 * Do we have <crypt.h>?
146 */
147
148 #undef HAVE_CRYPT_H
149
150
151 /*
152 * Do we have <scsi/sg.h>?
153 */
154
155 #undef HAVE_SCSI_SG_H
156
157
158 /*
159 * Use <string.h>, <strings.h>, and/or <bstring.h>?
160 */
161
162 #undef HAVE_STRING_H
163 #undef HAVE_STRINGS_H
164 #undef HAVE_BSTRING_H
165
166 /*
167 * Do we have the long long type?
168 */
169
170 #undef HAVE_LONG_LONG
171
172 #ifdef HAVE_LONG_LONG
173 # define CUPS_LLFMT "%lld"
174 # define CUPS_LLCAST (long long)
175 #else
176 # define CUPS_LLFMT "%ld"
177 # define CUPS_LLCAST (long)
178 #endif /* HAVE_LONG_LONG */
179
180 /*
181 * Do we have the strtoll() function?
182 */
183
184 #undef HAVE_STRTOLL
185
186 #ifndef HAVE_STRTOLL
187 # define strtoll(nptr,endptr,base) strtol((nptr), (endptr), (base))
188 #endif /* !HAVE_STRTOLL */
189
190 /*
191 * Do we have the strXXX() functions?
192 */
193
194 #undef HAVE_STRDUP
195 #undef HAVE_STRCASECMP
196 #undef HAVE_STRNCASECMP
197 #undef HAVE_STRLCAT
198 #undef HAVE_STRLCPY
199
200
201 /*
202 * Do we have the geteuid() function?
203 */
204
205 #undef HAVE_GETEUID
206
207
208 /*
209 * Do we have the vsyslog() function?
210 */
211
212 #undef HAVE_VSYSLOG
213
214
215 /*
216 * Do we have the (v)snprintf() functions?
217 */
218
219 #undef HAVE_SNPRINTF
220 #undef HAVE_VSNPRINTF
221
222
223 /*
224 * What signal functions to use?
225 */
226
227 #undef HAVE_SIGSET
228 #undef HAVE_SIGACTION
229
230
231 /*
232 * What wait functions to use?
233 */
234
235 #undef HAVE_WAITPID
236 #undef HAVE_WAIT3
237
238
239 /*
240 * Do we have the mallinfo function and malloc.h?
241 */
242
243 #undef HAVE_MALLINFO
244 #undef HAVE_MALLOC_H
245
246
247 /*
248 * Do we have the POSIX ACL functions?
249 */
250
251 #undef HAVE_ACL_INIT
252
253
254 /*
255 * Do we have the langinfo.h header file?
256 */
257
258 #undef HAVE_LANGINFO_H
259
260
261 /*
262 * Which encryption libraries do we have?
263 */
264
265 #undef HAVE_CDSASSL
266 #undef HAVE_GNUTLS
267 #undef HAVE_LIBSSL
268 #undef HAVE_SSL
269
270
271 /*
272 * What Security framework headers do we have?
273 */
274
275 #undef HAVE_AUTHORIZATION_H
276 #undef HAVE_SECPOLICY_H
277 #undef HAVE_SECPOLICYPRIV_H
278 #undef HAVE_SECBASEPRIV_H
279 #undef HAVE_SECIDENTITYSEARCHPRIV_H
280
281
282 /*
283 * Do we have the SecIdentitySearchCreateWithPolicy function?
284 */
285
286 #undef HAVE_SECIDENTITYSEARCHCREATEWITHPOLICY
287
288
289 /*
290 * Do we have the SLP library?
291 */
292
293 #undef HAVE_LIBSLP
294
295
296 /*
297 * Do we have an LDAP library?
298 */
299
300 #undef HAVE_LDAP
301 #undef HAVE_OPENLDAP
302
303
304 /*
305 * Do we have libpaper?
306 */
307
308 #undef HAVE_LIBPAPER
309
310
311 /*
312 * Do we have DNS Service Discovery (aka Bonjour)?
313 */
314
315 #undef HAVE_DNSSD
316
317
318 /*
319 * Do we have Darwin's CoreFoundation and SystemConfiguration frameworks?
320 */
321
322 #undef HAVE_COREFOUNDATION
323 #undef HAVE_SYSTEMCONFIGURATION
324
325
326 /*
327 * Do we have <sys/ioctl.h>?
328 */
329
330 #undef HAVE_SYS_IOCTL_H
331
332
333 /*
334 * Do we have mkstemp() and/or mkstemps()?
335 */
336
337 #undef HAVE_MKSTEMP
338 #undef HAVE_MKSTEMPS
339
340
341 /*
342 * Does the "tm" structure contain the "tm_gmtoff" member?
343 */
344
345 #undef HAVE_TM_GMTOFF
346
347
348 /*
349 * Do we have rresvport_af()?
350 */
351
352 #undef HAVE_RRESVPORT_AF
353
354
355 /*
356 * Do we have getaddrinfo()?
357 */
358
359 #undef HAVE_GETADDRINFO
360
361
362 /*
363 * Do we have getnameinfo()?
364 */
365
366 #undef HAVE_GETNAMEINFO
367
368
369 /*
370 * Do we have getifaddrs()?
371 */
372
373 #undef HAVE_GETIFADDRS
374
375
376 /*
377 * Do we have hstrerror()?
378 */
379
380 #undef HAVE_HSTRERROR
381
382
383 /*
384 * Do we have the <sys/sockio.h> header file?
385 */
386
387 #undef HAVE_SYS_SOCKIO_H
388
389
390 /*
391 * Does the sockaddr structure contain an sa_len parameter?
392 */
393
394 #undef HAVE_STRUCT_SOCKADDR_SA_LEN
395
396
397 /*
398 * Do we have the AIX usersec.h header file?
399 */
400
401 #undef HAVE_USERSEC_H
402
403 /*
404 * Do we have pthread support?
405 */
406
407 #undef HAVE_PTHREAD_H
408
409
410 /*
411 * Do we have launchd support?
412 */
413
414 #undef HAVE_LAUNCH_H
415 #undef HAVE_LAUNCHD
416 #define CUPS_DEFAULT_LAUNCHD_CONF ""
417
418
419 /*
420 * Various scripting languages...
421 */
422
423 #undef HAVE_JAVA
424 #define CUPS_JAVA "/usr/bin/java"
425 #undef HAVE_PERL
426 #define CUPS_PERL "/usr/bin/perl"
427 #undef HAVE_PHP
428 #define CUPS_PHP "/usr/bin/php"
429 #undef HAVE_PYTHON
430 #define CUPS_PYTHON "/usr/bin/python"
431
432
433 /*
434 * Location of the poppler/Xpdf pdftops program...
435 */
436
437 #undef HAVE_PDFTOPS
438 #define CUPS_PDFTOPS "/usr/bin/pdftops"
439
440
441 /*
442 * Location of the Ghostscript gs program...
443 */
444
445 #undef HAVE_GHOSTSCRIPT
446 #define CUPS_GHOSTSCRIPT "/usr/bin/gs"
447
448
449 /*
450 * Do we have Darwin's CoreFoundation and SystemConfiguration frameworks?
451 */
452
453 #undef HAVE_COREFOUNDATION
454 #undef HAVE_SYSTEMCONFIGURATION
455
456
457 /*
458 * Do we have CoreFoundation public and private headers?
459 */
460
461 #undef HAVE_COREFOUNDATION_H
462 #undef HAVE_CFPRIV_H
463 #undef HAVE_CFBUNDLEPRIV_H
464
465
466 /*
467 * Do we have MacOSX 10.4's mbr_XXX functions()?
468 */
469
470 #undef HAVE_MEMBERSHIP_H
471 #undef HAVE_MEMBERSHIPPRIV_H
472 #undef HAVE_MBR_UID_TO_UUID
473
474
475 /*
476 * Do we have Darwin's notify_post() header and function?
477 */
478
479 #undef HAVE_NOTIFY_H
480 #undef HAVE_NOTIFY_POST
481
482
483 /*
484 * Do we have DBUS?
485 */
486
487 #undef HAVE_DBUS
488 #undef HAVE_DBUS_MESSAGE_ITER_INIT_APPEND
489
490
491 /*
492 * Do we have the AppleTalk/at_proto.h header?
493 */
494
495 #undef HAVE_APPLETALK_AT_PROTO_H
496
497
498 /*
499 * Do we have the GSSAPI support library (for Kerberos support)?
500 */
501
502 #undef HAVE_GSSAPI
503 #undef HAVE_GSSAPI_H
504 #undef HAVE_GSSAPI_GSSAPI_H
505 #undef HAVE_GSSAPI_GSSAPI_GENERIC_H
506 #undef HAVE_GSSAPI_GSSAPI_KRB5_H
507 #undef HAVE_GSSKRB5_REGISTER_ACCEPTOR_IDENTITY
508 #undef HAVE_GSS_C_NT_HOSTBASED_SERVICE
509 #undef HAVE_KRB5_CC_NEW_UNIQUE
510 #undef HAVE_KRB5_H
511 #undef HAVE_HEIMDAL
512
513
514 /*
515 * Default GSS service name...
516 */
517
518 #define CUPS_DEFAULT_GSSSERVICENAME ""
519
520
521 /*
522 * Select/poll interfaces...
523 */
524
525 #undef HAVE_POLL
526 #undef HAVE_EPOLL
527 #undef HAVE_KQUEUE
528
529
530 /*
531 * Do we have the <dlfcn.h> header?
532 */
533
534 #undef HAVE_DLFCN_H
535
536
537 /*
538 * Do we have <sys/param.h>?
539 */
540
541 #undef HAVE_SYS_PARAM_H
542
543
544 /*
545 * Do we have <sys/ucred.h>?
546 */
547
548 #undef HAVE_SYS_UCRED_H
549
550
551 /*
552 * Do we have removefile()?
553 */
554
555 #undef HAVE_REMOVEFILE
556
557
558 /*
559 * Do we have <sandbox.h>?
560 */
561
562 #undef HAVE_SANDBOX_H
563
564
565 /*
566 * Which random number generator function to use...
567 */
568
569 #undef HAVE_RANDOM
570 #undef HAVE_MRAND48
571 #undef HAVE_LRAND48
572
573
574 /*
575 * Do we have libusb?
576 */
577
578 #undef HAVE_USB_H
579
580
581 #endif /* !_CUPS_CONFIG_H_ */
582
583 /*
584 * End of "$Id: config.h.in 7687 2008-06-24 01:28:36Z mike $".
585 */