This is a live mirror of the Perl 5 development currently hosted at https://github.com/perl/perl5
Integrate mainline
[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
aaacdc8b
GS
949/* INTSIZE:
950 * This symbol contains the value of sizeof(int) so that the C
951 * preprocessor can make decisions based on it.
952 */
953/* LONGSIZE:
954 * This symbol contains the value of sizeof(long) so that the C
955 * preprocessor can make decisions based on it.
956 */
957/* SHORTSIZE:
958 * This symbol contains the value of sizeof(short) so that the C
959 * preprocessor can make decisions based on it.
960 */
961#define INTSIZE $intsize /**/
962#define LONGSIZE $longsize /**/
963#define SHORTSIZE $shortsize /**/
964
965/* MULTIARCH:
966 * This symbol, if defined, signifies that the build
967 * process will produce some binary files that are going to be
968 * used in a cross-platform environment. This is the case for
969 * example with the NeXT "fat" binaries that contain executables
970 * for several CPUs.
971 */
972#$multiarch MULTIARCH /**/
973
de1c2614
JH
974/* HAS_QUAD:
975 * This symbol, if defined, tells that there's a 64-bit integer type,
1b8cd678
JH
976 * Quad_t, and its unsigned counterpar, Uquad_t. QUADKIND will be one
977 * of QUAD_IS_INT, QUAD_IS_LONG, QUAD_IS_LONG_LONG, or QUAD_IS_INT64_T.
a22e52b9 978 */
de1c2614 979#$d_quad HAS_QUAD /**/
b4eb6b3d
JH
980#ifdef HAS_QUAD
981# define Quad_t $quadtype /**/
982# define Uquad_t $uquadtype /**/
983# define QUADKIND $quadkind /**/
984# define QUAD_IS_INT 1
985# define QUAD_IS_LONG 2
986# define QUAD_IS_LONG_LONG 3
987# define QUAD_IS_INT64_T 4
988#endif
a22e52b9 989
5ff3f7a4
GS
990/* HAS_ACCESSX:
991 * This symbol, if defined, indicates that the accessx routine is
992 * available to do extended access checks.
993 */
994#$d_accessx HAS_ACCESSX /**/
995
996/* HAS_EACCESS:
997 * This symbol, if defined, indicates that the eaccess routine is
998 * available to do extended access checks.
999 */
1000#$d_eaccess HAS_EACCESS /**/
1001
1002/* I_SYS_ACCESS:
1003 * This symbol, if defined, indicates to the C program that it should
85ab1d1d 1004 * include <sys/access.h>.
5ff3f7a4
GS
1005 */
1006#$i_sysaccess I_SYS_ACCESS /**/
1007
1008/* I_SYS_SECURITY:
1009 * This symbol, if defined, indicates to the C program that it should
1010 * include <sys/security.h>.
1011 */
1012#$i_syssecrt I_SYS_SECURITY /**/
1013
ff935051
JH
1014/* OSNAME:
1015 * This symbol contains the name of the operating system, as determined
1016 * by Configure. You shouldn't rely on it too much; the specific
1017 * feature tests from Configure are generally more reliable.
1018 */
40a39f85 1019/* OSVERS:
8e9464f1
JH
1020 * This symbol contains the version of the operating system, as determined
1021 * by Configure. You shouldn't rely on it too much; the specific
1022 * feature tests from Configure are generally more reliable.
1023 */
40a39f85
JH
1024#define OSNAME "$osname" /**/
1025#define OSVERS "$osvers" /**/
8e9464f1 1026
dfe9444c 1027/* MEM_ALIGNBYTES:
68c15b6f 1028 * This symbol contains the number of bytes required to align a
87b71857
JH
1029 * double, or a long double when applicable. Usual values are 2,
1030 * 4 and 8. The default is eight, for safety.
5f05dabc 1031 */
5440bc8e 1032#if defined(USE_CROSS_COMPILE) || defined(MULTIARCH)
b4eb6b3d
JH
1033# define MEM_ALIGNBYTES 8
1034#else
1035#define MEM_ALIGNBYTES $alignbytes
1036#endif
5f05dabc 1037
ff935051
JH
1038/* ARCHLIB:
1039 * This variable, if defined, holds the name of the directory in
1040 * which the user wants to put architecture-dependent public
1041 * library files for $package. It is most often a local directory
1042 * such as /usr/local/lib. Programs using this variable must be
1043 * prepared to deal with filename expansion. If ARCHLIB is the
1044 * same as PRIVLIB, it is not defined, since presumably the
1045 * program already searches PRIVLIB.
1046 */
1047/* ARCHLIB_EXP:
1048 * This symbol contains the ~name expanded version of ARCHLIB, to be used
1049 * in programs that are not prepared to deal with ~ expansion at run-time.
1050 */
1051#$d_archlib ARCHLIB "$archlib" /**/
1052#$d_archlib ARCHLIB_EXP "$archlibexp" /**/
1053
1054/* ARCHNAME:
1055 * This symbol holds a string representing the architecture name.
1056 * It may be used to construct an architecture-dependant pathname
1057 * where library files may be held under a private library, for
1058 * instance.
1059 */
1060#define ARCHNAME "$archname" /**/
1061
1062/* HAS_ATOLF:
1063 * This symbol, if defined, indicates that the atolf routine is
1064 * available to convert strings into long doubles.
1065 */
1066#$d_atolf HAS_ATOLF /**/
1067
1068/* HAS_ATOLL:
1069 * This symbol, if defined, indicates that the atoll routine is
1070 * available to convert strings into long longs.
1071 */
1072#$d_atoll HAS_ATOLL /**/
1073
1074/* BIN:
1075 * This symbol holds the path of the bin directory where the package will
1076 * be installed. Program must be prepared to deal with ~name substitution.
1077 */
1078/* BIN_EXP:
1079 * This symbol is the filename expanded version of the BIN symbol, for
1080 * programs that do not want to deal with that at run-time.
1081 */
1082#define BIN "$bin" /**/
1083#define BIN_EXP "$binexp" /**/
1084
1085/* PERL_BINCOMPAT_5005:
f78bfc9c 1086 * This symbol, if defined, indicates that this version of Perl should be
ff935051
JH
1087 * binary-compatible with Perl 5.005. This is impossible for builds
1088 * that use features like threads and multiplicity it is always $undef
1089 * for those versions.
1090 */
1091#$d_bincompat5005 PERL_BINCOMPAT_5005 /**/
1092
8e07c86e 1093/* BYTEORDER:
e876cf0b 1094 * This symbol holds the hexadecimal constant defined in byteorder,
8e07c86e 1095 * i.e. 0x1234 or 0x4321, etc...
68c15b6f
HM
1096 * If the compiler supports cross-compiling or multiple-architecture
1097 * binaries (eg. on NeXT systems), use compiler-defined macros to
1098 * determine the byte order.
7bac28a0 1099 * On NeXT 3.2 (and greater), you can build "Fat" Multiple Architecture
e876cf0b 1100 * Binaries (MAB) on either big endian or little endian machines.
1101 * The endian-ness is available at compile-time. This only matters
1102 * for perl, where the config.h can be generated and installed on
1103 * one system, and used by a different architecture to build an
1104 * extension. Older versions of NeXT that might not have
1105 * defined either *_ENDIAN__ were all on Motorola 680x0 series,
1106 * so the default case (for NeXT) is big endian to catch them.
1107 * This might matter for NeXT 3.0.
8e07c86e 1108 */
5440bc8e 1109#if defined(USE_CROSS_COMPILE) || defined(MULTIARCH)
b4eb6b3d
JH
1110# ifdef __LITTLE_ENDIAN__
1111# if LONGSIZE == 4
1112# define BYTEORDER 0x1234
1113# else
1114# if LONGSIZE == 8
1115# define BYTEORDER 0x12345678
1116# endif
1117# endif
1118# else
1119# ifdef __BIG_ENDIAN__
1120# if LONGSIZE == 4
1121# define BYTEORDER 0x4321
1122# else
1123# if LONGSIZE == 8
1124# define BYTEORDER 0x87654321
1125# endif
1126# endif
1127# endif
1128# endif
1129# if !defined(BYTEORDER) && (defined(NeXT) || defined(__NeXT__))
1130# define BYTEORDER 0x4321
1131# endif
1132#else
1133#define BYTEORDER 0x$byteorder /* large digits for MSB */
1134#endif /* NeXT */
8e07c86e 1135
ff935051
JH
1136/* CAT2:
1137 * This macro catenates 2 tokens together.
1138 */
1139/* STRINGIFY:
1140 * This macro surrounds its token with double quotes.
1141 */
b4eb6b3d 1142#if $cpp_stuff == 1
497711e7
GS
1143#define CAT2(a,b) a/**/b
1144#define STRINGIFY(a) "a"
b4eb6b3d
JH
1145 /* If you can get stringification with catify, tell me how! */
1146#endif
1147#if $cpp_stuff == 42
1148#define PeRl_CaTiFy(a, b) a ## b
1149#define PeRl_StGiFy(a) #a
1150/* the additional level of indirection enables these macros to be
1151 * used as arguments to other macros. See K&R 2nd ed., page 231. */
497711e7 1152#define CAT2(a,b) PeRl_CaTiFy(a,b)
b4eb6b3d 1153#define StGiFy(a) PeRl_StGiFy(a)
497711e7 1154#define STRINGIFY(a) PeRl_StGiFy(a)
b4eb6b3d
JH
1155#endif
1156#if $cpp_stuff != 1 && $cpp_stuff != 42
1157# include "Bletch: How does this C preprocessor catenate tokens?"
1158#endif
ff935051
JH
1159
1160/* CPPSTDIN:
1161 * This symbol contains the first part of the string which will invoke
1162 * the C preprocessor on the standard input and produce to standard
1163 * output. Typical value of "cc -E" or "/lib/cpp", but it can also
1164 * call a wrapper. See CPPRUN.
1165 */
1166/* CPPMINUS:
1167 * This symbol contains the second part of the string which will invoke
1168 * the C preprocessor on the standard input and produce to standard
1169 * output. This symbol will have the value "-" if CPPSTDIN needs a minus
1170 * to specify standard input, otherwise the value is "".
1171 */
1172/* CPPRUN:
1173 * This symbol contains the string which will invoke a C preprocessor on
1174 * the standard input and produce to standard output. It needs to end
1175 * with CPPLAST, after all other preprocessor flags have been specified.
1176 * The main difference with CPPSTDIN is that this program will never be a
1177 * pointer to a shell wrapper, i.e. it will be empty if no preprocessor is
1178 * available directly to the user. Note that it may well be different from
1179 * the preprocessor used to compile the C program.
1180 */
c71a9cee
JH
1181/* CPPLAST:
1182 * This symbol is intended to be used along with CPPRUN in the same manner
1183 * symbol CPPMINUS is used with CPPSTDIN. It contains either "-" or "".
1184 */
ff935051
JH
1185#define CPPSTDIN "$cppstdin"
1186#define CPPMINUS "$cppminus"
1187#define CPPRUN "$cpprun"
c71a9cee 1188#define CPPLAST "$cpplast"
ff935051 1189
a7fea17f
JH
1190/* HAS__FWALK:
1191 * This symbol, if defined, indicates that the _fwalk system call is
1192 * available to apply a function to all the file handles.
1193 */
1194#$d__fwalk HAS__FWALK /**/
1195
ff935051
JH
1196/* HAS_ACCESS:
1197 * This manifest constant lets the C program know that the access()
1198 * system call is available to check for accessibility using real UID/GID.
1199 * (always present on UNIX.)
1200 */
1201#$d_access HAS_ACCESS /**/
1202
dfe9444c
AD
1203/* CASTI32:
1204 * This symbol is defined if the C compiler can cast negative
1205 * or large floating point numbers to 32-bit ints.
1aef975c 1206 */
dfe9444c 1207#$d_casti32 CASTI32 /**/
85e6fe83 1208
dfe9444c
AD
1209/* CASTNEGFLOAT:
1210 * This symbol is defined if the C compiler can cast negative
1211 * numbers to unsigned longs, ints and shorts.
85e6fe83 1212 */
dfe9444c
AD
1213/* CASTFLAGS:
1214 * This symbol contains flags that say what difficulties the compiler
1215 * has casting odd floating values to unsigned long:
1216 * 0 = ok
1217 * 1 = couldn't cast < 0
1218 * 2 = couldn't cast >= 0x80000000
1219 * 4 = couldn't cast in argument expression list
bccf77a5 1220 */
dfe9444c
AD
1221#$d_castneg CASTNEGFLOAT /**/
1222#define CASTFLAGS $castflags /**/
1223
758a5d79
JH
1224/* HAS_CLASS:
1225 * This symbol, if defined, indicates that the class routine is
1226 * available to classify doubles. Available for example in AIX.
1227 * The returned values are defined in <float.h> and are:
1228 *
1229 * FP_PLUS_NORM Positive normalized, nonzero
1230 * FP_MINUS_NORM Negative normalized, nonzero
1231 * FP_PLUS_DENORM Positive denormalized, nonzero
1232 * FP_MINUS_DENORM Negative denormalized, nonzero
1233 * FP_PLUS_ZERO +0.0
1234 * FP_MINUS_ZERO -0.0
1235 * FP_PLUS_INF +INF
1236 * FP_MINUS_INF -INF
1237 * FP_NANS Signaling Not a Number (NaNS)
1238 * FP_NANQ Quiet Not a Number (NaNQ)
1239 */
1240#$d_class HAS_CLASS /**/
1241
dfe9444c
AD
1242/* VOID_CLOSEDIR:
1243 * This symbol, if defined, indicates that the closedir() routine
1244 * does not return a value.
bccf77a5 1245 */
dfe9444c 1246#$d_void_closedir VOID_CLOSEDIR /**/
bccf77a5 1247
4e0554ec
JH
1248/* HAS_STRUCT_CMSGHDR:
1249 * This symbol, if defined, indicates that the struct cmsghdr
1250 * is supported.
1251 */
1252#$d_cmsghdr_s HAS_STRUCT_CMSGHDR /**/
1253
ff935051
JH
1254/* HAS_CSH:
1255 * This symbol, if defined, indicates that the C-shell exists.
1256 */
1257/* CSH:
1258 * This symbol, if defined, contains the full pathname of csh.
1259 */
b4eb6b3d
JH
1260#$d_csh HAS_CSH /**/
1261#ifdef HAS_CSH
1262#define CSH "$full_csh" /**/
1263#endif
ff935051
JH
1264
1265/* DLSYM_NEEDS_UNDERSCORE:
1266 * This symbol, if defined, indicates that we need to prepend an
1267 * underscore to the symbol name before calling dlsym(). This only
1268 * makes sense if you *have* dlsym, which we will presume is the
1269 * case if you're using dl_dlopen.xs.
1270 */
1271#$d_dlsymun DLSYM_NEEDS_UNDERSCORE /**/
1272
1273/* HAS_DRAND48_PROTO:
1274 * This symbol, if defined, indicates that the system provides
1275 * a prototype for the drand48() function. Otherwise, it is up
1276 * to the program to supply one. A good guess is
1277 * extern double drand48 _((void));
1278 */
1279#$d_drand48proto HAS_DRAND48_PROTO /**/
1280
1281/* HAS_ENDGRENT:
1282 * This symbol, if defined, indicates that the getgrent routine is
1283 * available for finalizing sequential access of the group database.
1284 */
1285#$d_endgrent HAS_ENDGRENT /**/
1286
1287/* HAS_ENDHOSTENT:
1288 * This symbol, if defined, indicates that the endhostent() routine is
1289 * available to close whatever was being used for host queries.
1290 */
1291#$d_endhent HAS_ENDHOSTENT /**/
1292
1293/* HAS_ENDNETENT:
1294 * This symbol, if defined, indicates that the endnetent() routine is
1295 * available to close whatever was being used for network queries.
1296 */
1297#$d_endnent HAS_ENDNETENT /**/
1298
1299/* HAS_ENDPROTOENT:
1300 * This symbol, if defined, indicates that the endprotoent() routine is
1301 * available to close whatever was being used for protocol queries.
1302 */
1303#$d_endpent HAS_ENDPROTOENT /**/
1304
1305/* HAS_ENDPWENT:
1306 * This symbol, if defined, indicates that the getgrent routine is
1307 * available for finalizing sequential access of the passwd database.
1308 */
1309#$d_endpwent HAS_ENDPWENT /**/
1310
1311/* HAS_ENDSERVENT:
1312 * This symbol, if defined, indicates that the endservent() routine is
1313 * available to close whatever was being used for service queries.
1314 */
1315#$d_endsent HAS_ENDSERVENT /**/
1316
b363b713
JH
1317/* HAS_FCHDIR:
1318 * This symbol, if defined, indicates that the fchdir routine is
1319 * available to change directory using a file descriptor.
1320 */
1321#$d_fchdir HAS_FCHDIR /**/
1322
a7fea17f
JH
1323/* FCNTL_CAN_LOCK:
1324 * This symbol, if defined, indicates that fcntl() can be used
1325 * for file locking. Normally on Unix systems this is defined.
1326 * It may be undefined on VMS.
1327 */
1328#$d_fcntl_can_lock FCNTL_CAN_LOCK /**/
1329
921b2963
JH
1330/* HAS_FD_SET:
1331 * This symbol, when defined, indicates presence of the fd_set typedef
1332 * in <sys/types.h>
1333 */
1334#$d_fd_set HAS_FD_SET /**/
1335
758a5d79
JH
1336/* HAS_FINITE:
1337 * This symbol, if defined, indicates that the finite routine is
1338 * available to check whether a double is finite (non-infinity non-NaN).
1339 */
1340#$d_finite HAS_FINITE /**/
1341
1342/* HAS_FINITEL:
1343 * This symbol, if defined, indicates that the finitel routine is
1344 * available to check whether a long double is finite
1345 * (non-infinity non-NaN).
1346 */
1347#$d_finitel HAS_FINITEL /**/
1348
b6592ff0
JH
1349/* FLEXFILENAMES:
1350 * This symbol, if defined, indicates that the system supports filenames
1351 * longer than 14 characters.
1352 */
1353#$d_flexfnam FLEXFILENAMES /**/
1354
758a5d79
JH
1355/* HAS_FP_CLASS:
1356 * This symbol, if defined, indicates that the fp_class routine is
1357 * available to classify doubles. Available for example in Digital UNIX.
1358 * The returned values are defined in <math.h> and are:
1359 *
1360 * FP_SNAN Signaling NaN (Not-a-Number)
1361 * FP_QNAN Quiet NaN (Not-a-Number)
1362 * FP_POS_INF +infinity
1363 * FP_NEG_INF -infinity
1364 * FP_POS_NORM Positive normalized
1365 * FP_NEG_NORM Negative normalized
1366 * FP_POS_DENORM Positive denormalized
1367 * FP_NEG_DENORM Negative denormalized
1368 * FP_POS_ZERO +0.0 (positive zero)
1369 * FP_NEG_ZERO -0.0 (negative zero)
1370 */
1371#$d_fp_class HAS_FP_CLASS /**/
1372
1373/* HAS_FPCLASS:
1374 * This symbol, if defined, indicates that the fpclass routine is
1375 * available to classify doubles. Available for example in Solaris/SVR4.
1376 * The returned values are defined in <ieeefp.h> and are:
1377 *
1378 * FP_SNAN signaling NaN
1379 * FP_QNAN quiet NaN
1380 * FP_NINF negative infinity
1381 * FP_PINF positive infinity
1382 * FP_NDENORM negative denormalized non-zero
1383 * FP_PDENORM positive denormalized non-zero
1384 * FP_NZERO negative zero
1385 * FP_PZERO positive zero
1386 * FP_NNORM negative normalized non-zero
1387 * FP_PNORM positive normalized non-zero
1388 */
1389#$d_fpclass HAS_FPCLASS /**/
1390
1391/* HAS_FPCLASSIFY:
1392 * This symbol, if defined, indicates that the fpclassify routine is
1393 * available to classify doubles. Available for example in HP-UX.
1394 * The returned values are defined in <math.h> and are
1395 *
1396 * FP_NORMAL Normalized
1397 * FP_ZERO Zero
1398 * FP_INFINITE Infinity
1399 * FP_SUBNORMAL Denormalized
1400 * FP_NAN NaN
1401 *
1402 */
1403#$d_fpclassify HAS_FPCLASSIFY /**/
1404
c5f05a91
JH
1405/* HAS_FPOS64_T:
1406 * This symbol will be defined if the C compiler supports fpos64_t.
1407 */
1408#$d_fpos64_t HAS_FPOS64_T /**/
1409
a3540c92
JH
1410/* HAS_FREXPL:
1411 * This symbol, if defined, indicates that the frexpl routine is
1412 * available to break a long double floating-point number into
1413 * a normalized fraction and an integral power of 2.
1414 */
1415#$d_frexpl HAS_FREXPL /**/
1416
ff935051
JH
1417/* HAS_STRUCT_FS_DATA:
1418 * This symbol, if defined, indicates that the struct fs_data
1419 * to do statfs() is supported.
1420 */
1421#$d_fs_data_s HAS_STRUCT_FS_DATA /**/
1422
1423/* HAS_FSEEKO:
1424 * This symbol, if defined, indicates that the fseeko routine is
1425 * available to fseek beyond 32 bits (useful for ILP32 hosts).
1426 */
1427#$d_fseeko HAS_FSEEKO /**/
1428
1429/* HAS_FSTATFS:
1430 * This symbol, if defined, indicates that the fstatfs routine is
1431 * available to stat filesystems by file descriptors.
1432 */
1433#$d_fstatfs HAS_FSTATFS /**/
c890dc6c 1434
a7fea17f
JH
1435/* HAS_FSYNC:
1436 * This symbol, if defined, indicates that the fsync routine is
1437 * available to write a file's modified data and attributes to
1438 * permanent storage.
1439 */
1440#$d_fsync HAS_FSYNC /**/
1441
ff935051
JH
1442/* HAS_FTELLO:
1443 * This symbol, if defined, indicates that the ftello routine is
1444 * available to ftell beyond 32 bits (useful for ILP32 hosts).
1445 */
1446#$d_ftello HAS_FTELLO /**/
1447
8e07c86e
AD
1448/* Gconvert:
1449 * This preprocessor macro is defined to convert a floating point
1450 * number to a string without a trailing decimal point. This
1451 * emulates the behavior of sprintf("%g"), but is sometimes much more
1452 * efficient. If gconvert() is not available, but gcvt() drops the
1453 * trailing decimal point, then gcvt() is used. If all else fails,
1454 * a macro using sprintf("%g") is used. Arguments for the Gconvert
1455 * macro are: value, number of digits, whether trailing zeros should
1456 * be retained, and the output buffer.
1457 * Possible values are:
1458 * d_Gconvert='gconvert((x),(n),(t),(b))'
1459 * d_Gconvert='gcvt((x),(n),(b))'
1460 * d_Gconvert='sprintf((b),"%.*g",(n),(x))'
1461 * The last two assume trailing zeros should not be kept.
1462 */
1463#define Gconvert(x,n,t,b) $d_Gconvert
1464
49dabb45
JH
1465/* HAS_GETCWD:
1466 * This symbol, if defined, indicates that the getcwd routine is
1467 * available to get the current working directory.
1468 */
1469#$d_getcwd HAS_GETCWD /**/
1470
3813c136
JH
1471/* HAS_GETESPWNAM:
1472 * This symbol, if defined, indicates that the getespwnam system call is
1473 * available to retrieve enchanced (shadow) password entries by name.
1474 */
1475#$d_getespwnam HAS_GETESPWNAM /**/
1476
1acc7ade
JH
1477/* HAS_GETFSSTAT:
1478 * This symbol, if defined, indicates that the getfsstat routine is
1479 * available to stat filesystems in bulk.
1480 */
1481#$d_getfsstat HAS_GETFSSTAT /**/
1482
ff935051
JH
1483/* HAS_GETGRENT:
1484 * This symbol, if defined, indicates that the getgrent routine is
1485 * available for sequential access of the group database.
c1b76f5d 1486 */
ff935051 1487#$d_getgrent HAS_GETGRENT /**/
c1b76f5d 1488
ff935051
JH
1489/* HAS_GETHOSTBYADDR:
1490 * This symbol, if defined, indicates that the gethostbyaddr() routine is
1491 * available to look up hosts by their IP addresses.
dd64f1c3 1492 */
ff935051 1493#$d_gethbyaddr HAS_GETHOSTBYADDR /**/
dd64f1c3 1494
ff935051
JH
1495/* HAS_GETHOSTBYNAME:
1496 * This symbol, if defined, indicates that the gethostbyname() routine is
1497 * available to look up host names in some data base or other.
774d564b 1498 */
ff935051 1499#$d_gethbyname HAS_GETHOSTBYNAME /**/
774d564b 1500
ff935051
JH
1501/* HAS_GETHOSTENT:
1502 * This symbol, if defined, indicates that the gethostent() routine is
1503 * available to look up host names in some data base or another.
c1b76f5d 1504 */
ff935051 1505#$d_gethent HAS_GETHOSTENT /**/
c1b76f5d 1506
ff935051
JH
1507/* HAS_GETHOSTNAME:
1508 * This symbol, if defined, indicates that the C program may use the
1509 * gethostname() routine to derive the host name. See also HAS_UNAME
1510 * and PHOSTNAME.
c1b76f5d 1511 */
ff935051
JH
1512/* HAS_UNAME:
1513 * This symbol, if defined, indicates that the C program may use the
1514 * uname() routine to derive the host name. See also HAS_GETHOSTNAME
1515 * and PHOSTNAME.
760ac839 1516 */
ff935051
JH
1517/* PHOSTNAME:
1518 * This symbol, if defined, indicates the command to feed to the
1519 * popen() routine to derive the host name. See also HAS_GETHOSTNAME
1520 * and HAS_UNAME. Note that the command uses a fully qualified path,
1521 * so that it is safe even if used by a process with super-user
1522 * privileges.
1523 */
c71a9cee
JH
1524/* HAS_PHOSTNAME:
1525 * This symbol, if defined, indicates that the C program may use the
1526 * contents of PHOSTNAME as a command to feed to the popen() routine
1527 * to derive the host name.
1528 */
b4eb6b3d
JH
1529#$d_gethname HAS_GETHOSTNAME /**/
1530#$d_uname HAS_UNAME /**/
1531#$d_phostname HAS_PHOSTNAME /**/
1532#ifdef HAS_PHOSTNAME
1533#define PHOSTNAME "$aphostname" /* How to get the host name */
1534#endif
760ac839 1535
ff935051
JH
1536/* HAS_GETHOST_PROTOS:
1537 * This symbol, if defined, indicates that <netdb.h> includes
1538 * prototypes for gethostent(), gethostbyname(), and
1539 * gethostbyaddr(). Otherwise, it is up to the program to guess
1540 * them. See netdbtype.U for probing for various Netdb_xxx_t types.
52e1cb5e 1541 */
ff935051 1542#$d_gethostprotos HAS_GETHOST_PROTOS /**/
52e1cb5e 1543
4e0554ec
JH
1544/* HAS_GETITIMER:
1545 * This symbol, if defined, indicates that the getitimer routine is
1546 * available to return interval timers.
1547 */
1548#$d_getitimer HAS_GETITIMER /**/
1549
ff935051
JH
1550/* HAS_GETMNT:
1551 * This symbol, if defined, indicates that the getmnt routine is
1552 * available to get filesystem mount info by filename.
921b2963 1553 */
ff935051
JH
1554#$d_getmnt HAS_GETMNT /**/
1555
1556/* HAS_GETMNTENT:
1557 * This symbol, if defined, indicates that the getmntent routine is
1558 * available to iterate through mounted file systems to get their info.
a5f75d66 1559 */
ff935051
JH
1560#$d_getmntent HAS_GETMNTENT /**/
1561
1562/* HAS_GETNETBYADDR:
1563 * This symbol, if defined, indicates that the getnetbyaddr() routine is
1564 * available to look up networks by their IP addresses.
a5f75d66 1565 */
ff935051
JH
1566#$d_getnbyaddr HAS_GETNETBYADDR /**/
1567
1568/* HAS_GETNETBYNAME:
1569 * This symbol, if defined, indicates that the getnetbyname() routine is
1570 * available to look up networks by their names.
a5f75d66 1571 */
ff935051 1572#$d_getnbyname HAS_GETNETBYNAME /**/
a5f75d66 1573
ff935051
JH
1574/* HAS_GETNETENT:
1575 * This symbol, if defined, indicates that the getnetent() routine is
1576 * available to look up network names in some data base or another.
a687059c 1577 */
ff935051
JH
1578#$d_getnent HAS_GETNETENT /**/
1579
1580/* HAS_GETNET_PROTOS:
1581 * This symbol, if defined, indicates that <netdb.h> includes
1582 * prototypes for getnetent(), getnetbyname(), and
1583 * getnetbyaddr(). Otherwise, it is up to the program to guess
1584 * them. See netdbtype.U for probing for various Netdb_xxx_t types.
dfe9444c 1585 */
ff935051
JH
1586#$d_getnetprotos HAS_GETNET_PROTOS /**/
1587
0c0643d0
JH
1588/* HAS_GETPAGESIZE:
1589 * This symbol, if defined, indicates that the getpagesize system call
1590 * is available to get system page size, which is the granularity of
1591 * many memory management calls.
1592 */
1593#$d_getpagsz HAS_GETPAGESIZE /**/
1594
ff935051
JH
1595/* HAS_GETPROTOENT:
1596 * This symbol, if defined, indicates that the getprotoent() routine is
1597 * available to look up protocols in some data base or another.
dfe9444c 1598 */
ff935051
JH
1599#$d_getpent HAS_GETPROTOENT /**/
1600
a7fea17f
JH
1601/* HAS_GETPGRP:
1602 * This symbol, if defined, indicates that the getpgrp routine is
1603 * available to get the current process group.
1604 */
1605/* USE_BSD_GETPGRP:
1606 * This symbol, if defined, indicates that getpgrp needs one
1607 * arguments whereas USG one needs none.
1608 */
1609#$d_getpgrp HAS_GETPGRP /**/
1610#$d_bsdgetpgrp USE_BSD_GETPGRP /**/
1611
ff935051
JH
1612/* HAS_GETPROTOBYNAME:
1613 * This symbol, if defined, indicates that the getprotobyname()
1614 * routine is available to look up protocols by their name.
dfe9444c 1615 */
ff935051
JH
1616/* HAS_GETPROTOBYNUMBER:
1617 * This symbol, if defined, indicates that the getprotobynumber()
1618 * routine is available to look up protocols by their number.
dfe9444c 1619 */
ff935051
JH
1620#$d_getpbyname HAS_GETPROTOBYNAME /**/
1621#$d_getpbynumber HAS_GETPROTOBYNUMBER /**/
a687059c 1622
ff935051
JH
1623/* HAS_GETPROTO_PROTOS:
1624 * This symbol, if defined, indicates that <netdb.h> includes
1625 * prototypes for getprotoent(), getprotobyname(), and
1626 * getprotobyaddr(). Otherwise, it is up to the program to guess
1627 * them. See netdbtype.U for probing for various Netdb_xxx_t types.
8e07c86e 1628 */
ff935051
JH
1629#$d_getprotoprotos HAS_GETPROTO_PROTOS /**/
1630
3813c136
JH
1631/* HAS_GETPRPWNAM:
1632 * This symbol, if defined, indicates that the getprpwnam system call is
1633 * available to retrieve protected (shadow) password entries by name.
1634 */
1635#$d_getprpwnam HAS_GETPRPWNAM /**/
1636
ff935051
JH
1637/* HAS_GETPWENT:
1638 * This symbol, if defined, indicates that the getpwent routine is
1639 * available for sequential access of the passwd database.
1640 * If this is not available, the older getpw() function may be available.
dfe9444c 1641 */
ff935051 1642#$d_getpwent HAS_GETPWENT /**/
8e07c86e 1643
ff935051
JH
1644/* HAS_GETSERVENT:
1645 * This symbol, if defined, indicates that the getservent() routine is
1646 * available to look up network services in some data base or another.
4633a7c4 1647 */
ff935051
JH
1648#$d_getsent HAS_GETSERVENT /**/
1649
1650/* HAS_GETSERV_PROTOS:
1651 * This symbol, if defined, indicates that <netdb.h> includes
1652 * prototypes for getservent(), getservbyname(), and
1653 * getservbyaddr(). Otherwise, it is up to the program to guess
1654 * them. See netdbtype.U for probing for various Netdb_xxx_t types.
dfe9444c 1655 */
ff935051 1656#$d_getservprotos HAS_GETSERV_PROTOS /**/
4633a7c4 1657
ff935051
JH
1658/* HAS_GETSPNAM:
1659 * This symbol, if defined, indicates that the getspnam system call is
1660 * available to retrieve SysV shadow password entries by name.
760ac839 1661 */
ff935051
JH
1662#$d_getspnam HAS_GETSPNAM /**/
1663
1664/* HAS_GETSERVBYNAME:
1665 * This symbol, if defined, indicates that the getservbyname()
1666 * routine is available to look up services by their name.
1aef975c 1667 */
ff935051
JH
1668/* HAS_GETSERVBYPORT:
1669 * This symbol, if defined, indicates that the getservbyport()
1670 * routine is available to look up services by their port.
bccf77a5 1671 */
ff935051
JH
1672#$d_getsbyname HAS_GETSERVBYNAME /**/
1673#$d_getsbyport HAS_GETSERVBYPORT /**/
8e07c86e 1674
ff935051
JH
1675/* HAS_GNULIBC:
1676 * This symbol, if defined, indicates to the C program that
1677 * the GNU C library is being used.
85e6fe83 1678 */
ff935051 1679#$d_gnulibc HAS_GNULIBC /**/
7378db63
JH
1680#if defined(HAS_GNULIBC) && !defined(_GNU_SOURCE)
1681# define _GNU_SOURCE
1682#endif
ff935051
JH
1683/* HAS_HASMNTOPT:
1684 * This symbol, if defined, indicates that the hasmntopt routine is
1685 * available to query the mount options of file systems.
dfe9444c 1686 */
ff935051
JH
1687#$d_hasmntopt HAS_HASMNTOPT /**/
1688
1689/* HAS_HTONL:
1690 * This symbol, if defined, indicates that the htonl() routine (and
1691 * friends htons() ntohl() ntohs()) are available to do network
1692 * order byte swapping.
dfe9444c 1693 */
ff935051
JH
1694/* HAS_HTONS:
1695 * This symbol, if defined, indicates that the htons() routine (and
1696 * friends htonl() ntohl() ntohs()) are available to do network
1697 * order byte swapping.
dfe9444c 1698 */
ff935051
JH
1699/* HAS_NTOHL:
1700 * This symbol, if defined, indicates that the ntohl() routine (and
1701 * friends htonl() htons() ntohs()) are available to do network
1702 * order byte swapping.
1703 */
1704/* HAS_NTOHS:
1705 * This symbol, if defined, indicates that the ntohs() routine (and
1706 * friends htonl() htons() ntohl()) are available to do network
1707 * order byte swapping.
1708 */
1709#$d_htonl HAS_HTONL /**/
1710#$d_htonl HAS_HTONS /**/
1711#$d_htonl HAS_NTOHL /**/
1712#$d_htonl HAS_NTOHS /**/
85e6fe83 1713
43999f95
JH
1714/* HAS_ICONV:
1715 * This symbol, if defined, indicates that the iconv routine is
1716 * available to do character set conversions.
1717 */
1718#$d_iconv HAS_ICONV /**/
1719
fe749a9f
JH
1720/* HAS_INT64_T:
1721 * This symbol will defined if the C compiler supports int64_t.
1722 * Usually the <inttypes.h> needs to be included, but sometimes
1723 * <sys/types.h> is enough.
1724 */
13b3f787 1725#$d_int64_t HAS_INT64_T /**/
fe749a9f 1726
ff935051
JH
1727/* HAS_ISASCII:
1728 * This manifest constant lets the C program know that isascii
1729 * is available.
693762b4 1730 */
ff935051 1731#$d_isascii HAS_ISASCII /**/
693762b4 1732
758a5d79
JH
1733/* HAS_ISFINITE:
1734 * This symbol, if defined, indicates that the isfinite routine is
1735 * available to check whether a double is finite (non-infinity non-NaN).
1736 */
1737#$d_isfinite HAS_ISFINITE /**/
1738
1739/* HAS_ISINF:
1740 * This symbol, if defined, indicates that the isinf routine is
1741 * available to check whether a double is an infinity.
1742 */
1743#$d_isinf HAS_ISINF /**/
1744
a3540c92
JH
1745/* HAS_ISNAN:
1746 * This symbol, if defined, indicates that the isnan routine is
1747 * available to check whether a double is a NaN.
1748 */
1749#$d_isnan HAS_ISNAN /**/
1750
1751/* HAS_ISNANL:
1752 * This symbol, if defined, indicates that the isnanl routine is
1753 * available to check whether a long double is a NaN.
1754 */
1755#$d_isnanl HAS_ISNANL /**/
1756
b6592ff0
JH
1757/* HAS_LCHOWN:
1758 * This symbol, if defined, indicates that the lchown routine is
1759 * available to operate on a symbolic link (instead of following the
1760 * link).
1761 */
1762#$d_lchown HAS_LCHOWN /**/
1763
ff935051
JH
1764/* HAS_LDBL_DIG:
1765 * This symbol, if defined, indicates that this system's <float.h>
1766 * or <limits.h> defines the symbol LDBL_DIG, which is the number
1767 * of significant digits in a long double precision number. Unlike
1768 * for DBL_DIG, there's no good guess for LDBL_DIG if it is undefined.
85ab1d1d 1769 */
ff935051
JH
1770#$d_ldbl_dig HAS_LDBL_DIG /* */
1771
1772/* HAS_LONG_DOUBLE:
1773 * This symbol will be defined if the C compiler supports long
1774 * doubles.
85ab1d1d 1775 */
ff935051
JH
1776/* LONG_DOUBLESIZE:
1777 * This symbol contains the size of a long double, so that the
1778 * C preprocessor can make decisions based on it. It is only
1779 * defined if the system supports long doubles.
dfe9444c 1780 */
ff935051
JH
1781#$d_longdbl HAS_LONG_DOUBLE /**/
1782#ifdef HAS_LONG_DOUBLE
1783#define LONG_DOUBLESIZE $longdblsize /**/
1784#endif
dfe9444c 1785
ff935051
JH
1786/* HAS_LONG_LONG:
1787 * This symbol will be defined if the C compiler supports long long.
dfe9444c 1788 */
ff935051
JH
1789/* LONGLONGSIZE:
1790 * This symbol contains the size of a long long, so that the
1791 * C preprocessor can make decisions based on it. It is only
1792 * defined if the system supports long long.
5ff3f7a4 1793 */
ff935051
JH
1794#$d_longlong HAS_LONG_LONG /**/
1795#ifdef HAS_LONG_LONG
1796#define LONGLONGSIZE $longlongsize /**/
1797#endif
5ff3f7a4 1798
1acc7ade
JH
1799/* HAS_LSEEK_PROTO:
1800 * This symbol, if defined, indicates that the system provides
1801 * a prototype for the lseek() function. Otherwise, it is up
1802 * to the program to supply one. A good guess is
1803 * extern off_t lseek(int, off_t, int);
1804 */
1805#$d_lseekproto HAS_LSEEK_PROTO /**/
1806
1e8c3fde
JH
1807/* HAS_MADVISE:
1808 * This symbol, if defined, indicates that the madvise system call is
1809 * available to map a file into memory.
1810 */
1811#$d_madvise HAS_MADVISE /**/
1812
ff935051
JH
1813/* HAS_MEMCHR:
1814 * This symbol, if defined, indicates that the memchr routine is available
1815 * to locate characters within a C string.
dd4e71fd 1816 */
ff935051
JH
1817#$d_memchr HAS_MEMCHR /**/
1818
fe749a9f
JH
1819/* HAS_MKDTEMP:
1820 * This symbol, if defined, indicates that the mkdtemp routine is
1821 * available to exclusively create a uniquely named temporary directory.
1822 */
1823#$d_mkdtemp HAS_MKDTEMP /**/
1824
1825/* HAS_MKSTEMP:
1826 * This symbol, if defined, indicates that the mkstemp routine is
1827 * available to exclusively create and open a uniquely named
1828 * temporary file.
1829 */
1830#$d_mkstemp HAS_MKSTEMP /**/
1831
1832/* HAS_MKSTEMPS:
1833 * This symbol, if defined, indicates that the mkstemps routine is
1834 * available to excluslvely create and open a uniquely named
1835 * (with a suffix) temporary file.
1836 */
1837#$d_mkstemps HAS_MKSTEMPS /**/
1838
87b71857
JH
1839/* HAS_MMAP:
1840 * This symbol, if defined, indicates that the mmap system call is
1841 * available to map a file into memory.
1842 */
fe749a9f
JH
1843/* Mmap_t:
1844 * This symbol holds the return type of the mmap() system call
1845 * (and simultaneously the type of the first argument).
1846 * Usually set to 'void *' or 'cadd_t'.
1847 */
87b71857 1848#$d_mmap HAS_MMAP /**/
fe749a9f
JH
1849#define Mmap_t $mmaptype /**/
1850
3813c136
JH
1851/* HAS_MODFL:
1852 * This symbol, if defined, indicates that the modfl routine is
1853 * available to split a long double x into a fractional part f and
1854 * an integer part i such that |f| < 1.0 and (f + i) = x.
1855 */
e67aeab1
JH
1856/* HAS_MODFL_POW32_BUG:
1857 * This symbol, if defined, indicates that the modfl routine is
1858 * broken for long doubles >= pow(2, 32).
1859 * For example from 4294967303.150000 one would get 4294967302.000000
1860 * and 1.150000. The bug has been seen in certain versions of glibc,
1861 * release 2.2.2 is known to be okay.
1862 */
3813c136 1863#$d_modfl HAS_MODFL /**/
e67aeab1 1864#$d_modfl_pow32_bug HAS_MODFL_POW32_BUG /**/
3813c136 1865
fe749a9f
JH
1866/* HAS_MPROTECT:
1867 * This symbol, if defined, indicates that the mprotect system call is
1868 * available to modify the access protection of a memory mapped file.
1869 */
1870#$d_mprotect HAS_MPROTECT /**/
1871
ff935051
JH
1872/* HAS_MSG:
1873 * This symbol, if defined, indicates that the entire msg*(2) library is
1874 * supported (IPC mechanism based on message queues).
dd4e71fd 1875 */
ff935051 1876#$d_msg HAS_MSG /**/
dd4e71fd 1877
4e0554ec
JH
1878/* HAS_STRUCT_MSGHDR:
1879 * This symbol, if defined, indicates that the struct msghdr
1880 * is supported.
1881 */
1882#$d_msghdr_s HAS_STRUCT_MSGHDR /**/
1883
c5f05a91
JH
1884/* HAS_OFF64_T:
1885 * This symbol will be defined if the C compiler supports off64_t.
1886 */
1887#$d_off64_t HAS_OFF64_T /**/
1888
ff935051
JH
1889/* HAS_OPEN3:
1890 * This manifest constant lets the C program know that the three
1891 * argument form of open(2) is available.
dd4e71fd 1892 */
ff935051
JH
1893#$d_open3 HAS_OPEN3 /**/
1894
1895/* OLD_PTHREAD_CREATE_JOINABLE:
1896 * This symbol, if defined, indicates how to create pthread
1897 * in joinable (aka undetached) state. NOTE: not defined
1898 * if pthread.h already has defined PTHREAD_CREATE_JOINABLE
1899 * (the new version of the constant).
1900 * If defined, known values are PTHREAD_CREATE_UNDETACHED
1901 * and __UNDETACHED.
dd4e71fd 1902 */
ff935051 1903#$d_old_pthread_create_joinable OLD_PTHREAD_CREATE_JOINABLE $old_pthread_create_joinable /**/
dd4e71fd 1904
ff935051
JH
1905/* HAS_PTHREAD_YIELD:
1906 * This symbol, if defined, indicates that the pthread_yield
1907 * routine is available to yield the execution of the current
1908 * thread. sched_yield is preferable to pthread_yield.
1909 */
1910/* SCHED_YIELD:
1911 * This symbol defines the way to yield the execution of
1912 * the current thread. Known ways are sched_yield,
1913 * pthread_yield, and pthread_yield with NULL.
1914 */
1915/* HAS_SCHED_YIELD:
1916 * This symbol, if defined, indicates that the sched_yield
1917 * routine is available to yield the execution of the current
1918 * thread. sched_yield is preferable to pthread_yield.
dd4e71fd 1919 */
ff935051
JH
1920#$d_pthread_yield HAS_PTHREAD_YIELD /**/
1921#define SCHED_YIELD $sched_yield /**/
1922#$d_sched_yield HAS_SCHED_YIELD /**/
dd4e71fd 1923
4e0554ec
JH
1924/* HAS_READV:
1925 * This symbol, if defined, indicates that the readv routine is
1926 * available to do gather reads. You will also need <sys/uio.h>
1927 * and there I_SYSUIO.
1928 */
1929#$d_readv HAS_READV /**/
1930
1931/* HAS_RECVMSG:
1932 * This symbol, if defined, indicates that the recvmsg routine is
1933 * available to send structured socket messages.
1934 */
1935#$d_recvmsg HAS_RECVMSG /**/
1936
ff935051
JH
1937/* HAS_SAFE_BCOPY:
1938 * This symbol, if defined, indicates that the bcopy routine is available
b6cc3bc4 1939 * to copy potentially overlapping memory blocks. Normally, you should
ff935051
JH
1940 * probably use memmove() or memcpy(). If neither is defined, roll your
1941 * own version.
dd4e71fd 1942 */
ff935051
JH
1943#$d_safebcpy HAS_SAFE_BCOPY /**/
1944
1945/* HAS_SAFE_MEMCPY:
1946 * This symbol, if defined, indicates that the memcpy routine is available
b6cc3bc4
AD
1947 * to copy potentially overlapping memory blocks. If you need to
1948 * copy overlapping memory blocks, you should check HAS_MEMMOVE and
1949 * use memmove() instead, if available.
dd4e71fd 1950 */
ff935051 1951#$d_safemcpy HAS_SAFE_MEMCPY /**/
dd4e71fd 1952
ff935051
JH
1953/* HAS_SANE_MEMCMP:
1954 * This symbol, if defined, indicates that the memcmp routine is available
1955 * and can be used to compare relative magnitudes of chars with their high
1956 * bits set. If it is not defined, roll your own version.
dd4e71fd 1957 */
ff935051
JH
1958#$d_sanemcmp HAS_SANE_MEMCMP /**/
1959
a7fea17f
JH
1960/* HAS_SBRK_PROTO:
1961 * This symbol, if defined, indicates that the system provides
1962 * a prototype for the sbrk() function. Otherwise, it is up
1963 * to the program to supply one. Good guesses are
1964 * extern void* sbrk _((int));
1965 * extern void* sbrk _((size_t));
1966 */
1967#$d_sbrkproto HAS_SBRK_PROTO /**/
1968
ff935051
JH
1969/* HAS_SEM:
1970 * This symbol, if defined, indicates that the entire sem*(2) library is
1971 * supported.
dd4e71fd 1972 */
ff935051 1973#$d_sem HAS_SEM /**/
dd4e71fd 1974
4e0554ec
JH
1975/* HAS_SENDMSG:
1976 * This symbol, if defined, indicates that the sendmsg routine is
1977 * available to send structured socket messages.
1978 */
1979#$d_sendmsg HAS_SENDMSG /**/
1980
ff935051
JH
1981/* HAS_SETGRENT:
1982 * This symbol, if defined, indicates that the setgrent routine is
1983 * available for initializing sequential access of the group database.
dd4e71fd 1984 */
ff935051
JH
1985#$d_setgrent HAS_SETGRENT /**/
1986
1987/* HAS_SETGROUPS:
1988 * This symbol, if defined, indicates that the setgroups() routine is
1989 * available to set the list of process groups. If unavailable, multiple
1990 * groups are probably not supported.
dd4e71fd 1991 */
ff935051 1992#$d_setgrps HAS_SETGROUPS /**/
dd4e71fd 1993
ff935051
JH
1994/* HAS_SETHOSTENT:
1995 * This symbol, if defined, indicates that the sethostent() routine is
1996 * available.
a3635516 1997 */
ff935051 1998#$d_sethent HAS_SETHOSTENT /**/
a3635516 1999
4e0554ec
JH
2000/* HAS_SETITIMER:
2001 * This symbol, if defined, indicates that the setitimer routine is
2002 * available to set interval timers.
2003 */
2004#$d_setitimer HAS_SETITIMER /**/
2005
ff935051
JH
2006/* HAS_SETNETENT:
2007 * This symbol, if defined, indicates that the setnetent() routine is
2008 * available.
dfe9444c 2009 */
ff935051 2010#$d_setnent HAS_SETNETENT /**/
dfe9444c 2011
ff935051
JH
2012/* HAS_SETPROTOENT:
2013 * This symbol, if defined, indicates that the setprotoent() routine is
2014 * available.
dfe9444c 2015 */
ff935051
JH
2016#$d_setpent HAS_SETPROTOENT /**/
2017
a7fea17f
JH
2018/* HAS_SETPGRP:
2019 * This symbol, if defined, indicates that the setpgrp routine is
2020 * available to set the current process group.
2021 */
2022/* USE_BSD_SETPGRP:
2023 * This symbol, if defined, indicates that setpgrp needs two
2024 * arguments whereas USG one needs none. See also HAS_SETPGID
2025 * for a POSIX interface.
2026 */
2027#$d_setpgrp HAS_SETPGRP /**/
2028#$d_bsdsetpgrp USE_BSD_SETPGRP /**/
2029
0c9177ab
JF
2030/* HAS_SETPROCTITLE:
2031 * This symbol, if defined, indicates that the setproctitle routine is
2032 * available to set process title.
2033 */
2034#$d_setproctitle HAS_SETPROCTITLE /**/
2035
ff935051
JH
2036/* HAS_SETPWENT:
2037 * This symbol, if defined, indicates that the setpwent routine is
2038 * available for initializing sequential access of the passwd database.
dfe9444c 2039 */
ff935051 2040#$d_setpwent HAS_SETPWENT /**/
dfe9444c 2041
ff935051
JH
2042/* HAS_SETSERVENT:
2043 * This symbol, if defined, indicates that the setservent() routine is
2044 * available.
48159a0c 2045 */
ff935051 2046#$d_setsent HAS_SETSERVENT /**/
1cfa4ec7 2047
ff935051
JH
2048/* HAS_SETVBUF:
2049 * This symbol, if defined, indicates that the setvbuf routine is
2050 * available to change buffering on an open stdio stream.
2051 * to a line-buffered mode.
dfe9444c 2052 */
ff935051 2053#$d_setvbuf HAS_SETVBUF /**/
e5c9fcd0 2054
ff935051
JH
2055/* USE_SFIO:
2056 * This symbol, if defined, indicates that sfio should
2057 * be used.
5ff3f7a4 2058 */
ff935051 2059#$d_sfio USE_SFIO /**/
5ff3f7a4 2060
ff935051
JH
2061/* HAS_SHM:
2062 * This symbol, if defined, indicates that the entire shm*(2) library is
2063 * supported.
e5c9fcd0 2064 */
ff935051 2065#$d_shm HAS_SHM /**/
e5c9fcd0 2066
ff935051
JH
2067/* HAS_SIGACTION:
2068 * This symbol, if defined, indicates that Vr4's sigaction() routine
2069 * is available.
e5c9fcd0 2070 */
ff935051 2071#$d_sigaction HAS_SIGACTION /**/
e5c9fcd0 2072
ff935051
JH
2073/* HAS_SIGSETJMP:
2074 * This variable indicates to the C program that the sigsetjmp()
2075 * routine is available to save the calling process's registers
2076 * and stack environment for later use by siglongjmp(), and
2077 * to optionally save the process's signal mask. See
2078 * Sigjmp_buf, Sigsetjmp, and Siglongjmp.
e5c9fcd0 2079 */
ff935051
JH
2080/* Sigjmp_buf:
2081 * This is the buffer type to be used with Sigsetjmp and Siglongjmp.
5ff3f7a4 2082 */
ff935051
JH
2083/* Sigsetjmp:
2084 * This macro is used in the same way as sigsetjmp(), but will invoke
2085 * traditional setjmp() if sigsetjmp isn't available.
2086 * See HAS_SIGSETJMP.
e5c9fcd0 2087 */
ff935051
JH
2088/* Siglongjmp:
2089 * This macro is used in the same way as siglongjmp(), but will invoke
2090 * traditional longjmp() if siglongjmp isn't available.
2091 * See HAS_SIGSETJMP.
5ff3f7a4 2092 */
b4eb6b3d
JH
2093#$d_sigsetjmp HAS_SIGSETJMP /**/
2094#ifdef HAS_SIGSETJMP
2095#define Sigjmp_buf sigjmp_buf
2096#define Sigsetjmp(buf,save_mask) sigsetjmp((buf),(save_mask))
2097#define Siglongjmp(buf,retval) siglongjmp((buf),(retval))
2098#else
2099#define Sigjmp_buf jmp_buf
2100#define Sigsetjmp(buf,save_mask) setjmp((buf))
2101#define Siglongjmp(buf,retval) longjmp((buf),(retval))
2102#endif
5ff3f7a4 2103
ff935051
JH
2104/* HAS_SOCKET:
2105 * This symbol, if defined, indicates that the BSD socket interface is
2106 * supported.
693762b4 2107 */
ff935051
JH
2108/* HAS_SOCKETPAIR:
2109 * This symbol, if defined, indicates that the BSD socketpair() call is
2110 * supported.
693762b4 2111 */
ff935051
JH
2112/* HAS_MSG_CTRUNC:
2113 * This symbol, if defined, indicates that the MSG_CTRUNC is supported.
2114 * Checking just with #ifdef might not be enough because this symbol
2115 * has been known to be an enum.
693762b4 2116 */
ff935051
JH
2117/* HAS_MSG_DONTROUTE:
2118 * This symbol, if defined, indicates that the MSG_DONTROUTE is supported.
2119 * Checking just with #ifdef might not be enough because this symbol
2120 * has been known to be an enum.
a12fb911 2121 */
ff935051
JH
2122/* HAS_MSG_OOB:
2123 * This symbol, if defined, indicates that the MSG_OOB is supported.
2124 * Checking just with #ifdef might not be enough because this symbol
2125 * has been known to be an enum.
a12fb911 2126 */
ff935051
JH
2127/* HAS_MSG_PEEK:
2128 * This symbol, if defined, indicates that the MSG_PEEK is supported.
2129 * Checking just with #ifdef might not be enough because this symbol
2130 * has been known to be an enum.
a12fb911 2131 */
ff935051
JH
2132/* HAS_MSG_PROXY:
2133 * This symbol, if defined, indicates that the MSG_PROXY is supported.
2134 * Checking just with #ifdef might not be enough because this symbol
2135 * has been known to be an enum.
48159a0c 2136 */
ff935051
JH
2137/* HAS_SCM_RIGHTS:
2138 * This symbol, if defined, indicates that the SCM_RIGHTS is supported.
2139 * Checking just with #ifdef might not be enough because this symbol
2140 * has been known to be an enum.
2141 */
2142#$d_socket HAS_SOCKET /**/
2143#$d_sockpair HAS_SOCKETPAIR /**/
2144#$d_msg_ctrunc HAS_MSG_CTRUNC /**/
2145#$d_msg_dontroute HAS_MSG_DONTROUTE /**/
2146#$d_msg_oob HAS_MSG_OOB /**/
2147#$d_msg_peek HAS_MSG_PEEK /**/
2148#$d_msg_proxy HAS_MSG_PROXY /**/
2149#$d_scm_rights HAS_SCM_RIGHTS /**/
a12fb911 2150
1b9c9cf5
DH
2151/* HAS_SOCKS5_INIT:
2152 * This symbol, if defined, indicates that the socks5_init routine is
2153 * available to initialize SOCKS 5.
2154 */
2155#$d_socks5_init HAS_SOCKS5_INIT /**/
2156
ff935051
JH
2157/* HAS_SQRTL:
2158 * This symbol, if defined, indicates that the sqrtl routine is
2159 * available to do long double square roots.
693762b4 2160 */
ff935051 2161#$d_sqrtl HAS_SQRTL /**/
693762b4 2162
ff935051
JH
2163/* USE_STAT_BLOCKS:
2164 * This symbol is defined if this system has a stat structure declaring
2165 * st_blksize and st_blocks.
693762b4 2166 */
b4eb6b3d
JH
2167#ifndef USE_STAT_BLOCKS
2168#$d_statblks USE_STAT_BLOCKS /**/
2169#endif
693762b4 2170
ff935051
JH
2171/* HAS_STRUCT_STATFS_F_FLAGS:
2172 * This symbol, if defined, indicates that the struct statfs
2173 * does have the f_flags member containing the mount flags of
2174 * the filesystem containing the file.
2175 * This kind of struct statfs is coming from <sys/mount.h> (BSD 4.3),
2176 * not from <sys/statfs.h> (SYSV). Older BSDs (like Ultrix) do not
2177 * have statfs() and struct statfs, they have ustat() and getmnt()
2178 * with struct ustat and struct fs_data.
e5c9fcd0 2179 */
ff935051 2180#$d_statfs_f_flags HAS_STRUCT_STATFS_F_FLAGS /**/
e5c9fcd0 2181
ff935051
JH
2182/* HAS_STRUCT_STATFS:
2183 * This symbol, if defined, indicates that the struct statfs
2184 * to do statfs() is supported.
e5c9fcd0 2185 */
ff935051 2186#$d_statfs_s HAS_STRUCT_STATFS /**/
e5c9fcd0 2187
ff935051
JH
2188/* HAS_FSTATVFS:
2189 * This symbol, if defined, indicates that the fstatvfs routine is
2190 * available to stat filesystems by file descriptors.
693762b4 2191 */
ff935051 2192#$d_fstatvfs HAS_FSTATVFS /**/
de4597cb 2193
b4eb6b3d
JH
2194/* USE_STDIO_PTR:
2195 * This symbol is defined if the _ptr and _cnt fields (or similar)
2196 * of the stdio FILE structure can be used to access the stdio buffer
2197 * for a file handle. If this is defined, then the FILE_ptr(fp)
2198 * and FILE_cnt(fp) macros will also be defined and should be used
2199 * to access these fields.
2200 */
ff935051
JH
2201/* FILE_ptr:
2202 * This macro is used to access the _ptr field (or equivalent) of the
2203 * FILE structure pointed to by its argument. This macro will always be
2204 * defined if USE_STDIO_PTR is defined.
bfb7748a 2205 */
ff935051
JH
2206/* STDIO_PTR_LVALUE:
2207 * This symbol is defined if the FILE_ptr macro can be used as an
2208 * lvalue.
c4f23d77 2209 */
ff935051
JH
2210/* FILE_cnt:
2211 * This macro is used to access the _cnt field (or equivalent) of the
2212 * FILE structure pointed to by its argument. This macro will always be
2213 * defined if USE_STDIO_PTR is defined.
c4f23d77 2214 */
ff935051
JH
2215/* STDIO_CNT_LVALUE:
2216 * This symbol is defined if the FILE_cnt macro can be used as an
2217 * lvalue.
16d20bd9 2218 */
a7ffa9b9
NC
2219/* STDIO_PTR_LVAL_SETS_CNT:
2220 * This symbol is defined if using the FILE_ptr macro as an lvalue
2221 * to increase the pointer by n has the side effect of decreasing the
2222 * value of File_cnt(fp) by n.
2223 */
2224/* STDIO_PTR_LVAL_NOCHANGE_CNT:
2225 * This symbol is defined if using the FILE_ptr macro as an lvalue
2226 * to increase the pointer by n leaves File_cnt(fp) unchanged.
2227 */
b4eb6b3d
JH
2228#$d_stdstdio USE_STDIO_PTR /**/
2229#ifdef USE_STDIO_PTR
ff935051
JH
2230#define FILE_ptr(fp) $stdio_ptr
2231#$d_stdio_ptr_lval STDIO_PTR_LVALUE /**/
2232#define FILE_cnt(fp) $stdio_cnt
2233#$d_stdio_cnt_lval STDIO_CNT_LVALUE /**/
a7ffa9b9
NC
2234#$d_stdio_ptr_lval_sets_cnt STDIO_PTR_LVAL_SETS_CNT /**/
2235#$d_stdio_ptr_lval_nochange_cnt STDIO_PTR_LVAL_NOCHANGE_CNT /**/
b4eb6b3d 2236#endif
16d20bd9 2237
b4eb6b3d
JH
2238/* USE_STDIO_BASE:
2239 * This symbol is defined if the _base field (or similar) of the
2240 * stdio FILE structure can be used to access the stdio buffer for
2241 * a file handle. If this is defined, then the FILE_base(fp) macro
2242 * will also be defined and should be used to access this field.
2243 * Also, the FILE_bufsiz(fp) macro will be defined and should be used
2244 * to determine the number of bytes in the buffer. USE_STDIO_BASE
2245 * will never be defined unless USE_STDIO_PTR is.
2246 */
ff935051
JH
2247/* FILE_base:
2248 * This macro is used to access the _base field (or equivalent) of the
2249 * FILE structure pointed to by its argument. This macro will always be
2250 * defined if USE_STDIO_BASE is defined.
6b8eaf93 2251 */
ff935051
JH
2252/* FILE_bufsiz:
2253 * This macro is used to determine the number of bytes in the I/O
2254 * buffer pointed to by _base field (or equivalent) of the FILE
2255 * structure pointed to its argument. This macro will always be defined
2256 * if USE_STDIO_BASE is defined.
2d4389e4 2257 */
b4eb6b3d
JH
2258#$d_stdiobase USE_STDIO_BASE /**/
2259#ifdef USE_STDIO_BASE
ff935051
JH
2260#define FILE_base(fp) $stdio_base
2261#define FILE_bufsiz(fp) $stdio_bufsiz
b4eb6b3d 2262#endif
2d4389e4 2263
ff935051
JH
2264/* HAS_STRERROR:
2265 * This symbol, if defined, indicates that the strerror routine is
2266 * available to translate error numbers to strings. See the writeup
2267 * of Strerror() in this file before you try to define your own.
f1066039 2268 */
ff935051
JH
2269/* HAS_SYS_ERRLIST:
2270 * This symbol, if defined, indicates that the sys_errlist array is
2271 * available to translate error numbers to strings. The extern int
2272 * sys_nerr gives the size of that table.
dfe9444c 2273 */
ff935051
JH
2274/* Strerror:
2275 * This preprocessor symbol is defined as a macro if strerror() is
2276 * not available to translate error numbers to strings but sys_errlist[]
2277 * array is there.
68d4903c 2278 */
ff935051
JH
2279#$d_strerror HAS_STRERROR /**/
2280#$d_syserrlst HAS_SYS_ERRLIST /**/
2281#define Strerror(e) $d_strerrm
68d4903c 2282
ff935051
JH
2283/* HAS_STRTOLD:
2284 * This symbol, if defined, indicates that the strtold routine is
2285 * available to convert strings to long doubles.
104d25b7 2286 */
ff935051 2287#$d_strtold HAS_STRTOLD /**/
104d25b7 2288
76d49b1c
JH
2289/* HAS_STRTOLL:
2290 * This symbol, if defined, indicates that the strtoll routine is
2291 * available to convert strings to long longs.
2292 */
2293#$d_strtoll HAS_STRTOLL /**/
2294
28e5dec8
JH
2295/* HAS_STRTOQ:
2296 * This symbol, if defined, indicates that the strtoq routine is
2297 * available to convert strings to long longs (quads).
2298 */
2299#$d_strtoq HAS_STRTOQ /**/
2300
a7fea17f
JH
2301/* HAS_STRTOUL:
2302 * This symbol, if defined, indicates that the strtoul routine is
2303 * available to provide conversion of strings to unsigned long.
2304 */
2305#$d_strtoul HAS_STRTOUL /**/
2306
ff935051
JH
2307/* HAS_STRTOULL:
2308 * This symbol, if defined, indicates that the strtoull routine is
2309 * available to convert strings to unsigned long longs.
ad27e871 2310 */
ff935051 2311#$d_strtoull HAS_STRTOULL /**/
ad27e871 2312
ff935051
JH
2313/* HAS_STRTOUQ:
2314 * This symbol, if defined, indicates that the strtouq routine is
2315 * available to convert strings to unsigned long longs (quads).
104d25b7 2316 */
ff935051 2317#$d_strtouq HAS_STRTOUQ /**/
104d25b7 2318
cb86ce0e
JH
2319/* HAS_TELLDIR_PROTO:
2320 * This symbol, if defined, indicates that the system provides
2321 * a prototype for the telldir() function. Otherwise, it is up
2322 * to the program to supply one. A good guess is
b0ca4213 2323 * extern long telldir _((DIR*));
cb86ce0e
JH
2324 */
2325#$d_telldirproto HAS_TELLDIR_PROTO /**/
2326
ff935051
JH
2327/* Time_t:
2328 * This symbol holds the type returned by time(). It can be long,
2329 * or time_t on BSD sites (in which case <sys/types.h> should be
2330 * included).
2331 */
2332#define Time_t $timetype /* Time type */
2333
2334/* HAS_TIMES:
2335 * This symbol, if defined, indicates that the times() routine exists.
2336 * Note that this became obsolete on some systems (SUNOS), which now
2337 * use getrusage(). It may be necessary to include <sys/times.h>.
2338 */
2339#$d_times HAS_TIMES /**/
2340
4e0554ec
JH
2341/* HAS_UALARM:
2342 * This symbol, if defined, indicates that the ualarm routine is
2343 * available to do alarms with microsecond granularity.
2344 */
2345#$d_ualarm HAS_UALARM /**/
2346
ff935051
JH
2347/* HAS_UNION_SEMUN:
2348 * This symbol, if defined, indicates that the union semun is
2349 * defined by including <sys/sem.h>. If not, the user code
2350 * probably needs to define it as:
2351 * union semun {
2352 * int val;
2353 * struct semid_ds *buf;
2354 * unsigned short *array;
2355 * }
2356 */
2357/* USE_SEMCTL_SEMUN:
2358 * This symbol, if defined, indicates that union semun is
2359 * used for semctl IPC_STAT.
2360 */
2361/* USE_SEMCTL_SEMID_DS:
2362 * This symbol, if defined, indicates that struct semid_ds * is
2363 * used for semctl IPC_STAT.
2364 */
2365#$d_union_semun HAS_UNION_SEMUN /**/
2366#$d_semctl_semun USE_SEMCTL_SEMUN /**/
2367#$d_semctl_semid_ds USE_SEMCTL_SEMID_DS /**/
2368
758a5d79
JH
2369/* HAS_UNORDERED:
2370 * This symbol, if defined, indicates that the unordered routine is
2371 * available to check whether two doubles are unordered
2372 * (effectively: whether either of them is NaN)
2373 */
2374#$d_unordered HAS_UNORDERED /**/
2375
0545a864
JH
2376/* HAS_USTAT:
2377 * This symbol, if defined, indicates that the ustat system call is
2378 * available to query file system statistics by dev_t.
2379 */
2380#$d_ustat HAS_USTAT /**/
2381
ff935051
JH
2382/* HAS_VFORK:
2383 * This symbol, if defined, indicates that vfork() exists.
2384 */
2385#$d_vfork HAS_VFORK /**/
2386
2387/* Signal_t:
2388 * This symbol's value is either "void" or "int", corresponding to the
2389 * appropriate return type of a signal handler. Thus, you can declare
2390 * a signal handler using "Signal_t (*handler)()", and define the
2391 * handler using "Signal_t handler(sig)".
2392 */
2393#define Signal_t $signal_t /* Signal handler's return type */
2394
2395/* HAS_VPRINTF:
2396 * This symbol, if defined, indicates that the vprintf routine is available
2397 * to printf with a pointer to an argument list. If unavailable, you
2398 * may need to write your own, probably in terms of _doprnt().
2399 */
2400/* USE_CHAR_VSPRINTF:
2401 * This symbol is defined if this system has vsprintf() returning type
2402 * (char*). The trend seems to be to declare it as "int vsprintf()". It
2403 * is up to the package author to declare vsprintf correctly based on the
2404 * symbol.
2405 */
2406#$d_vprintf HAS_VPRINTF /**/
2407#$d_charvspr USE_CHAR_VSPRINTF /**/
2408
4e0554ec
JH
2409/* HAS_WRITEV:
2410 * This symbol, if defined, indicates that the writev routine is
2411 * available to do scatter writes.
2412 */
2413#$d_writev HAS_WRITEV /**/
2414
dfe9444c
AD
2415/* USE_DYNAMIC_LOADING:
2416 * This symbol, if defined, indicates that dynamic loading of
2417 * some sort is available.
2418 */
2419#$usedl USE_DYNAMIC_LOADING /**/
2420
ff935051
JH
2421/* DOUBLESIZE:
2422 * This symbol contains the size of a double, so that the C preprocessor
2423 * can make decisions based on it.
2424 */
2425#define DOUBLESIZE $doublesize /**/
2426
2427/* EBCDIC:
2428 * This symbol, if defined, indicates that this system uses
2429 * EBCDIC encoding.
2430 */
2431#$ebcdic EBCDIC /**/
2432
66fe083f
JH
2433/* FFLUSH_NULL:
2434 * This symbol, if defined, tells that fflush(NULL) does flush
2435 * all pending stdio output.
2436 */
767df6a1
JH
2437/* FFLUSH_ALL:
2438 * This symbol, if defined, tells that to flush
2439 * all pending stdio output one must loop through all
a71cd7cd 2440 * the stdio file handles stored in an array and fflush them.
a32a45b6
JH
2441 * Note that if fflushNULL is defined, fflushall will not
2442 * even be probed for and will be left undefined.
767df6a1
JH
2443 */
2444#$fflushNULL FFLUSH_NULL /**/
2445#$fflushall FFLUSH_ALL /**/
66fe083f 2446
ff935051
JH
2447/* Fpos_t:
2448 * This symbol holds the type used to declare file positions in libc.
2449 * It can be fpos_t, long, uint, etc... It may be necessary to include
2450 * <sys/types.h> to get any typedef'ed information.
2451 */
2452#define Fpos_t $fpostype /* File position type */
2453
2454/* Gid_t_f:
2455 * This symbol defines the format string used for printing a Gid_t.
2456 */
2457#define Gid_t_f $gidformat /**/
2458
23dcd6c8
JH
2459/* Gid_t_sign:
2460 * This symbol holds the signedess of a Gid_t.
2461 * 1 for unsigned, -1 for signed.
2462 */
2463#define Gid_t_sign $gidsign /* GID sign */
2464
ff935051
JH
2465/* Gid_t_size:
2466 * This symbol holds the size of a Gid_t in bytes.
2467 */
2468#define Gid_t_size $gidsize /* GID size */
2469
2470/* Gid_t:
2471 * This symbol holds the return type of getgid() and the type of
2472 * argument to setrgid() and related functions. Typically,
2473 * it is the type of group ids in the kernel. It can be int, ushort,
23dcd6c8 2474 * gid_t, etc... It may be necessary to include <sys/types.h> to get
ff935051
JH
2475 * any typedef'ed information.
2476 */
2477#define Gid_t $gidtype /* Type for getgid(), etc... */
2478
2479/* Groups_t:
2480 * This symbol holds the type used for the second argument to
23dcd6c8 2481 * getgroups() and setgroups(). Usually, this is the same as
ff935051 2482 * gidtype (gid_t) , but sometimes it isn't.
23dcd6c8 2483 * It can be int, ushort, gid_t, etc...
ff935051
JH
2484 * It may be necessary to include <sys/types.h> to get any
2485 * typedef'ed information. This is only required if you have
6e78e524 2486 * getgroups() or setgroups()..
ff935051 2487 */
b4eb6b3d
JH
2488#if defined(HAS_GETGROUPS) || defined(HAS_SETGROUPS)
2489#define Groups_t $groupstype /* Type for 2nd arg to [sg]etgroups() */
2490#endif
ff935051 2491
dfe9444c
AD
2492/* DB_Prefix_t:
2493 * This symbol contains the type of the prefix structure element
2494 * in the <db.h> header file. In older versions of DB, it was
2495 * int, while in newer ones it is u_int32_t.
2496 */
2497/* DB_Hash_t:
2498 * This symbol contains the type of the prefix structure element
2499 * in the <db.h> header file. In older versions of DB, it was
2500 * int, while in newer ones it is size_t.
2501 */
640374d0
JH
2502/* DB_VERSION_MAJOR_CFG:
2503 * This symbol, if defined, defines the major version number of
2504 * Berkeley DB found in the <db.h> header when Perl was configured.
2505 */
2506/* DB_VERSION_MINOR_CFG:
2507 * This symbol, if defined, defines the minor version number of
2508 * Berkeley DB found in the <db.h> header when Perl was configured.
2509 * For DB version 1 this is always 0.
2510 */
2511/* DB_VERSION_PATCH_CFG:
2512 * This symbol, if defined, defines the patch version number of
2513 * Berkeley DB found in the <db.h> header when Perl was configured.
2514 * For DB version 1 this is always 0.
2515 */
dfe9444c
AD
2516#define DB_Hash_t $db_hashtype /**/
2517#define DB_Prefix_t $db_prefixtype /**/
640374d0
JH
2518#define DB_VERSION_MAJOR_CFG $db_version_major /**/
2519#define DB_VERSION_MINOR_CFG $db_version_minor /**/
2520#define DB_VERSION_PATCH_CFG $db_version_patch /**/
dfe9444c 2521
758a5d79
JH
2522/* I_FP_CLASS:
2523 * This symbol, if defined, indicates that <fp_class.h> exists and
2524 * should be included.
2525 */
2526#$i_fp_class I_FP_CLASS /**/
2527
ff935051
JH
2528/* I_GRP:
2529 * This symbol, if defined, indicates to the C program that it should
2530 * include <grp.h>.
2531 */
2532/* GRPASSWD:
2533 * This symbol, if defined, indicates to the C program that struct group
2534 * in <grp.h> contains gr_passwd.
2535 */
2536#$i_grp I_GRP /**/
2537#$d_grpasswd GRPASSWD /**/
2538
43999f95
JH
2539/* I_ICONV:
2540 * This symbol, if defined, indicates that <iconv.h> exists and
2541 * should be included.
2542 */
2543#$i_iconv I_ICONV /**/
2544
1acc7ade
JH
2545/* I_IEEEFP:
2546 * This symbol, if defined, indicates that <ieeefp.h> exists and
2547 * should be included.
2548 */
2549#$i_ieeefp I_IEEEFP /**/
2550
5ff3f7a4
GS
2551/* I_INTTYPES:
2552 * This symbol, if defined, indicates to the C program that it should
2553 * include <inttypes.h>.
2554 */
5ff3f7a4 2555#$i_inttypes I_INTTYPES /**/
5ff3f7a4 2556
1b9c9cf5
DH
2557/* I_LIBUTIL:
2558 * This symbol, if defined, indicates that <libutil.h> exists and
2559 * should be included.
2560 */
2561#$i_libutil I_LIBUTIL /**/
2562
ff935051
JH
2563/* I_MACH_CTHREADS:
2564 * This symbol, if defined, indicates to the C program that it should
2565 * include <mach/cthreads.h>.
2566 */
2567#$i_machcthr I_MACH_CTHREADS /**/
2568
e7fb4fcc
JH
2569/* I_MNTENT:
2570 * This symbol, if defined, indicates that <mntent.h> exists and
2571 * should be included.
2572 */
2573#$i_mntent I_MNTENT /**/
2574
ff935051
JH
2575/* I_NETDB:
2576 * This symbol, if defined, indicates that <netdb.h> exists and
2577 * should be included.
2578 */
2579#$i_netdb I_NETDB /**/
2580
9cc6feab
JH
2581/* I_NETINET_TCP:
2582 * This symbol, if defined, indicates to the C program that it should
2583 * include <netinet/tcp.h>.
2584 */
2585#$i_netinettcp I_NETINET_TCP /**/
2586
5b34fd99
JH
2587/* I_POLL:
2588 * This symbol, if defined, indicates that <poll.h> exists and
2589 * should be included.
2590 */
2591#$i_poll I_POLL /**/
2592
3813c136
JH
2593/* I_PROT:
2594 * This symbol, if defined, indicates that <prot.h> exists and
2595 * should be included.
2596 */
2597#$i_prot I_PROT /**/
2598
ff935051
JH
2599/* I_PTHREAD:
2600 * This symbol, if defined, indicates to the C program that it should
2601 * include <pthread.h>.
2602 */
2603#$i_pthread I_PTHREAD /**/
2604
2605/* I_PWD:
2606 * This symbol, if defined, indicates to the C program that it should
2607 * include <pwd.h>.
2608 */
2609/* PWQUOTA:
2610 * This symbol, if defined, indicates to the C program that struct passwd
2611 * contains pw_quota.
2612 */
2613/* PWAGE:
2614 * This symbol, if defined, indicates to the C program that struct passwd
2615 * contains pw_age.
2616 */
2617/* PWCHANGE:
2618 * This symbol, if defined, indicates to the C program that struct passwd
2619 * contains pw_change.
2620 */
2621/* PWCLASS:
2622 * This symbol, if defined, indicates to the C program that struct passwd
2623 * contains pw_class.
2624 */
2625/* PWEXPIRE:
2626 * This symbol, if defined, indicates to the C program that struct passwd
2627 * contains pw_expire.
2628 */
2629/* PWCOMMENT:
2630 * This symbol, if defined, indicates to the C program that struct passwd
2631 * contains pw_comment.
2632 */
2633/* PWGECOS:
2634 * This symbol, if defined, indicates to the C program that struct passwd
2635 * contains pw_gecos.
2636 */
2637/* PWPASSWD:
2638 * This symbol, if defined, indicates to the C program that struct passwd
2639 * contains pw_passwd.
2640 */
2641#$i_pwd I_PWD /**/
2642#$d_pwquota PWQUOTA /**/
2643#$d_pwage PWAGE /**/
2644#$d_pwchange PWCHANGE /**/
2645#$d_pwclass PWCLASS /**/
2646#$d_pwexpire PWEXPIRE /**/
2647#$d_pwcomment PWCOMMENT /**/
2648#$d_pwgecos PWGECOS /**/
2649#$d_pwpasswd PWPASSWD /**/
2650
f1066039
JH
2651/* I_SHADOW:
2652 * This symbol, if defined, indicates that <shadow.h> exists and
2653 * should be included.
2654 */
2655#$i_shadow I_SHADOW /**/
2656
86959918
JH
2657/* I_SOCKS:
2658 * This symbol, if defined, indicates that <socks.h> exists and
2659 * should be included.
2660 */
2661#$i_socks I_SOCKS /**/
2662
923fc586
JH
2663/* I_SUNMATH:
2664 * This symbol, if defined, indicates that <sunmath.h> exists and
2665 * should be included.
2666 */
2667#$i_sunmath I_SUNMATH /**/
2668
ca52efda
JH
2669/* I_SYSLOG:
2670 * This symbol, if defined, indicates that <syslog.h> exists and
2671 * should be included.
2672 */
2673#$i_syslog I_SYSLOG /**/
2674
13b3f787
JH
2675/* I_SYSMODE:
2676 * This symbol, if defined, indicates that <sys/mode.h> exists and
2677 * should be included.
2678 */
2679#$i_sysmode I_SYSMODE /**/
2680
104d25b7
JH
2681/* I_SYS_MOUNT:
2682 * This symbol, if defined, indicates that <sys/mount.h> exists and
2683 * should be included.
2684 */
2685#$i_sysmount I_SYS_MOUNT /**/
2686
0545a864
JH
2687/* I_SYS_STATFS:
2688 * This symbol, if defined, indicates that <sys/statfs.h> exists.
2689 */
2690#$i_sysstatfs I_SYS_STATFS /**/
2691
104d25b7
JH
2692/* I_SYS_STATVFS:
2693 * This symbol, if defined, indicates that <sys/statvfs.h> exists and
2694 * should be included.
2695 */
2696#$i_sysstatvfs I_SYS_STATVFS /**/
2697
ff935051
JH
2698/* I_SYSUIO:
2699 * This symbol, if defined, indicates that <sys/uio.h> exists and
2700 * should be included.
2701 */
2702#$i_sysuio I_SYSUIO /**/
2703
13b3f787
JH
2704/* I_SYSUTSNAME:
2705 * This symbol, if defined, indicates that <sys/utsname.h> exists and
2706 * should be included.
2707 */
2708#$i_sysutsname I_SYSUTSNAME /**/
2709
0545a864
JH
2710/* I_SYS_VFS:
2711 * This symbol, if defined, indicates that <sys/vfs.h> exists and
2712 * should be included.
2713 */
2714#$i_sysvfs I_SYS_VFS /**/
2715
ff935051
JH
2716/* I_TIME:
2717 * This symbol, if defined, indicates to the C program that it should
2718 * include <time.h>.
2719 */
2720/* I_SYS_TIME:
2721 * This symbol, if defined, indicates to the C program that it should
2722 * include <sys/time.h>.
2723 */
2724/* I_SYS_TIME_KERNEL:
2725 * This symbol, if defined, indicates to the C program that it should
2726 * include <sys/time.h> with KERNEL defined.
2727 */
2728#$i_time I_TIME /**/
2729#$i_systime I_SYS_TIME /**/
2730#$i_systimek I_SYS_TIME_KERNEL /**/
2731
0545a864
JH
2732/* I_USTAT:
2733 * This symbol, if defined, indicates that <ustat.h> exists and
2734 * should be included.
2735 */
2736#$i_ustat I_USTAT /**/
2737
ff935051
JH
2738/* PERL_INC_VERSION_LIST:
2739 * This variable specifies the list of subdirectories in over
2740 * which perl.c:incpush() and lib/lib.pm will automatically
2741 * search when adding directories to @INC, in a format suitable
2742 * for a C initialization string. See the inc_version_list entry
2743 * in Porting/Glossary for more details.
2744 */
3a096bf3 2745#define PERL_INC_VERSION_LIST $inc_version_list_init /**/
ff935051 2746
fe749a9f
JH
2747/* INSTALL_USR_BIN_PERL:
2748 * This symbol, if defined, indicates that Perl is to be installed
2749 * also as /usr/bin/perl.
2750 */
2751#$installusrbinperl INSTALL_USR_BIN_PERL /**/
2752
cf2093f6
JH
2753/* PERL_PRIfldbl:
2754 * This symbol, if defined, contains the string used by stdio to
2755 * format long doubles (format 'f') for output.
2756 */
2757/* PERL_PRIgldbl:
2758 * This symbol, if defined, contains the string used by stdio to
2759 * format long doubles (format 'g') for output.
2760 */
c1a7f87b
JH
2761/* PERL_PRIeldbl:
2762 * This symbol, if defined, contains the string used by stdio to
2763 * format long doubles (format 'e') for output.
2764 */
ebd4816b
JH
2765/* PERL_SCNfldbl:
2766 * This symbol, if defined, contains the string used by stdio to
2767 * format long doubles (format 'f') for input.
2768 */
cf2093f6
JH
2769#$d_PRIfldbl PERL_PRIfldbl $sPRIfldbl /**/
2770#$d_PRIgldbl PERL_PRIgldbl $sPRIgldbl /**/
c1a7f87b 2771#$d_PRIeldbl PERL_PRIeldbl $sPRIeldbl /**/
ebd4816b 2772#$d_SCNfldbl PERL_SCNfldbl $sSCNfldbl /**/
cf2093f6 2773
ff935051
JH
2774/* Off_t:
2775 * This symbol holds the type used to declare offsets in the kernel.
2776 * It can be int, long, off_t, etc... It may be necessary to include
2777 * <sys/types.h> to get any typedef'ed information.
2778 */
2779/* LSEEKSIZE:
2780 * This symbol holds the number of bytes used by the Off_t.
2781 */
2782/* Off_t_size:
2783 * This symbol holds the number of bytes used by the Off_t.
2784 */
2785#define Off_t $lseektype /* <offset> type */
2786#define LSEEKSIZE $lseeksize /* <offset> size */
2787#define Off_t_size $lseeksize /* <offset> size */
2788
2789/* Free_t:
2790 * This variable contains the return type of free(). It is usually
2791 * void, but occasionally int.
2792 */
2793/* Malloc_t:
2794 * This symbol is the type of pointer returned by malloc and realloc.
2795 */
2796#define Malloc_t $malloctype /**/
2797#define Free_t $freetype /**/
2798
2799/* MYMALLOC:
2800 * This symbol, if defined, indicates that we're using our own malloc.
2801 */
2802#$d_mymalloc MYMALLOC /**/
2803
2804/* Mode_t:
2805 * This symbol holds the type used to declare file modes
2806 * for systems calls. It is usually mode_t, but may be
2807 * int or unsigned short. It may be necessary to include <sys/types.h>
2808 * to get any typedef'ed information.
2809 */
2810#define Mode_t $modetype /* file mode parameter for system calls */
2811
2812/* VAL_O_NONBLOCK:
2813 * This symbol is to be used during open() or fcntl(F_SETFL) to turn on
2814 * non-blocking I/O for the file descriptor. Note that there is no way
2815 * back, i.e. you cannot turn it blocking again this way. If you wish to
2816 * alternatively switch between blocking and non-blocking, use the
2817 * ioctl(FIOSNBIO) call instead, but that is not supported by all devices.
2818 */
2819/* VAL_EAGAIN:
2820 * This symbol holds the errno error code set by read() when no data was
2821 * present on the non-blocking file descriptor.
2822 */
2823/* RD_NODATA:
2824 * This symbol holds the return code from read() when no data is present
2825 * on the non-blocking file descriptor. Be careful! If EOF_NONBLOCK is
2826 * not defined, then you can't distinguish between no data and EOF by
2827 * issuing a read(). You'll have to find another way to tell for sure!
2828 */
2829/* EOF_NONBLOCK:
2830 * This symbol, if defined, indicates to the C program that a read() on
2831 * a non-blocking file descriptor will return 0 on EOF, and not the value
2832 * held in RD_NODATA (-1 usually, in that case!).
2833 */
2834#define VAL_O_NONBLOCK $o_nonblock
2835#define VAL_EAGAIN $eagain
2836#define RD_NODATA $rd_nodata
2837#$d_eofnblk EOF_NONBLOCK
2838
a7fea17f
JH
2839/* NEED_VA_COPY:
2840 * This symbol, if defined, indicates that the system stores
2841 * the variable argument list datatype, va_list, in a format
2842 * that cannot be copied by simple assignment, so that some
2843 * other means must be used when copying is required.
2844 * As such systems vary in their provision (or non-provision)
2845 * of copying mechanisms, handy.h defines a platform-
2846 * independent macro, Perl_va_copy(src, dst), to do the job.
2847 */
2848#$need_va_copy NEED_VA_COPY /**/
2849
ff935051
JH
2850/* Netdb_host_t:
2851 * This symbol holds the type used for the 1st argument
2852 * to gethostbyaddr().
2853 */
2854/* Netdb_hlen_t:
2855 * This symbol holds the type used for the 2nd argument
2856 * to gethostbyaddr().
2857 */
2858/* Netdb_name_t:
2859 * This symbol holds the type used for the argument to
2860 * gethostbyname().
2861 */
2862/* Netdb_net_t:
2863 * This symbol holds the type used for the 1st argument to
2864 * getnetbyaddr().
2865 */
2866#define Netdb_host_t $netdb_host_type /**/
2867#define Netdb_hlen_t $netdb_hlen_type /**/
2868#define Netdb_name_t $netdb_name_type /**/
2869#define Netdb_net_t $netdb_net_type /**/
2870
7cedd6f8
JH
2871/* PERL_OTHERLIBDIRS:
2872 * This variable contains a colon-separated set of paths for the perl
2873 * binary to search for additional library files or modules.
2874 * These directories will be tacked to the end of @INC.
2875 * Perl will automatically search below each path for version-
2876 * and architecture-specific directories. See PERL_INC_VERSION_LIST
2877 * for more details.
2878 */
2879#$d_perl_otherlibdirs PERL_OTHERLIBDIRS "$otherlibdirs" /**/
2880
8175356b
JH
2881/* IVTYPE:
2882 * This symbol defines the C type used for Perl's IV.
cf2093f6 2883 */
8175356b
JH
2884/* UVTYPE:
2885 * This symbol defines the C type used for Perl's UV.
cf2093f6 2886 */
8175356b
JH
2887/* I8TYPE:
2888 * This symbol defines the C type used for Perl's I8.
0f4b6630 2889 */
8175356b
JH
2890/* U8TYPE:
2891 * This symbol defines the C type used for Perl's U8.
2892 */
2893/* I16TYPE:
2894 * This symbol defines the C type used for Perl's I16.
2895 */
2896/* U16TYPE:
2897 * This symbol defines the C type used for Perl's U16.
2898 */
2899/* I32TYPE:
2900 * This symbol defines the C type used for Perl's I32.
2901 */
2902/* U32TYPE:
2903 * This symbol defines the C type used for Perl's U32.
2904 */
2905/* I64TYPE:
2906 * This symbol defines the C type used for Perl's I64.
2907 */
2908/* U64TYPE:
2909 * This symbol defines the C type used for Perl's U64.
2910 */
2911/* NVTYPE:
2912 * This symbol defines the C type used for Perl's NV.
2913 */
2914/* IVSIZE:
2915 * This symbol contains the sizeof(IV).
2916 */
2917/* UVSIZE:
2918 * This symbol contains the sizeof(UV).
2919 */
a22e52b9
JH
2920/* I8SIZE:
2921 * This symbol contains the sizeof(I8).
2922 */
2923/* U8SIZE:
2924 * This symbol contains the sizeof(U8).
2925 */
2926/* I16SIZE:
2927 * This symbol contains the sizeof(I16).
2928 */
2929/* U16SIZE:
2930 * This symbol contains the sizeof(U16).
2931 */
2932/* I32SIZE:
2933 * This symbol contains the sizeof(I32).
2934 */
2935/* U32SIZE:
2936 * This symbol contains the sizeof(U32).
2937 */
2938/* I64SIZE:
2939 * This symbol contains the sizeof(I64).
2940 */
2941/* U64SIZE:
2942 * This symbol contains the sizeof(U64).
2943 */
b6592ff0
JH
2944/* NVSIZE:
2945 * This symbol contains the sizeof(NV).
2946 */
cce08f5b
JH
2947/* NV_PRESERVES_UV:
2948 * This symbol, if defined, indicates that a variable of type NVTYPE
bd026c32 2949 * can preserve all the bits of a variable of type UVTYPE.
cce08f5b 2950 */
d6c14000
JH
2951/* NV_PRESERVES_UV_BITS:
2952 * This symbol contains the number of bits a variable of type NVTYPE
2953 * can preserve of a variable of type UVTYPE.
2954 */
8175356b
JH
2955#define IVTYPE $ivtype /**/
2956#define UVTYPE $uvtype /**/
2957#define I8TYPE $i8type /**/
2958#define U8TYPE $u8type /**/
2959#define I16TYPE $i16type /**/
2960#define U16TYPE $u16type /**/
2961#define I32TYPE $i32type /**/
2962#define U32TYPE $u32type /**/
b4eb6b3d
JH
2963#ifdef HAS_QUAD
2964#define I64TYPE $i64type /**/
2965#define U64TYPE $u64type /**/
2966#endif
8175356b
JH
2967#define NVTYPE $nvtype /**/
2968#define IVSIZE $ivsize /**/
2969#define UVSIZE $uvsize /**/
a22e52b9
JH
2970#define I8SIZE $i8size /**/
2971#define U8SIZE $u8size /**/
2972#define I16SIZE $i16size /**/
2973#define U16SIZE $u16size /**/
2974#define I32SIZE $i32size /**/
2975#define U32SIZE $u32size /**/
b4eb6b3d
JH
2976#ifdef HAS_QUAD
2977#define I64SIZE $i64size /**/
2978#define U64SIZE $u64size /**/
2979#endif
b6592ff0 2980#define NVSIZE $nvsize /**/
78691af5 2981#$d_nv_preserves_uv NV_PRESERVES_UV
d6c14000 2982#define NV_PRESERVES_UV_BITS $d_nv_preserves_uv_bits
8175356b
JH
2983
2984/* IVdf:
2985 * This symbol defines the format string used for printing a Perl IV
2986 * as a signed decimal integer.
2987 */
2988/* UVuf:
2989 * This symbol defines the format string used for printing a Perl UV
2990 * as an unsigned decimal integer.
2991 */
2992/* UVof:
2993 * This symbol defines the format string used for printing a Perl UV
2994 * as an unsigned octal integer.
2995 */
2996/* UVxf:
2997 * This symbol defines the format string used for printing a Perl UV
6b4667fc
A
2998 * as an unsigned hexadecimal integer in lowercase abcdef.
2999 */
159fae86
JH
3000/* UVXf:
3001 * This symbol defines the format string used for printing a Perl UV
3002 * as an unsigned hexadecimal integer in uppercase ABCDEF.
3003 */
6b4667fc
A
3004/* NVef:
3005 * This symbol defines the format string used for printing a Perl NV
3006 * using %e-ish floating point format.
3007 */
3008/* NVff:
3009 * This symbol defines the format string used for printing a Perl NV
3010 * using %f-ish floating point format.
3011 */
3012/* NVgf:
3013 * This symbol defines the format string used for printing a Perl NV
3014 * using %g-ish floating point format.
cf2093f6 3015 */
8175356b
JH
3016#define IVdf $ivdformat /**/
3017#define UVuf $uvuformat /**/
3018#define UVof $uvoformat /**/
3019#define UVxf $uvxformat /**/
159fae86 3020#define UVXf $uvXUformat /**/
6b4667fc
A
3021#define NVef $nveformat /**/
3022#define NVff $nvfformat /**/
3023#define NVgf $nvgformat /**/
cf2093f6 3024
ff935051
JH
3025/* Pid_t:
3026 * This symbol holds the type used to declare process ids in the kernel.
3027 * It can be int, uint, pid_t, etc... It may be necessary to include
3028 * <sys/types.h> to get any typedef'ed information.
3029 */
3030#define Pid_t $pidtype /* PID type */
3031
3032/* PRIVLIB:
3033 * This symbol contains the name of the private library for this package.
3034 * The library is private in the sense that it needn't be in anyone's
3035 * execution path, but it should be accessible by the world. The program
3036 * should be prepared to do ~ expansion.
3037 */
3038/* PRIVLIB_EXP:
3039 * This symbol contains the ~name expanded version of PRIVLIB, to be used
3040 * in programs that are not prepared to deal with ~ expansion at run-time.
3041 */
3042#define PRIVLIB "$privlib" /**/
3043#define PRIVLIB_EXP "$privlibexp" /**/
3044
3045/* PTRSIZE:
3046 * This symbol contains the size of a pointer, so that the C preprocessor
3047 * can make decisions based on it. It will be sizeof(void *) if
3048 * the compiler supports (void *); otherwise it will be
3049 * sizeof(char *).
3050 */
3051#define PTRSIZE $ptrsize /**/
3052
3053/* Drand01:
3054 * This macro is to be used to generate uniformly distributed
3055 * random numbers over the range [0., 1.[. You may have to supply
3056 * an 'extern double drand48();' in your program since SunOS 4.1.3
1d59c593 3057 * doesn't provide you with anything relevant in its headers.
ff935051
JH
3058 * See HAS_DRAND48_PROTO.
3059 */
3060/* Rand_seed_t:
3061 * This symbol defines the type of the argument of the
3062 * random seed function.
3063 */
3064/* seedDrand01:
3065 * This symbol defines the macro to be used in seeding the
3066 * random number generator (see Drand01).
3067 */
3068/* RANDBITS:
3069 * This symbol indicates how many bits are produced by the
3070 * function used to generate normalized random numbers.
3071 * Values include 15, 16, 31, and 48.
3072 */
3073#define Drand01() $drand01 /**/
3074#define Rand_seed_t $randseedtype /**/
3075#define seedDrand01(x) $seedfunc((Rand_seed_t)x) /**/
3076#define RANDBITS $randbits /**/
3077
5ff3f7a4
GS
3078/* SELECT_MIN_BITS:
3079 * This symbol holds the minimum number of bits operated by select.
3080 * That is, if you do select(n, ...), how many bits at least will be
3081 * cleared in the masks if some activity is detected. Usually this
3082 * is either n or 32*ceil(n/32), especially many little-endians do
3083 * the latter. This is only useful if you have select(), naturally.
3084 */
ff935051
JH
3085#define SELECT_MIN_BITS $selectminbits /**/
3086
3087/* Select_fd_set_t:
3088 * This symbol holds the type used for the 2nd, 3rd, and 4th
3089 * arguments to select. Usually, this is 'fd_set *', if HAS_FD_SET
3090 * is defined, and 'int *' otherwise. This is only useful if you
3091 * have select(), of course.
3092 */
3093#define Select_fd_set_t $selecttype /**/
3094
3095/* SIG_NAME:
3096 * This symbol contains a list of signal names in order of
3097 * signal number. This is intended
3098 * to be used as a static array initialization, like this:
3099 * char *sig_name[] = { SIG_NAME };
3100 * The signals in the list are separated with commas, and each signal
3101 * is surrounded by double quotes. There is no leading SIG in the signal
3102 * name, i.e. SIGQUIT is known as "QUIT".
3103 * Gaps in the signal numbers (up to NSIG) are filled in with NUMnn,
3104 * etc., where nn is the actual signal number (e.g. NUM37).
3105 * The signal number for sig_name[i] is stored in sig_num[i].
3106 * The last element is 0 to terminate the list with a NULL. This
3107 * corresponds to the 0 at the end of the sig_num list.
3108 */
3109/* SIG_NUM:
3110 * This symbol contains a list of signal numbers, in the same order as the
3111 * SIG_NAME list. It is suitable for static array initialization, as in:
3112 * int sig_num[] = { SIG_NUM };
3113 * The signals in the list are separated with commas, and the indices
3114 * within that list and the SIG_NAME list match, so it's easy to compute
3115 * the signal name from a number or vice versa at the price of a small
3116 * dynamic linear lookup.
3117 * Duplicates are allowed, but are moved to the end of the list.
3118 * The signal number corresponding to sig_name[i] is sig_number[i].
3119 * if (i < NSIG) then sig_number[i] == i.
3120 * The last element is 0, corresponding to the 0 at the end of
3121 * the sig_name list.
3122 */
76d3c696
JH
3123/* SIG_SIZE:
3124 * This variable contains the number of elements of the sig_name
bbbf5d77 3125 * and sig_num arrays, excluding the final NULL entry.
76d3c696 3126 */
ff935051
JH
3127#define SIG_NAME $sig_name_init /**/
3128#define SIG_NUM $sig_num_init /**/
76d3c696 3129#define SIG_SIZE $sig_size /**/
ff935051
JH
3130
3131/* SITEARCH:
3132 * This symbol contains the name of the private library for this package.
3133 * The library is private in the sense that it needn't be in anyone's
3134 * execution path, but it should be accessible by the world. The program
3135 * should be prepared to do ~ expansion.
3136 * The standard distribution will put nothing in this directory.
3137 * After perl has been installed, users may install their own local
3138 * architecture-dependent modules in this directory with
3139 * MakeMaker Makefile.PL
3140 * or equivalent. See INSTALL for details.
3141 */
3142/* SITEARCH_EXP:
3143 * This symbol contains the ~name expanded version of SITEARCH, to be used
3144 * in programs that are not prepared to deal with ~ expansion at run-time.
3145 */
3146#define SITEARCH "$sitearch" /**/
3147#define SITEARCH_EXP "$sitearchexp" /**/
3148
3149/* SITELIB:
3150 * This symbol contains the name of the private library for this package.
3151 * The library is private in the sense that it needn't be in anyone's
3152 * execution path, but it should be accessible by the world. The program
3153 * should be prepared to do ~ expansion.
3154 * The standard distribution will put nothing in this directory.
3155 * After perl has been installed, users may install their own local
3156 * architecture-independent modules in this directory with
3157 * MakeMaker Makefile.PL
3158 * or equivalent. See INSTALL for details.
3159 */
3160/* SITELIB_EXP:
3161 * This symbol contains the ~name expanded version of SITELIB, to be used
3162 * in programs that are not prepared to deal with ~ expansion at run-time.
3163 */
526fdc24
MS
3164/* SITELIB_STEM:
3165 * This define is SITELIB_EXP with any trailing version-specific component
3166 * removed. The elements in inc_version_list (inc_version_list.U) can
3167 * be tacked onto this variable to generate a list of directories to search.
3168 */
ff935051
JH
3169#define SITELIB "$sitelib" /**/
3170#define SITELIB_EXP "$sitelibexp" /**/
526fdc24 3171#define SITELIB_STEM "$sitelib_stem" /**/
ff935051 3172
a13ea748
JH
3173/* Size_t_size:
3174 * This symbol holds the size of a Size_t in bytes.
3175 */
3176#define Size_t_size $sizesize /* */
3177
ff935051
JH
3178/* Size_t:
3179 * This symbol holds the type used to declare length parameters
3180 * for string functions. It is usually size_t, but may be
3181 * unsigned long, int, etc. It may be necessary to include
3182 * <sys/types.h> to get any typedef'ed information.
3183 */
3184#define Size_t $sizetype /* length paramater for string functions */
3185
1acc7ade
JH
3186/* Sock_size_t:
3187 * This symbol holds the type used for the size argument of
3188 * various socket calls (just the base type, not the pointer-to).
3189 */
3190#define Sock_size_t $socksizetype /**/
3191
ff935051
JH
3192/* SSize_t:
3193 * This symbol holds the type used by functions that return
3194 * a count of bytes or an error condition. It must be a signed type.
3195 * It is usually ssize_t, but may be long or int, etc.
3196 * It may be necessary to include <sys/types.h> or <unistd.h>
3197 * to get any typedef'ed information.
3198 * We will pick a type such that sizeof(SSize_t) == sizeof(Size_t).
3199 */
3200#define SSize_t $ssizetype /* signed count of bytes */
5ff3f7a4 3201
568ef1f6 3202/* STARTPERL:
3203 * This variable contains the string to put in front of a perl
3204 * script to make sure (one hopes) that it runs with perl and not
3205 * some shell.
3206 */
3207#define STARTPERL "$startperl" /**/
3208
a7fea17f
JH
3209/* STDCHAR:
3210 * This symbol is defined to be the type of char used in stdio.h.
3211 * It has the values "unsigned char" or "char".
3212 */
3213#define STDCHAR $stdchar /**/
3214
ed39a0f2
JH
3215/* HAS_STDIO_STREAM_ARRAY:
3216 * This symbol, if defined, tells that there is an array
3217 * holding the stdio streams.
3218 */
767df6a1 3219/* STDIO_STREAM_ARRAY:
ed39a0f2
JH
3220 * This symbol tells the name of the array holding the stdio streams.
3221 * Usual values include _iob, __iob, and __sF.
767df6a1 3222 */
ed39a0f2 3223#$d_stdio_stream_array HAS_STDIO_STREAM_ARRAY /**/
767df6a1
JH
3224#define STDIO_STREAM_ARRAY $stdio_stream_array
3225
ff935051
JH
3226/* Uid_t_f:
3227 * This symbol defines the format string used for printing a Uid_t.
cf2093f6 3228 */
ff935051
JH
3229#define Uid_t_f $uidformat /**/
3230
23dcd6c8
JH
3231/* Uid_t_sign:
3232 * This symbol holds the signedess of a Uid_t.
3233 * 1 for unsigned, -1 for signed.
3234 */
3235#define Uid_t_sign $uidsign /* UID sign */
3236
ff935051
JH
3237/* Uid_t_size:
3238 * This symbol holds the size of a Uid_t in bytes.
3239 */
3240#define Uid_t_size $uidsize /* UID size */
3241
3242/* Uid_t:
3243 * This symbol holds the type used to declare user ids in the kernel.
3244 * It can be int, ushort, uid_t, etc... It may be necessary to include
3245 * <sys/types.h> to get any typedef'ed information.
3246 */
3247#define Uid_t $uidtype /* UID type */
cf2093f6 3248
10cc9d2a 3249/* USE_64_BIT_INT:
bd9b35c9
JH
3250 * This symbol, if defined, indicates that 64-bit integers should
3251 * be used when available. If not defined, the native integers
49c10eea
JH
3252 * will be employed (be they 32 or 64 bits). The minimal possible
3253 * 64-bitness is used, just enough to get 64-bit integers into Perl.
3254 * This may mean using for example "long longs", while your memory
3255 * may still be limited to 2 gigabytes.
5ff3f7a4 3256 */
10cc9d2a
JH
3257/* USE_64_BIT_ALL:
3258 * This symbol, if defined, indicates that 64-bit integers should
3259 * be used when available. If not defined, the native integers
3260 * will be used (be they 32 or 64 bits). The maximal possible
3261 * 64-bitness is employed: LP64 or ILP64, meaning that you will
3262 * be able to use more than 2 gigabytes of memory. This mode is
3263 * even more binary incompatible than USE_64_BIT_INT. You may not
3264 * be able to run the resulting executable in a 32-bit CPU at all or
3265 * you may need at least to reboot your OS to 64-bit mode.
3266 */
b4eb6b3d
JH
3267#ifndef USE_64_BIT_INT
3268#$use64bitint USE_64_BIT_INT /**/
3269#endif
3270
3271#ifndef USE_64_BIT_ALL
3272#$use64bitall USE_64_BIT_ALL /**/
3273#endif
49c10eea 3274
09458382
JH
3275/* USE_LARGE_FILES:
3276 * This symbol, if defined, indicates that large file support
c890dc6c 3277 * should be used when available.
09458382 3278 */
b4eb6b3d
JH
3279#ifndef USE_LARGE_FILES
3280#$uselargefiles USE_LARGE_FILES /**/
3281#endif
09458382 3282
b0ce926a
JH
3283/* USE_LONG_DOUBLE:
3284 * This symbol, if defined, indicates that long doubles should
3285 * be used when available.
3286 */
b4eb6b3d
JH
3287#ifndef USE_LONG_DOUBLE
3288#$uselongdouble USE_LONG_DOUBLE /**/
3289#endif
d7d93a81 3290
c71a9cee
JH
3291/* USE_MORE_BITS:
3292 * This symbol, if defined, indicates that 64-bit interfaces and
3293 * long doubles should be used when available.
3294 */
b4eb6b3d
JH
3295#ifndef USE_MORE_BITS
3296#$usemorebits USE_MORE_BITS /**/
3297#endif
b0ce926a 3298
104d25b7
JH
3299/* MULTIPLICITY:
3300 * This symbol, if defined, indicates that Perl should
3301 * be built to use multiplicity.
3302 */
b4eb6b3d
JH
3303#ifndef MULTIPLICITY
3304#$usemultiplicity MULTIPLICITY /**/
3305#endif
104d25b7 3306
e876cf0b 3307/* USE_PERLIO:
3308 * This symbol, if defined, indicates that the PerlIO abstraction should
3309 * be used throughout. If not defined, stdio should be
3310 * used in a fully backward compatible manner.
3311 */
b4eb6b3d
JH
3312#ifndef USE_PERLIO
3313#$useperlio USE_PERLIO /**/
3314#endif
e876cf0b 3315
29209bc5
JH
3316/* USE_SOCKS:
3317 * This symbol, if defined, indicates that Perl should
3318 * be built to use socks.
3319 */
d7d93a81 3320#ifndef USE_SOCKS
29209bc5 3321#$usesocks USE_SOCKS /**/
d7d93a81 3322#endif
29209bc5 3323
aaacdc8b
GS
3324/* USE_ITHREADS:
3325 * This symbol, if defined, indicates that Perl should be built to
3326 * use the interpreter-based threading implementation.
3327 */
3328/* USE_5005THREADS:
3329 * This symbol, if defined, indicates that Perl should be built to
3330 * use the 5.005-based threading implementation.
dfe9444c 3331 */
693762b4
AD
3332/* OLD_PTHREADS_API:
3333 * This symbol, if defined, indicates that Perl should
3334 * be built to use the old draft POSIX threads API.
3335 */
9514c62b
JH
3336/* USE_REENTRANT_API:
3337 * This symbol, if defined, indicates that Perl should
3338 * try to use the various _r versions of library functions.
3339 * This is extremely experimental.
3340 */
aaacdc8b
GS
3341#$use5005threads USE_5005THREADS /**/
3342#$useithreads USE_ITHREADS /**/
b4eb6b3d 3343#if defined(USE_5005THREADS) && !defined(USE_ITHREADS)
78b336e7 3344#define USE_THREADS /* until src is revised*/
b4eb6b3d 3345#endif
693762b4 3346#$d_oldpthreads OLD_PTHREADS_API /**/
9514c62b 3347#$usereentrant USE_REENTRANT_API /**/
8e07c86e 3348
1acc7ade
JH
3349/* PERL_VENDORARCH:
3350 * If defined, this symbol contains the name of a private library.
3351 * The library is private in the sense that it needn't be in anyone's
3352 * execution path, but it should be accessible by the world.
3353 * It may have a ~ on the front.
3354 * The standard distribution will put nothing in this directory.
3355 * Vendors who distribute perl may wish to place their own
3356 * architecture-dependent modules and extensions in this directory with
3357 * MakeMaker Makefile.PL INSTALLDIRS=vendor
3358 * or equivalent. See INSTALL for details.
3359 */
526fdc24
MS
3360/* PERL_VENDORARCH_EXP:
3361 * This symbol contains the ~name expanded version of PERL_VENDORARCH, to be used
3362 * in programs that are not prepared to deal with ~ expansion at run-time.
3363 */
1acc7ade 3364#$d_vendorarch PERL_VENDORARCH "$vendorarch" /**/
526fdc24
MS
3365#$d_vendorarch PERL_VENDORARCH_EXP "$vendorarchexp" /**/
3366
ff935051
JH
3367/* PERL_VENDORLIB_EXP:
3368 * This symbol contains the ~name expanded version of VENDORLIB, to be used
3369 * in programs that are not prepared to deal with ~ expansion at run-time.
887d2938 3370 */
526fdc24
MS
3371/* PERL_VENDORLIB_STEM:
3372 * This define is PERL_VENDORLIB_EXP with any trailing version-specific component
3373 * removed. The elements in inc_version_list (inc_version_list.U) can
3374 * be tacked onto this variable to generate a list of directories to search.
3375 */
ff935051 3376#$d_vendorlib PERL_VENDORLIB_EXP "$vendorlibexp" /**/
526fdc24 3377#$d_vendorlib PERL_VENDORLIB_STEM "$vendorlib_stem" /**/
887d2938 3378
b4eb6b3d
JH
3379/* VOIDFLAGS:
3380 * This symbol indicates how much support of the void type is given by this
3381 * compiler. What various bits mean:
3382 *
3383 * 1 = supports declaration of void
3384 * 2 = supports arrays of pointers to functions returning void
3385 * 4 = supports comparisons between pointers to void functions and
3386 * addresses of void functions
3387 * 8 = suports declaration of generic void pointers
3388 *
3389 * The package designer should define VOIDUSED to indicate the requirements
3390 * of the package. This can be done either by #defining VOIDUSED before
3391 * including config.h, or by defining defvoidused in Myinit.U. If the
3392 * latter approach is taken, only those flags will be tested. If the
3393 * level of void support necessary is not present, defines void to int.
3394 */
3395#ifndef VOIDUSED
3396#define VOIDUSED $defvoidused
3397#endif
3398#define VOIDFLAGS $voidflags
3399#if (VOIDFLAGS & VOIDUSED) != VOIDUSED
3400#define void int /* is void to be avoided? */
3401#define M_VOID /* Xenix strikes again */
3402#endif
3403
fe749a9f
JH
3404/* PERL_XS_APIVERSION:
3405 * This variable contains the version of the oldest perl binary
3406 * compatible with the present perl. perl.c:incpush() and
3407 * lib/lib.pm will automatically search in $sitearch for older
3408 * directories across major versions back to xs_apiversion.
3409 * This is only useful if you have a perl library directory tree
3410 * structured like the default one.
3411 * See INSTALL for how this works.
3412 * The versioned site_perl directory was introduced in 5.005,
3413 * so that is the lowest possible value.
3414 * Since this can depend on compile time options (such as
3415 * bincompat) it is set by Configure. Other non-default sources
3416 * of potential incompatibility, such as multiplicity, threads,
3417 * debugging, 64bits, sfio, etc., are not checked for currently,
3418 * though in principle we could go snooping around in old
3419 * Config.pm files.
3420 */
3421/* PERL_PM_APIVERSION:
3422 * This variable contains the version of the oldest perl
3423 * compatible with the present perl. (That is, pure perl modules
3424 * written for pm_apiversion will still work for the current
3425 * version). perl.c:incpush() and lib/lib.pm will automatically
3426 * search in $sitelib for older directories across major versions
3427 * back to pm_apiversion. This is only useful if you have a perl
3428 * library directory tree structured like the default one. The
3429 * versioned site_perl library was introduced in 5.005, so that's
3430 * the default setting for this variable. It's hard to imagine
3431 * it changing before Perl6. It is included here for symmetry
3432 * with xs_apiveprsion -- the searching algorithms will
3433 * (presumably) be similar.
3434 * See the INSTALL file for how this works.
3435 */
3436#define PERL_XS_APIVERSION "$xs_apiversion"
3437#define PERL_PM_APIVERSION "$pm_apiversion"
3438
5440bc8e
JH
3439/* SETUID_SCRIPTS_ARE_SECURE_NOW:
3440 * This symbol, if defined, indicates that the bug that prevents
3441 * setuid scripts from being secure is not present in this kernel.
3442 */
3443/* DOSUID:
3444 * This symbol, if defined, indicates that the C program should
3445 * check the script that it is executing for setuid/setgid bits, and
3446 * attempt to emulate setuid/setgid on systems that have disabled
3447 * setuid #! scripts because the kernel can't do it securely.
3448 * It is up to the package designer to make sure that this emulation
3449 * is done securely. Among other things, it should do an fstat on
3450 * the script it just opened to make sure it really is a setuid/setgid
3451 * script, it should make sure the arguments passed correspond exactly
3452 * to the argument on the #! line, and it should not trust any
3453 * subprocesses to which it must pass the filename rather than the
3454 * file descriptor of the script to be executed.
3455 */
3456#$d_suidsafe SETUID_SCRIPTS_ARE_SECURE_NOW /**/
3457#$d_dosuid DOSUID /**/
3458
3459/* I_STDARG:
3460 * This symbol, if defined, indicates that <stdarg.h> exists and should
3461 * be included.
3462 */
3463/* I_VARARGS:
3464 * This symbol, if defined, indicates to the C program that it should
3465 * include <varargs.h>.
3466 */
3467#$i_stdarg I_STDARG /**/
3468#$i_varargs I_VARARGS /**/
3469
b99a9337
BZ
3470/* SH_PATH:
3471 * This symbol contains the full pathname to the shell used on this
3472 * on this system to execute Bourne shell scripts. Usually, this will be
3473 * /bin/sh, though it's possible that some systems will have /bin/ksh,
3474 * /bin/pdksh, /bin/ash, /bin/bash, or even something such as
3475 * D:/bin/sh.exe.
3476 */
3477#define SH_PATH "$sh" /**/
3478
5440bc8e
JH
3479/* USE_CROSS_COMPILE:
3480 * This symbol, if defined, indicates that Perl is being cross-compiled.
3481 */
3482/* PERL_TARGETARCH:
3483 * This symbol, if defined, indicates the target architecture
3484 * Perl has been cross-compiled to. Undefined if not a cross-compile.
3485 */
3486#ifndef USE_CROSS_COMPILE
3487#$usecrosscompile USE_CROSS_COMPILE /**/
3488#define PERL_TARGETARCH "$targetarch" /**/
3489#endif
3490
2ef53570
JH
3491/* HAS_DBMINIT_PROTO:
3492 * This symbol, if defined, indicates that the system provides
3493 * a prototype for the dbminit() function. Otherwise, it is up
3494 * to the program to supply one. A good guess is
3495 * extern int dbminit(char *);
3496 */
3497#$d_dbminitproto HAS_DBMINIT_PROTO /**/
3498
3499/* HAS_FLOCK_PROTO:
3500 * This symbol, if defined, indicates that the system provides
3501 * a prototype for the flock() function. Otherwise, it is up
3502 * to the program to supply one. A good guess is
3503 * extern int flock(int, int);
3504 */
3505#$d_flockproto HAS_FLOCK_PROTO /**/
3506
b99a9337
BZ
3507/* HAS_FPCLASSL:
3508 * This symbol, if defined, indicates that the fpclassl routine is
3509 * available to classify long doubles. Available for example in IRIX.
3510 * The returned values are defined in <ieeefp.h> and are:
3511 *
3512 * FP_SNAN signaling NaN
3513 * FP_QNAN quiet NaN
3514 * FP_NINF negative infinity
3515 * FP_PINF positive infinity
3516 * FP_NDENORM negative denormalized non-zero
3517 * FP_PDENORM positive denormalized non-zero
3518 * FP_NZERO negative zero
3519 * FP_PZERO positive zero
3520 * FP_NNORM negative normalized non-zero
3521 * FP_PNORM positive normalized non-zero
3522 */
3523#$d_fpclassl HAS_FPCLASSL /**/
3524
2765b840
JH
3525/* HAS_NL_LANGINFO:
3526 * This symbol, if defined, indicates that the nl_langinfo routine is
3527 * available to return local data. You will also need <langinfo.h>
3528 * and therefore I_LANGINFO.
3529 */
3530#$d_nl_langinfo HAS_NL_LANGINFO /**/
3531
983dbef6
JH
3532/* HAS_SIGPROCMASK:
3533 * This symbol, if defined, indicates that the sigprocmask
3534 * system call is available to examine or change the signal mask
3535 * of the calling process.
3536 */
3537#$d_sigprocmask HAS_SIGPROCMASK /**/
3538
49a78c82
JH
3539/* HAS_SOCKATMARK:
3540 * This symbol, if defined, indicates that the sockatmark routine is
3541 * available to test whether a socket is at the out-of-band mark.
3542 */
3543#$d_sockatmark HAS_SOCKATMARK /**/
3544
2ef53570
JH
3545/* HAS_SOCKATMARK_PROTO:
3546 * This symbol, if defined, indicates that the system provides
3547 * a prototype for the sockatmark() function. Otherwise, it is up
3548 * to the program to supply one. A good guess is
3549 * extern int sockatmark _((int));
3550 */
3551#$d_sockatmarkproto HAS_SOCKATMARK_PROTO /**/
3552
eef837ea
JH
3553/* HAS_SETRESGID_PROTO:
3554 * This symbol, if defined, indicates that the system provides
3555 * a prototype for the setresgid() function. Otherwise, it is up
3556 * to the program to supply one. Good guesses are
3557 * extern int setresgid(uid_t ruid, uid_t euid, uid_t suid);
3558 */
3559#$d_sresgproto HAS_SETRESGID_PROTO /**/
3560
640374d0
JH
3561/* HAS_SETRESUID_PROTO:
3562 * This symbol, if defined, indicates that the system provides
3563 * a prototype for the setresuid() function. Otherwise, it is up
3564 * to the program to supply one. Good guesses are
3565 * extern int setresuid(uid_t ruid, uid_t euid, uid_t suid);
3566 */
3567#$d_sresuproto HAS_SETRESUID_PROTO /**/
3568
b3c85772
JH
3569/* HAS_STRFTIME:
3570 * This symbol, if defined, indicates that the strftime routine is
3571 * available to do time formatting.
3572 */
3573#$d_strftime HAS_STRFTIME /**/
3574
2ef53570
JH
3575/* HAS_SYSCALL_PROTO:
3576 * This symbol, if defined, indicates that the system provides
3577 * a prototype for the syscall() function. Otherwise, it is up
3578 * to the program to supply one. Good guesses are
3579 * extern int syscall(int, ...);
3580 * extern int syscall(long, ...);
3581 */
3582#$d_syscallproto HAS_SYSCALL_PROTO /**/
3583
4e0554ec
JH
3584/* U32_ALIGNMENT_REQUIRED:
3585 * This symbol, if defined, indicates that you must access
3586 * character data through U32-aligned pointers.
3587 */
3588#$d_u32align U32_ALIGNMENT_REQUIRED /**/
3589
2ef53570
JH
3590/* HAS_USLEEP_PROTO:
3591 * This symbol, if defined, indicates that the system provides
3592 * a prototype for the usleep() function. Otherwise, it is up
3593 * to the program to supply one. A good guess is
3594 * extern int usleep(useconds_t);
3595 */
3596#$d_usleepproto HAS_USLEEP_PROTO /**/
3597
758a5d79
JH
3598/* I_FP:
3599 * This symbol, if defined, indicates that <fp.h> exists and
3600 * should be included.
3601 */
3602#$i_fp I_FP /**/
3603
2765b840
JH
3604/* I_LANGINFO:
3605 * This symbol, if defined, indicates that <langinfo.h> exists and
3606 * should be included.
3607 */
3608#$i_langinfo I_LANGINFO /**/
3609
d6483fcc
JH
3610/* HAS_PTHREAD_ATFORK:
3611 * This symbol, if defined, indicates that the pthread_atfork routine
3612 * is available setup fork handlers.
3613 */
3614#$d_pthread_atfork HAS_PTHREAD_ATFORK /**/
3615
fe14fcc3 3616#endif
8d063cd8 3617!GROK!THIS!