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=../../../..;
9 echo "Can't find config.sh."; exit 1
15 */*) cd `expr X$0 : 'X\(.*\)/'` ;;
17 echo "Extracting config.h (with variable substitutions)"
18 sed <<!GROK!THIS! >config.h -e 's!^#undef\(.*/\)\*!/\*#define\1 \*!' -e 's!^#un-def!#undef!'
20 * This file was produced by running the config_h.SH script, which
21 * gets its values from config.sh, which is generally produced by
24 * Feel free to modify any of this as the need arises. Note, however,
25 * that running config_h.SH again will wipe out any changes you've made.
26 * For a more permanent change edit config.sh and rerun config_h.SH.
28 * \$Id: Config_h.U,v 3.0.1.5 1997/02/28 14:57:43 ram Exp $
32 * Package name : $package
33 * Source directory : $src
34 * Configuration time: $cf_time
35 * Configured by : $cf_by
36 * Target system : $myuname
43 * This symbol holds the complete pathname to the sed program.
45 #define LOC_SED "$full_sed" /**/
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.
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.
55 #define BIN "$bin" /**/
56 #define BIN_EXP "$binexp" /**/
59 * This symbol contains the first part of the string which will invoke
60 * the C preprocessor on the standard input and produce to standard
61 * output. Typical value of "cc -E" or "/lib/cpp", but it can also
62 * call a wrapper. See CPPRUN.
65 * This symbol contains the second part of the string which will invoke
66 * the C preprocessor on the standard input and produce to standard
67 * output. This symbol will have the value "-" if CPPSTDIN needs a minus
68 * to specify standard input, otherwise the value is "".
70 #define CPPSTDIN "$cppstdin"
71 #define CPPMINUS "$cppminus"
74 * This symbol, if defined, indicates that the alarm routine is
77 #$d_alarm HAS_ALARM /**/
80 * This symbol indicates the C compiler can check for function attributes,
81 * such as printf formats. This is normally only supported by GNU cc.
83 #$d_attribut HASATTRIBUTE /**/
85 #define __attribute__(_arg_)
89 * This symbol is defined if the bcmp() routine is available to
90 * compare blocks of memory.
92 #$d_bcmp HAS_BCMP /**/
95 * This symbol is defined if the bcopy() routine is available to
96 * copy blocks of memory.
98 #$d_bcopy HAS_BCOPY /**/
101 * This symbol is defined if the bzero() routine is available to
102 * set a memory block to 0.
104 #$d_bzero HAS_BZERO /**/
107 * This symbol, if defined, indicates that the chown routine is
110 #$d_chown HAS_CHOWN /**/
113 * This symbol, if defined, indicates that the chroot routine is
116 #$d_chroot HAS_CHROOT /**/
119 * This symbol, if defined, indicates that the chsize routine is available
120 * to truncate files. You might need a -lx to get this routine.
122 #$d_chsize HAS_CHSIZE /**/
125 * This symbol, if defined, indicates that this C compiler knows about
126 * the const type. There is no need to actually test for that symbol
127 * within your programs. The mere use of the "const" keyword will
128 * trigger the necessary tests.
130 #$d_const HASCONST /**/
136 * This symbol, if defined, indicates that the crypt routine is available
137 * to encrypt passwords and the like.
139 #$d_crypt HAS_CRYPT /**/
142 * This symbol, if defined, indicates that the cuserid routine is
143 * available to get character login names.
145 #$d_cuserid HAS_CUSERID /**/
148 * This symbol, if defined, indicates that this system's <float.h>
149 * or <limits.h> defines the symbol DBL_DIG, which is the number
150 * of significant digits in a double precision number. If this
151 * symbol is not defined, a guess of 15 is usually pretty good.
153 #$d_dbl_dig HAS_DBL_DIG /* */
156 * This symbol, if defined, indicates that the difftime routine is
159 #$d_difftime HAS_DIFFTIME /**/
162 * This symbol, if defined, indicates that the dlerror routine is
163 * available to return a string describing the last error that
164 * occurred from a call to dlopen(), dlclose() or dlsym().
166 #$d_dlerror HAS_DLERROR /**/
168 /* SETUID_SCRIPTS_ARE_SECURE_NOW:
169 * This symbol, if defined, indicates that the bug that prevents
170 * setuid scripts from being secure is not present in this kernel.
173 * This symbol, if defined, indicates that the C program should
174 * check the script that it is executing for setuid/setgid bits, and
175 * attempt to emulate setuid/setgid on systems that have disabled
176 * setuid #! scripts because the kernel can't do it securely.
177 * It is up to the package designer to make sure that this emulation
178 * is done securely. Among other things, it should do an fstat on
179 * the script it just opened to make sure it really is a setuid/setgid
180 * script, it should make sure the arguments passed correspond exactly
181 * to the argument on the #! line, and it should not trust any
182 * subprocesses to which it must pass the filename rather than the
183 * file descriptor of the script to be executed.
185 #$d_suidsafe SETUID_SCRIPTS_ARE_SECURE_NOW /**/
186 #$d_dosuid DOSUID /**/
189 * This symbol, if defined, indicates that the dup2 routine is
190 * available to duplicate file descriptors.
192 #$d_dup2 HAS_DUP2 /**/
195 * This symbol, if defined, indicates that the fchmod routine is available
196 * to change mode of opened files. If unavailable, use chmod().
198 #$d_fchmod HAS_FCHMOD /**/
201 * This symbol, if defined, indicates that the fchown routine is available
202 * to change ownership of opened files. If unavailable, use chown().
204 #$d_fchown HAS_FCHOWN /**/
207 * This symbol, if defined, indicates to the C program that
208 * the fcntl() function exists.
210 #$d_fcntl HAS_FCNTL /**/
213 * This symbol, if defined, indicates that the fgetpos routine is
214 * available to get the file position indicator, similar to ftell().
216 #$d_fgetpos HAS_FGETPOS /**/
219 * This symbol, if defined, indicates that the system supports filenames
220 * longer than 14 characters.
222 #$d_flexfnam FLEXFILENAMES /**/
225 * This symbol, if defined, indicates that the flock routine is
226 * available to do file locking.
228 #$d_flock HAS_FLOCK /**/
231 * This symbol, if defined, indicates that the fork routine is
234 #$d_fork HAS_FORK /**/
237 * This symbol, if defined, indicates that the fsetpos routine is
238 * available to set the file position indicator, similar to fseek().
240 #$d_fsetpos HAS_FSETPOS /**/
243 * This symbol, if defined, indicates that the gettimeofday() system
244 * call is available for a sub-second accuracy clock. Usually, the file
245 * <sys/resource.h> needs to be included (see I_SYS_RESOURCE).
246 * The type "Timeval" should be used to refer to "struct timeval".
248 #$d_gettimeod HAS_GETTIMEOFDAY /**/
249 #ifdef HAS_GETTIMEOFDAY
250 #define Timeval struct timeval /* Structure used by gettimeofday() */
254 * This symbol, if defined, indicates that the getgroups() routine is
255 * available to get the list of process groups. If unavailable, multiple
256 * groups are probably not supported.
258 #$d_getgrps HAS_GETGROUPS /**/
261 * This symbol, if defined, indicates that the C program may use the
262 * uname() routine to derive the host name. See also HAS_GETHOSTNAME
265 #$d_uname HAS_UNAME /**/
268 * This symbol, if defined, indicates that the getlogin routine is
269 * available to get the login name.
271 #$d_getlogin HAS_GETLOGIN /**/
274 * This symbol, if defined, indicates to the C program that
275 * the getpgid(pid) function is available to get the
278 #$d_getpgid HAS_GETPGID /**/
281 * This symbol, if defined, indicates that the getpgrp routine is
282 * available to get the current process group.
285 * This symbol, if defined, indicates that getpgrp needs one
286 * arguments whereas USG one needs none.
288 #$d_getpgrp HAS_GETPGRP /**/
289 #$d_bsdgetpgrp USE_BSD_GETPGRP /**/
292 * This symbol, if defined, indicates that the getpgrp2() (as in DG/UX)
293 * routine is available to get the current process group.
295 #$d_getpgrp2 HAS_GETPGRP2 /**/
298 * This symbol, if defined, indicates that the getppid routine is
299 * available to get the parent process ID.
301 #$d_getppid HAS_GETPPID /**/
304 * This symbol, if defined, indicates that the getpriority routine is
305 * available to get a process's priority.
307 #$d_getprior HAS_GETPRIORITY /**/
310 * This symbol, if defined, indicates that the htonl() routine (and
311 * friends htons() ntohl() ntohs()) are available to do network
312 * order byte swapping.
315 * This symbol, if defined, indicates that the htons() routine (and
316 * friends htonl() ntohl() ntohs()) are available to do network
317 * order byte swapping.
320 * This symbol, if defined, indicates that the ntohl() routine (and
321 * friends htonl() htons() ntohs()) are available to do network
322 * order byte swapping.
325 * This symbol, if defined, indicates that the ntohs() routine (and
326 * friends htonl() htons() ntohl()) are available to do network
327 * order byte swapping.
329 #$d_htonl HAS_HTONL /**/
330 #$d_htonl HAS_HTONS /**/
331 #$d_htonl HAS_NTOHL /**/
332 #$d_htonl HAS_NTOHS /**/
335 * This symbol, if defined, indicates to the C program that the
336 * inet_aton() function is available to parse IP address "dotted-quad"
339 #$d_inetaton HAS_INET_ATON /**/
342 * This symbol, if defined, indicates that the killpg routine is available
343 * to kill process groups. If unavailable, you probably should use kill
344 * with a negative process number.
346 #$d_killpg HAS_KILLPG /**/
349 * This symbol, if defined, indicates that the link routine is
350 * available to create hard links.
352 #$d_link HAS_LINK /**/
355 * This symbol, if defined, indicates that the localeconv routine is
356 * available for numeric and monetary formatting conventions.
358 #$d_locconv HAS_LOCALECONV /**/
361 * This symbol, if defined, indicates that the lockf routine is
362 * available to do file locking.
364 #$d_lockf HAS_LOCKF /**/
367 * This symbol, if defined, indicates that the lstat routine is
368 * available to do file stats on symbolic links.
370 #$d_lstat HAS_LSTAT /**/
373 * This symbol, if defined, indicates that the mblen routine is available
374 * to find the number of bytes in a multibye character.
376 #$d_mblen HAS_MBLEN /**/
379 * This symbol, if defined, indicates that the mbstowcs routine is
380 * available to covert a multibyte string into a wide character string.
382 #$d_mbstowcs HAS_MBSTOWCS /**/
385 * This symbol, if defined, indicates that the mbtowc routine is available
386 * to covert a multibyte to a wide character.
388 #$d_mbtowc HAS_MBTOWC /**/
391 * This symbol, if defined, indicates that the memcmp routine is available
392 * to compare blocks of memory.
394 #$d_memcmp HAS_MEMCMP /**/
397 * This symbol, if defined, indicates that the memcpy routine is available
398 * to copy blocks of memory.
400 #$d_memcpy HAS_MEMCPY /**/
403 * This symbol, if defined, indicates that the memmove routine is available
404 * to copy potentially overlapping blocks of memory. This should be used
405 * only when HAS_SAFE_BCOPY is not defined. If neither is there, roll your
408 #$d_memmove HAS_MEMMOVE /**/
411 * This symbol, if defined, indicates that the memset routine is available
412 * to set blocks of memory.
414 #$d_memset HAS_MEMSET /**/
417 * This symbol, if defined, indicates that the mkdir routine is available
418 * to create directories. Otherwise you should fork off a new process to
421 #$d_mkdir HAS_MKDIR /**/
424 * This symbol, if defined, indicates that the mkfifo routine is
425 * available to create FIFOs. Otherwise, mknod should be able to
426 * do it for you. However, if mkfifo is there, mknod might require
427 * super-user privileges which mkfifo will not.
429 #$d_mkfifo HAS_MKFIFO /**/
432 * This symbol, if defined, indicates that the mktime routine is
435 #$d_mktime HAS_MKTIME /**/
438 * This symbol, if defined, indicates that the entire msg*(2) library is
439 * supported (IPC mechanism based on message queues).
444 * This symbol, if defined, indicates that the nice routine is
447 #$d_nice HAS_NICE /**/
450 * This symbol, if defined, indicates that pathconf() is available
451 * to determine file-system related limits and options associated
452 * with a given filename.
455 * This symbol, if defined, indicates that pathconf() is available
456 * to determine file-system related limits and options associated
457 * with a given open file descriptor.
459 #$d_pathconf HAS_PATHCONF /**/
460 #$d_fpathconf HAS_FPATHCONF /**/
463 * This symbol, if defined, indicates that the pause routine is
464 * available to suspend a process until a signal is received.
466 #$d_pause HAS_PAUSE /**/
469 * This symbol, if defined, indicates that the pipe routine is
470 * available to create an inter-process channel.
472 #$d_pipe HAS_PIPE /**/
475 * This symbol, if defined, indicates that the poll routine is
476 * available to poll active file descriptors. You may safely
477 * include <poll.h> when this symbol is defined.
479 #$d_poll HAS_POLL /**/
482 * This symbol, if defined, indicates that the readdir routine is
483 * available to read directory entries. You may have to include
484 * <dirent.h>. See I_DIRENT.
486 #$d_readdir HAS_READDIR /**/
489 * This symbol, if defined, indicates that the seekdir routine is
490 * available. You may have to include <dirent.h>. See I_DIRENT.
492 #$d_seekdir HAS_SEEKDIR /**/
495 * This symbol, if defined, indicates that the telldir routine is
496 * available. You may have to include <dirent.h>. See I_DIRENT.
498 #$d_telldir HAS_TELLDIR /**/
501 * This symbol, if defined, indicates that the rewinddir routine is
502 * available. You may have to include <dirent.h>. See I_DIRENT.
504 #$d_rewinddir HAS_REWINDDIR /**/
507 * This symbol, if defined, indicates that the readlink routine is
508 * available to read the value of a symbolic link.
510 #$d_readlink HAS_READLINK /**/
513 * This symbol, if defined, indicates that the rename routine is available
514 * to rename files. Otherwise you should do the unlink(), link(), unlink()
517 #$d_rename HAS_RENAME /**/
520 * This symbol, if defined, indicates that the rmdir routine is
521 * available to remove directories. Otherwise you should fork off a
522 * new process to exec /bin/rmdir.
524 #$d_rmdir HAS_RMDIR /**/
527 * This symbol, if defined, indicates that the select routine is
528 * available to select active file descriptors. If the timeout field
529 * is used, <sys/time.h> may need to be included.
531 #$d_select HAS_SELECT /**/
534 * This symbol, if defined, indicates that the entire sem*(2) library is
540 * This symbol, if defined, indicates that the setegid routine is available
541 * to change the effective gid of the current program.
543 #$d_setegid HAS_SETEGID /**/
546 * This symbol, if defined, indicates that the seteuid routine is available
547 * to change the effective uid of the current program.
549 #$d_seteuid HAS_SETEUID /**/
552 * This symbol, if defined, indicates that the setlinebuf routine is
553 * available to change stderr or stdout from block-buffered or unbuffered
554 * to a line-buffered mode.
556 #$d_setlinebuf HAS_SETLINEBUF /**/
559 * This symbol, if defined, indicates that the setlocale routine is
560 * available to handle locale-specific ctype implementations.
562 #$d_setlocale HAS_SETLOCALE /**/
565 * This symbol, if defined, indicates that the setpgid(pid, gpid)
566 * routine is available to set process group ID.
568 #$d_setpgid HAS_SETPGID /**/
571 * This symbol, if defined, indicates that the setpgrp routine is
572 * available to set the current process group.
575 * This symbol, if defined, indicates that setpgrp needs two
576 * arguments whereas USG one needs none. See also HAS_SETPGID
577 * for a POSIX interface.
579 #$d_setpgrp HAS_SETPGRP /**/
580 #$d_bsdsetpgrp USE_BSD_SETPGRP /**/
583 * This symbol, if defined, indicates that the setpgrp2() (as in DG/UX)
584 * routine is available to set the current process group.
586 #$d_setpgrp2 HAS_SETPGRP2 /**/
589 * This symbol, if defined, indicates that the setpriority routine is
590 * available to set a process's priority.
592 #$d_setprior HAS_SETPRIORITY /**/
595 * This symbol, if defined, indicates that the setregid routine is
596 * available to change the real and effective gid of the current
600 * This symbol, if defined, indicates that the setresgid routine is
601 * available to change the real, effective and saved gid of the current
604 #$d_setregid HAS_SETREGID /**/
605 #$d_setresgid HAS_SETRESGID /**/
608 * This symbol, if defined, indicates that the setreuid routine is
609 * available to change the real and effective uid of the current
613 * This symbol, if defined, indicates that the setresuid routine is
614 * available to change the real, effective and saved uid of the current
617 #$d_setreuid HAS_SETREUID /**/
618 #$d_setresuid HAS_SETRESUID /**/
621 * This symbol, if defined, indicates that the setrgid routine is available
622 * to change the real gid of the current program.
624 #$d_setrgid HAS_SETRGID /**/
627 * This symbol, if defined, indicates that the setruid routine is available
628 * to change the real uid of the current program.
630 #$d_setruid HAS_SETRUID /**/
633 * This symbol, if defined, indicates that the setsid routine is
634 * available to set the process group ID.
636 #$d_setsid HAS_SETSID /**/
639 * This symbol, if defined, indicates that the entire shm*(2) library is
645 * This symbol holds the return type of the shmat() system call.
646 * Usually set to 'void *' or 'char *'.
648 /* HAS_SHMAT_PROTOTYPE:
649 * This symbol, if defined, indicates that the sys/shm.h includes
650 * a prototype for shmat(). Otherwise, it is up to the program to
651 * guess one. Shmat_t shmat _((int, Shmat_t, int)) is a good guess,
652 * but not always right so it should be emitted by the program only
653 * when HAS_SHMAT_PROTOTYPE is not defined to avoid conflicting defs.
655 #define Shmat_t $shmattype /**/
656 #$d_shmatprototype HAS_SHMAT_PROTOTYPE /**/
659 * This symbol, if defined, indicates that the BSD socket interface is
663 * This symbol, if defined, indicates that the BSD socketpair() call is
666 #$d_socket HAS_SOCKET /**/
667 #$d_sockpair HAS_SOCKETPAIR /**/
670 * This symbol is defined if this system has a stat structure declaring
671 * st_blksize and st_blocks.
673 #$d_statblks USE_STAT_BLOCKS /**/
676 * This symbol is defined to indicate that the strchr()/strrchr()
677 * functions are available for string searching. If not, try the
678 * index()/rindex() pair.
681 * This symbol is defined to indicate that the index()/rindex()
682 * functions are available for string searching.
684 #$d_strchr HAS_STRCHR /**/
685 #$d_index HAS_INDEX /**/
688 * This symbol, if defined, indicates that the strcoll routine is
689 * available to compare strings using collating information.
691 #$d_strcoll HAS_STRCOLL /**/
694 * This symbol, if defined, indicates that this C compiler knows how
695 * to copy structures. If undefined, you'll need to use a block copy
696 * routine of some sort instead.
698 #$d_strctcpy USE_STRUCT_COPY /**/
701 * This symbol, if defined, indicates that the strerror routine is
702 * available to translate error numbers to strings. See the writeup
703 * of Strerror() in this file before you try to define your own.
706 * This symbol, if defined, indicates that the sys_errlist array is
707 * available to translate error numbers to strings. The extern int
708 * sys_nerr gives the size of that table.
711 * This preprocessor symbol is defined as a macro if strerror() is
712 * not available to translate error numbers to strings but sys_errlist[]
715 #$d_strerror HAS_STRERROR /**/
716 #$d_syserrlst HAS_SYS_ERRLIST /**/
717 #define Strerror(e) $d_strerrm
720 * This symbol, if defined, indicates that the strtod routine is
721 * available to provide better numeric string conversion than atof().
723 #$d_strtod HAS_STRTOD /**/
726 * This symbol, if defined, indicates that the strtol routine is available
727 * to provide better numeric string conversion than atoi() and friends.
729 #$d_strtol HAS_STRTOL /**/
732 * This symbol, if defined, indicates that the strtoul routine is
733 * available to provide conversion of strings to unsigned long.
735 #$d_strtoul HAS_STRTOUL /**/
738 * This symbol, if defined, indicates that the strxfrm() routine is
739 * available to transform strings.
741 #$d_strxfrm HAS_STRXFRM /**/
744 * This symbol, if defined, indicates that the symlink routine is available
745 * to create symbolic links.
747 #$d_symlink HAS_SYMLINK /**/
750 * This symbol, if defined, indicates that the syscall routine is
751 * available to call arbitrary system calls. If undefined, that's tough.
753 #$d_syscall HAS_SYSCALL /**/
756 * This symbol, if defined, indicates that sysconf() is available
757 * to determine system related limits and options.
759 #$d_sysconf HAS_SYSCONF /**/
762 * This symbol, if defined, indicates that the system routine is
763 * available to issue a shell command.
765 #$d_system HAS_SYSTEM /**/
768 * This symbol, if defined, indicates that the tcgetpgrp routine is
769 * available to get foreground process group ID.
771 #$d_tcgetpgrp HAS_TCGETPGRP /**/
774 * This symbol, if defined, indicates that the tcsetpgrp routine is
775 * available to set foreground process group ID.
777 #$d_tcsetpgrp HAS_TCSETPGRP /**/
780 * This symbol holds the type returned by time(). It can be long,
781 * or time_t on BSD sites (in which case <sys/types.h> should be
784 #define Time_t $timetype /* Time type */
787 * This symbol, if defined, indicates that the times() routine exists.
788 * Note that this became obsolete on some systems (SUNOS), which now
789 * use getrusage(). It may be necessary to include <sys/times.h>.
791 #$d_times HAS_TIMES /**/
794 * This symbol, if defined, indicates that the truncate routine is
795 * available to truncate files.
797 #$d_truncate HAS_TRUNCATE /**/
800 * This symbol, if defined, indicates that the tzname[] array is
801 * available to access timezone names.
803 #$d_tzname HAS_TZNAME /**/
806 * This symbol, if defined, indicates that the umask routine is
807 * available to set and get the value of the file creation mask.
809 #$d_umask HAS_UMASK /**/
812 * This symbol, if defined, indicates that vfork() exists.
814 #$d_vfork HAS_VFORK /**/
817 * This symbol, if defined, indicates that this C compiler knows about
818 * the volatile declaration.
820 #$d_volatile HASVOLATILE /**/
826 * This symbol, if defined, indicates that wait4() exists.
828 #$d_wait4 HAS_WAIT4 /**/
831 * This symbol, if defined, indicates that the waitpid routine is
832 * available to wait for child process.
834 #$d_waitpid HAS_WAITPID /**/
837 * This symbol, if defined, indicates that the wcstombs routine is
838 * available to convert wide character strings to multibyte strings.
840 #$d_wcstombs HAS_WCSTOMBS /**/
843 * This symbol, if defined, indicates that the wctomb routine is available
844 * to covert a wide character to a multibyte.
846 #$d_wctomb HAS_WCTOMB /**/
849 * This symbol holds the type used to declare file positions in libc.
850 * It can be fpos_t, long, uint, etc... It may be necessary to include
851 * <sys/types.h> to get any typedef'ed information.
853 #define Fpos_t $fpostype /* File position type */
856 * This symbol holds the return type of getgid() and the type of
857 * argument to setrgid() and related functions. Typically,
858 * it is the type of group ids in the kernel. It can be int, ushort,
859 * uid_t, etc... It may be necessary to include <sys/types.h> to get
860 * any typedef'ed information.
862 #define Gid_t $gidtype /* Type for getgid(), etc... */
865 * This symbol, if defined, indicates that <dbm.h> exists and should
869 * This symbol, if defined, indicates that <rpcsvc/dbm.h> exists and
870 * should be included.
873 #$i_rpcsvcdbm I_RPCSVC_DBM /**/
876 * This symbol, if defined, indicates to the C program that it should
877 * include <dirent.h>. Using this symbol also triggers the definition
878 * of the Direntry_t define which ends up being 'struct dirent' or
879 * 'struct direct' depending on the availability of <dirent.h>.
882 * This symbol, if defined, indicates to the C program that the length
883 * of directory entry names is provided by a d_namlen field. Otherwise
884 * you need to do strlen() on the d_name field.
887 * This symbol is set to 'struct direct' or 'struct dirent' depending on
888 * whether dirent is available or not. You should use this pseudo type to
889 * portably declare your directory entries.
891 #$i_dirent I_DIRENT /**/
892 #$d_dirnamlen DIRNAMLEN /**/
893 #define Direntry_t $direntrytype
896 * This symbol, if defined, indicates that <dlfcn.h> exists and should
899 #$i_dlfcn I_DLFCN /**/
902 * This manifest constant tells the C program to include <fcntl.h>.
904 #$i_fcntl I_FCNTL /**/
907 * This symbol, if defined, indicates to the C program that it should
908 * include <float.h> to get definition of symbols like DBL_MAX or
909 * DBL_MIN, i.e. machine dependent floating point values.
911 #$i_float I_FLOAT /**/
914 * This symbol, if defined, indicates to the C program that it should
920 * This symbol, if defined, indicates to the C program that it should
921 * include <limits.h> to get definition of symbols like WORD_BIT or
922 * LONG_MAX, i.e. machine dependant limitations.
924 #$i_limits I_LIMITS /**/
927 * This symbol, if defined, indicates to the C program that it should
928 * include <locale.h>.
930 #$i_locale I_LOCALE /**/
933 * This symbol, if defined, indicates to the C program that it should
939 * This symbol, if defined, indicates to the C program that it should
940 * include <memory.h>.
942 #$i_memory I_MEMORY /**/
945 * This symbol, if defined, indicates that <ndbm.h> exists and should
951 * This symbol, if defined, indicates that <net/errno.h> exists and
952 * should be included.
954 #$i_neterrno I_NET_ERRNO /**/
957 * This symbol, if defined, indicates to the C program that it should
958 * include <netinet/in.h>. Otherwise, you may try <sys/in.h>.
960 #$i_niin I_NETINET_IN /**/
963 * This symbol, if defined, indicates to the C program that it should
967 * This symbol, if defined, indicates to the C program that struct passwd
971 * This symbol, if defined, indicates to the C program that struct passwd
975 * This symbol, if defined, indicates to the C program that struct passwd
976 * contains pw_change.
979 * This symbol, if defined, indicates to the C program that struct passwd
983 * This symbol, if defined, indicates to the C program that struct passwd
984 * contains pw_expire.
987 * This symbol, if defined, indicates to the C program that struct passwd
988 * contains pw_comment.
991 #$d_pwquota PWQUOTA /**/
993 #$d_pwchange PWCHANGE /**/
994 #$d_pwclass PWCLASS /**/
995 #$d_pwexpire PWEXPIRE /**/
996 #$d_pwcomment PWCOMMENT /**/
999 * This symbol, if defined, indicates to the C program that it should
1002 #$i_sfio I_SFIO /**/
1005 * This symbol, if defined, indicates that <stddef.h> exists and should
1008 #$i_stddef I_STDDEF /**/
1011 * This symbol, if defined, indicates that <stdlib.h> exists and should
1014 #$i_stdlib I_STDLIB /**/
1017 * This symbol, if defined, indicates to the C program that it should
1018 * include <string.h> (USG systems) instead of <strings.h> (BSD systems).
1020 #$i_string I_STRING /**/
1023 * This symbol, if defined, indicates to the C program that it should
1024 * include <sys/dir.h>.
1026 #$i_sysdir I_SYS_DIR /**/
1029 * This symbol, if defined, indicates to the C program that it should
1030 * include <sys/file.h> to get definition of R_OK and friends.
1032 #$i_sysfile I_SYS_FILE /**/
1035 * This symbol, if defined, indicates that <sys/ioctl.h> exists and should
1036 * be included. Otherwise, include <sgtty.h> or <termio.h>.
1038 #$i_sysioctl I_SYS_IOCTL /**/
1041 * This symbol, if defined, indicates to the C program that it should
1042 * include <sys/ndir.h>.
1044 #$i_sysndir I_SYS_NDIR /**/
1047 * This symbol, if defined, indicates to the C program that it should
1048 * include <sys/param.h>.
1050 #$i_sysparam I_SYS_PARAM /**/
1053 * This symbol, if defined, indicates to the C program that it should
1054 * include <sys/resource.h>.
1056 #$i_sysresrc I_SYS_RESOURCE /**/
1059 * This symbol, if defined, indicates to the C program that it should
1060 * include <sys/select.h> in order to get definition of struct timeval.
1062 #$i_sysselct I_SYS_SELECT /**/
1065 * This symbol, if defined, indicates to the C program that it should
1066 * include <sys/stat.h>.
1068 #$i_sysstat I_SYS_STAT /**/
1071 * This symbol, if defined, indicates to the C program that it should
1072 * include <sys/times.h>.
1074 #$i_systimes I_SYS_TIMES /**/
1077 * This symbol, if defined, indicates to the C program that it should
1078 * include <sys/types.h>.
1080 #$i_systypes I_SYS_TYPES /**/
1083 * This symbol, if defined, indicates to the C program that it should
1084 * include <sys/un.h> to get UNIX domain socket definitions.
1086 #$i_sysun I_SYS_UN /**/
1089 * This symbol, if defined, indicates to the C program that it should
1090 * include <sys/wait.h>.
1092 #$i_syswait I_SYS_WAIT /**/
1095 * This symbol, if defined, indicates that the program should include
1096 * <termio.h> rather than <sgtty.h>. There are also differences in
1097 * the ioctl() calls that depend on the value of this symbol.
1100 * This symbol, if defined, indicates that the program should include
1101 * the POSIX termios.h rather than sgtty.h or termio.h.
1102 * There are also differences in the ioctl() calls that depend on the
1103 * value of this symbol.
1106 * This symbol, if defined, indicates that the program should include
1107 * <sgtty.h> rather than <termio.h>. There are also differences in
1108 * the ioctl() calls that depend on the value of this symbol.
1110 #$i_termio I_TERMIO /**/
1111 #$i_termios I_TERMIOS /**/
1112 #$i_sgtty I_SGTTY /**/
1115 * This symbol, if defined, indicates to the C program that it should
1116 * include <unistd.h>.
1118 #$i_unistd I_UNISTD /**/
1121 * This symbol, if defined, indicates to the C program that it should
1122 * include <utime.h>.
1124 #$i_utime I_UTIME /**/
1127 * This symbol, if defined, indicates to the C program that it should
1128 * include <values.h> to get definition of symbols like MINFLOAT or
1129 * MAXLONG, i.e. machine dependant limitations. Probably, you
1130 * should use <limits.h> instead, if it is available.
1132 #$i_values I_VALUES /**/
1135 * This symbol, if defined, indicates that <stdarg.h> exists and should
1139 * This symbol, if defined, indicates to the C program that it should
1140 * include <varargs.h>.
1142 #$i_stdarg I_STDARG /**/
1143 #$i_varargs I_VARARGS /**/
1146 * This symbol, if defined, indicates to the C program that it should
1149 #$i_vfork I_VFORK /**/
1152 * This symbol holds the type used to declare offsets in the kernel.
1153 * It can be int, long, off_t, etc... It may be necessary to include
1154 * <sys/types.h> to get any typedef'ed information.
1156 #define Off_t $lseektype /* <offset> type */
1159 * This variable contains the return type of free(). It is usually
1160 * void, but occasionally int.
1163 * This symbol is the type of pointer returned by malloc and realloc.
1165 #define Malloc_t $malloctype /**/
1166 #define Free_t $freetype /**/
1169 * This symbol, if defined, indicates that we're using our own malloc.
1171 #$d_mymalloc MYMALLOC /**/
1174 * This symbol holds the type used to declare file modes
1175 * for systems calls. It is usually mode_t, but may be
1176 * int or unsigned short. It may be necessary to include <sys/types.h>
1177 * to get any typedef'ed information.
1179 #define Mode_t $modetype /* file mode parameter for system calls */
1182 * This symbol holds the type used to declare process ids in the kernel.
1183 * It can be int, uint, pid_t, etc... It may be necessary to include
1184 * <sys/types.h> to get any typedef'ed information.
1186 #define Pid_t $pidtype /* PID type */
1189 * If defined, this macro indicates that the C compiler can handle
1190 * function prototypes.
1193 * This macro is used to declare function parameters for folks who want
1194 * to make declarations with prototypes using a different style than
1195 * the above macros. Use double parentheses. For example:
1197 * int main _((int argc, char *argv[]));
1199 #$prototype CAN_PROTOTYPE /**/
1200 #ifdef CAN_PROTOTYPE
1201 #define _(args) args
1207 * This symbol contains the full pathname to the shell used on this
1208 * on this system to execute Bourne shell scripts. Usually, this will be
1209 * /bin/sh, though it's possible that some systems will have /bin/ksh,
1210 * /bin/pdksh, /bin/ash, /bin/bash, or even something such as
1213 #define SH_PATH "$sh" /**/
1216 * This symbol holds the type used to declare length parameters
1217 * for string functions. It is usually size_t, but may be
1218 * unsigned long, int, etc. It may be necessary to include
1219 * <sys/types.h> to get any typedef'ed information.
1221 #define Size_t $sizetype /* length paramater for string functions */
1224 * This symbol is defined to be the type of char used in stdio.h.
1225 * It has the values "unsigned char" or "char".
1227 #define STDCHAR $stdchar /**/
1230 * This symbol holds the type used to declare user ids in the kernel.
1231 * It can be int, ushort, uid_t, etc... It may be necessary to include
1232 * <sys/types.h> to get any typedef'ed information.
1234 #define Uid_t $uidtype /* UID type */
1237 * This symbol indicates how much support of the void type is given by this
1238 * compiler. What various bits mean:
1240 * 1 = supports declaration of void
1241 * 2 = supports arrays of pointers to functions returning void
1242 * 4 = supports comparisons between pointers to void functions and
1243 * addresses of void functions
1244 * 8 = suports declaration of generic void pointers
1246 * The package designer should define VOIDUSED to indicate the requirements
1247 * of the package. This can be done either by #defining VOIDUSED before
1248 * including config.h, or by defining defvoidused in Myinit.U. If the
1249 * latter approach is taken, only those flags will be tested. If the
1250 * level of void support necessary is not present, defines void to int.
1253 #define VOIDUSED $defvoidused
1255 #define VOIDFLAGS $voidflags
1256 #if (VOIDFLAGS & VOIDUSED) != VOIDUSED
1257 #define void int /* is void to be avoided? */
1258 #define M_VOID /* Xenix strikes again */
1262 * This symbol contains the number of bytes required to align a
1263 * double. Usual values are 2, 4 and 8.
1264 * On NeXT starting with 3.2, you can build "Fat" Multiple Architecture
1265 * Binaries (MAB) for targets with varying alignment. This only matters
1266 * for perl, where the config.h can be generated and installed on one
1267 * system, and used by a different architecture to build an extension.
1268 * The default is eight, for safety.
1270 #define MEM_ALIGNBYTES $alignbytes /**/
1273 * This symbol holds the hexadecimal constant defined in byteorder,
1274 * i.e. 0x1234 or 0x4321, etc...
1275 * On NeXT 3.2 (and greater), you can build "Fat" Multiple Architecture
1276 * Binaries (MAB) on either big endian or little endian machines.
1277 * The endian-ness is available at compile-time. This only matters
1278 * for perl, where the config.h can be generated and installed on
1279 * one system, and used by a different architecture to build an
1280 * extension. Older versions of NeXT that might not have
1281 * defined either *_ENDIAN__ were all on Motorola 680x0 series,
1282 * so the default case (for NeXT) is big endian to catch them.
1283 * This might matter for NeXT 3.0.
1286 #define BYTEORDER 0x$byteorder /* large digits for MSB */
1288 #ifdef __LITTLE_ENDIAN__
1289 #define BYTEORDER 0x1234
1290 #else /* __BIG_ENDIAN__ */
1291 #define BYTEORDER 0x4321
1292 #endif /* ENDIAN CHECK */
1296 * This symbol is defined if the C compiler can cast negative
1297 * or large floating point numbers to 32-bit ints.
1299 #$d_casti32 CASTI32 /**/
1302 * This symbol is defined if the C compiler can cast negative
1303 * numbers to unsigned longs, ints and shorts.
1306 * This symbol contains flags that say what difficulties the compiler
1307 * has casting odd floating values to unsigned long:
1309 * 1 = couldn't cast < 0
1310 * 2 = couldn't cast >= 0x80000000
1311 * 4 = couldn't cast in argument expression list
1313 #$d_castneg CASTNEGFLOAT /**/
1314 #define CASTFLAGS $castflags /**/
1317 * This symbol, if defined, indicates that the closedir() routine
1318 * does not return a value.
1320 #$d_void_closedir VOID_CLOSEDIR /**/
1323 * This preprocessor macro is defined to convert a floating point
1324 * number to a string without a trailing decimal point. This
1325 * emulates the behavior of sprintf("%g"), but is sometimes much more
1326 * efficient. If gconvert() is not available, but gcvt() drops the
1327 * trailing decimal point, then gcvt() is used. If all else fails,
1328 * a macro using sprintf("%g") is used. Arguments for the Gconvert
1329 * macro are: value, number of digits, whether trailing zeros should
1330 * be retained, and the output buffer.
1331 * Possible values are:
1332 * d_Gconvert='gconvert((x),(n),(t),(b))'
1333 * d_Gconvert='gcvt((x),(n),(b))'
1334 * d_Gconvert='sprintf((b),"%.*g",(n),(x))'
1335 * The last two assume trailing zeros should not be kept.
1337 #define Gconvert(x,n,t,b) $d_Gconvert
1340 * This symbol, if defined, indicates to the C program that
1341 * the GNU C library is being used.
1343 #$d_gnulibc HAS_GNULIBC /**/
1345 * This manifest constant lets the C program know that isascii
1348 #$d_isascii HAS_ISASCII /**/
1351 * This manifest constant lets the C program know that the three
1352 * argument form of open(2) is available.
1354 #$d_open3 HAS_OPEN3 /**/
1357 * This symbol, if defined, indicates that the bcopy routine is available
1358 * to copy potentially overlapping memory blocks. Otherwise you should
1359 * probably use memmove() or memcpy(). If neither is defined, roll your
1362 #$d_safebcpy HAS_SAFE_BCOPY /**/
1365 * This symbol, if defined, indicates that the memcpy routine is available
1366 * to copy potentially overlapping memory blocks. Otherwise you should
1367 * probably use memmove() or memcpy(). If neither is defined, roll your
1370 #$d_safemcpy HAS_SAFE_MEMCPY /**/
1373 * This symbol, if defined, indicates that the memcmp routine is available
1374 * and can be used to compare relative magnitudes of chars with their high
1375 * bits set. If it is not defined, roll your own version.
1377 #$d_sanemcmp HAS_SANE_MEMCMP /**/
1380 * This symbol, if defined, indicates that Vr4's sigaction() routine
1383 #$d_sigaction HAS_SIGACTION /**/
1386 * This is the buffer type to be used with Sigsetjmp and Siglongjmp.
1389 * This macro is used in the same way as sigsetjmp(), but will invoke
1390 * traditional setjmp() if sigsetjmp isn't available.
1391 * See HAS_SIGSETJMP.
1394 * This macro is used in the same way as siglongjmp(), but will invoke
1395 * traditional longjmp() if siglongjmp isn't available.
1396 * See HAS_SIGSETJMP.
1398 #$d_sigsetjmp HAS_SIGSETJMP /**/
1399 #ifdef HAS_SIGSETJMP
1400 #define Sigjmp_buf sigjmp_buf
1401 #define Sigsetjmp(buf,save_mask) sigsetjmp((buf),(save_mask))
1402 #define Siglongjmp(buf,retval) siglongjmp((buf),(retval))
1404 #define Sigjmp_buf jmp_buf
1405 #define Sigsetjmp(buf,save_mask) setjmp((buf))
1406 #define Siglongjmp(buf,retval) longjmp((buf),(retval))
1410 * This symbol is defined if the _ptr and _cnt fields (or similar)
1411 * of the stdio FILE structure can be used to access the stdio buffer
1412 * for a file handle. If this is defined, then the FILE_ptr(fp)
1413 * and FILE_cnt(fp) macros will also be defined and should be used
1414 * to access these fields.
1417 * This macro is used to access the _ptr field (or equivalent) of the
1418 * FILE structure pointed to by its argument. This macro will always be
1419 * defined if USE_STDIO_PTR is defined.
1421 /* STDIO_PTR_LVALUE:
1422 * This symbol is defined if the FILE_ptr macro can be used as an
1426 * This macro is used to access the _cnt field (or equivalent) of the
1427 * FILE structure pointed to by its argument. This macro will always be
1428 * defined if USE_STDIO_PTR is defined.
1430 /* STDIO_CNT_LVALUE:
1431 * This symbol is defined if the FILE_cnt macro can be used as an
1434 #$d_stdstdio USE_STDIO_PTR /**/
1435 #ifdef USE_STDIO_PTR
1436 #define FILE_ptr(fp) $stdio_ptr
1437 #$d_stdio_ptr_lval STDIO_PTR_LVALUE /**/
1438 #define FILE_cnt(fp) $stdio_cnt
1439 #$d_stdio_cnt_lval STDIO_CNT_LVALUE /**/
1443 * This symbol is defined if the _base field (or similar) of the
1444 * stdio FILE structure can be used to access the stdio buffer for
1445 * a file handle. If this is defined, then the FILE_base(fp) macro
1446 * will also be defined and should be used to access this field.
1447 * Also, the FILE_bufsiz(fp) macro will be defined and should be used
1448 * to determine the number of bytes in the buffer. USE_STDIO_BASE
1449 * will never be defined unless USE_STDIO_PTR is.
1452 * This macro is used to access the _base field (or equivalent) of the
1453 * FILE structure pointed to by its argument. This macro will always be
1454 * defined if USE_STDIO_BASE is defined.
1457 * This macro is used to determine the number of bytes in the I/O
1458 * buffer pointed to by _base field (or equivalent) of the FILE
1459 * structure pointed to its argument. This macro will always be defined
1460 * if USE_STDIO_BASE is defined.
1462 #$d_stdiobase USE_STDIO_BASE /**/
1463 #ifdef USE_STDIO_BASE
1464 #define FILE_base(fp) $stdio_base
1465 #define FILE_bufsiz(fp) $stdio_bufsiz
1469 * This symbol, if defined, indicates that the vprintf routine is available
1470 * to printf with a pointer to an argument list. If unavailable, you
1471 * may need to write your own, probably in terms of _doprnt().
1473 /* USE_CHAR_VSPRINTF:
1474 * This symbol is defined if this system has vsprintf() returning type
1475 * (char*). The trend seems to be to declare it as "int vsprintf()". It
1476 * is up to the package author to declare vsprintf correctly based on the
1479 #$d_vprintf HAS_VPRINTF /**/
1480 #$d_charvspr USE_CHAR_VSPRINTF /**/
1483 * This symbol contains the size of a double, so that the C preprocessor
1484 * can make decisions based on it.
1486 #define DOUBLESIZE $doublesize /**/
1489 * This symbol, if defined, indicates to the C program that it should
1493 * This symbol, if defined, indicates to the C program that it should
1494 * include <sys/time.h>.
1496 /* I_SYS_TIME_KERNEL:
1497 * This symbol, if defined, indicates to the C program that it should
1498 * include <sys/time.h> with KERNEL defined.
1500 #$i_time I_TIME /**/
1501 #$i_systime I_SYS_TIME /**/
1502 #$i_systimek I_SYS_TIME_KERNEL /**/
1505 * This symbol contains the value of sizeof(int) so that the C
1506 * preprocessor can make decisions based on it.
1509 * This symbol contains the value of sizeof(long) so that the C
1510 * preprocessor can make decisions based on it.
1513 * This symbol contains the value of sizeof(short) so that the C
1514 * preprocessor can make decisions based on it.
1516 #define INTSIZE $intsize /**/
1517 #define LONGSIZE $longsize /**/
1518 #define SHORTSIZE $shortsize /**/
1521 * This symbol is to be used during open() or fcntl(F_SETFL) to turn on
1522 * non-blocking I/O for the file descriptor. Note that there is no way
1523 * back, i.e. you cannot turn it blocking again this way. If you wish to
1524 * alternatively switch between blocking and non-blocking, use the
1525 * ioctl(FIOSNBIO) call instead, but that is not supported by all devices.
1528 * This symbol holds the errno error code set by read() when no data was
1529 * present on the non-blocking file descriptor.
1532 * This symbol holds the return code from read() when no data is present
1533 * on the non-blocking file descriptor. Be careful! If EOF_NONBLOCK is
1534 * not defined, then you can't distinguish between no data and EOF by
1535 * issuing a read(). You'll have to find another way to tell for sure!
1538 * This symbol, if defined, indicates to the C program that a read() on
1539 * a non-blocking file descriptor will return 0 on EOF, and not the value
1540 * held in RD_NODATA (-1 usually, in that case!).
1542 #define VAL_O_NONBLOCK $o_nonblock
1543 #define VAL_EAGAIN $eagain
1544 #define RD_NODATA $rd_nodata
1545 #$d_eofnblk EOF_NONBLOCK
1548 * This symbol contains the size of a pointer, so that the C preprocessor
1549 * can make decisions based on it. It will be sizeof(void *) if
1550 * the compiler supports (void *); otherwise it will be
1553 #define PTRSIZE $ptrsize /**/
1556 * This symbol contains the number of bits of random number the rand()
1557 * function produces. Usual values are 15, 16, and 31.
1559 #define RANDBITS $randbits /**/
1562 * This symbol holds the type used by functions that return
1563 * a count of bytes or an error condition. It must be a signed type.
1564 * It is usually ssize_t, but may be long or int, etc.
1565 * It may be necessary to include <sys/types.h> or <unistd.h>
1566 * to get any typedef'ed information.
1567 * We will pick a type such that sizeof(SSize_t) == sizeof(Size_t).
1569 #define SSize_t $ssizetype /* signed count of bytes */
1572 * This symbol contains the name of the operating system, as determined
1573 * by Configure. You shouldn't rely on it too much; the specific
1574 * feature tests from Configure are generally more reliable.
1576 #define OSNAME "$osname" /**/
1579 * This variable, if defined, holds the name of the directory in
1580 * which the user wants to put architecture-dependent public
1581 * library files for $package. It is most often a local directory
1582 * such as /usr/local/lib. Programs using this variable must be
1583 * prepared to deal with filename expansion. If ARCHLIB is the
1584 * same as PRIVLIB, it is not defined, since presumably the
1585 * program already searches PRIVLIB.
1588 * This symbol contains the ~name expanded version of ARCHLIB, to be used
1589 * in programs that are not prepared to deal with ~ expansion at run-time.
1591 #$d_archlib ARCHLIB "$archlib" /**/
1592 #$d_archlib ARCHLIB_EXP "$archlibexp" /**/
1595 * This macro catenates 2 tokens together.
1598 * This macro surrounds its token with double quotes.
1601 #define CAT2(a,b)a/**/b
1602 #define STRINGIFY(a)"a"
1603 /* If you can get stringification with catify, tell me how! */
1605 #if $cpp_stuff == 42
1606 #define CAT2(a,b)a ## b
1607 #define StGiFy(a)# a
1608 #define STRINGIFY(a)StGiFy(a)
1610 #if $cpp_stuff != 1 && $cpp_stuff != 42
1611 #include "Bletch: How does this C preprocessor catenate tokens?"
1615 * This symbol, if defined, contains the full pathname of csh.
1617 #$d_csh HAS_CSH /**/
1619 #define CSH "$full_csh" /**/
1623 * This symbol, if defined, indicates that the endhostent() routine is
1624 * available to close whatever was being used for host queries.
1626 #$d_endhent HAS_ENDHOSTENT /**/
1629 * This symbol, if defined, indicates that the endnetent() routine is
1630 * available to close whatever was being used for network queries.
1632 #$d_endnent HAS_ENDNETENT /**/
1635 * This symbol, if defined, indicates that the endprotoent() routine is
1636 * available to close whatever was being used for protocol queries.
1638 #$d_endpent HAS_ENDPROTOENT /**/
1641 * This symbol, if defined, indicates that the endservent() routine is
1642 * available to close whatever was being used for service queries.
1644 #$d_endsent HAS_ENDSERVENT /**/
1646 /* HAS_GETHOSTBYADDR:
1647 * This symbol, if defined, indicates that the gethostbyaddr() routine is
1648 * available to look up hosts by their IP addresses.
1650 #$d_gethbyaddr HAS_GETHOSTBYADDR /**/
1652 /* HAS_GETHOSTBYNAME:
1653 * This symbol, if defined, indicates that the gethostbyname() routine is
1654 * available to look up host names in some data base or other.
1656 #$d_gethbyname HAS_GETHOSTBYNAME /**/
1659 * This symbol, if defined, indicates that the gethostent() routine is
1660 * available to look up host names in some data base or another.
1662 #$d_gethent HAS_GETHOSTENT /**/
1664 /* HAS_GETNETBYADDR:
1665 * This symbol, if defined, indicates that the getnetbyaddr() routine is
1666 * available to look up networks by their IP addresses.
1668 #$d_getnbyaddr HAS_GETNETBYADDR /**/
1670 /* HAS_GETNETBYNAME:
1671 * This symbol, if defined, indicates that the getnetbyname() routine is
1672 * available to look up networks by their names.
1674 #$d_getnbyname HAS_GETNETBYNAME /**/
1677 * This symbol, if defined, indicates that the getnetent() routine is
1678 * available to look up network names in some data base or another.
1680 #$d_getnent HAS_GETNETENT /**/
1683 * This symbol, if defined, indicates that the getprotoent() routine is
1684 * available to look up protocols in some data base or another.
1686 #$d_getpent HAS_GETPROTOENT /**/
1688 /* HAS_GETPROTOBYNAME:
1689 * This symbol, if defined, indicates that the getprotobyname()
1690 * routine is available to look up protocols by their name.
1692 /* HAS_GETPROTOBYNUMBER:
1693 * This symbol, if defined, indicates that the getprotobynumber()
1694 * routine is available to look up protocols by their number.
1696 #$d_getpbyname HAS_GETPROTOBYNAME /**/
1697 #$d_getpbynumber HAS_GETPROTOBYNUMBER /**/
1700 * This symbol, if defined, indicates that the getservent() routine is
1701 * available to look up network services in some data base or another.
1703 #$d_getsent HAS_GETSERVENT /**/
1705 /* HAS_GETSERVBYNAME:
1706 * This symbol, if defined, indicates that the getservbyname()
1707 * routine is available to look up services by their name.
1709 /* HAS_GETSERVBYPORT:
1710 * This symbol, if defined, indicates that the getservbyport()
1711 * routine is available to look up services by their port.
1713 #$d_getsbyname HAS_GETSERVBYNAME /**/
1714 #$d_getsbyport HAS_GETSERVBYPORT /**/
1717 * This symbol will be defined if the C compiler supports long
1721 * This symbol contains the size of a long double, so that the
1722 * C preprocessor can make decisions based on it. It is only
1723 * defined if the system supports long doubles.
1725 #$d_longdbl HAS_LONG_DOUBLE /**/
1726 #ifdef HAS_LONG_DOUBLE
1727 #define LONG_DOUBLESIZE $longdblsize /**/
1731 * This symbol, if defined, indicates that the mkstemp routine is
1732 * available to create and open a unique temporary file.
1734 #$d_mkstemp HAS_MKSTEMP /**/
1737 * This symbol, if defined, indicates that the setgroups() routine is
1738 * available to set the list of process groups. If unavailable, multiple
1739 * groups are probably not supported.
1741 #$d_setgrps HAS_SETGROUPS /**/
1744 * This symbol, if defined, indicates that the sethostent() routine is
1747 #$d_sethent HAS_SETHOSTENT /**/
1750 * This symbol, if defined, indicates that the setnetent() routine is
1753 #$d_setnent HAS_SETNETENT /**/
1756 * This symbol, if defined, indicates that the setprotoent() routine is
1759 #$d_setpent HAS_SETPROTOENT /**/
1762 * This symbol, if defined, indicates that the setservent() routine is
1765 #$d_setsent HAS_SETSERVENT /**/
1768 * This symbol, if defined, indicates that the setvbuf routine is
1769 * available to change buffering on an open stdio stream.
1770 * to a line-buffered mode.
1772 #$d_setvbuf HAS_SETVBUF /**/
1775 * This symbol's value is either "void" or "int", corresponding to the
1776 * appropriate return type of a signal handler. Thus, you can declare
1777 * a signal handler using "Signal_t (*handler)()", and define the
1778 * handler using "Signal_t handler(sig)".
1780 #define Signal_t $signal_t /* Signal handler's return type */
1783 * This symbol holds the type used for the second argument to
1784 * getgroups() and setgropus(). Usually, this is the same as
1785 * gidtype (gid_t) , but sometimes it isn't.
1786 * It can be int, ushort, uid_t, etc...
1787 * It may be necessary to include <sys/types.h> to get any
1788 * typedef'ed information. This is only required if you have
1789 * getgroups() or setgropus()..
1791 #if defined(HAS_GETGROUPS) || defined(HAS_SETGROUPS)
1792 #define Groups_t $groupstype /* Type for 2nd arg to [sg]etgroups() */
1796 * This symbol, if defined, indicates that <netdb.h> exists and
1797 * should be included.
1799 #$i_netdb I_NETDB /**/
1802 * This symbol contains the name of the private library for this package.
1803 * The library is private in the sense that it needn't be in anyone's
1804 * execution path, but it should be accessible by the world. The program
1805 * should be prepared to do ~ expansion.
1808 * This symbol contains the ~name expanded version of PRIVLIB, to be used
1809 * in programs that are not prepared to deal with ~ expansion at run-time.
1811 #define PRIVLIB "$privlib" /**/
1812 #define PRIVLIB_EXP "$privlibexp" /**/
1815 * This symbol contains a list of signal names in order of
1816 * signal number. This is intended
1817 * to be used as a static array initialization, like this:
1818 * char *sig_name[] = { SIG_NAME };
1819 * The signals in the list are separated with commas, and each signal
1820 * is surrounded by double quotes. There is no leading SIG in the signal
1821 * name, i.e. SIGQUIT is known as "QUIT".
1822 * Gaps in the signal numbers (up to NSIG) are filled in with NUMnn,
1823 * etc., where nn is the actual signal number (e.g. NUM37).
1824 * The signal number for sig_name[i] is stored in sig_num[i].
1825 * The last element is 0 to terminate the list with a NULL. This
1826 * corresponds to the 0 at the end of the sig_num list.
1829 * This symbol contains a list of signal numbers, in the same order as the
1830 * SIG_NAME list. It is suitable for static array initialization, as in:
1831 * int sig_num[] = { SIG_NUM };
1832 * The signals in the list are separated with commas, and the indices
1833 * within that list and the SIG_NAME list match, so it's easy to compute
1834 * the signal name from a number or vice versa at the price of a small
1835 * dynamic linear lookup.
1836 * Duplicates are allowed, but are moved to the end of the list.
1837 * The signal number corresponding to sig_name[i] is sig_number[i].
1838 * if (i < NSIG) then sig_number[i] == i.
1839 * The last element is 0, corresponding to the 0 at the end of
1840 * the sig_name list.
1842 #define SIG_NAME $sig_name_init /**/
1843 #define SIG_NUM $sig_num /**/
1846 * This symbol contains the name of the private library for this package.
1847 * The library is private in the sense that it needn't be in anyone's
1848 * execution path, but it should be accessible by the world. The program
1849 * should be prepared to do ~ expansion.
1850 * The standard distribution will put nothing in this directory.
1851 * Individual sites may place their own extensions and modules in
1855 * This symbol contains the ~name expanded version of SITEARCH, to be used
1856 * in programs that are not prepared to deal with ~ expansion at run-time.
1858 #define SITEARCH "$sitearch" /**/
1859 #define SITEARCH_EXP "$sitearchexp" /**/
1862 * This symbol contains the name of the private library for this package.
1863 * The library is private in the sense that it needn't be in anyone's
1864 * execution path, but it should be accessible by the world. The program
1865 * should be prepared to do ~ expansion.
1866 * The standard distribution will put nothing in this directory.
1867 * Individual sites may place their own extensions and modules in
1871 * This symbol contains the ~name expanded version of SITELIB, to be used
1872 * in programs that are not prepared to deal with ~ expansion at run-time.
1874 #define SITELIB "$sitelib" /**/
1875 #define SITELIB_EXP "$sitelibexp" /**/
1877 /* DLSYM_NEEDS_UNDERSCORE:
1878 * This symbol, if defined, indicates that we need to prepend an
1879 * underscore to the symbol name before calling dlsym(). This only
1880 * makes sense if you *have* dlsym, which we will presume is the
1881 * case if you're using dl_dlopen.xs.
1883 #$d_dlsymun DLSYM_NEEDS_UNDERSCORE /**/
1886 * This symbol, if defined, indicates that sfio should
1889 #$d_sfio USE_SFIO /**/
1891 /* USE_DYNAMIC_LOADING:
1892 * This symbol, if defined, indicates that dynamic loading of
1893 * some sort is available.
1895 #$usedl USE_DYNAMIC_LOADING /**/
1898 * This symbol contains the type of the prefix structure element
1899 * in the <db.h> header file. In older versions of DB, it was
1900 * int, while in newer ones it is u_int32_t.
1903 * This symbol contains the type of the prefix structure element
1904 * in the <db.h> header file. In older versions of DB, it was
1905 * int, while in newer ones it is size_t.
1907 #define DB_Hash_t $db_hashtype /**/
1908 #define DB_Prefix_t $db_prefixtype /**/
1911 * This variable contains the string to put in front of a perl
1912 * script to make sure (one hopes) that it runs with perl and not
1915 #define STARTPERL "$startperl" /**/
1918 * This symbol, if defined, indicates that the PerlIO abstraction should
1919 * be used throughout. If not defined, stdio should be
1920 * used in a fully backward compatible manner.
1922 #$useperlio USE_PERLIO /**/
1925 * This symbol holds the type used for the 1st argument
1926 * to gethostbyaddr().
1929 * This symbol holds the type used for the 2nd argument
1930 * to gethostbyaddr().
1933 * This symbol holds the type used for the argument to
1937 * This symbol holds the type used for the 1st argument to
1940 #define Netdb_host_t $netdb_host_type /**/
1941 #define Netdb_hlen_t $netdb_hlen_type /**/
1942 #define Netdb_name_t $netdb_name_type /**/
1943 #define Netdb_net_t $netdb_net_type /**/
1946 * This symbol holds the type used for the 2nd, 3rd, and 4th
1947 * arguments to select. Usually, this is 'fd_set *', if HAS_FD_SET
1948 * is defined, and 'int *' otherwise. This is only useful if you
1949 * have select(), of course.
1951 #define Select_fd_set_t $selecttype /**/
1954 * This symbol holds a string representing the architecture name.
1955 * It may be used to construct an architecture-dependant pathname
1956 * where library files may be held under a private library, for
1959 #define ARCHNAME "$archname" /**/
1961 /* HAS_PTHREAD_YIELD:
1962 * This symbol, if defined, indicates that the pthread_yield
1963 * routine is available to yield the execution of the current
1966 #$d_pthread_yield HAS_PTHREAD_YIELD /**/
1968 /* PTHREADS_CREATED_JOINABLE:
1969 * This symbol, if defined, indicates that pthreads are created
1970 * in the joinable (aka undetached) state.
1972 #$d_pthreads_created_joinable PTHREADS_CREATED_JOINABLE /**/
1975 * This symbol, if defined, indicates that Perl should
1976 * be built to use threads.
1978 /* OLD_PTHREADS_API:
1979 * This symbol, if defined, indicates that Perl should
1980 * be built to use the old draft POSIX threads API.
1982 #$usethreads USE_THREADS /**/
1983 #$d_oldpthreads OLD_PTHREADS_API /**/