Patches to fflushing in SunOS 4 from Andy Dougherty
[p5sagit/p5-mst-13.2.git] / config_h.SH
1 case $CONFIG in
2 '')
3         if test -f config.sh; then TOP=.;
4         elif test -f ../config.sh; then TOP=..;
5         elif test -f ../../config.sh; then TOP=../..;
6         elif test -f ../../../config.sh; then TOP=../../..;
7         elif test -f ../../../../config.sh; then TOP=../../../..;
8         else
9                 echo "Can't find config.sh."; exit 1
10         fi
11         . $TOP/config.sh
12         ;;
13 esac
14 case "$0" in
15 */*) cd `expr X$0 : 'X\(.*\)/'` ;;
16 esac
17 echo "Extracting config.h (with variable substitutions)"
18 sed <<!GROK!THIS! >config.h -e 's!^#undef\(.*/\)\*!/\*#define\1 \*!' -e 's!^#un-def!#undef!'
19 /*
20  * This file was produced by running the config_h.SH script, which
21  * gets its values from config.sh, which is generally produced by
22  * running Configure.
23  *
24  * Feel free to modify any of this as the need arises.  Note, however,
25  * that running config_h.SH again will wipe out any changes you've made.
26  * For a more permanent change edit config.sh and rerun config_h.SH.
27  *
28  * \$Id: Config_h.U,v 3.0.1.5 1997/02/28 14:57:43 ram Exp $
29  */
30
31 /*
32  * Package name      : $package
33  * Source directory  : $src
34  * Configuration time: $cf_time
35  * Configured by     : $cf_by
36  * Target system     : $myuname
37  */
38
39 #ifndef _config_h_
40 #define _config_h_
41
42 /* LOC_SED:
43  *      This symbol holds the complete pathname to the sed program.
44  */
45 #define LOC_SED         "$full_sed"     /**/
46
47 /* BIN:
48  *      This symbol holds the path of the bin directory where the package will
49  *      be installed. Program must be prepared to deal with ~name substitution.
50  */
51 /* BIN_EXP:
52  *      This symbol is the filename expanded version of the BIN symbol, for
53  *      programs that do not want to deal with that at run-time.
54  */
55 #define BIN "$bin"      /**/
56 #define BIN_EXP "$binexp"       /**/
57
58 /* HAS_ALARM:
59  *      This symbol, if defined, indicates that the alarm routine is
60  *      available.
61  */
62 #$d_alarm HAS_ALARM             /**/
63
64 /* HASATTRIBUTE:
65  *      This symbol indicates the C compiler can check for function attributes,
66  *      such as printf formats. This is normally only supported by GNU cc.
67  */
68 #$d_attribut HASATTRIBUTE       /**/
69 #ifndef HASATTRIBUTE
70 #define __attribute__(_arg_)
71 #endif
72
73 /* HAS_BCMP:
74  *      This symbol is defined if the bcmp() routine is available to
75  *      compare blocks of memory.
76  */
77 #$d_bcmp HAS_BCMP       /**/
78
79 /* HAS_BCOPY:
80  *      This symbol is defined if the bcopy() routine is available to
81  *      copy blocks of memory.
82  */
83 #$d_bcopy HAS_BCOPY     /**/
84
85 /* HAS_BZERO:
86  *      This symbol is defined if the bzero() routine is available to
87  *      set a memory block to 0.
88  */
89 #$d_bzero HAS_BZERO     /**/
90
91 /* HAS_CHOWN:
92  *      This symbol, if defined, indicates that the chown routine is
93  *      available.
94  */
95 #$d_chown HAS_CHOWN             /**/
96
97 /* HAS_CHROOT:
98  *      This symbol, if defined, indicates that the chroot routine is
99  *      available.
100  */
101 #$d_chroot HAS_CHROOT           /**/
102
103 /* HAS_CHSIZE:
104  *      This symbol, if defined, indicates that the chsize routine is available
105  *      to truncate files.  You might need a -lx to get this routine.
106  */
107 #$d_chsize      HAS_CHSIZE              /**/
108
109 /* HASCONST:
110  *      This symbol, if defined, indicates that this C compiler knows about
111  *      the const type. There is no need to actually test for that symbol
112  *      within your programs. The mere use of the "const" keyword will
113  *      trigger the necessary tests.
114  */
115 #$d_const HASCONST      /**/
116 #ifndef HASCONST
117 #define const
118 #endif
119
120 /* HAS_CRYPT:
121  *      This symbol, if defined, indicates that the crypt routine is available
122  *      to encrypt passwords and the like.
123  */
124 #$d_crypt HAS_CRYPT             /**/
125
126 /* HAS_CUSERID:
127  *      This symbol, if defined, indicates that the cuserid routine is
128  *      available to get character login names.
129  */
130 #$d_cuserid HAS_CUSERID         /**/
131
132 /* HAS_DBL_DIG:
133  *      This symbol, if defined, indicates that this system's <float.h>
134  *      or <limits.h> defines the symbol DBL_DIG, which is the number
135  *      of significant digits in a double precision number.  If this
136  *      symbol is not defined, a guess of 15 is usually pretty good.
137  */
138 #$d_dbl_dig HAS_DBL_DIG         /* */
139
140 /* HAS_DIFFTIME:
141  *      This symbol, if defined, indicates that the difftime routine is
142  *      available.
143  */
144 #$d_difftime HAS_DIFFTIME               /**/
145
146 /* HAS_DLERROR:
147  *      This symbol, if defined, indicates that the dlerror routine is
148  *      available to return a string describing the last error that
149  *      occurred from a call to dlopen(), dlclose() or dlsym().
150  */
151 #$d_dlerror HAS_DLERROR /**/
152
153 /* SETUID_SCRIPTS_ARE_SECURE_NOW:
154  *      This symbol, if defined, indicates that the bug that prevents
155  *      setuid scripts from being secure is not present in this kernel.
156  */
157 /* DOSUID:
158  *      This symbol, if defined, indicates that the C program should
159  *      check the script that it is executing for setuid/setgid bits, and
160  *      attempt to emulate setuid/setgid on systems that have disabled
161  *      setuid #! scripts because the kernel can't do it securely.
162  *      It is up to the package designer to make sure that this emulation
163  *      is done securely.  Among other things, it should do an fstat on
164  *      the script it just opened to make sure it really is a setuid/setgid
165  *      script, it should make sure the arguments passed correspond exactly
166  *      to the argument on the #! line, and it should not trust any
167  *      subprocesses to which it must pass the filename rather than the
168  *      file descriptor of the script to be executed.
169  */
170 #$d_suidsafe SETUID_SCRIPTS_ARE_SECURE_NOW      /**/
171 #$d_dosuid DOSUID               /**/
172
173 /* HAS_DUP2:
174  *      This symbol, if defined, indicates that the dup2 routine is
175  *      available to duplicate file descriptors.
176  */
177 #$d_dup2 HAS_DUP2       /**/
178
179 /* HAS_FCHMOD:
180  *      This symbol, if defined, indicates that the fchmod routine is available
181  *      to change mode of opened files.  If unavailable, use chmod().
182  */
183 #$d_fchmod HAS_FCHMOD           /**/
184
185 /* HAS_FCHOWN:
186  *      This symbol, if defined, indicates that the fchown routine is available
187  *      to change ownership of opened files.  If unavailable, use chown().
188  */
189 #$d_fchown HAS_FCHOWN           /**/
190
191 /* HAS_FCNTL:
192  *      This symbol, if defined, indicates to the C program that
193  *      the fcntl() function exists.
194  */
195 #$d_fcntl HAS_FCNTL             /**/
196
197 /* HAS_FGETPOS:
198  *      This symbol, if defined, indicates that the fgetpos routine is
199  *      available to get the file position indicator, similar to ftell().
200  */
201 #$d_fgetpos HAS_FGETPOS /**/
202
203 /* FLEXFILENAMES:
204  *      This symbol, if defined, indicates that the system supports filenames
205  *      longer than 14 characters.
206  */
207 #$d_flexfnam    FLEXFILENAMES           /**/
208
209 /* HAS_FLOCK:
210  *      This symbol, if defined, indicates that the flock routine is
211  *      available to do file locking.
212  */
213 #$d_flock HAS_FLOCK             /**/
214
215 /* HAS_FORK:
216  *      This symbol, if defined, indicates that the fork routine is
217  *      available.
218  */
219 #$d_fork HAS_FORK               /**/
220
221 /* HAS_FSETPOS:
222  *      This symbol, if defined, indicates that the fsetpos routine is
223  *      available to set the file position indicator, similar to fseek().
224  */
225 #$d_fsetpos HAS_FSETPOS /**/
226
227 /* HAS_GETTIMEOFDAY:
228  *      This symbol, if defined, indicates that the gettimeofday() system
229  *      call is available for a sub-second accuracy clock. Usually, the file
230  *      <sys/resource.h> needs to be included (see I_SYS_RESOURCE).
231  *      The type "Timeval" should be used to refer to "struct timeval".
232  */
233 #$d_gettimeod HAS_GETTIMEOFDAY  /**/
234 #ifdef HAS_GETTIMEOFDAY
235 #define Timeval struct timeval  /* Structure used by gettimeofday() */
236 #endif
237
238 /* HAS_GETGROUPS:
239  *      This symbol, if defined, indicates that the getgroups() routine is
240  *      available to get the list of process groups.  If unavailable, multiple
241  *      groups are probably not supported.
242  */
243 #$d_getgrps HAS_GETGROUPS               /**/
244
245 /* HAS_GETLOGIN:
246  *      This symbol, if defined, indicates that the getlogin routine is
247  *      available to get the login name.
248  */
249 #$d_getlogin HAS_GETLOGIN               /**/
250
251 /* HAS_GETPGID:
252  *      This symbol, if defined, indicates to the C program that 
253  *      the getpgid(pid) function is available to get the
254  *      process group id.
255  */
256 #$d_getpgid HAS_GETPGID         /**/
257
258 /* HAS_GETPGRP:
259  *      This symbol, if defined, indicates that the getpgrp routine is
260  *      available to get the current process group.
261  */
262 /* USE_BSD_GETPGRP:
263  *      This symbol, if defined, indicates that getpgrp needs one
264  *      arguments whereas USG one needs none.
265  */
266 #$d_getpgrp HAS_GETPGRP         /**/
267 #$d_bsdgetpgrp USE_BSD_GETPGRP  /**/
268
269 /* HAS_GETPGRP2:
270  *      This symbol, if defined, indicates that the getpgrp2() (as in DG/UX)
271  *      routine is available to get the current process group.
272  */
273 #$d_getpgrp2 HAS_GETPGRP2               /**/
274
275 /* HAS_GETPPID:
276  *      This symbol, if defined, indicates that the getppid routine is
277  *      available to get the parent process ID.
278  */
279 #$d_getppid HAS_GETPPID         /**/
280
281 /* HAS_GETPRIORITY:
282  *      This symbol, if defined, indicates that the getpriority routine is
283  *      available to get a process's priority.
284  */
285 #$d_getprior HAS_GETPRIORITY            /**/
286
287 /* HAS_INET_ATON:
288  *      This symbol, if defined, indicates to the C program that the
289  *      inet_aton() function is available to parse IP address "dotted-quad"
290  *      strings.
291  */
292 #$d_inetaton HAS_INET_ATON              /**/
293
294 /* HAS_KILLPG:
295  *      This symbol, if defined, indicates that the killpg routine is available
296  *      to kill process groups.  If unavailable, you probably should use kill
297  *      with a negative process number.
298  */
299 #$d_killpg HAS_KILLPG   /**/
300
301 /* HAS_LINK:
302  *      This symbol, if defined, indicates that the link routine is
303  *      available to create hard links.
304  */
305 #$d_link HAS_LINK       /**/
306
307 /* HAS_LOCALECONV:
308  *      This symbol, if defined, indicates that the localeconv routine is
309  *      available for numeric and monetary formatting conventions.
310  */
311 #$d_locconv HAS_LOCALECONV      /**/
312
313 /* HAS_LOCKF:
314  *      This symbol, if defined, indicates that the lockf routine is
315  *      available to do file locking.
316  */
317 #$d_lockf HAS_LOCKF             /**/
318
319 /* HAS_LSTAT:
320  *      This symbol, if defined, indicates that the lstat routine is
321  *      available to do file stats on symbolic links.
322  */
323 #$d_lstat HAS_LSTAT             /**/
324
325 /* HAS_MBLEN:
326  *      This symbol, if defined, indicates that the mblen routine is available
327  *      to find the number of bytes in a multibye character.
328  */
329 #$d_mblen HAS_MBLEN             /**/
330
331 /* HAS_MBSTOWCS:
332  *      This symbol, if defined, indicates that the mbstowcs routine is
333  *      available to covert a multibyte string into a wide character string.
334  */
335 #$d_mbstowcs    HAS_MBSTOWCS            /**/
336
337 /* HAS_MBTOWC:
338  *      This symbol, if defined, indicates that the mbtowc routine is available
339  *      to covert a multibyte to a wide character.
340  */
341 #$d_mbtowc HAS_MBTOWC           /**/
342
343 /* HAS_MEMCMP:
344  *      This symbol, if defined, indicates that the memcmp routine is available
345  *      to compare blocks of memory.
346  */
347 #$d_memcmp HAS_MEMCMP   /**/
348
349 /* HAS_MEMCPY:
350  *      This symbol, if defined, indicates that the memcpy routine is available
351  *      to copy blocks of memory.
352  */
353 #$d_memcpy HAS_MEMCPY   /**/
354
355 /* HAS_MEMMOVE:
356  *      This symbol, if defined, indicates that the memmove routine is available
357  *      to copy potentially overlapping blocks of memory. This should be used
358  *      only when HAS_SAFE_BCOPY is not defined. If neither is there, roll your
359  *      own version.
360  */
361 #$d_memmove HAS_MEMMOVE /**/
362
363 /* HAS_MEMSET:
364  *      This symbol, if defined, indicates that the memset routine is available
365  *      to set blocks of memory.
366  */
367 #$d_memset HAS_MEMSET   /**/
368
369 /* HAS_MKDIR:
370  *      This symbol, if defined, indicates that the mkdir routine is available
371  *      to create directories.  Otherwise you should fork off a new process to
372  *      exec /bin/mkdir.
373  */
374 #$d_mkdir HAS_MKDIR             /**/
375
376 /* HAS_MKFIFO:
377  *      This symbol, if defined, indicates that the mkfifo routine is
378  *      available to create FIFOs. Otherwise, mknod should be able to
379  *      do it for you. However, if mkfifo is there, mknod might require
380  *      super-user privileges which mkfifo will not.
381  */
382 #$d_mkfifo HAS_MKFIFO           /**/
383
384 /* HAS_MKTIME:
385  *      This symbol, if defined, indicates that the mktime routine is
386  *      available.
387  */
388 #$d_mktime HAS_MKTIME           /**/
389
390 /* HAS_MSYNC:
391  *      This symbol, if defined, indicates that the msync system call is
392  *      available to synchronize a mapped file.
393  */
394 #$d_msync HAS_MSYNC             /**/
395
396 /* HAS_MUNMAP:
397  *      This symbol, if defined, indicates that the munmap system call is
398  *      available to unmap a region, usually mapped by mmap().
399  */
400 #$d_munmap HAS_MUNMAP           /**/
401
402 /* HAS_NICE:
403  *      This symbol, if defined, indicates that the nice routine is
404  *      available.
405  */
406 #$d_nice HAS_NICE               /**/
407
408 /* HAS_PATHCONF:
409  *      This symbol, if defined, indicates that pathconf() is available
410  *      to determine file-system related limits and options associated
411  *      with a given filename.
412  */
413 /* HAS_FPATHCONF:
414  *      This symbol, if defined, indicates that pathconf() is available
415  *      to determine file-system related limits and options associated
416  *      with a given open file descriptor.
417  */
418 #$d_pathconf HAS_PATHCONF               /**/
419 #$d_fpathconf HAS_FPATHCONF             /**/
420
421 /* HAS_PAUSE:
422  *      This symbol, if defined, indicates that the pause routine is
423  *      available to suspend a process until a signal is received.
424  */
425 #$d_pause HAS_PAUSE             /**/
426
427 /* HAS_PIPE:
428  *      This symbol, if defined, indicates that the pipe routine is
429  *      available to create an inter-process channel.
430  */
431 #$d_pipe HAS_PIPE               /**/
432
433 /* HAS_POLL:
434  *      This symbol, if defined, indicates that the poll routine is
435  *      available to poll active file descriptors. You may safely
436  *      include <poll.h> when this symbol is defined.
437  */
438 #$d_poll HAS_POLL               /**/
439
440 /* HAS_READDIR:
441  *      This symbol, if defined, indicates that the readdir routine is
442  *      available to read directory entries. You may have to include
443  *      <dirent.h>. See I_DIRENT.
444  */
445 #$d_readdir HAS_READDIR         /**/
446
447 /* HAS_SEEKDIR:
448  *      This symbol, if defined, indicates that the seekdir routine is
449  *      available. You may have to include <dirent.h>. See I_DIRENT.
450  */
451 #$d_seekdir HAS_SEEKDIR         /**/
452
453 /* HAS_TELLDIR:
454  *      This symbol, if defined, indicates that the telldir routine is
455  *      available. You may have to include <dirent.h>. See I_DIRENT.
456  */
457 #$d_telldir HAS_TELLDIR         /**/
458
459 /* HAS_REWINDDIR:
460  *      This symbol, if defined, indicates that the rewinddir routine is
461  *      available. You may have to include <dirent.h>. See I_DIRENT.
462  */
463 #$d_rewinddir HAS_REWINDDIR             /**/
464
465 /* HAS_READLINK:
466  *      This symbol, if defined, indicates that the readlink routine is
467  *      available to read the value of a symbolic link.
468  */
469 #$d_readlink HAS_READLINK               /**/
470
471 /* HAS_RENAME:
472  *      This symbol, if defined, indicates that the rename routine is available
473  *      to rename files.  Otherwise you should do the unlink(), link(), unlink()
474  *      trick.
475  */
476 #$d_rename HAS_RENAME   /**/
477
478 /* HAS_RMDIR:
479  *      This symbol, if defined, indicates that the rmdir routine is
480  *      available to remove directories. Otherwise you should fork off a
481  *      new process to exec /bin/rmdir.
482  */
483 #$d_rmdir HAS_RMDIR             /**/
484
485 /* HAS_SELECT:
486  *      This symbol, if defined, indicates that the select routine is
487  *      available to select active file descriptors. If the timeout field
488  *      is used, <sys/time.h> may need to be included.
489  */
490 #$d_select HAS_SELECT   /**/
491
492 /* HAS_SETEGID:
493  *      This symbol, if defined, indicates that the setegid routine is available
494  *      to change the effective gid of the current program.
495  */
496 #$d_setegid HAS_SETEGID         /**/
497
498 /* HAS_SETEUID:
499  *      This symbol, if defined, indicates that the seteuid routine is available
500  *      to change the effective uid of the current program.
501  */
502 #$d_seteuid HAS_SETEUID         /**/
503
504 /* HAS_SETLINEBUF:
505  *      This symbol, if defined, indicates that the setlinebuf routine is
506  *      available to change stderr or stdout from block-buffered or unbuffered
507  *      to a line-buffered mode.
508  */
509 #$d_setlinebuf HAS_SETLINEBUF           /**/
510
511 /* HAS_SETLOCALE:
512  *      This symbol, if defined, indicates that the setlocale routine is
513  *      available to handle locale-specific ctype implementations.
514  */
515 #$d_setlocale HAS_SETLOCALE     /**/
516
517 /* HAS_SETPGID:
518  *      This symbol, if defined, indicates that the setpgid(pid, gpid)
519  *      routine is available to set process group ID.
520  */
521 #$d_setpgid HAS_SETPGID /**/
522
523 /* HAS_SETPGRP:
524  *      This symbol, if defined, indicates that the setpgrp routine is
525  *      available to set the current process group.
526  */
527 /* USE_BSD_SETPGRP:
528  *      This symbol, if defined, indicates that setpgrp needs two
529  *      arguments whereas USG one needs none.  See also HAS_SETPGID
530  *      for a POSIX interface.
531  */
532 #$d_setpgrp HAS_SETPGRP         /**/
533 #$d_bsdsetpgrp USE_BSD_SETPGRP  /**/
534
535 /* HAS_SETPGRP2:
536  *      This symbol, if defined, indicates that the setpgrp2() (as in DG/UX)
537  *      routine is available to set the current process group.
538  */
539 #$d_setpgrp2 HAS_SETPGRP2               /**/
540
541 /* HAS_SETPRIORITY:
542  *      This symbol, if defined, indicates that the setpriority routine is
543  *      available to set a process's priority.
544  */
545 #$d_setprior HAS_SETPRIORITY            /**/
546
547 /* HAS_SETREGID:
548  *      This symbol, if defined, indicates that the setregid routine is
549  *      available to change the real and effective gid of the current
550  *      process.
551  */
552 /* HAS_SETRESGID:
553  *      This symbol, if defined, indicates that the setresgid routine is
554  *      available to change the real, effective and saved gid of the current
555  *      process.
556  */
557 #$d_setregid HAS_SETREGID               /**/
558 #$d_setresgid HAS_SETRESGID             /**/
559
560 /* HAS_SETREUID:
561  *      This symbol, if defined, indicates that the setreuid routine is
562  *      available to change the real and effective uid of the current
563  *      process.
564  */
565 /* HAS_SETRESUID:
566  *      This symbol, if defined, indicates that the setresuid routine is
567  *      available to change the real, effective and saved uid of the current
568  *      process.
569  */
570 #$d_setreuid HAS_SETREUID               /**/
571 #$d_setresuid HAS_SETRESUID             /**/
572
573 /* HAS_SETRGID:
574  *      This symbol, if defined, indicates that the setrgid routine is available
575  *      to change the real gid of the current program.
576  */
577 #$d_setrgid HAS_SETRGID         /**/
578
579 /* HAS_SETRUID:
580  *      This symbol, if defined, indicates that the setruid routine is available
581  *      to change the real uid of the current program.
582  */
583 #$d_setruid HAS_SETRUID         /**/
584
585 /* HAS_SETSID:
586  *      This symbol, if defined, indicates that the setsid routine is
587  *      available to set the process group ID.
588  */
589 #$d_setsid HAS_SETSID   /**/
590
591 /* Shmat_t:
592  *      This symbol holds the return type of the shmat() system call.
593  *      Usually set to 'void *' or 'char *'.
594  */
595 /* HAS_SHMAT_PROTOTYPE:
596  *      This symbol, if defined, indicates that the sys/shm.h includes
597  *      a prototype for shmat().  Otherwise, it is up to the program to
598  *      guess one.  Shmat_t shmat _((int, Shmat_t, int)) is a good guess,
599  *      but not always right so it should be emitted by the program only
600  *      when HAS_SHMAT_PROTOTYPE is not defined to avoid conflicting defs.
601  */
602 #define Shmat_t $shmattype      /**/
603 #$d_shmatprototype HAS_SHMAT_PROTOTYPE  /**/
604
605 /* HAS_STRCHR:
606  *      This symbol is defined to indicate that the strchr()/strrchr()
607  *      functions are available for string searching. If not, try the
608  *      index()/rindex() pair.
609  */
610 /* HAS_INDEX:
611  *      This symbol is defined to indicate that the index()/rindex()
612  *      functions are available for string searching.
613  */
614 #$d_strchr HAS_STRCHR   /**/
615 #$d_index HAS_INDEX     /**/
616
617 /* HAS_STRCOLL:
618  *      This symbol, if defined, indicates that the strcoll routine is
619  *      available to compare strings using collating information.
620  */
621 #$d_strcoll HAS_STRCOLL /**/
622
623 /* USE_STRUCT_COPY:
624  *      This symbol, if defined, indicates that this C compiler knows how
625  *      to copy structures.  If undefined, you'll need to use a block copy
626  *      routine of some sort instead.
627  */
628 #$d_strctcpy    USE_STRUCT_COPY /**/
629
630 /* HAS_STRTOD:
631  *      This symbol, if defined, indicates that the strtod routine is
632  *      available to provide better numeric string conversion than atof().
633  */
634 #$d_strtod HAS_STRTOD   /**/
635
636 /* HAS_STRTOL:
637  *      This symbol, if defined, indicates that the strtol routine is available
638  *      to provide better numeric string conversion than atoi() and friends.
639  */
640 #$d_strtol HAS_STRTOL   /**/
641
642 /* HAS_STRTOUL:
643  *      This symbol, if defined, indicates that the strtoul routine is
644  *      available to provide conversion of strings to unsigned long.
645  */
646 #$d_strtoul HAS_STRTOUL /**/
647
648 /* HAS_STRXFRM:
649  *      This symbol, if defined, indicates that the strxfrm() routine is
650  *      available to transform strings.
651  */
652 #$d_strxfrm HAS_STRXFRM /**/
653
654 /* HAS_SYMLINK:
655  *      This symbol, if defined, indicates that the symlink routine is available
656  *      to create symbolic links.
657  */
658 #$d_symlink HAS_SYMLINK /**/
659
660 /* HAS_SYSCALL:
661  *      This symbol, if defined, indicates that the syscall routine is
662  *      available to call arbitrary system calls. If undefined, that's tough.
663  */
664 #$d_syscall HAS_SYSCALL /**/
665
666 /* HAS_SYSCONF:
667  *      This symbol, if defined, indicates that sysconf() is available
668  *      to determine system related limits and options.
669  */
670 #$d_sysconf HAS_SYSCONF /**/
671
672 /* HAS_SYSTEM:
673  *      This symbol, if defined, indicates that the system routine is
674  *      available to issue a shell command.
675  */
676 #$d_system HAS_SYSTEM   /**/
677
678 /* HAS_TCGETPGRP:
679  *      This symbol, if defined, indicates that the tcgetpgrp routine is
680  *      available to get foreground process group ID.
681  */
682 #$d_tcgetpgrp HAS_TCGETPGRP             /**/
683
684 /* HAS_TCSETPGRP:
685  *      This symbol, if defined, indicates that the tcsetpgrp routine is
686  *      available to set foreground process group ID.
687  */
688 #$d_tcsetpgrp HAS_TCSETPGRP             /**/
689
690 /* HAS_TRUNCATE:
691  *      This symbol, if defined, indicates that the truncate routine is
692  *      available to truncate files.
693  */
694 #$d_truncate HAS_TRUNCATE       /**/
695
696 /* HAS_TZNAME:
697  *      This symbol, if defined, indicates that the tzname[] array is
698  *      available to access timezone names.
699  */
700 #$d_tzname HAS_TZNAME           /**/
701
702 /* HAS_UMASK:
703  *      This symbol, if defined, indicates that the umask routine is
704  *      available to set and get the value of the file creation mask.
705  */
706 #$d_umask HAS_UMASK             /**/
707
708 /* HASVOLATILE:
709  *      This symbol, if defined, indicates that this C compiler knows about
710  *      the volatile declaration.
711  */
712 #$d_volatile    HASVOLATILE     /**/
713 #ifndef HASVOLATILE
714 #define volatile
715 #endif
716
717 /* HAS_WAIT4:
718  *      This symbol, if defined, indicates that wait4() exists.
719  */
720 #$d_wait4 HAS_WAIT4     /**/
721
722 /* HAS_WAITPID:
723  *      This symbol, if defined, indicates that the waitpid routine is
724  *      available to wait for child process.
725  */
726 #$d_waitpid HAS_WAITPID /**/
727
728 /* HAS_WCSTOMBS:
729  *      This symbol, if defined, indicates that the wcstombs routine is
730  *      available to convert wide character strings to multibyte strings.
731  */
732 #$d_wcstombs HAS_WCSTOMBS       /**/
733
734 /* HAS_WCTOMB:
735  *      This symbol, if defined, indicates that the wctomb routine is available
736  *      to covert a wide character to a multibyte.
737  */
738 #$d_wctomb HAS_WCTOMB           /**/
739
740 /* I_ARPA_INET:
741  *      This symbol, if defined, indicates to the C program that it should
742  *      include <arpa/inet.h> to get inet_addr and friends declarations.
743  */
744 #$i_arpainet    I_ARPA_INET             /**/
745
746 /* I_DBM:
747  *      This symbol, if defined, indicates that <dbm.h> exists and should
748  *      be included.
749  */
750 /* I_RPCSVC_DBM:
751  *      This symbol, if defined, indicates that <rpcsvc/dbm.h> exists and
752  *      should be included.
753  */
754 #$i_dbm I_DBM   /**/
755 #$i_rpcsvcdbm I_RPCSVC_DBM      /**/
756
757 /* I_DIRENT:
758  *      This symbol, if defined, indicates to the C program that it should
759  *      include <dirent.h>. Using this symbol also triggers the definition
760  *      of the Direntry_t define which ends up being 'struct dirent' or
761  *      'struct direct' depending on the availability of <dirent.h>.
762  */
763 /* DIRNAMLEN:
764  *      This symbol, if defined, indicates to the C program that the length
765  *      of directory entry names is provided by a d_namlen field.  Otherwise
766  *      you need to do strlen() on the d_name field.
767  */
768 /* Direntry_t:
769  *      This symbol is set to 'struct direct' or 'struct dirent' depending on
770  *      whether dirent is available or not. You should use this pseudo type to
771  *      portably declare your directory entries.
772  */
773 #$i_dirent I_DIRENT             /**/
774 #$d_dirnamlen DIRNAMLEN /**/
775 #define Direntry_t $direntrytype
776
777 /* I_DLFCN:
778  *      This symbol, if defined, indicates that <dlfcn.h> exists and should
779  *      be included.
780  */
781 #$i_dlfcn I_DLFCN               /**/
782
783 /* I_FCNTL:
784  *      This manifest constant tells the C program to include <fcntl.h>.
785  */
786 #$i_fcntl I_FCNTL       /**/
787
788 /* I_FLOAT:
789  *      This symbol, if defined, indicates to the C program that it should
790  *      include <float.h> to get definition of symbols like DBL_MAX or
791  *      DBL_MIN, i.e. machine dependent floating point values.
792  */
793 #$i_float I_FLOAT               /**/
794
795 /* I_LIMITS:
796  *      This symbol, if defined, indicates to the C program that it should
797  *      include <limits.h> to get definition of symbols like WORD_BIT or
798  *      LONG_MAX, i.e. machine dependant limitations.
799  */
800 #$i_limits I_LIMITS             /**/
801
802 /* I_LOCALE:
803  *      This symbol, if defined, indicates to the C program that it should
804  *      include <locale.h>.
805  */
806 #$i_locale      I_LOCALE                /**/
807
808 /* I_MATH:
809  *      This symbol, if defined, indicates to the C program that it should
810  *      include <math.h>.
811  */
812 #$i_math I_MATH         /**/
813
814 /* I_MEMORY:
815  *      This symbol, if defined, indicates to the C program that it should
816  *      include <memory.h>.
817  */
818 #$i_memory I_MEMORY             /**/
819
820 /* I_NDBM:
821  *      This symbol, if defined, indicates that <ndbm.h> exists and should
822  *      be included.
823  */
824 #$i_ndbm I_NDBM /**/
825
826 /* I_NET_ERRNO:
827  *      This symbol, if defined, indicates that <net/errno.h> exists and 
828  *      should be included.
829  */
830 #$i_neterrno I_NET_ERRNO                /**/
831
832 /* I_NETINET_IN:
833  *      This symbol, if defined, indicates to the C program that it should
834  *      include <netinet/in.h>. Otherwise, you may try <sys/in.h>.
835  */
836 #$i_niin I_NETINET_IN   /**/
837
838 /* I_SFIO:
839  *      This symbol, if defined, indicates to the C program that it should
840  *      include <sfio.h>.
841  */
842 #$i_sfio        I_SFIO          /**/
843
844 /* I_STDDEF:
845  *      This symbol, if defined, indicates that <stddef.h> exists and should
846  *      be included.
847  */
848 #$i_stddef I_STDDEF     /**/
849
850 /* I_STDLIB:
851  *      This symbol, if defined, indicates that <stdlib.h> exists and should
852  *      be included.
853  */
854 #$i_stdlib I_STDLIB             /**/
855
856 /* I_STRING:
857  *      This symbol, if defined, indicates to the C program that it should
858  *      include <string.h> (USG systems) instead of <strings.h> (BSD systems).
859  */
860 #$i_string I_STRING             /**/
861
862 /* I_SYS_DIR:
863  *      This symbol, if defined, indicates to the C program that it should
864  *      include <sys/dir.h>.
865  */
866 #$i_sysdir I_SYS_DIR            /**/
867
868 /* I_SYS_FILE:
869  *      This symbol, if defined, indicates to the C program that it should
870  *      include <sys/file.h> to get definition of R_OK and friends.
871  */
872 #$i_sysfile I_SYS_FILE          /**/
873
874 /* I_SYS_IOCTL:
875  *      This symbol, if defined, indicates that <sys/ioctl.h> exists and should
876  *      be included. Otherwise, include <sgtty.h> or <termio.h>.
877  */
878 #$i_sysioctl    I_SYS_IOCTL             /**/
879
880 /* I_SYS_NDIR:
881  *      This symbol, if defined, indicates to the C program that it should
882  *      include <sys/ndir.h>.
883  */
884 #$i_sysndir I_SYS_NDIR  /**/
885
886 /* I_SYS_PARAM:
887  *      This symbol, if defined, indicates to the C program that it should
888  *      include <sys/param.h>.
889  */
890 #$i_sysparam I_SYS_PARAM                /**/
891
892 /* I_SYS_RESOURCE:
893  *      This symbol, if defined, indicates to the C program that it should
894  *      include <sys/resource.h>.
895  */
896 #$i_sysresrc I_SYS_RESOURCE             /**/
897
898 /* I_SYS_SELECT:
899  *      This symbol, if defined, indicates to the C program that it should
900  *      include <sys/select.h> in order to get definition of struct timeval.
901  */
902 #$i_sysselct I_SYS_SELECT       /**/
903
904 /* I_SYS_STAT:
905  *      This symbol, if defined, indicates to the C program that it should
906  *      include <sys/stat.h>.
907  */
908 #$i_sysstat     I_SYS_STAT              /**/
909
910 /* I_SYS_TIMES:
911  *      This symbol, if defined, indicates to the C program that it should
912  *      include <sys/times.h>.
913  */
914 #$i_systimes    I_SYS_TIMES             /**/
915
916 /* I_SYS_TYPES:
917  *      This symbol, if defined, indicates to the C program that it should
918  *      include <sys/types.h>.
919  */
920 #$i_systypes    I_SYS_TYPES             /**/
921
922 /* I_SYS_UN:
923  *      This symbol, if defined, indicates to the C program that it should
924  *      include <sys/un.h> to get UNIX domain socket definitions.
925  */
926 #$i_sysun I_SYS_UN              /**/
927
928 /* I_SYS_WAIT:
929  *      This symbol, if defined, indicates to the C program that it should
930  *      include <sys/wait.h>.
931  */
932 #$i_syswait I_SYS_WAIT  /**/
933
934 /* I_TERMIO:
935  *      This symbol, if defined, indicates that the program should include
936  *      <termio.h> rather than <sgtty.h>.  There are also differences in
937  *      the ioctl() calls that depend on the value of this symbol.
938  */
939 /* I_TERMIOS:
940  *      This symbol, if defined, indicates that the program should include
941  *      the POSIX termios.h rather than sgtty.h or termio.h.
942  *      There are also differences in the ioctl() calls that depend on the
943  *      value of this symbol.
944  */
945 /* I_SGTTY:
946  *      This symbol, if defined, indicates that the program should include
947  *      <sgtty.h> rather than <termio.h>.  There are also differences in
948  *      the ioctl() calls that depend on the value of this symbol.
949  */
950 #$i_termio I_TERMIO             /**/
951 #$i_termios I_TERMIOS           /**/
952 #$i_sgtty I_SGTTY               /**/
953
954 /* I_UNISTD:
955  *      This symbol, if defined, indicates to the C program that it should
956  *      include <unistd.h>.
957  */
958 #$i_unistd I_UNISTD             /**/
959
960 /* I_UTIME:
961  *      This symbol, if defined, indicates to the C program that it should
962  *      include <utime.h>.
963  */
964 #$i_utime I_UTIME               /**/
965
966 /* I_VALUES:
967  *      This symbol, if defined, indicates to the C program that it should
968  *      include <values.h> to get definition of symbols like MINFLOAT or
969  *      MAXLONG, i.e. machine dependant limitations.  Probably, you
970  *      should use <limits.h> instead, if it is available.
971  */
972 #$i_values I_VALUES             /**/
973
974 /* I_STDARG:
975  *      This symbol, if defined, indicates that <stdarg.h> exists and should
976  *      be included.
977  */
978 /* I_VARARGS:
979  *      This symbol, if defined, indicates to the C program that it should
980  *      include <varargs.h>.
981  */
982 #$i_stdarg I_STDARG             /**/
983 #$i_varargs I_VARARGS   /**/
984
985 /* I_VFORK:
986  *      This symbol, if defined, indicates to the C program that it should
987  *      include vfork.h.
988  */
989 #$i_vfork I_VFORK       /**/
990
991 /* CAN_PROTOTYPE:
992  *      If defined, this macro indicates that the C compiler can handle
993  *      function prototypes.
994  */
995 /* _:
996  *      This macro is used to declare function parameters for folks who want
997  *      to make declarations with prototypes using a different style than
998  *      the above macros.  Use double parentheses.  For example:
999  *
1000  *              int main _((int argc, char *argv[]));
1001  */
1002 #$prototype     CAN_PROTOTYPE   /**/
1003 #ifdef CAN_PROTOTYPE
1004 #define _(args) args
1005 #else
1006 #define _(args) ()
1007 #endif
1008
1009 /* SH_PATH:
1010  *      This symbol contains the full pathname to the shell used on this
1011  *      on this system to execute Bourne shell scripts.  Usually, this will be
1012  *      /bin/sh, though it's possible that some systems will have /bin/ksh,
1013  *      /bin/pdksh, /bin/ash, /bin/bash, or even something such as
1014  *      D:/bin/sh.exe.
1015  */
1016 #define SH_PATH "$sh"  /**/
1017
1018 /* STDCHAR:
1019  *      This symbol is defined to be the type of char used in stdio.h.
1020  *      It has the values "unsigned char" or "char".
1021  */
1022 #define STDCHAR $stdchar        /**/
1023
1024 /* HAS_ACCESSX:
1025  *      This symbol, if defined, indicates that the accessx routine is
1026  *      available to do extended access checks.
1027  */
1028 #$d_accessx HAS_ACCESSX         /**/
1029
1030 /* HAS_EACCESS:
1031  *      This symbol, if defined, indicates that the eaccess routine is
1032  *      available to do extended access checks.
1033  */
1034 #$d_eaccess HAS_EACCESS         /**/
1035
1036 /* I_SYS_ACCESS:
1037  *     This symbol, if defined, indicates to the C program that it should
1038  *     include <sys/access.h>.
1039  */
1040 #$i_sysaccess   I_SYS_ACCESS                /**/
1041
1042 /* I_SYS_SECURITY:
1043  *     This symbol, if defined, indicates to the C program that it should
1044  *     include <sys/security.h>.
1045  */
1046 #$i_syssecrt   I_SYS_SECURITY   /**/
1047
1048 /* CROSSCOMPILE:
1049  *      This symbol, if defined, signifies that we our
1050  *      build process is a cross-compilation.
1051  */
1052 #$crosscompile CROSSCOMPILE             /**/
1053
1054 /* INTSIZE:
1055  *      This symbol contains the value of sizeof(int) so that the C
1056  *      preprocessor can make decisions based on it.
1057  */
1058 /* LONGSIZE:
1059  *      This symbol contains the value of sizeof(long) so that the C
1060  *      preprocessor can make decisions based on it.
1061  */
1062 /* SHORTSIZE:
1063  *      This symbol contains the value of sizeof(short) so that the C
1064  *      preprocessor can make decisions based on it.
1065  */
1066 #define INTSIZE $intsize                /**/
1067 #define LONGSIZE $longsize              /**/
1068 #define SHORTSIZE $shortsize            /**/
1069
1070 /* MULTIARCH:
1071  *      This symbol, if defined, signifies that the build
1072  *      process will produce some binary files that are going to be
1073  *      used in a cross-platform environment.  This is the case for
1074  *      example with the NeXT "fat" binaries that contain executables
1075  *      for several CPUs.
1076  */
1077 #$multiarch MULTIARCH           /**/
1078
1079 /* MEM_ALIGNBYTES:
1080  *      This symbol contains the number of bytes required to align a
1081  *      double. Usual values are 2, 4 and 8. The default is eight,
1082  *      for safety.
1083  */
1084 #if defined(CROSSCOMPILE) || defined(MULTIARCH)
1085 #  define MEM_ALIGNBYTES 8
1086 #else
1087 #define MEM_ALIGNBYTES $alignbytes
1088 #endif
1089
1090 /* BYTEORDER:
1091  *      This symbol holds the hexadecimal constant defined in byteorder,
1092  *      i.e. 0x1234 or 0x4321, etc...
1093  *      If the compiler supports cross-compiling or multiple-architecture
1094  *      binaries (eg. on NeXT systems), use compiler-defined macros to
1095  *      determine the byte order.
1096  *      On NeXT 3.2 (and greater), you can build "Fat" Multiple Architecture
1097  *      Binaries (MAB) on either big endian or little endian machines.
1098  *      The endian-ness is available at compile-time.  This only matters
1099  *      for perl, where the config.h can be generated and installed on 
1100  *      one system, and used by a different architecture to build an
1101  *      extension.  Older versions of NeXT that might not have
1102  *      defined either *_ENDIAN__ were all on Motorola 680x0 series,
1103  *      so the default case (for NeXT) is big endian to catch them. 
1104  *      This might matter for NeXT 3.0.
1105  */
1106 #if defined(CROSSCOMPILE) || defined(MULTIARCH)
1107 #  ifdef __LITTLE_ENDIAN__
1108 #    if LONGSIZE == 4
1109 #      define BYTEORDER 0x1234
1110 #    else
1111 #      if LONGSIZE == 8
1112 #        define BYTEORDER 0x12345678
1113 #      endif
1114 #    endif
1115 #  else
1116 #    ifdef __BIG_ENDIAN__
1117 #      if LONGSIZE == 4
1118 #        define BYTEORDER 0x4321
1119 #      else
1120 #        if LONGSIZE == 8
1121 #          define BYTEORDER 0x87654321
1122 #        endif
1123 #      endif
1124 #    endif
1125 #  endif
1126 #  if !defined(BYTEORDER) && (defined(NeXT) || defined(__NeXT__))
1127 #    define BYTEORDER 0x4321
1128 #  endif
1129 #else
1130 #define BYTEORDER 0x$byteorder  /* large digits for MSB */
1131 #endif /* NeXT */
1132
1133 /* CASTI32:
1134  *      This symbol is defined if the C compiler can cast negative
1135  *      or large floating point numbers to 32-bit ints.
1136  */
1137 #$d_casti32     CASTI32         /**/
1138
1139 /* CASTNEGFLOAT:
1140  *      This symbol is defined if the C compiler can cast negative
1141  *      numbers to unsigned longs, ints and shorts.
1142  */
1143 /* CASTFLAGS:
1144  *      This symbol contains flags that say what difficulties the compiler
1145  *      has casting odd floating values to unsigned long:
1146  *              0 = ok
1147  *              1 = couldn't cast < 0
1148  *              2 = couldn't cast >= 0x80000000
1149  *              4 = couldn't cast in argument expression list
1150  */
1151 #$d_castneg     CASTNEGFLOAT            /**/
1152 #define CASTFLAGS $castflags            /**/
1153
1154 /* VOID_CLOSEDIR:
1155  *      This symbol, if defined, indicates that the closedir() routine
1156  *      does not return a value.
1157  */
1158 #$d_void_closedir VOID_CLOSEDIR         /**/
1159
1160 /* HAS_FD_SET:
1161  *      This symbol, when defined, indicates presence of the fd_set typedef
1162  *      in <sys/types.h>
1163  */
1164 #$d_fd_set HAS_FD_SET   /**/
1165
1166 /* Gconvert:
1167  *      This preprocessor macro is defined to convert a floating point
1168  *      number to a string without a trailing decimal point.  This
1169  *      emulates the behavior of sprintf("%g"), but is sometimes much more
1170  *      efficient.  If gconvert() is not available, but gcvt() drops the
1171  *      trailing decimal point, then gcvt() is used.  If all else fails,
1172  *      a macro using sprintf("%g") is used. Arguments for the Gconvert
1173  *      macro are: value, number of digits, whether trailing zeros should
1174  *      be retained, and the output buffer.
1175  *      Possible values are:
1176  *              d_Gconvert='gconvert((x),(n),(t),(b))'
1177  *              d_Gconvert='gcvt((x),(n),(b))'
1178  *              d_Gconvert='sprintf((b),"%.*g",(n),(x))'
1179  *      The last two assume trailing zeros should not be kept.
1180  */
1181 #define Gconvert(x,n,t,b) $d_Gconvert
1182
1183 /* HAS_GNULIBC:
1184  *      This symbol, if defined, indicates to the C program that 
1185  *      the GNU C library is being used.
1186  */
1187 #$d_gnulibc HAS_GNULIBC         /**/
1188 /* HAS_ISASCII:
1189  *      This manifest constant lets the C program know that isascii 
1190  *      is available.
1191  */
1192 #$d_isascii HAS_ISASCII         /**/
1193
1194 /* HAS_LCHOWN:
1195  *      This symbol, if defined, indicates that the lchown routine is
1196  *      available to operate on a symbolic link (instead of following the
1197  *      link).
1198  */
1199 #$d_lchown HAS_LCHOWN           /**/
1200
1201 /* HAS_OPEN3:
1202  *      This manifest constant lets the C program know that the three
1203  *      argument form of open(2) is available.
1204  */
1205 #$d_open3 HAS_OPEN3             /**/
1206
1207 /* HAS_SAFE_BCOPY:
1208  *      This symbol, if defined, indicates that the bcopy routine is available
1209  *      to copy potentially overlapping memory blocks. Otherwise you should
1210  *      probably use memmove() or memcpy(). If neither is defined, roll your
1211  *      own version.
1212  */
1213 #$d_safebcpy HAS_SAFE_BCOPY     /**/
1214
1215 /* HAS_SAFE_MEMCPY:
1216  *      This symbol, if defined, indicates that the memcpy routine is available
1217  *      to copy potentially overlapping memory blocks. Otherwise you should
1218  *      probably use memmove() or memcpy(). If neither is defined, roll your
1219  *      own version.
1220  */
1221 #$d_safemcpy HAS_SAFE_MEMCPY    /**/
1222
1223 /* HAS_SANE_MEMCMP:
1224  *      This symbol, if defined, indicates that the memcmp routine is available
1225  *      and can be used to compare relative magnitudes of chars with their high
1226  *      bits set.  If it is not defined, roll your own version.
1227  */
1228 #$d_sanemcmp HAS_SANE_MEMCMP    /**/
1229
1230 /* HAS_SIGACTION:
1231  *      This symbol, if defined, indicates that Vr4's sigaction() routine
1232  *      is available.
1233  */
1234 #$d_sigaction HAS_SIGACTION     /**/
1235
1236 /* HAS_SIGSETJMP:
1237  *      This variable indicates to the C program that the sigsetjmp()
1238  *      routine is available to save the calling process's registers
1239  *      and stack environment for later use by siglongjmp(), and
1240  *      to optionally save the process's signal mask.  See
1241  *      Sigjmp_buf, Sigsetjmp, and Siglongjmp.
1242  */
1243 /* Sigjmp_buf:
1244  *      This is the buffer type to be used with Sigsetjmp and Siglongjmp.
1245  */
1246 /* Sigsetjmp:
1247  *      This macro is used in the same way as sigsetjmp(), but will invoke
1248  *      traditional setjmp() if sigsetjmp isn't available.
1249  *      See HAS_SIGSETJMP.
1250  */
1251 /* Siglongjmp:
1252  *      This macro is used in the same way as siglongjmp(), but will invoke
1253  *      traditional longjmp() if siglongjmp isn't available.
1254  *      See HAS_SIGSETJMP.
1255  */
1256 #$d_sigsetjmp HAS_SIGSETJMP     /**/
1257 #ifdef HAS_SIGSETJMP
1258 #define Sigjmp_buf sigjmp_buf
1259 #define Sigsetjmp(buf,save_mask) sigsetjmp((buf),(save_mask))
1260 #define Siglongjmp(buf,retval) siglongjmp((buf),(retval))
1261 #else
1262 #define Sigjmp_buf jmp_buf
1263 #define Sigsetjmp(buf,save_mask) setjmp((buf))
1264 #define Siglongjmp(buf,retval) longjmp((buf),(retval))
1265 #endif
1266
1267 /* USE_STDIO_PTR:
1268  *      This symbol is defined if the _ptr and _cnt fields (or similar)
1269  *      of the stdio FILE structure can be used to access the stdio buffer
1270  *      for a file handle.  If this is defined, then the FILE_ptr(fp)
1271  *      and FILE_cnt(fp) macros will also be defined and should be used
1272  *      to access these fields.
1273  */
1274 /* FILE_ptr:
1275  *      This macro is used to access the _ptr field (or equivalent) of the
1276  *      FILE structure pointed to by its argument. This macro will always be
1277  *      defined if USE_STDIO_PTR is defined.
1278  */
1279 /* STDIO_PTR_LVALUE:
1280  *      This symbol is defined if the FILE_ptr macro can be used as an
1281  *      lvalue.
1282  */
1283 /* FILE_cnt:
1284  *      This macro is used to access the _cnt field (or equivalent) of the
1285  *      FILE structure pointed to by its argument. This macro will always be
1286  *      defined if USE_STDIO_PTR is defined.
1287  */
1288 /* STDIO_CNT_LVALUE:
1289  *      This symbol is defined if the FILE_cnt macro can be used as an
1290  *      lvalue.
1291  */
1292 #$d_stdstdio USE_STDIO_PTR      /**/
1293 #ifdef USE_STDIO_PTR
1294 #define FILE_ptr(fp)    $stdio_ptr
1295 #$d_stdio_ptr_lval STDIO_PTR_LVALUE             /**/
1296 #define FILE_cnt(fp)    $stdio_cnt
1297 #$d_stdio_cnt_lval STDIO_CNT_LVALUE             /**/
1298 #endif
1299
1300 /* USE_STDIO_BASE:
1301  *      This symbol is defined if the _base field (or similar) of the
1302  *      stdio FILE structure can be used to access the stdio buffer for
1303  *      a file handle.  If this is defined, then the FILE_base(fp) macro
1304  *      will also be defined and should be used to access this field.
1305  *      Also, the FILE_bufsiz(fp) macro will be defined and should be used
1306  *      to determine the number of bytes in the buffer.  USE_STDIO_BASE
1307  *      will never be defined unless USE_STDIO_PTR is.
1308  */
1309 /* FILE_base:
1310  *      This macro is used to access the _base field (or equivalent) of the
1311  *      FILE structure pointed to by its argument. This macro will always be
1312  *      defined if USE_STDIO_BASE is defined.
1313  */
1314 /* FILE_bufsiz:
1315  *      This macro is used to determine the number of bytes in the I/O
1316  *      buffer pointed to by _base field (or equivalent) of the FILE
1317  *      structure pointed to its argument. This macro will always be defined
1318  *      if USE_STDIO_BASE is defined.
1319  */
1320 #$d_stdiobase USE_STDIO_BASE    /**/
1321 #ifdef USE_STDIO_BASE
1322 #define FILE_base(fp)   $stdio_base
1323 #define FILE_bufsiz(fp) $stdio_bufsiz
1324 #endif
1325
1326 /* HAS_VPRINTF:
1327  *      This symbol, if defined, indicates that the vprintf routine is available
1328  *      to printf with a pointer to an argument list.  If unavailable, you
1329  *      may need to write your own, probably in terms of _doprnt().
1330  */
1331 /* USE_CHAR_VSPRINTF:
1332  *      This symbol is defined if this system has vsprintf() returning type
1333  *      (char*).  The trend seems to be to declare it as "int vsprintf()".  It
1334  *      is up to the package author to declare vsprintf correctly based on the
1335  *      symbol.
1336  */
1337 #$d_vprintf HAS_VPRINTF /**/
1338 #$d_charvspr USE_CHAR_VSPRINTF  /**/
1339
1340 /* DOUBLESIZE:
1341  *      This symbol contains the size of a double, so that the C preprocessor
1342  *      can make decisions based on it.
1343  */
1344 #define DOUBLESIZE $doublesize          /**/
1345
1346 /* I_TIME:
1347  *      This symbol, if defined, indicates to the C program that it should
1348  *      include <time.h>.
1349  */
1350 /* I_SYS_TIME:
1351  *      This symbol, if defined, indicates to the C program that it should
1352  *      include <sys/time.h>.
1353  */
1354 /* I_SYS_TIME_KERNEL:
1355  *      This symbol, if defined, indicates to the C program that it should
1356  *      include <sys/time.h> with KERNEL defined.
1357  */
1358 #$i_time I_TIME         /**/
1359 #$i_systime I_SYS_TIME          /**/
1360 #$i_systimek I_SYS_TIME_KERNEL          /**/
1361
1362 /* VAL_O_NONBLOCK:
1363  *      This symbol is to be used during open() or fcntl(F_SETFL) to turn on
1364  *      non-blocking I/O for the file descriptor. Note that there is no way
1365  *      back, i.e. you cannot turn it blocking again this way. If you wish to
1366  *      alternatively switch between blocking and non-blocking, use the
1367  *      ioctl(FIOSNBIO) call instead, but that is not supported by all devices.
1368  */
1369 /* VAL_EAGAIN:
1370  *      This symbol holds the errno error code set by read() when no data was
1371  *      present on the non-blocking file descriptor.
1372  */
1373 /* RD_NODATA:
1374  *      This symbol holds the return code from read() when no data is present
1375  *      on the non-blocking file descriptor. Be careful! If EOF_NONBLOCK is
1376  *      not defined, then you can't distinguish between no data and EOF by
1377  *      issuing a read(). You'll have to find another way to tell for sure!
1378  */
1379 /* EOF_NONBLOCK:
1380  *      This symbol, if defined, indicates to the C program that a read() on
1381  *      a non-blocking file descriptor will return 0 on EOF, and not the value
1382  *      held in RD_NODATA (-1 usually, in that case!).
1383  */
1384 #define VAL_O_NONBLOCK $o_nonblock
1385 #define VAL_EAGAIN $eagain
1386 #define RD_NODATA $rd_nodata
1387 #$d_eofnblk EOF_NONBLOCK
1388
1389 /* PTRSIZE:
1390  *      This symbol contains the size of a pointer, so that the C preprocessor
1391  *      can make decisions based on it.  It will be sizeof(void *) if
1392  *      the compiler supports (void *); otherwise it will be
1393  *      sizeof(char *).
1394  */
1395 #define PTRSIZE $ptrsize                /**/
1396
1397 /* Drand01:
1398  *      This macro is to be used to generate uniformly distributed
1399  *      random numbers over the range [0., 1.[.  You may have to supply
1400  *      an 'extern double drand48();' in your program since SunOS 4.1.3
1401  *      doesn't provide you with anything relevant in it's headers.
1402  *      See HAS_DRAND48_PROTO.
1403  */
1404 /* Rand_seed_t:
1405  *      This symbol defines the type of the argument of the
1406  *      random seed function.
1407  */
1408 /* seedDrand01:
1409  *      This symbol defines the macro to be used in seeding the
1410  *      random number generator (see Drand01).
1411  */
1412 /* RANDBITS:
1413  *      This symbol indicates how many bits are produced by the
1414  *      function used to generate normalized random numbers.
1415  *      Values include 15, 16, 31, and 48.
1416  */
1417 #define Drand01()               $drand01                /**/
1418 #define Rand_seed_t             $randseedtype           /**/
1419 #define seedDrand01(x)  $seedfunc((Rand_seed_t)x)       /**/
1420 #define RANDBITS                $randbits               /**/
1421
1422 /* SSize_t:
1423  *      This symbol holds the type used by functions that return
1424  *      a count of bytes or an error condition.  It must be a signed type.
1425  *      It is usually ssize_t, but may be long or int, etc.
1426  *      It may be necessary to include <sys/types.h> or <unistd.h>
1427  *      to get any typedef'ed information.
1428  *      We will pick a type such that sizeof(SSize_t) == sizeof(Size_t).
1429  */
1430 #define SSize_t $ssizetype       /* signed count of bytes */
1431
1432 /* EBCDIC:
1433  *     This symbol, if defined, indicates that this system uses
1434  *      EBCDIC encoding.
1435  */
1436 #$ebcdic        EBCDIC          /**/
1437
1438 /* OSNAME:
1439  *      This symbol contains the name of the operating system, as determined
1440  *      by Configure.  You shouldn't rely on it too much; the specific
1441  *      feature tests from Configure are generally more reliable.
1442  */
1443 #define OSNAME "$osname"                /**/
1444
1445 /* CAT2:
1446  *      This macro catenates 2 tokens together.
1447  */
1448 /* STRINGIFY:
1449  *      This macro surrounds its token with double quotes.
1450  */
1451 #if $cpp_stuff == 1
1452 #define CAT2(a,b)a/**/b
1453 #define STRINGIFY(a)"a"
1454                 /* If you can get stringification with catify, tell me how! */
1455 #endif
1456 #if $cpp_stuff == 42
1457 #define CAT2(a,b)a ## b
1458 #define StGiFy(a)# a
1459 #define STRINGIFY(a)StGiFy(a)
1460 #endif
1461 #if $cpp_stuff != 1 && $cpp_stuff != 42
1462 #include "Bletch: How does this C preprocessor catenate tokens?"
1463 #endif
1464
1465 /* CPPSTDIN:
1466  *      This symbol contains the first part of the string which will invoke
1467  *      the C preprocessor on the standard input and produce to standard
1468  *      output.  Typical value of "cc -E" or "/lib/cpp", but it can also
1469  *      call a wrapper. See CPPRUN.
1470  */
1471 /* CPPMINUS:
1472  *      This symbol contains the second part of the string which will invoke
1473  *      the C preprocessor on the standard input and produce to standard
1474  *      output.  This symbol will have the value "-" if CPPSTDIN needs a minus
1475  *      to specify standard input, otherwise the value is "".
1476  */
1477 /* CPPRUN:
1478  *      This symbol contains the string which will invoke a C preprocessor on
1479  *      the standard input and produce to standard output. It needs to end
1480  *      with CPPLAST, after all other preprocessor flags have been specified.
1481  *      The main difference with CPPSTDIN is that this program will never be a
1482  *      pointer to a shell wrapper, i.e. it will be empty if no preprocessor is
1483  *      available directly to the user. Note that it may well be different from
1484  *      the preprocessor used to compile the C program.
1485  */
1486 #define CPPSTDIN "$cppstdin"
1487 #define CPPMINUS "$cppminus"
1488 #define CPPRUN "$cpprun"
1489
1490 /* HAS_ACCESS:
1491  *      This manifest constant lets the C program know that the access()
1492  *      system call is available to check for accessibility using real UID/GID.
1493  *      (always present on UNIX.)
1494  */
1495 #$d_access HAS_ACCESS           /**/
1496
1497 /* HAS_CSH:
1498  *      This symbol, if defined, indicates that the C-shell exists.
1499  */
1500 /* CSH:
1501  *      This symbol, if defined, contains the full pathname of csh.
1502  */
1503 #$d_csh HAS_CSH         /**/
1504 #ifdef HAS_CSH
1505 #define CSH "$full_csh" /**/
1506 #endif
1507
1508 /* HAS_ENDGRENT:
1509  *      This symbol, if defined, indicates that the getgrent routine is
1510  *      available for finalizing sequential access of the group database.
1511  */
1512 #$d_endgrent HAS_ENDGRENT               /**/
1513
1514 /* HAS_ENDHOSTENT:
1515  *      This symbol, if defined, indicates that the endhostent() routine is
1516  *      available to close whatever was being used for host queries.
1517  */
1518 #$d_endhent HAS_ENDHOSTENT              /**/
1519
1520 /* HAS_ENDNETENT:
1521  *      This symbol, if defined, indicates that the endnetent() routine is
1522  *      available to close whatever was being used for network queries.
1523  */
1524 #$d_endnent HAS_ENDNETENT               /**/
1525
1526 /* HAS_ENDPROTOENT:
1527  *      This symbol, if defined, indicates that the endprotoent() routine is
1528  *      available to close whatever was being used for protocol queries.
1529  */
1530 #$d_endpent HAS_ENDPROTOENT             /**/
1531
1532 /* HAS_ENDPWENT:
1533  *      This symbol, if defined, indicates that the getgrent routine is
1534  *      available for finalizing sequential access of the passwd database.
1535  */
1536 #$d_endpwent HAS_ENDPWENT               /**/
1537
1538 /* HAS_ENDSERVENT:
1539  *      This symbol, if defined, indicates that the endservent() routine is
1540  *      available to close whatever was being used for service queries.
1541  */
1542 #$d_endsent HAS_ENDSERVENT              /**/
1543
1544 /* HAS_GETGRENT:
1545  *      This symbol, if defined, indicates that the getgrent routine is
1546  *      available for sequential access of the group database.
1547  */
1548 #$d_getgrent HAS_GETGRENT               /**/
1549
1550 /* HAS_GETHOSTBYADDR:
1551  *      This symbol, if defined, indicates that the gethostbyaddr() routine is
1552  *      available to look up hosts by their IP addresses.
1553  */
1554 #$d_gethbyaddr HAS_GETHOSTBYADDR                /**/
1555
1556 /* HAS_GETHOSTBYNAME:
1557  *      This symbol, if defined, indicates that the gethostbyname() routine is
1558  *      available to look up host names in some data base or other.
1559  */
1560 #$d_gethbyname HAS_GETHOSTBYNAME                /**/
1561
1562 /* HAS_GETHOSTENT:
1563  *      This symbol, if defined, indicates that the gethostent() routine is
1564  *      available to look up host names in some data base or another.
1565  */
1566 #$d_gethent HAS_GETHOSTENT              /**/
1567
1568 /* HAS_GETHOSTNAME:
1569  *      This symbol, if defined, indicates that the C program may use the
1570  *      gethostname() routine to derive the host name.  See also HAS_UNAME
1571  *      and PHOSTNAME.
1572  */
1573 /* HAS_UNAME:
1574  *      This symbol, if defined, indicates that the C program may use the
1575  *      uname() routine to derive the host name.  See also HAS_GETHOSTNAME
1576  *      and PHOSTNAME.
1577  */
1578 /* PHOSTNAME:
1579  *      This symbol, if defined, indicates the command to feed to the
1580  *      popen() routine to derive the host name.  See also HAS_GETHOSTNAME
1581  *      and HAS_UNAME.  Note that the command uses a fully qualified path,
1582  *      so that it is safe even if used by a process with super-user
1583  *      privileges.
1584  */
1585 #$d_gethname HAS_GETHOSTNAME    /**/
1586 #$d_uname HAS_UNAME             /**/
1587 #$d_phostname HAS_PHOSTNAME
1588 #ifdef HAS_PHOSTNAME
1589 #define PHOSTNAME "$aphostname" /* How to get the host name */
1590 #endif
1591
1592 /* HAS_GETNETBYADDR:
1593  *      This symbol, if defined, indicates that the getnetbyaddr() routine is
1594  *      available to look up networks by their IP addresses.
1595  */
1596 #$d_getnbyaddr HAS_GETNETBYADDR         /**/
1597
1598 /* HAS_GETNETBYNAME:
1599  *      This symbol, if defined, indicates that the getnetbyname() routine is
1600  *      available to look up networks by their names.
1601  */
1602 #$d_getnbyname HAS_GETNETBYNAME         /**/
1603
1604 /* HAS_GETNETENT:
1605  *      This symbol, if defined, indicates that the getnetent() routine is
1606  *      available to look up network names in some data base or another.
1607  */
1608 #$d_getnent HAS_GETNETENT               /**/
1609
1610 /* HAS_GETPROTOENT:
1611  *      This symbol, if defined, indicates that the getprotoent() routine is
1612  *      available to look up protocols in some data base or another.
1613  */
1614 #$d_getpent HAS_GETPROTOENT             /**/
1615
1616 /* HAS_GETPROTOBYNAME:
1617  *      This symbol, if defined, indicates that the getprotobyname()
1618  *      routine is available to look up protocols by their name.
1619  */
1620 /* HAS_GETPROTOBYNUMBER:
1621  *      This symbol, if defined, indicates that the getprotobynumber()
1622  *      routine is available to look up protocols by their number.
1623  */
1624 #$d_getpbyname HAS_GETPROTOBYNAME               /**/
1625 #$d_getpbynumber HAS_GETPROTOBYNUMBER           /**/
1626
1627 /* HAS_GETPWENT:
1628  *      This symbol, if defined, indicates that the getpwent routine is
1629  *      available for sequential access of the passwd database.
1630  *      If this is not available, the older getpw() function may be available.
1631  */
1632 #$d_getpwent HAS_GETPWENT               /**/
1633
1634 /* HAS_GETSERVENT:
1635  *      This symbol, if defined, indicates that the getservent() routine is
1636  *      available to look up network services in some data base or another.
1637  */
1638 #$d_getsent HAS_GETSERVENT              /**/
1639
1640 /* HAS_GETSERVBYNAME:
1641  *      This symbol, if defined, indicates that the getservbyname()
1642  *      routine is available to look up services by their name.
1643  */
1644 /* HAS_GETSERVBYPORT:
1645  *      This symbol, if defined, indicates that the getservbyport()
1646  *      routine is available to look up services by their port.
1647  */
1648 #$d_getsbyname HAS_GETSERVBYNAME                /**/
1649 #$d_getsbyport HAS_GETSERVBYPORT                /**/
1650
1651 /* HAS_HTONL:
1652  *      This symbol, if defined, indicates that the htonl() routine (and
1653  *      friends htons() ntohl() ntohs()) are available to do network
1654  *      order byte swapping.
1655  */
1656 /* HAS_HTONS:
1657  *      This symbol, if defined, indicates that the htons() routine (and
1658  *      friends htonl() ntohl() ntohs()) are available to do network
1659  *      order byte swapping.
1660  */
1661 /* HAS_NTOHL:
1662  *      This symbol, if defined, indicates that the ntohl() routine (and
1663  *      friends htonl() htons() ntohs()) are available to do network
1664  *      order byte swapping.
1665  */
1666 /* HAS_NTOHS:
1667  *      This symbol, if defined, indicates that the ntohs() routine (and
1668  *      friends htonl() htons() ntohl()) are available to do network
1669  *      order byte swapping.
1670  */
1671 #$d_htonl HAS_HTONL             /**/
1672 #$d_htonl HAS_HTONS             /**/
1673 #$d_htonl HAS_NTOHL             /**/
1674 #$d_htonl HAS_NTOHS             /**/
1675
1676 /* HAS_LONG_DOUBLE:
1677  *      This symbol will be defined if the C compiler supports long
1678  *      doubles.
1679  */
1680 /* LONG_DOUBLESIZE:
1681  *      This symbol contains the size of a long double, so that the 
1682  *      C preprocessor can make decisions based on it.  It is only
1683  *      defined if the system supports long doubles.
1684  */
1685 #$d_longdbl HAS_LONG_DOUBLE             /**/
1686 #ifdef HAS_LONG_DOUBLE
1687 #define LONG_DOUBLESIZE $longdblsize            /**/
1688 #endif
1689
1690 /* HAS_LONG_LONG:
1691  *      This symbol will be defined if the C compiler supports long long.
1692  */
1693 /* LONGLONGSIZE:
1694  *      This symbol contains the size of a long long, so that the 
1695  *      C preprocessor can make decisions based on it.  It is only
1696  *      defined if the system supports long long.
1697  */
1698 #$d_longlong HAS_LONG_LONG              /**/
1699 #ifdef HAS_LONG_LONG
1700 #define LONGLONGSIZE $longlongsize              /**/
1701 #endif
1702
1703 /* HAS_MEMCHR:
1704  *      This symbol, if defined, indicates that the memchr routine is available
1705  *      to locate characters within a C string.
1706  */
1707 #$d_memchr HAS_MEMCHR   /**/
1708
1709 /* HAS_MMAP:
1710  *      This symbol, if defined, indicates that the mmap system call is
1711  *      available to map a file into memory.
1712  */
1713 /* Mmap_t:
1714  *      This symbol holds the return type of the mmap() system call
1715  *      (and simultaneously the type of the first argument).
1716  *      Usually set to 'void *' or 'cadd_t'.
1717  */
1718 #$d_mmap HAS_MMAP               /**/
1719 #define Mmap_t $mmaptype        /**/
1720
1721 /* HAS_MSG:
1722  *      This symbol, if defined, indicates that the entire msg*(2) library is
1723  *      supported (IPC mechanism based on message queues).
1724  */
1725 #$d_msg HAS_MSG         /**/
1726
1727 /* HAS_SEM:
1728  *      This symbol, if defined, indicates that the entire sem*(2) library is
1729  *      supported.
1730  */
1731 #$d_sem HAS_SEM         /**/
1732
1733 /* HAS_SETGRENT:
1734  *      This symbol, if defined, indicates that the setgrent routine is
1735  *      available for initializing sequential access of the group database.
1736  */
1737 #$d_setgrent HAS_SETGRENT               /**/
1738
1739 /* HAS_SETGROUPS:
1740  *      This symbol, if defined, indicates that the setgroups() routine is
1741  *      available to set the list of process groups.  If unavailable, multiple
1742  *      groups are probably not supported.
1743  */
1744 #$d_setgrps HAS_SETGROUPS               /**/
1745
1746 /* HAS_SETHOSTENT:
1747  *      This symbol, if defined, indicates that the sethostent() routine is
1748  *      available.
1749  */
1750 #$d_sethent HAS_SETHOSTENT              /**/
1751
1752 /* HAS_SETNETENT:
1753  *      This symbol, if defined, indicates that the setnetent() routine is
1754  *      available.
1755  */
1756 #$d_setnent HAS_SETNETENT               /**/
1757
1758 /* HAS_SETPROTOENT:
1759  *      This symbol, if defined, indicates that the setprotoent() routine is
1760  *      available.
1761  */
1762 #$d_setpent HAS_SETPROTOENT             /**/
1763
1764 /* HAS_SETPWENT:
1765  *      This symbol, if defined, indicates that the setpwent routine is
1766  *      available for initializing sequential access of the passwd database.
1767  */
1768 #$d_setpwent HAS_SETPWENT               /**/
1769
1770 /* HAS_SETSERVENT:
1771  *      This symbol, if defined, indicates that the setservent() routine is
1772  *      available.
1773  */
1774 #$d_setsent HAS_SETSERVENT              /**/
1775
1776 /* HAS_SETVBUF:
1777  *      This symbol, if defined, indicates that the setvbuf routine is
1778  *      available to change buffering on an open stdio stream.
1779  *      to a line-buffered mode.
1780  */
1781 #$d_setvbuf HAS_SETVBUF         /**/
1782
1783 /* HAS_SHM:
1784  *      This symbol, if defined, indicates that the entire shm*(2) library is
1785  *      supported.
1786  */
1787 #$d_shm HAS_SHM         /**/
1788
1789 /* HAS_SOCKET:
1790  *      This symbol, if defined, indicates that the BSD socket interface is
1791  *      supported.
1792  */
1793 /* HAS_SOCKETPAIR:
1794  *      This symbol, if defined, indicates that the BSD socketpair() call is
1795  *      supported.
1796  */
1797 /* HAS_MSG_CTRUNC:
1798  *      This symbol, if defined, indicates that the MSG_CTRUNC is supported.
1799  *      Checking just with #ifdef might not be enough because this symbol
1800  *      has been known to be an enum.
1801  */
1802 /* HAS_MSG_DONTROUTE:
1803  *      This symbol, if defined, indicates that the MSG_DONTROUTE is supported.
1804  *      Checking just with #ifdef might not be enough because this symbol
1805  *      has been known to be an enum.
1806  */
1807 /* HAS_MSG_OOB:
1808  *      This symbol, if defined, indicates that the MSG_OOB is supported.
1809  *      Checking just with #ifdef might not be enough because this symbol
1810  *      has been known to be an enum.
1811  */
1812 /* HAS_MSG_PEEK:
1813  *      This symbol, if defined, indicates that the MSG_PEEK is supported.
1814  *      Checking just with #ifdef might not be enough because this symbol
1815  *      has been known to be an enum.
1816  */
1817 /* HAS_MSG_PROXY:
1818  *      This symbol, if defined, indicates that the MSG_PROXY is supported.
1819  *      Checking just with #ifdef might not be enough because this symbol
1820  *      has been known to be an enum.
1821  */
1822 /* HAS_SCM_RIGHTS:
1823  *      This symbol, if defined, indicates that the SCM_RIGHTS is supported.
1824  *      Checking just with #ifdef might not be enough because this symbol
1825  *      has been known to be an enum.
1826  */
1827 /* HAS_SENDMSG:
1828  *      This symbol, if defined, indicates that the sendmsg is supported
1829  *      to send messages between sockets.  You will also need struct
1830  *      iovec from <sys/uio.h>, HAS_STRUCT_IOVEC and I_SYSUIO.
1831  */
1832 /* HAS_RECVMSG:
1833  *      This symbol, if defined, indicates that the recvmsg is supported
1834  *      to send messages between sockets.  You will also need struct
1835  *      iovec from <sys/uio.h>, HAS_STRUCT_IOVEC and I_SYSUIO.
1836  */
1837 /* HAS_STRUCT_MSGHDR:
1838  *      This symbol, if defined, indicates that the struct msghdr
1839  *      (BSD 4.3 or 4.4) is supported.  You will also need struct
1840  *      iovec from <sys/uio.h>, HAS_STRUCT_IOVEC and I_SYSUIO.
1841  */
1842 /* HAS_STRUCT_CMSGHDR:
1843  *      This symbol, if defined, indicates that the struct cmsghdr
1844  *      (BSD 4.4) is supported.  You will also need struct
1845  *      iovec from <sys/uio.h>, HAS_STRUCT_IOVEC and I_SYSUIO.
1846  */
1847 #$d_socket      HAS_SOCKET              /**/
1848 #$d_sockpair    HAS_SOCKETPAIR  /**/
1849 #$d_msg_ctrunc  HAS_MSG_CTRUNC  /**/
1850 #$d_msg_dontroute       HAS_MSG_DONTROUTE       /**/
1851 #$d_msg_oob     HAS_MSG_OOB     /**/
1852 #$d_msg_peek    HAS_MSG_PEEK    /**/
1853 #$d_msg_proxy   HAS_MSG_PROXY   /**/
1854 #$d_scm_rights  HAS_SCM_RIGHTS  /**/
1855 #$d_sendmsg     HAS_SENDMSG     /**/
1856 #$d_recvmsg     HAS_RECVMSG     /**/
1857 #$d_msghdr_s    HAS_STRUCT_MSGHDR       /**/
1858 #$d_cmsghdr_s   HAS_STRUCT_CMSGHDR      /**/
1859
1860 /* USE_STAT_BLOCKS:
1861  *      This symbol is defined if this system has a stat structure declaring
1862  *      st_blksize and st_blocks.
1863  */
1864 #$d_statblks USE_STAT_BLOCKS    /**/
1865
1866 /* HAS_STRERROR:
1867  *      This symbol, if defined, indicates that the strerror routine is
1868  *      available to translate error numbers to strings. See the writeup
1869  *      of Strerror() in this file before you try to define your own.
1870  */
1871 /* HAS_SYS_ERRLIST:
1872  *      This symbol, if defined, indicates that the sys_errlist array is
1873  *      available to translate error numbers to strings. The extern int
1874  *      sys_nerr gives the size of that table.
1875  */
1876 /* Strerror:
1877  *      This preprocessor symbol is defined as a macro if strerror() is
1878  *      not available to translate error numbers to strings but sys_errlist[]
1879  *      array is there.
1880  */
1881 #$d_strerror HAS_STRERROR               /**/
1882 #$d_syserrlst HAS_SYS_ERRLIST   /**/
1883 #define Strerror(e) $d_strerrm
1884
1885 /* HAS_UNION_SEMUN:
1886  *      This symbol, if defined, indicates that the union semun is
1887  *      defined by including <sys/sem.h>.  If not, the user code
1888  *      probably needs to define it as:
1889  *      union semun {
1890  *          int val;
1891  *          struct semid_ds *buf;
1892  *          unsigned short *array;
1893  *      }
1894  */
1895 /* USE_SEMCTL_SEMUN:
1896  *      This symbol, if defined, indicates that union semun is
1897  *      used for semctl IPC_STAT.
1898  */
1899 /* USE_SEMCTL_SEMID_DS:
1900  *      This symbol, if defined, indicates that struct semid_ds * is
1901  *      used for semctl IPC_STAT.
1902  */
1903 #$d_union_semun HAS_UNION_SEMUN /**/
1904 #$d_semctl_semun USE_SEMCTL_SEMUN       /**/
1905 #$d_semctl_semid_ds USE_SEMCTL_SEMID_DS /**/
1906
1907 /* HAS_VFORK:
1908  *      This symbol, if defined, indicates that vfork() exists.
1909  */
1910 #$d_vfork HAS_VFORK     /**/
1911
1912 /* Signal_t:
1913  *      This symbol's value is either "void" or "int", corresponding to the
1914  *      appropriate return type of a signal handler.  Thus, you can declare
1915  *      a signal handler using "Signal_t (*handler)()", and define the
1916  *      handler using "Signal_t handler(sig)".
1917  */
1918 #define Signal_t $signal_t      /* Signal handler's return type */
1919
1920 /* Groups_t:
1921  *      This symbol holds the type used for the second argument to
1922  *      getgroups() and setgropus().  Usually, this is the same as
1923  *      gidtype (gid_t) , but sometimes it isn't.
1924  *      It can be int, ushort, uid_t, etc... 
1925  *      It may be necessary to include <sys/types.h> to get any 
1926  *      typedef'ed information.  This is only required if you have
1927  *      getgroups() or setgropus()..
1928  */
1929 #if defined(HAS_GETGROUPS) || defined(HAS_SETGROUPS)
1930 #define Groups_t $groupstype    /* Type for 2nd arg to [sg]etgroups() */
1931 #endif
1932
1933 /* I_GRP:
1934  *      This symbol, if defined, indicates to the C program that it should
1935  *      include <grp.h>.
1936  */
1937 /* GRPASSWD:
1938  *      This symbol, if defined, indicates to the C program that struct group
1939  *      in <grp.h> contains gr_passwd.
1940  */
1941 #$i_grp I_GRP           /**/
1942 #$d_grpasswd GRPASSWD   /**/
1943
1944 /* I_NETDB:
1945  *      This symbol, if defined, indicates that <netdb.h> exists and
1946  *      should be included.
1947  */
1948 #$i_netdb I_NETDB               /**/
1949
1950 /* I_PWD:
1951  *      This symbol, if defined, indicates to the C program that it should
1952  *      include <pwd.h>.
1953  */
1954 /* PWQUOTA:
1955  *      This symbol, if defined, indicates to the C program that struct passwd
1956  *      contains pw_quota.
1957  */
1958 /* PWAGE:
1959  *      This symbol, if defined, indicates to the C program that struct passwd
1960  *      contains pw_age.
1961  */
1962 /* PWCHANGE:
1963  *      This symbol, if defined, indicates to the C program that struct passwd
1964  *      contains pw_change.
1965  */
1966 /* PWCLASS:
1967  *      This symbol, if defined, indicates to the C program that struct passwd
1968  *      contains pw_class.
1969  */
1970 /* PWEXPIRE:
1971  *      This symbol, if defined, indicates to the C program that struct passwd
1972  *      contains pw_expire.
1973  */
1974 /* PWCOMMENT:
1975  *      This symbol, if defined, indicates to the C program that struct passwd
1976  *      contains pw_comment.
1977  */
1978 /* PWGECOS:
1979  *      This symbol, if defined, indicates to the C program that struct passwd
1980  *      contains pw_gecos.
1981  */
1982 /* PWPASSWD:
1983  *      This symbol, if defined, indicates to the C program that struct passwd
1984  *      contains pw_passwd.
1985  */
1986 #$i_pwd I_PWD           /**/
1987 #$d_pwquota PWQUOTA     /**/
1988 #$d_pwage PWAGE /**/
1989 #$d_pwchange PWCHANGE   /**/
1990 #$d_pwclass PWCLASS     /**/
1991 #$d_pwexpire PWEXPIRE   /**/
1992 #$d_pwcomment PWCOMMENT /**/
1993 #$d_pwgecos PWGECOS     /**/
1994 #$d_pwpasswd PWPASSWD   /**/
1995
1996 /* I_SYSUIO:
1997  *      This symbol, if defined, indicates that <sys/uio.h> exists and
1998  *      should be included.
1999  */
2000 #$i_sysuio      I_SYSUIO                /**/
2001
2002 /* Free_t:
2003  *      This variable contains the return type of free().  It is usually
2004  * void, but occasionally int.
2005  */
2006 /* Malloc_t:
2007  *      This symbol is the type of pointer returned by malloc and realloc.
2008  */
2009 #define Malloc_t $malloctype                    /**/
2010 #define Free_t $freetype                        /**/
2011
2012 /* MYMALLOC:
2013  *      This symbol, if defined, indicates that we're using our own malloc.
2014  */
2015 #$d_mymalloc MYMALLOC                   /**/
2016
2017 /* SIG_NAME:
2018  *      This symbol contains a list of signal names in order of
2019  *      signal number. This is intended
2020  *      to be used as a static array initialization, like this:
2021  *              char *sig_name[] = { SIG_NAME };
2022  *      The signals in the list are separated with commas, and each signal
2023  *      is surrounded by double quotes. There is no leading SIG in the signal
2024  *      name, i.e. SIGQUIT is known as "QUIT".
2025  *      Gaps in the signal numbers (up to NSIG) are filled in with NUMnn,
2026  *      etc., where nn is the actual signal number (e.g. NUM37).
2027  *      The signal number for sig_name[i] is stored in sig_num[i].
2028  *      The last element is 0 to terminate the list with a NULL.  This
2029  *      corresponds to the 0 at the end of the sig_num list.
2030  */
2031 /* SIG_NUM:
2032  *      This symbol contains a list of signal numbers, in the same order as the
2033  *      SIG_NAME list. It is suitable for static array initialization, as in:
2034  *              int sig_num[] = { SIG_NUM };
2035  *      The signals in the list are separated with commas, and the indices
2036  *      within that list and the SIG_NAME list match, so it's easy to compute
2037  *      the signal name from a number or vice versa at the price of a small
2038  *      dynamic linear lookup. 
2039  *      Duplicates are allowed, but are moved to the end of the list.
2040  *      The signal number corresponding to sig_name[i] is sig_number[i].
2041  *      if (i < NSIG) then sig_number[i] == i.  
2042  *      The last element is 0, corresponding to the 0 at the end of
2043  *      the sig_name list.
2044  */
2045 #define SIG_NAME $sig_name_init         /**/
2046 #define SIG_NUM  $sig_num_init          /**/
2047
2048 /* VOIDFLAGS:
2049  *      This symbol indicates how much support of the void type is given by this
2050  *      compiler.  What various bits mean:
2051  *
2052  *          1 = supports declaration of void
2053  *          2 = supports arrays of pointers to functions returning void
2054  *          4 = supports comparisons between pointers to void functions and
2055  *                  addresses of void functions
2056  *          8 = suports declaration of generic void pointers
2057  *
2058  *      The package designer should define VOIDUSED to indicate the requirements
2059  *      of the package.  This can be done either by #defining VOIDUSED before
2060  *      including config.h, or by defining defvoidused in Myinit.U.  If the
2061  *      latter approach is taken, only those flags will be tested.  If the
2062  *      level of void support necessary is not present, defines void to int.
2063  */
2064 #ifndef VOIDUSED
2065 #define VOIDUSED $defvoidused
2066 #endif
2067 #define VOIDFLAGS $voidflags
2068 #if (VOIDFLAGS & VOIDUSED) != VOIDUSED
2069 #define void int                /* is void to be avoided? */
2070 #define M_VOID                  /* Xenix strikes again */
2071 #endif
2072
2073 /* ARCHLIB:
2074  *      This variable, if defined, holds the name of the directory in
2075  *      which the user wants to put architecture-dependent public
2076  *      library files for $package.  It is most often a local directory
2077  *      such as /usr/local/lib.  Programs using this variable must be
2078  *      prepared to deal with filename expansion.  If ARCHLIB is the
2079  *      same as PRIVLIB, it is not defined, since presumably the
2080  *      program already searches PRIVLIB.
2081  */
2082 /* ARCHLIB_EXP:
2083  *      This symbol contains the ~name expanded version of ARCHLIB, to be used
2084  *      in programs that are not prepared to deal with ~ expansion at run-time.
2085  */
2086 #$d_archlib ARCHLIB "$archlib"          /**/
2087 #$d_archlib ARCHLIB_EXP "$archlibexp"           /**/
2088
2089 /* DLSYM_NEEDS_UNDERSCORE:
2090  *      This symbol, if defined, indicates that we need to prepend an
2091  *      underscore to the symbol name before calling dlsym().  This only
2092  *      makes sense if you *have* dlsym, which we will presume is the
2093  *      case if you're using dl_dlopen.xs.
2094  */
2095 #$d_dlsymun     DLSYM_NEEDS_UNDERSCORE  /**/
2096
2097 /* HAS_FSEEKO:
2098  *      This symbol, if defined, indicates that the fseeko routine is
2099  *      available to fseek beyond 32 bits (useful for ILP32 hosts).
2100  */
2101 #$d_fseeko HAS_FSEEKO           /**/
2102
2103 /* HAS_FTELLO:
2104  *      This symbol, if defined, indicates that the ftello routine is
2105  *      available to ftell from beyond 32 bits (useful for ILP32 hosts).
2106  */
2107 #$d_ftello HAS_FTELLO           /**/
2108
2109 /* HAS_GETMNTENT:
2110  *      This symbol, if defined, indicates that the getmntent routine is
2111  *      available to iterate through mounted file systems.
2112  */
2113 #$d_getmntent HAS_GETMNTENT             /**/
2114
2115 /* HAS_HASMNTOPT:
2116  *      This symbol, if defined, indicates that the hasmntopt routine is
2117  *      available to query the mount options of file systems.
2118  */
2119 #$d_hasmntopt HAS_HASMNTOPT             /**/
2120
2121 /* HAS_MADVISE:
2122  *      This symbol, if defined, indicates that the madvise system call is
2123  *      available to map a file into memory.
2124  */
2125 #$d_madvise HAS_MADVISE         /**/
2126
2127 /* HAS_MPROTECT:
2128  *      This symbol, if defined, indicates that the mprotect system call is
2129  *      available to modify the access protection of a memory mapped file.
2130  */
2131 #$d_mprotect HAS_MPROTECT               /**/
2132
2133 /* HAS_READV:
2134  *      This symbol, if defined, indicates that the readv routine is
2135  *      available to do gather reads.  You will also need <sys/uio.h>
2136  *      and there I_SYSUIO.
2137  */
2138 #$d_readv HAS_READV             /**/
2139
2140 /* USE_SFIO:
2141  *      This symbol, if defined, indicates that sfio should
2142  *      be used.
2143  */
2144 #$d_sfio        USE_SFIO                /**/
2145
2146 /* HAS_FSTATFS:
2147  *      This symbol, if defined, indicates that the fstatfs routine is
2148  *      available to stat filesystems of file descriptors.
2149  */
2150 /* HAS_STRUCT_STATFS_FLAGS:
2151  *      This symbol, if defined, indicates that the struct statfs
2152  *      does have the f_flags member containing the mount flags of
2153  *      the filesystem holding the file.
2154  *      This kind of struct statfs is coming from sys/mount.h (BSD),
2155  *      not from sys/statfs.h (SYSV).
2156  */
2157 #$d_fstatfs HAS_FSTATFS         /**/
2158 #$d_statfsflags HAS_STRUCT_STATFS_FLAGS         /**/
2159
2160 /* HAS_FSTATVFS:
2161  *      This symbol, if defined, indicates that the fstatvfs routine is
2162  *      available to stat filesystems of file descriptors.
2163  */
2164 #$d_fstatvfs HAS_FSTATVFS               /**/
2165
2166 /* HAS_TELLDIR_PROTO:
2167  *      This symbol, if defined, indicates that the system provides
2168  *      a prototype for the telldir() function.  Otherwise, it is up
2169  *      to the program to supply one.  A good guess is
2170  *              extern long telldir _((DIR*));
2171  */
2172 #$d_telldirproto        HAS_TELLDIR_PROTO       /**/
2173
2174 /* HAS_WRITEV:
2175  *      This symbol, if defined, indicates that the writev routine is
2176  *      available to do scatter writes.
2177  */
2178 #$d_writev HAS_WRITEV           /**/
2179
2180 /* HAS_DBMINIT64:
2181  *      This symbol, if defined, indicates that the dbminit64 routine is
2182  *      available to open dbm files larger than 2 gigabytes.
2183  */
2184 /* HAS_DBMCLOSE64:
2185  *      This symbol, if defined, indicates that the dbmclose64 routine is
2186  *      available to close dbm files larger than 2 gigabytes.
2187  */
2188 /* HAS_FETCH64:
2189  *      This symbol, if defined, indicates that the fetch64 routine is
2190  *      available to fetch from dbm files larger than 2 gigabytes.
2191  */
2192 /* HAS_STORE64:
2193  *      This symbol, if defined, indicates that the store64 routine is
2194  *      available to store to dbm files larger than 2 gigabytes.
2195  */
2196 /* HAS_DELETE64:
2197  *      This symbol, if defined, indicates that the delete64 routine is
2198  *      available to delete from dbm files larger than 2 gigabytes.
2199  */
2200 /* HAS_FIRSTKEY64:
2201  *      This symbol, if defined, indicates that the firstkey64 routine is
2202  *      available to firstkey in dbm files larger than 2 gigabytes.
2203  */
2204 /* HAS_NEXTKEY64:
2205  *      This symbol, if defined, indicates that the nextkey64 routine is
2206  *      available to nextkey in dbm files larger than 2 gigabytes.
2207  */
2208 #$d_dbminit64   HAS_DBMINIT64   /**/
2209 #$d_dbmclose64  HAS_DBMCLOSE64  /**/
2210 #$d_fetch64     HAS_FETCH64             /**/
2211 #$d_store64     HAS_STORE64             /**/
2212 #$d_delete64    HAS_DELETE64            /**/
2213 #$d_firstkey64  HAS_FIRSTKEY64  /**/
2214 #$d_nextkey64   HAS_NEXTKEY64   /**/
2215
2216 /* USE_DYNAMIC_LOADING:
2217  *      This symbol, if defined, indicates that dynamic loading of
2218  *      some sort is available.
2219  */
2220 #$usedl USE_DYNAMIC_LOADING             /**/
2221
2222 /* FFLUSH_NULL:
2223  *      This symbol, if defined, tells that fflush(NULL) does flush
2224  *      all pending stdio output.
2225  */
2226 /* FFLUSH_ALL:
2227  *      This symbol, if defined, tells that to flush
2228  *      all pending stdio output one must loop through all
2229  *      the stdio file handles stored in an array and fflush them.
2230  */
2231 #$fflushNULL    FFLUSH_NULL             /**/
2232 #$fflushall     FFLUSH_ALL              /**/
2233
2234 /* DB_Prefix_t:
2235  *      This symbol contains the type of the prefix structure element
2236  *      in the <db.h> header file.  In older versions of DB, it was
2237  *      int, while in newer ones it is u_int32_t.
2238  */
2239 /* DB_Hash_t:
2240  *      This symbol contains the type of the prefix structure element
2241  *      in the <db.h> header file.  In older versions of DB, it was
2242  *      int, while in newer ones it is size_t.
2243  */
2244 #define DB_Hash_t       $db_hashtype            /**/
2245 #define DB_Prefix_t     $db_prefixtype          /**/
2246
2247 /* I_INTTYPES:
2248  *     This symbol, if defined, indicates to the C program that it should
2249  *     include <inttypes.h>.
2250  */
2251 /* HAS_INT64_T:
2252  *     This symbol will defined if the C compiler supports int64_t.
2253  *     Usually the <inttypes.h> needs to be included, but sometimes
2254  *      <sys/types.h> is enough.
2255  */
2256 #$i_inttypes   I_INTTYPES                /**/
2257 #$d_int64t     HAS_INT64_T               /**/
2258
2259 /* I_MNTENT:
2260  *      This symbol, if defined, indicates that <mntent.h> exists and
2261  *      should be included.
2262  */
2263 #$i_mntent      I_MNTENT                /**/
2264
2265 /* I_NETINET_TCP:
2266  *     This symbol, if defined, indicates to the C program that it should
2267  *     include <netinet/tcp.h>.
2268  */
2269 #$i_netinettcp   I_NETINET_TCP                /**/
2270
2271 /* I_POLL:
2272  *      This symbol, if defined, indicates that <poll.h> exists and
2273  *      should be included.
2274  */
2275 #$i_poll        I_POLL          /**/
2276
2277 /* I_SYS_MMAN:
2278  *      This symbol, if defined, indicates that <sys/mman.h> exists and
2279  *      should be included.
2280  */
2281 #$i_sysmman     I_SYS_MMAN              /**/
2282
2283 /* I_SYS_MOUNT:
2284  *      This symbol, if defined, indicates that <sys/mount.h> exists and
2285  *      should be included.
2286  */
2287 #$i_sysmount    I_SYS_MOUNT             /**/
2288
2289 /* I_SYS_STATVFS:
2290  *      This symbol, if defined, indicates that <sys/statvfs.h> exists and
2291  *      should be included.
2292  */
2293 #$i_sysstatvfs  I_SYS_STATVFS           /**/
2294
2295 /* INSTALL_USR_BIN_PERL:
2296  *      This symbol, if defined, indicates that Perl is to be installed
2297  *      also as /usr/bin/perl.
2298  */
2299 #$installusrbinperl INSTALL_USR_BIN_PERL        /**/
2300
2301 /* HAS_FSTAT64:
2302  *      This symbol, if defined, indicates that the fstat64 routine is
2303  *      available to stat files (fds) larger than 2 gigabytes.
2304  */
2305 /* HAS_FTRUNCATE64:
2306  *      This symbol, if defined, indicates that the ftruncate64 routine is
2307  *      available to tell files larger than 2 gigabytes.
2308  */
2309 /* HAS_LSEEK64:
2310  *      This symbol, if defined, indicates that the lseek64 routine is
2311  *      available to seek files larger than 2 gigabytes.
2312  */
2313 /* HAS_LSTAT64:
2314  *      This symbol, if defined, indicates that the lstat64 routine is
2315  *      available to stat files (symlinks) larger than 2 gigabytes.
2316  */
2317 /* HAS_OPEN64:
2318  *      This symbol, if defined, indicates that the open64 routine is
2319  *      available to open files larger than 2 gigabytes.
2320  */
2321 /* HAS_OPENDIR64:
2322  *      This symbol, if defined, indicates that the opendir64 routine is
2323  *      available to opendir files larger than 2 gigabytes.
2324  */
2325 /* HAS_READDIR64:
2326  *      This symbol, if defined, indicates that the readdir64 routine is
2327  *      available to readdir files larger than 2 gigabytes.
2328  */
2329 /* HAS_SEEKDIR64:
2330  *      This symbol, if defined, indicates that the seekdir64 routine is
2331  *      available to seekdir files larger than 2 gigabytes.
2332  */
2333 /* HAS_STAT64:
2334  *      This symbol, if defined, indicates that the stat64 routine is
2335  *      available to stat files larger than 2 gigabytes.
2336  */
2337 /* HAS_TELLDIR64:
2338  *      This symbol, if defined, indicates that the telldir64 routine is
2339  *      available to telldir files larger than 2 gigabytes.
2340  */
2341 /* HAS_TRUNCATE64:
2342  *      This symbol, if defined, indicates that the truncate64 routine is
2343  *      available to truncate files larger than 2 gigabytes.
2344  */
2345 /* HAS_OFF64_T:
2346  *      This symbol will be defined if the C compiler supports off64_t.
2347  */
2348 /* HAS_STRUCT_DIRENT64:
2349  *      This symbol will be defined if the C compiler supports struct dirent64.
2350  */
2351 #$d_fstat64     HAS_FSTAT64             /**/
2352 #$d_ftruncate64 HAS_FTRUNCATE64 /**/
2353 #$d_lseek64     HAS_LSEEK64             /**/
2354 #$d_lstat64     HAS_LSTAT64             /**/
2355 #$d_open64      HAS_OPEN64              /**/
2356 #$d_opendir64   HAS_OPENDIR64   /**/
2357 #$d_readdir64   HAS_READDIR64   /**/
2358 #$d_seekdir64   HAS_SEEKDIR64   /**/
2359 #$d_stat64      HAS_STAT64              /**/
2360 #$d_telldir64   HAS_TELLDIR64   /**/
2361 #$d_truncate64  HAS_TRUNCATE64  /**/
2362 #$d_off64_t      HAS_OFF64_T            /**/
2363 #$d_dirent64_s   HAS_STRUCT_DIRENT64    /**/
2364
2365 /* PRIVLIB:
2366  *      This symbol contains the name of the private library for this package.
2367  *      The library is private in the sense that it needn't be in anyone's
2368  *      execution path, but it should be accessible by the world.  The program
2369  *      should be prepared to do ~ expansion.
2370  */
2371 /* PRIVLIB_EXP:
2372  *      This symbol contains the ~name expanded version of PRIVLIB, to be used
2373  *      in programs that are not prepared to deal with ~ expansion at run-time.
2374  */
2375 #define PRIVLIB "$privlib"              /**/
2376 #define PRIVLIB_EXP "$privlibexp"               /**/
2377
2378 /* SELECT_MIN_BITS:
2379  *      This symbol holds the minimum number of bits operated by select.
2380  *      That is, if you do select(n, ...), how many bits at least will be
2381  *      cleared in the masks if some activity is detected.  Usually this
2382  *      is either n or 32*ceil(n/32), especially many little-endians do
2383  *      the latter.  This is only useful if you have select(), naturally.
2384  */
2385 #define SELECT_MIN_BITS         $selectminbits  /**/
2386
2387 /* SITEARCH:
2388  *      This symbol contains the name of the private library for this package.
2389  *      The library is private in the sense that it needn't be in anyone's
2390  *      execution path, but it should be accessible by the world.  The program
2391  *      should be prepared to do ~ expansion.
2392  *      The standard distribution will put nothing in this directory.
2393  *      Individual sites may place their own extensions and modules in
2394  *      this directory.
2395  */
2396 /* SITEARCH_EXP:
2397  *      This symbol contains the ~name expanded version of SITEARCH, to be used
2398  *      in programs that are not prepared to deal with ~ expansion at run-time.
2399  */
2400 #define SITEARCH "$sitearch"            /**/
2401 #define SITEARCH_EXP "$sitearchexp"             /**/
2402
2403 /* SITELIB:
2404  *      This symbol contains the name of the private library for this package.
2405  *      The library is private in the sense that it needn't be in anyone's
2406  *      execution path, but it should be accessible by the world.  The program
2407  *      should be prepared to do ~ expansion.
2408  *      The standard distribution will put nothing in this directory.
2409  *      Individual sites may place their own extensions and modules in
2410  *      this directory.
2411  */
2412 /* SITELIB_EXP:
2413  *      This symbol contains the ~name expanded version of SITELIB, to be used
2414  *      in programs that are not prepared to deal with ~ expansion at run-time.
2415  */
2416 #define SITELIB "$sitelib"              /**/
2417 #define SITELIB_EXP "$sitelibexp"               /**/
2418
2419 /* STARTPERL:
2420  *      This variable contains the string to put in front of a perl
2421  *      script to make sure (one hopes) that it runs with perl and not
2422  *      some shell.
2423  */
2424 #define STARTPERL "$startperl"          /**/
2425
2426 /* HAS_FGETPOS64:
2427  *      This symbol, if defined, indicates that the fgetpos64 routine is
2428  *      available to getpos files larger than 2 gigabytes.
2429  */
2430 /* HAS_FOPEN64:
2431  *      This symbol, if defined, indicates that the fopen64 routine is
2432  *      available to open files larger than 2 gigabytes.
2433  */
2434 /* HAS_FREOPEN64:
2435  *      This symbol, if defined, indicates that the freopen64 routine is
2436  *      available to reopen files larger than 2 gigabytes.
2437  */
2438 /* HAS_FSEEK64:
2439  *      This symbol, if defined, indicates that the fseek64 routine is
2440  *      available to seek files larger than 2 gigabytes.
2441  */
2442 /* HAS_FSEEKO64:
2443  *      This symbol, if defined, indicates that the fseeko64 routine is
2444  *      available to seek files larger than 2 gigabytes.
2445  */
2446 /* HAS_FSETPOS64:
2447  *      This symbol, if defined, indicates that the fsetpos64 routine is
2448  *      available to setpos files larger than 2 gigabytes.
2449  */
2450 /* HAS_FTELL64:
2451  *      This symbol, if defined, indicates that the ftell64 routine is
2452  *      available to tell files larger than 2 gigabytes.
2453  */
2454 /* HAS_FTELLO64:
2455  *      This symbol, if defined, indicates that the ftello64 routine is
2456  *      available to tell files larger than 2 gigabytes.
2457  */
2458 /* HAS_TMPFILE64:
2459  *      This symbol, if defined, indicates that the tmpfile64 routine is
2460  *      available to tmpfile files larger than 2 gigabytes.
2461  */
2462 #$d_fgetpos64   HAS_FGETPOS64   /**/
2463 #$d_fopen64     HAS_FOPEN64             /**/
2464 #$d_freopen64   HAS_FREOPEN64   /**/
2465 #$d_fseek64     HAS_FSEEK64             /**/
2466 #$d_fseeko64    HAS_FSEEKO64            /**/
2467 #$d_fsetpos64   HAS_FSETPOS64   /**/
2468 #$d_ftell64     HAS_FTELL64             /**/
2469 #$d_ftello64    HAS_FTELLO64            /**/
2470 #$d_tmpfile64   HAS_TMPFILE64   /**/
2471
2472 /* HAS_STDIO_STREAM_ARRAY:
2473  *      This symbol, if defined, tells that there is an array
2474  *      holding the stdio streams.
2475  */
2476 /* STDIO_STREAM_ARRAY:
2477  *      This symbol tells the name of the array holding the stdio streams.
2478  *      Usual values include _iob, __iob, and __sF.
2479  */
2480 #$d_stdio_stream_array  HAS_STDIO_STREAM_ARRAY  /**/
2481 #define STDIO_STREAM_ARRAY      $stdio_stream_array
2482
2483 /* USE_64_BITS:
2484  *      This symbol, if defined, indicates that 64-bit interfaces should
2485  *      be used when available.  If not defined, the native default interfaces
2486  *      will be used (be they 32 or 64 bits).
2487  */
2488 #$use64bits     USE_64_BITS             /**/
2489
2490 /* MULTIPLICITY:
2491  *      This symbol, if defined, indicates that Perl should
2492  *      be built to use multiplicity.
2493  */
2494 #$usemultiplicity       MULTIPLICITY            /**/
2495
2496 /* USE_PERLIO:
2497  *      This symbol, if defined, indicates that the PerlIO abstraction should
2498  *      be used throughout.  If not defined, stdio should be
2499  *      used in a fully backward compatible manner.
2500  */
2501 #$useperlio     USE_PERLIO              /**/
2502
2503 /* HAS_DRAND48_PROTO:
2504  *      This symbol, if defined, indicates that the system provides
2505  *      a prototype for the drand48() function.  Otherwise, it is up
2506  *      to the program to supply one.  A good guess is
2507  *              extern double drand48 _((void));
2508  */
2509 #$d_drand48proto        HAS_DRAND48_PROTO       /**/
2510
2511 /* HAS_GETHOST_PROTOS:
2512  *      This symbol, if defined, indicates that <netdb.h> includes
2513  *      prototypes for gethostent(), gethostbyname(), and
2514  *      gethostbyaddr().  Otherwise, it is up to the program to guess
2515  *      them.  See netdbtype.U for probing for various Netdb_xxx_t types.
2516  */
2517 #$d_gethostprotos       HAS_GETHOST_PROTOS      /**/
2518
2519 /* HAS_GETNET_PROTOS:
2520  *      This symbol, if defined, indicates that <netdb.h> includes
2521  *      prototypes for getnetent(), getnetbyname(), and
2522  *      getnetbyaddr().  Otherwise, it is up to the program to guess
2523  *      them.  See netdbtype.U for probing for various Netdb_xxx_t types.
2524  */
2525 #$d_getnetprotos        HAS_GETNET_PROTOS       /**/
2526
2527 /* HAS_GETPROTO_PROTOS:
2528  *      This symbol, if defined, indicates that <netdb.h> includes
2529  *      prototypes for getprotoent(), getprotobyname(), and
2530  *      getprotobyaddr().  Otherwise, it is up to the program to guess
2531  *      them.  See netdbtype.U for probing for various Netdb_xxx_t types.
2532  */
2533 #$d_getprotoprotos      HAS_GETPROTO_PROTOS     /**/
2534
2535 /* HAS_GETSERV_PROTOS:
2536  *      This symbol, if defined, indicates that <netdb.h> includes
2537  *      prototypes for getservent(), getservbyname(), and
2538  *      getservbyaddr().  Otherwise, it is up to the program to guess
2539  *      them.  See netdbtype.U for probing for various Netdb_xxx_t types.
2540  */
2541 #$d_getservprotos       HAS_GETSERV_PROTOS      /**/
2542
2543 /* Netdb_host_t:
2544  *      This symbol holds the type used for the 1st argument
2545  *      to gethostbyaddr().
2546  */
2547 /* Netdb_hlen_t:
2548  *      This symbol holds the type used for the 2nd argument
2549  *      to gethostbyaddr().
2550  */
2551 /* Netdb_name_t:
2552  *      This symbol holds the type used for the argument to
2553  *      gethostbyname().
2554  */
2555 /* Netdb_net_t:
2556  *      This symbol holds the type used for the 1st argument to
2557  *      getnetbyaddr().
2558  */
2559 #define Netdb_host_t            $netdb_host_type /**/
2560 #define Netdb_hlen_t            $netdb_hlen_type /**/
2561 #define Netdb_name_t            $netdb_name_type /**/
2562 #define Netdb_net_t             $netdb_net_type /**/
2563
2564 /* Select_fd_set_t:
2565  *      This symbol holds the type used for the 2nd, 3rd, and 4th
2566  *      arguments to select.  Usually, this is 'fd_set *', if HAS_FD_SET
2567  *      is defined, and 'int *' otherwise.  This is only useful if you 
2568  *      have select(), of course.
2569  */
2570 #define Select_fd_set_t         $selecttype     /**/
2571
2572 /* ARCHNAME:
2573  *      This symbol holds a string representing the architecture name.
2574  *      It may be used to construct an architecture-dependant pathname
2575  *      where library files may be held under a private library, for
2576  *      instance.
2577  */
2578 #define ARCHNAME "$archname"            /**/
2579
2580 /* OLD_PTHREAD_CREATE_JOINABLE:
2581  *      This symbol, if defined, indicates how to create pthread
2582  *      in joinable (aka undetached) state.  NOTE: not defined
2583  *      if pthread.h already has defined PTHREAD_CREATE_JOINABLE
2584  *      (the new version of the constant).
2585  *      If defined, known values are PTHREAD_CREATE_UNDETACHED
2586  *      and __UNDETACHED.
2587  */
2588 #$d_old_pthread_create_joinable OLD_PTHREAD_CREATE_JOINABLE $old_pthread_create_joinable /**/
2589
2590 /* HAS_PTHREAD_YIELD:
2591  *      This symbol, if defined, indicates that the pthread_yield 
2592  *      routine is available to yield the execution of the current
2593  *      thread.  sched_yield is preferable to pthread_yield.
2594  */
2595 /* SCHED_YIELD:
2596  *      This symbol defines the way to yield the execution of
2597  *      the current thread.  Known ways are sched_yield,
2598  *      pthread_yield, and pthread_yield with NULL.
2599  */
2600 /* HAS_SCHED_YIELD:
2601  *      This symbol, if defined, indicates that the sched_yield
2602  *      routine is available to yield the execution of the current
2603  *      thread.  sched_yield is preferable to pthread_yield.
2604  */
2605 #$d_pthread_yield HAS_PTHREAD_YIELD     /**/
2606 #define SCHED_YIELD     $sched_yield    /**/
2607 #$d_sched_yield HAS_SCHED_YIELD /**/
2608
2609 /* I_MACH_CTHREADS:
2610  *     This symbol, if defined, indicates to the C program that it should
2611  *     include <mach/cthreads.h>.
2612  */
2613 #$i_machcthr   I_MACH_CTHREADS  /**/
2614
2615 /* USE_THREADS:
2616  *      This symbol, if defined, indicates that Perl should
2617  *      be built to use threads.
2618  */
2619 /* OLD_PTHREADS_API:
2620  *      This symbol, if defined, indicates that Perl should
2621  *      be built to use the old draft POSIX threads API.
2622  */
2623 #$usethreads    USE_THREADS             /**/
2624 #$d_oldpthreads OLD_PTHREADS_API                /**/
2625
2626 /* Time_t:
2627  *      This symbol holds the type returned by time(). It can be long,
2628  *      or time_t on BSD sites (in which case <sys/types.h> should be
2629  *      included).
2630  */
2631 #define Time_t $timetype                /* Time type */
2632
2633 /* HAS_TIMES:
2634  *      This symbol, if defined, indicates that the times() routine exists.
2635  *      Note that this became obsolete on some systems (SUNOS), which now
2636  * use getrusage(). It may be necessary to include <sys/times.h>.
2637  */
2638 #$d_times HAS_TIMES             /**/
2639
2640 /* Fpos_t:
2641  *      This symbol holds the type used to declare file positions in libc.
2642  *      It can be fpos_t, long, uint, etc... It may be necessary to include
2643  *      <sys/types.h> to get any typedef'ed information.
2644  */
2645 #define Fpos_t $fpostype                /* File position type */
2646
2647 /* Gid_t:
2648  *      This symbol holds the return type of getgid() and the type of
2649  *      argument to setrgid() and related functions.  Typically,
2650  *      it is the type of group ids in the kernel. It can be int, ushort,
2651  *      uid_t, etc... It may be necessary to include <sys/types.h> to get
2652  *      any typedef'ed information.
2653  */
2654 #define Gid_t $gidtype          /* Type for getgid(), etc... */
2655
2656 /* Off_t:
2657  *      This symbol holds the type used to declare offsets in the kernel.
2658  *      It can be int, long, off_t, etc... It may be necessary to include
2659  *      <sys/types.h> to get any typedef'ed information.
2660  */
2661 /* LSEEKSIZE:
2662  *      This symbol holds the number of bytes used by the Off_t.
2663  */
2664 #define Off_t $lseektype                /* <offset> type */
2665 #define LSEEKSIZE $lseeksize            /* <offset> size */
2666
2667 /* Mode_t:
2668  *      This symbol holds the type used to declare file modes 
2669  *      for systems calls.  It is usually mode_t, but may be
2670  *      int or unsigned short.  It may be necessary to include <sys/types.h>
2671  *      to get any typedef'ed information.
2672  */
2673 #define Mode_t $modetype         /* file mode parameter for system calls */
2674
2675 /* Pid_t:
2676  *      This symbol holds the type used to declare process ids in the kernel.
2677  *      It can be int, uint, pid_t, etc... It may be necessary to include
2678  *      <sys/types.h> to get any typedef'ed information.
2679  */
2680 #define Pid_t $pidtype          /* PID type */
2681
2682 /* Size_t:
2683  *      This symbol holds the type used to declare length parameters
2684  *      for string functions.  It is usually size_t, but may be
2685  *      unsigned long, int, etc.  It may be necessary to include
2686  *      <sys/types.h> to get any typedef'ed information.
2687  */
2688 #define Size_t $sizetype         /* length paramater for string functions */
2689
2690 /* Uid_t:
2691  *      This symbol holds the type used to declare user ids in the kernel.
2692  *      It can be int, ushort, uid_t, etc... It may be necessary to include
2693  *      <sys/types.h> to get any typedef'ed information.
2694  */
2695 #define Uid_t $uidtype          /* UID type */
2696
2697 #endif
2698 !GROK!THIS!