This is a live mirror of the Perl 5 development currently hosted at https://github.com/perl/perl5
Integrate Memoize 0.64. Few tweaks were required in
[perl5.git] / config_h.SH
CommitLineData
12ae5dfc
JH
1case "$CONFIG_SH" in
2'') CONFIG_SH=config.sh ;;
3esac
4case "$CONFIG_H" in
5'') CONFIG_H=config.h ;;
6esac
a02608de 7case $PERL_CONFIG_SH in
8d063cd8 8'')
12ae5dfc
JH
9 if test -f $CONFIG_SH; then TOP=.;
10 elif test -f ../$CONFIG_SH; then TOP=..;
11 elif test -f ../../$CONFIG_SH; then TOP=../..;
12 elif test -f ../../../$CONFIG_SH; then TOP=../../..;
13 elif test -f ../../../../$CONFIG_SH; then TOP=../../../..;
2304df62 14 else
12ae5dfc 15 echo "Can't find $CONFIG_SH."; exit 1
2304df62 16 fi
12ae5dfc 17 . $TOP/$CONFIG_SH
2304df62
AD
18 ;;
19esac
20case "$0" in
21*/*) cd `expr X$0 : 'X\(.*\)/'` ;;
8d063cd8 22esac
12ae5dfc
JH
23echo "Extracting $CONFIG_H (with variable substitutions)"
24sed <<!GROK!THIS! >$CONFIG_H -e 's!^#undef\(.*/\)\*!/\*#define\1 \*!' -e 's!^#un-def!#undef!'
2304df62
AD
25/*
26 * This file was produced by running the config_h.SH script, which
12ae5dfc 27 * gets its values from $CONFIG_SH, which is generally produced by
8d063cd8
LW
28 * running Configure.
29 *
30 * Feel free to modify any of this as the need arises. Note, however,
1aef975c 31 * that running config_h.SH again will wipe out any changes you've made.
12ae5dfc 32 * For a more permanent change edit $CONFIG_SH and rerun config_h.SH.
2304df62 33 *
dfe9444c 34 * \$Id: Config_h.U,v 3.0.1.5 1997/02/28 14:57:43 ram Exp $
8d063cd8
LW
35 */
36
dfe9444c
AD
37/*
38 * Package name : $package
39 * Source directory : $src
40 * Configuration time: $cf_time
41 * Configured by : $cf_by
42 * Target system : $myuname
2304df62 43 */
8d063cd8 44
2304df62
AD
45#ifndef _config_h_
46#define _config_h_
47
dfe9444c
AD
48/* LOC_SED:
49 * This symbol holds the complete pathname to the sed program.
774d564b 50 */
dfe9444c 51#define LOC_SED "$full_sed" /**/
774d564b 52
a0d0e21e
LW
53/* HAS_ALARM:
54 * This symbol, if defined, indicates that the alarm routine is
55 * available.
56 */
57#$d_alarm HAS_ALARM /**/
58
b4eb6b3d
JH
59/* HASATTRIBUTE:
60 * This symbol indicates the C compiler can check for function attributes,
61 * such as printf formats. This is normally only supported by GNU cc.
62 */
63#$d_attribut HASATTRIBUTE /**/
64#ifndef HASATTRIBUTE
65#define __attribute__(_arg_)
66#endif
67
2304df62
AD
68/* HAS_BCMP:
69 * This symbol is defined if the bcmp() routine is available to
70 * compare blocks of memory.
a687059c 71 */
2304df62 72#$d_bcmp HAS_BCMP /**/
a687059c 73
2304df62
AD
74/* HAS_BCOPY:
75 * This symbol is defined if the bcopy() routine is available to
76 * copy blocks of memory.
c51b80d1 77 */
2304df62 78#$d_bcopy HAS_BCOPY /**/
c51b80d1 79
2304df62
AD
80/* HAS_BZERO:
81 * This symbol is defined if the bzero() routine is available to
82 * set a memory block to 0.
0d3e774c 83 */
2304df62 84#$d_bzero HAS_BZERO /**/
0d3e774c 85
a0d0e21e
LW
86/* HAS_CHOWN:
87 * This symbol, if defined, indicates that the chown routine is
88 * available.
89 */
90#$d_chown HAS_CHOWN /**/
91
92/* HAS_CHROOT:
93 * This symbol, if defined, indicates that the chroot routine is
94 * available.
95 */
96#$d_chroot HAS_CHROOT /**/
97
2304df62 98/* HAS_CHSIZE:
87250799
LW
99 * This symbol, if defined, indicates that the chsize routine is available
100 * to truncate files. You might need a -lx to get this routine.
101 */
fe14fcc3 102#$d_chsize HAS_CHSIZE /**/
87250799 103
b4eb6b3d
JH
104/* HASCONST:
105 * This symbol, if defined, indicates that this C compiler knows about
106 * the const type. There is no need to actually test for that symbol
107 * within your programs. The mere use of the "const" keyword will
108 * trigger the necessary tests.
109 */
110#$d_const HASCONST /**/
111#ifndef HASCONST
112#define const
113#endif
114
2304df62 115/* HAS_CRYPT:
2e1b3b7e
KK
116 * This symbol, if defined, indicates that the crypt routine is available
117 * to encrypt passwords and the like.
118 */
2304df62 119#$d_crypt HAS_CRYPT /**/
2e1b3b7e 120
a0d0e21e
LW
121/* HAS_CUSERID:
122 * This symbol, if defined, indicates that the cuserid routine is
123 * available to get character login names.
13281fa4 124 */
a0d0e21e
LW
125#$d_cuserid HAS_CUSERID /**/
126
127/* HAS_DBL_DIG:
128 * This symbol, if defined, indicates that this system's <float.h>
129 * or <limits.h> defines the symbol DBL_DIG, which is the number
130 * of significant digits in a double precision number. If this
131 * symbol is not defined, a guess of 15 is usually pretty good.
132 */
133#$d_dbl_dig HAS_DBL_DIG /* */
134
135/* HAS_DIFFTIME:
136 * This symbol, if defined, indicates that the difftime routine is
137 * available.
138 */
139#$d_difftime HAS_DIFFTIME /**/
13281fa4 140
ecfc5424
AD
141/* HAS_DLERROR:
142 * This symbol, if defined, indicates that the dlerror routine is
143 * available to return a string describing the last error that
144 * occurred from a call to dlopen(), dlclose() or dlsym().
145 */
146#$d_dlerror HAS_DLERROR /**/
147
2304df62
AD
148/* HAS_DUP2:
149 * This symbol, if defined, indicates that the dup2 routine is
150 * available to duplicate file descriptors.
a687059c 151 */
2304df62 152#$d_dup2 HAS_DUP2 /**/
a687059c 153
2304df62 154/* HAS_FCHMOD:
378cc40b
LW
155 * This symbol, if defined, indicates that the fchmod routine is available
156 * to change mode of opened files. If unavailable, use chmod().
157 */
2304df62 158#$d_fchmod HAS_FCHMOD /**/
378cc40b 159
2304df62 160/* HAS_FCHOWN:
378cc40b
LW
161 * This symbol, if defined, indicates that the fchown routine is available
162 * to change ownership of opened files. If unavailable, use chown().
163 */
2304df62 164#$d_fchown HAS_FCHOWN /**/
378cc40b 165
2304df62 166/* HAS_FCNTL:
fe14fcc3
LW
167 * This symbol, if defined, indicates to the C program that
168 * the fcntl() function exists.
a687059c 169 */
2304df62 170#$d_fcntl HAS_FCNTL /**/
a687059c 171
a0d0e21e
LW
172/* HAS_FGETPOS:
173 * This symbol, if defined, indicates that the fgetpos routine is
174 * available to get the file position indicator, similar to ftell().
175 */
176#$d_fgetpos HAS_FGETPOS /**/
177
2304df62
AD
178/* HAS_FLOCK:
179 * This symbol, if defined, indicates that the flock routine is
a687059c
LW
180 * available to do file locking.
181 */
2304df62 182#$d_flock HAS_FLOCK /**/
a687059c 183
a0d0e21e
LW
184/* HAS_FORK:
185 * This symbol, if defined, indicates that the fork routine is
186 * available.
187 */
188#$d_fork HAS_FORK /**/
189
190/* HAS_FSETPOS:
191 * This symbol, if defined, indicates that the fsetpos routine is
192 * available to set the file position indicator, similar to fseek().
193 */
194#$d_fsetpos HAS_FSETPOS /**/
195
5f05dabc 196/* HAS_GETTIMEOFDAY:
197 * This symbol, if defined, indicates that the gettimeofday() system
198 * call is available for a sub-second accuracy clock. Usually, the file
199 * <sys/resource.h> needs to be included (see I_SYS_RESOURCE).
200 * The type "Timeval" should be used to refer to "struct timeval".
201 */
202#$d_gettimeod HAS_GETTIMEOFDAY /**/
b4eb6b3d
JH
203#ifdef HAS_GETTIMEOFDAY
204#define Timeval struct timeval /* Structure used by gettimeofday() */
205#endif
5f05dabc 206
2304df62 207/* HAS_GETGROUPS:
378cc40b
LW
208 * This symbol, if defined, indicates that the getgroups() routine is
209 * available to get the list of process groups. If unavailable, multiple
210 * groups are probably not supported.
211 */
2304df62 212#$d_getgrps HAS_GETGROUPS /**/
378cc40b 213
a0d0e21e
LW
214/* HAS_GETLOGIN:
215 * This symbol, if defined, indicates that the getlogin routine is
216 * available to get the login name.
217 */
218#$d_getlogin HAS_GETLOGIN /**/
219
dfe9444c
AD
220/* HAS_GETPGID:
221 * This symbol, if defined, indicates to the C program that
222 * the getpgid(pid) function is available to get the
223 * process group id.
224 */
225#$d_getpgid HAS_GETPGID /**/
226
2304df62 227/* HAS_GETPGRP2:
d8f2e4cc
LW
228 * This symbol, if defined, indicates that the getpgrp2() (as in DG/UX)
229 * routine is available to get the current process group.
230 */
2304df62 231#$d_getpgrp2 HAS_GETPGRP2 /**/
d8f2e4cc 232
a0d0e21e
LW
233/* HAS_GETPPID:
234 * This symbol, if defined, indicates that the getppid routine is
235 * available to get the parent process ID.
236 */
237#$d_getppid HAS_GETPPID /**/
238
2304df62
AD
239/* HAS_GETPRIORITY:
240 * This symbol, if defined, indicates that the getpriority routine is
a687059c
LW
241 * available to get a process's priority.
242 */
2304df62 243#$d_getprior HAS_GETPRIORITY /**/
a687059c 244
dfe9444c
AD
245/* HAS_INET_ATON:
246 * This symbol, if defined, indicates to the C program that the
247 * inet_aton() function is available to parse IP address "dotted-quad"
248 * strings.
ecfc5424 249 */
dfe9444c 250#$d_inetaton HAS_INET_ATON /**/
ecfc5424 251
2304df62 252/* HAS_KILLPG:
378cc40b
LW
253 * This symbol, if defined, indicates that the killpg routine is available
254 * to kill process groups. If unavailable, you probably should use kill
255 * with a negative process number.
256 */
2304df62 257#$d_killpg HAS_KILLPG /**/
378cc40b 258
2304df62
AD
259/* HAS_LINK:
260 * This symbol, if defined, indicates that the link routine is
261 * available to create hard links.
0d3e774c 262 */
2304df62 263#$d_link HAS_LINK /**/
0d3e774c 264
ecfc5424
AD
265/* HAS_LOCALECONV:
266 * This symbol, if defined, indicates that the localeconv routine is
267 * available for numeric and monetary formatting conventions.
268 */
269#$d_locconv HAS_LOCALECONV /**/
270
a0d0e21e
LW
271/* HAS_LOCKF:
272 * This symbol, if defined, indicates that the lockf routine is
273 * available to do file locking.
274 */
275#$d_lockf HAS_LOCKF /**/
276
2304df62
AD
277/* HAS_LSTAT:
278 * This symbol, if defined, indicates that the lstat routine is
279 * available to do file stats on symbolic links.
a687059c 280 */
2304df62 281#$d_lstat HAS_LSTAT /**/
a687059c 282
a0d0e21e
LW
283/* HAS_MBLEN:
284 * This symbol, if defined, indicates that the mblen routine is available
285 * to find the number of bytes in a multibye character.
286 */
287#$d_mblen HAS_MBLEN /**/
288
289/* HAS_MBSTOWCS:
290 * This symbol, if defined, indicates that the mbstowcs routine is
291 * available to covert a multibyte string into a wide character string.
292 */
293#$d_mbstowcs HAS_MBSTOWCS /**/
294
295/* HAS_MBTOWC:
296 * This symbol, if defined, indicates that the mbtowc routine is available
297 * to covert a multibyte to a wide character.
298 */
299#$d_mbtowc HAS_MBTOWC /**/
300
2304df62
AD
301/* HAS_MEMCMP:
302 * This symbol, if defined, indicates that the memcmp routine is available
303 * to compare blocks of memory.
378cc40b 304 */
2304df62
AD
305#$d_memcmp HAS_MEMCMP /**/
306
307/* HAS_MEMCPY:
9f971974 308 * This symbol, if defined, indicates that the memcpy routine is available
2304df62 309 * to copy blocks of memory.
9f971974 310 */
2304df62 311#$d_memcpy HAS_MEMCPY /**/
9f971974 312
2304df62 313/* HAS_MEMMOVE:
9f971974 314 * This symbol, if defined, indicates that the memmove routine is available
2304df62
AD
315 * to copy potentially overlapping blocks of memory. This should be used
316 * only when HAS_SAFE_BCOPY is not defined. If neither is there, roll your
317 * own version.
9f971974 318 */
2304df62 319#$d_memmove HAS_MEMMOVE /**/
9f971974 320
2304df62 321/* HAS_MEMSET:
9f971974 322 * This symbol, if defined, indicates that the memset routine is available
2304df62 323 * to set blocks of memory.
9f971974 324 */
2304df62 325#$d_memset HAS_MEMSET /**/
378cc40b 326
2304df62 327/* HAS_MKDIR:
a687059c
LW
328 * This symbol, if defined, indicates that the mkdir routine is available
329 * to create directories. Otherwise you should fork off a new process to
330 * exec /bin/mkdir.
331 */
2304df62 332#$d_mkdir HAS_MKDIR /**/
fe14fcc3 333
ecfc5424
AD
334/* HAS_MKFIFO:
335 * This symbol, if defined, indicates that the mkfifo routine is
336 * available to create FIFOs. Otherwise, mknod should be able to
337 * do it for you. However, if mkfifo is there, mknod might require
338 * super-user privileges which mkfifo will not.
339 */
340#$d_mkfifo HAS_MKFIFO /**/
341
a0d0e21e
LW
342/* HAS_MKTIME:
343 * This symbol, if defined, indicates that the mktime routine is
344 * available.
345 */
346#$d_mktime HAS_MKTIME /**/
347
fe749a9f
JH
348/* HAS_MSYNC:
349 * This symbol, if defined, indicates that the msync system call is
350 * available to synchronize a mapped file.
351 */
352#$d_msync HAS_MSYNC /**/
353
354/* HAS_MUNMAP:
355 * This symbol, if defined, indicates that the munmap system call is
356 * available to unmap a region, usually mapped by mmap().
357 */
358#$d_munmap HAS_MUNMAP /**/
359
a0d0e21e
LW
360/* HAS_NICE:
361 * This symbol, if defined, indicates that the nice routine is
362 * available.
fe14fcc3 363 */
a0d0e21e 364#$d_nice HAS_NICE /**/
a687059c 365
ecfc5424
AD
366/* HAS_PATHCONF:
367 * This symbol, if defined, indicates that pathconf() is available
368 * to determine file-system related limits and options associated
369 * with a given filename.
370 */
371/* HAS_FPATHCONF:
372 * This symbol, if defined, indicates that pathconf() is available
373 * to determine file-system related limits and options associated
374 * with a given open file descriptor.
375 */
376#$d_pathconf HAS_PATHCONF /**/
377#$d_fpathconf HAS_FPATHCONF /**/
378
a0d0e21e
LW
379/* HAS_PAUSE:
380 * This symbol, if defined, indicates that the pause routine is
381 * available to suspend a process until a signal is received.
a687059c 382 */
a0d0e21e 383#$d_pause HAS_PAUSE /**/
a687059c 384
a0d0e21e
LW
385/* HAS_PIPE:
386 * This symbol, if defined, indicates that the pipe routine is
387 * available to create an inter-process channel.
fe14fcc3 388 */
a0d0e21e
LW
389#$d_pipe HAS_PIPE /**/
390
8e07c86e
AD
391/* HAS_POLL:
392 * This symbol, if defined, indicates that the poll routine is
dfe9444c
AD
393 * available to poll active file descriptors. You may safely
394 * include <poll.h> when this symbol is defined.
8e07c86e
AD
395 */
396#$d_poll HAS_POLL /**/
397
a0d0e21e
LW
398/* HAS_READDIR:
399 * This symbol, if defined, indicates that the readdir routine is
400 * available to read directory entries. You may have to include
401 * <dirent.h>. See I_DIRENT.
402 */
403#$d_readdir HAS_READDIR /**/
404
405/* HAS_SEEKDIR:
406 * This symbol, if defined, indicates that the seekdir routine is
407 * available. You may have to include <dirent.h>. See I_DIRENT.
408 */
409#$d_seekdir HAS_SEEKDIR /**/
410
411/* HAS_TELLDIR:
412 * This symbol, if defined, indicates that the telldir routine is
413 * available. You may have to include <dirent.h>. See I_DIRENT.
414 */
415#$d_telldir HAS_TELLDIR /**/
416
417/* HAS_REWINDDIR:
418 * This symbol, if defined, indicates that the rewinddir routine is
419 * available. You may have to include <dirent.h>. See I_DIRENT.
420 */
421#$d_rewinddir HAS_REWINDDIR /**/
422
423/* HAS_READLINK:
424 * This symbol, if defined, indicates that the readlink routine is
425 * available to read the value of a symbolic link.
426 */
427#$d_readlink HAS_READLINK /**/
fe14fcc3 428
2304df62 429/* HAS_RENAME:
378cc40b
LW
430 * This symbol, if defined, indicates that the rename routine is available
431 * to rename files. Otherwise you should do the unlink(), link(), unlink()
432 * trick.
433 */
2304df62 434#$d_rename HAS_RENAME /**/
378cc40b 435
2304df62
AD
436/* HAS_RMDIR:
437 * This symbol, if defined, indicates that the rmdir routine is
438 * available to remove directories. Otherwise you should fork off a
439 * new process to exec /bin/rmdir.
9f971974 440 */
2304df62 441#$d_rmdir HAS_RMDIR /**/
9f971974 442
2304df62
AD
443/* HAS_SELECT:
444 * This symbol, if defined, indicates that the select routine is
445 * available to select active file descriptors. If the timeout field
446 * is used, <sys/time.h> may need to be included.
fe14fcc3 447 */
2304df62 448#$d_select HAS_SELECT /**/
a687059c 449
2304df62 450/* HAS_SETEGID:
378cc40b
LW
451 * This symbol, if defined, indicates that the setegid routine is available
452 * to change the effective gid of the current program.
453 */
2304df62 454#$d_setegid HAS_SETEGID /**/
378cc40b 455
2304df62 456/* HAS_SETEUID:
378cc40b
LW
457 * This symbol, if defined, indicates that the seteuid routine is available
458 * to change the effective uid of the current program.
459 */
2304df62
AD
460#$d_seteuid HAS_SETEUID /**/
461
a0d0e21e
LW
462/* HAS_SETLINEBUF:
463 * This symbol, if defined, indicates that the setlinebuf routine is
464 * available to change stderr or stdout from block-buffered or unbuffered
465 * to a line-buffered mode.
466 */
467#$d_setlinebuf HAS_SETLINEBUF /**/
468
469/* HAS_SETLOCALE:
470 * This symbol, if defined, indicates that the setlocale routine is
471 * available to handle locale-specific ctype implementations.
472 */
473#$d_setlocale HAS_SETLOCALE /**/
474
dfe9444c
AD
475/* HAS_SETPGID:
476 * This symbol, if defined, indicates that the setpgid(pid, gpid)
477 * routine is available to set process group ID.
478 */
479#$d_setpgid HAS_SETPGID /**/
480
2304df62 481/* HAS_SETPGRP2:
d8f2e4cc
LW
482 * This symbol, if defined, indicates that the setpgrp2() (as in DG/UX)
483 * routine is available to set the current process group.
484 */
2304df62 485#$d_setpgrp2 HAS_SETPGRP2 /**/
d8f2e4cc 486
2304df62
AD
487/* HAS_SETPRIORITY:
488 * This symbol, if defined, indicates that the setpriority routine is
a687059c
LW
489 * available to set a process's priority.
490 */
2304df62 491#$d_setprior HAS_SETPRIORITY /**/
a687059c 492
2304df62 493/* HAS_SETREGID:
a687059c 494 * This symbol, if defined, indicates that the setregid routine is
2304df62
AD
495 * available to change the real and effective gid of the current
496 * process.
a687059c 497 */
2304df62 498/* HAS_SETRESGID:
a687059c
LW
499 * This symbol, if defined, indicates that the setresgid routine is
500 * available to change the real, effective and saved gid of the current
2304df62 501 * process.
a687059c 502 */
2304df62
AD
503#$d_setregid HAS_SETREGID /**/
504#$d_setresgid HAS_SETRESGID /**/
a687059c 505
2304df62 506/* HAS_SETREUID:
a687059c 507 * This symbol, if defined, indicates that the setreuid routine is
2304df62
AD
508 * available to change the real and effective uid of the current
509 * process.
a687059c 510 */
2304df62 511/* HAS_SETRESUID:
a687059c
LW
512 * This symbol, if defined, indicates that the setresuid routine is
513 * available to change the real, effective and saved uid of the current
2304df62 514 * process.
a687059c 515 */
2304df62
AD
516#$d_setreuid HAS_SETREUID /**/
517#$d_setresuid HAS_SETRESUID /**/
a687059c 518
2304df62 519/* HAS_SETRGID:
378cc40b
LW
520 * This symbol, if defined, indicates that the setrgid routine is available
521 * to change the real gid of the current program.
522 */
2304df62 523#$d_setrgid HAS_SETRGID /**/
378cc40b 524
2304df62 525/* HAS_SETRUID:
378cc40b
LW
526 * This symbol, if defined, indicates that the setruid routine is available
527 * to change the real uid of the current program.
528 */
2304df62
AD
529#$d_setruid HAS_SETRUID /**/
530
531/* HAS_SETSID:
532 * This symbol, if defined, indicates that the setsid routine is
533 * available to set the process group ID.
534 */
535#$d_setsid HAS_SETSID /**/
fe14fcc3 536
a0d0e21e
LW
537/* Shmat_t:
538 * This symbol holds the return type of the shmat() system call.
539 * Usually set to 'void *' or 'char *'.
fe14fcc3 540 */
a0d0e21e
LW
541/* HAS_SHMAT_PROTOTYPE:
542 * This symbol, if defined, indicates that the sys/shm.h includes
543 * a prototype for shmat(). Otherwise, it is up to the program to
b0ca4213 544 * guess one. Shmat_t shmat _((int, Shmat_t, int)) is a good guess,
a0d0e21e
LW
545 * but not always right so it should be emitted by the program only
546 * when HAS_SHMAT_PROTOTYPE is not defined to avoid conflicting defs.
fe14fcc3 547 */
a0d0e21e
LW
548#define Shmat_t $shmattype /**/
549#$d_shmatprototype HAS_SHMAT_PROTOTYPE /**/
fe14fcc3 550
dfe9444c
AD
551/* HAS_STRCHR:
552 * This symbol is defined to indicate that the strchr()/strrchr()
553 * functions are available for string searching. If not, try the
554 * index()/rindex() pair.
16d20bd9 555 */
dfe9444c
AD
556/* HAS_INDEX:
557 * This symbol is defined to indicate that the index()/rindex()
558 * functions are available for string searching.
c2960299 559 */
dfe9444c
AD
560#$d_strchr HAS_STRCHR /**/
561#$d_index HAS_INDEX /**/
562
563/* HAS_STRCOLL:
564 * This symbol, if defined, indicates that the strcoll routine is
565 * available to compare strings using collating information.
16d20bd9 566 */
dfe9444c
AD
567#$d_strcoll HAS_STRCOLL /**/
568
569/* USE_STRUCT_COPY:
570 * This symbol, if defined, indicates that this C compiler knows how
571 * to copy structures. If undefined, you'll need to use a block copy
572 * routine of some sort instead.
c2960299 573 */
dfe9444c 574#$d_strctcpy USE_STRUCT_COPY /**/
8d063cd8 575
a89d8a78
DH
576/* HAS_STRTOD:
577 * This symbol, if defined, indicates that the strtod routine is
5f05dabc 578 * available to provide better numeric string conversion than atof().
a89d8a78
DH
579 */
580#$d_strtod HAS_STRTOD /**/
581
582/* HAS_STRTOL:
5f05dabc 583 * This symbol, if defined, indicates that the strtol routine is available
584 * to provide better numeric string conversion than atoi() and friends.
a89d8a78
DH
585 */
586#$d_strtol HAS_STRTOL /**/
587
a0d0e21e
LW
588/* HAS_STRXFRM:
589 * This symbol, if defined, indicates that the strxfrm() routine is
590 * available to transform strings.
591 */
592#$d_strxfrm HAS_STRXFRM /**/
593
2304df62 594/* HAS_SYMLINK:
2e1b3b7e
KK
595 * This symbol, if defined, indicates that the symlink routine is available
596 * to create symbolic links.
597 */
2304df62 598#$d_symlink HAS_SYMLINK /**/
2e1b3b7e 599
2304df62
AD
600/* HAS_SYSCALL:
601 * This symbol, if defined, indicates that the syscall routine is
602 * available to call arbitrary system calls. If undefined, that's tough.
a687059c 603 */
2304df62 604#$d_syscall HAS_SYSCALL /**/
e5d73d77 605
ecfc5424
AD
606/* HAS_SYSCONF:
607 * This symbol, if defined, indicates that sysconf() is available
608 * to determine system related limits and options.
609 */
610#$d_sysconf HAS_SYSCONF /**/
611
2304df62
AD
612/* HAS_SYSTEM:
613 * This symbol, if defined, indicates that the system routine is
614 * available to issue a shell command.
9f971974 615 */
2304df62 616#$d_system HAS_SYSTEM /**/
9f971974 617
a0d0e21e
LW
618/* HAS_TCGETPGRP:
619 * This symbol, if defined, indicates that the tcgetpgrp routine is
620 * available to get foreground process group ID.
85e6fe83 621 */
a0d0e21e
LW
622#$d_tcgetpgrp HAS_TCGETPGRP /**/
623
624/* HAS_TCSETPGRP:
625 * This symbol, if defined, indicates that the tcsetpgrp routine is
626 * available to set foreground process group ID.
627 */
628#$d_tcsetpgrp HAS_TCSETPGRP /**/
85e6fe83 629
2304df62 630/* HAS_TRUNCATE:
87250799
LW
631 * This symbol, if defined, indicates that the truncate routine is
632 * available to truncate files.
633 */
2304df62 634#$d_truncate HAS_TRUNCATE /**/
87250799 635
a0d0e21e
LW
636/* HAS_TZNAME:
637 * This symbol, if defined, indicates that the tzname[] array is
638 * available to access timezone names.
639 */
640#$d_tzname HAS_TZNAME /**/
641
642/* HAS_UMASK:
643 * This symbol, if defined, indicates that the umask routine is
644 * available to set and get the value of the file creation mask.
645 */
646#$d_umask HAS_UMASK /**/
647
4e0554ec
JH
648/* HAS_USLEEP:
649 * This symbol, if defined, indicates that the usleep routine is
650 * available to let the process sleep on a sub-second accuracy.
651 */
652#$d_usleep HAS_USLEEP /**/
653
b4eb6b3d
JH
654/* HASVOLATILE:
655 * This symbol, if defined, indicates that this C compiler knows about
656 * the volatile declaration.
657 */
658#$d_volatile HASVOLATILE /**/
659#ifndef HASVOLATILE
660#define volatile
661#endif
662
2304df62 663/* HAS_WAIT4:
bf38876a
LW
664 * This symbol, if defined, indicates that wait4() exists.
665 */
2304df62 666#$d_wait4 HAS_WAIT4 /**/
bf38876a 667
2304df62
AD
668/* HAS_WAITPID:
669 * This symbol, if defined, indicates that the waitpid routine is
670 * available to wait for child process.
39c3038c 671 */
2304df62 672#$d_waitpid HAS_WAITPID /**/
39c3038c 673
a0d0e21e
LW
674/* HAS_WCSTOMBS:
675 * This symbol, if defined, indicates that the wcstombs routine is
676 * available to convert wide character strings to multibyte strings.
677 */
678#$d_wcstombs HAS_WCSTOMBS /**/
679
680/* HAS_WCTOMB:
681 * This symbol, if defined, indicates that the wctomb routine is available
682 * to covert a wide character to a multibyte.
683 */
684#$d_wctomb HAS_WCTOMB /**/
685
28e8609d 686/* I_ARPA_INET:
5ff3f7a4
GS
687 * This symbol, if defined, indicates to the C program that it should
688 * include <arpa/inet.h> to get inet_addr and friends declarations.
28e8609d 689 */
5ff3f7a4 690#$i_arpainet I_ARPA_INET /**/
28e8609d 691
dfe9444c
AD
692/* I_DBM:
693 * This symbol, if defined, indicates that <dbm.h> exists and should
694 * be included.
232e078e 695 */
dfe9444c
AD
696/* I_RPCSVC_DBM:
697 * This symbol, if defined, indicates that <rpcsvc/dbm.h> exists and
698 * should be included.
232e078e 699 */
dfe9444c
AD
700#$i_dbm I_DBM /**/
701#$i_rpcsvcdbm I_RPCSVC_DBM /**/
232e078e 702
2304df62
AD
703/* I_DIRENT:
704 * This symbol, if defined, indicates to the C program that it should
705 * include <dirent.h>. Using this symbol also triggers the definition
706 * of the Direntry_t define which ends up being 'struct dirent' or
707 * 'struct direct' depending on the availability of <dirent.h>.
1c3d792e 708 */
2304df62
AD
709/* DIRNAMLEN:
710 * This symbol, if defined, indicates to the C program that the length
711 * of directory entry names is provided by a d_namlen field. Otherwise
712 * you need to do strlen() on the d_name field.
713 */
a0d0e21e
LW
714/* Direntry_t:
715 * This symbol is set to 'struct direct' or 'struct dirent' depending on
716 * whether dirent is available or not. You should use this pseudo type to
717 * portably declare your directory entries.
718 */
2304df62
AD
719#$i_dirent I_DIRENT /**/
720#$d_dirnamlen DIRNAMLEN /**/
b4eb6b3d 721#define Direntry_t $direntrytype
a0d0e21e
LW
722
723/* I_DLFCN:
724 * This symbol, if defined, indicates that <dlfcn.h> exists and should
725 * be included.
726 */
727#$i_dlfcn I_DLFCN /**/
1c3d792e 728
2304df62 729/* I_FCNTL:
fe14fcc3 730 * This manifest constant tells the C program to include <fcntl.h>.
a687059c 731 */
2304df62 732#$i_fcntl I_FCNTL /**/
a687059c 733
a0d0e21e
LW
734/* I_FLOAT:
735 * This symbol, if defined, indicates to the C program that it should
736 * include <float.h> to get definition of symbols like DBL_MAX or
737 * DBL_MIN, i.e. machine dependent floating point values.
a687059c 738 */
a0d0e21e 739#$i_float I_FLOAT /**/
a687059c 740
a0d0e21e
LW
741/* I_LIMITS:
742 * This symbol, if defined, indicates to the C program that it should
743 * include <limits.h> to get definition of symbols like WORD_BIT or
744 * LONG_MAX, i.e. machine dependant limitations.
745 */
746#$i_limits I_LIMITS /**/
747
dfe9444c
AD
748/* I_LOCALE:
749 * This symbol, if defined, indicates to the C program that it should
750 * include <locale.h>.
751 */
752#$i_locale I_LOCALE /**/
753
a0d0e21e
LW
754/* I_MATH:
755 * This symbol, if defined, indicates to the C program that it should
756 * include <math.h>.
757 */
758#$i_math I_MATH /**/
759
760/* I_MEMORY:
761 * This symbol, if defined, indicates to the C program that it should
762 * include <memory.h>.
763 */
764#$i_memory I_MEMORY /**/
765
232e078e 766/* I_NDBM:
16d20bd9 767 * This symbol, if defined, indicates that <ndbm.h> exists and should
232e078e
AD
768 * be included.
769 */
770#$i_ndbm I_NDBM /**/
771
ecfc5424
AD
772/* I_NET_ERRNO:
773 * This symbol, if defined, indicates that <net/errno.h> exists and
774 * should be included.
2304df62 775 */
ecfc5424 776#$i_neterrno I_NET_ERRNO /**/
2304df62
AD
777
778/* I_NETINET_IN:
03a14243 779 * This symbol, if defined, indicates to the C program that it should
2304df62 780 * include <netinet/in.h>. Otherwise, you may try <sys/in.h>.
03a14243 781 */
2304df62 782#$i_niin I_NETINET_IN /**/
03a14243 783
dfe9444c
AD
784/* I_SFIO:
785 * This symbol, if defined, indicates to the C program that it should
786 * include <sfio.h>.
787 */
788#$i_sfio I_SFIO /**/
789
2304df62
AD
790/* I_STDDEF:
791 * This symbol, if defined, indicates that <stddef.h> exists and should
a687059c
LW
792 * be included.
793 */
2304df62 794#$i_stddef I_STDDEF /**/
a687059c 795
a0d0e21e
LW
796/* I_STDLIB:
797 * This symbol, if defined, indicates that <stdlib.h> exists and should
798 * be included.
799 */
800#$i_stdlib I_STDLIB /**/
801
802/* I_STRING:
85e6fe83
LW
803 * This symbol, if defined, indicates to the C program that it should
804 * include <string.h> (USG systems) instead of <strings.h> (BSD systems).
805 */
806#$i_string I_STRING /**/
807
2304df62
AD
808/* I_SYS_DIR:
809 * This symbol, if defined, indicates to the C program that it should
810 * include <sys/dir.h>.
d8f2e4cc 811 */
2304df62
AD
812#$i_sysdir I_SYS_DIR /**/
813
814/* I_SYS_FILE:
815 * This symbol, if defined, indicates to the C program that it should
816 * include <sys/file.h> to get definition of R_OK and friends.
d8f2e4cc 817 */
2304df62
AD
818#$i_sysfile I_SYS_FILE /**/
819
820/* I_SYS_IOCTL:
821 * This symbol, if defined, indicates that <sys/ioctl.h> exists and should
822 * be included. Otherwise, include <sgtty.h> or <termio.h>.
d8f2e4cc 823 */
49a78c82
JH
824/* I_SYS_SOCKIO:
825 * This symbol, if defined, indicates the <sys/sockio.h> should be included
826 * to get socket ioctl options, like SIOCATMARK.
827 */
2304df62 828#$i_sysioctl I_SYS_IOCTL /**/
49a78c82 829#$i_syssockio I_SYS_SOCKIO /**/
2304df62
AD
830
831/* I_SYS_NDIR:
832 * This symbol, if defined, indicates to the C program that it should
833 * include <sys/ndir.h>.
834 */
835#$i_sysndir I_SYS_NDIR /**/
836
a0d0e21e
LW
837/* I_SYS_PARAM:
838 * This symbol, if defined, indicates to the C program that it should
839 * include <sys/param.h>.
840 */
841#$i_sysparam I_SYS_PARAM /**/
842
e876cf0b 843/* I_SYS_RESOURCE:
844 * This symbol, if defined, indicates to the C program that it should
845 * include <sys/resource.h>.
846 */
847#$i_sysresrc I_SYS_RESOURCE /**/
848
2304df62
AD
849/* I_SYS_SELECT:
850 * This symbol, if defined, indicates to the C program that it should
851 * include <sys/select.h> in order to get definition of struct timeval.
852 */
853#$i_sysselct I_SYS_SELECT /**/
854
dfe9444c
AD
855/* I_SYS_STAT:
856 * This symbol, if defined, indicates to the C program that it should
857 * include <sys/stat.h>.
858 */
859#$i_sysstat I_SYS_STAT /**/
860
a0d0e21e
LW
861/* I_SYS_TIMES:
862 * This symbol, if defined, indicates to the C program that it should
863 * include <sys/times.h>.
864 */
865#$i_systimes I_SYS_TIMES /**/
866
bd89102f
AD
867/* I_SYS_TYPES:
868 * This symbol, if defined, indicates to the C program that it should
869 * include <sys/types.h>.
870 */
871#$i_systypes I_SYS_TYPES /**/
872
25f94b33
AD
873/* I_SYS_UN:
874 * This symbol, if defined, indicates to the C program that it should
875 * include <sys/un.h> to get UNIX domain socket definitions.
876 */
877#$i_sysun I_SYS_UN /**/
878
e876cf0b 879/* I_SYS_WAIT:
880 * This symbol, if defined, indicates to the C program that it should
881 * include <sys/wait.h>.
882 */
883#$i_syswait I_SYS_WAIT /**/
884
a0d0e21e
LW
885/* I_TERMIO:
886 * This symbol, if defined, indicates that the program should include
887 * <termio.h> rather than <sgtty.h>. There are also differences in
888 * the ioctl() calls that depend on the value of this symbol.
889 */
890/* I_TERMIOS:
891 * This symbol, if defined, indicates that the program should include
892 * the POSIX termios.h rather than sgtty.h or termio.h.
893 * There are also differences in the ioctl() calls that depend on the
894 * value of this symbol.
895 */
896/* I_SGTTY:
897 * This symbol, if defined, indicates that the program should include
898 * <sgtty.h> rather than <termio.h>. There are also differences in
899 * the ioctl() calls that depend on the value of this symbol.
900 */
901#$i_termio I_TERMIO /**/
902#$i_termios I_TERMIOS /**/
903#$i_sgtty I_SGTTY /**/
904
85e6fe83
LW
905/* I_UNISTD:
906 * This symbol, if defined, indicates to the C program that it should
907 * include <unistd.h>.
908 */
909#$i_unistd I_UNISTD /**/
d8f2e4cc 910
2304df62 911/* I_UTIME:
d8f2e4cc 912 * This symbol, if defined, indicates to the C program that it should
2304df62 913 * include <utime.h>.
d8f2e4cc 914 */
2304df62 915#$i_utime I_UTIME /**/
d8f2e4cc 916
dfe9444c
AD
917/* I_VALUES:
918 * This symbol, if defined, indicates to the C program that it should
919 * include <values.h> to get definition of symbols like MINFLOAT or
920 * MAXLONG, i.e. machine dependant limitations. Probably, you
921 * should use <limits.h> instead, if it is available.
922 */
923#$i_values I_VALUES /**/
924
a0d0e21e
LW
925/* I_VFORK:
926 * This symbol, if defined, indicates to the C program that it should
927 * include vfork.h.
928 */
929#$i_vfork I_VFORK /**/
a687059c 930
b4eb6b3d
JH
931/* CAN_PROTOTYPE:
932 * If defined, this macro indicates that the C compiler can handle
933 * function prototypes.
934 */
a0d0e21e
LW
935/* _:
936 * This macro is used to declare function parameters for folks who want
937 * to make declarations with prototypes using a different style than
938 * the above macros. Use double parentheses. For example:
939 *
940 * int main _((int argc, char *argv[]));
941 */
b4eb6b3d
JH
942#$prototype CAN_PROTOTYPE /**/
943#ifdef CAN_PROTOTYPE
a0d0e21e 944#define _(args) args
b4eb6b3d 945#else
a0d0e21e 946#define _(args) ()
b4eb6b3d 947#endif
85e6fe83 948
dfe9444c
AD
949/* SH_PATH:
950 * This symbol contains the full pathname to the shell used on this
951 * on this system to execute Bourne shell scripts. Usually, this will be
952 * /bin/sh, though it's possible that some systems will have /bin/ksh,
953 * /bin/pdksh, /bin/ash, /bin/bash, or even something such as
954 * D:/bin/sh.exe.
a0d0e21e 955 */
dfe9444c 956#define SH_PATH "$sh" /**/
a0d0e21e 957
aaacdc8b
GS
958/* INTSIZE:
959 * This symbol contains the value of sizeof(int) so that the C
960 * preprocessor can make decisions based on it.
961 */
962/* LONGSIZE:
963 * This symbol contains the value of sizeof(long) so that the C
964 * preprocessor can make decisions based on it.
965 */
966/* SHORTSIZE:
967 * This symbol contains the value of sizeof(short) so that the C
968 * preprocessor can make decisions based on it.
969 */
970#define INTSIZE $intsize /**/
971#define LONGSIZE $longsize /**/
972#define SHORTSIZE $shortsize /**/
973
974/* MULTIARCH:
975 * This symbol, if defined, signifies that the build
976 * process will produce some binary files that are going to be
977 * used in a cross-platform environment. This is the case for
978 * example with the NeXT "fat" binaries that contain executables
979 * for several CPUs.
980 */
981#$multiarch MULTIARCH /**/
982
de1c2614
JH
983/* HAS_QUAD:
984 * This symbol, if defined, tells that there's a 64-bit integer type,
1b8cd678
JH
985 * Quad_t, and its unsigned counterpar, Uquad_t. QUADKIND will be one
986 * of QUAD_IS_INT, QUAD_IS_LONG, QUAD_IS_LONG_LONG, or QUAD_IS_INT64_T.
a22e52b9 987 */
de1c2614 988#$d_quad HAS_QUAD /**/
b4eb6b3d
JH
989#ifdef HAS_QUAD
990# define Quad_t $quadtype /**/
991# define Uquad_t $uquadtype /**/
992# define QUADKIND $quadkind /**/
993# define QUAD_IS_INT 1
994# define QUAD_IS_LONG 2
995# define QUAD_IS_LONG_LONG 3
996# define QUAD_IS_INT64_T 4
997#endif
a22e52b9 998
5ff3f7a4
GS
999/* HAS_ACCESSX:
1000 * This symbol, if defined, indicates that the accessx routine is
1001 * available to do extended access checks.
1002 */
1003#$d_accessx HAS_ACCESSX /**/
1004
1005/* HAS_EACCESS:
1006 * This symbol, if defined, indicates that the eaccess routine is
1007 * available to do extended access checks.
1008 */
1009#$d_eaccess HAS_EACCESS /**/
1010
1011/* I_SYS_ACCESS:
1012 * This symbol, if defined, indicates to the C program that it should
85ab1d1d 1013 * include <sys/access.h>.
5ff3f7a4
GS
1014 */
1015#$i_sysaccess I_SYS_ACCESS /**/
1016
1017/* I_SYS_SECURITY:
1018 * This symbol, if defined, indicates to the C program that it should
1019 * include <sys/security.h>.
1020 */
1021#$i_syssecrt I_SYS_SECURITY /**/
1022
ff935051
JH
1023/* OSNAME:
1024 * This symbol contains the name of the operating system, as determined
1025 * by Configure. You shouldn't rely on it too much; the specific
1026 * feature tests from Configure are generally more reliable.
1027 */
40a39f85 1028/* OSVERS:
8e9464f1
JH
1029 * This symbol contains the version of the operating system, as determined
1030 * by Configure. You shouldn't rely on it too much; the specific
1031 * feature tests from Configure are generally more reliable.
1032 */
40a39f85
JH
1033#define OSNAME "$osname" /**/
1034#define OSVERS "$osvers" /**/
8e9464f1 1035
dfe9444c 1036/* MEM_ALIGNBYTES:
68c15b6f 1037 * This symbol contains the number of bytes required to align a
87b71857
JH
1038 * double, or a long double when applicable. Usual values are 2,
1039 * 4 and 8. The default is eight, for safety.
5f05dabc 1040 */
5440bc8e 1041#if defined(USE_CROSS_COMPILE) || defined(MULTIARCH)
b4eb6b3d
JH
1042# define MEM_ALIGNBYTES 8
1043#else
1044#define MEM_ALIGNBYTES $alignbytes
1045#endif
5f05dabc 1046
ff935051
JH
1047/* ARCHLIB:
1048 * This variable, if defined, holds the name of the directory in
1049 * which the user wants to put architecture-dependent public
1050 * library files for $package. It is most often a local directory
1051 * such as /usr/local/lib. Programs using this variable must be
1052 * prepared to deal with filename expansion. If ARCHLIB is the
1053 * same as PRIVLIB, it is not defined, since presumably the
1054 * program already searches PRIVLIB.
1055 */
1056/* ARCHLIB_EXP:
1057 * This symbol contains the ~name expanded version of ARCHLIB, to be used
1058 * in programs that are not prepared to deal with ~ expansion at run-time.
1059 */
1060#$d_archlib ARCHLIB "$archlib" /**/
1061#$d_archlib ARCHLIB_EXP "$archlibexp" /**/
1062
1063/* ARCHNAME:
1064 * This symbol holds a string representing the architecture name.
1065 * It may be used to construct an architecture-dependant pathname
1066 * where library files may be held under a private library, for
1067 * instance.
1068 */
1069#define ARCHNAME "$archname" /**/
1070
1071/* HAS_ATOLF:
1072 * This symbol, if defined, indicates that the atolf routine is
1073 * available to convert strings into long doubles.
1074 */
1075#$d_atolf HAS_ATOLF /**/
1076
1077/* HAS_ATOLL:
1078 * This symbol, if defined, indicates that the atoll routine is
1079 * available to convert strings into long longs.
1080 */
1081#$d_atoll HAS_ATOLL /**/
1082
1083/* BIN:
1084 * This symbol holds the path of the bin directory where the package will
1085 * be installed. Program must be prepared to deal with ~name substitution.
1086 */
1087/* BIN_EXP:
1088 * This symbol is the filename expanded version of the BIN symbol, for
1089 * programs that do not want to deal with that at run-time.
1090 */
1091#define BIN "$bin" /**/
1092#define BIN_EXP "$binexp" /**/
1093
1094/* PERL_BINCOMPAT_5005:
f78bfc9c 1095 * This symbol, if defined, indicates that this version of Perl should be
ff935051
JH
1096 * binary-compatible with Perl 5.005. This is impossible for builds
1097 * that use features like threads and multiplicity it is always $undef
1098 * for those versions.
1099 */
1100#$d_bincompat5005 PERL_BINCOMPAT_5005 /**/
1101
8e07c86e 1102/* BYTEORDER:
e876cf0b 1103 * This symbol holds the hexadecimal constant defined in byteorder,
8e07c86e 1104 * i.e. 0x1234 or 0x4321, etc...
68c15b6f
HM
1105 * If the compiler supports cross-compiling or multiple-architecture
1106 * binaries (eg. on NeXT systems), use compiler-defined macros to
1107 * determine the byte order.
7bac28a0 1108 * On NeXT 3.2 (and greater), you can build "Fat" Multiple Architecture
e876cf0b 1109 * Binaries (MAB) on either big endian or little endian machines.
1110 * The endian-ness is available at compile-time. This only matters
1111 * for perl, where the config.h can be generated and installed on
1112 * one system, and used by a different architecture to build an
1113 * extension. Older versions of NeXT that might not have
1114 * defined either *_ENDIAN__ were all on Motorola 680x0 series,
1115 * so the default case (for NeXT) is big endian to catch them.
1116 * This might matter for NeXT 3.0.
8e07c86e 1117 */
5440bc8e 1118#if defined(USE_CROSS_COMPILE) || defined(MULTIARCH)
b4eb6b3d
JH
1119# ifdef __LITTLE_ENDIAN__
1120# if LONGSIZE == 4
1121# define BYTEORDER 0x1234
1122# else
1123# if LONGSIZE == 8
1124# define BYTEORDER 0x12345678
1125# endif
1126# endif
1127# else
1128# ifdef __BIG_ENDIAN__
1129# if LONGSIZE == 4
1130# define BYTEORDER 0x4321
1131# else
1132# if LONGSIZE == 8
1133# define BYTEORDER 0x87654321
1134# endif
1135# endif
1136# endif
1137# endif
1138# if !defined(BYTEORDER) && (defined(NeXT) || defined(__NeXT__))
1139# define BYTEORDER 0x4321
1140# endif
1141#else
1142#define BYTEORDER 0x$byteorder /* large digits for MSB */
1143#endif /* NeXT */
8e07c86e 1144
ff935051
JH
1145/* CAT2:
1146 * This macro catenates 2 tokens together.
1147 */
1148/* STRINGIFY:
1149 * This macro surrounds its token with double quotes.
1150 */
b4eb6b3d 1151#if $cpp_stuff == 1
497711e7
GS
1152#define CAT2(a,b) a/**/b
1153#define STRINGIFY(a) "a"
b4eb6b3d
JH
1154 /* If you can get stringification with catify, tell me how! */
1155#endif
1156#if $cpp_stuff == 42
1157#define PeRl_CaTiFy(a, b) a ## b
1158#define PeRl_StGiFy(a) #a
1159/* the additional level of indirection enables these macros to be
1160 * used as arguments to other macros. See K&R 2nd ed., page 231. */
497711e7 1161#define CAT2(a,b) PeRl_CaTiFy(a,b)
b4eb6b3d 1162#define StGiFy(a) PeRl_StGiFy(a)
497711e7 1163#define STRINGIFY(a) PeRl_StGiFy(a)
b4eb6b3d
JH
1164#endif
1165#if $cpp_stuff != 1 && $cpp_stuff != 42
1166# include "Bletch: How does this C preprocessor catenate tokens?"
1167#endif
ff935051
JH
1168
1169/* CPPSTDIN:
1170 * This symbol contains the first part of the string which will invoke
1171 * the C preprocessor on the standard input and produce to standard
1172 * output. Typical value of "cc -E" or "/lib/cpp", but it can also
1173 * call a wrapper. See CPPRUN.
1174 */
1175/* CPPMINUS:
1176 * This symbol contains the second part of the string which will invoke
1177 * the C preprocessor on the standard input and produce to standard
1178 * output. This symbol will have the value "-" if CPPSTDIN needs a minus
1179 * to specify standard input, otherwise the value is "".
1180 */
1181/* CPPRUN:
1182 * This symbol contains the string which will invoke a C preprocessor on
1183 * the standard input and produce to standard output. It needs to end
1184 * with CPPLAST, after all other preprocessor flags have been specified.
1185 * The main difference with CPPSTDIN is that this program will never be a
1186 * pointer to a shell wrapper, i.e. it will be empty if no preprocessor is
1187 * available directly to the user. Note that it may well be different from
1188 * the preprocessor used to compile the C program.
1189 */
c71a9cee
JH
1190/* CPPLAST:
1191 * This symbol is intended to be used along with CPPRUN in the same manner
1192 * symbol CPPMINUS is used with CPPSTDIN. It contains either "-" or "".
1193 */
ff935051
JH
1194#define CPPSTDIN "$cppstdin"
1195#define CPPMINUS "$cppminus"
1196#define CPPRUN "$cpprun"
c71a9cee 1197#define CPPLAST "$cpplast"
ff935051 1198
a7fea17f
JH
1199/* HAS__FWALK:
1200 * This symbol, if defined, indicates that the _fwalk system call is
1201 * available to apply a function to all the file handles.
1202 */
1203#$d__fwalk HAS__FWALK /**/
1204
ff935051
JH
1205/* HAS_ACCESS:
1206 * This manifest constant lets the C program know that the access()
1207 * system call is available to check for accessibility using real UID/GID.
1208 * (always present on UNIX.)
1209 */
1210#$d_access HAS_ACCESS /**/
1211
dfe9444c
AD
1212/* CASTI32:
1213 * This symbol is defined if the C compiler can cast negative
1214 * or large floating point numbers to 32-bit ints.
1aef975c 1215 */
dfe9444c 1216#$d_casti32 CASTI32 /**/
85e6fe83 1217
dfe9444c
AD
1218/* CASTNEGFLOAT:
1219 * This symbol is defined if the C compiler can cast negative
1220 * numbers to unsigned longs, ints and shorts.
85e6fe83 1221 */
dfe9444c
AD
1222/* CASTFLAGS:
1223 * This symbol contains flags that say what difficulties the compiler
1224 * has casting odd floating values to unsigned long:
1225 * 0 = ok
1226 * 1 = couldn't cast < 0
1227 * 2 = couldn't cast >= 0x80000000
1228 * 4 = couldn't cast in argument expression list
bccf77a5 1229 */
dfe9444c
AD
1230#$d_castneg CASTNEGFLOAT /**/
1231#define CASTFLAGS $castflags /**/
1232
1233/* VOID_CLOSEDIR:
1234 * This symbol, if defined, indicates that the closedir() routine
1235 * does not return a value.
bccf77a5 1236 */
dfe9444c 1237#$d_void_closedir VOID_CLOSEDIR /**/
bccf77a5 1238
4e0554ec
JH
1239/* HAS_STRUCT_CMSGHDR:
1240 * This symbol, if defined, indicates that the struct cmsghdr
1241 * is supported.
1242 */
1243#$d_cmsghdr_s HAS_STRUCT_CMSGHDR /**/
1244
ff935051
JH
1245/* HAS_CSH:
1246 * This symbol, if defined, indicates that the C-shell exists.
1247 */
1248/* CSH:
1249 * This symbol, if defined, contains the full pathname of csh.
1250 */
b4eb6b3d
JH
1251#$d_csh HAS_CSH /**/
1252#ifdef HAS_CSH
1253#define CSH "$full_csh" /**/
1254#endif
ff935051
JH
1255
1256/* DLSYM_NEEDS_UNDERSCORE:
1257 * This symbol, if defined, indicates that we need to prepend an
1258 * underscore to the symbol name before calling dlsym(). This only
1259 * makes sense if you *have* dlsym, which we will presume is the
1260 * case if you're using dl_dlopen.xs.
1261 */
1262#$d_dlsymun DLSYM_NEEDS_UNDERSCORE /**/
1263
1264/* HAS_DRAND48_PROTO:
1265 * This symbol, if defined, indicates that the system provides
1266 * a prototype for the drand48() function. Otherwise, it is up
1267 * to the program to supply one. A good guess is
1268 * extern double drand48 _((void));
1269 */
1270#$d_drand48proto HAS_DRAND48_PROTO /**/
1271
1272/* HAS_ENDGRENT:
1273 * This symbol, if defined, indicates that the getgrent routine is
1274 * available for finalizing sequential access of the group database.
1275 */
1276#$d_endgrent HAS_ENDGRENT /**/
1277
1278/* HAS_ENDHOSTENT:
1279 * This symbol, if defined, indicates that the endhostent() routine is
1280 * available to close whatever was being used for host queries.
1281 */
1282#$d_endhent HAS_ENDHOSTENT /**/
1283
1284/* HAS_ENDNETENT:
1285 * This symbol, if defined, indicates that the endnetent() routine is
1286 * available to close whatever was being used for network queries.
1287 */
1288#$d_endnent HAS_ENDNETENT /**/
1289
1290/* HAS_ENDPROTOENT:
1291 * This symbol, if defined, indicates that the endprotoent() routine is
1292 * available to close whatever was being used for protocol queries.
1293 */
1294#$d_endpent HAS_ENDPROTOENT /**/
1295
1296/* HAS_ENDPWENT:
1297 * This symbol, if defined, indicates that the getgrent routine is
1298 * available for finalizing sequential access of the passwd database.
1299 */
1300#$d_endpwent HAS_ENDPWENT /**/
1301
1302/* HAS_ENDSERVENT:
1303 * This symbol, if defined, indicates that the endservent() routine is
1304 * available to close whatever was being used for service queries.
1305 */
1306#$d_endsent HAS_ENDSERVENT /**/
1307
a7fea17f
JH
1308/* FCNTL_CAN_LOCK:
1309 * This symbol, if defined, indicates that fcntl() can be used
1310 * for file locking. Normally on Unix systems this is defined.
1311 * It may be undefined on VMS.
1312 */
1313#$d_fcntl_can_lock FCNTL_CAN_LOCK /**/
1314
921b2963
JH
1315/* HAS_FD_SET:
1316 * This symbol, when defined, indicates presence of the fd_set typedef
1317 * in <sys/types.h>
1318 */
1319#$d_fd_set HAS_FD_SET /**/
1320
b6592ff0
JH
1321/* FLEXFILENAMES:
1322 * This symbol, if defined, indicates that the system supports filenames
1323 * longer than 14 characters.
1324 */
1325#$d_flexfnam FLEXFILENAMES /**/
1326
c5f05a91
JH
1327/* HAS_FPOS64_T:
1328 * This symbol will be defined if the C compiler supports fpos64_t.
1329 */
1330#$d_fpos64_t HAS_FPOS64_T /**/
1331
a3540c92
JH
1332/* HAS_FREXPL:
1333 * This symbol, if defined, indicates that the frexpl routine is
1334 * available to break a long double floating-point number into
1335 * a normalized fraction and an integral power of 2.
1336 */
1337#$d_frexpl HAS_FREXPL /**/
1338
ff935051
JH
1339/* HAS_STRUCT_FS_DATA:
1340 * This symbol, if defined, indicates that the struct fs_data
1341 * to do statfs() is supported.
1342 */
1343#$d_fs_data_s HAS_STRUCT_FS_DATA /**/
1344
1345/* HAS_FSEEKO:
1346 * This symbol, if defined, indicates that the fseeko routine is
1347 * available to fseek beyond 32 bits (useful for ILP32 hosts).
1348 */
1349#$d_fseeko HAS_FSEEKO /**/
1350
1351/* HAS_FSTATFS:
1352 * This symbol, if defined, indicates that the fstatfs routine is
1353 * available to stat filesystems by file descriptors.
1354 */
1355#$d_fstatfs HAS_FSTATFS /**/
c890dc6c 1356
a7fea17f
JH
1357/* HAS_FSYNC:
1358 * This symbol, if defined, indicates that the fsync routine is
1359 * available to write a file's modified data and attributes to
1360 * permanent storage.
1361 */
1362#$d_fsync HAS_FSYNC /**/
1363
ff935051
JH
1364/* HAS_FTELLO:
1365 * This symbol, if defined, indicates that the ftello routine is
1366 * available to ftell beyond 32 bits (useful for ILP32 hosts).
1367 */
1368#$d_ftello HAS_FTELLO /**/
1369
8e07c86e
AD
1370/* Gconvert:
1371 * This preprocessor macro is defined to convert a floating point
1372 * number to a string without a trailing decimal point. This
1373 * emulates the behavior of sprintf("%g"), but is sometimes much more
1374 * efficient. If gconvert() is not available, but gcvt() drops the
1375 * trailing decimal point, then gcvt() is used. If all else fails,
1376 * a macro using sprintf("%g") is used. Arguments for the Gconvert
1377 * macro are: value, number of digits, whether trailing zeros should
1378 * be retained, and the output buffer.
1379 * Possible values are:
1380 * d_Gconvert='gconvert((x),(n),(t),(b))'
1381 * d_Gconvert='gcvt((x),(n),(b))'
1382 * d_Gconvert='sprintf((b),"%.*g",(n),(x))'
1383 * The last two assume trailing zeros should not be kept.
1384 */
1385#define Gconvert(x,n,t,b) $d_Gconvert
1386
49dabb45
JH
1387/* HAS_GETCWD:
1388 * This symbol, if defined, indicates that the getcwd routine is
1389 * available to get the current working directory.
1390 */
1391#$d_getcwd HAS_GETCWD /**/
1392
3813c136
JH
1393/* HAS_GETESPWNAM:
1394 * This symbol, if defined, indicates that the getespwnam system call is
1395 * available to retrieve enchanced (shadow) password entries by name.
1396 */
1397#$d_getespwnam HAS_GETESPWNAM /**/
1398
1acc7ade
JH
1399/* HAS_GETFSSTAT:
1400 * This symbol, if defined, indicates that the getfsstat routine is
1401 * available to stat filesystems in bulk.
1402 */
1403#$d_getfsstat HAS_GETFSSTAT /**/
1404
ff935051
JH
1405/* HAS_GETGRENT:
1406 * This symbol, if defined, indicates that the getgrent routine is
1407 * available for sequential access of the group database.
c1b76f5d 1408 */
ff935051 1409#$d_getgrent HAS_GETGRENT /**/
c1b76f5d 1410
ff935051
JH
1411/* HAS_GETHOSTBYADDR:
1412 * This symbol, if defined, indicates that the gethostbyaddr() routine is
1413 * available to look up hosts by their IP addresses.
dd64f1c3 1414 */
ff935051 1415#$d_gethbyaddr HAS_GETHOSTBYADDR /**/
dd64f1c3 1416
ff935051
JH
1417/* HAS_GETHOSTBYNAME:
1418 * This symbol, if defined, indicates that the gethostbyname() routine is
1419 * available to look up host names in some data base or other.
774d564b 1420 */
ff935051 1421#$d_gethbyname HAS_GETHOSTBYNAME /**/
774d564b 1422
ff935051
JH
1423/* HAS_GETHOSTENT:
1424 * This symbol, if defined, indicates that the gethostent() routine is
1425 * available to look up host names in some data base or another.
c1b76f5d 1426 */
ff935051 1427#$d_gethent HAS_GETHOSTENT /**/
c1b76f5d 1428
ff935051
JH
1429/* HAS_GETHOSTNAME:
1430 * This symbol, if defined, indicates that the C program may use the
1431 * gethostname() routine to derive the host name. See also HAS_UNAME
1432 * and PHOSTNAME.
c1b76f5d 1433 */
ff935051
JH
1434/* HAS_UNAME:
1435 * This symbol, if defined, indicates that the C program may use the
1436 * uname() routine to derive the host name. See also HAS_GETHOSTNAME
1437 * and PHOSTNAME.
760ac839 1438 */
ff935051
JH
1439/* PHOSTNAME:
1440 * This symbol, if defined, indicates the command to feed to the
1441 * popen() routine to derive the host name. See also HAS_GETHOSTNAME
1442 * and HAS_UNAME. Note that the command uses a fully qualified path,
1443 * so that it is safe even if used by a process with super-user
1444 * privileges.
1445 */
c71a9cee
JH
1446/* HAS_PHOSTNAME:
1447 * This symbol, if defined, indicates that the C program may use the
1448 * contents of PHOSTNAME as a command to feed to the popen() routine
1449 * to derive the host name.
1450 */
b4eb6b3d
JH
1451#$d_gethname HAS_GETHOSTNAME /**/
1452#$d_uname HAS_UNAME /**/
1453#$d_phostname HAS_PHOSTNAME /**/
1454#ifdef HAS_PHOSTNAME
1455#define PHOSTNAME "$aphostname" /* How to get the host name */
1456#endif
760ac839 1457
ff935051
JH
1458/* HAS_GETHOST_PROTOS:
1459 * This symbol, if defined, indicates that <netdb.h> includes
1460 * prototypes for gethostent(), gethostbyname(), and
1461 * gethostbyaddr(). Otherwise, it is up to the program to guess
1462 * them. See netdbtype.U for probing for various Netdb_xxx_t types.
52e1cb5e 1463 */
ff935051 1464#$d_gethostprotos HAS_GETHOST_PROTOS /**/
52e1cb5e 1465
4e0554ec
JH
1466/* HAS_GETITIMER:
1467 * This symbol, if defined, indicates that the getitimer routine is
1468 * available to return interval timers.
1469 */
1470#$d_getitimer HAS_GETITIMER /**/
1471
ff935051
JH
1472/* HAS_GETMNT:
1473 * This symbol, if defined, indicates that the getmnt routine is
1474 * available to get filesystem mount info by filename.
921b2963 1475 */
ff935051
JH
1476#$d_getmnt HAS_GETMNT /**/
1477
1478/* HAS_GETMNTENT:
1479 * This symbol, if defined, indicates that the getmntent routine is
1480 * available to iterate through mounted file systems to get their info.
a5f75d66 1481 */
ff935051
JH
1482#$d_getmntent HAS_GETMNTENT /**/
1483
1484/* HAS_GETNETBYADDR:
1485 * This symbol, if defined, indicates that the getnetbyaddr() routine is
1486 * available to look up networks by their IP addresses.
a5f75d66 1487 */
ff935051
JH
1488#$d_getnbyaddr HAS_GETNETBYADDR /**/
1489
1490/* HAS_GETNETBYNAME:
1491 * This symbol, if defined, indicates that the getnetbyname() routine is
1492 * available to look up networks by their names.
a5f75d66 1493 */
ff935051 1494#$d_getnbyname HAS_GETNETBYNAME /**/
a5f75d66 1495
ff935051
JH
1496/* HAS_GETNETENT:
1497 * This symbol, if defined, indicates that the getnetent() routine is
1498 * available to look up network names in some data base or another.
a687059c 1499 */
ff935051
JH
1500#$d_getnent HAS_GETNETENT /**/
1501
1502/* HAS_GETNET_PROTOS:
1503 * This symbol, if defined, indicates that <netdb.h> includes
1504 * prototypes for getnetent(), getnetbyname(), and
1505 * getnetbyaddr(). Otherwise, it is up to the program to guess
1506 * them. See netdbtype.U for probing for various Netdb_xxx_t types.
dfe9444c 1507 */
ff935051
JH
1508#$d_getnetprotos HAS_GETNET_PROTOS /**/
1509
0c0643d0
JH
1510/* HAS_GETPAGESIZE:
1511 * This symbol, if defined, indicates that the getpagesize system call
1512 * is available to get system page size, which is the granularity of
1513 * many memory management calls.
1514 */
1515#$d_getpagsz HAS_GETPAGESIZE /**/
1516
ff935051
JH
1517/* HAS_GETPROTOENT:
1518 * This symbol, if defined, indicates that the getprotoent() routine is
1519 * available to look up protocols in some data base or another.
dfe9444c 1520 */
ff935051
JH
1521#$d_getpent HAS_GETPROTOENT /**/
1522
a7fea17f
JH
1523/* HAS_GETPGRP:
1524 * This symbol, if defined, indicates that the getpgrp routine is
1525 * available to get the current process group.
1526 */
1527/* USE_BSD_GETPGRP:
1528 * This symbol, if defined, indicates that getpgrp needs one
1529 * arguments whereas USG one needs none.
1530 */
1531#$d_getpgrp HAS_GETPGRP /**/
1532#$d_bsdgetpgrp USE_BSD_GETPGRP /**/
1533
ff935051
JH
1534/* HAS_GETPROTOBYNAME:
1535 * This symbol, if defined, indicates that the getprotobyname()
1536 * routine is available to look up protocols by their name.
dfe9444c 1537 */
ff935051
JH
1538/* HAS_GETPROTOBYNUMBER:
1539 * This symbol, if defined, indicates that the getprotobynumber()
1540 * routine is available to look up protocols by their number.
dfe9444c 1541 */
ff935051
JH
1542#$d_getpbyname HAS_GETPROTOBYNAME /**/
1543#$d_getpbynumber HAS_GETPROTOBYNUMBER /**/
a687059c 1544
ff935051
JH
1545/* HAS_GETPROTO_PROTOS:
1546 * This symbol, if defined, indicates that <netdb.h> includes
1547 * prototypes for getprotoent(), getprotobyname(), and
1548 * getprotobyaddr(). Otherwise, it is up to the program to guess
1549 * them. See netdbtype.U for probing for various Netdb_xxx_t types.
8e07c86e 1550 */
ff935051
JH
1551#$d_getprotoprotos HAS_GETPROTO_PROTOS /**/
1552
3813c136
JH
1553/* HAS_GETPRPWNAM:
1554 * This symbol, if defined, indicates that the getprpwnam system call is
1555 * available to retrieve protected (shadow) password entries by name.
1556 */
1557#$d_getprpwnam HAS_GETPRPWNAM /**/
1558
ff935051
JH
1559/* HAS_GETPWENT:
1560 * This symbol, if defined, indicates that the getpwent routine is
1561 * available for sequential access of the passwd database.
1562 * If this is not available, the older getpw() function may be available.
dfe9444c 1563 */
ff935051 1564#$d_getpwent HAS_GETPWENT /**/
8e07c86e 1565
ff935051
JH
1566/* HAS_GETSERVENT:
1567 * This symbol, if defined, indicates that the getservent() routine is
1568 * available to look up network services in some data base or another.
4633a7c4 1569 */
ff935051
JH
1570#$d_getsent HAS_GETSERVENT /**/
1571
1572/* HAS_GETSERV_PROTOS:
1573 * This symbol, if defined, indicates that <netdb.h> includes
1574 * prototypes for getservent(), getservbyname(), and
1575 * getservbyaddr(). Otherwise, it is up to the program to guess
1576 * them. See netdbtype.U for probing for various Netdb_xxx_t types.
dfe9444c 1577 */
ff935051 1578#$d_getservprotos HAS_GETSERV_PROTOS /**/
4633a7c4 1579
ff935051
JH
1580/* HAS_GETSPNAM:
1581 * This symbol, if defined, indicates that the getspnam system call is
1582 * available to retrieve SysV shadow password entries by name.
760ac839 1583 */
ff935051
JH
1584#$d_getspnam HAS_GETSPNAM /**/
1585
1586/* HAS_GETSERVBYNAME:
1587 * This symbol, if defined, indicates that the getservbyname()
1588 * routine is available to look up services by their name.
1aef975c 1589 */
ff935051
JH
1590/* HAS_GETSERVBYPORT:
1591 * This symbol, if defined, indicates that the getservbyport()
1592 * routine is available to look up services by their port.
bccf77a5 1593 */
ff935051
JH
1594#$d_getsbyname HAS_GETSERVBYNAME /**/
1595#$d_getsbyport HAS_GETSERVBYPORT /**/
8e07c86e 1596
ff935051
JH
1597/* HAS_GNULIBC:
1598 * This symbol, if defined, indicates to the C program that
1599 * the GNU C library is being used.
85e6fe83 1600 */
ff935051 1601#$d_gnulibc HAS_GNULIBC /**/
7378db63
JH
1602#if defined(HAS_GNULIBC) && !defined(_GNU_SOURCE)
1603# define _GNU_SOURCE
1604#endif
ff935051
JH
1605/* HAS_HASMNTOPT:
1606 * This symbol, if defined, indicates that the hasmntopt routine is
1607 * available to query the mount options of file systems.
dfe9444c 1608 */
ff935051
JH
1609#$d_hasmntopt HAS_HASMNTOPT /**/
1610
1611/* HAS_HTONL:
1612 * This symbol, if defined, indicates that the htonl() routine (and
1613 * friends htons() ntohl() ntohs()) are available to do network
1614 * order byte swapping.
dfe9444c 1615 */
ff935051
JH
1616/* HAS_HTONS:
1617 * This symbol, if defined, indicates that the htons() routine (and
1618 * friends htonl() ntohl() ntohs()) are available to do network
1619 * order byte swapping.
dfe9444c 1620 */
ff935051
JH
1621/* HAS_NTOHL:
1622 * This symbol, if defined, indicates that the ntohl() routine (and
1623 * friends htonl() htons() ntohs()) are available to do network
1624 * order byte swapping.
1625 */
1626/* HAS_NTOHS:
1627 * This symbol, if defined, indicates that the ntohs() routine (and
1628 * friends htonl() htons() ntohl()) are available to do network
1629 * order byte swapping.
1630 */
1631#$d_htonl HAS_HTONL /**/
1632#$d_htonl HAS_HTONS /**/
1633#$d_htonl HAS_NTOHL /**/
1634#$d_htonl HAS_NTOHS /**/
85e6fe83 1635
43999f95
JH
1636/* HAS_ICONV:
1637 * This symbol, if defined, indicates that the iconv routine is
1638 * available to do character set conversions.
1639 */
1640#$d_iconv HAS_ICONV /**/
1641
fe749a9f
JH
1642/* HAS_INT64_T:
1643 * This symbol will defined if the C compiler supports int64_t.
1644 * Usually the <inttypes.h> needs to be included, but sometimes
1645 * <sys/types.h> is enough.
1646 */
13b3f787 1647#$d_int64_t HAS_INT64_T /**/
fe749a9f 1648
ff935051
JH
1649/* HAS_ISASCII:
1650 * This manifest constant lets the C program know that isascii
1651 * is available.
693762b4 1652 */
ff935051 1653#$d_isascii HAS_ISASCII /**/
693762b4 1654
a3540c92
JH
1655/* HAS_ISNAN:
1656 * This symbol, if defined, indicates that the isnan routine is
1657 * available to check whether a double is a NaN.
1658 */
1659#$d_isnan HAS_ISNAN /**/
1660
1661/* HAS_ISNANL:
1662 * This symbol, if defined, indicates that the isnanl routine is
1663 * available to check whether a long double is a NaN.
1664 */
1665#$d_isnanl HAS_ISNANL /**/
1666
b6592ff0
JH
1667/* HAS_LCHOWN:
1668 * This symbol, if defined, indicates that the lchown routine is
1669 * available to operate on a symbolic link (instead of following the
1670 * link).
1671 */
1672#$d_lchown HAS_LCHOWN /**/
1673
ff935051
JH
1674/* HAS_LDBL_DIG:
1675 * This symbol, if defined, indicates that this system's <float.h>
1676 * or <limits.h> defines the symbol LDBL_DIG, which is the number
1677 * of significant digits in a long double precision number. Unlike
1678 * for DBL_DIG, there's no good guess for LDBL_DIG if it is undefined.
85ab1d1d 1679 */
ff935051
JH
1680#$d_ldbl_dig HAS_LDBL_DIG /* */
1681
1682/* HAS_LONG_DOUBLE:
1683 * This symbol will be defined if the C compiler supports long
1684 * doubles.
85ab1d1d 1685 */
ff935051
JH
1686/* LONG_DOUBLESIZE:
1687 * This symbol contains the size of a long double, so that the
1688 * C preprocessor can make decisions based on it. It is only
1689 * defined if the system supports long doubles.
dfe9444c 1690 */
ff935051
JH
1691#$d_longdbl HAS_LONG_DOUBLE /**/
1692#ifdef HAS_LONG_DOUBLE
1693#define LONG_DOUBLESIZE $longdblsize /**/
1694#endif
dfe9444c 1695
ff935051
JH
1696/* HAS_LONG_LONG:
1697 * This symbol will be defined if the C compiler supports long long.
dfe9444c 1698 */
ff935051
JH
1699/* LONGLONGSIZE:
1700 * This symbol contains the size of a long long, so that the
1701 * C preprocessor can make decisions based on it. It is only
1702 * defined if the system supports long long.
5ff3f7a4 1703 */
ff935051
JH
1704#$d_longlong HAS_LONG_LONG /**/
1705#ifdef HAS_LONG_LONG
1706#define LONGLONGSIZE $longlongsize /**/
1707#endif
5ff3f7a4 1708
1acc7ade
JH
1709/* HAS_LSEEK_PROTO:
1710 * This symbol, if defined, indicates that the system provides
1711 * a prototype for the lseek() function. Otherwise, it is up
1712 * to the program to supply one. A good guess is
1713 * extern off_t lseek(int, off_t, int);
1714 */
1715#$d_lseekproto HAS_LSEEK_PROTO /**/
1716
1e8c3fde
JH
1717/* HAS_MADVISE:
1718 * This symbol, if defined, indicates that the madvise system call is
1719 * available to map a file into memory.
1720 */
1721#$d_madvise HAS_MADVISE /**/
1722
ff935051
JH
1723/* HAS_MEMCHR:
1724 * This symbol, if defined, indicates that the memchr routine is available
1725 * to locate characters within a C string.
dd4e71fd 1726 */
ff935051
JH
1727#$d_memchr HAS_MEMCHR /**/
1728
fe749a9f
JH
1729/* HAS_MKDTEMP:
1730 * This symbol, if defined, indicates that the mkdtemp routine is
1731 * available to exclusively create a uniquely named temporary directory.
1732 */
1733#$d_mkdtemp HAS_MKDTEMP /**/
1734
1735/* HAS_MKSTEMP:
1736 * This symbol, if defined, indicates that the mkstemp routine is
1737 * available to exclusively create and open a uniquely named
1738 * temporary file.
1739 */
1740#$d_mkstemp HAS_MKSTEMP /**/
1741
1742/* HAS_MKSTEMPS:
1743 * This symbol, if defined, indicates that the mkstemps routine is
1744 * available to excluslvely create and open a uniquely named
1745 * (with a suffix) temporary file.
1746 */
1747#$d_mkstemps HAS_MKSTEMPS /**/
1748
87b71857
JH
1749/* HAS_MMAP:
1750 * This symbol, if defined, indicates that the mmap system call is
1751 * available to map a file into memory.
1752 */
fe749a9f
JH
1753/* Mmap_t:
1754 * This symbol holds the return type of the mmap() system call
1755 * (and simultaneously the type of the first argument).
1756 * Usually set to 'void *' or 'cadd_t'.
1757 */
87b71857 1758#$d_mmap HAS_MMAP /**/
fe749a9f
JH
1759#define Mmap_t $mmaptype /**/
1760
3813c136
JH
1761/* HAS_MODFL:
1762 * This symbol, if defined, indicates that the modfl routine is
1763 * available to split a long double x into a fractional part f and
1764 * an integer part i such that |f| < 1.0 and (f + i) = x.
1765 */
e67aeab1
JH
1766/* HAS_MODFL_POW32_BUG:
1767 * This symbol, if defined, indicates that the modfl routine is
1768 * broken for long doubles >= pow(2, 32).
1769 * For example from 4294967303.150000 one would get 4294967302.000000
1770 * and 1.150000. The bug has been seen in certain versions of glibc,
1771 * release 2.2.2 is known to be okay.
1772 */
3813c136 1773#$d_modfl HAS_MODFL /**/
e67aeab1 1774#$d_modfl_pow32_bug HAS_MODFL_POW32_BUG /**/
3813c136 1775
fe749a9f
JH
1776/* HAS_MPROTECT:
1777 * This symbol, if defined, indicates that the mprotect system call is
1778 * available to modify the access protection of a memory mapped file.
1779 */
1780#$d_mprotect HAS_MPROTECT /**/
1781
ff935051
JH
1782/* HAS_MSG:
1783 * This symbol, if defined, indicates that the entire msg*(2) library is
1784 * supported (IPC mechanism based on message queues).
dd4e71fd 1785 */
ff935051 1786#$d_msg HAS_MSG /**/
dd4e71fd 1787
4e0554ec
JH
1788/* HAS_STRUCT_MSGHDR:
1789 * This symbol, if defined, indicates that the struct msghdr
1790 * is supported.
1791 */
1792#$d_msghdr_s HAS_STRUCT_MSGHDR /**/
1793
c5f05a91
JH
1794/* HAS_OFF64_T:
1795 * This symbol will be defined if the C compiler supports off64_t.
1796 */
1797#$d_off64_t HAS_OFF64_T /**/
1798
ff935051
JH
1799/* HAS_OPEN3:
1800 * This manifest constant lets the C program know that the three
1801 * argument form of open(2) is available.
dd4e71fd 1802 */
ff935051
JH
1803#$d_open3 HAS_OPEN3 /**/
1804
1805/* OLD_PTHREAD_CREATE_JOINABLE:
1806 * This symbol, if defined, indicates how to create pthread
1807 * in joinable (aka undetached) state. NOTE: not defined
1808 * if pthread.h already has defined PTHREAD_CREATE_JOINABLE
1809 * (the new version of the constant).
1810 * If defined, known values are PTHREAD_CREATE_UNDETACHED
1811 * and __UNDETACHED.
dd4e71fd 1812 */
ff935051 1813#$d_old_pthread_create_joinable OLD_PTHREAD_CREATE_JOINABLE $old_pthread_create_joinable /**/
dd4e71fd 1814
ff935051
JH
1815/* HAS_PTHREAD_YIELD:
1816 * This symbol, if defined, indicates that the pthread_yield
1817 * routine is available to yield the execution of the current
1818 * thread. sched_yield is preferable to pthread_yield.
1819 */
1820/* SCHED_YIELD:
1821 * This symbol defines the way to yield the execution of
1822 * the current thread. Known ways are sched_yield,
1823 * pthread_yield, and pthread_yield with NULL.
1824 */
1825/* HAS_SCHED_YIELD:
1826 * This symbol, if defined, indicates that the sched_yield
1827 * routine is available to yield the execution of the current
1828 * thread. sched_yield is preferable to pthread_yield.
dd4e71fd 1829 */
ff935051
JH
1830#$d_pthread_yield HAS_PTHREAD_YIELD /**/
1831#define SCHED_YIELD $sched_yield /**/
1832#$d_sched_yield HAS_SCHED_YIELD /**/
dd4e71fd 1833
4e0554ec
JH
1834/* HAS_READV:
1835 * This symbol, if defined, indicates that the readv routine is
1836 * available to do gather reads. You will also need <sys/uio.h>
1837 * and there I_SYSUIO.
1838 */
1839#$d_readv HAS_READV /**/
1840
1841/* HAS_RECVMSG:
1842 * This symbol, if defined, indicates that the recvmsg routine is
1843 * available to send structured socket messages.
1844 */
1845#$d_recvmsg HAS_RECVMSG /**/
1846
ff935051
JH
1847/* HAS_SAFE_BCOPY:
1848 * This symbol, if defined, indicates that the bcopy routine is available
1849 * to copy potentially overlapping memory blocks. Otherwise you should
1850 * probably use memmove() or memcpy(). If neither is defined, roll your
1851 * own version.
dd4e71fd 1852 */
ff935051
JH
1853#$d_safebcpy HAS_SAFE_BCOPY /**/
1854
1855/* HAS_SAFE_MEMCPY:
1856 * This symbol, if defined, indicates that the memcpy routine is available
1857 * to copy potentially overlapping memory blocks. Otherwise you should
1858 * probably use memmove() or memcpy(). If neither is defined, roll your
1859 * own version.
dd4e71fd 1860 */
ff935051 1861#$d_safemcpy HAS_SAFE_MEMCPY /**/
dd4e71fd 1862
ff935051
JH
1863/* HAS_SANE_MEMCMP:
1864 * This symbol, if defined, indicates that the memcmp routine is available
1865 * and can be used to compare relative magnitudes of chars with their high
1866 * bits set. If it is not defined, roll your own version.
dd4e71fd 1867 */
ff935051
JH
1868#$d_sanemcmp HAS_SANE_MEMCMP /**/
1869
a7fea17f
JH
1870/* HAS_SBRK_PROTO:
1871 * This symbol, if defined, indicates that the system provides
1872 * a prototype for the sbrk() function. Otherwise, it is up
1873 * to the program to supply one. Good guesses are
1874 * extern void* sbrk _((int));
1875 * extern void* sbrk _((size_t));
1876 */
1877#$d_sbrkproto HAS_SBRK_PROTO /**/
1878
ff935051
JH
1879/* HAS_SEM:
1880 * This symbol, if defined, indicates that the entire sem*(2) library is
1881 * supported.
dd4e71fd 1882 */
ff935051 1883#$d_sem HAS_SEM /**/
dd4e71fd 1884
4e0554ec
JH
1885/* HAS_SENDMSG:
1886 * This symbol, if defined, indicates that the sendmsg routine is
1887 * available to send structured socket messages.
1888 */
1889#$d_sendmsg HAS_SENDMSG /**/
1890
ff935051
JH
1891/* HAS_SETGRENT:
1892 * This symbol, if defined, indicates that the setgrent routine is
1893 * available for initializing sequential access of the group database.
dd4e71fd 1894 */
ff935051
JH
1895#$d_setgrent HAS_SETGRENT /**/
1896
1897/* HAS_SETGROUPS:
1898 * This symbol, if defined, indicates that the setgroups() routine is
1899 * available to set the list of process groups. If unavailable, multiple
1900 * groups are probably not supported.
dd4e71fd 1901 */
ff935051 1902#$d_setgrps HAS_SETGROUPS /**/
dd4e71fd 1903
ff935051
JH
1904/* HAS_SETHOSTENT:
1905 * This symbol, if defined, indicates that the sethostent() routine is
1906 * available.
a3635516 1907 */
ff935051 1908#$d_sethent HAS_SETHOSTENT /**/
a3635516 1909
4e0554ec
JH
1910/* HAS_SETITIMER:
1911 * This symbol, if defined, indicates that the setitimer routine is
1912 * available to set interval timers.
1913 */
1914#$d_setitimer HAS_SETITIMER /**/
1915
ff935051
JH
1916/* HAS_SETNETENT:
1917 * This symbol, if defined, indicates that the setnetent() routine is
1918 * available.
dfe9444c 1919 */
ff935051 1920#$d_setnent HAS_SETNETENT /**/
dfe9444c 1921
ff935051
JH
1922/* HAS_SETPROTOENT:
1923 * This symbol, if defined, indicates that the setprotoent() routine is
1924 * available.
dfe9444c 1925 */
ff935051
JH
1926#$d_setpent HAS_SETPROTOENT /**/
1927
a7fea17f
JH
1928/* HAS_SETPGRP:
1929 * This symbol, if defined, indicates that the setpgrp routine is
1930 * available to set the current process group.
1931 */
1932/* USE_BSD_SETPGRP:
1933 * This symbol, if defined, indicates that setpgrp needs two
1934 * arguments whereas USG one needs none. See also HAS_SETPGID
1935 * for a POSIX interface.
1936 */
1937#$d_setpgrp HAS_SETPGRP /**/
1938#$d_bsdsetpgrp USE_BSD_SETPGRP /**/
1939
0c9177ab
JF
1940/* HAS_SETPROCTITLE:
1941 * This symbol, if defined, indicates that the setproctitle routine is
1942 * available to set process title.
1943 */
1944#$d_setproctitle HAS_SETPROCTITLE /**/
1945
ff935051
JH
1946/* HAS_SETPWENT:
1947 * This symbol, if defined, indicates that the setpwent routine is
1948 * available for initializing sequential access of the passwd database.
dfe9444c 1949 */
ff935051 1950#$d_setpwent HAS_SETPWENT /**/
dfe9444c 1951
ff935051
JH
1952/* HAS_SETSERVENT:
1953 * This symbol, if defined, indicates that the setservent() routine is
1954 * available.
48159a0c 1955 */
ff935051 1956#$d_setsent HAS_SETSERVENT /**/
1cfa4ec7 1957
ff935051
JH
1958/* HAS_SETVBUF:
1959 * This symbol, if defined, indicates that the setvbuf routine is
1960 * available to change buffering on an open stdio stream.
1961 * to a line-buffered mode.
dfe9444c 1962 */
ff935051 1963#$d_setvbuf HAS_SETVBUF /**/
e5c9fcd0 1964
ff935051
JH
1965/* USE_SFIO:
1966 * This symbol, if defined, indicates that sfio should
1967 * be used.
5ff3f7a4 1968 */
ff935051 1969#$d_sfio USE_SFIO /**/
5ff3f7a4 1970
ff935051
JH
1971/* HAS_SHM:
1972 * This symbol, if defined, indicates that the entire shm*(2) library is
1973 * supported.
e5c9fcd0 1974 */
ff935051 1975#$d_shm HAS_SHM /**/
e5c9fcd0 1976
ff935051
JH
1977/* HAS_SIGACTION:
1978 * This symbol, if defined, indicates that Vr4's sigaction() routine
1979 * is available.
e5c9fcd0 1980 */
ff935051 1981#$d_sigaction HAS_SIGACTION /**/
e5c9fcd0 1982
ff935051
JH
1983/* HAS_SIGSETJMP:
1984 * This variable indicates to the C program that the sigsetjmp()
1985 * routine is available to save the calling process's registers
1986 * and stack environment for later use by siglongjmp(), and
1987 * to optionally save the process's signal mask. See
1988 * Sigjmp_buf, Sigsetjmp, and Siglongjmp.
e5c9fcd0 1989 */
ff935051
JH
1990/* Sigjmp_buf:
1991 * This is the buffer type to be used with Sigsetjmp and Siglongjmp.
5ff3f7a4 1992 */
ff935051
JH
1993/* Sigsetjmp:
1994 * This macro is used in the same way as sigsetjmp(), but will invoke
1995 * traditional setjmp() if sigsetjmp isn't available.
1996 * See HAS_SIGSETJMP.
e5c9fcd0 1997 */
ff935051
JH
1998/* Siglongjmp:
1999 * This macro is used in the same way as siglongjmp(), but will invoke
2000 * traditional longjmp() if siglongjmp isn't available.
2001 * See HAS_SIGSETJMP.
5ff3f7a4 2002 */
b4eb6b3d
JH
2003#$d_sigsetjmp HAS_SIGSETJMP /**/
2004#ifdef HAS_SIGSETJMP
2005#define Sigjmp_buf sigjmp_buf
2006#define Sigsetjmp(buf,save_mask) sigsetjmp((buf),(save_mask))
2007#define Siglongjmp(buf,retval) siglongjmp((buf),(retval))
2008#else
2009#define Sigjmp_buf jmp_buf
2010#define Sigsetjmp(buf,save_mask) setjmp((buf))
2011#define Siglongjmp(buf,retval) longjmp((buf),(retval))
2012#endif
5ff3f7a4 2013
ff935051
JH
2014/* HAS_SOCKET:
2015 * This symbol, if defined, indicates that the BSD socket interface is
2016 * supported.
693762b4 2017 */
ff935051
JH
2018/* HAS_SOCKETPAIR:
2019 * This symbol, if defined, indicates that the BSD socketpair() call is
2020 * supported.
693762b4 2021 */
ff935051
JH
2022/* HAS_MSG_CTRUNC:
2023 * This symbol, if defined, indicates that the MSG_CTRUNC is supported.
2024 * Checking just with #ifdef might not be enough because this symbol
2025 * has been known to be an enum.
693762b4 2026 */
ff935051
JH
2027/* HAS_MSG_DONTROUTE:
2028 * This symbol, if defined, indicates that the MSG_DONTROUTE is supported.
2029 * Checking just with #ifdef might not be enough because this symbol
2030 * has been known to be an enum.
a12fb911 2031 */
ff935051
JH
2032/* HAS_MSG_OOB:
2033 * This symbol, if defined, indicates that the MSG_OOB is supported.
2034 * Checking just with #ifdef might not be enough because this symbol
2035 * has been known to be an enum.
a12fb911 2036 */
ff935051
JH
2037/* HAS_MSG_PEEK:
2038 * This symbol, if defined, indicates that the MSG_PEEK is supported.
2039 * Checking just with #ifdef might not be enough because this symbol
2040 * has been known to be an enum.
a12fb911 2041 */
ff935051
JH
2042/* HAS_MSG_PROXY:
2043 * This symbol, if defined, indicates that the MSG_PROXY is supported.
2044 * Checking just with #ifdef might not be enough because this symbol
2045 * has been known to be an enum.
48159a0c 2046 */
ff935051
JH
2047/* HAS_SCM_RIGHTS:
2048 * This symbol, if defined, indicates that the SCM_RIGHTS is supported.
2049 * Checking just with #ifdef might not be enough because this symbol
2050 * has been known to be an enum.
2051 */
2052#$d_socket HAS_SOCKET /**/
2053#$d_sockpair HAS_SOCKETPAIR /**/
2054#$d_msg_ctrunc HAS_MSG_CTRUNC /**/
2055#$d_msg_dontroute HAS_MSG_DONTROUTE /**/
2056#$d_msg_oob HAS_MSG_OOB /**/
2057#$d_msg_peek HAS_MSG_PEEK /**/
2058#$d_msg_proxy HAS_MSG_PROXY /**/
2059#$d_scm_rights HAS_SCM_RIGHTS /**/
a12fb911 2060
1b9c9cf5
DH
2061/* HAS_SOCKS5_INIT:
2062 * This symbol, if defined, indicates that the socks5_init routine is
2063 * available to initialize SOCKS 5.
2064 */
2065#$d_socks5_init HAS_SOCKS5_INIT /**/
2066
ff935051
JH
2067/* HAS_SQRTL:
2068 * This symbol, if defined, indicates that the sqrtl routine is
2069 * available to do long double square roots.
693762b4 2070 */
ff935051 2071#$d_sqrtl HAS_SQRTL /**/
693762b4 2072
ff935051
JH
2073/* USE_STAT_BLOCKS:
2074 * This symbol is defined if this system has a stat structure declaring
2075 * st_blksize and st_blocks.
693762b4 2076 */
b4eb6b3d
JH
2077#ifndef USE_STAT_BLOCKS
2078#$d_statblks USE_STAT_BLOCKS /**/
2079#endif
693762b4 2080
ff935051
JH
2081/* HAS_STRUCT_STATFS_F_FLAGS:
2082 * This symbol, if defined, indicates that the struct statfs
2083 * does have the f_flags member containing the mount flags of
2084 * the filesystem containing the file.
2085 * This kind of struct statfs is coming from <sys/mount.h> (BSD 4.3),
2086 * not from <sys/statfs.h> (SYSV). Older BSDs (like Ultrix) do not
2087 * have statfs() and struct statfs, they have ustat() and getmnt()
2088 * with struct ustat and struct fs_data.
e5c9fcd0 2089 */
ff935051 2090#$d_statfs_f_flags HAS_STRUCT_STATFS_F_FLAGS /**/
e5c9fcd0 2091
ff935051
JH
2092/* HAS_STRUCT_STATFS:
2093 * This symbol, if defined, indicates that the struct statfs
2094 * to do statfs() is supported.
e5c9fcd0 2095 */
ff935051 2096#$d_statfs_s HAS_STRUCT_STATFS /**/
e5c9fcd0 2097
ff935051
JH
2098/* HAS_FSTATVFS:
2099 * This symbol, if defined, indicates that the fstatvfs routine is
2100 * available to stat filesystems by file descriptors.
693762b4 2101 */
ff935051 2102#$d_fstatvfs HAS_FSTATVFS /**/
de4597cb 2103
b4eb6b3d
JH
2104/* USE_STDIO_PTR:
2105 * This symbol is defined if the _ptr and _cnt fields (or similar)
2106 * of the stdio FILE structure can be used to access the stdio buffer
2107 * for a file handle. If this is defined, then the FILE_ptr(fp)
2108 * and FILE_cnt(fp) macros will also be defined and should be used
2109 * to access these fields.
2110 */
ff935051
JH
2111/* FILE_ptr:
2112 * This macro is used to access the _ptr field (or equivalent) of the
2113 * FILE structure pointed to by its argument. This macro will always be
2114 * defined if USE_STDIO_PTR is defined.
bfb7748a 2115 */
ff935051
JH
2116/* STDIO_PTR_LVALUE:
2117 * This symbol is defined if the FILE_ptr macro can be used as an
2118 * lvalue.
c4f23d77 2119 */
ff935051
JH
2120/* FILE_cnt:
2121 * This macro is used to access the _cnt field (or equivalent) of the
2122 * FILE structure pointed to by its argument. This macro will always be
2123 * defined if USE_STDIO_PTR is defined.
c4f23d77 2124 */
ff935051
JH
2125/* STDIO_CNT_LVALUE:
2126 * This symbol is defined if the FILE_cnt macro can be used as an
2127 * lvalue.
16d20bd9 2128 */
a7ffa9b9
NC
2129/* STDIO_PTR_LVAL_SETS_CNT:
2130 * This symbol is defined if using the FILE_ptr macro as an lvalue
2131 * to increase the pointer by n has the side effect of decreasing the
2132 * value of File_cnt(fp) by n.
2133 */
2134/* STDIO_PTR_LVAL_NOCHANGE_CNT:
2135 * This symbol is defined if using the FILE_ptr macro as an lvalue
2136 * to increase the pointer by n leaves File_cnt(fp) unchanged.
2137 */
b4eb6b3d
JH
2138#$d_stdstdio USE_STDIO_PTR /**/
2139#ifdef USE_STDIO_PTR
ff935051
JH
2140#define FILE_ptr(fp) $stdio_ptr
2141#$d_stdio_ptr_lval STDIO_PTR_LVALUE /**/
2142#define FILE_cnt(fp) $stdio_cnt
2143#$d_stdio_cnt_lval STDIO_CNT_LVALUE /**/
a7ffa9b9
NC
2144#$d_stdio_ptr_lval_sets_cnt STDIO_PTR_LVAL_SETS_CNT /**/
2145#$d_stdio_ptr_lval_nochange_cnt STDIO_PTR_LVAL_NOCHANGE_CNT /**/
b4eb6b3d 2146#endif
16d20bd9 2147
b4eb6b3d
JH
2148/* USE_STDIO_BASE:
2149 * This symbol is defined if the _base field (or similar) of the
2150 * stdio FILE structure can be used to access the stdio buffer for
2151 * a file handle. If this is defined, then the FILE_base(fp) macro
2152 * will also be defined and should be used to access this field.
2153 * Also, the FILE_bufsiz(fp) macro will be defined and should be used
2154 * to determine the number of bytes in the buffer. USE_STDIO_BASE
2155 * will never be defined unless USE_STDIO_PTR is.
2156 */
ff935051
JH
2157/* FILE_base:
2158 * This macro is used to access the _base field (or equivalent) of the
2159 * FILE structure pointed to by its argument. This macro will always be
2160 * defined if USE_STDIO_BASE is defined.
6b8eaf93 2161 */
ff935051
JH
2162/* FILE_bufsiz:
2163 * This macro is used to determine the number of bytes in the I/O
2164 * buffer pointed to by _base field (or equivalent) of the FILE
2165 * structure pointed to its argument. This macro will always be defined
2166 * if USE_STDIO_BASE is defined.
2d4389e4 2167 */
b4eb6b3d
JH
2168#$d_stdiobase USE_STDIO_BASE /**/
2169#ifdef USE_STDIO_BASE
ff935051
JH
2170#define FILE_base(fp) $stdio_base
2171#define FILE_bufsiz(fp) $stdio_bufsiz
b4eb6b3d 2172#endif
2d4389e4 2173
ff935051
JH
2174/* HAS_STRERROR:
2175 * This symbol, if defined, indicates that the strerror routine is
2176 * available to translate error numbers to strings. See the writeup
2177 * of Strerror() in this file before you try to define your own.
f1066039 2178 */
ff935051
JH
2179/* HAS_SYS_ERRLIST:
2180 * This symbol, if defined, indicates that the sys_errlist array is
2181 * available to translate error numbers to strings. The extern int
2182 * sys_nerr gives the size of that table.
dfe9444c 2183 */
ff935051
JH
2184/* Strerror:
2185 * This preprocessor symbol is defined as a macro if strerror() is
2186 * not available to translate error numbers to strings but sys_errlist[]
2187 * array is there.
68d4903c 2188 */
ff935051
JH
2189#$d_strerror HAS_STRERROR /**/
2190#$d_syserrlst HAS_SYS_ERRLIST /**/
2191#define Strerror(e) $d_strerrm
68d4903c 2192
ff935051
JH
2193/* HAS_STRTOLD:
2194 * This symbol, if defined, indicates that the strtold routine is
2195 * available to convert strings to long doubles.
104d25b7 2196 */
ff935051 2197#$d_strtold HAS_STRTOLD /**/
104d25b7 2198
76d49b1c
JH
2199/* HAS_STRTOLL:
2200 * This symbol, if defined, indicates that the strtoll routine is
2201 * available to convert strings to long longs.
2202 */
2203#$d_strtoll HAS_STRTOLL /**/
2204
28e5dec8
JH
2205/* HAS_STRTOQ:
2206 * This symbol, if defined, indicates that the strtoq routine is
2207 * available to convert strings to long longs (quads).
2208 */
2209#$d_strtoq HAS_STRTOQ /**/
2210
a7fea17f
JH
2211/* HAS_STRTOUL:
2212 * This symbol, if defined, indicates that the strtoul routine is
2213 * available to provide conversion of strings to unsigned long.
2214 */
2215#$d_strtoul HAS_STRTOUL /**/
2216
ff935051
JH
2217/* HAS_STRTOULL:
2218 * This symbol, if defined, indicates that the strtoull routine is
2219 * available to convert strings to unsigned long longs.
ad27e871 2220 */
ff935051 2221#$d_strtoull HAS_STRTOULL /**/
ad27e871 2222
ff935051
JH
2223/* HAS_STRTOUQ:
2224 * This symbol, if defined, indicates that the strtouq routine is
2225 * available to convert strings to unsigned long longs (quads).
104d25b7 2226 */
ff935051 2227#$d_strtouq HAS_STRTOUQ /**/
104d25b7 2228
cb86ce0e
JH
2229/* HAS_TELLDIR_PROTO:
2230 * This symbol, if defined, indicates that the system provides
2231 * a prototype for the telldir() function. Otherwise, it is up
2232 * to the program to supply one. A good guess is
b0ca4213 2233 * extern long telldir _((DIR*));
cb86ce0e
JH
2234 */
2235#$d_telldirproto HAS_TELLDIR_PROTO /**/
2236
ff935051
JH
2237/* Time_t:
2238 * This symbol holds the type returned by time(). It can be long,
2239 * or time_t on BSD sites (in which case <sys/types.h> should be
2240 * included).
2241 */
2242#define Time_t $timetype /* Time type */
2243
2244/* HAS_TIMES:
2245 * This symbol, if defined, indicates that the times() routine exists.
2246 * Note that this became obsolete on some systems (SUNOS), which now
2247 * use getrusage(). It may be necessary to include <sys/times.h>.
2248 */
2249#$d_times HAS_TIMES /**/
2250
4e0554ec
JH
2251/* HAS_UALARM:
2252 * This symbol, if defined, indicates that the ualarm routine is
2253 * available to do alarms with microsecond granularity.
2254 */
2255#$d_ualarm HAS_UALARM /**/
2256
ff935051
JH
2257/* HAS_UNION_SEMUN:
2258 * This symbol, if defined, indicates that the union semun is
2259 * defined by including <sys/sem.h>. If not, the user code
2260 * probably needs to define it as:
2261 * union semun {
2262 * int val;
2263 * struct semid_ds *buf;
2264 * unsigned short *array;
2265 * }
2266 */
2267/* USE_SEMCTL_SEMUN:
2268 * This symbol, if defined, indicates that union semun is
2269 * used for semctl IPC_STAT.
2270 */
2271/* USE_SEMCTL_SEMID_DS:
2272 * This symbol, if defined, indicates that struct semid_ds * is
2273 * used for semctl IPC_STAT.
2274 */
2275#$d_union_semun HAS_UNION_SEMUN /**/
2276#$d_semctl_semun USE_SEMCTL_SEMUN /**/
2277#$d_semctl_semid_ds USE_SEMCTL_SEMID_DS /**/
2278
0545a864
JH
2279/* HAS_USTAT:
2280 * This symbol, if defined, indicates that the ustat system call is
2281 * available to query file system statistics by dev_t.
2282 */
2283#$d_ustat HAS_USTAT /**/
2284
ff935051
JH
2285/* HAS_VFORK:
2286 * This symbol, if defined, indicates that vfork() exists.
2287 */
2288#$d_vfork HAS_VFORK /**/
2289
2290/* Signal_t:
2291 * This symbol's value is either "void" or "int", corresponding to the
2292 * appropriate return type of a signal handler. Thus, you can declare
2293 * a signal handler using "Signal_t (*handler)()", and define the
2294 * handler using "Signal_t handler(sig)".
2295 */
2296#define Signal_t $signal_t /* Signal handler's return type */
2297
2298/* HAS_VPRINTF:
2299 * This symbol, if defined, indicates that the vprintf routine is available
2300 * to printf with a pointer to an argument list. If unavailable, you
2301 * may need to write your own, probably in terms of _doprnt().
2302 */
2303/* USE_CHAR_VSPRINTF:
2304 * This symbol is defined if this system has vsprintf() returning type
2305 * (char*). The trend seems to be to declare it as "int vsprintf()". It
2306 * is up to the package author to declare vsprintf correctly based on the
2307 * symbol.
2308 */
2309#$d_vprintf HAS_VPRINTF /**/
2310#$d_charvspr USE_CHAR_VSPRINTF /**/
2311
4e0554ec
JH
2312/* HAS_WRITEV:
2313 * This symbol, if defined, indicates that the writev routine is
2314 * available to do scatter writes.
2315 */
2316#$d_writev HAS_WRITEV /**/
2317
dfe9444c
AD
2318/* USE_DYNAMIC_LOADING:
2319 * This symbol, if defined, indicates that dynamic loading of
2320 * some sort is available.
2321 */
2322#$usedl USE_DYNAMIC_LOADING /**/
2323
ff935051
JH
2324/* DOUBLESIZE:
2325 * This symbol contains the size of a double, so that the C preprocessor
2326 * can make decisions based on it.
2327 */
2328#define DOUBLESIZE $doublesize /**/
2329
2330/* EBCDIC:
2331 * This symbol, if defined, indicates that this system uses
2332 * EBCDIC encoding.
2333 */
2334#$ebcdic EBCDIC /**/
2335
66fe083f
JH
2336/* FFLUSH_NULL:
2337 * This symbol, if defined, tells that fflush(NULL) does flush
2338 * all pending stdio output.
2339 */
767df6a1
JH
2340/* FFLUSH_ALL:
2341 * This symbol, if defined, tells that to flush
2342 * all pending stdio output one must loop through all
a71cd7cd 2343 * the stdio file handles stored in an array and fflush them.
a32a45b6
JH
2344 * Note that if fflushNULL is defined, fflushall will not
2345 * even be probed for and will be left undefined.
767df6a1
JH
2346 */
2347#$fflushNULL FFLUSH_NULL /**/
2348#$fflushall FFLUSH_ALL /**/
66fe083f 2349
ff935051
JH
2350/* Fpos_t:
2351 * This symbol holds the type used to declare file positions in libc.
2352 * It can be fpos_t, long, uint, etc... It may be necessary to include
2353 * <sys/types.h> to get any typedef'ed information.
2354 */
2355#define Fpos_t $fpostype /* File position type */
2356
2357/* Gid_t_f:
2358 * This symbol defines the format string used for printing a Gid_t.
2359 */
2360#define Gid_t_f $gidformat /**/
2361
23dcd6c8
JH
2362/* Gid_t_sign:
2363 * This symbol holds the signedess of a Gid_t.
2364 * 1 for unsigned, -1 for signed.
2365 */
2366#define Gid_t_sign $gidsign /* GID sign */
2367
ff935051
JH
2368/* Gid_t_size:
2369 * This symbol holds the size of a Gid_t in bytes.
2370 */
2371#define Gid_t_size $gidsize /* GID size */
2372
2373/* Gid_t:
2374 * This symbol holds the return type of getgid() and the type of
2375 * argument to setrgid() and related functions. Typically,
2376 * it is the type of group ids in the kernel. It can be int, ushort,
23dcd6c8 2377 * gid_t, etc... It may be necessary to include <sys/types.h> to get
ff935051
JH
2378 * any typedef'ed information.
2379 */
2380#define Gid_t $gidtype /* Type for getgid(), etc... */
2381
2382/* Groups_t:
2383 * This symbol holds the type used for the second argument to
23dcd6c8 2384 * getgroups() and setgroups(). Usually, this is the same as
ff935051 2385 * gidtype (gid_t) , but sometimes it isn't.
23dcd6c8 2386 * It can be int, ushort, gid_t, etc...
ff935051
JH
2387 * It may be necessary to include <sys/types.h> to get any
2388 * typedef'ed information. This is only required if you have
6e78e524 2389 * getgroups() or setgroups()..
ff935051 2390 */
b4eb6b3d
JH
2391#if defined(HAS_GETGROUPS) || defined(HAS_SETGROUPS)
2392#define Groups_t $groupstype /* Type for 2nd arg to [sg]etgroups() */
2393#endif
ff935051 2394
dfe9444c
AD
2395/* DB_Prefix_t:
2396 * This symbol contains the type of the prefix structure element
2397 * in the <db.h> header file. In older versions of DB, it was
2398 * int, while in newer ones it is u_int32_t.
2399 */
2400/* DB_Hash_t:
2401 * This symbol contains the type of the prefix structure element
2402 * in the <db.h> header file. In older versions of DB, it was
2403 * int, while in newer ones it is size_t.
2404 */
640374d0
JH
2405/* DB_VERSION_MAJOR_CFG:
2406 * This symbol, if defined, defines the major version number of
2407 * Berkeley DB found in the <db.h> header when Perl was configured.
2408 */
2409/* DB_VERSION_MINOR_CFG:
2410 * This symbol, if defined, defines the minor version number of
2411 * Berkeley DB found in the <db.h> header when Perl was configured.
2412 * For DB version 1 this is always 0.
2413 */
2414/* DB_VERSION_PATCH_CFG:
2415 * This symbol, if defined, defines the patch version number of
2416 * Berkeley DB found in the <db.h> header when Perl was configured.
2417 * For DB version 1 this is always 0.
2418 */
dfe9444c
AD
2419#define DB_Hash_t $db_hashtype /**/
2420#define DB_Prefix_t $db_prefixtype /**/
640374d0
JH
2421#define DB_VERSION_MAJOR_CFG $db_version_major /**/
2422#define DB_VERSION_MINOR_CFG $db_version_minor /**/
2423#define DB_VERSION_PATCH_CFG $db_version_patch /**/
dfe9444c 2424
ff935051
JH
2425/* I_GRP:
2426 * This symbol, if defined, indicates to the C program that it should
2427 * include <grp.h>.
2428 */
2429/* GRPASSWD:
2430 * This symbol, if defined, indicates to the C program that struct group
2431 * in <grp.h> contains gr_passwd.
2432 */
2433#$i_grp I_GRP /**/
2434#$d_grpasswd GRPASSWD /**/
2435
43999f95
JH
2436/* I_ICONV:
2437 * This symbol, if defined, indicates that <iconv.h> exists and
2438 * should be included.
2439 */
2440#$i_iconv I_ICONV /**/
2441
1acc7ade
JH
2442/* I_IEEEFP:
2443 * This symbol, if defined, indicates that <ieeefp.h> exists and
2444 * should be included.
2445 */
2446#$i_ieeefp I_IEEEFP /**/
2447
5ff3f7a4
GS
2448/* I_INTTYPES:
2449 * This symbol, if defined, indicates to the C program that it should
2450 * include <inttypes.h>.
2451 */
5ff3f7a4 2452#$i_inttypes I_INTTYPES /**/
5ff3f7a4 2453
1b9c9cf5
DH
2454/* I_LIBUTIL:
2455 * This symbol, if defined, indicates that <libutil.h> exists and
2456 * should be included.
2457 */
2458#$i_libutil I_LIBUTIL /**/
2459
ff935051
JH
2460/* I_MACH_CTHREADS:
2461 * This symbol, if defined, indicates to the C program that it should
2462 * include <mach/cthreads.h>.
2463 */
2464#$i_machcthr I_MACH_CTHREADS /**/
2465
e7fb4fcc
JH
2466/* I_MNTENT:
2467 * This symbol, if defined, indicates that <mntent.h> exists and
2468 * should be included.
2469 */
2470#$i_mntent I_MNTENT /**/
2471
ff935051
JH
2472/* I_NETDB:
2473 * This symbol, if defined, indicates that <netdb.h> exists and
2474 * should be included.
2475 */
2476#$i_netdb I_NETDB /**/
2477
9cc6feab
JH
2478/* I_NETINET_TCP:
2479 * This symbol, if defined, indicates to the C program that it should
2480 * include <netinet/tcp.h>.
2481 */
2482#$i_netinettcp I_NETINET_TCP /**/
2483
5b34fd99
JH
2484/* I_POLL:
2485 * This symbol, if defined, indicates that <poll.h> exists and
2486 * should be included.
2487 */
2488#$i_poll I_POLL /**/
2489
3813c136
JH
2490/* I_PROT:
2491 * This symbol, if defined, indicates that <prot.h> exists and
2492 * should be included.
2493 */
2494#$i_prot I_PROT /**/
2495
ff935051
JH
2496/* I_PTHREAD:
2497 * This symbol, if defined, indicates to the C program that it should
2498 * include <pthread.h>.
2499 */
2500#$i_pthread I_PTHREAD /**/
2501
2502/* I_PWD:
2503 * This symbol, if defined, indicates to the C program that it should
2504 * include <pwd.h>.
2505 */
2506/* PWQUOTA:
2507 * This symbol, if defined, indicates to the C program that struct passwd
2508 * contains pw_quota.
2509 */
2510/* PWAGE:
2511 * This symbol, if defined, indicates to the C program that struct passwd
2512 * contains pw_age.
2513 */
2514/* PWCHANGE:
2515 * This symbol, if defined, indicates to the C program that struct passwd
2516 * contains pw_change.
2517 */
2518/* PWCLASS:
2519 * This symbol, if defined, indicates to the C program that struct passwd
2520 * contains pw_class.
2521 */
2522/* PWEXPIRE:
2523 * This symbol, if defined, indicates to the C program that struct passwd
2524 * contains pw_expire.
2525 */
2526/* PWCOMMENT:
2527 * This symbol, if defined, indicates to the C program that struct passwd
2528 * contains pw_comment.
2529 */
2530/* PWGECOS:
2531 * This symbol, if defined, indicates to the C program that struct passwd
2532 * contains pw_gecos.
2533 */
2534/* PWPASSWD:
2535 * This symbol, if defined, indicates to the C program that struct passwd
2536 * contains pw_passwd.
2537 */
2538#$i_pwd I_PWD /**/
2539#$d_pwquota PWQUOTA /**/
2540#$d_pwage PWAGE /**/
2541#$d_pwchange PWCHANGE /**/
2542#$d_pwclass PWCLASS /**/
2543#$d_pwexpire PWEXPIRE /**/
2544#$d_pwcomment PWCOMMENT /**/
2545#$d_pwgecos PWGECOS /**/
2546#$d_pwpasswd PWPASSWD /**/
2547
f1066039
JH
2548/* I_SHADOW:
2549 * This symbol, if defined, indicates that <shadow.h> exists and
2550 * should be included.
2551 */
2552#$i_shadow I_SHADOW /**/
2553
86959918
JH
2554/* I_SOCKS:
2555 * This symbol, if defined, indicates that <socks.h> exists and
2556 * should be included.
2557 */
2558#$i_socks I_SOCKS /**/
2559
923fc586
JH
2560/* I_SUNMATH:
2561 * This symbol, if defined, indicates that <sunmath.h> exists and
2562 * should be included.
2563 */
2564#$i_sunmath I_SUNMATH /**/
2565
ca52efda
JH
2566/* I_SYSLOG:
2567 * This symbol, if defined, indicates that <syslog.h> exists and
2568 * should be included.
2569 */
2570#$i_syslog I_SYSLOG /**/
2571
13b3f787
JH
2572/* I_SYSMODE:
2573 * This symbol, if defined, indicates that <sys/mode.h> exists and
2574 * should be included.
2575 */
2576#$i_sysmode I_SYSMODE /**/
2577
104d25b7
JH
2578/* I_SYS_MOUNT:
2579 * This symbol, if defined, indicates that <sys/mount.h> exists and
2580 * should be included.
2581 */
2582#$i_sysmount I_SYS_MOUNT /**/
2583
0545a864
JH
2584/* I_SYS_STATFS:
2585 * This symbol, if defined, indicates that <sys/statfs.h> exists.
2586 */
2587#$i_sysstatfs I_SYS_STATFS /**/
2588
104d25b7
JH
2589/* I_SYS_STATVFS:
2590 * This symbol, if defined, indicates that <sys/statvfs.h> exists and
2591 * should be included.
2592 */
2593#$i_sysstatvfs I_SYS_STATVFS /**/
2594
ff935051
JH
2595/* I_SYSUIO:
2596 * This symbol, if defined, indicates that <sys/uio.h> exists and
2597 * should be included.
2598 */
2599#$i_sysuio I_SYSUIO /**/
2600
13b3f787
JH
2601/* I_SYSUTSNAME:
2602 * This symbol, if defined, indicates that <sys/utsname.h> exists and
2603 * should be included.
2604 */
2605#$i_sysutsname I_SYSUTSNAME /**/
2606
0545a864
JH
2607/* I_SYS_VFS:
2608 * This symbol, if defined, indicates that <sys/vfs.h> exists and
2609 * should be included.
2610 */
2611#$i_sysvfs I_SYS_VFS /**/
2612
ff935051
JH
2613/* I_TIME:
2614 * This symbol, if defined, indicates to the C program that it should
2615 * include <time.h>.
2616 */
2617/* I_SYS_TIME:
2618 * This symbol, if defined, indicates to the C program that it should
2619 * include <sys/time.h>.
2620 */
2621/* I_SYS_TIME_KERNEL:
2622 * This symbol, if defined, indicates to the C program that it should
2623 * include <sys/time.h> with KERNEL defined.
2624 */
2625#$i_time I_TIME /**/
2626#$i_systime I_SYS_TIME /**/
2627#$i_systimek I_SYS_TIME_KERNEL /**/
2628
0545a864
JH
2629/* I_USTAT:
2630 * This symbol, if defined, indicates that <ustat.h> exists and
2631 * should be included.
2632 */
2633#$i_ustat I_USTAT /**/
2634
ff935051
JH
2635/* PERL_INC_VERSION_LIST:
2636 * This variable specifies the list of subdirectories in over
2637 * which perl.c:incpush() and lib/lib.pm will automatically
2638 * search when adding directories to @INC, in a format suitable
2639 * for a C initialization string. See the inc_version_list entry
2640 * in Porting/Glossary for more details.
2641 */
3a096bf3 2642#define PERL_INC_VERSION_LIST $inc_version_list_init /**/
ff935051 2643
fe749a9f
JH
2644/* INSTALL_USR_BIN_PERL:
2645 * This symbol, if defined, indicates that Perl is to be installed
2646 * also as /usr/bin/perl.
2647 */
2648#$installusrbinperl INSTALL_USR_BIN_PERL /**/
2649
cf2093f6
JH
2650/* PERL_PRIfldbl:
2651 * This symbol, if defined, contains the string used by stdio to
2652 * format long doubles (format 'f') for output.
2653 */
2654/* PERL_PRIgldbl:
2655 * This symbol, if defined, contains the string used by stdio to
2656 * format long doubles (format 'g') for output.
2657 */
c1a7f87b
JH
2658/* PERL_PRIeldbl:
2659 * This symbol, if defined, contains the string used by stdio to
2660 * format long doubles (format 'e') for output.
2661 */
ebd4816b
JH
2662/* PERL_SCNfldbl:
2663 * This symbol, if defined, contains the string used by stdio to
2664 * format long doubles (format 'f') for input.
2665 */
cf2093f6
JH
2666#$d_PRIfldbl PERL_PRIfldbl $sPRIfldbl /**/
2667#$d_PRIgldbl PERL_PRIgldbl $sPRIgldbl /**/
c1a7f87b 2668#$d_PRIeldbl PERL_PRIeldbl $sPRIeldbl /**/
ebd4816b 2669#$d_SCNfldbl PERL_SCNfldbl $sSCNfldbl /**/
cf2093f6 2670
ff935051
JH
2671/* Off_t:
2672 * This symbol holds the type used to declare offsets in the kernel.
2673 * It can be int, long, off_t, etc... It may be necessary to include
2674 * <sys/types.h> to get any typedef'ed information.
2675 */
2676/* LSEEKSIZE:
2677 * This symbol holds the number of bytes used by the Off_t.
2678 */
2679/* Off_t_size:
2680 * This symbol holds the number of bytes used by the Off_t.
2681 */
2682#define Off_t $lseektype /* <offset> type */
2683#define LSEEKSIZE $lseeksize /* <offset> size */
2684#define Off_t_size $lseeksize /* <offset> size */
2685
2686/* Free_t:
2687 * This variable contains the return type of free(). It is usually
2688 * void, but occasionally int.
2689 */
2690/* Malloc_t:
2691 * This symbol is the type of pointer returned by malloc and realloc.
2692 */
2693#define Malloc_t $malloctype /**/
2694#define Free_t $freetype /**/
2695
2696/* MYMALLOC:
2697 * This symbol, if defined, indicates that we're using our own malloc.
2698 */
2699#$d_mymalloc MYMALLOC /**/
2700
2701/* Mode_t:
2702 * This symbol holds the type used to declare file modes
2703 * for systems calls. It is usually mode_t, but may be
2704 * int or unsigned short. It may be necessary to include <sys/types.h>
2705 * to get any typedef'ed information.
2706 */
2707#define Mode_t $modetype /* file mode parameter for system calls */
2708
2709/* VAL_O_NONBLOCK:
2710 * This symbol is to be used during open() or fcntl(F_SETFL) to turn on
2711 * non-blocking I/O for the file descriptor. Note that there is no way
2712 * back, i.e. you cannot turn it blocking again this way. If you wish to
2713 * alternatively switch between blocking and non-blocking, use the
2714 * ioctl(FIOSNBIO) call instead, but that is not supported by all devices.
2715 */
2716/* VAL_EAGAIN:
2717 * This symbol holds the errno error code set by read() when no data was
2718 * present on the non-blocking file descriptor.
2719 */
2720/* RD_NODATA:
2721 * This symbol holds the return code from read() when no data is present
2722 * on the non-blocking file descriptor. Be careful! If EOF_NONBLOCK is
2723 * not defined, then you can't distinguish between no data and EOF by
2724 * issuing a read(). You'll have to find another way to tell for sure!
2725 */
2726/* EOF_NONBLOCK:
2727 * This symbol, if defined, indicates to the C program that a read() on
2728 * a non-blocking file descriptor will return 0 on EOF, and not the value
2729 * held in RD_NODATA (-1 usually, in that case!).
2730 */
2731#define VAL_O_NONBLOCK $o_nonblock
2732#define VAL_EAGAIN $eagain
2733#define RD_NODATA $rd_nodata
2734#$d_eofnblk EOF_NONBLOCK
2735
a7fea17f
JH
2736/* NEED_VA_COPY:
2737 * This symbol, if defined, indicates that the system stores
2738 * the variable argument list datatype, va_list, in a format
2739 * that cannot be copied by simple assignment, so that some
2740 * other means must be used when copying is required.
2741 * As such systems vary in their provision (or non-provision)
2742 * of copying mechanisms, handy.h defines a platform-
2743 * independent macro, Perl_va_copy(src, dst), to do the job.
2744 */
2745#$need_va_copy NEED_VA_COPY /**/
2746
ff935051
JH
2747/* Netdb_host_t:
2748 * This symbol holds the type used for the 1st argument
2749 * to gethostbyaddr().
2750 */
2751/* Netdb_hlen_t:
2752 * This symbol holds the type used for the 2nd argument
2753 * to gethostbyaddr().
2754 */
2755/* Netdb_name_t:
2756 * This symbol holds the type used for the argument to
2757 * gethostbyname().
2758 */
2759/* Netdb_net_t:
2760 * This symbol holds the type used for the 1st argument to
2761 * getnetbyaddr().
2762 */
2763#define Netdb_host_t $netdb_host_type /**/
2764#define Netdb_hlen_t $netdb_hlen_type /**/
2765#define Netdb_name_t $netdb_name_type /**/
2766#define Netdb_net_t $netdb_net_type /**/
2767
7cedd6f8
JH
2768/* PERL_OTHERLIBDIRS:
2769 * This variable contains a colon-separated set of paths for the perl
2770 * binary to search for additional library files or modules.
2771 * These directories will be tacked to the end of @INC.
2772 * Perl will automatically search below each path for version-
2773 * and architecture-specific directories. See PERL_INC_VERSION_LIST
2774 * for more details.
2775 */
2776#$d_perl_otherlibdirs PERL_OTHERLIBDIRS "$otherlibdirs" /**/
2777
8175356b
JH
2778/* IVTYPE:
2779 * This symbol defines the C type used for Perl's IV.
cf2093f6 2780 */
8175356b
JH
2781/* UVTYPE:
2782 * This symbol defines the C type used for Perl's UV.
cf2093f6 2783 */
8175356b
JH
2784/* I8TYPE:
2785 * This symbol defines the C type used for Perl's I8.
0f4b6630 2786 */
8175356b
JH
2787/* U8TYPE:
2788 * This symbol defines the C type used for Perl's U8.
2789 */
2790/* I16TYPE:
2791 * This symbol defines the C type used for Perl's I16.
2792 */
2793/* U16TYPE:
2794 * This symbol defines the C type used for Perl's U16.
2795 */
2796/* I32TYPE:
2797 * This symbol defines the C type used for Perl's I32.
2798 */
2799/* U32TYPE:
2800 * This symbol defines the C type used for Perl's U32.
2801 */
2802/* I64TYPE:
2803 * This symbol defines the C type used for Perl's I64.
2804 */
2805/* U64TYPE:
2806 * This symbol defines the C type used for Perl's U64.
2807 */
2808/* NVTYPE:
2809 * This symbol defines the C type used for Perl's NV.
2810 */
2811/* IVSIZE:
2812 * This symbol contains the sizeof(IV).
2813 */
2814/* UVSIZE:
2815 * This symbol contains the sizeof(UV).
2816 */
a22e52b9
JH
2817/* I8SIZE:
2818 * This symbol contains the sizeof(I8).
2819 */
2820/* U8SIZE:
2821 * This symbol contains the sizeof(U8).
2822 */
2823/* I16SIZE:
2824 * This symbol contains the sizeof(I16).
2825 */
2826/* U16SIZE:
2827 * This symbol contains the sizeof(U16).
2828 */
2829/* I32SIZE:
2830 * This symbol contains the sizeof(I32).
2831 */
2832/* U32SIZE:
2833 * This symbol contains the sizeof(U32).
2834 */
2835/* I64SIZE:
2836 * This symbol contains the sizeof(I64).
2837 */
2838/* U64SIZE:
2839 * This symbol contains the sizeof(U64).
2840 */
b6592ff0
JH
2841/* NVSIZE:
2842 * This symbol contains the sizeof(NV).
2843 */
cce08f5b
JH
2844/* NV_PRESERVES_UV:
2845 * This symbol, if defined, indicates that a variable of type NVTYPE
bd026c32 2846 * can preserve all the bits of a variable of type UVTYPE.
cce08f5b 2847 */
d6c14000
JH
2848/* NV_PRESERVES_UV_BITS:
2849 * This symbol contains the number of bits a variable of type NVTYPE
2850 * can preserve of a variable of type UVTYPE.
2851 */
8175356b
JH
2852#define IVTYPE $ivtype /**/
2853#define UVTYPE $uvtype /**/
2854#define I8TYPE $i8type /**/
2855#define U8TYPE $u8type /**/
2856#define I16TYPE $i16type /**/
2857#define U16TYPE $u16type /**/
2858#define I32TYPE $i32type /**/
2859#define U32TYPE $u32type /**/
b4eb6b3d
JH
2860#ifdef HAS_QUAD
2861#define I64TYPE $i64type /**/
2862#define U64TYPE $u64type /**/
2863#endif
8175356b
JH
2864#define NVTYPE $nvtype /**/
2865#define IVSIZE $ivsize /**/
2866#define UVSIZE $uvsize /**/
a22e52b9
JH
2867#define I8SIZE $i8size /**/
2868#define U8SIZE $u8size /**/
2869#define I16SIZE $i16size /**/
2870#define U16SIZE $u16size /**/
2871#define I32SIZE $i32size /**/
2872#define U32SIZE $u32size /**/
b4eb6b3d
JH
2873#ifdef HAS_QUAD
2874#define I64SIZE $i64size /**/
2875#define U64SIZE $u64size /**/
2876#endif
b6592ff0 2877#define NVSIZE $nvsize /**/
78691af5 2878#$d_nv_preserves_uv NV_PRESERVES_UV
d6c14000 2879#define NV_PRESERVES_UV_BITS $d_nv_preserves_uv_bits
8175356b
JH
2880
2881/* IVdf:
2882 * This symbol defines the format string used for printing a Perl IV
2883 * as a signed decimal integer.
2884 */
2885/* UVuf:
2886 * This symbol defines the format string used for printing a Perl UV
2887 * as an unsigned decimal integer.
2888 */
2889/* UVof:
2890 * This symbol defines the format string used for printing a Perl UV
2891 * as an unsigned octal integer.
2892 */
2893/* UVxf:
2894 * This symbol defines the format string used for printing a Perl UV
6b4667fc
A
2895 * as an unsigned hexadecimal integer in lowercase abcdef.
2896 */
159fae86
JH
2897/* UVXf:
2898 * This symbol defines the format string used for printing a Perl UV
2899 * as an unsigned hexadecimal integer in uppercase ABCDEF.
2900 */
6b4667fc
A
2901/* NVef:
2902 * This symbol defines the format string used for printing a Perl NV
2903 * using %e-ish floating point format.
2904 */
2905/* NVff:
2906 * This symbol defines the format string used for printing a Perl NV
2907 * using %f-ish floating point format.
2908 */
2909/* NVgf:
2910 * This symbol defines the format string used for printing a Perl NV
2911 * using %g-ish floating point format.
cf2093f6 2912 */
8175356b
JH
2913#define IVdf $ivdformat /**/
2914#define UVuf $uvuformat /**/
2915#define UVof $uvoformat /**/
2916#define UVxf $uvxformat /**/
159fae86 2917#define UVXf $uvXUformat /**/
6b4667fc
A
2918#define NVef $nveformat /**/
2919#define NVff $nvfformat /**/
2920#define NVgf $nvgformat /**/
cf2093f6 2921
ff935051
JH
2922/* Pid_t:
2923 * This symbol holds the type used to declare process ids in the kernel.
2924 * It can be int, uint, pid_t, etc... It may be necessary to include
2925 * <sys/types.h> to get any typedef'ed information.
2926 */
2927#define Pid_t $pidtype /* PID type */
2928
2929/* PRIVLIB:
2930 * This symbol contains the name of the private library for this package.
2931 * The library is private in the sense that it needn't be in anyone's
2932 * execution path, but it should be accessible by the world. The program
2933 * should be prepared to do ~ expansion.
2934 */
2935/* PRIVLIB_EXP:
2936 * This symbol contains the ~name expanded version of PRIVLIB, to be used
2937 * in programs that are not prepared to deal with ~ expansion at run-time.
2938 */
2939#define PRIVLIB "$privlib" /**/
2940#define PRIVLIB_EXP "$privlibexp" /**/
2941
2942/* PTRSIZE:
2943 * This symbol contains the size of a pointer, so that the C preprocessor
2944 * can make decisions based on it. It will be sizeof(void *) if
2945 * the compiler supports (void *); otherwise it will be
2946 * sizeof(char *).
2947 */
2948#define PTRSIZE $ptrsize /**/
2949
2950/* Drand01:
2951 * This macro is to be used to generate uniformly distributed
2952 * random numbers over the range [0., 1.[. You may have to supply
2953 * an 'extern double drand48();' in your program since SunOS 4.1.3
2954 * doesn't provide you with anything relevant in it's headers.
2955 * See HAS_DRAND48_PROTO.
2956 */
2957/* Rand_seed_t:
2958 * This symbol defines the type of the argument of the
2959 * random seed function.
2960 */
2961/* seedDrand01:
2962 * This symbol defines the macro to be used in seeding the
2963 * random number generator (see Drand01).
2964 */
2965/* RANDBITS:
2966 * This symbol indicates how many bits are produced by the
2967 * function used to generate normalized random numbers.
2968 * Values include 15, 16, 31, and 48.
2969 */
2970#define Drand01() $drand01 /**/
2971#define Rand_seed_t $randseedtype /**/
2972#define seedDrand01(x) $seedfunc((Rand_seed_t)x) /**/
2973#define RANDBITS $randbits /**/
2974
5ff3f7a4
GS
2975/* SELECT_MIN_BITS:
2976 * This symbol holds the minimum number of bits operated by select.
2977 * That is, if you do select(n, ...), how many bits at least will be
2978 * cleared in the masks if some activity is detected. Usually this
2979 * is either n or 32*ceil(n/32), especially many little-endians do
2980 * the latter. This is only useful if you have select(), naturally.
2981 */
ff935051
JH
2982#define SELECT_MIN_BITS $selectminbits /**/
2983
2984/* Select_fd_set_t:
2985 * This symbol holds the type used for the 2nd, 3rd, and 4th
2986 * arguments to select. Usually, this is 'fd_set *', if HAS_FD_SET
2987 * is defined, and 'int *' otherwise. This is only useful if you
2988 * have select(), of course.
2989 */
2990#define Select_fd_set_t $selecttype /**/
2991
2992/* SIG_NAME:
2993 * This symbol contains a list of signal names in order of
2994 * signal number. This is intended
2995 * to be used as a static array initialization, like this:
2996 * char *sig_name[] = { SIG_NAME };
2997 * The signals in the list are separated with commas, and each signal
2998 * is surrounded by double quotes. There is no leading SIG in the signal
2999 * name, i.e. SIGQUIT is known as "QUIT".
3000 * Gaps in the signal numbers (up to NSIG) are filled in with NUMnn,
3001 * etc., where nn is the actual signal number (e.g. NUM37).
3002 * The signal number for sig_name[i] is stored in sig_num[i].
3003 * The last element is 0 to terminate the list with a NULL. This
3004 * corresponds to the 0 at the end of the sig_num list.
3005 */
3006/* SIG_NUM:
3007 * This symbol contains a list of signal numbers, in the same order as the
3008 * SIG_NAME list. It is suitable for static array initialization, as in:
3009 * int sig_num[] = { SIG_NUM };
3010 * The signals in the list are separated with commas, and the indices
3011 * within that list and the SIG_NAME list match, so it's easy to compute
3012 * the signal name from a number or vice versa at the price of a small
3013 * dynamic linear lookup.
3014 * Duplicates are allowed, but are moved to the end of the list.
3015 * The signal number corresponding to sig_name[i] is sig_number[i].
3016 * if (i < NSIG) then sig_number[i] == i.
3017 * The last element is 0, corresponding to the 0 at the end of
3018 * the sig_name list.
3019 */
76d3c696
JH
3020/* SIG_SIZE:
3021 * This variable contains the number of elements of the sig_name
bbbf5d77 3022 * and sig_num arrays, excluding the final NULL entry.
76d3c696 3023 */
ff935051
JH
3024#define SIG_NAME $sig_name_init /**/
3025#define SIG_NUM $sig_num_init /**/
76d3c696 3026#define SIG_SIZE $sig_size /**/
ff935051
JH
3027
3028/* SITEARCH:
3029 * This symbol contains the name of the private library for this package.
3030 * The library is private in the sense that it needn't be in anyone's
3031 * execution path, but it should be accessible by the world. The program
3032 * should be prepared to do ~ expansion.
3033 * The standard distribution will put nothing in this directory.
3034 * After perl has been installed, users may install their own local
3035 * architecture-dependent modules in this directory with
3036 * MakeMaker Makefile.PL
3037 * or equivalent. See INSTALL for details.
3038 */
3039/* SITEARCH_EXP:
3040 * This symbol contains the ~name expanded version of SITEARCH, to be used
3041 * in programs that are not prepared to deal with ~ expansion at run-time.
3042 */
3043#define SITEARCH "$sitearch" /**/
3044#define SITEARCH_EXP "$sitearchexp" /**/
3045
3046/* SITELIB:
3047 * This symbol contains the name of the private library for this package.
3048 * The library is private in the sense that it needn't be in anyone's
3049 * execution path, but it should be accessible by the world. The program
3050 * should be prepared to do ~ expansion.
3051 * The standard distribution will put nothing in this directory.
3052 * After perl has been installed, users may install their own local
3053 * architecture-independent modules in this directory with
3054 * MakeMaker Makefile.PL
3055 * or equivalent. See INSTALL for details.
3056 */
3057/* SITELIB_EXP:
3058 * This symbol contains the ~name expanded version of SITELIB, to be used
3059 * in programs that are not prepared to deal with ~ expansion at run-time.
3060 */
526fdc24
MS
3061/* SITELIB_STEM:
3062 * This define is SITELIB_EXP with any trailing version-specific component
3063 * removed. The elements in inc_version_list (inc_version_list.U) can
3064 * be tacked onto this variable to generate a list of directories to search.
3065 */
ff935051
JH
3066#define SITELIB "$sitelib" /**/
3067#define SITELIB_EXP "$sitelibexp" /**/
526fdc24 3068#define SITELIB_STEM "$sitelib_stem" /**/
ff935051 3069
a13ea748
JH
3070/* Size_t_size:
3071 * This symbol holds the size of a Size_t in bytes.
3072 */
3073#define Size_t_size $sizesize /* */
3074
ff935051
JH
3075/* Size_t:
3076 * This symbol holds the type used to declare length parameters
3077 * for string functions. It is usually size_t, but may be
3078 * unsigned long, int, etc. It may be necessary to include
3079 * <sys/types.h> to get any typedef'ed information.
3080 */
3081#define Size_t $sizetype /* length paramater for string functions */
3082
1acc7ade
JH
3083/* Sock_size_t:
3084 * This symbol holds the type used for the size argument of
3085 * various socket calls (just the base type, not the pointer-to).
3086 */
3087#define Sock_size_t $socksizetype /**/
3088
ff935051
JH
3089/* SSize_t:
3090 * This symbol holds the type used by functions that return
3091 * a count of bytes or an error condition. It must be a signed type.
3092 * It is usually ssize_t, but may be long or int, etc.
3093 * It may be necessary to include <sys/types.h> or <unistd.h>
3094 * to get any typedef'ed information.
3095 * We will pick a type such that sizeof(SSize_t) == sizeof(Size_t).
3096 */
3097#define SSize_t $ssizetype /* signed count of bytes */
5ff3f7a4 3098
568ef1f6 3099/* STARTPERL:
3100 * This variable contains the string to put in front of a perl
3101 * script to make sure (one hopes) that it runs with perl and not
3102 * some shell.
3103 */
3104#define STARTPERL "$startperl" /**/
3105
a7fea17f
JH
3106/* STDCHAR:
3107 * This symbol is defined to be the type of char used in stdio.h.
3108 * It has the values "unsigned char" or "char".
3109 */
3110#define STDCHAR $stdchar /**/
3111
ed39a0f2
JH
3112/* HAS_STDIO_STREAM_ARRAY:
3113 * This symbol, if defined, tells that there is an array
3114 * holding the stdio streams.
3115 */
767df6a1 3116/* STDIO_STREAM_ARRAY:
ed39a0f2
JH
3117 * This symbol tells the name of the array holding the stdio streams.
3118 * Usual values include _iob, __iob, and __sF.
767df6a1 3119 */
ed39a0f2 3120#$d_stdio_stream_array HAS_STDIO_STREAM_ARRAY /**/
767df6a1
JH
3121#define STDIO_STREAM_ARRAY $stdio_stream_array
3122
ff935051
JH
3123/* Uid_t_f:
3124 * This symbol defines the format string used for printing a Uid_t.
cf2093f6 3125 */
ff935051
JH
3126#define Uid_t_f $uidformat /**/
3127
23dcd6c8
JH
3128/* Uid_t_sign:
3129 * This symbol holds the signedess of a Uid_t.
3130 * 1 for unsigned, -1 for signed.
3131 */
3132#define Uid_t_sign $uidsign /* UID sign */
3133
ff935051
JH
3134/* Uid_t_size:
3135 * This symbol holds the size of a Uid_t in bytes.
3136 */
3137#define Uid_t_size $uidsize /* UID size */
3138
3139/* Uid_t:
3140 * This symbol holds the type used to declare user ids in the kernel.
3141 * It can be int, ushort, uid_t, etc... It may be necessary to include
3142 * <sys/types.h> to get any typedef'ed information.
3143 */
3144#define Uid_t $uidtype /* UID type */
cf2093f6 3145
10cc9d2a 3146/* USE_64_BIT_INT:
bd9b35c9
JH
3147 * This symbol, if defined, indicates that 64-bit integers should
3148 * be used when available. If not defined, the native integers
49c10eea
JH
3149 * will be employed (be they 32 or 64 bits). The minimal possible
3150 * 64-bitness is used, just enough to get 64-bit integers into Perl.
3151 * This may mean using for example "long longs", while your memory
3152 * may still be limited to 2 gigabytes.
5ff3f7a4 3153 */
10cc9d2a
JH
3154/* USE_64_BIT_ALL:
3155 * This symbol, if defined, indicates that 64-bit integers should
3156 * be used when available. If not defined, the native integers
3157 * will be used (be they 32 or 64 bits). The maximal possible
3158 * 64-bitness is employed: LP64 or ILP64, meaning that you will
3159 * be able to use more than 2 gigabytes of memory. This mode is
3160 * even more binary incompatible than USE_64_BIT_INT. You may not
3161 * be able to run the resulting executable in a 32-bit CPU at all or
3162 * you may need at least to reboot your OS to 64-bit mode.
3163 */
b4eb6b3d
JH
3164#ifndef USE_64_BIT_INT
3165#$use64bitint USE_64_BIT_INT /**/
3166#endif
3167
3168#ifndef USE_64_BIT_ALL
3169#$use64bitall USE_64_BIT_ALL /**/
3170#endif
49c10eea 3171
09458382
JH
3172/* USE_LARGE_FILES:
3173 * This symbol, if defined, indicates that large file support
c890dc6c 3174 * should be used when available.
09458382 3175 */
b4eb6b3d
JH
3176#ifndef USE_LARGE_FILES
3177#$uselargefiles USE_LARGE_FILES /**/
3178#endif
09458382 3179
b0ce926a
JH
3180/* USE_LONG_DOUBLE:
3181 * This symbol, if defined, indicates that long doubles should
3182 * be used when available.
3183 */
b4eb6b3d
JH
3184#ifndef USE_LONG_DOUBLE
3185#$uselongdouble USE_LONG_DOUBLE /**/
3186#endif
d7d93a81 3187
c71a9cee
JH
3188/* USE_MORE_BITS:
3189 * This symbol, if defined, indicates that 64-bit interfaces and
3190 * long doubles should be used when available.
3191 */
b4eb6b3d
JH
3192#ifndef USE_MORE_BITS
3193#$usemorebits USE_MORE_BITS /**/
3194#endif
b0ce926a 3195
104d25b7
JH
3196/* MULTIPLICITY:
3197 * This symbol, if defined, indicates that Perl should
3198 * be built to use multiplicity.
3199 */
b4eb6b3d
JH
3200#ifndef MULTIPLICITY
3201#$usemultiplicity MULTIPLICITY /**/
3202#endif
104d25b7 3203
e876cf0b 3204/* USE_PERLIO:
3205 * This symbol, if defined, indicates that the PerlIO abstraction should
3206 * be used throughout. If not defined, stdio should be
3207 * used in a fully backward compatible manner.
3208 */
b4eb6b3d
JH
3209#ifndef USE_PERLIO
3210#$useperlio USE_PERLIO /**/
3211#endif
e876cf0b 3212
29209bc5
JH
3213/* USE_SOCKS:
3214 * This symbol, if defined, indicates that Perl should
3215 * be built to use socks.
3216 */
d7d93a81 3217#ifndef USE_SOCKS
29209bc5 3218#$usesocks USE_SOCKS /**/
d7d93a81 3219#endif
29209bc5 3220
aaacdc8b
GS
3221/* USE_ITHREADS:
3222 * This symbol, if defined, indicates that Perl should be built to
3223 * use the interpreter-based threading implementation.
3224 */
3225/* USE_5005THREADS:
3226 * This symbol, if defined, indicates that Perl should be built to
3227 * use the 5.005-based threading implementation.
dfe9444c 3228 */
693762b4
AD
3229/* OLD_PTHREADS_API:
3230 * This symbol, if defined, indicates that Perl should
3231 * be built to use the old draft POSIX threads API.
3232 */
9514c62b
JH
3233/* USE_REENTRANT_API:
3234 * This symbol, if defined, indicates that Perl should
3235 * try to use the various _r versions of library functions.
3236 * This is extremely experimental.
3237 */
aaacdc8b
GS
3238#$use5005threads USE_5005THREADS /**/
3239#$useithreads USE_ITHREADS /**/
b4eb6b3d
JH
3240#if defined(USE_5005THREADS) && !defined(USE_ITHREADS)
3241#define USE_THREADS /* until src is revised*/
3242#endif
693762b4 3243#$d_oldpthreads OLD_PTHREADS_API /**/
9514c62b 3244#$usereentrant USE_REENTRANT_API /**/
8e07c86e 3245
1acc7ade
JH
3246/* PERL_VENDORARCH:
3247 * If defined, this symbol contains the name of a private library.
3248 * The library is private in the sense that it needn't be in anyone's
3249 * execution path, but it should be accessible by the world.
3250 * It may have a ~ on the front.
3251 * The standard distribution will put nothing in this directory.
3252 * Vendors who distribute perl may wish to place their own
3253 * architecture-dependent modules and extensions in this directory with
3254 * MakeMaker Makefile.PL INSTALLDIRS=vendor
3255 * or equivalent. See INSTALL for details.
3256 */
526fdc24
MS
3257/* PERL_VENDORARCH_EXP:
3258 * This symbol contains the ~name expanded version of PERL_VENDORARCH, to be used
3259 * in programs that are not prepared to deal with ~ expansion at run-time.
3260 */
1acc7ade 3261#$d_vendorarch PERL_VENDORARCH "$vendorarch" /**/
526fdc24
MS
3262#$d_vendorarch PERL_VENDORARCH_EXP "$vendorarchexp" /**/
3263
ff935051
JH
3264/* PERL_VENDORLIB_EXP:
3265 * This symbol contains the ~name expanded version of VENDORLIB, to be used
3266 * in programs that are not prepared to deal with ~ expansion at run-time.
887d2938 3267 */
526fdc24
MS
3268/* PERL_VENDORLIB_STEM:
3269 * This define is PERL_VENDORLIB_EXP with any trailing version-specific component
3270 * removed. The elements in inc_version_list (inc_version_list.U) can
3271 * be tacked onto this variable to generate a list of directories to search.
3272 */
ff935051 3273#$d_vendorlib PERL_VENDORLIB_EXP "$vendorlibexp" /**/
526fdc24 3274#$d_vendorlib PERL_VENDORLIB_STEM "$vendorlib_stem" /**/
887d2938 3275
b4eb6b3d
JH
3276/* VOIDFLAGS:
3277 * This symbol indicates how much support of the void type is given by this
3278 * compiler. What various bits mean:
3279 *
3280 * 1 = supports declaration of void
3281 * 2 = supports arrays of pointers to functions returning void
3282 * 4 = supports comparisons between pointers to void functions and
3283 * addresses of void functions
3284 * 8 = suports declaration of generic void pointers
3285 *
3286 * The package designer should define VOIDUSED to indicate the requirements
3287 * of the package. This can be done either by #defining VOIDUSED before
3288 * including config.h, or by defining defvoidused in Myinit.U. If the
3289 * latter approach is taken, only those flags will be tested. If the
3290 * level of void support necessary is not present, defines void to int.
3291 */
3292#ifndef VOIDUSED
3293#define VOIDUSED $defvoidused
3294#endif
3295#define VOIDFLAGS $voidflags
3296#if (VOIDFLAGS & VOIDUSED) != VOIDUSED
3297#define void int /* is void to be avoided? */
3298#define M_VOID /* Xenix strikes again */
3299#endif
3300
fe749a9f
JH
3301/* PERL_XS_APIVERSION:
3302 * This variable contains the version of the oldest perl binary
3303 * compatible with the present perl. perl.c:incpush() and
3304 * lib/lib.pm will automatically search in $sitearch for older
3305 * directories across major versions back to xs_apiversion.
3306 * This is only useful if you have a perl library directory tree
3307 * structured like the default one.
3308 * See INSTALL for how this works.
3309 * The versioned site_perl directory was introduced in 5.005,
3310 * so that is the lowest possible value.
3311 * Since this can depend on compile time options (such as
3312 * bincompat) it is set by Configure. Other non-default sources
3313 * of potential incompatibility, such as multiplicity, threads,
3314 * debugging, 64bits, sfio, etc., are not checked for currently,
3315 * though in principle we could go snooping around in old
3316 * Config.pm files.
3317 */
3318/* PERL_PM_APIVERSION:
3319 * This variable contains the version of the oldest perl
3320 * compatible with the present perl. (That is, pure perl modules
3321 * written for pm_apiversion will still work for the current
3322 * version). perl.c:incpush() and lib/lib.pm will automatically
3323 * search in $sitelib for older directories across major versions
3324 * back to pm_apiversion. This is only useful if you have a perl
3325 * library directory tree structured like the default one. The
3326 * versioned site_perl library was introduced in 5.005, so that's
3327 * the default setting for this variable. It's hard to imagine
3328 * it changing before Perl6. It is included here for symmetry
3329 * with xs_apiveprsion -- the searching algorithms will
3330 * (presumably) be similar.
3331 * See the INSTALL file for how this works.
3332 */
3333#define PERL_XS_APIVERSION "$xs_apiversion"
3334#define PERL_PM_APIVERSION "$pm_apiversion"
3335
5440bc8e
JH
3336/* SETUID_SCRIPTS_ARE_SECURE_NOW:
3337 * This symbol, if defined, indicates that the bug that prevents
3338 * setuid scripts from being secure is not present in this kernel.
3339 */
3340/* DOSUID:
3341 * This symbol, if defined, indicates that the C program should
3342 * check the script that it is executing for setuid/setgid bits, and
3343 * attempt to emulate setuid/setgid on systems that have disabled
3344 * setuid #! scripts because the kernel can't do it securely.
3345 * It is up to the package designer to make sure that this emulation
3346 * is done securely. Among other things, it should do an fstat on
3347 * the script it just opened to make sure it really is a setuid/setgid
3348 * script, it should make sure the arguments passed correspond exactly
3349 * to the argument on the #! line, and it should not trust any
3350 * subprocesses to which it must pass the filename rather than the
3351 * file descriptor of the script to be executed.
3352 */
3353#$d_suidsafe SETUID_SCRIPTS_ARE_SECURE_NOW /**/
3354#$d_dosuid DOSUID /**/
3355
3356/* I_STDARG:
3357 * This symbol, if defined, indicates that <stdarg.h> exists and should
3358 * be included.
3359 */
3360/* I_VARARGS:
3361 * This symbol, if defined, indicates to the C program that it should
3362 * include <varargs.h>.
3363 */
3364#$i_stdarg I_STDARG /**/
3365#$i_varargs I_VARARGS /**/
3366
3367/* USE_CROSS_COMPILE:
3368 * This symbol, if defined, indicates that Perl is being cross-compiled.
3369 */
3370/* PERL_TARGETARCH:
3371 * This symbol, if defined, indicates the target architecture
3372 * Perl has been cross-compiled to. Undefined if not a cross-compile.
3373 */
3374#ifndef USE_CROSS_COMPILE
3375#$usecrosscompile USE_CROSS_COMPILE /**/
3376#define PERL_TARGETARCH "$targetarch" /**/
3377#endif
3378
2ef53570
JH
3379/* HAS_DBMINIT_PROTO:
3380 * This symbol, if defined, indicates that the system provides
3381 * a prototype for the dbminit() function. Otherwise, it is up
3382 * to the program to supply one. A good guess is
3383 * extern int dbminit(char *);
3384 */
3385#$d_dbminitproto HAS_DBMINIT_PROTO /**/
3386
3387/* HAS_FLOCK_PROTO:
3388 * This symbol, if defined, indicates that the system provides
3389 * a prototype for the flock() function. Otherwise, it is up
3390 * to the program to supply one. A good guess is
3391 * extern int flock(int, int);
3392 */
3393#$d_flockproto HAS_FLOCK_PROTO /**/
3394
640374d0
JH
3395/* HAS_REALPATH:
3396 * This symbol, if defined, indicates that the realpath routine is
3397 * available to do resolve paths.
3398 */
3399#$d_realpath HAS_REALPATH /**/
3400
983dbef6
JH
3401/* HAS_SIGPROCMASK:
3402 * This symbol, if defined, indicates that the sigprocmask
3403 * system call is available to examine or change the signal mask
3404 * of the calling process.
3405 */
3406#$d_sigprocmask HAS_SIGPROCMASK /**/
3407
49a78c82
JH
3408/* HAS_SOCKATMARK:
3409 * This symbol, if defined, indicates that the sockatmark routine is
3410 * available to test whether a socket is at the out-of-band mark.
3411 */
3412#$d_sockatmark HAS_SOCKATMARK /**/
3413
2ef53570
JH
3414/* HAS_SOCKATMARK_PROTO:
3415 * This symbol, if defined, indicates that the system provides
3416 * a prototype for the sockatmark() function. Otherwise, it is up
3417 * to the program to supply one. A good guess is
3418 * extern int sockatmark _((int));
3419 */
3420#$d_sockatmarkproto HAS_SOCKATMARK_PROTO /**/
3421
eef837ea
JH
3422/* HAS_SETRESGID_PROTO:
3423 * This symbol, if defined, indicates that the system provides
3424 * a prototype for the setresgid() function. Otherwise, it is up
3425 * to the program to supply one. Good guesses are
3426 * extern int setresgid(uid_t ruid, uid_t euid, uid_t suid);
3427 */
3428#$d_sresgproto HAS_SETRESGID_PROTO /**/
3429
640374d0
JH
3430/* HAS_SETRESUID_PROTO:
3431 * This symbol, if defined, indicates that the system provides
3432 * a prototype for the setresuid() function. Otherwise, it is up
3433 * to the program to supply one. Good guesses are
3434 * extern int setresuid(uid_t ruid, uid_t euid, uid_t suid);
3435 */
3436#$d_sresuproto HAS_SETRESUID_PROTO /**/
3437
b3c85772
JH
3438/* HAS_STRFTIME:
3439 * This symbol, if defined, indicates that the strftime routine is
3440 * available to do time formatting.
3441 */
3442#$d_strftime HAS_STRFTIME /**/
3443
2ef53570
JH
3444/* HAS_SYSCALL_PROTO:
3445 * This symbol, if defined, indicates that the system provides
3446 * a prototype for the syscall() function. Otherwise, it is up
3447 * to the program to supply one. Good guesses are
3448 * extern int syscall(int, ...);
3449 * extern int syscall(long, ...);
3450 */
3451#$d_syscallproto HAS_SYSCALL_PROTO /**/
3452
4e0554ec
JH
3453/* U32_ALIGNMENT_REQUIRED:
3454 * This symbol, if defined, indicates that you must access
3455 * character data through U32-aligned pointers.
3456 */
3457#$d_u32align U32_ALIGNMENT_REQUIRED /**/
3458
2ef53570
JH
3459/* HAS_USLEEP_PROTO:
3460 * This symbol, if defined, indicates that the system provides
3461 * a prototype for the usleep() function. Otherwise, it is up
3462 * to the program to supply one. A good guess is
3463 * extern int usleep(useconds_t);
3464 */
3465#$d_usleepproto HAS_USLEEP_PROTO /**/
3466
fe14fcc3 3467#endif
8d063cd8 3468!GROK!THIS!