libasplib: add url to gcc bug report
[buildroot-gz.git] / package / mkpasswd / config.h
blobf345074121ee80ec22c08d803005485700eb854d
1 /* Program version */
2 #define VERSION "5.0.26"
4 /* Configurable features */
6 /* Always hide legal disclaimers */
7 #undef ALWAYS_HIDE_DISCL
9 /* Default server */
10 #define DEFAULTSERVER "whois.arin.net"
12 /* Configuration file */
14 #define CONFIG_FILE "/etc/whois.conf"
18 /* autoconf in cpp macros */
19 #ifdef linux
20 # define ENABLE_NLS
21 #endif
23 #ifdef __FreeBSD__
24 /* which versions? */
25 # define HAVE_GETOPT_LONG
26 # define HAVE_GETADDRINFO
27 # define ENABLE_NLS
28 # ifndef LOCALEDIR
29 # define LOCALEDIR "/usr/local/share/locale"
30 # endif
31 #endif
33 /* needs unistd.h */
34 #if defined _POSIX_C_SOURCE && _POSIX_C_SOURCE >= 200112L
35 # define HAVE_GETADDRINFO
36 # define HAVE_REGEXEC
37 #endif
39 #if defined __APPLE__ && defined __MACH__
40 # define HAVE_GETOPT_LONG
41 # define HAVE_GETADDRINFO
42 #endif
44 #if defined __GLIBC__
45 # define HAVE_GETOPT_LONG
46 # if __GLIBC__ >= 2 && __GLIBC_MINOR__ >= 1
47 # define HAVE_GETADDRINFO
48 # endif
49 # if __GLIBC__ >= 2 && __GLIBC_MINOR__ >= 7
50 # define HAVE_SHA_CRYPT
51 # endif
52 #endif
54 /* Unknown versions of Solaris */
55 #if defined __SVR4 && defined __sun
56 # define HAVE_SHA_CRYPT
57 # define HAVE_SOLARIS_CRYPT_GENSALT
58 #endif
60 /* FIXME: which systems lack this? */
61 #define HAVE_GETTIMEOFDAY
62 /* FIXME: disabled because it does not parse addresses with a netmask length.
63 * The code using it needs to be either fixed or removed.
64 #define HAVE_INET_PTON
68 * Please send patches to correctly ignore old releases which lack a RNG
69 * and add more systems which have one.
71 #ifdef RANDOM_DEVICE
72 #elif defined __GLIBC__ \
73 || defined __FreeBSD__ || defined __NetBSD__ || defined __OpenBSD__ \
74 /* AIX >= 5.2? */ \
75 || defined _AIX52 \
76 /* HP-UX >= B.11.11.09? */ \
77 || defined __hpux \
78 /* OS X: */ \
79 || (defined __APPLE__ && defined __MACH__) \
80 /* Solaris >= 9 (this is >= 7): */ \
81 || (defined __SVR4 && defined __sun && defined SUSv2) \
82 /* Tru64 UNIX >= 5.1B? */ \
83 || defined __osf
84 # define RANDOM_DEVICE "/dev/urandom"
85 #endif
87 #ifdef ENABLE_NLS
88 # ifndef NLS_CAT_NAME
89 # define NLS_CAT_NAME "whois"
90 # endif
91 # ifndef LOCALEDIR
92 # define LOCALEDIR "/usr/share/locale"
93 # endif
94 #endif