]> git.ipfire.org Git - thirdparty/cups.git/blame - config.h.in
Merge poll branch into trunk - cupsd now uses poll(), epoll(), or kqueue()
[thirdparty/cups.git] / config.h.in
CommitLineData
3a57cba8 1/*
c9d3f842 2 * "$Id$"
3a57cba8 3 *
4 * Configuration file for the Common UNIX Printing System (CUPS).
5 *
6dc66910 6 * Copyright 1997-2006 by Easy Software Products.
3a57cba8 7 *
8 * These coded instructions, statements, and computer programs are the
9 * property of Easy Software Products and are protected by Federal
10 * copyright law. Distribution and use rights are outlined in the file
11 * "LICENSE.txt" which should have been included with this file. If this
12 * file is missing or damaged please contact Easy Software Products
13 * at:
14 *
15 * Attn: CUPS Licensing Information
16 * Easy Software Products
c9e6a22c 17 * 44141 Airport View Drive, Suite 204
9e55d0dc 18 * Hollywood, Maryland 20636 USA
3a57cba8 19 *
e338c390 20 * Voice: (301) 373-9600
3a57cba8 21 * EMail: cups-info@cups.org
22 * WWW: http://www.cups.org
23 */
24
2d417cb3 25#ifndef _CUPS_CONFIG_H_
26#define _CUPS_CONFIG_H_
27
3a57cba8 28/*
29 * Version of software...
30 */
31
18dcf583 32#define CUPS_SVERSION ""
90ad5874 33#define CUPS_MINIMAL ""
3a57cba8 34
753453e4 35
36/*
6dc66910 37 * Default user and groups...
753453e4 38 */
39
40#define CUPS_DEFAULT_USER "lp"
41#define CUPS_DEFAULT_GROUP "sys"
6dc66910 42#define CUPS_DEFAULT_SYSTEM_GROUPS "sys root system"
43
44
45/*
46 * Default file permissions...
47 */
48
49#define CUPS_DEFAULT_CONFIG_FILE_PERM 0640
50#define CUPS_DEFAULT_LOG_FILE_PERM 0644
51
52
53/*
54 * Default browsing settings...
55 */
56
57#define CUPS_DEFAULT_BROWSING 1
58#define CUPS_DEFAULT_BROWSE_LOCAL_PROTOCOLS "CUPS"
59#define CUPS_DEFAULT_BROWSE_REMOTE_PROTOCOLS "CUPS"
60#define CUPS_DEFAULT_BROWSE_SHORT_NAMES 1
61#define CUPS_DEFAULT_DEFAULT_SHARED 1
62#define CUPS_DEFAULT_IMPLICIT_CLASSES 1
5bd8a9fa 63#define CUPS_DEFAULT_USE_NETWORK_DEFAULT 1
753453e4 64
65
1d9595ab 66/*
67 * Default IPP port...
68 */
69
70#define CUPS_DEFAULT_IPP_PORT 631
71
72
7e826c4a 73/*
74 * Default printcap file...
75 */
76
77#define CUPS_DEFAULT_PRINTCAP "/etc/printcap"
78
79
38617900 80/*
81 * Default MaxCopies value...
82 */
83
84#define CUPS_DEFAULT_MAX_COPIES 100
85
86
a351bcb0 87/*
88 * Maximum number of file descriptors to support.
89 */
90
91#define CUPS_MAX_FDS 4096
92
93
c6075312 94/*
95 * Do we have domain socket support?
96 */
97
c94f4aa9 98#undef CUPS_DEFAULT_DOMAINSOCKET
c6075312 99
100
a810d5d8 101/*
102 * Where are files stored?
f2bc527f 103 *
104 * Note: These are defaults, which can be overridden by environment
105 * variables at run-time...
a810d5d8 106 */
107
1f732f97 108#define CUPS_BINDIR "/usr/bin"
f2bc527f 109#define CUPS_CACHEDIR "/var/cache/cups"
110#define CUPS_DATADIR "/usr/share/cups"
aff2356d 111#define CUPS_DOCROOT "/usr/share/doc/cups"
f2bc527f 112#define CUPS_FONTPATH "/usr/share/cups/fonts"
113#define CUPS_LOCALEDIR "/usr/share/locale"
114#define CUPS_LOGDIR "/var/logs/cups"
bd84e0d1 115#define CUPS_REQUESTS "/var/spool/cups"
1f732f97 116#define CUPS_SBINDIR "/usr/sbin"
f2bc527f 117#define CUPS_SERVERBIN "/usr/lib/cups"
118#define CUPS_SERVERROOT "/etc/cups"
d4102150 119#define CUPS_STATEDIR "/var/run/cups"
bd84e0d1 120
753453e4 121
3a57cba8 122/*
123 * Do we have various image libraries?
124 */
125
a810d5d8 126#undef HAVE_LIBPNG
127#undef HAVE_LIBZ
128#undef HAVE_LIBJPEG
129#undef HAVE_LIBTIFF
3a57cba8 130
753453e4 131
8e3eb75d 132/*
133 * Do we have PAM stuff?
134 */
135
136#ifndef HAVE_LIBPAM
137#define HAVE_LIBPAM 0
138#endif /* !HAVE_LIBPAM */
139
ed6078a4 140#undef HAVE_PAM_PAM_APPL_H
141
753453e4 142
3a57cba8 143/*
144 * Do we have <shadow.h>?
145 */
146
a810d5d8 147#undef HAVE_SHADOW_H
3a57cba8 148
753453e4 149
ba8a42d9 150/*
151 * Do we have <crypt.h>?
152 */
153
154#undef HAVE_CRYPT_H
155
753453e4 156
fc50bd87 157/*
158 * Do we have <scsi/sg.h>?
159 */
160
161#undef HAVE_SCSI_SG_H
162
163
b5cb0608 164/*
7ed5d5f2 165 * Use <string.h>, <strings.h>, and/or <bstring.h>?
b5cb0608 166 */
167
168#undef HAVE_STRING_H
169#undef HAVE_STRINGS_H
7ed5d5f2 170#undef HAVE_BSTRING_H
b5cb0608 171
1479646d 172/*
173 * Do we have the long long type?
174 */
175
176#undef HAVE_LONG_LONG
177
178#ifdef HAVE_LONG_LONG
179# define CUPS_LLFMT "%lld"
180# define CUPS_LLCAST (long long)
181#else
182# define CUPS_LLFMT "%ld"
183# define CUPS_LLCAST (long)
184#endif /* HAVE_LONG_LONG */
185
186/*
187 * Do we have the strtoll() function?
188 */
189
190#undef HAVE_STRTOLL
191
192#ifndef HAVE_STRTOLL
193# define strtoll(nptr,endptr,base) strtol((nptr), (endptr), (base))
194#endif /* !HAVE_STRTOLL */
753453e4 195
3a57cba8 196/*
197 * Do we have the strXXX() functions?
198 */
199
a810d5d8 200#undef HAVE_STRDUP
201#undef HAVE_STRCASECMP
202#undef HAVE_STRNCASECMP
def978d5 203#undef HAVE_STRLCAT
204#undef HAVE_STRLCPY
3a57cba8 205
753453e4 206
6bb5a528 207/*
208 * Do we have the geteuid() function?
209 */
210
211#undef HAVE_GETEUID
212
213
8a2c2126 214/*
215 * Do we have the vsyslog() function?
216 */
217
218#undef HAVE_VSYSLOG
219
753453e4 220
ac9bff36 221/*
222 * Do we have the (v)snprintf() functions?
223 */
224
225#undef HAVE_SNPRINTF
226#undef HAVE_VSNPRINTF
227
753453e4 228
3a57cba8 229/*
5fba2863 230 * What signal functions to use?
231 */
232
233#undef HAVE_SIGSET
234#undef HAVE_SIGACTION
235
753453e4 236
5fba2863 237/*
238 * What wait functions to use?
239 */
240
241#undef HAVE_WAITPID
242#undef HAVE_WAIT3
243
753453e4 244
5fba2863 245/*
2bdd1992 246 * Do we have the mallinfo function and malloc.h?
8c57ced1 247 */
248
2bdd1992 249#undef HAVE_MALLINFO
8c57ced1 250#undef HAVE_MALLOC_H
251
753453e4 252
5c6b3ae4 253/*
254 * Do we have the POSIX ACL functions?
255 */
256
257#undef HAVE_ACL_INIT
258
259
9e55d0dc 260/*
261 * Do we have the langinfo.h header file?
262 */
263
264#undef HAVE_LANGINFO_H
265
266
8c57ced1 267/*
8dc749d9 268 * Which encryption libraries do we have?
e2ff7d86 269 */
270
dcfcaeac 271#undef HAVE_CDSASSL
bcf61448 272#undef HAVE_GNUTLS
dcfcaeac 273#undef HAVE_LIBSSL
274#undef HAVE_SSL
e2ff7d86 275
753453e4 276
91679419 277/*
278 * Do we have <Security/SecBasePriv.h>?
279 */
280
281#undef HAVE_SECBASEPRIV_H
282
283
753453e4 284/*
c52c6d95 285 * Do we have the SLP library?
753453e4 286 */
287
288#undef HAVE_LIBSLP
289
290
c52c6d95 291/*
292 * Do we have an LDAP library?
293 */
294
295#undef HAVE_LDAP
296#undef HAVE_OPENLDAP
297
298
b4f2ed46 299/*
300 * Do we have libpaper?
301 */
302
303#undef HAVE_LIBPAPER
304
305
957d43b0 306/*
307 * Do we have <sys/ioctl.h>?
308 */
309
310#undef HAVE_SYS_IOCTL_H
e2ff7d86 311
753453e4 312
313/*
314 * Do we have mkstemp() and/or mkstemps()?
315 */
316
317#undef HAVE_MKSTEMP
318#undef HAVE_MKSTEMPS
319
320
321/*
322 * Does the "tm" structure contain the "tm_gmtoff" member?
323 */
324
325#undef HAVE_TM_GMTOFF
326
327
e2ff7d86 328/*
7c298ddc 329 * Do we have rresvport_af()?
330 */
331
332#undef HAVE_RRESVPORT_AF
333
334
335/*
336 * Do we have getaddrinfo()?
c3026ddc 337 */
338
7c298ddc 339#undef HAVE_GETADDRINFO
c3026ddc 340
341
c94f4aa9 342/*
343 * Do we have getnameinfo()?
344 */
345
346#undef HAVE_GETNAMEINFO
347
348
c3026ddc 349/*
211b4298 350 * Do we have getifaddrs()?
351 */
352
353#undef HAVE_GETIFADDRS
354
355
dfb69f7a 356/*
357 * Do we have hstrerror()?
358 */
359
360#undef HAVE_HSTRERROR
361
362
042931ba 363/*
364 * Do we have the <sys/sockio.h> header file?
365 */
366
367#undef HAVE_SYS_SOCKIO_H
368
369
211b4298 370/*
371 * Does the sockaddr structure contain an sa_len parameter?
372 */
373
374#undef HAVE_STRUCT_SOCKADDR_SA_LEN
375
376
0f1aeca7 377/*
378 * Do we have the AIX usersec.h header file?
379 */
380
381#undef HAVE_USERSEC_H
382
03f61bf3 383/*
384 * Do we have pthread support?
385 */
386
387#undef HAVE_PTHREAD_H
388
0f1aeca7 389
5db6985b 390/*
391 * Do we have launchd support?
392 */
393
394#undef HAVE_LAUNCH_H
395#undef HAVE_LAUNCHD
396#define CUPS_DEFAULT_LAUNCHD_CONF ""
397
398
211b4298 399/*
3721af07 400 * Various scripting languages...
401 */
402
403#undef HAVE_JAVA
404#define CUPS_JAVA "/usr/bin/java"
405#undef HAVE_PERL
406#define CUPS_PERL "/usr/bin/perl"
407#undef HAVE_PHP
408#define CUPS_PHP "/usr/bin/php"
409#undef HAVE_PYTHON
410#define CUPS_PYTHON "/usr/bin/python"
411
412
42f22b2f 413/*
414 * Do we have Darwin's CoreFoundation and SystemConfiguration frameworks?
415 */
416
417#undef HAVE_COREFOUNDATION
418#undef HAVE_SYSTEMCONFIGURATION
419
420
421/*
422 * Do we have CoreFoundation public and private headers?
423 */
424
425#undef HAVE_COREFOUNDATION_H
426#undef HAVE_CFPRIV_H
427#undef HAVE_CFBUNDLEPRIV_H
428
429
c429cc93 430/*
431 * Do we have CFLocaleCreateCanonicalLocaleIdentifierFromString()?
432 */
433
434#undef HAVE_CF_LOCALE_ID
435
436
42f22b2f 437/*
438 * Do we have MacOSX 10.4's mbr_XXX functions()?
439 */
440
441#undef HAVE_MEMBERSHIP_H
42f22b2f 442#undef HAVE_MBR_UID_TO_UUID
443
444
b89216d0 445/*
446 * Do we have Darwin's notify_post() header and function?
447 */
448
449#undef HAVE_NOTIFY_H
450#undef HAVE_NOTIFY_POST
451
452
b9af0be2 453/*
454 * Do we have DBUS?
455 */
456
457#undef HAVE_DBUS
2f4b5db0 458#undef HAVE_DBUS_MESSAGE_ITER_INIT_APPEND
b9af0be2 459
460
c5e731d0 461/*
462 * Do we have the AppleTalk/at_proto.h header?
463 */
464
465#undef HAVE_APPLETALK_AT_PROTO_H
466
467
cf94bcb1 468/*
469 * Do we have the GSSAPI support library (for Kerberos support)?
470 */
471
472#undef HAVE_GSSAPI
473#undef HAVE_GSSAPI_H
474#undef HAVE_GSSAPI_GSSAPI_H
475#undef HAVE_GSSAPI_GSSAPI_GENERIC_H
476#undef HAVE_GSSAPI_GSSAPI_KRB5_H
477#undef HAVE_GSSKRB5_REGISTER_ACCEPTOR_IDENTITY
8b3c3ab7 478#undef HAVE_GSS_C_NT_HOSTBASED_SERVICE
cf94bcb1 479#undef HAVE_KRB5_H
480#undef HAVE_HEIMDAL
481
482
a99d043e 483/*
484 * Default GSS service name...
485 */
486
487#define CUPS_DEFAULT_GSSSERVICENAME ""
488
489
9d4830a3 490/*
491 * Select/poll interfaces...
492 */
493
494#undef HAVE_POLL
495#undef HAVE_EPOLL
496#undef HAVE_KQUEUE
497
498
2d417cb3 499#endif /* !_CUPS_CONFIG_H_ */
500
3721af07 501/*
c9d3f842 502 * End of "$Id$".
3a57cba8 503 */