This is a live mirror of the Perl 5 development currently hosted at https://github.com/perl/perl5
Patch for Benchmark.pm
[perl5.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.4 1995/09/25 09:10:49 ram Exp $
29  */
30
31 /* Configuration time: $cf_time
32  * Configured by: $cf_by
33  * Target system: $myuname
34  */
35
36 #ifndef _config_h_
37 #define _config_h_
38
39 /* MEM_ALIGNBYTES:
40  *      This symbol contains the number of bytes required to align a
41  *      double. Usual values are 2, 4 and 8.
42  */
43 #define MEM_ALIGNBYTES $alignbytes      /**/
44
45 /* ARCHNAME:
46  *      This symbol holds a string representing the architecture name.
47  *      It may be used to construct an architecture-dependant pathname
48  *      where library files may be held under a private library, for
49  *      instance.
50  */
51 #define ARCHNAME "$archname"            /**/
52
53 /* BIN:
54  *      This symbol holds the path of the bin directory where the package will
55  *      be installed. Program must be prepared to deal with ~name substitution.
56  */
57 /* BIN_EXP:
58  *      This symbol is the filename expanded version of the BIN symbol, for
59  *      programs that do not want to deal with that at run-time.
60  */
61 #define BIN "$bin"      /**/
62 #define BIN_EXP "$binexp"       /**/
63
64 /* CAT2:
65  *      This macro catenates 2 tokens together.
66  */
67 /* STRINGIFY:
68  *      This macro surrounds its token with double quotes.
69  */
70 #if $cpp_stuff == 1
71 #define CAT2(a,b)a/**/b
72 #define CAT3(a,b,c)a/**/b/**/c
73 #define CAT4(a,b,c,d)a/**/b/**/c/**/d
74 #define CAT5(a,b,c,d,e)a/**/b/**/c/**/d/**/e
75 #define STRINGIFY(a)"a"
76                 /* If you can get stringification with catify, tell me how! */
77 #endif
78 #if $cpp_stuff == 42
79 #define CAT2(a,b)a ## b
80 #define CAT3(a,b,c)a ## b ## c
81 #define CAT4(a,b,c,d)a ## b ## c ## d
82 #define CAT5(a,b,c,d,e)a ## b ## c ## d ## e
83 #define StGiFy(a)# a
84 #define STRINGIFY(a)StGiFy(a)
85 #define SCAT2(a,b)StGiFy(a) StGiFy(b)
86 #define SCAT3(a,b,c)StGiFy(a) StGiFy(b) StGiFy(c)
87 #define SCAT4(a,b,c,d)StGiFy(a) StGiFy(b) StGiFy(c) StGiFy(d)
88 #define SCAT5(a,b,c,d,e)StGiFy(a) StGiFy(b) StGiFy(c) StGiFy(d) StGiFy(e)
89 #endif
90 #ifndef CAT2
91 #include "Bletch: How does this C preprocessor catenate tokens?"
92 #endif
93
94 /* CPPSTDIN:
95  *      This symbol contains the first part of the string which will invoke
96  *      the C preprocessor on the standard input and produce to standard
97  *      output.  Typical value of "cc -E" or "/lib/cpp", but it can also
98  *      call a wrapper. See CPPRUN.
99  */
100 /* CPPMINUS:
101  *      This symbol contains the second part of the string which will invoke
102  *      the C preprocessor on the standard input and produce to standard
103  *      output.  This symbol will have the value "-" if CPPSTDIN needs a minus
104  *      to specify standard input, otherwise the value is "".
105  */
106 #define CPPSTDIN "$cppstdin"
107 #define CPPMINUS "$cppminus"
108
109 /* HAS_ALARM:
110  *      This symbol, if defined, indicates that the alarm routine is
111  *      available.
112  */
113 #$d_alarm HAS_ALARM             /**/
114
115 /* HASATTRIBUTE:
116  *      This symbol indicates the C compiler can check for function attributes,
117  *      such as printf formats. This is normally only supported by GNU cc.
118  */
119 #$d_attribut HASATTRIBUTE       /**/
120 #ifndef HASATTRIBUTE
121 #define __attribute__(_arg_)
122 #endif
123
124 /* HAS_BCMP:
125  *      This symbol is defined if the bcmp() routine is available to
126  *      compare blocks of memory.
127  */
128 #$d_bcmp HAS_BCMP       /**/
129
130 /* HAS_BCOPY:
131  *      This symbol is defined if the bcopy() routine is available to
132  *      copy blocks of memory.
133  */
134 #$d_bcopy HAS_BCOPY     /**/
135
136 /* HAS_BZERO:
137  *      This symbol is defined if the bzero() routine is available to
138  *      set a memory block to 0.
139  */
140 #$d_bzero HAS_BZERO     /**/
141
142 /* CASTI32:
143  *      This symbol is defined if the C compiler can cast negative
144  *      or large floating point numbers to 32-bit ints.
145  */
146 #$d_casti32     CASTI32         /**/
147
148 /* CASTNEGFLOAT:
149  *      This symbol is defined if the C compiler can cast negative
150  *      numbers to unsigned longs, ints and shorts.
151  */
152 /* CASTFLAGS:
153  *      This symbol contains flags that say what difficulties the compiler
154  *      has casting odd floating values to unsigned long:
155  *              0 = ok
156  *              1 = couldn't cast < 0
157  *              2 = couldn't cast >= 0x80000000
158  *              4 = couldn't cast in argument expression list
159  */
160 #$d_castneg     CASTNEGFLOAT            /**/
161 #define CASTFLAGS $castflags            /**/
162
163 /* HAS_CHOWN:
164  *      This symbol, if defined, indicates that the chown routine is
165  *      available.
166  */
167 #$d_chown HAS_CHOWN             /**/
168
169 /* HAS_CHROOT:
170  *      This symbol, if defined, indicates that the chroot routine is
171  *      available.
172  */
173 #$d_chroot HAS_CHROOT           /**/
174
175 /* HAS_CHSIZE:
176  *      This symbol, if defined, indicates that the chsize routine is available
177  *      to truncate files.  You might need a -lx to get this routine.
178  */
179 #$d_chsize      HAS_CHSIZE              /**/
180
181 /* VOID_CLOSEDIR:
182  *      This symbol, if defined, indicates that the closedir() routine
183  *      does not return a value.
184  */
185 #$d_void_closedir VOID_CLOSEDIR         /**/
186
187 /* HASCONST:
188  *      This symbol, if defined, indicates that this C compiler knows about
189  *      the const type. There is no need to actually test for that symbol
190  *      within your programs. The mere use of the "const" keyword will
191  *      trigger the necessary tests.
192  */
193 #$d_const HASCONST      /**/
194 #ifndef HASCONST
195 #define const
196 #endif
197
198 /* HAS_CRYPT:
199  *      This symbol, if defined, indicates that the crypt routine is available
200  *      to encrypt passwords and the like.
201  */
202 #$d_crypt HAS_CRYPT             /**/
203
204 /* HAS_CUSERID:
205  *      This symbol, if defined, indicates that the cuserid routine is
206  *      available to get character login names.
207  */
208 #$d_cuserid HAS_CUSERID         /**/
209
210 /* HAS_DBL_DIG:
211  *      This symbol, if defined, indicates that this system's <float.h>
212  *      or <limits.h> defines the symbol DBL_DIG, which is the number
213  *      of significant digits in a double precision number.  If this
214  *      symbol is not defined, a guess of 15 is usually pretty good.
215  */
216 #$d_dbl_dig HAS_DBL_DIG         /* */
217
218 /* HAS_DIFFTIME:
219  *      This symbol, if defined, indicates that the difftime routine is
220  *      available.
221  */
222 #$d_difftime HAS_DIFFTIME               /**/
223
224 /* HAS_DLERROR:
225  *      This symbol, if defined, indicates that the dlerror routine is
226  *      available to return a string describing the last error that
227  *      occurred from a call to dlopen(), dlclose() or dlsym().
228  */
229 #$d_dlerror HAS_DLERROR /**/
230
231 /* HAS_DUP2:
232  *      This symbol, if defined, indicates that the dup2 routine is
233  *      available to duplicate file descriptors.
234  */
235 #$d_dup2 HAS_DUP2       /**/
236
237 /* HAS_FCHMOD:
238  *      This symbol, if defined, indicates that the fchmod routine is available
239  *      to change mode of opened files.  If unavailable, use chmod().
240  */
241 #$d_fchmod HAS_FCHMOD           /**/
242
243 /* HAS_FCHOWN:
244  *      This symbol, if defined, indicates that the fchown routine is available
245  *      to change ownership of opened files.  If unavailable, use chown().
246  */
247 #$d_fchown HAS_FCHOWN           /**/
248
249 /* HAS_FCNTL:
250  *      This symbol, if defined, indicates to the C program that
251  *      the fcntl() function exists.
252  */
253 #$d_fcntl HAS_FCNTL             /**/
254
255 /* HAS_FGETPOS:
256  *      This symbol, if defined, indicates that the fgetpos routine is
257  *      available to get the file position indicator, similar to ftell().
258  */
259 #$d_fgetpos HAS_FGETPOS /**/
260
261 /* FLEXFILENAMES:
262  *      This symbol, if defined, indicates that the system supports filenames
263  *      longer than 14 characters.
264  */
265 #$d_flexfnam    FLEXFILENAMES           /**/
266
267 /* HAS_FLOCK:
268  *      This symbol, if defined, indicates that the flock routine is
269  *      available to do file locking.
270  */
271 #$d_flock HAS_FLOCK             /**/
272
273 /* HAS_FORK:
274  *      This symbol, if defined, indicates that the fork routine is
275  *      available.
276  */
277 #$d_fork HAS_FORK               /**/
278
279 /* HAS_FSETPOS:
280  *      This symbol, if defined, indicates that the fsetpos routine is
281  *      available to set the file position indicator, similar to fseek().
282  */
283 #$d_fsetpos HAS_FSETPOS /**/
284
285 /* HAS_GETTIMEOFDAY:
286  *      This symbol, if defined, indicates that the gettimeofday() system
287  *      call is available for a sub-second accuracy clock. Usually, the file
288  *      <sys/resource.h> needs to be included (see I_SYS_RESOURCE).
289  *      The type "Timeval" should be used to refer to "struct timeval".
290  */
291 #$d_gettimeod HAS_GETTIMEOFDAY  /**/
292 #ifdef HAS_GETTIMEOFDAY
293 #define Timeval struct timeval  /* Structure used by gettimeofday() */
294 #endif
295
296 /* HAS_GETGROUPS:
297  *      This symbol, if defined, indicates that the getgroups() routine is
298  *      available to get the list of process groups.  If unavailable, multiple
299  *      groups are probably not supported.
300  */
301 #$d_getgrps HAS_GETGROUPS               /**/
302
303 /* HAS_GETHOSTENT:
304  *      This symbol, if defined, indicates that the gethostent routine is
305  *      available to lookup host names in some data base or other.
306  */
307 #$d_gethent HAS_GETHOSTENT              /**/
308
309 /* HAS_UNAME:
310  *      This symbol, if defined, indicates that the C program may use the
311  *      uname() routine to derive the host name.  See also HAS_GETHOSTNAME
312  *      and PHOSTNAME.
313  */
314 #$d_uname HAS_UNAME             /**/
315
316 /* HAS_GETLOGIN:
317  *      This symbol, if defined, indicates that the getlogin routine is
318  *      available to get the login name.
319  */
320 #$d_getlogin HAS_GETLOGIN               /**/
321
322 /* HAS_GETPGRP2:
323  *      This symbol, if defined, indicates that the getpgrp2() (as in DG/UX)
324  *      routine is available to get the current process group.
325  */
326 #$d_getpgrp2 HAS_GETPGRP2               /**/
327
328 /* HAS_GETPPID:
329  *      This symbol, if defined, indicates that the getppid routine is
330  *      available to get the parent process ID.
331  */
332 #$d_getppid HAS_GETPPID         /**/
333
334 /* HAS_GETPRIORITY:
335  *      This symbol, if defined, indicates that the getpriority routine is
336  *      available to get a process's priority.
337  */
338 #$d_getprior HAS_GETPRIORITY            /**/
339
340 /* HAS_HTONL:
341  *      This symbol, if defined, indicates that the htonl() routine (and
342  *      friends htons() ntohl() ntohs()) are available to do network
343  *      order byte swapping.
344  */
345 /* HAS_HTONS:
346  *      This symbol, if defined, indicates that the htons() routine (and
347  *      friends htonl() ntohl() ntohs()) are available to do network
348  *      order byte swapping.
349  */
350 /* HAS_NTOHL:
351  *      This symbol, if defined, indicates that the ntohl() routine (and
352  *      friends htonl() htons() ntohs()) are available to do network
353  *      order byte swapping.
354  */
355 /* HAS_NTOHS:
356  *      This symbol, if defined, indicates that the ntohs() routine (and
357  *      friends htonl() htons() ntohl()) are available to do network
358  *      order byte swapping.
359  */
360 #$d_htonl HAS_HTONL             /**/
361 #$d_htonl HAS_HTONS             /**/
362 #$d_htonl HAS_NTOHL             /**/
363 #$d_htonl HAS_NTOHS             /**/
364
365 /* HAS_ISASCII:
366  *      This manifest constant lets the C program know that isascii 
367  *      is available.
368  */
369 #$d_isascii HAS_ISASCII         /**/
370
371 /* HAS_KILLPG:
372  *      This symbol, if defined, indicates that the killpg routine is available
373  *      to kill process groups.  If unavailable, you probably should use kill
374  *      with a negative process number.
375  */
376 #$d_killpg HAS_KILLPG   /**/
377
378 /* HAS_LINK:
379  *      This symbol, if defined, indicates that the link routine is
380  *      available to create hard links.
381  */
382 #$d_link HAS_LINK       /**/
383
384 /* HAS_LOCALECONV:
385  *      This symbol, if defined, indicates that the localeconv routine is
386  *      available for numeric and monetary formatting conventions.
387  */
388 #$d_locconv HAS_LOCALECONV      /**/
389
390 /* HAS_LOCKF:
391  *      This symbol, if defined, indicates that the lockf routine is
392  *      available to do file locking.
393  */
394 #$d_lockf HAS_LOCKF             /**/
395
396 /* HAS_LSTAT:
397  *      This symbol, if defined, indicates that the lstat routine is
398  *      available to do file stats on symbolic links.
399  */
400 #$d_lstat HAS_LSTAT             /**/
401
402 /* HAS_MBLEN:
403  *      This symbol, if defined, indicates that the mblen routine is available
404  *      to find the number of bytes in a multibye character.
405  */
406 #$d_mblen HAS_MBLEN             /**/
407
408 /* HAS_MBSTOWCS:
409  *      This symbol, if defined, indicates that the mbstowcs routine is
410  *      available to covert a multibyte string into a wide character string.
411  */
412 #$d_mbstowcs    HAS_MBSTOWCS            /**/
413
414 /* HAS_MBTOWC:
415  *      This symbol, if defined, indicates that the mbtowc routine is available
416  *      to covert a multibyte to a wide character.
417  */
418 #$d_mbtowc HAS_MBTOWC           /**/
419
420 /* HAS_MEMCMP:
421  *      This symbol, if defined, indicates that the memcmp routine is available
422  *      to compare blocks of memory.
423  */
424 #$d_memcmp HAS_MEMCMP   /**/
425
426 /* HAS_MEMCPY:
427  *      This symbol, if defined, indicates that the memcpy routine is available
428  *      to copy blocks of memory.
429  */
430 #$d_memcpy HAS_MEMCPY   /**/
431
432 /* HAS_MEMMOVE:
433  *      This symbol, if defined, indicates that the memmove routine is available
434  *      to copy potentially overlapping blocks of memory. This should be used
435  *      only when HAS_SAFE_BCOPY is not defined. If neither is there, roll your
436  *      own version.
437  */
438 #$d_memmove HAS_MEMMOVE /**/
439
440 /* HAS_MEMSET:
441  *      This symbol, if defined, indicates that the memset routine is available
442  *      to set blocks of memory.
443  */
444 #$d_memset HAS_MEMSET   /**/
445
446 /* HAS_MKDIR:
447  *      This symbol, if defined, indicates that the mkdir routine is available
448  *      to create directories.  Otherwise you should fork off a new process to
449  *      exec /bin/mkdir.
450  */
451 #$d_mkdir HAS_MKDIR             /**/
452
453 /* HAS_MKFIFO:
454  *      This symbol, if defined, indicates that the mkfifo routine is
455  *      available to create FIFOs. Otherwise, mknod should be able to
456  *      do it for you. However, if mkfifo is there, mknod might require
457  *      super-user privileges which mkfifo will not.
458  */
459 #$d_mkfifo HAS_MKFIFO           /**/
460
461 /* HAS_MKTIME:
462  *      This symbol, if defined, indicates that the mktime routine is
463  *      available.
464  */
465 #$d_mktime HAS_MKTIME           /**/
466
467 /* HAS_MSG:
468  *      This symbol, if defined, indicates that the entire msg*(2) library is
469  *      supported (IPC mechanism based on message queues).
470  */
471 #$d_msg HAS_MSG         /**/
472
473 /* HAS_NICE:
474  *      This symbol, if defined, indicates that the nice routine is
475  *      available.
476  */
477 #$d_nice HAS_NICE               /**/
478
479 /* HAS_OPEN3:
480  *      This manifest constant lets the C program know that the three
481  *      argument form of open(2) is available.
482  */
483 #$d_open3 HAS_OPEN3             /**/
484
485 /* HAS_PATHCONF:
486  *      This symbol, if defined, indicates that pathconf() is available
487  *      to determine file-system related limits and options associated
488  *      with a given filename.
489  */
490 /* HAS_FPATHCONF:
491  *      This symbol, if defined, indicates that pathconf() is available
492  *      to determine file-system related limits and options associated
493  *      with a given open file descriptor.
494  */
495 #$d_pathconf HAS_PATHCONF               /**/
496 #$d_fpathconf HAS_FPATHCONF             /**/
497
498 /* HAS_PAUSE:
499  *      This symbol, if defined, indicates that the pause routine is
500  *      available to suspend a process until a signal is received.
501  */
502 #$d_pause HAS_PAUSE             /**/
503
504 /* HAS_PIPE:
505  *      This symbol, if defined, indicates that the pipe routine is
506  *      available to create an inter-process channel.
507  */
508 #$d_pipe HAS_PIPE               /**/
509
510 /* HAS_POLL:
511  *      This symbol, if defined, indicates that the poll routine is
512  *      available to poll active file descriptors.
513  */
514 #$d_poll HAS_POLL               /**/
515
516 /* HAS_READDIR:
517  *      This symbol, if defined, indicates that the readdir routine is
518  *      available to read directory entries. You may have to include
519  *      <dirent.h>. See I_DIRENT.
520  */
521 #$d_readdir HAS_READDIR         /**/
522
523 /* HAS_SEEKDIR:
524  *      This symbol, if defined, indicates that the seekdir routine is
525  *      available. You may have to include <dirent.h>. See I_DIRENT.
526  */
527 #$d_seekdir HAS_SEEKDIR         /**/
528
529 /* HAS_TELLDIR:
530  *      This symbol, if defined, indicates that the telldir routine is
531  *      available. You may have to include <dirent.h>. See I_DIRENT.
532  */
533 #$d_telldir HAS_TELLDIR         /**/
534
535 /* HAS_REWINDDIR:
536  *      This symbol, if defined, indicates that the rewinddir routine is
537  *      available. You may have to include <dirent.h>. See I_DIRENT.
538  */
539 #$d_rewinddir HAS_REWINDDIR             /**/
540
541 /* HAS_READLINK:
542  *      This symbol, if defined, indicates that the readlink routine is
543  *      available to read the value of a symbolic link.
544  */
545 #$d_readlink HAS_READLINK               /**/
546
547 /* HAS_RENAME:
548  *      This symbol, if defined, indicates that the rename routine is available
549  *      to rename files.  Otherwise you should do the unlink(), link(), unlink()
550  *      trick.
551  */
552 #$d_rename HAS_RENAME   /**/
553
554 /* HAS_RMDIR:
555  *      This symbol, if defined, indicates that the rmdir routine is
556  *      available to remove directories. Otherwise you should fork off a
557  *      new process to exec /bin/rmdir.
558  */
559 #$d_rmdir HAS_RMDIR             /**/
560
561 /* HAS_SAFE_BCOPY:
562  *      This symbol, if defined, indicates that the bcopy routine is available
563  *      to copy potentially overlapping memory blocks. Otherwise you should
564  *      probably use memmove() or memcpy(). If neither is defined, roll your
565  *      own version.
566  */
567 #$d_safebcpy HAS_SAFE_BCOPY     /**/
568
569 /* HAS_SAFE_MEMCPY:
570  *      This symbol, if defined, indicates that the memcpy routine is available
571  *      to copy potentially overlapping memory blocks. Otherwise you should
572  *      probably use memmove() or memcpy(). If neither is defined, roll your
573  *      own version.
574  */
575 #$d_safemcpy HAS_SAFE_MEMCPY    /**/
576
577 /* HAS_SANE_MEMCMP:
578  *      This symbol, if defined, indicates that the memcmp routine is available
579  *      and can be used to compare relative magnitudes of chars with their high
580  *      bits set.  If it is not defined, roll your own version.
581  */
582 #$d_sanemcmp HAS_SANE_MEMCMP    /**/
583
584 /* HAS_SELECT:
585  *      This symbol, if defined, indicates that the select routine is
586  *      available to select active file descriptors. If the timeout field
587  *      is used, <sys/time.h> may need to be included.
588  */
589 #$d_select HAS_SELECT   /**/
590
591 /* HAS_SEM:
592  *      This symbol, if defined, indicates that the entire sem*(2) library is
593  *      supported.
594  */
595 #$d_sem HAS_SEM         /**/
596
597 /* HAS_SETEGID:
598  *      This symbol, if defined, indicates that the setegid routine is available
599  *      to change the effective gid of the current program.
600  */
601 #$d_setegid HAS_SETEGID         /**/
602
603 /* HAS_SETEUID:
604  *      This symbol, if defined, indicates that the seteuid routine is available
605  *      to change the effective uid of the current program.
606  */
607 #$d_seteuid HAS_SETEUID         /**/
608
609 /* HAS_SETLINEBUF:
610  *      This symbol, if defined, indicates that the setlinebuf routine is
611  *      available to change stderr or stdout from block-buffered or unbuffered
612  *      to a line-buffered mode.
613  */
614 #$d_setlinebuf HAS_SETLINEBUF           /**/
615
616 /* HAS_SETLOCALE:
617  *      This symbol, if defined, indicates that the setlocale routine is
618  *      available to handle locale-specific ctype implementations.
619  */
620 #$d_setlocale HAS_SETLOCALE     /**/
621
622 /* HAS_SETPGRP2:
623  *      This symbol, if defined, indicates that the setpgrp2() (as in DG/UX)
624  *      routine is available to set the current process group.
625  */
626 #$d_setpgrp2 HAS_SETPGRP2               /**/
627
628 /* HAS_SETPRIORITY:
629  *      This symbol, if defined, indicates that the setpriority routine is
630  *      available to set a process's priority.
631  */
632 #$d_setprior HAS_SETPRIORITY            /**/
633
634 /* HAS_SETREGID:
635  *      This symbol, if defined, indicates that the setregid routine is
636  *      available to change the real and effective gid of the current
637  *      process.
638  */
639 /* HAS_SETRESGID:
640  *      This symbol, if defined, indicates that the setresgid routine is
641  *      available to change the real, effective and saved gid of the current
642  *      process.
643  */
644 #$d_setregid HAS_SETREGID               /**/
645 #$d_setresgid HAS_SETRESGID             /**/
646
647 /* HAS_SETREUID:
648  *      This symbol, if defined, indicates that the setreuid routine is
649  *      available to change the real and effective uid of the current
650  *      process.
651  */
652 /* HAS_SETRESUID:
653  *      This symbol, if defined, indicates that the setresuid routine is
654  *      available to change the real, effective and saved uid of the current
655  *      process.
656  */
657 #$d_setreuid HAS_SETREUID               /**/
658 #$d_setresuid HAS_SETRESUID             /**/
659
660 /* HAS_SETRGID:
661  *      This symbol, if defined, indicates that the setrgid routine is available
662  *      to change the real gid of the current program.
663  */
664 #$d_setrgid HAS_SETRGID         /**/
665
666 /* HAS_SETRUID:
667  *      This symbol, if defined, indicates that the setruid routine is available
668  *      to change the real uid of the current program.
669  */
670 #$d_setruid HAS_SETRUID         /**/
671
672 /* HAS_SETSID:
673  *      This symbol, if defined, indicates that the setsid routine is
674  *      available to set the process group ID.
675  */
676 #$d_setsid HAS_SETSID   /**/
677
678 /* HAS_SHM:
679  *      This symbol, if defined, indicates that the entire shm*(2) library is
680  *      supported.
681  */
682 #$d_shm HAS_SHM         /**/
683
684 /* Shmat_t:
685  *      This symbol holds the return type of the shmat() system call.
686  *      Usually set to 'void *' or 'char *'.
687  */
688 /* HAS_SHMAT_PROTOTYPE:
689  *      This symbol, if defined, indicates that the sys/shm.h includes
690  *      a prototype for shmat().  Otherwise, it is up to the program to
691  *      guess one.  Shmat_t shmat _((int, Shmat_t, int)) is a good guess,
692  *      but not always right so it should be emitted by the program only
693  *      when HAS_SHMAT_PROTOTYPE is not defined to avoid conflicting defs.
694  */
695 #define Shmat_t $shmattype      /**/
696 #$d_shmatprototype HAS_SHMAT_PROTOTYPE  /**/
697
698 /* HAS_SIGACTION:
699  *      This symbol, if defined, indicates that Vr4's sigaction() routine
700  *      is available.
701  */
702 #$d_sigaction HAS_SIGACTION     /**/
703
704 /* HAS_SOCKET:
705  *      This symbol, if defined, indicates that the BSD socket interface is
706  *      supported.
707  */
708 /* HAS_SOCKETPAIR:
709  *      This symbol, if defined, indicates that the BSD socketpair() call is
710  *      supported.
711  */
712 #$d_socket HAS_SOCKET           /**/
713 #$d_sockpair HAS_SOCKETPAIR     /**/
714
715 /* USE_STAT_BLOCKS:
716  *      This symbol is defined if this system has a stat structure declaring
717  *      st_blksize and st_blocks.
718  */
719 #$d_statblks USE_STAT_BLOCKS    /**/
720
721 /* USE_STDIO_PTR:
722  *      This symbol is defined if the _ptr and _cnt fields (or similar)
723  *      of the stdio FILE structure can be used to access the stdio buffer
724  *      for a file handle.  If this is defined, then the FILE_ptr(fp)
725  *      and FILE_cnt(fp) macros will also be defined and should be used
726  *      to access these fields.
727  */
728 /* FILE_ptr:
729  *      This macro is used to access the _ptr field (or equivalent) of the
730  *      FILE structure pointed to by its argument. This macro will always be
731  *      defined if USE_STDIO_PTR is defined.
732  */
733 /* STDIO_PTR_LVALUE:
734  *      This symbol is defined if the FILE_ptr macro can be used as an
735  *      lvalue.
736  */
737 /* FILE_cnt:
738  *      This macro is used to access the _cnt field (or equivalent) of the
739  *      FILE structure pointed to by its argument. This macro will always be
740  *      defined if USE_STDIO_PTR is defined.
741  */
742 /* STDIO_CNT_LVALUE:
743  *      This symbol is defined if the FILE_cnt macro can be used as an
744  *      lvalue.
745  */
746 #$d_stdstdio USE_STDIO_PTR      /**/
747 #ifdef USE_STDIO_PTR
748 #define FILE_ptr(fp)    $stdio_ptr
749 #$d_stdio_ptr_lval STDIO_PTR_LVALUE             /**/
750 #define FILE_cnt(fp)    $stdio_cnt
751 #$d_stdio_cnt_lval STDIO_CNT_LVALUE             /**/
752 #endif
753
754 /* USE_STDIO_BASE:
755  *      This symbol is defined if the _base field (or similar) of the
756  *      stdio FILE structure can be used to access the stdio buffer for
757  *      a file handle.  If this is defined, then the FILE_base(fp) macro
758  *      will also be defined and should be used to access this field.
759  *      Also, the FILE_bufsiz(fp) macro will be defined and should be used
760  *      to determine the number of bytes in the buffer.  USE_STDIO_BASE
761  *      will never be defined unless USE_STDIO_PTR is.
762  */
763 /* FILE_base:
764  *      This macro is used to access the _base field (or equivalent) of the
765  *      FILE structure pointed to by its argument. This macro will always be
766  *      defined if USE_STDIO_BASE is defined.
767  */
768 /* FILE_bufsiz:
769  *      This macro is used to determine the number of bytes in the I/O
770  *      buffer pointed to by _base field (or equivalent) of the FILE
771  *      structure pointed to its argument. This macro will always be defined
772  *      if USE_STDIO_BASE is defined.
773  */
774 #$d_stdiobase USE_STDIO_BASE    /**/
775 #ifdef USE_STDIO_BASE
776 #define FILE_base(fp)   $stdio_base
777 #define FILE_bufsiz(fp) $stdio_bufsiz
778 #endif
779
780 /* HAS_STRCHR:
781  *      This symbol is defined to indicate that the strchr()/strrchr()
782  *      functions are available for string searching. If not, try the
783  *      index()/rindex() pair.
784  */
785 /* HAS_INDEX:
786  *      This symbol is defined to indicate that the index()/rindex()
787  *      functions are available for string searching.
788  */
789 #$d_strchr HAS_STRCHR   /**/
790 #$d_index HAS_INDEX     /**/
791
792 /* HAS_STRCOLL:
793  *      This symbol, if defined, indicates that the strcoll routine is
794  *      available to compare strings using collating information.
795  */
796 #$d_strcoll HAS_STRCOLL /**/
797
798 /* USE_STRUCT_COPY:
799  *      This symbol, if defined, indicates that this C compiler knows how
800  *      to copy structures.  If undefined, you'll need to use a block copy
801  *      routine of some sort instead.
802  */
803 #$d_strctcpy    USE_STRUCT_COPY /**/
804
805 /* HAS_STRERROR:
806  *      This symbol, if defined, indicates that the strerror routine is
807  *      available to translate error numbers to strings. See the writeup
808  *      of Strerror() in this file before you try to define your own.
809  */
810 /* HAS_SYS_ERRLIST:
811  *      This symbol, if defined, indicates that the sys_errlist array is
812  *      available to translate error numbers to strings. The extern int
813  *      sys_nerr gives the size of that table.
814  */
815 /* Strerror:
816  *      This preprocessor symbol is defined as a macro if strerror() is
817  *      not available to translate error numbers to strings but sys_errlist[]
818  *      array is there.
819  */
820 #$d_strerror HAS_STRERROR               /**/
821 #$d_syserrlst HAS_SYS_ERRLIST   /**/
822 #define Strerror(e) $d_strerrm
823
824 /* HAS_STRTOD:
825  *      This symbol, if defined, indicates that the strtod routine is
826  *      available to provide better numeric string conversion than atof().
827  */
828 #$d_strtod HAS_STRTOD   /**/
829
830 /* HAS_STRTOL:
831  *      This symbol, if defined, indicates that the strtol routine is available
832  *      to provide better numeric string conversion than atoi() and friends.
833  */
834 #$d_strtol HAS_STRTOL   /**/
835
836 /* HAS_STRTOUL:
837  *      This symbol, if defined, indicates that the strtoul routine is
838  *      available to provide conversion of strings to unsigned long.
839  */
840 #$d_strtoul HAS_STRTOUL /**/
841
842 /* HAS_STRXFRM:
843  *      This symbol, if defined, indicates that the strxfrm() routine is
844  *      available to transform strings.
845  */
846 #$d_strxfrm HAS_STRXFRM /**/
847
848 /* HAS_SYMLINK:
849  *      This symbol, if defined, indicates that the symlink routine is available
850  *      to create symbolic links.
851  */
852 #$d_symlink HAS_SYMLINK /**/
853
854 /* HAS_SYSCALL:
855  *      This symbol, if defined, indicates that the syscall routine is
856  *      available to call arbitrary system calls. If undefined, that's tough.
857  */
858 #$d_syscall HAS_SYSCALL /**/
859
860 /* HAS_SYSCONF:
861  *      This symbol, if defined, indicates that sysconf() is available
862  *      to determine system related limits and options.
863  */
864 #$d_sysconf HAS_SYSCONF /**/
865
866 /* HAS_SYSTEM:
867  *      This symbol, if defined, indicates that the system routine is
868  *      available to issue a shell command.
869  */
870 #$d_system HAS_SYSTEM   /**/
871
872 /* HAS_TCGETPGRP:
873  *      This symbol, if defined, indicates that the tcgetpgrp routine is
874  *      available to get foreground process group ID.
875  */
876 #$d_tcgetpgrp HAS_TCGETPGRP             /**/
877
878 /* HAS_TCSETPGRP:
879  *      This symbol, if defined, indicates that the tcsetpgrp routine is
880  *      available to set foreground process group ID.
881  */
882 #$d_tcsetpgrp HAS_TCSETPGRP             /**/
883
884 /* Time_t:
885  *      This symbol holds the type returned by time(). It can be long,
886  *      or time_t on BSD sites (in which case <sys/types.h> should be
887  *      included).
888  */
889 #define Time_t $timetype                /* Time type */
890
891 /* HAS_TIMES:
892  *      This symbol, if defined, indicates that the times() routine exists.
893  *      Note that this became obsolete on some systems (SUNOS), which now
894  * use getrusage(). It may be necessary to include <sys/times.h>.
895  */
896 #$d_times HAS_TIMES             /**/
897
898 /* HAS_TRUNCATE:
899  *      This symbol, if defined, indicates that the truncate routine is
900  *      available to truncate files.
901  */
902 #$d_truncate HAS_TRUNCATE       /**/
903
904 /* HAS_TZNAME:
905  *      This symbol, if defined, indicates that the tzname[] array is
906  *      available to access timezone names.
907  */
908 #$d_tzname HAS_TZNAME           /**/
909
910 /* HAS_UMASK:
911  *      This symbol, if defined, indicates that the umask routine is
912  *      available to set and get the value of the file creation mask.
913  */
914 #$d_umask HAS_UMASK             /**/
915
916 /* HAS_VFORK:
917  *      This symbol, if defined, indicates that vfork() exists.
918  */
919 #$d_vfork HAS_VFORK     /**/
920
921 /* Signal_t:
922  *      This symbol's value is either "void" or "int", corresponding to the
923  *      appropriate return type of a signal handler.  Thus, you can declare
924  *      a signal handler using "Signal_t (*handler)()", and define the
925  *      handler using "Signal_t handler(sig)".
926  */
927 #define Signal_t $signal_t      /* Signal handler's return type */
928
929 /* HASVOLATILE:
930  *      This symbol, if defined, indicates that this C compiler knows about
931  *      the volatile declaration.
932  */
933 #$d_volatile    HASVOLATILE     /**/
934 #ifndef HASVOLATILE
935 #define volatile
936 #endif
937
938 /* HAS_VPRINTF:
939  *      This symbol, if defined, indicates that the vprintf routine is available
940  *      to printf with a pointer to an argument list.  If unavailable, you
941  *      may need to write your own, probably in terms of _doprnt().
942  */
943 /* USE_CHAR_VSPRINTF:
944  *      This symbol is defined if this system has vsprintf() returning type
945  *      (char*).  The trend seems to be to declare it as "int vsprintf()".  It
946  *      is up to the package author to declare vsprintf correctly based on the
947  *      symbol.
948  */
949 #$d_vprintf HAS_VPRINTF /**/
950 #$d_charvspr USE_CHAR_VSPRINTF  /**/
951
952 /* HAS_WAIT4:
953  *      This symbol, if defined, indicates that wait4() exists.
954  */
955 #$d_wait4 HAS_WAIT4     /**/
956
957 /* HAS_WAITPID:
958  *      This symbol, if defined, indicates that the waitpid routine is
959  *      available to wait for child process.
960  */
961 #$d_waitpid HAS_WAITPID /**/
962
963 /* HAS_WCSTOMBS:
964  *      This symbol, if defined, indicates that the wcstombs routine is
965  *      available to convert wide character strings to multibyte strings.
966  */
967 #$d_wcstombs HAS_WCSTOMBS       /**/
968
969 /* HAS_WCTOMB:
970  *      This symbol, if defined, indicates that the wctomb routine is available
971  *      to covert a wide character to a multibyte.
972  */
973 #$d_wctomb HAS_WCTOMB           /**/
974
975 /* Fpos_t:
976  *      This symbol holds the type used to declare file positions in libc.
977  *      It can be fpos_t, long, uint, etc... It may be necessary to include
978  *      <sys/types.h> to get any typedef'ed information.
979  */
980 #define Fpos_t $fpostype                /* File position type */
981
982 /* Gid_t:
983  *      This symbol holds the return type of getgid() and the type of
984  *      argument to setrgid() and related functions.  Typically,
985  *      it is the type of group ids in the kernel. It can be int, ushort,
986  *      uid_t, etc... It may be necessary to include <sys/types.h> to get
987  *      any typedef'ed information.
988  */
989 #define Gid_t $gidtype          /* Type for getgid(), etc... */
990
991 /* Groups_t:
992  *      This symbol holds the type used for the second argument to
993  *      getgroups().  Usually, this is the same of gidtype, but
994  *      sometimes it isn't.  It can be int, ushort, uid_t, etc... 
995  *      It may be necessary to include <sys/types.h> to get any 
996  *      typedef'ed information.  This is only required if you have
997  *      getgroups().
998  */
999 #ifdef HAS_GETGROUPS
1000 #define Groups_t $groupstype    /* Type for 2nd arg to getgroups() */
1001 #endif
1002
1003 /* DB_Prefix_t:
1004  *      This symbol contains the type of the prefix structure element
1005  *      in the <db.h> header file.  In older versions of DB, it was
1006  *      int, while in newer ones it is u_int32_t.
1007  */
1008 /* DB_Hash_t:
1009  *      This symbol contains the type of the prefix structure element
1010  *      in the <db.h> header file.  In older versions of DB, it was
1011  *      int, while in newer ones it is size_t.
1012  */
1013 #define DB_Hash_t       $db_hashtype            /**/
1014 #define DB_Prefix_t     $db_prefixtype          /**/
1015
1016 /* I_DIRENT:
1017  *      This symbol, if defined, indicates to the C program that it should
1018  *      include <dirent.h>. Using this symbol also triggers the definition
1019  *      of the Direntry_t define which ends up being 'struct dirent' or
1020  *      'struct direct' depending on the availability of <dirent.h>.
1021  */
1022 /* DIRNAMLEN:
1023  *      This symbol, if defined, indicates to the C program that the length
1024  *      of directory entry names is provided by a d_namlen field.  Otherwise
1025  *      you need to do strlen() on the d_name field.
1026  */
1027 /* Direntry_t:
1028  *      This symbol is set to 'struct direct' or 'struct dirent' depending on
1029  *      whether dirent is available or not. You should use this pseudo type to
1030  *      portably declare your directory entries.
1031  */
1032 #$i_dirent I_DIRENT             /**/
1033 #$d_dirnamlen DIRNAMLEN /**/
1034 #define Direntry_t $direntrytype
1035
1036 /* I_DLFCN:
1037  *      This symbol, if defined, indicates that <dlfcn.h> exists and should
1038  *      be included.
1039  */
1040 #$i_dlfcn I_DLFCN               /**/
1041
1042 /* I_FCNTL:
1043  *      This manifest constant tells the C program to include <fcntl.h>.
1044  */
1045 #$i_fcntl I_FCNTL       /**/
1046
1047 /* I_FLOAT:
1048  *      This symbol, if defined, indicates to the C program that it should
1049  *      include <float.h> to get definition of symbols like DBL_MAX or
1050  *      DBL_MIN, i.e. machine dependent floating point values.
1051  */
1052 #$i_float I_FLOAT               /**/
1053
1054 /* I_GRP:
1055  *      This symbol, if defined, indicates to the C program that it should
1056  *      include <grp.h>.
1057  */
1058 #$i_grp I_GRP           /**/
1059
1060 /* I_LIMITS:
1061  *      This symbol, if defined, indicates to the C program that it should
1062  *      include <limits.h> to get definition of symbols like WORD_BIT or
1063  *      LONG_MAX, i.e. machine dependant limitations.
1064  */
1065 #$i_limits I_LIMITS             /**/
1066
1067 /* I_MATH:
1068  *      This symbol, if defined, indicates to the C program that it should
1069  *      include <math.h>.
1070  */
1071 #$i_math I_MATH         /**/
1072
1073 /* I_MEMORY:
1074  *      This symbol, if defined, indicates to the C program that it should
1075  *      include <memory.h>.
1076  */
1077 #$i_memory I_MEMORY             /**/
1078
1079 /* I_NDBM:
1080  *      This symbol, if defined, indicates that <ndbm.h> exists and should
1081  *      be included.
1082  */
1083 #$i_ndbm I_NDBM /**/
1084
1085 /* I_NET_ERRNO:
1086  *      This symbol, if defined, indicates that <net/errno.h> exists and 
1087  *      should be included.
1088  */
1089 #$i_neterrno I_NET_ERRNO                /**/
1090
1091 /* I_NETINET_IN:
1092  *      This symbol, if defined, indicates to the C program that it should
1093  *      include <netinet/in.h>. Otherwise, you may try <sys/in.h>.
1094  */
1095 #$i_niin I_NETINET_IN   /**/
1096
1097 /* I_PWD:
1098  *      This symbol, if defined, indicates to the C program that it should
1099  *      include <pwd.h>.
1100  */
1101 /* PWQUOTA:
1102  *      This symbol, if defined, indicates to the C program that struct passwd
1103  *      contains pw_quota.
1104  */
1105 /* PWAGE:
1106  *      This symbol, if defined, indicates to the C program that struct passwd
1107  *      contains pw_age.
1108  */
1109 /* PWCHANGE:
1110  *      This symbol, if defined, indicates to the C program that struct passwd
1111  *      contains pw_change.
1112  */
1113 /* PWCLASS:
1114  *      This symbol, if defined, indicates to the C program that struct passwd
1115  *      contains pw_class.
1116  */
1117 /* PWEXPIRE:
1118  *      This symbol, if defined, indicates to the C program that struct passwd
1119  *      contains pw_expire.
1120  */
1121 /* PWCOMMENT:
1122  *      This symbol, if defined, indicates to the C program that struct passwd
1123  *      contains pw_comment.
1124  */
1125 #$i_pwd I_PWD           /**/
1126 #$d_pwquota PWQUOTA     /**/
1127 #$d_pwage PWAGE /**/
1128 #$d_pwchange PWCHANGE   /**/
1129 #$d_pwclass PWCLASS     /**/
1130 #$d_pwexpire PWEXPIRE   /**/
1131 #$d_pwcomment PWCOMMENT /**/
1132
1133 /* I_STDDEF:
1134  *      This symbol, if defined, indicates that <stddef.h> exists and should
1135  *      be included.
1136  */
1137 #$i_stddef I_STDDEF     /**/
1138
1139 /* I_STDLIB:
1140  *      This symbol, if defined, indicates that <stdlib.h> exists and should
1141  *      be included.
1142  */
1143 #$i_stdlib I_STDLIB             /**/
1144
1145 /* I_STRING:
1146  *      This symbol, if defined, indicates to the C program that it should
1147  *      include <string.h> (USG systems) instead of <strings.h> (BSD systems).
1148  */
1149 #$i_string I_STRING             /**/
1150
1151 /* I_SYS_DIR:
1152  *      This symbol, if defined, indicates to the C program that it should
1153  *      include <sys/dir.h>.
1154  */
1155 #$i_sysdir I_SYS_DIR            /**/
1156
1157 /* I_SYS_FILE:
1158  *      This symbol, if defined, indicates to the C program that it should
1159  *      include <sys/file.h> to get definition of R_OK and friends.
1160  */
1161 #$i_sysfile I_SYS_FILE          /**/
1162
1163 /* I_SYS_IOCTL:
1164  *      This symbol, if defined, indicates that <sys/ioctl.h> exists and should
1165  *      be included. Otherwise, include <sgtty.h> or <termio.h>.
1166  */
1167 #$i_sysioctl    I_SYS_IOCTL             /**/
1168
1169 /* I_SYS_NDIR:
1170  *      This symbol, if defined, indicates to the C program that it should
1171  *      include <sys/ndir.h>.
1172  */
1173 #$i_sysndir I_SYS_NDIR  /**/
1174
1175 /* I_SYS_PARAM:
1176  *      This symbol, if defined, indicates to the C program that it should
1177  *      include <sys/param.h>.
1178  */
1179 #$i_sysparam I_SYS_PARAM                /**/
1180
1181 /* I_SYS_RESOURCE:
1182  *      This symbol, if defined, indicates to the C program that it should
1183  *      include <sys/resource.h>.
1184  */
1185 #$i_sysresrc I_SYS_RESOURCE             /**/
1186
1187 /* I_SYS_SELECT:
1188  *      This symbol, if defined, indicates to the C program that it should
1189  *      include <sys/select.h> in order to get definition of struct timeval.
1190  */
1191 #$i_sysselct I_SYS_SELECT       /**/
1192
1193 /* I_SYS_TIMES:
1194  *      This symbol, if defined, indicates to the C program that it should
1195  *      include <sys/times.h>.
1196  */
1197 #$i_systimes    I_SYS_TIMES             /**/
1198
1199 /* I_SYS_TYPES:
1200  *      This symbol, if defined, indicates to the C program that it should
1201  *      include <sys/types.h>.
1202  */
1203 #$i_systypes    I_SYS_TYPES             /**/
1204
1205 /* I_SYS_UN:
1206  *      This symbol, if defined, indicates to the C program that it should
1207  *      include <sys/un.h> to get UNIX domain socket definitions.
1208  */
1209 #$i_sysun I_SYS_UN              /**/
1210
1211 /* I_SYS_WAIT:
1212  *      This symbol, if defined, indicates to the C program that it should
1213  *      include <sys/wait.h>.
1214  */
1215 #$i_syswait I_SYS_WAIT  /**/
1216
1217 /* I_TERMIO:
1218  *      This symbol, if defined, indicates that the program should include
1219  *      <termio.h> rather than <sgtty.h>.  There are also differences in
1220  *      the ioctl() calls that depend on the value of this symbol.
1221  */
1222 /* I_TERMIOS:
1223  *      This symbol, if defined, indicates that the program should include
1224  *      the POSIX termios.h rather than sgtty.h or termio.h.
1225  *      There are also differences in the ioctl() calls that depend on the
1226  *      value of this symbol.
1227  */
1228 /* I_SGTTY:
1229  *      This symbol, if defined, indicates that the program should include
1230  *      <sgtty.h> rather than <termio.h>.  There are also differences in
1231  *      the ioctl() calls that depend on the value of this symbol.
1232  */
1233 #$i_termio I_TERMIO             /**/
1234 #$i_termios I_TERMIOS           /**/
1235 #$i_sgtty I_SGTTY               /**/
1236
1237 /* I_TIME:
1238  *      This symbol, if defined, indicates to the C program that it should
1239  *      include <time.h>.
1240  */
1241 /* I_SYS_TIME:
1242  *      This symbol, if defined, indicates to the C program that it should
1243  *      include <sys/time.h>.
1244  */
1245 /* I_SYS_TIME_KERNEL:
1246  *      This symbol, if defined, indicates to the C program that it should
1247  *      include <sys/time.h> with KERNEL defined.
1248  */
1249 #$i_time I_TIME         /**/
1250 #$i_systime I_SYS_TIME          /**/
1251 #$i_systimek I_SYS_TIME_KERNEL          /**/
1252
1253 /* I_UNISTD:
1254  *      This symbol, if defined, indicates to the C program that it should
1255  *      include <unistd.h>.
1256  */
1257 #$i_unistd I_UNISTD             /**/
1258
1259 /* I_UTIME:
1260  *      This symbol, if defined, indicates to the C program that it should
1261  *      include <utime.h>.
1262  */
1263 #$i_utime I_UTIME               /**/
1264
1265 /* I_STDARG:
1266  *      This symbol, if defined, indicates that <stdarg.h> exists and should
1267  *      be included.
1268  */
1269 /* I_VARARGS:
1270  *      This symbol, if defined, indicates to the C program that it should
1271  *      include <varargs.h>.
1272  */
1273 #$i_stdarg I_STDARG             /**/
1274 #$i_varargs I_VARARGS   /**/
1275
1276 /* I_VFORK:
1277  *      This symbol, if defined, indicates to the C program that it should
1278  *      include vfork.h.
1279  */
1280 #$i_vfork I_VFORK       /**/
1281
1282 /* INTSIZE:
1283  *      This symbol contains the value of sizeof(int) so that the C
1284  *      preprocessor can make decisions based on it.
1285  */
1286 /* LONGSIZE:
1287  *      This symbol contains the value of sizeof(long) so that the C
1288  *      preprocessor can make decisions based on it.
1289  */
1290 /* SHORTSIZE:
1291  *      This symbol contains the value of sizeof(short) so that the C
1292  *      preprocessor can make decisions based on it.
1293  */
1294 #define INTSIZE $intsize                /**/
1295 #define LONGSIZE $longsize              /**/
1296 #define SHORTSIZE $shortsize            /**/
1297
1298 /* Off_t:
1299  *      This symbol holds the type used to declare offsets in the kernel.
1300  *      It can be int, long, off_t, etc... It may be necessary to include
1301  *      <sys/types.h> to get any typedef'ed information.
1302  */
1303 #define Off_t $lseektype                /* <offset> type */
1304
1305 /* Mode_t:
1306  *      This symbol holds the type used to declare file modes 
1307  *      for systems calls.  It is usually mode_t, but may be
1308  *      int or unsigned short.  It may be necessary to include <sys/types.h>
1309  *      to get any typedef'ed information.
1310  */
1311 #define Mode_t $modetype         /* file mode parameter for system calls */
1312
1313 /* VAL_O_NONBLOCK:
1314  *      This symbol is to be used during open() or fcntl(F_SETFL) to turn on
1315  *      non-blocking I/O for the file descriptor. Note that there is no way
1316  *      back, i.e. you cannot turn it blocking again this way. If you wish to
1317  *      alternatively switch between blocking and non-blocking, use the
1318  *      ioctl(FIOSNBIO) call instead, but that is not supported by all devices.
1319  */
1320 /* VAL_EAGAIN:
1321  *      This symbol holds the errno error code set by read() when no data was
1322  *      present on the non-blocking file descriptor.
1323  */
1324 /* RD_NODATA:
1325  *      This symbol holds the return code from read() when no data is present
1326  *      on the non-blocking file descriptor. Be careful! If EOF_NONBLOCK is
1327  *      not defined, then you can't distinguish between no data and EOF by
1328  *      issuing a read(). You'll have to find another way to tell for sure!
1329  */
1330 /* EOF_NONBLOCK:
1331  *      This symbol, if defined, indicates to the C program that a read() on
1332  *      a non-blocking file descriptor will return 0 on EOF, and not the value
1333  *      held in RD_NODATA (-1 usually, in that case!).
1334  */
1335 #define VAL_O_NONBLOCK $o_nonblock
1336 #define VAL_EAGAIN $eagain
1337 #define RD_NODATA $rd_nodata
1338 #$d_eofnblk EOF_NONBLOCK
1339
1340 /* CAN_PROTOTYPE:
1341  *      If defined, this macro indicates that the C compiler can handle
1342  *      function prototypes.
1343  */
1344 /* _:
1345  *      This macro is used to declare function parameters for folks who want
1346  *      to make declarations with prototypes using a different style than
1347  *      the above macros.  Use double parentheses.  For example:
1348  *
1349  *              int main _((int argc, char *argv[]));
1350  */
1351 #$prototype     CAN_PROTOTYPE   /**/
1352 #ifdef CAN_PROTOTYPE
1353 #define _(args) args
1354 #else
1355 #define _(args) ()
1356 #endif
1357
1358 /* RANDBITS:
1359  *      This symbol contains the number of bits of random number the rand()
1360  *      function produces.  Usual values are 15, 16, and 31.
1361  */
1362 #define RANDBITS $randbits              /**/
1363
1364 /* Select_fd_set_t:
1365  *      This symbol holds the type used for the 2nd, 3rd, and 4th
1366  *      arguments to select.  Usually, this is 'fd_set *', if HAS_FD_SET
1367  *      is defined, and 'int *' otherwise.  This is only useful if you 
1368  *      have select(), of course.
1369  */
1370 #define Select_fd_set_t         $selecttype     /**/
1371
1372 /* Size_t:
1373  *      This symbol holds the type used to declare length parameters
1374  *      for string functions.  It is usually size_t, but may be
1375  *      unsigned long, int, etc.  It may be necessary to include
1376  *      <sys/types.h> to get any typedef'ed information.
1377  */
1378 #define Size_t $sizetype         /* length paramater for string functions */
1379
1380 /* SSize_t:
1381  *      This symbol holds the type used by functions that return
1382  *      a count of bytes or an error condition.  It must be a signed type.
1383  *      It is usually ssize_t, but may be long or int, etc.
1384  *      It may be necessary to include <sys/types.h> or <unistd.h>
1385  *      to get any typedef'ed information.
1386  *      We will pick a type such that sizeof(SSize_t) == sizeof(Size_t).
1387  */
1388 #define SSize_t $ssizetype       /* signed count of bytes */
1389
1390 /* STDCHAR:
1391  *      This symbol is defined to be the type of char used in stdio.h.
1392  *      It has the values "unsigned char" or "char".
1393  */
1394 #define STDCHAR $stdchar        /**/
1395
1396 /* Uid_t:
1397  *      This symbol holds the type used to declare user ids in the kernel.
1398  *      It can be int, ushort, uid_t, etc... It may be necessary to include
1399  *      <sys/types.h> to get any typedef'ed information.
1400  */
1401 #define Uid_t $uidtype          /* UID type */
1402
1403 /* LOC_SED:
1404  *      This symbol holds the complete pathname to the sed program.
1405  */
1406 #define LOC_SED         "$full_sed"     /**/
1407
1408 /* OSNAME:
1409  *      This symbol contains the name of the operating system, as determined
1410  *      by Configure.  You shouldn't rely on it too much; the specific
1411  *      feature tests from Configure are generally more reliable.
1412  */
1413 #define OSNAME "$osname"                /**/
1414
1415 /* ARCHLIB:
1416  *      This variable, if defined, holds the name of the directory in
1417  *      which the user wants to put architecture-dependent public
1418  *      library files for $package.  It is most often a local directory
1419  *      such as /usr/local/lib.  Programs using this variable must be
1420  *      prepared to deal with filename expansion.  If ARCHLIB is the
1421  *      same as PRIVLIB, it is not defined, since presumably the
1422  *      program already searches PRIVLIB.
1423  */
1424 /* ARCHLIB_EXP:
1425  *      This symbol contains the ~name expanded version of ARCHLIB, to be used
1426  *      in programs that are not prepared to deal with ~ expansion at run-time.
1427  */
1428 #$d_archlib ARCHLIB "$archlib"          /**/
1429 #$d_archlib ARCHLIB_EXP "$archlibexp"           /**/
1430
1431 /* BINCOMPAT3:
1432  *      This symbol, if defined, indicates that Perl 5.004 should be
1433  *      binary-compatible with Perl 5.003.
1434  */
1435 #$d_bincompat3 BINCOMPAT3                       /**/
1436
1437 /* BYTEORDER:
1438  *      This symbol holds the hexadecimal constant defined in byteorder,
1439  *      i.e. 0x1234 or 0x4321, etc...
1440  *      On NeXT 4 (and greater), you can build "Fat" Multiple Architecture
1441  *      Binaries (MAB) on either big endian or little endian machines.
1442  *      The endian-ness is available at compile-time.  This only matters
1443  *      for perl, where the config.h can be generated and installed on 
1444  *      one system, and used by a different architecture to build an
1445  *      extension.  Older versions of NeXT that might not have
1446  *      defined either *_ENDIAN__ were all on Motorola 680x0 series,
1447  *      so the default case (for NeXT) is big endian to catch them. 
1448  *      This might matter for NeXT 3.0.
1449  */
1450 #ifndef NeXT
1451 #define BYTEORDER 0x$byteorder  /* large digits for MSB */
1452 #else  /* NeXT */
1453 #ifdef __LITTLE_ENDIAN__
1454 #define BYTEORDER 0x1234
1455 #else /* __BIG_ENDIAN__ */
1456 #define BYTEORDER 0x4321
1457 #endif /* ENDIAN CHECK */
1458 #endif /* NeXT */
1459
1460 /* CSH:
1461  *      This symbol, if defined, indicates that the C-shell exists.
1462  *      If defined, contains the full pathname of csh.
1463  */
1464 #$d_csh CSH "$full_csh"         /**/
1465
1466 /* DLSYM_NEEDS_UNDERSCORE:
1467  *      This symbol, if defined, indicates that we need to prepend an
1468  *      underscore to the symbol name before calling dlsym().  This only
1469  *      makes sense if you *have* dlsym, which we will presume is the
1470  *      case if you're using dl_dlopen.xs.
1471  */
1472 #$d_dlsymun     DLSYM_NEEDS_UNDERSCORE  /**/
1473
1474 /* SETUID_SCRIPTS_ARE_SECURE_NOW:
1475  *      This symbol, if defined, indicates that the bug that prevents
1476  *      setuid scripts from being secure is not present in this kernel.
1477  */
1478 /* DOSUID:
1479  *      This symbol, if defined, indicates that the C program should
1480  *      check the script that it is executing for setuid/setgid bits, and
1481  *      attempt to emulate setuid/setgid on systems that have disabled
1482  *      setuid #! scripts because the kernel can't do it securely.
1483  *      It is up to the package designer to make sure that this emulation
1484  *      is done securely.  Among other things, it should do an fstat on
1485  *      the script it just opened to make sure it really is a setuid/setgid
1486  *      script, it should make sure the arguments passed correspond exactly
1487  *      to the argument on the #! line, and it should not trust any
1488  *      subprocesses to which it must pass the filename rather than the
1489  *      file descriptor of the script to be executed.
1490  */
1491 #$d_suidsafe SETUID_SCRIPTS_ARE_SECURE_NOW      /**/
1492 #$d_dosuid DOSUID               /**/
1493
1494 /* Gconvert:
1495  *      This preprocessor macro is defined to convert a floating point
1496  *      number to a string without a trailing decimal point.  This
1497  *      emulates the behavior of sprintf("%g"), but is sometimes much more
1498  *      efficient.  If gconvert() is not available, but gcvt() drops the
1499  *      trailing decimal point, then gcvt() is used.  If all else fails,
1500  *      a macro using sprintf("%g") is used. Arguments for the Gconvert
1501  *      macro are: value, number of digits, whether trailing zeros should
1502  *      be retained, and the output buffer.
1503  *      Possible values are:
1504  *              d_Gconvert='gconvert((x),(n),(t),(b))'
1505  *              d_Gconvert='gcvt((x),(n),(b))'
1506  *              d_Gconvert='sprintf((b),"%.*g",(n),(x))'
1507  *      The last two assume trailing zeros should not be kept.
1508  */
1509 #define Gconvert(x,n,t,b) $d_Gconvert
1510
1511 /* HAS_GETPGID:
1512  *      This symbol, if defined, indicates to the C program that 
1513  *      the getpgid(pid) function is available to get the
1514  *      process group id.
1515  */
1516 #$d_getpgid HAS_GETPGID         /**/
1517
1518 /* HAS_GETPGRP:
1519  *      This symbol, if defined, indicates that the getpgrp routine is
1520  *      available to get the current process group.
1521  */
1522 /* USE_BSD_GETPGRP:
1523  *      This symbol, if defined, indicates that getpgrp needs one
1524  *      arguments whereas USG one needs none.
1525  */
1526 #$d_getpgrp HAS_GETPGRP         /**/
1527 #$d_bsdgetpgrp USE_BSD_GETPGRP  /**/
1528
1529 /* HAS_INET_ATON:
1530  *      This symbol, if defined, indicates to the C program that the
1531  *      inet_aton() function is available to parse IP address "dotted-quad"
1532  *      strings.
1533  */
1534 #$d_inetaton HAS_INET_ATON              /**/
1535
1536 /* HAS_SETPGID:
1537  *      This symbol, if defined, indicates to the C program that 
1538  *      the setpgid(pid, gpid) function is available to set the
1539  *      process group id.
1540  */
1541 #$d_setpgid HAS_SETPGID         /**/
1542
1543 /* HAS_SETPGRP:
1544  *      This symbol, if defined, indicates that the setpgrp routine is
1545  *      available to set the current process group.
1546  */
1547 /* USE_BSD_SETPGRP:
1548  *      This symbol, if defined, indicates that setpgrp needs two
1549  *      arguments whereas USG one needs none.  See also HAS_SETPGID
1550  *      for a POSIX interface.
1551  */
1552 /* USE_BSDPGRP:
1553  *      This symbol, if defined, indicates that the BSD notion of process
1554  *      group is to be used. For instance, you have to say setpgrp(pid, pgrp)
1555  *      instead of the USG setpgrp().  This should be obsolete since
1556  *      there are systems which have BSD-ish setpgrp but USG-ish getpgrp.
1557  */
1558 #$d_setpgrp HAS_SETPGRP         /**/
1559 #$d_bsdsetpgrp USE_BSD_SETPGRP  /**/
1560 #$d_bsdpgrp USE_BSDPGRP         /**/
1561
1562 /* USE_SFIO:
1563  *      This symbol, if defined, indicates that sfio should
1564  *      be used.
1565  */
1566 #$d_sfio        USE_SFIO                /**/
1567
1568 /* Sigjmp_buf:
1569  *      This is the buffer type to be used with Sigsetjmp and Siglongjmp.
1570  */
1571 /* Sigsetjmp:
1572  *      This macro is used in the same way as sigsetjmp(), but will invoke
1573  *      traditional setjmp() if sigsetjmp isn't available.
1574  *      See HAS_SIGSETJMP.
1575  */
1576 /* Siglongjmp:
1577  *      This macro is used in the same way as siglongjmp(), but will invoke
1578  *      traditional longjmp() if siglongjmp isn't available.
1579  *      See HAS_SIGSETJMP.
1580  */
1581 #$d_sigsetjmp HAS_SIGSETJMP     /**/
1582 #ifdef HAS_SIGSETJMP
1583 #define Sigjmp_buf sigjmp_buf
1584 #define Sigsetjmp(buf,save_mask) sigsetjmp((buf),(save_mask))
1585 #define Siglongjmp(buf,retval) siglongjmp((buf),(retval))
1586 #else
1587 #define Sigjmp_buf jmp_buf
1588 #define Sigsetjmp(buf,save_mask) setjmp((buf))
1589 #define Siglongjmp(buf,retval) longjmp((buf),(retval))
1590 #endif
1591
1592 /* USE_DYNAMIC_LOADING:
1593  *      This symbol, if defined, indicates that dynamic loading of
1594  *      some sort is available.
1595  */
1596 #$usedl USE_DYNAMIC_LOADING             /**/
1597
1598 /* I_DBM:
1599  *      This symbol, if defined, indicates that <dbm.h> exists and should
1600  *      be included.
1601  */
1602 /* I_RPCSVC_DBM:
1603  *      This symbol, if defined, indicates that <rpcsvc/dbm.h> exists and
1604  *      should be included.
1605  */
1606 #$i_dbm I_DBM   /**/
1607 #$i_rpcsvcdbm I_RPCSVC_DBM      /**/
1608
1609 /* I_LOCALE:
1610  *      This symbol, if defined, indicates to the C program that it should
1611  *      include <locale.h>.
1612  */
1613 #$i_locale      I_LOCALE                /**/
1614
1615 /* I_SFIO:
1616  *      This symbol, if defined, indicates to the C program that it should
1617  *      include <sfio.h>.
1618  */
1619 #$i_sfio        I_SFIO          /**/
1620
1621 /* I_SYS_STAT:
1622  *      This symbol, if defined, indicates to the C program that it should
1623  *      include <sys/stat.h>.
1624  */
1625 #$i_sysstat     I_SYS_STAT              /**/
1626
1627 /* I_VALUES:
1628  *      This symbol, if defined, indicates to the C program that it should
1629  *      include <values.h> to get definition of symbols like MINFLOAT or
1630  *      MAXLONG, i.e. machine dependant limitations.  Probably, you
1631  *      should use <limits.h> instead, if it is available.
1632  */
1633 #$i_values I_VALUES             /**/
1634
1635 /* Free_t:
1636  *      This variable contains the return type of free().  It is usually
1637  * void, but occasionally int.
1638  */
1639 /* Malloc_t:
1640  *      This symbol is the type of pointer returned by malloc and realloc.
1641  */
1642 #define Malloc_t $malloctype                    /**/
1643 #define Free_t $freetype                        /**/
1644
1645 /* MYMALLOC:
1646  *      This symbol, if defined, indicates that we're using our own malloc.
1647  */
1648 #$d_mymalloc MYMALLOC                   /**/
1649
1650 /* OLDARCHLIB:
1651  *      This variable, if defined, holds the name of the directory in
1652  *      which the user has perl5.000 or perl5.001 architecture-dependent
1653  *      public library files for $package.  For the most part, these
1654  *      files will work with 5.002 (and later), but that is not
1655  *      guaranteed.
1656  */
1657 /* OLDARCHLIB_EXP:
1658  *      This symbol contains the ~name expanded version of OLDARCHLIB, to be
1659  *      used in programs that are not prepared to deal with ~ expansion at 
1660  *      run-time.
1661  */
1662 #$d_oldarchlib OLDARCHLIB "$oldarchlib"         /**/
1663 #$d_oldarchlib OLDARCHLIB_EXP "$oldarchlibexp"          /**/
1664
1665 /* PRIVLIB:
1666  *      This symbol contains the name of the private library for this package.
1667  *      The library is private in the sense that it needn't be in anyone's
1668  *      execution path, but it should be accessible by the world.  The program
1669  *      should be prepared to do ~ expansion.
1670  */
1671 /* PRIVLIB_EXP:
1672  *      This symbol contains the ~name expanded version of PRIVLIB, to be used
1673  *      in programs that are not prepared to deal with ~ expansion at run-time.
1674  */
1675 #define PRIVLIB "$privlib"              /**/
1676 #define PRIVLIB_EXP "$privlibexp"               /**/
1677
1678 /* SH_PATH:
1679  *      This symbol contains the full pathname to the shell used on this
1680  *      on this system to execute Bourne shell scripts.  Usually, this will be
1681  *      /bin/sh, though it's possible that some systems will have /bin/ksh,
1682  *      /bin/pdksh, /bin/ash, /bin/bash, or even something such as
1683  *      D:/bin/sh.exe.
1684  */
1685 #define SH_PATH "$sh"  /**/
1686
1687 /* SIG_NAME:
1688  *      This symbol contains a list of signal names in order of
1689  *      signal number. This is intended
1690  *      to be used as a static array initialization, like this:
1691  *              char *sig_name[] = { SIG_NAME };
1692  *      The signals in the list are separated with commas, and each signal
1693  *      is surrounded by double quotes. There is no leading SIG in the signal
1694  *      name, i.e. SIGQUIT is known as "QUIT".
1695  *      Gaps in the signal numbers (up to NSIG) are filled in with NUMnn,
1696  *      etc., where nn is the actual signal number (e.g. NUM37).
1697  *      The signal number for sig_name[i] is stored in sig_num[i].
1698  *      The last element is 0 to terminate the list with a NULL.  This
1699  *      corresponds to the 0 at the end of the sig_num list.
1700  */
1701 /* SIG_NUM:
1702  *      This symbol contains a list of signal numbers, in the same order as the
1703  *      SIG_NAME list. It is suitable for static array initialization, as in:
1704  *              int sig_num[] = { SIG_NUM };
1705  *      The signals in the list are separated with commas, and the indices
1706  *      within that list and the SIG_NAME list match, so it's easy to compute
1707  *      the signal name from a number or vice versa at the price of a small
1708  *      dynamic linear lookup. 
1709  *      Duplicates are allowed, but are moved to the end of the list.
1710  *      The signal number corresponding to sig_name[i] is sig_number[i].
1711  *      if (i < NSIG) then sig_number[i] == i.  
1712  *      The last element is 0, corresponding to the 0 at the end of
1713  *      the sig_name list.
1714  */
1715 #define SIG_NAME "`echo $sig_name | sed 's/ /","/g'`",0 /**/
1716 #define SIG_NUM `echo $sig_num 0 | sed 's/ /,/g'`       /**/
1717
1718 /* SITEARCH:
1719  *      This symbol contains the name of the private library for this package.
1720  *      The library is private in the sense that it needn't be in anyone's
1721  *      execution path, but it should be accessible by the world.  The program
1722  *      should be prepared to do ~ expansion.
1723  *      The standard distribution will put nothing in this directory.
1724  *      Individual sites may place their own extensions and modules in
1725  *      this directory.
1726  */
1727 /* SITEARCH_EXP:
1728  *      This symbol contains the ~name expanded version of SITEARCH, to be used
1729  *      in programs that are not prepared to deal with ~ expansion at run-time.
1730  */
1731 #define SITEARCH "$sitearch"            /**/
1732 #define SITEARCH_EXP "$sitearchexp"             /**/
1733
1734 /* SITELIB:
1735  *      This symbol contains the name of the private library for this package.
1736  *      The library is private in the sense that it needn't be in anyone's
1737  *      execution path, but it should be accessible by the world.  The program
1738  *      should be prepared to do ~ expansion.
1739  *      The standard distribution will put nothing in this directory.
1740  *      Individual sites may place their own extensions and modules in
1741  *      this directory.
1742  */
1743 /* SITELIB_EXP:
1744  *      This symbol contains the ~name expanded version of SITELIB, to be used
1745  *      in programs that are not prepared to deal with ~ expansion at run-time.
1746  */
1747 #define SITELIB "$sitelib"              /**/
1748 #define SITELIB_EXP "$sitelibexp"               /**/
1749
1750 /* STARTPERL:
1751  *      This variable contains the string to put in front of a perl
1752  *      script to make sure (one hopes) that it runs with perl and not
1753  *      some shell.
1754  */
1755 #define STARTPERL "$startperl"          /**/
1756
1757 /* USE_PERLIO:
1758  *      This symbol, if defined, indicates that the PerlIO abstraction should
1759  *      be used throughout.  If not defined, stdio should be
1760  *      used in a fully backward compatible manner.
1761  */
1762 #$useperlio     USE_PERLIO              /**/
1763
1764 /* VOIDFLAGS:
1765  *      This symbol indicates how much support of the void type is given by this
1766  *      compiler.  What various bits mean:
1767  *
1768  *          1 = supports declaration of void
1769  *          2 = supports arrays of pointers to functions returning void
1770  *          4 = supports comparisons between pointers to void functions and
1771  *                  addresses of void functions
1772  *          8 = suports declaration of generic void pointers
1773  *
1774  *      The package designer should define VOIDUSED to indicate the requirements
1775  *      of the package.  This can be done either by #defining VOIDUSED before
1776  *      including config.h, or by defining defvoidused in Myinit.U.  If the
1777  *      latter approach is taken, only those flags will be tested.  If the
1778  *      level of void support necessary is not present, defines void to int.
1779  */
1780 #ifndef VOIDUSED
1781 #define VOIDUSED $defvoidused
1782 #endif
1783 #define VOIDFLAGS $voidflags
1784 #if (VOIDFLAGS & VOIDUSED) != VOIDUSED
1785 #define void int                /* is void to be avoided? */
1786 #define M_VOID                  /* Xenix strikes again */
1787 #endif
1788
1789 #endif
1790 !GROK!THIS!