config.h 2.0 KB

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