"Fossies" - the Fresh Open Source Software Archive

Member "whois/config.h" (2 Oct 2019, 3027 Bytes) of package /linux/privat/whois_5.5.9.tar.xz:


As a special service "Fossies" has tried to format the requested source page into HTML format using (guessed) C and C++ source code syntax highlighting (style: standard) with prefixed line numbers and code folding option. Alternatively you can here view or download the uninterpreted source code file. For more information about "config.h" see the Fossies "Dox" file reference documentation and the last Fossies "Diffs" side-by-side code changes report: 5.5.1_vs_5.5.2.

    1 /* Configurable features */
    2 
    3 /* Always hide legal disclaimers */
    4 #undef ALWAYS_HIDE_DISCL
    5 
    6 /* Default server */
    7 #define DEFAULTSERVER   "whois.arin.net"
    8 
    9 /* Configuration file */
   10 /*
   11 #define CONFIG_FILE "/etc/whois.conf"
   12 */
   13 
   14 
   15 /* autoconf in cpp macros */
   16 #if defined __NetBSD__ || __OpenBSD__
   17 # include <sys/param.h>
   18 #endif
   19 
   20 #ifdef __GLIBC__
   21 # define ENABLE_NLS
   22 #endif
   23 
   24 #ifdef __FreeBSD__
   25 /* which versions? */
   26 # define HAVE_GETOPT_LONG
   27 # define HAVE_GETADDRINFO
   28 # define ENABLE_NLS
   29 # ifndef LOCALEDIR
   30 #  define LOCALEDIR "/usr/local/share/locale"
   31 # endif
   32 #endif
   33 
   34 /* needs unistd.h */
   35 #if defined _POSIX_C_SOURCE && _POSIX_C_SOURCE >= 200112L
   36 # define HAVE_GETADDRINFO
   37 # define HAVE_REGEXEC
   38 #endif
   39 
   40 #if defined __APPLE__ && defined __MACH__
   41 # define HAVE_GETOPT_LONG
   42 # define HAVE_GETADDRINFO
   43 # define HAVE_BSDICRYPT
   44 #endif
   45 
   46 #if defined __GLIBC__
   47 # define HAVE_GETOPT_LONG
   48 # if __GLIBC__ >= 2 && __GLIBC_MINOR__ >= 1
   49 #  define HAVE_GETADDRINFO
   50 # endif
   51 # if __GLIBC__ >= 2 && __GLIBC_MINOR__ >= 7
   52 #  define HAVE_SHA_CRYPT
   53 # endif
   54 #endif
   55 
   56 #if defined OpenBSD && OpenBSD < 201405
   57 # define HAVE_BCRYPT_OBSOLETE
   58 #elif defined OpenBSD || defined __FreeBSD__ || (defined __SVR4 && defined __sun) || defined _OW_SOURCE
   59 # define HAVE_BCRYPT
   60 #endif
   61 
   62 #if defined OpenBSD || defined __FreeBSD__ || defined __NetBSD__
   63 # define HAVE_BSDICRYPT
   64 #endif
   65 
   66 /* Unknown versions of Solaris */
   67 #if defined __SVR4 && defined __sun
   68 # define HAVE_SHA_CRYPT
   69 # define HAVE_CRYPT_H
   70 # define HAVE_SOLARIS_CRYPT_GENSALT
   71 # define CRYPT_GENSALT_IMPLEMENTS_DEFAULT_PREFIX
   72 #endif
   73 
   74 /* FIXME: which systems lack this? */
   75 #define HAVE_GETTIMEOFDAY
   76 
   77 /*
   78  * Please send patches to correctly ignore old releases which lack a RNG
   79  * and add more systems which have one.
   80  */
   81 #ifdef RANDOM_DEVICE
   82 #elif defined linux \
   83     || defined __FreeBSD__ || defined __NetBSD__ || defined __OpenBSD__ \
   84     /* AIX >= 5.2? */ \
   85     || defined _AIX52 \
   86     /* HP-UX >= B.11.11.09? */ \
   87     || defined  __hpux \
   88     /* OS X: */ \
   89     || (defined __APPLE__ && defined __MACH__) \
   90     /* Solaris >= 9 (this is >= 7): */ \
   91     || (defined __SVR4 && defined __sun && defined SUSv2) \
   92     /* Tru64 UNIX >= 5.1B? */ \
   93     || defined __osf
   94 # define RANDOM_DEVICE "/dev/urandom"
   95 #endif
   96 
   97 /* use arc4random_buf instead if it is available */
   98 #if (defined __FreeBSD__ && __FreeBSD__ >= 9) || \
   99     (defined __NetBSD__  && __NetBSD_Version__ >= 600000000) || \
  100     (defined OpenBSD && OpenBSD >= 200805) || \
  101     (defined __APPLE__ && defined __MACH__ && MAC_OS_X_VERSION_MIN_REQUIRED >= 1070)
  102 # define HAVE_ARC4RANDOM_BUF
  103 #endif
  104 
  105 /* or else getentropy(2) on Linux */
  106 #if defined __GLIBC__ && __GLIBC__ >= 2 && __GLIBC_MINOR__ >= 25
  107 # define HAVE_GETENTROPY
  108 #endif
  109 
  110 /* some versions of crypt(3) set errno on error */
  111 #if defined __GLIBC__ || (defined __SVR4 && defined __sun) || defined OpenBSD || AIX
  112 # define CRYPT_SETS_ERRNO 1
  113 #else
  114 # define CRYPT_SETS_ERRNO 0
  115 #endif
  116 
  117 #ifdef ENABLE_NLS
  118 # ifndef NLS_CAT_NAME
  119 #  define NLS_CAT_NAME   "whois"
  120 # endif
  121 # ifndef LOCALEDIR
  122 #  define LOCALEDIR     "/usr/share/locale"
  123 # endif
  124 #endif
  125