config.h.in 7.8 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348
  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. /* Default port for NRPE daemon */
  28. #undef DEFAULT_SERVER_PORT
  29. /* NRPE syslog facility */
  30. #undef NRPE_LOG_FACILITY
  31. /* Enable command-line arguments */
  32. #undef ENABLE_COMMAND_ARGUMENTS
  33. /* Enable bash command substitution */
  34. #undef ENABLE_BASH_COMMAND_SUBSTITUTION
  35. /* type to use in place of socklen_t if not defined */
  36. #undef socklen_t
  37. /* Define to 1 if you have the `getopt_long' function. */
  38. #undef HAVE_GETOPT_LONG
  39. /* Have the TCP wrappers library */
  40. #undef HAVE_LIBWRAP
  41. /* Define to 1 if you have the ANSI C header files. */
  42. #undef STDC_HEADERS
  43. /* Define to 1 if you have the `strdup' function. */
  44. #undef HAVE_STRDUP
  45. /* Define to 1 if you have the `strstr' function. */
  46. #undef HAVE_STRSTR
  47. /* Define to 1 if you have the `strtoul' function. */
  48. #undef HAVE_STRTOUL
  49. /* Define to 1 if you have the `strtok_r' function. */
  50. #undef HAVE_STRTOK_R
  51. /* Define to 1 if you have the `initgroups' function. */
  52. #undef HAVE_INITGROUPS
  53. /* Define to 1 if you have the `closesocket' function. */
  54. #undef HAVE_CLOSESOCKET
  55. /* Define to 1 if you have the `sigaction' function. */
  56. #undef HAVE_SIGACTION
  57. /* Set to 1 if you have rfc931_timeout */
  58. #undef HAVE_RFC931_TIMEOUT
  59. /* The size of `int', as computed by sizeof. */
  60. #undef SIZEOF_INT
  61. /* The size of `short', as computed by sizeof. */
  62. #undef SIZEOF_SHORT
  63. /* The size of `long', as computed by sizeof. */
  64. #undef SIZEOF_LONG
  65. /* Define to empty if `const' does not conform to ANSI C. */
  66. #undef const
  67. /* Set to 1 to use SSL DH */
  68. #undef USE_SSL_DH
  69. /* stupid stuff for u_int32_t */
  70. #undef U_INT32_T_IS_USHORT
  71. #undef U_INT32_T_IS_UINT
  72. #undef U_INT32_T_IS_ULONG
  73. #undef U_INT32_T_IS_UINT32_T
  74. #ifdef U_INT32_T_IS_USHORT
  75. typedef unsigned short u_int32_t;
  76. #endif
  77. #ifdef U_INT32_T_IS_ULONG
  78. typedef unsigned long u_int32_t;
  79. #endif
  80. #ifdef U_INT32_T_IS_UINT
  81. typedef unsigned int u_int32_t;
  82. #endif
  83. #ifdef U_INT32_T_IS_UINT32_t
  84. typedef uint32_t u_int32_t;
  85. #endif
  86. /* stupid stuff for int32_t */
  87. #undef INT32_T_IS_SHORT
  88. #undef INT32_T_IS_INT
  89. #undef INT32_T_IS_LONG
  90. #ifdef INT32_T_IS_USHORT
  91. typedef short int32_t;
  92. #endif
  93. #ifdef INT32_T_IS_ULONG
  94. typedef long int32_t;
  95. #endif
  96. #ifdef INT32_T_IS_UINT
  97. typedef int int32_t;
  98. #endif
  99. /***** ASPRINTF() AND FRIENDS *****/
  100. /* Whether vsnprintf() is available */
  101. #undef HAVE_VSNPRINTF
  102. /* Whether snprintf() is available */
  103. #undef HAVE_SNPRINTF
  104. /* Whether aprintf() is available */
  105. #undef HAVE_ASPRINTF
  106. /* Whether vaprintf() is available */
  107. #undef HAVE_VASPRINTF
  108. /* Define if system has C99 compatible vsnprintf */
  109. #undef HAVE_C99_VSNPRINTF
  110. /* Whether va_copy() is available */
  111. #undef HAVE_VA_COPY
  112. /* Whether __va_copy() is available */
  113. #undef HAVE___VA_COPY
  114. /* Socket Size Type */
  115. #undef SOCKET_SIZE_TYPE
  116. /* Define to the type of elements in the array set by `getgroups'. Usually
  117. this is either `int' or `gid_t'. */
  118. #undef GETGROUPS_T
  119. /* Define as the return type of signal handlers (`int' or `void'). */
  120. #undef RETSIGTYPE
  121. /* Define to 1 if the system has the type `struct sockaddr_storage'. */
  122. #undef HAVE_STRUCT_SOCKADDR_STORAGE
  123. /* Use seteuid() or setresuid() depending on the platform */
  124. #undef SETEUID
  125. /* Set to 1 if we are on Solaris 10 */
  126. #undef SOLARIS_10
  127. /* Define to 1 if you have the <getopt.h> header file. */
  128. #undef HAVE_GETOPT_H
  129. #ifdef HAVE_GETOPT_H
  130. #include <getopt.h>
  131. #endif
  132. /* Define to 1 if you have the <strings.h> header file. */
  133. #undef HAVE_STRINGS_H
  134. #ifdef HAVE_STRINGS_H
  135. #include <strings.h>
  136. #endif
  137. /* Define to 1 if you have the <string.h> header file. */
  138. #undef HAVE_STRING_H
  139. #ifdef HAVE_STRING_H
  140. #include <string.h>
  141. #endif
  142. /* Define to 1 if you have the <unistd.h> header file. */
  143. #undef HAVE_UNISTD_H
  144. #ifdef HAVE_UNISTD_H
  145. #include <unistd.h>
  146. #endif
  147. /* Define to 1 if you have the <signal.h> header file. */
  148. #undef HAVE_SIGNAL_H
  149. #ifdef HAVE_SIGNAL_H
  150. #include <signal.h>
  151. #endif
  152. /* Define to 1 if you have the <syslog.h> header file. */
  153. #undef HAVE_SYSLOG_H
  154. #ifdef HAVE_SYSLOG_H
  155. #include <syslog.h>
  156. #endif
  157. /* Define to 1 if you have the <sys/stat.h> header file. */
  158. #undef HAVE_SYS_STAT_H
  159. #ifdef HAVE_SYS_STAT_H
  160. #include <sys/stat.h>
  161. #endif
  162. /* Define to 1 if you have the <fcntl.h> header file. */
  163. #undef HAVE_FCNTL_H
  164. #ifdef HAVE_FCNTL_H
  165. #include <fcntl.h>
  166. #endif
  167. /* Define to 1 if you have the <sys/types.h> header file. */
  168. #undef HAVE_SYS_TYPES_H
  169. #ifdef HAVE_SYS_TYPES_H
  170. #include <sys/types.h>
  171. #endif
  172. /* Define to 1 if you have the <sys/wait.h> header file. */
  173. #undef HAVE_SYS_WAIT_H
  174. #ifdef HAVE_SYS_WAIT_H
  175. #include <sys/wait.h>
  176. #endif
  177. #ifndef WEXITSTATUS
  178. # define WEXITSTATUS(stat_val) ((unsigned)(stat_val) >> 8)
  179. #endif
  180. #ifndef WIFEXITED
  181. # define WIFEXITED(stat_val) (((stat_val) & 255) == 0)
  182. #endif
  183. /* Define to 1 if you have the <errno.h> header file. */
  184. #undef HAVE_ERRNO_H
  185. #ifdef HAVE_ERRNO_H
  186. #include <errno.h>
  187. #endif
  188. /* Define to 1 if you can safely include both <sys/time.h> and <time.h>. */
  189. #undef TIME_WITH_SYS_TIME
  190. /* Define to 1 if you have the <sys/time.h> header file. */
  191. #undef HAVE_SYS_TIME_H
  192. #if TIME_WITH_SYS_TIME
  193. # include <sys/time.h>
  194. # include <time.h>
  195. #else
  196. # if HAVE_SYS_TIME_H
  197. # include <sys/time.h>
  198. # else
  199. # include <time.h>
  200. # endif
  201. #endif
  202. /* Define to 1 if you have the <sys/socket.h> header file. */
  203. #undef HAVE_SYS_SOCKET_H
  204. #ifdef HAVE_SYS_SOCKET_H
  205. #include <sys/socket.h>
  206. #endif
  207. /* Define to 1 if you have the <socket.h> header file. */
  208. #undef HAVE_SOCKET_H
  209. #ifdef HAVE_SOCKET_H
  210. #include <socket.h>
  211. #endif
  212. /* Define to 1 if you have the <tcpd.h> header file. */
  213. #undef HAVE_TCPD_H
  214. #ifdef HAVE_TCPD_H
  215. #include <tcpd.h>
  216. #endif
  217. /* Define to 1 if you have the <netinet/in.h> header file. */
  218. #undef HAVE_NETINET_IN_H
  219. #ifdef HAVE_NETINET_IN_H
  220. #include <netinet/in.h>
  221. #endif
  222. /* Define to 1 if you have the <arpa/inet.h> header file. */
  223. #undef HAVE_ARPA_INET_H
  224. #ifdef HAVE_ARPA_INET_H
  225. #include <arpa/inet.h>
  226. #endif
  227. /* Define to 1 if you have the <netdb.h> header file. */
  228. #undef HAVE_NETDB_H
  229. #ifdef HAVE_NETDB_H
  230. #include <netdb.h>
  231. #endif
  232. /* Define to 1 if you have the <ctype.h> header file. */
  233. #undef HAVE_CTYPE_H
  234. #ifdef HAVE_CTYPE_H
  235. #include <ctype.h>
  236. #endif
  237. /* Define to 1 if you have the <pwd.h> header file. */
  238. #undef HAVE_PWD_H
  239. #ifdef HAVE_PWD_H
  240. #include <pwd.h>
  241. #endif
  242. /* Define to 1 if you have the <grp.h> header file. */
  243. #undef HAVE_GRP_H
  244. #ifdef HAVE_GRP_H
  245. #include <grp.h>
  246. #endif
  247. /* Define to 1 if you have the <dirent.h> header file. */
  248. #undef HAVE_DIRENT_H
  249. #ifdef HAVE_DIRENT_H
  250. #include <dirent.h>
  251. #endif
  252. /* Have SSL support */
  253. #undef HAVE_SSL
  254. /* Have the krb5.h header file */
  255. #undef HAVE_KRB5_H
  256. #ifdef HAVE_KRB5_H
  257. #include <krb5.h>
  258. #endif
  259. /* Define to 1 if you have the <inttypes.h> header file. */
  260. #undef HAVE_INTTYPES_H
  261. /* Define to 1 if you have the <stdint.h> header file. */
  262. #undef HAVE_STDINT_H
  263. #ifdef HAVE_INTTYPES_H
  264. #include <inttypes.h>
  265. #else
  266. #ifdef HAVE_STDINT_H
  267. #include <stdint.h>
  268. #endif
  269. #endif
  270. /* Define to 1 if you have the <paths.h> header file. */
  271. #undef HAVE_PATHS_H
  272. /* Define to 1 if you have the <sys/resource.h> header file. */
  273. #undef HAVE_SYS_RESOURCE_H
  274. #endif