mirror of
https://gitee.com/openharmony/third_party_cups
synced 2024-11-23 09:59:45 +00:00
1e250ccc0c
Signed-off-by: dongzhengkuan <dongzhengkuan@huawei.com>
129 lines
3.4 KiB
C
129 lines
3.4 KiB
C
/* config.h. Generated from config.h.in by configure. */
|
||
/*
|
||
* Configuration file for CUPS.
|
||
*
|
||
* Copyright © 2020-2021 by OpenPrinting
|
||
* Copyright © 2007-2019 by Apple Inc.
|
||
* Copyright © 1997-2007 by Easy Software Products.
|
||
*
|
||
* Licensed under Apache License v2.0. See the file "LICENSE" for more
|
||
* information.
|
||
*/
|
||
|
||
#ifndef _CUPS_CONFIG_H_
|
||
#define _CUPS_CONFIG_H_
|
||
|
||
#define CUPS_SVERSION "CUPS v2.4.0"
|
||
#define CUPS_MINIMAL "CUPS/2.4.0"
|
||
#define CUPS_LITE 0
|
||
#define CUPS_DEFAULT_USER "cups"
|
||
#define CUPS_DEFAULT_GROUP "cups"
|
||
#define CUPS_DEFAULT_SYSTEM_GROUPS "print"
|
||
#define CUPS_DEFAULT_PRINTOPERATOR_AUTH "@cups"
|
||
#define CUPS_DEFAULT_SYSTEM_AUTHKEY ""
|
||
#define CUPS_DEFAULT_CONFIG_FILE_PERM 0640
|
||
#define CUPS_DEFAULT_LOG_FILE_PERM 0644
|
||
#define CUPS_DEFAULT_LOG_LEVEL "warn"
|
||
#define CUPS_DEFAULT_ACCESS_LOG_LEVEL "none"
|
||
#define CUPS_DEFAULT_MAX_LOG_SIZE "1m"
|
||
#define CUPS_DEFAULT_FATAL_ERRORS "config"
|
||
#define CUPS_DEFAULT_BROWSING 0
|
||
#define CUPS_DEFAULT_BROWSE_LOCAL_PROTOCOLS ""
|
||
#define CUPS_DEFAULT_DEFAULT_SHARED 0
|
||
#define CUPS_DEFAULT_IPP_PORT 1631
|
||
#define CUPS_DEFAULT_PRINTCAP "/data/service/el1/public/cups/printcap"
|
||
#define CUPS_DEFAULT_ERROR_POLICY "stop-printer"
|
||
#define CUPS_DEFAULT_MAX_COPIES 9999
|
||
#define CUPS_DEFAULT_WEBIF 0
|
||
#define HAVE_POSIX_SPAWN 1
|
||
#define HAVE_LIBZ 1
|
||
#define HAVE_INFLATECOPY 1
|
||
#define HAVE_LIBPAM 0
|
||
#define HAVE_CRYPT_H 1
|
||
#define HAVE_STDINT_H 1
|
||
|
||
#define HAVE_LONG_LONG 1
|
||
|
||
#ifdef HAVE_LONG_LONG
|
||
# define CUPS_LLFMT "%lld"
|
||
# define CUPS_LLCAST (long long)
|
||
#else
|
||
# define CUPS_LLFMT "%ld"
|
||
# define CUPS_LLCAST (long)
|
||
#endif /* HAVE_LONG_LONG */
|
||
|
||
#define HAVE_STRTOLL 1
|
||
|
||
#ifndef HAVE_STRTOLL
|
||
# define strtoll(nptr,endptr,base) strtol((nptr), (endptr), (base))
|
||
#endif /* !HAVE_STRTOLL */
|
||
|
||
#define HAVE_STRDUP 1
|
||
#define HAVE_GETEUID 1
|
||
#define HAVE_SETPGID 1
|
||
#define HAVE_SNPRINTF 1
|
||
#define HAVE_VSNPRINTF 1
|
||
#define HAVE_SIGACTION 1
|
||
#define HAVE_WAITPID 1
|
||
#define HAVE_WAIT3 1
|
||
#define HAVE_MALLOC_H 1
|
||
#define HAVE_LANGINFO_H 1
|
||
#define HAVE_SYS_IOCTL_H 1
|
||
#define HAVE_TM_GMTOFF 1
|
||
#define HAVE_RRESVPORT_AF 1
|
||
#define HAVE_GETADDRINFO 1
|
||
#define HAVE_GETNAMEINFO 1
|
||
#define HAVE_GETIFADDRS 1
|
||
#define HAVE_HSTRERROR 1
|
||
#define HAVE_RES_INIT 1
|
||
#define HAVE_RESOLV_H 1
|
||
#define HAVE_PTHREAD_H 1
|
||
#define HAVE_ONDEMAND 1
|
||
#define HAVE_GETGROUPLIST 1
|
||
#define CUPS_DEFAULT_GSSSERVICENAME "host"
|
||
#define HAVE_POLL 1
|
||
#define HAVE_EPOLL 1
|
||
#define HAVE_SYS_PARAM_H 1
|
||
|
||
#define HAVE_RANDOM 1
|
||
#define HAVE_LRAND48 1
|
||
|
||
#ifdef HAVE_ARC4RANDOM
|
||
# define CUPS_RAND() arc4random()
|
||
# define CUPS_SRAND(v)
|
||
#elif defined(HAVE_RANDOM)
|
||
# define CUPS_RAND() random()
|
||
# define CUPS_SRAND(v) srandom(v)
|
||
#elif defined(HAVE_LRAND48)
|
||
# define CUPS_RAND() lrand48()
|
||
# define CUPS_SRAND(v) srand48(v)
|
||
#else
|
||
# define CUPS_RAND() rand()
|
||
# define CUPS_SRAND(v) srand(v)
|
||
#endif /* HAVE_ARC4RANDOM */
|
||
|
||
#define HAVE_LIBUSB 1
|
||
#define HAVE_STATFS 1
|
||
#define HAVE_STATVFS 1
|
||
#define HAVE_SYS_MOUNT_H 1
|
||
#define HAVE_SYS_STATFS_H 1
|
||
#define HAVE_SYS_STATVFS_H 1
|
||
#define HAVE_SYS_VFS_H 1
|
||
|
||
#define HAVE_ABS 1
|
||
#if !defined(HAVE_ABS) && !defined(abs)
|
||
# if defined(__GNUC__) || __STDC_VERSION__ >= 199901L
|
||
# define abs(x) _cups_abs(x)
|
||
static inline int _cups_abs(int i) { return (i < 0 ? -i : i); }
|
||
# elif defined(_MSC_VER)
|
||
# define abs(x) _cups_abs(x)
|
||
static __inline int _cups_abs(int i) { return (i < 0 ? -i : i); }
|
||
# else
|
||
# define abs(x) ((x) < 0 ? -(x) : (x))
|
||
# endif /* __GNUC__ || __STDC_VERSION__ */
|
||
#endif /* !HAVE_ABS && !abs */
|
||
|
||
#define HAVE_SNAPD_CLIENT_RUN_SNAPCTL2_SYNC 1
|
||
|
||
#endif /* !_CUPS_CONFIG_H_ */
|