config.h.in 11 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451
  1. /****************************************************************************
  2. *
  3. * config.h - NRPE Configuration header file
  4. *
  5. * License: GPLv2
  6. * Copyright (c) 2006-2017 Nagios Enterprises
  7. * 1999-2006 Ethan Galstad (nagios@nagios.org)
  8. *
  9. * License Notice:
  10. *
  11. * This program is free software; you can redistribute it and/or modify
  12. * it under the terms of the GNU General Public License as published by
  13. * the Free Software Foundation; either version 2 of the License, or
  14. * (at your option) any later version.
  15. *
  16. * This program is distributed in the hope that it will be useful,
  17. * but WITHOUT ANY WARRANTY; without even the implied warranty of
  18. * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
  19. * GNU General Public License for more details.
  20. *
  21. * You should have received a copy of the GNU General Public License
  22. * along with this program; if not, write to the Free Software
  23. * Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
  24. *
  25. ****************************************************************************/
  26. #ifndef _CONFIG_H
  27. #define _CONFIG_H
  28. /* Enable extensions on AIX, Interix, z/OS. */
  29. #ifndef _ALL_SOURCE
  30. # undef _ALL_SOURCE
  31. #endif
  32. /* Enable general extensions on macOS. */
  33. #ifndef _DARWIN_C_SOURCE
  34. # undef _DARWIN_C_SOURCE
  35. #endif
  36. /* Enable general extensions on Solaris. */
  37. #ifndef __EXTENSIONS__
  38. # undef __EXTENSIONS__
  39. #endif
  40. /* Enable GNU extensions on systems that have them. */
  41. #ifndef _GNU_SOURCE
  42. # undef _GNU_SOURCE
  43. #endif
  44. /* Enable X/Open compliant socket functions that do not require linking
  45. with -lxnet on HP-UX 11.11. */
  46. #ifndef _HPUX_ALT_XOPEN_SOCKET_API
  47. # undef _HPUX_ALT_XOPEN_SOCKET_API
  48. #endif
  49. /* Identify the host operating system as Minix.
  50. This macro does not affect the system headers' behavior.
  51. A future release of Autoconf may stop defining this macro. */
  52. #ifndef _MINIX
  53. # undef _MINIX
  54. #endif
  55. /* Enable general extensions on NetBSD.
  56. Enable NetBSD compatibility extensions on Minix. */
  57. #ifndef _NETBSD_SOURCE
  58. # undef _NETBSD_SOURCE
  59. #endif
  60. /* Enable OpenBSD compatibility extensions on NetBSD.
  61. Oddly enough, this does nothing on OpenBSD. */
  62. #ifndef _OPENBSD_SOURCE
  63. # undef _OPENBSD_SOURCE
  64. #endif
  65. /* Define to 1 if needed for POSIX-compatible behavior. */
  66. #ifndef _POSIX_SOURCE
  67. # undef _POSIX_SOURCE
  68. #endif
  69. /* Define to 2 if needed for POSIX-compatible behavior. */
  70. #ifndef _POSIX_1_SOURCE
  71. # undef _POSIX_1_SOURCE
  72. #endif
  73. /* Enable POSIX-compatible threading on Solaris. */
  74. #ifndef _POSIX_PTHREAD_SEMANTICS
  75. # undef _POSIX_PTHREAD_SEMANTICS
  76. #endif
  77. /* Enable extensions specified by ISO/IEC TS 18661-5:2014. */
  78. #ifndef __STDC_WANT_IEC_60559_ATTRIBS_EXT__
  79. # undef __STDC_WANT_IEC_60559_ATTRIBS_EXT__
  80. #endif
  81. /* Enable extensions specified by ISO/IEC TS 18661-1:2014. */
  82. #ifndef __STDC_WANT_IEC_60559_BFP_EXT__
  83. # undef __STDC_WANT_IEC_60559_BFP_EXT__
  84. #endif
  85. /* Enable extensions specified by ISO/IEC TS 18661-2:2015. */
  86. #ifndef __STDC_WANT_IEC_60559_DFP_EXT__
  87. # undef __STDC_WANT_IEC_60559_DFP_EXT__
  88. #endif
  89. /* Enable extensions specified by C23 Annex F. */
  90. #ifndef __STDC_WANT_IEC_60559_EXT__
  91. # undef __STDC_WANT_IEC_60559_EXT__
  92. #endif
  93. /* Enable extensions specified by ISO/IEC TS 18661-4:2015. */
  94. #ifndef __STDC_WANT_IEC_60559_FUNCS_EXT__
  95. # undef __STDC_WANT_IEC_60559_FUNCS_EXT__
  96. #endif
  97. /* Enable extensions specified by C23 Annex H and ISO/IEC TS 18661-3:2015. */
  98. #ifndef __STDC_WANT_IEC_60559_TYPES_EXT__
  99. # undef __STDC_WANT_IEC_60559_TYPES_EXT__
  100. #endif
  101. /* Enable extensions specified by ISO/IEC TR 24731-2:2010. */
  102. #ifndef __STDC_WANT_LIB_EXT2__
  103. # undef __STDC_WANT_LIB_EXT2__
  104. #endif
  105. /* Enable extensions specified by ISO/IEC 24747:2009. */
  106. #ifndef __STDC_WANT_MATH_SPEC_FUNCS__
  107. # undef __STDC_WANT_MATH_SPEC_FUNCS__
  108. #endif
  109. /* Enable extensions on HP NonStop. */
  110. #ifndef _TANDEM_SOURCE
  111. # undef _TANDEM_SOURCE
  112. #endif
  113. /* Enable X/Open extensions. Define to 500 only if necessary
  114. to make mbstate_t available. */
  115. #ifndef _XOPEN_SOURCE
  116. # undef _XOPEN_SOURCE
  117. #endif
  118. /* Number of bits in a file offset, on hosts where this is settable. */
  119. #undef _FILE_OFFSET_BITS
  120. /* Define to 1 on platforms where this makes off_t a 64-bit type. */
  121. #undef _LARGE_FILES
  122. #include <stdio.h>
  123. #include <stdlib.h>
  124. /* Default port for NRPE daemon */
  125. #undef DEFAULT_SERVER_PORT
  126. /* NRPE syslog facility */
  127. #undef NRPE_LOG_FACILITY
  128. /* Enable command-line arguments */
  129. #undef ENABLE_COMMAND_ARGUMENTS
  130. /* Enable bash command substitution */
  131. #undef ENABLE_BASH_COMMAND_SUBSTITUTION
  132. /* type to use in place of socklen_t if not defined */
  133. #undef socklen_t
  134. /* Define to 1 if you have the `getopt_long' function. */
  135. #undef HAVE_GETOPT_LONG
  136. /* Have the TCP wrappers library */
  137. #undef HAVE_LIBWRAP
  138. /* Define to 1 if you have the ANSI C header files. */
  139. #undef STDC_HEADERS
  140. /* Define to 1 if you have the `strdup' function. */
  141. #undef HAVE_STRDUP
  142. /* Define to 1 if you have the `strstr' function. */
  143. #undef HAVE_STRSTR
  144. /* Define to 1 if you have the `strtoul' function. */
  145. #undef HAVE_STRTOUL
  146. /* Define to 1 if you have the `strtok_r' function. */
  147. #undef HAVE_STRTOK_R
  148. /* Define to 1 if you have the `initgroups' function. */
  149. #undef HAVE_INITGROUPS
  150. /* Define to 1 if you have the `closesocket' function. */
  151. #undef HAVE_CLOSESOCKET
  152. /* Define to 1 if you have the `sigaction' function. */
  153. #undef HAVE_SIGACTION
  154. /* Define to 1 if you have the `scandir' function. */
  155. #undef HAVE_SCANDIR
  156. /* Define to 1 if you have the `scandir64' function. */
  157. #undef HAVE_SCANDIR64
  158. /* Set to 1 if you have rfc931_timeout */
  159. #undef HAVE_RFC931_TIMEOUT
  160. /* The size of `int', as computed by sizeof. */
  161. #undef SIZEOF_INT
  162. /* The size of `short', as computed by sizeof. */
  163. #undef SIZEOF_SHORT
  164. /* The size of `long', as computed by sizeof. */
  165. #undef SIZEOF_LONG
  166. /* Define to empty if `const' does not conform to ANSI C. */
  167. #undef const
  168. /* Set to 1 to use SSL DH */
  169. #undef USE_SSL_DH
  170. /* Define to auto configure SSL DH parameters */
  171. #undef AUTO_SSL_DH
  172. /* stupid stuff for u_int32_t */
  173. #undef U_INT32_T_IS_USHORT
  174. #undef U_INT32_T_IS_UINT
  175. #undef U_INT32_T_IS_ULONG
  176. #undef U_INT32_T_IS_UINT32_T
  177. #ifdef U_INT32_T_IS_USHORT
  178. typedef unsigned short u_int32_t;
  179. #endif
  180. #ifdef U_INT32_T_IS_ULONG
  181. typedef unsigned long u_int32_t;
  182. #endif
  183. #ifdef U_INT32_T_IS_UINT
  184. typedef unsigned int u_int32_t;
  185. #endif
  186. #ifdef U_INT32_T_IS_UINT32_t
  187. typedef uint32_t u_int32_t;
  188. #endif
  189. /* stupid stuff for int32_t */
  190. #undef INT32_T_IS_SHORT
  191. #undef INT32_T_IS_INT
  192. #undef INT32_T_IS_LONG
  193. #ifdef INT32_T_IS_USHORT
  194. typedef short int32_t;
  195. #endif
  196. #ifdef INT32_T_IS_ULONG
  197. typedef long int32_t;
  198. #endif
  199. #ifdef INT32_T_IS_UINT
  200. typedef int int32_t;
  201. #endif
  202. /***** ASPRINTF() AND FRIENDS *****/
  203. /* Whether vsnprintf() is available */
  204. #undef HAVE_VSNPRINTF
  205. /* Whether snprintf() is available */
  206. #undef HAVE_SNPRINTF
  207. /* Whether aprintf() is available */
  208. #undef HAVE_ASPRINTF
  209. /* Whether vaprintf() is available */
  210. #undef HAVE_VASPRINTF
  211. /* Define if system has C99 compatible vsnprintf */
  212. #undef HAVE_C99_VSNPRINTF
  213. /* Whether va_copy() is available */
  214. #undef HAVE_VA_COPY
  215. /* Whether __va_copy() is available */
  216. #undef HAVE___VA_COPY
  217. /* Socket Size Type */
  218. #undef SOCKET_SIZE_TYPE
  219. /* Define to the type of elements in the array set by `getgroups'. Usually
  220. this is either `int' or `gid_t'. */
  221. #undef GETGROUPS_T
  222. /* Define as the return type of signal handlers (`int' or `void'). */
  223. #undef RETSIGTYPE
  224. /* Define to 1 if the system has the type `struct sockaddr_storage'. */
  225. #undef HAVE_STRUCT_SOCKADDR_STORAGE
  226. /* Use seteuid() or setresuid() depending on the platform */
  227. #undef SETEUID
  228. /* Set to 1 if we are on Solaris 10 */
  229. #undef SOLARIS_10
  230. /* Define to 1 if you have the <getopt.h> header file. */
  231. #undef HAVE_GETOPT_H
  232. #ifdef HAVE_GETOPT_H
  233. #include <getopt.h>
  234. #endif
  235. /* Define to 1 if you have the <strings.h> header file. */
  236. #undef HAVE_STRINGS_H
  237. #ifdef HAVE_STRINGS_H
  238. #include <strings.h>
  239. #endif
  240. /* Define to 1 if you have the <string.h> header file. */
  241. #undef HAVE_STRING_H
  242. #ifdef HAVE_STRING_H
  243. #include <string.h>
  244. #endif
  245. /* Define to 1 if you have the <unistd.h> header file. */
  246. #undef HAVE_UNISTD_H
  247. #ifdef HAVE_UNISTD_H
  248. #include <unistd.h>
  249. #endif
  250. /* Define to 1 if you have the <signal.h> header file. */
  251. #undef HAVE_SIGNAL_H
  252. #ifdef HAVE_SIGNAL_H
  253. #include <signal.h>
  254. #endif
  255. /* Define to 1 if you have the <syslog.h> header file. */
  256. #undef HAVE_SYSLOG_H
  257. #ifdef HAVE_SYSLOG_H
  258. #include <syslog.h>
  259. #endif
  260. /* Define to 1 if you have the <sys/stat.h> header file. */
  261. #undef HAVE_SYS_STAT_H
  262. #ifdef HAVE_SYS_STAT_H
  263. #include <sys/stat.h>
  264. #endif
  265. /* Define to 1 if you have the <fcntl.h> header file. */
  266. #undef HAVE_FCNTL_H
  267. #ifdef HAVE_FCNTL_H
  268. #include <fcntl.h>
  269. #endif
  270. /* Define to 1 if you have the <sys/types.h> header file. */
  271. #undef HAVE_SYS_TYPES_H
  272. #ifdef HAVE_SYS_TYPES_H
  273. #include <sys/types.h>
  274. #endif
  275. /* Define to 1 if you have the <sys/wait.h> header file. */
  276. #undef HAVE_SYS_WAIT_H
  277. #ifdef HAVE_SYS_WAIT_H
  278. #include <sys/wait.h>
  279. #endif
  280. #ifndef WEXITSTATUS
  281. # define WEXITSTATUS(stat_val) ((unsigned)(stat_val) >> 8)
  282. #endif
  283. #ifndef WIFEXITED
  284. # define WIFEXITED(stat_val) (((stat_val) & 255) == 0)
  285. #endif
  286. /* Define to 1 if you have the <errno.h> header file. */
  287. #undef HAVE_ERRNO_H
  288. #ifdef HAVE_ERRNO_H
  289. #include <errno.h>
  290. #endif
  291. /* Define to 1 if you have the <sys/time.h> header file. */
  292. #undef HAVE_SYS_TIME_H
  293. #if HAVE_SYS_TIME_H
  294. #include <sys/time.h>
  295. #endif
  296. #include <time.h>
  297. /* Define to 1 if you have the <sys/socket.h> header file. */
  298. #undef HAVE_SYS_SOCKET_H
  299. #ifdef HAVE_SYS_SOCKET_H
  300. #include <sys/socket.h>
  301. #endif
  302. /* Define to 1 if you have the <socket.h> header file. */
  303. #undef HAVE_SOCKET_H
  304. #ifdef HAVE_SOCKET_H
  305. #include <socket.h>
  306. #endif
  307. /* Define to 1 if you have the <tcpd.h> header file. */
  308. #undef HAVE_TCPD_H
  309. #ifdef HAVE_TCPD_H
  310. #include <tcpd.h>
  311. #endif
  312. /* Define to 1 if you have the <netinet/in.h> header file. */
  313. #undef HAVE_NETINET_IN_H
  314. #ifdef HAVE_NETINET_IN_H
  315. #include <netinet/in.h>
  316. #endif
  317. /* Define to 1 if you have the <arpa/inet.h> header file. */
  318. #undef HAVE_ARPA_INET_H
  319. #ifdef HAVE_ARPA_INET_H
  320. #include <arpa/inet.h>
  321. #endif
  322. /* Define to 1 if you have the <netdb.h> header file. */
  323. #undef HAVE_NETDB_H
  324. #ifdef HAVE_NETDB_H
  325. #include <netdb.h>
  326. #endif
  327. /* Define to 1 if you have the <ctype.h> header file. */
  328. #undef HAVE_CTYPE_H
  329. #ifdef HAVE_CTYPE_H
  330. #include <ctype.h>
  331. #endif
  332. /* Define to 1 if you have the <pwd.h> header file. */
  333. #undef HAVE_PWD_H
  334. #ifdef HAVE_PWD_H
  335. #include <pwd.h>
  336. #endif
  337. /* Define to 1 if you have the <grp.h> header file. */
  338. #undef HAVE_GRP_H
  339. #ifdef HAVE_GRP_H
  340. #include <grp.h>
  341. #endif
  342. /* Define to 1 if you have the <dirent.h> header file. */
  343. #undef HAVE_DIRENT_H
  344. #ifdef HAVE_DIRENT_H
  345. #include <dirent.h>
  346. #endif
  347. /* Have SSL support */
  348. #undef HAVE_SSL
  349. #undef OPENSSL_V3
  350. /* Have the krb5.h header file */
  351. #undef HAVE_KRB5_H
  352. #ifdef HAVE_KRB5_H
  353. #include <krb5.h>
  354. #endif
  355. /* Define to 1 if you have the <inttypes.h> header file. */
  356. #undef HAVE_INTTYPES_H
  357. /* Define to 1 if you have the <stdint.h> header file. */
  358. #undef HAVE_STDINT_H
  359. #ifdef HAVE_INTTYPES_H
  360. #include <inttypes.h>
  361. #else
  362. #ifdef HAVE_STDINT_H
  363. #include <stdint.h>
  364. #endif
  365. #endif
  366. /* Define to 1 if you have the <paths.h> header file. */
  367. #undef HAVE_PATHS_H
  368. /* Define to 1 if you have the <sys/resource.h> header file. */
  369. #undef HAVE_SYS_RESOURCE_H
  370. #endif