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