blob: cff9c3e6243100bb6c8af5ada8c0f90efa42c007 [file] [log] [blame]
Bertrand SIMONNETe6cd7382015-07-01 15:39:44 -07001#ifndef HEADER_CURL_CONFIG_OS400_H
2#define HEADER_CURL_CONFIG_OS400_H
3/***************************************************************************
4 * _ _ ____ _
5 * Project ___| | | | _ \| |
6 * / __| | | | |_) | |
7 * | (__| |_| | _ <| |___
8 * \___|\___/|_| \_\_____|
9 *
Elliott Hughes34dd5f42021-08-10 13:01:18 -070010 * Copyright (C) 1998 - 2021, Daniel Stenberg, <daniel@haxx.se>, et al.
Bertrand SIMONNETe6cd7382015-07-01 15:39:44 -070011 *
12 * This software is licensed as described in the file COPYING, which
13 * you should have received as part of this distribution. The terms
Elliott Hughes34dd5f42021-08-10 13:01:18 -070014 * are also available at https://curl.se/docs/copyright.html.
Bertrand SIMONNETe6cd7382015-07-01 15:39:44 -070015 *
16 * You may opt to use, copy, modify, merge, publish, distribute and/or sell
17 * copies of the Software, and permit persons to whom the Software is
18 * furnished to do so, under the terms of the COPYING file.
19 *
20 * This software is distributed on an "AS IS" basis, WITHOUT WARRANTY OF ANY
21 * KIND, either express or implied.
22 *
23 ***************************************************************************/
24
Lucas Eckels9bd90e62012-08-06 15:07:02 -070025/* ================================================================ */
Bertrand SIMONNETe6cd7382015-07-01 15:39:44 -070026/* Hand crafted config file for OS/400 */
Lucas Eckels9bd90e62012-08-06 15:07:02 -070027/* ================================================================ */
28
29#pragma enum(int)
30
31#undef PACKAGE
32
33/* Version number of this archive. */
34#undef VERSION
35
36/* Define if you have the getpass function. */
37#undef HAVE_GETPASS
38
39/* Define cpu-machine-OS */
40#define OS "OS/400"
41
Lucas Eckels9bd90e62012-08-06 15:07:02 -070042/* OS400 supports a 3-argument ASCII version of gethostbyaddr_r(), but its
43 * prototype is incompatible with the "standard" one (1st argument is not
44 * const). However, getaddrinfo() is supported (ASCII version defined as
45 * a local wrapper in setup-os400.h) in a threadsafe way: we can then
46 * configure getaddrinfo() as such and get rid of gethostbyname_r() without
47 * loss of threadsafeness. */
48#undef HAVE_GETHOSTBYNAME_R
49#undef HAVE_GETHOSTBYNAME_R_3
50#undef HAVE_GETHOSTBYNAME_R_5
51#undef HAVE_GETHOSTBYNAME_R_6
52#define HAVE_GETADDRINFO
53#define HAVE_GETADDRINFO_THREADSAFE
54
55/* Define if you need the _REENTRANT define for some functions */
56#undef NEED_REENTRANT
57
58/* Define if you have the Kerberos4 libraries (including -ldes) */
59#undef HAVE_KRB4
60
61/* Define if you want to enable IPv6 support */
62#define ENABLE_IPV6
63
64/* Define if struct sockaddr_in6 has the sin6_scope_id member */
65#define HAVE_SOCKADDR_IN6_SIN6_SCOPE_ID 1
66
67/* Define this to 'int' if ssize_t is not an available typedefed type */
68#undef ssize_t
69
70/* Define this as a suitable file to read random data from */
71#undef RANDOM_FILE
72
73/* Define this to your Entropy Gathering Daemon socket pathname */
74#undef EGD_SOCKET
75
76/* Define to 1 if you have the alarm function. */
77#define HAVE_ALARM 1
78
79/* Define if you have the <alloca.h> header file. */
80#undef HAVE_ALLOCA_H
81
82/* Define if you have the <arpa/inet.h> header file. */
83#define HAVE_ARPA_INET_H
84
85/* Define if you have the `closesocket' function. */
86#undef HAVE_CLOSESOCKET
87
Bertrand SIMONNETe6cd7382015-07-01 15:39:44 -070088/* Define if you have the <errno.h> header file. */
89#define HAVE_ERRNO_H
90
Lucas Eckels9bd90e62012-08-06 15:07:02 -070091/* Define if you have the <fcntl.h> header file. */
92#define HAVE_FCNTL_H
93
94/* Define if you have the `geteuid' function. */
95#define HAVE_GETEUID
96
Lucas Eckels9bd90e62012-08-06 15:07:02 -070097/* Define if you have the `gethostname' function. */
98#define HAVE_GETHOSTNAME
99
100/* Define if you have the <getopt.h> header file. */
101#undef HAVE_GETOPT_H
102
103/* Define if you have the `getpass_r' function. */
104#undef HAVE_GETPASS_R
105
Haibo Huang001784b2019-07-19 05:27:28 -0700106/* Define to 1 if you have the getpeername function. */
107#define HAVE_GETPEERNAME 1
108
Lucas Eckels9bd90e62012-08-06 15:07:02 -0700109/* Define if you have the `getpwuid' function. */
110#define HAVE_GETPWUID
111
112/* Define if you have the `getservbyname' function. */
113#define HAVE_GETSERVBYNAME
114
Haibo Huang001784b2019-07-19 05:27:28 -0700115/* Define to 1 if you have the getsockname function. */
116#define HAVE_GETSOCKNAME 1
117
Lucas Eckels9bd90e62012-08-06 15:07:02 -0700118/* Define if you have the `gettimeofday' function. */
119#define HAVE_GETTIMEOFDAY
120
121/* Define if you have the `timeval' struct. */
122#define HAVE_STRUCT_TIMEVAL
123
124/* Define if you have the `inet_addr' function. */
125#define HAVE_INET_ADDR
126
127/* Define if you have the <inttypes.h> header file. */
128#define HAVE_INTTYPES_H
129
130/* Define if you have the <io.h> header file. */
131#undef HAVE_IO_H
132
133/* Define if you have the `krb_get_our_ip_for_realm' function. */
134#undef HAVE_KRB_GET_OUR_IP_FOR_REALM
135
136/* Define if you have the <krb.h> header file. */
137#undef HAVE_KRB_H
138
Lucas Eckels9bd90e62012-08-06 15:07:02 -0700139/* Define if you have the `nsl' library (-lnsl). */
140#undef HAVE_LIBNSL
141
142/* Define if you have the `resolv' library (-lresolv). */
143#undef HAVE_LIBRESOLV
144
145/* Define if you have the `resolve' library (-lresolve). */
146#undef HAVE_LIBRESOLVE
147
148/* Define if you have the `socket' library (-lsocket). */
149#undef HAVE_LIBSOCKET
150
Lucas Eckels9bd90e62012-08-06 15:07:02 -0700151/* Define if you have GSS API. */
152#define HAVE_GSSAPI
153
Bertrand SIMONNETe6cd7382015-07-01 15:39:44 -0700154/* Define if you have the GNU gssapi libraries */
155#undef HAVE_GSSGNU
156
157/* Define if you have the Heimdal gssapi libraries */
158#define HAVE_GSSHEIMDAL
159
160/* Define if you have the MIT gssapi libraries */
161#undef HAVE_GSSMIT
162
Lucas Eckels9bd90e62012-08-06 15:07:02 -0700163/* Define if you have the `ucb' library (-lucb). */
164#undef HAVE_LIBUCB
165
166/* Define if you have the `localtime_r' function. */
167#define HAVE_LOCALTIME_R
168
169/* Define if you have the <malloc.h> header file. */
170#define HAVE_MALLOC_H
171
172/* Define if you need the malloc.h header file even with stdlib.h */
173/* #define NEED_MALLOC_H 1 */
174
175/* Define if you have the <memory.h> header file. */
176#undef HAVE_MEMORY_H
177
178/* Define if you have the <netdb.h> header file. */
179#define HAVE_NETDB_H
180
181/* Define if you have the <netinet/if_ether.h> header file. */
182#undef HAVE_NETINET_IF_ETHER_H
183
184/* Define if you have the <netinet/in.h> header file. */
185#define HAVE_NETINET_IN_H
186
187/* Define if you have the <net/if.h> header file. */
188#define HAVE_NET_IF_H
189
190/* Define if you have the <openssl/crypto.h> header file. */
191#undef HAVE_OPENSSL_CRYPTO_H
192
193/* Define if you have the <openssl/err.h> header file. */
194#undef HAVE_OPENSSL_ERR_H
195
196/* Define if you have the <openssl/pem.h> header file. */
197#undef HAVE_OPENSSL_PEM_H
198
199/* Define if you have the <openssl/rsa.h> header file. */
200#undef HAVE_OPENSSL_RSA_H
201
202/* Define if you have the <openssl/ssl.h> header file. */
203#undef HAVE_OPENSSL_SSL_H
204
205/* Define if you have the <openssl/x509.h> header file. */
206#undef HAVE_OPENSSL_X509_H
207
208/* Define if you have the <pem.h> header file. */
209#undef HAVE_PEM_H
210
Lucas Eckels9bd90e62012-08-06 15:07:02 -0700211/* Define if you have the <pwd.h> header file. */
212#define HAVE_PWD_H
213
214/* Define if you have the `RAND_egd' function. */
215#undef HAVE_RAND_EGD
216
217/* Define if you have the `RAND_screen' function. */
218#undef HAVE_RAND_SCREEN
219
220/* Define if you have the `RAND_status' function. */
221#undef HAVE_RAND_STATUS
222
Lucas Eckels9bd90e62012-08-06 15:07:02 -0700223/* Define if you have the `select' function. */
224#define HAVE_SELECT
225
226/* Define if you have the `setvbuf' function. */
227#define HAVE_SETVBUF
228
Lucas Eckels9bd90e62012-08-06 15:07:02 -0700229/* Define if you have the `sigaction' function. */
230#define HAVE_SIGACTION
231
232/* Define if you have the `signal' function. */
233#undef HAVE_SIGNAL
234
235/* Define if you have the <signal.h> header file. */
236#define HAVE_SIGNAL_H
237
238/* Define if sig_atomic_t is an available typedef. */
239#define HAVE_SIG_ATOMIC_T
240
241/* Define if sig_atomic_t is already defined as volatile. */
242#undef HAVE_SIG_ATOMIC_T_VOLATILE
243
244/* Define if you have the `socket' function. */
245#define HAVE_SOCKET
246
247/* Define if you have the <ssl.h> header file. */
248#undef HAVE_SSL_H
249
250/* Define if you have the <stdint.h> header file. */
251#undef HAVE_STDINT_H
252
253/* Define if you have the <stdlib.h> header file. */
254#define HAVE_STDLIB_H
255
Bertrand SIMONNETe6cd7382015-07-01 15:39:44 -0700256
257/* The following define is needed on OS400 to enable strcmpi(), stricmp() and
258 strdup(). */
259#define __cplusplus__strings__
260
Lucas Eckels9bd90e62012-08-06 15:07:02 -0700261/* Define if you have the `strcasecmp' function. */
262#undef HAVE_STRCASECMP
263
264/* Define if you have the `strcmpi' function. */
Bertrand SIMONNETe6cd7382015-07-01 15:39:44 -0700265#define HAVE_STRCMPI
266
267/* Define if you have the `stricmp' function. */
268#define HAVE_STRICMP
Lucas Eckels9bd90e62012-08-06 15:07:02 -0700269
270/* Define if you have the `strdup' function. */
Bertrand SIMONNETe6cd7382015-07-01 15:39:44 -0700271#define HAVE_STRDUP
272
Lucas Eckels9bd90e62012-08-06 15:07:02 -0700273
274/* Define if you have the `strftime' function. */
275#define HAVE_STRFTIME
276
Lucas Eckels9bd90e62012-08-06 15:07:02 -0700277/* Define if you have the <strings.h> header file. */
278#define HAVE_STRINGS_H
279
280/* Define if you have the <string.h> header file. */
281#define HAVE_STRING_H
282
Lucas Eckels9bd90e62012-08-06 15:07:02 -0700283/* Define if you have the <stropts.h> header file. */
284#undef HAVE_STROPTS_H
285
286/* Define if you have the `strstr' function. */
287#define HAVE_STRSTR
288
289/* Define if you have the `strtok_r' function. */
290#define HAVE_STRTOK_R
291
292/* Define if you have the `strtoll' function. */
293#undef HAVE_STRTOLL /* Allows ASCII compile on V5R1. */
294
295/* Define if you have the <sys/param.h> header file. */
296#define HAVE_SYS_PARAM_H
297
298/* Define if you have the <sys/select.h> header file. */
299#undef HAVE_SYS_SELECT_H
300
301/* Define if you have the <sys/socket.h> header file. */
302#define HAVE_SYS_SOCKET_H
303
304/* Define if you have the <sys/sockio.h> header file. */
305#undef HAVE_SYS_SOCKIO_H
306
307/* Define if you have the <sys/stat.h> header file. */
308#define HAVE_SYS_STAT_H
309
310/* Define if you have the <sys/time.h> header file. */
311#define HAVE_SYS_TIME_H
312
313/* Define if you have the <sys/types.h> header file. */
314#define HAVE_SYS_TYPES_H
315
316/* Define if you have the <sys/un.h> header file. */
317#define HAVE_SYS_UN_H
318
319/* Define if you have the <sys/ioctl.h> header file. */
320#define HAVE_SYS_IOCTL_H
321
Lucas Eckels9bd90e62012-08-06 15:07:02 -0700322/* Define if you have the <termios.h> header file. */
323#undef HAVE_TERMIOS_H
324
325/* Define if you have the <termio.h> header file. */
326#undef HAVE_TERMIO_H
327
328/* Define if you have the <time.h> header file. */
329#define HAVE_TIME_H
330
331/* Define if you have the `uname' function. */
332#undef HAVE_UNAME
333
334/* Define if you have the <unistd.h> header file. */
335#define HAVE_UNISTD_H
336
337/* Define if you have the <winsock.h> header file. */
338#undef HAVE_WINSOCK_H
339
340/* Define if you have the <x509.h> header file. */
341#undef HAVE_X509_H
342
343/* Name of package */
344#undef PACKAGE
345
Lucas Eckels9bd90e62012-08-06 15:07:02 -0700346/* The size of `int', as computed by sizeof. */
347#define SIZEOF_INT 4
348
349/* The size of a `long double', as computed by sizeof. */
350#define SIZEOF_LONG_DOUBLE 8
351
352/* Define if the compiler supports the 'long long' data type. */
353#define HAVE_LONGLONG
354
355/* The size of a `long long', as computed by sizeof. */
356#define SIZEOF_LONG_LONG 8
357
358/* The size of `short', as computed by sizeof. */
359#define SIZEOF_SHORT 2
360
Alex Deymo486467e2017-12-19 19:04:07 +0100361/* The size of `long', as computed by sizeof. */
362#define SIZEOF_LONG 4
363
Bertrand SIMONNETe6cd7382015-07-01 15:39:44 -0700364/* The size of `size_t', as computed by sizeof. */
Alex Deymo486467e2017-12-19 19:04:07 +0100365#define SIZEOF_SIZE_T 4
366
367/* The size of `curl_off_t', as computed by sizeof. */
368#define SIZEOF_CURL_OFF_T 8
Bertrand SIMONNETe6cd7382015-07-01 15:39:44 -0700369
Lucas Eckels9bd90e62012-08-06 15:07:02 -0700370/* Whether long long constants must be suffixed by LL. */
371
372#define HAVE_LL
373
374/* Define this if you have struct sockaddr_storage */
375#define HAVE_STRUCT_SOCKADDR_STORAGE
376
377/* Define if you have the ANSI C header files. */
378#define STDC_HEADERS
379
380/* Define if you can safely include both <sys/time.h> and <time.h>. */
381#define TIME_WITH_SYS_TIME
382
Haibo Huang445085a2019-09-11 13:33:50 -0700383/* Define to enable HTTP3 support (experimental, requires NGTCP2 or QUICHE) */
384#undef ENABLE_QUIC
385
Lucas Eckels9bd90e62012-08-06 15:07:02 -0700386/* Version number of package */
387#undef VERSION
388
389/* Number of bits in a file offset, on hosts where this is settable. */
390#undef _FILE_OFFSET_BITS
391
392/* Define for large files, on AIX-style hosts. */
393#define _LARGE_FILES
394
395/* Define to empty if `const' does not conform to ANSI C. */
396#undef const
397
398/* type to use in place of in_addr_t if not defined */
399#define in_addr_t unsigned long
400
401/* Define to `unsigned' if <sys/types.h> does not define. */
402#undef size_t
403
404/* Define if you have the ioctl function. */
405#define HAVE_IOCTL
406
407/* Define if you have a working ioctl FIONBIO function. */
408#define HAVE_IOCTL_FIONBIO
409
410/* Define if you have a working ioctl SIOCGIFADDR function. */
411#define HAVE_IOCTL_SIOCGIFADDR
412
413/* To disable LDAP */
414#undef CURL_DISABLE_LDAP
415
Bertrand SIMONNETe6cd7382015-07-01 15:39:44 -0700416/* Definition to make a library symbol externally visible. */
Lucas Eckels9bd90e62012-08-06 15:07:02 -0700417#define CURL_EXTERN_SYMBOL
418
419/* Define if you have the ldap_url_parse procedure. */
420/* #define HAVE_LDAP_URL_PARSE */ /* Disabled because of an IBM bug. */
421
Lucas Eckels9bd90e62012-08-06 15:07:02 -0700422/* Define if you have the recv function. */
423#define HAVE_RECV
424
425/* Define to the type of arg 1 for recv. */
426#define RECV_TYPE_ARG1 int
427
428/* Define to the type of arg 2 for recv. */
429#define RECV_TYPE_ARG2 char *
430
431/* Define to the type of arg 3 for recv. */
432#define RECV_TYPE_ARG3 int
433
434/* Define to the type of arg 4 for recv. */
435#define RECV_TYPE_ARG4 int
436
437/* Define to the function return type for recv. */
438#define RECV_TYPE_RETV int
439
440/* Define if you have the recvfrom function. */
441#define HAVE_RECVFROM
442
443/* Define to the type of arg 1 for recvfrom. */
444#define RECVFROM_TYPE_ARG1 int
445
446/* Define to the type pointed by arg 2 for recvfrom. */
447#define RECVFROM_TYPE_ARG2 char
448
449/* Define to the type of arg 3 for recvfrom. */
450#define RECVFROM_TYPE_ARG3 int
451
452/* Define to the type of arg 4 for recvfrom. */
453#define RECVFROM_TYPE_ARG4 int
454
455/* Define to the type pointed by arg 5 for recvfrom. */
456#define RECVFROM_TYPE_ARG5 struct sockaddr
457
458/* Define to the type pointed by arg 6 for recvfrom. */
459#define RECVFROM_TYPE_ARG6 int
460
461/* Define to the function return type for recvfrom. */
462#define RECVFROM_TYPE_RETV int
463
464/* Define if you have the send function. */
465#define HAVE_SEND
466
467/* Define to the type of arg 1 for send. */
468#define SEND_TYPE_ARG1 int
469
470/* Define to the type qualifier of arg 2 for send. */
471#define SEND_QUAL_ARG2
472
473/* Define to the type of arg 2 for send. */
474#define SEND_TYPE_ARG2 char *
475
476/* Define to the type of arg 3 for send. */
477#define SEND_TYPE_ARG3 int
478
479/* Define to the type of arg 4 for send. */
480#define SEND_TYPE_ARG4 int
481
482/* Define to the function return type for send. */
483#define SEND_TYPE_RETV int
484
Bertrand SIMONNETe6cd7382015-07-01 15:39:44 -0700485/* Define to use the GSKit package. */
486#define USE_GSKIT
487
488/* Define to use the OS/400 crypto library. */
489#define USE_OS400CRYPTO
490
491/* Define to use Unix sockets. */
492#define USE_UNIX_SOCKETS
Lucas Eckels9bd90e62012-08-06 15:07:02 -0700493
494/* Use the system keyring as the default CA bundle. */
495#define CURL_CA_BUNDLE "/QIBM/UserData/ICSS/Cert/Server/DEFAULT.KDB"
496
497/* ---------------------------------------------------------------- */
498/* ADDITIONAL DEFINITIONS */
499/* ---------------------------------------------------------------- */
500
501/* The following must be defined BEFORE system header files inclusion. */
502
503#define __ptr128 /* No teraspace. */
504#define qadrt_use_fputc_inline /* Generate fputc() wrapper inline. */
505#define qadrt_use_fread_inline /* Generate fread() wrapper inline. */
506#define qadrt_use_fwrite_inline /* Generate fwrite() wrapper inline. */
507
Bertrand SIMONNETe6cd7382015-07-01 15:39:44 -0700508#endif /* HEADER_CURL_CONFIG_OS400_H */