]> git.ipfire.org Git - thirdparty/cups.git/blame - config.h.in
Update base localzation files.
[thirdparty/cups.git] / config.h.in
CommitLineData
ef416fc2 1/*
5a1d7a17 2 * Configuration file for CUPS.
ef416fc2 3 *
fa26ab95 4 * Copyright 2007-2019 by Apple Inc.
5a1d7a17 5 * Copyright 1997-2007 by Easy Software Products.
ef416fc2 6 *
fa26ab95
MS
7 * Licensed under Apache License v2.0. See the file "LICENSE" for more
8 * information.
ef416fc2 9 */
10
11#ifndef _CUPS_CONFIG_H_
12#define _CUPS_CONFIG_H_
13
14/*
15 * Version of software...
16 */
17
18#define CUPS_SVERSION ""
19#define CUPS_MINIMAL ""
6641bd0d 20#define CUPS_LITE 0
ef416fc2 21
22
23/*
09ec0018 24 * Default user and groups...
ef416fc2 25 */
26
27#define CUPS_DEFAULT_USER "lp"
28#define CUPS_DEFAULT_GROUP "sys"
09ec0018 29#define CUPS_DEFAULT_SYSTEM_GROUPS "sys root system"
b9faaae1 30#define CUPS_DEFAULT_PRINTOPERATOR_AUTH "@SYSTEM"
6961465f 31#define CUPS_DEFAULT_SYSTEM_AUTHKEY "system.print.admin"
09ec0018 32
33
34/*
35 * Default file permissions...
36 */
37
38#define CUPS_DEFAULT_CONFIG_FILE_PERM 0640
39#define CUPS_DEFAULT_LOG_FILE_PERM 0644
40
41
1f0275e3
MS
42/*
43 * Default logging settings...
44 */
45
46#define CUPS_DEFAULT_LOG_LEVEL "warn"
47#define CUPS_DEFAULT_ACCESS_LOG_LEVEL "actions"
48
49
49d87452
MS
50/*
51 * Default fatal error settings...
52 */
53
54#define CUPS_DEFAULT_FATAL_ERRORS "config"
55
56
09ec0018 57/*
58 * Default browsing settings...
59 */
60
61#define CUPS_DEFAULT_BROWSING 1
a2326b5b 62#define CUPS_DEFAULT_BROWSE_LOCAL_PROTOCOLS ""
09ec0018 63#define CUPS_DEFAULT_DEFAULT_SHARED 1
ef416fc2 64
65
66/*
67 * Default IPP port...
68 */
69
70#define CUPS_DEFAULT_IPP_PORT 631
71
72
e53920b9 73/*
74 * Default printcap file...
75 */
76
77#define CUPS_DEFAULT_PRINTCAP "/etc/printcap"
78
79
2e4ff8af
MS
80/*
81 * Default Samba and LPD config files...
82 */
83
84#define CUPS_DEFAULT_SMB_CONFIG_FILE ""
85#define CUPS_DEFAULT_LPD_CONFIG_FILE ""
86
87
f7deaa1a 88/*
89 * Default MaxCopies value...
90 */
91
1e564ac8 92#define CUPS_DEFAULT_MAX_COPIES 9999
f7deaa1a 93
94
ef416fc2 95/*
229681c1 96 * Do we have domain socket support, and if so what is the default one?
ef416fc2 97 */
98
99#undef CUPS_DEFAULT_DOMAINSOCKET
100
101
229681c1
MS
102/*
103 * Default WebInterface value...
104 */
105
106#undef CUPS_DEFAULT_WEBIF
107
108
ef416fc2 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
c82f05ea
MS
130/*
131 * Do we have posix_spawn?
132 */
133
134#undef HAVE_POSIX_SPAWN
135
136
ef416fc2 137/*
0cb67df3 138 * Do we have ZLIB?
ef416fc2 139 */
140
ef416fc2 141#undef HAVE_LIBZ
db8b865d 142#undef HAVE_INFLATECOPY
ef416fc2 143
144
145/*
146 * Do we have PAM stuff?
147 */
148
ef416fc2 149#define HAVE_LIBPAM 0
ef416fc2 150#undef HAVE_PAM_PAM_APPL_H
a4924f6c 151#undef HAVE_PAM_SET_ITEM
ee571f26 152#undef HAVE_PAM_SETCRED
ef416fc2 153
154
155/*
156 * Do we have <shadow.h>?
157 */
158
159#undef HAVE_SHADOW_H
160
161
162/*
163 * Do we have <crypt.h>?
164 */
165
166#undef HAVE_CRYPT_H
167
168
5a9febac
MS
169/*
170 * Use <stdint.h>?
171 */
172
173#undef HAVE_STDINT_H
174
175
ef416fc2 176/*
177 * Use <string.h>, <strings.h>, and/or <bstring.h>?
178 */
179
180#undef HAVE_STRING_H
181#undef HAVE_STRINGS_H
182#undef HAVE_BSTRING_H
183
eac3a0a0 184
ef416fc2 185/*
186 * Do we have the long long type?
187 */
188
189#undef HAVE_LONG_LONG
190
191#ifdef HAVE_LONG_LONG
192# define CUPS_LLFMT "%lld"
193# define CUPS_LLCAST (long long)
194#else
195# define CUPS_LLFMT "%ld"
196# define CUPS_LLCAST (long)
197#endif /* HAVE_LONG_LONG */
198
eac3a0a0 199
ef416fc2 200/*
201 * Do we have the strtoll() function?
202 */
203
204#undef HAVE_STRTOLL
205
206#ifndef HAVE_STRTOLL
207# define strtoll(nptr,endptr,base) strtol((nptr), (endptr), (base))
208#endif /* !HAVE_STRTOLL */
209
eac3a0a0 210
ef416fc2 211/*
212 * Do we have the strXXX() functions?
213 */
214
215#undef HAVE_STRDUP
ef416fc2 216#undef HAVE_STRLCAT
217#undef HAVE_STRLCPY
218
219
220/*
221 * Do we have the geteuid() function?
222 */
223
224#undef HAVE_GETEUID
225
226
88f9aafc
MS
227/*
228 * Do we have the setpgid() function?
229 */
230
231#undef HAVE_SETPGID
232
233
ef416fc2 234/*
235 * Do we have the vsyslog() function?
236 */
237
238#undef HAVE_VSYSLOG
239
240
0dc4a6bf
MS
241/*
242 * Do we have the systemd journal functions?
243 */
244
245#undef HAVE_SYSTEMD_SD_JOURNAL_H
246
247
ef416fc2 248/*
249 * Do we have the (v)snprintf() functions?
250 */
251
252#undef HAVE_SNPRINTF
253#undef HAVE_VSNPRINTF
254
255
256/*
257 * What signal functions to use?
258 */
259
260#undef HAVE_SIGSET
261#undef HAVE_SIGACTION
262
263
264/*
265 * What wait functions to use?
266 */
267
268#undef HAVE_WAITPID
269#undef HAVE_WAIT3
270
271
272/*
273 * Do we have the mallinfo function and malloc.h?
274 */
275
276#undef HAVE_MALLINFO
277#undef HAVE_MALLOC_H
278
279
fa73b229 280/*
281 * Do we have the POSIX ACL functions?
282 */
283
284#undef HAVE_ACL_INIT
285
286
ef416fc2 287/*
288 * Do we have the langinfo.h header file?
289 */
290
291#undef HAVE_LANGINFO_H
292
293
294/*
295 * Which encryption libraries do we have?
296 */
297
298#undef HAVE_CDSASSL
299#undef HAVE_GNUTLS
1e564ac8 300#undef HAVE_SSPISSL
ef416fc2 301#undef HAVE_SSL
302
303
9ec6124c
MS
304/*
305 * Do we have the gnutls_fips140_set_mode function?
306 */
307
308#undef HAVE_GNUTLS_FIPS140_SET_MODE
309
310
9483577f
MS
311/*
312 * Do we have the gnutls_transport_set_pull_timeout_function function?
313 */
314
315#undef HAVE_GNUTLS_TRANSPORT_SET_PULL_TIMEOUT_FUNCTION
316
317
19ba6878
MS
318/*
319 * Do we have the gnutls_priority_set_direct function?
320 */
321
322#undef HAVE_GNUTLS_PRIORITY_SET_DIRECT
323
324
ed486911 325/*
b86bc4cf 326 * What Security framework headers do we have?
ed486911 327 */
328
f7deaa1a 329#undef HAVE_AUTHORIZATION_H
7cf5915e 330#undef HAVE_SECCERTIFICATE_H
0268488e 331#undef HAVE_SECITEM_H
b86bc4cf 332#undef HAVE_SECPOLICY_H
b86bc4cf 333
334
eb66bc71
MS
335/*
336 * Do we have the SecGenerateSelfSignedCertificate function?
337 */
338
339#undef HAVE_SECGENERATESELFSIGNEDCERTIFICATE
340
341
ef416fc2 342/*
343 * Do we have libpaper?
344 */
345
346#undef HAVE_LIBPAPER
347
348
f7deaa1a 349/*
3e7fe0ca 350 * Do we have mDNSResponder for DNS Service Discovery (aka Bonjour)?
f7deaa1a 351 */
352
353#undef HAVE_DNSSD
354
355
3e7fe0ca
MS
356/*
357 * Do we have Avahi for DNS Service Discovery (aka Bonjour)?
358 */
359
360#undef HAVE_AVAHI
361
362
ef416fc2 363/*
364 * Do we have <sys/ioctl.h>?
365 */
366
367#undef HAVE_SYS_IOCTL_H
368
369
c7017ecc
MS
370/*
371 * Does the "stat" structure contain the "st_gen" member?
372 */
373
374#undef HAVE_ST_GEN
375
376
ef416fc2 377/*
378 * Does the "tm" structure contain the "tm_gmtoff" member?
379 */
380
381#undef HAVE_TM_GMTOFF
382
383
384/*
385 * Do we have rresvport_af()?
386 */
387
388#undef HAVE_RRESVPORT_AF
389
390
391/*
392 * Do we have getaddrinfo()?
393 */
394
395#undef HAVE_GETADDRINFO
396
397
398/*
399 * Do we have getnameinfo()?
400 */
401
402#undef HAVE_GETNAMEINFO
403
404
405/*
406 * Do we have getifaddrs()?
407 */
408
409#undef HAVE_GETIFADDRS
410
411
412/*
413 * Do we have hstrerror()?
414 */
415
416#undef HAVE_HSTRERROR
417
418
49d87452
MS
419/*
420 * Do we have res_init()?
421 */
422
423#undef HAVE_RES_INIT
424
425
426/*
427 * Do we have <resolv.h>
428 */
429
430#undef HAVE_RESOLV_H
431
432
ef416fc2 433/*
434 * Do we have the <sys/sockio.h> header file?
435 */
436
437#undef HAVE_SYS_SOCKIO_H
438
439
440/*
441 * Does the sockaddr structure contain an sa_len parameter?
442 */
443
444#undef HAVE_STRUCT_SOCKADDR_SA_LEN
445
446
ef416fc2 447/*
448 * Do we have pthread support?
449 */
450
451#undef HAVE_PTHREAD_H
452
453
1166bf58
MS
454/*
455 * Do we have on-demand support (launchd/systemd/upstart)?
456 */
457
458#undef HAVE_ONDEMAND
459
460
a4d04587 461/*
462 * Do we have launchd support?
463 */
464
465#undef HAVE_LAUNCH_H
466#undef HAVE_LAUNCHD
a4d04587 467
468
1720786e
MS
469/*
470 * Do we have systemd support?
471 */
472
473#undef HAVE_SYSTEMD
474
1166bf58 475
441de8b2
BN
476/*
477 * Do we have upstart support?
478 */
479
480#undef HAVE_UPSTART
481
1720786e 482
fa73b229 483/*
fa26ab95 484 * Do we have CoreFoundation public headers?
fa73b229 485 */
486
487#undef HAVE_COREFOUNDATION_H
fa73b229 488
489
6d2f911b
MS
490/*
491 * Do we have ApplicationServices public headers?
492 */
493
494#undef HAVE_APPLICATIONSERVICES_H
495
496
497/*
498 * Do we have the SCDynamicStoreCopyComputerName function?
499 */
500
501#undef HAVE_SCDYNAMICSTORECOPYCOMPUTERNAME
502
503
6eb98aee
MS
504/*
505 * Do we have the getgrouplist() function?
506 */
507
508#undef HAVE_GETGROUPLIST
8072030b 509
6eb98aee 510
fa73b229 511/*
8072030b 512 * Do we have macOS 10.4's mbr_XXX functions?
fa73b229 513 */
514
515#undef HAVE_MEMBERSHIP_H
fa73b229 516#undef HAVE_MBR_UID_TO_UUID
517
518
519/*
cc754834 520 * Do we have Darwin's notify_post header and function?
fa73b229 521 */
522
523#undef HAVE_NOTIFY_H
524#undef HAVE_NOTIFY_POST
525
526
e00b005a 527/*
528 * Do we have DBUS?
529 */
530
531#undef HAVE_DBUS
2abf387c 532#undef HAVE_DBUS_MESSAGE_ITER_INIT_APPEND
0cf0c416 533#undef HAVE_DBUS_THREADS_INIT
e00b005a 534
535
f7deaa1a 536/*
537 * Do we have the GSSAPI support library (for Kerberos support)?
538 */
539
eac3a0a0
MS
540#undef HAVE_GSS_ACQUIRE_CRED_EX_F
541#undef HAVE_GSS_C_NT_HOSTBASED_SERVICE
542#undef HAVE_GSS_GSSAPI_H
543#undef HAVE_GSS_GSSAPI_SPI_H
f7deaa1a 544#undef HAVE_GSSAPI
f7deaa1a 545#undef HAVE_GSSAPI_GSSAPI_H
eac3a0a0 546#undef HAVE_GSSAPI_H
f7deaa1a 547
548
549/*
550 * Default GSS service name...
551 */
552
553#define CUPS_DEFAULT_GSSSERVICENAME ""
554
555
556/*
557 * Select/poll interfaces...
558 */
559
560#undef HAVE_POLL
561#undef HAVE_EPOLL
562#undef HAVE_KQUEUE
563
564
7594b224 565/*
566 * Do we have the <dlfcn.h> header?
567 */
568
569#undef HAVE_DLFCN_H
570
571
db1f069b
MS
572/*
573 * Do we have <sys/param.h>?
574 */
575
576#undef HAVE_SYS_PARAM_H
577
578
bc44d920 579/*
580 * Do we have <sys/ucred.h>?
581 */
582
583#undef HAVE_SYS_UCRED_H
584
585
cc0d019f
MS
586/*
587 * Do we have removefile()?
588 */
589
590#undef HAVE_REMOVEFILE
591
592
a4924f6c
MS
593/*
594 * Do we have <sandbox.h>?
595 */
596
597#undef HAVE_SANDBOX_H
598
599
ac884b6a
MS
600/*
601 * Which random number generator function to use...
602 */
603
41681883 604#undef HAVE_ARC4RANDOM
ac884b6a 605#undef HAVE_RANDOM
ac884b6a
MS
606#undef HAVE_LRAND48
607
41681883
MS
608#ifdef HAVE_ARC4RANDOM
609# define CUPS_RAND() arc4random()
ed26f50f 610# define CUPS_SRAND(v)
41681883
MS
611#elif defined(HAVE_RANDOM)
612# define CUPS_RAND() random()
613# define CUPS_SRAND(v) srandom(v)
614#elif defined(HAVE_LRAND48)
615# define CUPS_RAND() lrand48()
616# define CUPS_SRAND(v) srand48(v)
617#else
618# define CUPS_RAND() rand()
619# define CUPS_SRAND(v) srand(v)
620#endif /* HAVE_ARC4RANDOM */
621
ac884b6a 622
75bd9771
MS
623/*
624 * Do we have libusb?
625 */
626
12f89d24 627#undef HAVE_LIBUSB
75bd9771
MS
628
629
749b1e90
MS
630/*
631 * Do we have libwrap and tcpd.h?
632 */
633
634#undef HAVE_TCPD_H
635
636
cc754834
MS
637/*
638 * Do we have <iconv.h>?
639 */
640
641#undef HAVE_ICONV_H
642
643
7cf5915e
MS
644/*
645 * Do we have statfs or statvfs and one of the corresponding headers?
646 */
647
648#undef HAVE_STATFS
649#undef HAVE_STATVFS
650#undef HAVE_SYS_MOUNT_H
651#undef HAVE_SYS_STATFS_H
652#undef HAVE_SYS_STATVFS_H
653#undef HAVE_SYS_VFS_H
654
655
0837b7e8 656/*
8072030b 657 * Location of macOS localization bundle, if any.
0837b7e8
MS
658 */
659
660#undef CUPS_BUNDLEDIR
661
662
eac3a0a0
MS
663/*
664 * Do we have XPC?
665 */
666
667#undef HAVE_XPC
12f89d24
MS
668
669
f3c17241
MS
670/*
671 * Do we have the C99 abs() function?
672 */
673
674#undef HAVE_ABS
675#if !defined(HAVE_ABS) && !defined(abs)
676# if defined(__GNUC__) || __STDC_VERSION__ >= 199901L
677# define abs(x) _cups_abs(x)
678static inline int _cups_abs(int i) { return (i < 0 ? -i : i); }
679# elif defined(_MSC_VER)
680# define abs(x) _cups_abs(x)
681static __inline int _cups_abs(int i) { return (i < 0 ? -i : i); }
682# else
683# define abs(x) ((x) < 0 ? -(x) : (x))
684# endif /* __GNUC__ || __STDC_VERSION__ */
685#endif /* !HAVE_ABS && !abs */
686
ef416fc2 687#endif /* !_CUPS_CONFIG_H_ */