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