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