config.h.in 7.9 KB

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