config.h.in 4.7 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261
  1. /************************************************************************
  2. *
  3. * NRPE Common Header File
  4. * Copyright (c) 1999-2007 Ethan Galstad (nagios@nagios.org)
  5. * Last Modified: 11-23-2007
  6. *
  7. * License:
  8. *
  9. * This program is free software; you can redistribute it and/or modify
  10. * it under the terms of the GNU General Public License as published by
  11. * the Free Software Foundation; either version 2 of the License, or
  12. * (at your option) any later version.
  13. *
  14. * This program is distributed in the hope that it will be useful,
  15. * but WITHOUT ANY WARRANTY; without even the implied warranty of
  16. * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
  17. * GNU General Public License for more details.
  18. *
  19. * You should have received a copy of the GNU General Public License
  20. * along with this program; if not, write to the Free Software
  21. * Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
  22. ************************************************************************/
  23. #ifndef _CONFIG_H
  24. #define _CONFIG_H
  25. #include <stdio.h>
  26. #include <stdlib.h>
  27. #define DEFAULT_SERVER_PORT @nrpe_port@ /* default port to use */
  28. #define NRPE_LOG_FACILITY @log_facility@
  29. #undef ENABLE_COMMAND_ARGUMENTS
  30. #undef socklen_t
  31. #undef HAVE_GETOPT_LONG
  32. #undef HAVE_LIBWRAP
  33. #undef STDC_HEADERS
  34. #undef HAVE_STRDUP
  35. #undef HAVE_STRSTR
  36. #undef HAVE_STRTOUL
  37. #undef HAVE_INITGROUPS
  38. #undef HAVE_CLOSESOCKET
  39. #undef SIZEOF_INT
  40. #undef SIZEOF_SHORT
  41. #undef SIZEOF_LONG
  42. /* stupid stuff for u_int32_t */
  43. #undef U_INT32_T_IS_USHORT
  44. #undef U_INT32_T_IS_UINT
  45. #undef U_INT32_T_IS_ULONG
  46. #undef U_INT32_T_IS_UINT32_T
  47. #ifdef U_INT32_T_IS_USHORT
  48. typedef unsigned short u_int32_t;
  49. #endif
  50. #ifdef U_INT32_T_IS_ULONG
  51. typedef unsigned long u_int32_t;
  52. #endif
  53. #ifdef U_INT32_T_IS_UINT
  54. typedef unsigned int u_int32_t;
  55. #endif
  56. #ifdef U_INT32_T_IS_UINT32_t
  57. typedef uint32_t u_int32_t;
  58. #endif
  59. /* stupid stuff for int32_t */
  60. #undef INT32_T_IS_SHORT
  61. #undef INT32_T_IS_INT
  62. #undef INT32_T_IS_LONG
  63. #ifdef INT32_T_IS_USHORT
  64. typedef short int32_t;
  65. #endif
  66. #ifdef INT32_T_IS_ULONG
  67. typedef long int32_t;
  68. #endif
  69. #ifdef INT32_T_IS_UINT
  70. typedef int int32_t;
  71. #endif
  72. /***** ASPRINTF() AND FRIENDS *****/
  73. #undef HAVE_VSNPRINTF
  74. #undef HAVE_SNPRINTF
  75. #undef HAVE_ASPRINTF
  76. #undef HAVE_VASPRINTF
  77. #undef HAVE_C99_VSNPRINTF
  78. #undef HAVE_VA_COPY
  79. #undef HAVE___VA_COPY
  80. #define SOCKET_SIZE_TYPE ""
  81. #define GETGROUPS_T ""
  82. #define RETSIGTYPE ""
  83. #undef HAVE_GETOPT_H
  84. #ifdef HAVE_GETOPT_H
  85. #include <getopt.h>
  86. #endif
  87. #undef HAVE_STRINGS_H
  88. #undef HAVE_STRING_H
  89. #ifdef HAVE_STRINGS_H
  90. #include <strings.h>
  91. #endif
  92. #ifdef HAVE_STRINGS_H
  93. #include <string.h>
  94. #endif
  95. #undef HAVE_UNISTD_H
  96. #ifdef HAVE_UNISTD_H
  97. #include <unistd.h>
  98. #endif
  99. #undef HAVE_SIGNAL_H
  100. #ifdef HAVE_SIGNAL_H
  101. #include <signal.h>
  102. #endif
  103. #undef HAVE_SYSLOG_H
  104. #ifdef HAVE_SYSLOG_H
  105. #include <syslog.h>
  106. #endif
  107. #undef HAVE_SYS_STAT_H
  108. #ifdef HAVE_SYS_STAT_H
  109. #include <sys/stat.h>
  110. #endif
  111. #undef HAVE_FCNTL_H
  112. #ifdef HAVE_FCNTL_H
  113. #include <fcntl.h>
  114. #endif
  115. #undef HAVE_SYS_TYPES_H
  116. #ifdef HAVE_SYS_TYPES_H
  117. #include <sys/types.h>
  118. #endif
  119. #undef HAVE_SYS_WAIT_H
  120. #ifdef HAVE_SYS_WAIT_H
  121. #include <sys/wait.h>
  122. #endif
  123. #ifndef WEXITSTATUS
  124. # define WEXITSTATUS(stat_val) ((unsigned)(stat_val) >> 8)
  125. #endif
  126. #ifndef WIFEXITED
  127. # define WIFEXITED(stat_val) (((stat_val) & 255) == 0)
  128. #endif
  129. #undef HAVE_ERRNO_H
  130. #ifdef HAVE_ERRNO_H
  131. #include <errno.h>
  132. #endif
  133. /* needed for the time_t structures we use later... */
  134. #undef TIME_WITH_SYS_TIME
  135. #undef HAVE_SYS_TIME_H
  136. #if TIME_WITH_SYS_TIME
  137. # include <sys/time.h>
  138. # include <time.h>
  139. #else
  140. # if HAVE_SYS_TIME_H
  141. # include <sys/time.h>
  142. # else
  143. # include <time.h>
  144. # endif
  145. #endif
  146. #undef HAVE_SYS_SOCKET_H
  147. #ifdef HAVE_SYS_SOCKET_H
  148. #include <sys/socket.h>
  149. #endif
  150. /* Define to 'int' if <sys/socket.h> does not define */
  151. #undef socklen_t
  152. #undef HAVE_SOCKET_H
  153. #ifdef HAVE_SOCKET_H
  154. #include <socket.h>
  155. #endif
  156. #undef HAVE_TCPD_H
  157. #ifdef HAVE_TCPD_H
  158. #include <tcpd.h>
  159. #endif
  160. #undef HAVE_NETINET_IN_H
  161. #ifdef HAVE_NETINET_IN_H
  162. #include <netinet/in.h>
  163. #endif
  164. #undef HAVE_ARPA_INET_H
  165. #ifdef HAVE_ARPA_INET_H
  166. #include <arpa/inet.h>
  167. #endif
  168. #undef HAVE_NETDB_H
  169. #ifdef HAVE_NETDB_H
  170. #include <netdb.h>
  171. #endif
  172. #undef HAVE_CTYPE_H
  173. #ifdef HAVE_CTYPE_H
  174. #include <ctype.h>
  175. #endif
  176. #undef HAVE_PWD_H
  177. #ifdef HAVE_PWD_H
  178. #include <pwd.h>
  179. #endif
  180. #undef HAVE_GRP_H
  181. #ifdef HAVE_GRP_H
  182. #include <grp.h>
  183. #endif
  184. #undef HAVE_DIRENT_H
  185. #ifdef HAVE_DIRENT_H
  186. #include <dirent.h>
  187. #endif
  188. #undef HAVE_SSL
  189. #ifdef HAVE_SSL
  190. #include <rsa.h>
  191. #include <crypto.h>
  192. #include <dh.h>
  193. #include <pem.h>
  194. #include <ssl.h>
  195. #include <err.h>
  196. #include <rand.h>
  197. #endif
  198. #undef HAVE_KRB5_H
  199. #ifdef HAVE_KRB5_H
  200. #include <krb5.h>
  201. #endif
  202. #undef HAVE_INTTYPES_H
  203. #undef HAVE_STDINT_H
  204. #ifdef HAVE_INTTYPES_H
  205. #include <inttypes.h>
  206. #else
  207. #ifdef HAVE_STDINT_H
  208. #include <stdint.h>
  209. #endif
  210. #endif
  211. #endif