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!' -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.3 1995/01/30 14:25:39 ram Exp $
31 /* Configuration time: $cf_time
32 * Configured by: $cf_by
33 * Target system: $myuname
40 * This symbol contains the number of bytes required to align a
41 * double. Usual values are 2, 4 and 8.
43 #define MEM_ALIGNBYTES $alignbytes /**/
46 * This symbol holds the path of the bin directory where the package will
47 * be installed. Program must be prepared to deal with ~name substitution.
49 #define BIN "$bin" /**/
52 * This symbol hold the hexadecimal constant defined in byteorder,
53 * i.e. 0x1234 or 0x4321, etc...
55 #define BYTEORDER 0x$byteorder /* large digits for MSB */
58 * This macro catenates 2 tokens together.
61 * This macro surrounds its token with double quotes.
64 #define CAT2(a,b)a/**/b
65 #define CAT3(a,b,c)a/**/b/**/c
66 #define CAT4(a,b,c,d)a/**/b/**/c/**/d
67 #define CAT5(a,b,c,d,e)a/**/b/**/c/**/d/**/e
68 #define STRINGIFY(a)"a"
69 /* If you can get stringification with catify, tell me how! */
72 #define CAT2(a,b)a ## b
73 #define CAT3(a,b,c)a ## b ## c
74 #define CAT4(a,b,c,d)a ## b ## c ## d
75 #define CAT5(a,b,c,d,e)a ## b ## c ## d ## e
77 #define STRINGIFY(a)StGiFy(a)
78 #define SCAT2(a,b)StGiFy(a) StGiFy(b)
79 #define SCAT3(a,b,c)StGiFy(a) StGiFy(b) StGiFy(c)
80 #define SCAT4(a,b,c,d)StGiFy(a) StGiFy(b) StGiFy(c) StGiFy(d)
81 #define SCAT5(a,b,c,d,e)StGiFy(a) StGiFy(b) StGiFy(c) StGiFy(d) StGiFy(e)
84 #include "Bletch: How does this C preprocessor catenate tokens?"
88 * This symbol contains the first part of the string which will invoke
89 * the C preprocessor on the standard input and produce to standard
90 * output. Typical value of "cc -E" or "/lib/cpp", but it can also
91 * call a wrapper. See CPPRUN.
94 * This symbol contains the second part of the string which will invoke
95 * the C preprocessor on the standard input and produce to standard
96 * output. This symbol will have the value "-" if CPPSTDIN needs a minus
97 * to specify standard input, otherwise the value is "".
99 #define CPPSTDIN "$cppstdin"
100 #define CPPMINUS "$cppminus"
103 * This symbol, if defined, indicates that the alarm routine is
106 #$d_alarm HAS_ALARM /**/
109 * This symbol indicates the C compiler can check for function attributes,
110 * such as printf formats. This is normally only supported by GNU cc.
112 #$d_attribut HASATTRIBUTE /**/
114 #define __attribute__(_arg_)
118 * This symbol is defined if the bcmp() routine is available to
119 * compare blocks of memory.
121 #$d_bcmp HAS_BCMP /**/
124 * This symbol is defined if the bcopy() routine is available to
125 * copy blocks of memory.
127 #$d_bcopy HAS_BCOPY /**/
130 * This symbol is defined if the bzero() routine is available to
131 * set a memory block to 0.
133 #$d_bzero HAS_BZERO /**/
136 * This symbol is defined if the C compiler can cast negative
137 * or large floating point numbers to 32-bit ints.
139 #$d_casti32 CASTI32 /**/
142 * This symbol is defined if the C compiler can cast negative
143 * numbers to unsigned longs, ints and shorts.
146 * This symbol contains flags that say what difficulties the compiler
147 * has casting odd floating values to unsigned long:
149 * 1 = couldn't cast < 0
150 * 2 = couldn't cast >= 0x80000000
152 #$d_castneg CASTNEGFLOAT /**/
153 #define CASTFLAGS $castflags /**/
156 * This symbol, if defined, indicates that the chown routine is
159 #$d_chown HAS_CHOWN /**/
162 * This symbol, if defined, indicates that the chroot routine is
165 #$d_chroot HAS_CHROOT /**/
168 * This symbol, if defined, indicates that the chsize routine is available
169 * to truncate files. You might need a -lx to get this routine.
171 #$d_chsize HAS_CHSIZE /**/
174 * This symbol, if defined, indicates that the closedir() routine
175 * does not return a value.
177 #$d_void_closedir VOID_CLOSEDIR /**/
180 * This symbol, if defined, indicates that this C compiler knows about
181 * the const type. There is no need to actually test for that symbol
182 * within your programs. The mere use of the "const" keyword will
183 * trigger the necessary tests.
185 #$d_const HASCONST /**/
191 * This symbol, if defined, indicates that the crypt routine is available
192 * to encrypt passwords and the like.
194 #$d_crypt HAS_CRYPT /**/
197 * This symbol, if defined, indicates that the cuserid routine is
198 * available to get character login names.
200 #$d_cuserid HAS_CUSERID /**/
203 * This symbol, if defined, indicates that this system's <float.h>
204 * or <limits.h> defines the symbol DBL_DIG, which is the number
205 * of significant digits in a double precision number. If this
206 * symbol is not defined, a guess of 15 is usually pretty good.
208 #$d_dbl_dig HAS_DBL_DIG /* */
211 * This symbol, if defined, indicates that the difftime routine is
214 #$d_difftime HAS_DIFFTIME /**/
217 * This symbol, if defined, indicates that the dlerror routine is
218 * available to return a string describing the last error that
219 * occurred from a call to dlopen(), dlclose() or dlsym().
221 #$d_dlerror HAS_DLERROR /**/
223 /* SETUID_SCRIPTS_ARE_SECURE_NOW:
224 * This symbol, if defined, indicates that the bug that prevents
225 * setuid scripts from being secure is not present in this kernel.
228 * This symbol, if defined, indicates that the C program should
229 * check the script that it is executing for setuid/setgid bits, and
230 * attempt to emulate setuid/setgid on systems that have disabled
231 * setuid #! scripts because the kernel can't do it securely.
232 * It is up to the package designer to make sure that this emulation
233 * is done securely. Among other things, it should do an fstat on
234 * the script it just opened to make sure it really is a setuid/setgid
235 * script, it should make sure the arguments passed correspond exactly
236 * to the argument on the #! line, and it should not trust any
237 * subprocesses to which it must pass the filename rather than the
238 * file descriptor of the script to be executed.
240 #$d_suidsafe SETUID_SCRIPTS_ARE_SECURE_NOW /**/
241 #$d_dosuid DOSUID /**/
244 * This symbol, if defined, indicates that the drem routine is
245 * available. This routine is roughly the same as fmod, i.e. it
246 * computes the remainder r=x-n*y, where n=rint(x/y), whereas fmod
249 #$d_drem HAS_DREM /**/
252 * This symbol, if defined, indicates that the dup2 routine is
253 * available to duplicate file descriptors.
255 #$d_dup2 HAS_DUP2 /**/
258 * This symbol, if defined, indicates that the fchmod routine is available
259 * to change mode of opened files. If unavailable, use chmod().
261 #$d_fchmod HAS_FCHMOD /**/
264 * This symbol, if defined, indicates that the fchown routine is available
265 * to change ownership of opened files. If unavailable, use chown().
267 #$d_fchown HAS_FCHOWN /**/
270 * This symbol, if defined, indicates to the C program that
271 * the fcntl() function exists.
273 #$d_fcntl HAS_FCNTL /**/
276 * This symbol, if defined, indicates that the fgetpos routine is
277 * available to get the file position indicator, similar to ftell().
279 #$d_fgetpos HAS_FGETPOS /**/
282 * This symbol, if defined, indicates that the system supports filenames
283 * longer than 14 characters.
285 #$d_flexfnam FLEXFILENAMES /**/
288 * This symbol, if defined, indicates that the flock routine is
289 * available to do file locking.
291 #$d_flock HAS_FLOCK /**/
294 * This symbol, if defined, indicates that the fmod routine is
295 * available to compute the remainder r=x-n*y where n=trunc(x/y).
297 #$d_fmod HAS_FMOD /**/
300 * This symbol, if defined, indicates that the fork routine is
303 #$d_fork HAS_FORK /**/
306 * This symbol, if defined, indicates that the fsetpos routine is
307 * available to set the file position indicator, similar to fseek().
309 #$d_fsetpos HAS_FSETPOS /**/
312 * This preprocessor macro is defined to convert a floating point
313 * number to a string without a trailing decimal point. This
314 * emulates the behavior of sprintf("%g"), but is sometimes much more
315 * efficient. If gconvert() is not available, but gcvt() drops the
316 * trailing decimal point, then gcvt() is used. If all else fails,
317 * a macro using sprintf("%g") is used. Arguments for the Gconvert
318 * macro are: value, number of digits, whether trailing zeros should
319 * be retained, and the output buffer.
321 #define Gconvert(x,n,t,b) $d_Gconvert
324 * This symbol, if defined, indicates that the getgroups() routine is
325 * available to get the list of process groups. If unavailable, multiple
326 * groups are probably not supported.
328 #$d_getgrps HAS_GETGROUPS /**/
331 * This symbol, if defined, indicates that the gethostent routine is
332 * available to lookup host names in some data base or other.
334 #$d_gethent HAS_GETHOSTENT /**/
337 * This symbol, if defined, indicates that the C program may use the
338 * uname() routine to derive the host name. See also HAS_GETHOSTNAME
341 #$d_uname HAS_UNAME /**/
344 * This symbol, if defined, indicates that the getlogin routine is
345 * available to get the login name.
347 #$d_getlogin HAS_GETLOGIN /**/
350 * This symbol, if defined, indicates that the getpgrp routine is
351 * available to get the current process group.
353 #$d_getpgrp HAS_GETPGRP /**/
356 * This symbol, if defined, indicates that the getpgrp2() (as in DG/UX)
357 * routine is available to get the current process group.
359 #$d_getpgrp2 HAS_GETPGRP2 /**/
362 * This symbol, if defined, indicates that the getppid routine is
363 * available to get the parent process ID.
365 #$d_getppid HAS_GETPPID /**/
368 * This symbol, if defined, indicates that the getpriority routine is
369 * available to get a process's priority.
371 #$d_getprior HAS_GETPRIORITY /**/
374 * This symbol, if defined, indicates that the htonl() routine (and
375 * friends htons() ntohl() ntohs()) are available to do network
376 * order byte swapping.
379 * This symbol, if defined, indicates that the htons() routine (and
380 * friends htonl() ntohl() ntohs()) are available to do network
381 * order byte swapping.
384 * This symbol, if defined, indicates that the ntohl() routine (and
385 * friends htonl() htons() ntohs()) are available to do network
386 * order byte swapping.
389 * This symbol, if defined, indicates that the ntohs() routine (and
390 * friends htonl() htons() ntohl()) are available to do network
391 * order byte swapping.
393 #$d_htonl HAS_HTONL /**/
394 #$d_htonl HAS_HTONS /**/
395 #$d_htonl HAS_NTOHL /**/
396 #$d_htonl HAS_NTOHS /**/
399 * This manifest constant lets the C program know that isascii
402 #$d_isascii HAS_ISASCII /**/
405 * This symbol, if defined, indicates that the killpg routine is available
406 * to kill process groups. If unavailable, you probably should use kill
407 * with a negative process number.
409 #$d_killpg HAS_KILLPG /**/
412 * This symbol, if defined, indicates that the link routine is
413 * available to create hard links.
415 #$d_link HAS_LINK /**/
418 * This symbol is defined if this system has a FILE structure declaring
419 * _IO_read_base, _IO_read_ptr, and _IO_read_end in stdio.h.
421 #$d_linuxstd USE_LINUX_STDIO /**/
424 * This symbol, if defined, indicates that the localeconv routine is
425 * available for numeric and monetary formatting conventions.
427 #$d_locconv HAS_LOCALECONV /**/
430 * This symbol, if defined, indicates that the lockf routine is
431 * available to do file locking.
433 #$d_lockf HAS_LOCKF /**/
436 * This symbol, if defined, indicates that the lstat routine is
437 * available to do file stats on symbolic links.
439 #$d_lstat HAS_LSTAT /**/
442 * This symbol, if defined, indicates that the mblen routine is available
443 * to find the number of bytes in a multibye character.
445 #$d_mblen HAS_MBLEN /**/
448 * This symbol, if defined, indicates that the mbstowcs routine is
449 * available to covert a multibyte string into a wide character string.
451 #$d_mbstowcs HAS_MBSTOWCS /**/
454 * This symbol, if defined, indicates that the mbtowc routine is available
455 * to covert a multibyte to a wide character.
457 #$d_mbtowc HAS_MBTOWC /**/
460 * This symbol, if defined, indicates that the memcmp routine is available
461 * to compare blocks of memory.
463 #$d_memcmp HAS_MEMCMP /**/
466 * This symbol, if defined, indicates that the memcpy routine is available
467 * to copy blocks of memory.
469 #$d_memcpy HAS_MEMCPY /**/
472 * This symbol, if defined, indicates that the memmove routine is available
473 * to copy potentially overlapping blocks of memory. This should be used
474 * only when HAS_SAFE_BCOPY is not defined. If neither is there, roll your
477 #$d_memmove HAS_MEMMOVE /**/
480 * This symbol, if defined, indicates that the memset routine is available
481 * to set blocks of memory.
483 #$d_memset HAS_MEMSET /**/
486 * This symbol, if defined, indicates that the mkdir routine is available
487 * to create directories. Otherwise you should fork off a new process to
490 #$d_mkdir HAS_MKDIR /**/
493 * This symbol, if defined, indicates that the mkfifo routine is
494 * available to create FIFOs. Otherwise, mknod should be able to
495 * do it for you. However, if mkfifo is there, mknod might require
496 * super-user privileges which mkfifo will not.
498 #$d_mkfifo HAS_MKFIFO /**/
501 * This symbol, if defined, indicates that the mktime routine is
504 #$d_mktime HAS_MKTIME /**/
507 * This symbol, if defined, indicates that the entire msg*(2) library is
508 * supported (IPC mechanism based on message queues).
513 * This symbol, if defined, indicates that the nice routine is
516 #$d_nice HAS_NICE /**/
519 * This manifest constant lets the C program know that the three
520 * argument form of open(2) is available.
522 #$d_open3 HAS_OPEN3 /**/
525 * This symbol, if defined, indicates that pathconf() is available
526 * to determine file-system related limits and options associated
527 * with a given filename.
530 * This symbol, if defined, indicates that pathconf() is available
531 * to determine file-system related limits and options associated
532 * with a given open file descriptor.
534 #$d_pathconf HAS_PATHCONF /**/
535 #$d_fpathconf HAS_FPATHCONF /**/
538 * This symbol, if defined, indicates that the pause routine is
539 * available to suspend a process until a signal is received.
541 #$d_pause HAS_PAUSE /**/
544 * This symbol, if defined, indicates that the pipe routine is
545 * available to create an inter-process channel.
547 #$d_pipe HAS_PIPE /**/
550 * This symbol, if defined, indicates that the readdir routine is
551 * available to read directory entries. You may have to include
552 * <dirent.h>. See I_DIRENT.
554 #$d_readdir HAS_READDIR /**/
557 * This symbol, if defined, indicates that the seekdir routine is
558 * available. You may have to include <dirent.h>. See I_DIRENT.
560 #$d_seekdir HAS_SEEKDIR /**/
563 * This symbol, if defined, indicates that the telldir routine is
564 * available. You may have to include <dirent.h>. See I_DIRENT.
566 #$d_telldir HAS_TELLDIR /**/
569 * This symbol, if defined, indicates that the rewinddir routine is
570 * available. You may have to include <dirent.h>. See I_DIRENT.
572 #$d_rewinddir HAS_REWINDDIR /**/
575 * This symbol, if defined, indicates that the readlink routine is
576 * available to read the value of a symbolic link.
578 #$d_readlink HAS_READLINK /**/
581 * This symbol, if defined, indicates that the rename routine is available
582 * to rename files. Otherwise you should do the unlink(), link(), unlink()
585 #$d_rename HAS_RENAME /**/
588 * This symbol, if defined, indicates that the rmdir routine is
589 * available to remove directories. Otherwise you should fork off a
590 * new process to exec /bin/rmdir.
592 #$d_rmdir HAS_RMDIR /**/
595 * This symbol, if defined, indicates that the bcopy routine is available
596 * to copy potentially overlapping memory blocks. Otherwise you should
597 * probably use memmove() or memcpy(). If neither is defined, roll your
600 #$d_safebcpy HAS_SAFE_BCOPY /**/
603 * This symbol, if defined, indicates that the memcpy routine is available
604 * to copy potentially overlapping memory blocks. Otherwise you should
605 * probably use memmove() or memcpy(). If neither is defined, roll your
608 #$d_safemcpy HAS_SAFE_MEMCPY /**/
611 * This symbol, if defined, indicates that the select routine is
612 * available to select active file descriptors. If the timeout field
613 * is used, <sys/time.h> may need to be included.
615 #$d_select HAS_SELECT /**/
618 * This symbol, if defined, indicates that the entire sem*(2) library is
624 * This symbol, if defined, indicates that the setegid routine is available
625 * to change the effective gid of the current program.
627 #$d_setegid HAS_SETEGID /**/
630 * This symbol, if defined, indicates that the seteuid routine is available
631 * to change the effective uid of the current program.
633 #$d_seteuid HAS_SETEUID /**/
636 * This symbol, if defined, indicates that the setlinebuf routine is
637 * available to change stderr or stdout from block-buffered or unbuffered
638 * to a line-buffered mode.
640 #$d_setlinebuf HAS_SETLINEBUF /**/
643 * This symbol, if defined, indicates that the setlocale routine is
644 * available to handle locale-specific ctype implementations.
646 #$d_setlocale HAS_SETLOCALE /**/
649 * This symbol, if defined, indicates that the setpgid routine is
650 * available to set process group ID.
652 #$d_setpgid HAS_SETPGID /**/
655 * This symbol, if defined, indicates that the setpgrp routine is
656 * available to set the current process group.
659 * This symbol, if defined, indicates that the BSD notion of process
660 * group is to be used. For instance, you have to say setpgrp(pid, pgrp)
661 * instead of the USG setpgrp().
663 #$d_setpgrp HAS_SETPGRP /**/
664 #$d_bsdpgrp USE_BSDPGRP /**/
667 * This symbol, if defined, indicates that the setpgrp2() (as in DG/UX)
668 * routine is available to set the current process group.
670 #$d_setpgrp2 HAS_SETPGRP2 /**/
673 * This symbol, if defined, indicates that the setpriority routine is
674 * available to set a process's priority.
676 #$d_setprior HAS_SETPRIORITY /**/
679 * This symbol, if defined, indicates that the setregid routine is
680 * available to change the real and effective gid of the current
684 * This symbol, if defined, indicates that the setresgid routine is
685 * available to change the real, effective and saved gid of the current
688 #$d_setregid HAS_SETREGID /**/
689 #$d_setresgid HAS_SETRESGID /**/
692 * This symbol, if defined, indicates that the setreuid routine is
693 * available to change the real and effective uid of the current
697 * This symbol, if defined, indicates that the setresuid routine is
698 * available to change the real, effective and saved uid of the current
701 #$d_setreuid HAS_SETREUID /**/
702 #$d_setresuid HAS_SETRESUID /**/
705 * This symbol, if defined, indicates that the setrgid routine is available
706 * to change the real gid of the current program.
708 #$d_setrgid HAS_SETRGID /**/
711 * This symbol, if defined, indicates that the setruid routine is available
712 * to change the real uid of the current program.
714 #$d_setruid HAS_SETRUID /**/
717 * This symbol, if defined, indicates that the setsid routine is
718 * available to set the process group ID.
720 #$d_setsid HAS_SETSID /**/
723 * This symbol, if defined, indicates that the entire shm*(2) library is
729 * This symbol holds the return type of the shmat() system call.
730 * Usually set to 'void *' or 'char *'.
732 /* HAS_SHMAT_PROTOTYPE:
733 * This symbol, if defined, indicates that the sys/shm.h includes
734 * a prototype for shmat(). Otherwise, it is up to the program to
735 * guess one. Shmat_t shmat _((int, Shmat_t, int)) is a good guess,
736 * but not always right so it should be emitted by the program only
737 * when HAS_SHMAT_PROTOTYPE is not defined to avoid conflicting defs.
739 #define Shmat_t $shmattype /**/
740 #$d_shmatprototype HAS_SHMAT_PROTOTYPE /**/
743 * This symbol, if defined, indicates that the BSD socket interface is
747 * This symbol, if defined, indicates that the BSD socketpair() call is
750 #$d_socket HAS_SOCKET /**/
751 #$d_sockpair HAS_SOCKETPAIR /**/
754 * This symbol is defined if this system has a stat structure declaring
755 * st_blksize and st_blocks.
757 #$d_statblks USE_STAT_BLOCKS /**/
760 * This symbol is defined if this system has a FILE structure declaring
761 * _ptr and _cnt in stdio.h.
763 #$d_stdstdio USE_STD_STDIO /**/
766 * This symbol is defined to indicate that the strchr()/strrchr()
767 * functions are available for string searching. If not, try the
768 * index()/rindex() pair.
771 * This symbol is defined to indicate that the index()/rindex()
772 * functions are available for string searching.
774 #$d_strchr HAS_STRCHR /**/
775 #$d_index HAS_INDEX /**/
778 * This symbol, if defined, indicates that the strcoll routine is
779 * available to compare strings using collating information.
781 #$d_strcoll HAS_STRCOLL /**/
784 * This symbol, if defined, indicates that this C compiler knows how
785 * to copy structures. If undefined, you'll need to use a block copy
786 * routine of some sort instead.
788 #$d_strctcpy USE_STRUCT_COPY /**/
791 * This symbol, if defined, indicates that the strerror routine is
792 * available to translate error numbers to strings. See the writeup
793 * of Strerror() in this file before you try to define your own.
796 * This symbol, if defined, indicates that the sys_errlist array is
797 * available to translate error numbers to strings. The extern int
798 * sys_nerr gives the size of that table.
801 * This preprocessor symbol is defined as a macro if strerror() is
802 * not available to translate error numbers to strings but sys_errlist[]
805 #$d_strerror HAS_STRERROR /**/
806 #$d_syserrlst HAS_SYS_ERRLIST /**/
807 #define Strerror(e) $d_strerrm
810 * This symbol, if defined, indicates that the strxfrm() routine is
811 * available to transform strings.
813 #$d_strxfrm HAS_STRXFRM /**/
816 * This symbol, if defined, indicates that the symlink routine is available
817 * to create symbolic links.
819 #$d_symlink HAS_SYMLINK /**/
822 * This symbol, if defined, indicates that the syscall routine is
823 * available to call arbitrary system calls. If undefined, that's tough.
825 #$d_syscall HAS_SYSCALL /**/
828 * This symbol, if defined, indicates that sysconf() is available
829 * to determine system related limits and options.
831 #$d_sysconf HAS_SYSCONF /**/
834 * This symbol, if defined, indicates that the system routine is
835 * available to issue a shell command.
837 #$d_system HAS_SYSTEM /**/
840 * This symbol, if defined, indicates that the tcgetpgrp routine is
841 * available to get foreground process group ID.
843 #$d_tcgetpgrp HAS_TCGETPGRP /**/
846 * This symbol, if defined, indicates that the tcsetpgrp routine is
847 * available to set foreground process group ID.
849 #$d_tcsetpgrp HAS_TCSETPGRP /**/
852 * This symbol holds the type returned by time(). It can be long,
853 * or time_t on BSD sites (in which case <sys/types.h> should be
856 #define Time_t $timetype /* Time type */
859 * This symbol, if defined, indicates that the times() routine exists.
860 * Note that this became obsolete on some systems (SUNOS), which now
861 * use getrusage(). It may be necessary to include <sys/times.h>.
863 #$d_times HAS_TIMES /**/
866 * This symbol, if defined, indicates that the truncate routine is
867 * available to truncate files.
869 #$d_truncate HAS_TRUNCATE /**/
872 * This symbol, if defined, indicates that the tzname[] array is
873 * available to access timezone names.
875 #$d_tzname HAS_TZNAME /**/
878 * This symbol, if defined, indicates that the umask routine is
879 * available to set and get the value of the file creation mask.
881 #$d_umask HAS_UMASK /**/
884 * This symbol, if defined, indicates that vfork() exists.
886 #$d_vfork HAS_VFORK /**/
889 * This symbol's value is either "void" or "int", corresponding to the
890 * appropriate return type of a signal handler. Thus, you can declare
891 * a signal handler using "Signal_t (*handler)()", and define the
892 * handler using "Signal_t handler(sig)".
894 #define Signal_t $signal_t /* Signal handler's return type */
897 * This symbol, if defined, indicates that this C compiler knows about
898 * the volatile declaration.
900 #$d_volatile HASVOLATILE /**/
906 * This symbol, if defined, indicates that the vprintf routine is available
907 * to printf with a pointer to an argument list. If unavailable, you
908 * may need to write your own, probably in terms of _doprnt().
910 /* USE_CHAR_VSPRINTF:
911 * This symbol is defined if this system has vsprintf() returning type
912 * (char*). The trend seems to be to declare it as "int vsprintf()". It
913 * is up to the package author to declare vsprintf correctly based on the
916 #$d_vprintf HAS_VPRINTF /**/
917 #$d_charvspr USE_CHAR_VSPRINTF /**/
920 * This symbol, if defined, indicates that wait4() exists.
922 #$d_wait4 HAS_WAIT4 /**/
925 * This symbol, if defined, indicates that the waitpid routine is
926 * available to wait for child process.
928 #$d_waitpid HAS_WAITPID /**/
931 * This symbol, if defined, indicates that the wcstombs routine is
932 * available to convert wide character strings to multibyte strings.
934 #$d_wcstombs HAS_WCSTOMBS /**/
937 * This symbol, if defined, indicates that the wctomb routine is available
938 * to covert a wide character to a multibyte.
940 #$d_wctomb HAS_WCTOMB /**/
943 * This symbol holds the type used to declare file positions in libc.
944 * It can be fpos_t, long, uint, etc... It may be necessary to include
945 * <sys/types.h> to get any typedef'ed information.
947 #define Fpos_t $fpostype /* File position type */
950 * This symbol holds the return type of getgid() and the type of
951 * argument to setrgid() and related functions. Typically,
952 * it is the type of group ids in the kernel. It can be int, ushort,
953 * uid_t, etc... It may be necessary to include <sys/types.h> to get
954 * any typedef'ed information.
956 #define Gid_t $gidtype /* Type for getgid(), etc... */
959 * This symbol holds the type used for the second argument to
960 * getgroups(). Usually, this is the same of gidtype, but
961 * sometimes it isn't. It can be int, ushort, uid_t, etc...
962 * It may be necessary to include <sys/types.h> to get any
963 * typedef'ed information. This is only required if you have
967 #define Groups_t $groupstype /* Type for 2nd arg to getgroups() */
971 * This symbol, if defined, indicates to the C program that it should
972 * include <dirent.h>. Using this symbol also triggers the definition
973 * of the Direntry_t define which ends up being 'struct dirent' or
974 * 'struct direct' depending on the availability of <dirent.h>.
977 * This symbol, if defined, indicates to the C program that the length
978 * of directory entry names is provided by a d_namlen field. Otherwise
979 * you need to do strlen() on the d_name field.
982 * This symbol is set to 'struct direct' or 'struct dirent' depending on
983 * whether dirent is available or not. You should use this pseudo type to
984 * portably declare your directory entries.
986 #$i_dirent I_DIRENT /**/
987 #$d_dirnamlen DIRNAMLEN /**/
988 #define Direntry_t $direntrytype
991 * This symbol, if defined, indicates that <dlfcn.h> exists and should
994 #$i_dlfcn I_DLFCN /**/
997 * This manifest constant tells the C program to include <fcntl.h>.
999 #$i_fcntl I_FCNTL /**/
1002 * This symbol, if defined, indicates to the C program that it should
1003 * include <float.h> to get definition of symbols like DBL_MAX or
1004 * DBL_MIN, i.e. machine dependent floating point values.
1006 #$i_float I_FLOAT /**/
1009 * This symbol, if defined, indicates to the C program that it should
1015 * This symbol, if defined, indicates to the C program that it should
1016 * include <limits.h> to get definition of symbols like WORD_BIT or
1017 * LONG_MAX, i.e. machine dependant limitations.
1019 #$i_limits I_LIMITS /**/
1022 * This symbol, if defined, indicates to the C program that it should
1025 #$i_math I_MATH /**/
1028 * This symbol, if defined, indicates to the C program that it should
1029 * include <memory.h>.
1031 #$i_memory I_MEMORY /**/
1034 * This symbol, if defined, indicates that <net/errno.h> exists and
1035 * should be included.
1037 #$i_neterrno I_NET_ERRNO /**/
1040 * This symbol, if defined, indicates to the C program that it should
1041 * include <netinet/in.h>. Otherwise, you may try <sys/in.h>.
1043 #$i_niin I_NETINET_IN /**/
1046 * This symbol, if defined, indicates to the C program that it should
1050 * This symbol, if defined, indicates to the C program that struct passwd
1051 * contains pw_quota.
1054 * This symbol, if defined, indicates to the C program that struct passwd
1058 * This symbol, if defined, indicates to the C program that struct passwd
1059 * contains pw_change.
1062 * This symbol, if defined, indicates to the C program that struct passwd
1063 * contains pw_class.
1066 * This symbol, if defined, indicates to the C program that struct passwd
1067 * contains pw_expire.
1070 * This symbol, if defined, indicates to the C program that struct passwd
1071 * contains pw_comment.
1074 #$d_pwquota PWQUOTA /**/
1075 #$d_pwage PWAGE /**/
1076 #$d_pwchange PWCHANGE /**/
1077 #$d_pwclass PWCLASS /**/
1078 #$d_pwexpire PWEXPIRE /**/
1079 #$d_pwcomment PWCOMMENT /**/
1082 * This symbol, if defined, indicates that <stddef.h> exists and should
1085 #$i_stddef I_STDDEF /**/
1088 * This symbol, if defined, indicates that <stdlib.h> exists and should
1091 #$i_stdlib I_STDLIB /**/
1094 * This symbol, if defined, indicates to the C program that it should
1095 * include <string.h> (USG systems) instead of <strings.h> (BSD systems).
1097 #$i_string I_STRING /**/
1100 * This symbol, if defined, indicates to the C program that it should
1101 * include <sys/dir.h>.
1103 #$i_sysdir I_SYS_DIR /**/
1106 * This symbol, if defined, indicates to the C program that it should
1107 * include <sys/file.h> to get definition of R_OK and friends.
1109 #$i_sysfile I_SYS_FILE /**/
1112 * This symbol, if defined, indicates that <sys/ioctl.h> exists and should
1113 * be included. Otherwise, include <sgtty.h> or <termio.h>.
1115 #$i_sysioctl I_SYS_IOCTL /**/
1118 * This symbol, if defined, indicates to the C program that it should
1119 * include <sys/ndir.h>.
1121 #$i_sysndir I_SYS_NDIR /**/
1124 * This symbol, if defined, indicates to the C program that it should
1125 * include <sys/param.h>.
1127 #$i_sysparam I_SYS_PARAM /**/
1130 * This symbol, if defined, indicates to the C program that it should
1131 * include <sys/select.h> in order to get definition of struct timeval.
1133 #$i_sysselct I_SYS_SELECT /**/
1136 * This symbol, if defined, indicates to the C program that it should
1137 * include <sys/times.h>.
1139 #$i_systimes I_SYS_TIMES /**/
1142 * This symbol, if defined, indicates to the C program that it should
1143 * include <sys/types.h>.
1145 #$i_systypes I_SYS_TYPES /**/
1148 * This symbol, if defined, indicates that the program should include
1149 * <termio.h> rather than <sgtty.h>. There are also differences in
1150 * the ioctl() calls that depend on the value of this symbol.
1153 * This symbol, if defined, indicates that the program should include
1154 * the POSIX termios.h rather than sgtty.h or termio.h.
1155 * There are also differences in the ioctl() calls that depend on the
1156 * value of this symbol.
1159 * This symbol, if defined, indicates that the program should include
1160 * <sgtty.h> rather than <termio.h>. There are also differences in
1161 * the ioctl() calls that depend on the value of this symbol.
1163 #$i_termio I_TERMIO /**/
1164 #$i_termios I_TERMIOS /**/
1165 #$i_sgtty I_SGTTY /**/
1168 * This symbol, if defined, indicates to the C program that it should
1172 * This symbol, if defined, indicates to the C program that it should
1173 * include <sys/time.h>.
1175 /* I_SYS_TIME_KERNEL:
1176 * This symbol, if defined, indicates to the C program that it should
1177 * include <sys/time.h> with KERNEL defined.
1179 #$i_time I_TIME /**/
1180 #$i_systime I_SYS_TIME /**/
1181 #$i_systimek I_SYS_TIME_KERNEL /**/
1184 * This symbol, if defined, indicates to the C program that it should
1185 * include <unistd.h>.
1187 #$i_unistd I_UNISTD /**/
1190 * This symbol, if defined, indicates to the C program that it should
1191 * include <utime.h>.
1193 #$i_utime I_UTIME /**/
1196 * This symbol, if defined, indicates that <stdarg.h> exists and should
1200 * This symbol, if defined, indicates to the C program that it should
1201 * include <varargs.h>.
1203 #$i_stdarg I_STDARG /**/
1204 #$i_varargs I_VARARGS /**/
1207 * This symbol, if defined, indicates to the C program that it should
1210 #$i_vfork I_VFORK /**/
1213 * This symbol contains the size of an int, so that the C preprocessor
1214 * can make decisions based on it.
1216 #define INTSIZE $intsize /**/
1219 * This symbol holds the type used to declare offsets in the kernel.
1220 * It can be int, long, off_t, etc... It may be necessary to include
1221 * <sys/types.h> to get any typedef'ed information.
1223 #define Off_t $lseektype /* <offset> type */
1226 * This symbol holds the type used to declare file modes
1227 * for systems calls. It is usually mode_t, but may be
1228 * int or unsigned short. It may be necessary to include <sys/types.h>
1229 * to get any typedef'ed information.
1231 #define Mode_t $modetype /* file mode parameter for system calls */
1234 * This symbol contains the ~name expanded version of PRIVLIB, to be used
1235 * in programs that are not prepared to deal with ~ expansion at run-time.
1237 #define PRIVLIB_EXP "$privlibexp" /**/
1240 * If defined, this macro indicates that the C compiler can handle
1241 * function prototypes.
1244 * This macro is used to declare function parameters for folks who want
1245 * to make declarations with prototypes using a different style than
1246 * the above macros. Use double parentheses. For example:
1248 * int main _((int argc, char *argv[]));
1250 #$prototype CAN_PROTOTYPE /**/
1251 #ifdef CAN_PROTOTYPE
1252 #define _(args) args
1258 * This symbol contains the number of bits of random number the rand()
1259 * function produces. Usual values are 15, 16, and 31.
1261 #define RANDBITS $randbits /**/
1264 * This symbol holds the name of the directory in which the user wants
1265 * to put publicly executable scripts for the package in question. It
1266 * is often a directory that is mounted across diverse architectures.
1267 * Programs must be prepared to deal with ~name expansion.
1269 #define SCRIPTDIR "$scriptdir" /**/
1272 * This symbol holds the type used for the 2nd, 3rd, and 4th
1273 * arguments to select. Usually, this is 'fd_set *', if HAS_FD_SET
1274 * is defined, and 'int *' otherwise. This is only useful if you
1275 * have select(), of course.
1277 #define Select_fd_set_t $selecttype /**/
1280 * This symbol contains a list of signal names in order. This is intended
1281 * to be used as a static array initialization, like this:
1282 * char *sig_name[] = { SIG_NAME };
1283 * The signals in the list are separated with commas, and each signal
1284 * is surrounded by double quotes. There is no leading SIG in the signal
1285 * name, i.e. SIGQUIT is known as "QUIT".
1287 #define SIG_NAME "`echo $sig_name | sed 's/ /","/g'`" /**/
1290 * This symbol holds the type used to declare length parameters
1291 * for string functions. It is usually size_t, but may be
1292 * unsigned long, int, etc. It may be necessary to include
1293 * <sys/types.h> to get any typedef'ed information.
1295 #define Size_t $sizetype /* length paramater for string functions */
1298 * This symbol holds the type used by functions that return
1299 * a count of bytes or an error condition. It must be a signed type.
1300 * It is usually ssize_t, but may be long or int, etc.
1301 * It may be necessary to include <sys/types.h> or <unistd.h>
1302 * to get any typedef'ed information.
1303 * We will pick a type such that sizeof(SSize_t) == sizeof(Size_t).
1305 #define SSize_t $ssizetype /* signed count of bytes */
1308 * This symbol is defined to be the type of char used in stdio.h.
1309 * It has the values "unsigned char" or "char".
1311 #define STDCHAR $stdchar /**/
1314 * This symbol holds the type used to declare user ids in the kernel.
1315 * It can be int, ushort, uid_t, etc... It may be necessary to include
1316 * <sys/types.h> to get any typedef'ed information.
1318 #define Uid_t $uidtype /* UID type */
1321 * This symbol indicates how much support of the void type is given by this
1322 * compiler. What various bits mean:
1324 * 1 = supports declaration of void
1325 * 2 = supports arrays of pointers to functions returning void
1326 * 4 = supports comparisons between pointers to void functions and
1327 * addresses of void functions
1328 * 8 = suports declaration of generic void pointers
1330 * The package designer should define VOIDUSED to indicate the requirements
1331 * of the package. This can be done either by #defining VOIDUSED before
1332 * including config.h, or by defining defvoidused in Myinit.U. If the
1333 * latter approach is taken, only those flags will be tested. If the
1334 * level of void support necessary is not present, defines void to int.
1337 #define VOIDUSED $defvoidused
1339 #define VOIDFLAGS $voidflags
1340 #if (VOIDFLAGS & VOIDUSED) != VOIDUSED
1341 #define void int /* is void to be avoided? */
1342 #define M_VOID /* Xenix strikes again */
1346 * This symbol, if defined, indicates that the program is being compiled
1347 * under the EUNICE package under VMS. The program will need to handle
1348 * things like files that don't go away the first time you unlink them,
1349 * due to version numbering. It will also need to compensate for lack
1350 * of a respectable link() command.
1353 * This symbol, if defined, indicates that the program is running under
1354 * VMS. It is currently only set in conjunction with the EUNICE symbol.
1356 #$d_eunice EUNICE /**/
1360 * This symbol holds the complete pathname to the sed program.
1362 #define LOC_SED "$full_sed" /**/
1365 * This symbol contains the ~name expanded version of ARCHLIB, to be used
1366 * in programs that are not prepared to deal with ~ expansion at run-time.
1368 #$d_archlib ARCHLIB_EXP "$archlibexp" /**/
1371 * This symbol, if defined, indicates that the C-shell exists.
1372 * If defined, contains the full pathname of csh.
1374 #$d_csh CSH "$full_csh" /**/
1376 /* DLSYM_NEEDS_UNDERSCORE:
1377 * This symbol, if defined, indicates that we need to prepend an
1378 * underscore to the symbol name before calling dlsym(). This only
1379 * makes sense if you *have* dlsym, which we will presume is the
1380 * case if you're using dl_dlopen.xs.
1382 #$d_dlsymun DLSYM_NEEDS_UNDERSCORE /* */
1384 /* USE_DYNAMIC_LOADING:
1385 * This symbol, if defined, indicates that dynamic loading of
1386 * some sort is available.
1388 #$usedl USE_DYNAMIC_LOADING /**/
1391 * This symbol contains the type of the prefix structure element
1392 * in the <db.h> header file. In older versions of DB, it was
1393 * int, while in newer ones it is u_int32_t.
1396 * This symbol contains the type of the prefix structure element
1397 * in the <db.h> header file. In older versions of DB, it was
1398 * int, while in newer ones it is size_t.
1400 #define DB_Hash_t $db_hashtype /**/
1401 #define DB_Prefix_t $db_prefixtype /**/
1404 * This symbol, if defined, indicates that ndbm.h exists and should
1407 #$i_ndbm I_NDBM /**/
1410 * This symbol, if defined, indicates to the C program that it should
1411 * include <sys/stat.h>.
1413 #$i_sysstat I_SYS_STAT /**/
1416 * This symbol is the type of pointer returned by malloc and realloc.
1418 #define Malloc_t $malloctype /**/
1421 * This symbol, if defined, indicates that we're using our own malloc.
1423 #$d_mymalloc MYMALLOC /**/