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