]> git.ipfire.org Git - thirdparty/cups.git/blob - xcode/config.h
Drop unused definitions.
[thirdparty/cups.git] / xcode / config.h
1 /*
2 * Configuration file for CUPS and Xcode.
3 *
4 * Copyright 2007-2016 by Apple Inc.
5 * Copyright 1997-2007 by Easy Software Products.
6 *
7 * These coded instructions, statements, and computer programs are the
8 * property of Apple Inc. and are protected by Federal copyright
9 * law. Distribution and use rights are outlined in the file "LICENSE.txt"
10 * which should have been included with this file. If this file is
11 * file is missing or damaged, see the license at "http://www.cups.org/".
12 */
13
14 #ifndef _CUPS_CONFIG_H_
15 #define _CUPS_CONFIG_H_
16
17 #include <AvailabilityMacros.h>
18
19 /*
20 * Version of software...
21 */
22
23 #define CUPS_SVERSION "CUPS v2.2svn"
24 #define CUPS_MINIMAL "CUPS/2.2svn"
25
26
27 /*
28 * Default user and groups...
29 */
30
31 #define CUPS_DEFAULT_USER "_lp"
32 #define CUPS_DEFAULT_GROUP "_lp"
33 #define CUPS_DEFAULT_SYSTEM_GROUPS "admin"
34 #define CUPS_DEFAULT_PRINTOPERATOR_AUTH "@AUTHKEY(system.print.operator) @admin @lpadmin"
35 #define CUPS_DEFAULT_SYSTEM_AUTHKEY "system.print.admin"
36
37
38 /*
39 * Default file permissions...
40 */
41
42 #define CUPS_DEFAULT_CONFIG_FILE_PERM 0644
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 "dnssd"
67 #define CUPS_DEFAULT_DEFAULT_SHARED 1
68
69
70 /*
71 * Default IPP port...
72 */
73
74 #define CUPS_DEFAULT_IPP_PORT 631
75
76
77 /*
78 * Default printcap file...
79 */
80
81 #define CUPS_DEFAULT_PRINTCAP "/Library/Preferences/org.cups.printers.plist"
82
83
84 /*
85 * Default Samba and LPD config files...
86 */
87
88 #define CUPS_DEFAULT_SMB_CONFIG_FILE ""
89 #define CUPS_DEFAULT_LPD_CONFIG_FILE "launchd:///System/Library/LaunchDaemons/org.cups.cups-lpd.plist"
90
91
92 /*
93 * Default MaxCopies value...
94 */
95
96 #define CUPS_DEFAULT_MAX_COPIES 9999
97
98
99 /*
100 * Do we have domain socket support, and if so what is the default one?
101 */
102
103 #define CUPS_DEFAULT_DOMAINSOCKET "/private/var/run/cupsd"
104
105
106 /*
107 * Default WebInterface value...
108 */
109
110 #define CUPS_DEFAULT_WEBIF 0
111
112
113 /*
114 * Where are files stored?
115 *
116 * Note: These are defaults, which can be overridden by environment
117 * variables at run-time...
118 */
119
120 #define CUPS_BINDIR "/usr/bin"
121 #define CUPS_CACHEDIR "/private/var/spool/cups/cache"
122 #define CUPS_DATADIR "/usr/share/cups"
123 #define CUPS_DOCROOT "/usr/share/doc/cups"
124 #define CUPS_FONTPATH "/usr/share/cups/fonts"
125 #define CUPS_LOCALEDIR "/usr/share/locale"
126 #define CUPS_LOGDIR "/private/var/log/cups"
127 #define CUPS_REQUESTS "/private/var/spool/cups"
128 #define CUPS_SBINDIR "/usr/sbin"
129 #define CUPS_SERVERBIN "/usr/libexec/cups"
130 #define CUPS_SERVERROOT "/private/etc/cups"
131 #define CUPS_STATEDIR "/private/etc/cups"
132
133
134 /*
135 * Do we have posix_spawn?
136 */
137
138 #define HAVE_POSIX_SPAWN 1
139
140
141 /*
142 * Do we have ZLIB?
143 */
144
145 #define HAVE_LIBZ 1
146 #define HAVE_INFLATECOPY 1
147
148
149 /*
150 * Do we have PAM stuff?
151 */
152
153 #ifndef HAVE_LIBPAM
154 #define HAVE_LIBPAM 1
155 #endif /* !HAVE_LIBPAM */
156
157 /* #undef HAVE_PAM_PAM_APPL_H */
158 #define HAVE_PAM_SET_ITEM 1
159 #define HAVE_PAM_SETCRED 1
160
161
162 /*
163 * Do we have <shadow.h>?
164 */
165
166 /* #undef HAVE_SHADOW_H */
167
168
169 /*
170 * Do we have <crypt.h>?
171 */
172
173 /* #undef HAVE_CRYPT_H */
174
175
176 /*
177 * Use <stdint.h>?
178 */
179
180 #define HAVE_STDINT_H 1
181
182
183 /*
184 * Use <string.h>, <strings.h>, and/or <bstring.h>?
185 */
186
187 #define HAVE_STRING_H 1
188 #define HAVE_STRINGS_H 1
189 /* #undef HAVE_BSTRING_H */
190
191
192 /*
193 * Do we have the long long type?
194 */
195
196 #define HAVE_LONG_LONG 1
197
198 #ifdef HAVE_LONG_LONG
199 # define CUPS_LLFMT "%lld"
200 # define CUPS_LLCAST (long long)
201 #else
202 # define CUPS_LLFMT "%ld"
203 # define CUPS_LLCAST (long)
204 #endif /* HAVE_LONG_LONG */
205
206
207 /*
208 * Do we have the strtoll() function?
209 */
210
211 #define HAVE_STRTOLL 1
212
213 #ifndef HAVE_STRTOLL
214 # define strtoll(nptr,endptr,base) strtol((nptr), (endptr), (base))
215 #endif /* !HAVE_STRTOLL */
216
217
218 /*
219 * Do we have the strXXX() functions?
220 */
221
222 #define HAVE_STRDUP 1
223 #define HAVE_STRLCAT 1
224 #define HAVE_STRLCPY 1
225
226
227 /*
228 * Do we have the geteuid() function?
229 */
230
231 #define HAVE_GETEUID 1
232
233
234 /*
235 * Do we have the setpgid() function?
236 */
237
238 #define HAVE_SETPGID 1
239
240
241 /*
242 * Do we have the vsyslog() function?
243 */
244
245 #define HAVE_VSYSLOG 1
246
247
248 /*
249 * Do we have the ASL functions?
250 */
251
252 #define HAVE_ASL_H
253
254
255 /*
256 * Do we have the systemd journal functions?
257 */
258
259 /*#undef HAVE_SYSTEMD_SD_JOURNAL_H*/
260
261
262 /*
263 * Do we have the (v)snprintf() functions?
264 */
265
266 #define HAVE_SNPRINTF 1
267 #define HAVE_VSNPRINTF 1
268
269
270 /*
271 * What signal functions to use?
272 */
273
274 #define HAVE_SIGSET 1
275 #define HAVE_SIGACTION 1
276
277
278 /*
279 * What wait functions to use?
280 */
281
282 #define HAVE_WAITPID 1
283 #define HAVE_WAIT3 1
284
285
286 /*
287 * Do we have the mallinfo function and malloc.h?
288 */
289
290 /* #undef HAVE_MALLINFO */
291 /* #undef HAVE_MALLOC_H */
292
293
294 /*
295 * Do we have the POSIX ACL functions?
296 */
297
298 #define HAVE_ACL_INIT 1
299
300
301 /*
302 * Do we have the langinfo.h header file?
303 */
304
305 #define HAVE_LANGINFO_H 1
306
307
308 /*
309 * Which encryption libraries do we have?
310 */
311
312 #define HAVE_CDSASSL 1
313 /* #undef HAVE_GNUTLS */
314 #define HAVE_SSL 1
315
316
317 /*
318 * Do we have the gnutls_transport_set_pull_timeout_function function?
319 */
320
321 /* #undef HAVE_GNUTLS_TRANSPORT_SET_PULL_TIMEOUT_FUNCTION */
322
323
324 /*
325 * Do we have the gnutls_priority_set_direct function?
326 */
327
328 /* #undef HAVE_GNUTLS_PRIORITY_SET_DIRECT */
329
330
331 /*
332 * What Security framework headers do we have?
333 */
334
335 #define HAVE_AUTHORIZATION_H 1
336 /* #undef HAVE_SECBASEPRIV_H */
337 #define HAVE_SECCERTIFICATE_H 1
338 /* #undef HAVE_SECIDENTITYSEARCHPRIV_H */
339 #define HAVE_SECITEM_H 1
340 /* #undef HAVE_SECITEMPRIV_H */
341 #define HAVE_SECPOLICY_H 1
342 /* #undef HAVE_SECPOLICYPRIV_H */
343 /* #undef HAVE_SECURETRANSPORTPRIV_H */
344
345
346 /*
347 * Do we have the cssmErrorString function?
348 */
349
350 #define HAVE_CSSMERRORSTRING 1
351
352
353 /*
354 * Do we have the SecGenerateSelfSignedCertificate function?
355 */
356
357 /* #undef HAVE_SECGENERATESELFSIGNEDCERTIFICATE */
358
359
360 /*
361 * Do we have the SecKeychainOpen function?
362 */
363
364 #define HAVE_SECKEYCHAINOPEN 1
365
366
367 /*
368 * Do we have (a working) SSLSetEnabledCiphers function?
369 */
370
371 #ifdef AVAILABLE_MAC_OS_X_VERSION_10_11_AND_LATER
372 # define HAVE_SSLSETENABLEDCIPHERS 1
373 #endif /* AVAILABLE_MAC_OS_X_VERSION_10_11_AND_LATER */
374
375
376 /*
377 * Do we have libpaper?
378 */
379
380 /* #undef HAVE_LIBPAPER */
381
382
383 /*
384 * Do we have mDNSResponder for DNS Service Discovery (aka Bonjour)?
385 */
386
387 #define HAVE_DNSSD 1
388
389
390 /*
391 * Do we have Avahi for DNS Service Discovery (aka Bonjour)?
392 */
393
394 /* #undef HAVE_AVAHI */
395
396
397 /*
398 * Do we have <sys/ioctl.h>?
399 */
400
401 #define HAVE_SYS_IOCTL_H 1
402
403
404 /*
405 * Does the "stat" structure contain the "st_gen" member?
406 */
407
408 #define HAVE_ST_GEN 1
409
410
411 /*
412 * Does the "tm" structure contain the "tm_gmtoff" member?
413 */
414
415 #define HAVE_TM_GMTOFF 1
416
417
418 /*
419 * Do we have rresvport_af()?
420 */
421
422 #define HAVE_RRESVPORT_AF 1
423
424
425 /*
426 * Do we have getaddrinfo()?
427 */
428
429 #define HAVE_GETADDRINFO 1
430
431
432 /*
433 * Do we have getnameinfo()?
434 */
435
436 #define HAVE_GETNAMEINFO 1
437
438
439 /*
440 * Do we have getifaddrs()?
441 */
442
443 #define HAVE_GETIFADDRS 1
444
445
446 /*
447 * Do we have hstrerror()?
448 */
449
450 #define HAVE_HSTRERROR 1
451
452
453 /*
454 * Do we have res_init()?
455 */
456
457 #define HAVE_RES_INIT 1
458
459
460 /*
461 * Do we have <resolv.h>
462 */
463
464 #define HAVE_RESOLV_H 1
465
466
467 /*
468 * Do we have the <sys/sockio.h> header file?
469 */
470
471 #define HAVE_SYS_SOCKIO_H 1
472
473
474 /*
475 * Does the sockaddr structure contain an sa_len parameter?
476 */
477
478 /* #undef HAVE_STRUCT_SOCKADDR_SA_LEN */
479
480
481 /*
482 * Do we have pthread support?
483 */
484
485 #define HAVE_PTHREAD_H 1
486
487
488 /*
489 * Do we have launchd support?
490 */
491
492 #define HAVE_LAUNCH_H 1
493 #define HAVE_LAUNCHD 1
494 #define HAVE_LAUNCH_ACTIVATE_SOCKET 1
495
496
497 /*
498 * Various scripting languages...
499 */
500
501 #define HAVE_JAVA 1
502 #define CUPS_JAVA "/usr/bin/java"
503 #define HAVE_PERL 1
504 #define CUPS_PERL "/usr/bin/perl"
505 #define HAVE_PHP 1
506 #define CUPS_PHP "/usr/bin/php"
507 #define HAVE_PYTHON 1
508 #define CUPS_PYTHON "/usr/bin/python"
509
510
511 /*
512 * Do we have CoreFoundation public and private headers?
513 */
514
515 #define HAVE_COREFOUNDATION_H 1
516 /* #undef HAVE_CFPRIV_H */
517 /* #undef HAVE_CFBUNDLEPRIV_H */
518
519
520 /*
521 * Do we have ApplicationServices public headers?
522 */
523
524 #define HAVE_APPLICATIONSERVICES_H 1
525
526
527 /*
528 * Do we have the SCDynamicStoreCopyComputerName function?
529 */
530
531 #define HAVE_SCDYNAMICSTORECOPYCOMPUTERNAME 1
532
533
534 /*
535 * Do we have OS X 10.4's mbr_XXX functions?
536 */
537
538 #define HAVE_MEMBERSHIP_H 1
539 /* #undef HAVE_MEMBERSHIPPRIV_H */
540 #define HAVE_MBR_UID_TO_UUID 1
541
542
543 /*
544 * Do we have Darwin's notify_post header and function?
545 */
546
547 #define HAVE_NOTIFY_H 1
548 #define HAVE_NOTIFY_POST 1
549
550
551 /*
552 * Do we have DBUS?
553 */
554
555 /* #undef HAVE_DBUS */
556 /* #undef HAVE_DBUS_MESSAGE_ITER_INIT_APPEND */
557
558
559 /*
560 * Do we have the GSSAPI support library (for Kerberos support)?
561 */
562
563 #define HAVE_GSS_ACQUIRE_CRED_EX_F 1
564 #define HAVE_GSS_C_NT_HOSTBASED_SERVICE 1
565 #define HAVE_GSS_GSSAPI_H 1
566 /* #undef HAVE_GSS_GSSAPI_SPI_H */
567 #define HAVE_GSSAPI 1
568 /* #undef HAVE_GSSAPI_GSSAPI_H */
569 /* #undef HAVE_GSSAPI_H */
570
571
572 /*
573 * Default GSS service name...
574 */
575
576 #define CUPS_DEFAULT_GSSSERVICENAME "host"
577
578
579 /*
580 * Select/poll interfaces...
581 */
582
583 #define HAVE_POLL 1
584 /* #undef HAVE_EPOLL */
585 #define HAVE_KQUEUE 1
586
587
588 /*
589 * Do we have the <dlfcn.h> header?
590 */
591
592 #define HAVE_DLFCN_H 1
593
594
595 /*
596 * Do we have <sys/param.h>?
597 */
598
599 #define HAVE_SYS_PARAM_H 1
600
601
602 /*
603 * Do we have <sys/ucred.h>?
604 */
605
606 #define HAVE_SYS_UCRED_H 1
607
608
609 /*
610 * Do we have removefile()?
611 */
612
613 #define HAVE_REMOVEFILE 1
614
615
616 /*
617 * Do we have <sandbox.h>?
618 */
619
620 #define HAVE_SANDBOX_H 1
621
622
623 /*
624 * Which random number generator function to use...
625 */
626
627 #define HAVE_ARC4RANDOM 1
628 #define HAVE_RANDOM 1
629 #define HAVE_LRAND48 1
630
631 #ifdef HAVE_ARC4RANDOM
632 # define CUPS_RAND() arc4random()
633 # define CUPS_SRAND(v) arc4random_stir()
634 #elif defined(HAVE_RANDOM)
635 # define CUPS_RAND() random()
636 # define CUPS_SRAND(v) srandom(v)
637 #elif defined(HAVE_LRAND48)
638 # define CUPS_RAND() lrand48()
639 # define CUPS_SRAND(v) srand48(v)
640 #else
641 # define CUPS_RAND() rand()
642 # define CUPS_SRAND(v) srand(v)
643 #endif /* HAVE_ARC4RANDOM */
644
645
646 /*
647 * Do we have libusb?
648 */
649
650 /* #undef HAVE_LIBUSB */
651
652
653 /*
654 * Do we have libwrap and tcpd.h?
655 */
656
657 /* #undef HAVE_TCPD_H */
658
659
660 /*
661 * Do we have <iconv.h>?
662 */
663
664 #define HAVE_ICONV_H 1
665
666
667 /*
668 * Do we have statfs or statvfs and one of the corresponding headers?
669 */
670
671 #define HAVE_STATFS 1
672 #define HAVE_STATVFS 1
673 #define HAVE_SYS_MOUNT_H 1
674 /* #undef HAVE_SYS_STATFS_H */
675 #define HAVE_SYS_STATVFS_H 1
676 /* #undef HAVE_SYS_VFS_H */
677
678
679 /*
680 * Location of OS X localization bundle, if any.
681 */
682
683 #define CUPS_BUNDLEDIR "/System/Library/Frameworks/ApplicationServices.framework/Versions/A/Frameworks/PrintCore.framework/Versions/A"
684
685
686 /*
687 * Do we have XPC?
688 */
689
690 #define HAVE_XPC 1
691 /* #undef HAVE_XPC_PRIVATE_H */
692
693
694 /*
695 * Do we have Mini-XML?
696 */
697
698 /* #undef HAVE_MXML_H */
699
700
701 /*
702 * Do we have the C99 abs() function?
703 */
704
705 #define HAVE_ABS 1
706 #if !defined(HAVE_ABS) && !defined(abs)
707 # if defined(__GNUC__) || __STDC_VERSION__ >= 199901L
708 # define abs(x) _cups_abs(x)
709 static inline int _cups_abs(int i) { return (i < 0 ? -i : i); }
710 # elif defined(_MSC_VER)
711 # define abs(x) _cups_abs(x)
712 static __inline int _cups_abs(int i) { return (i < 0 ? -i : i); }
713 # else
714 # define abs(x) ((x) < 0 ? -(x) : (x))
715 # endif /* __GNUC__ || __STDC_VERSION__ */
716 #endif /* !HAVE_ABS && !abs */
717
718 #endif /* !_CUPS_CONFIG_H_ */