3 if test ! -f config.sh; then
5 ln ../../config.sh . || \
6 ln ../../../config.sh . || \
7 (echo "Can't find config.sh."; exit 1)
8 echo "Using config.sh from above..."
13 echo "Extracting config.h (with variable substitutions)"
14 sed <<!GROK!THIS! >config.h -e 's!^#undef!/\*#undef!'
16 * This file was produced by running the config.h.SH script, which
17 * gets its values from config.sh, which is generally produced by
20 * Feel free to modify any of this as the need arises. Note, however,
21 * that running config.h.SH again will wipe out any changes you've made.
22 * For a more permanent change edit config.sh and rerun config.h.SH.
27 * This symbol, if defined, indicates that the program is being compiled
28 * under the EUNICE package under VMS. The program will need to handle
29 * things like files that don't go away the first time you unlink them,
30 * due to version numbering. It will also need to compensate for lack
31 * of a respectable link() command.
34 * This symbol, if defined, indicates that the program is running under
35 * VMS. It is currently only set in conjunction with the EUNICE symbol.
37 #$d_eunice EUNICE /**/
41 * This symbol holds the name of the directory in which the user wants
42 * to put publicly executable images for the package in question. It
43 * is most often a local directory such as /usr/local/bin.
45 #define BIN "$bin" /**/
48 * This symbol contains an encoding of the order of bytes in a long.
49 * Usual values (in octal) are 01234, 04321, 02143, 03412...
51 #define BYTEORDER 0x$byteorder /**/
54 * This symbol contains the first part of the string which will invoke
55 * the C preprocessor on the standard input and produce to standard
56 * output. Typical value of "cc -E" or "/lib/cpp".
59 * This symbol contains the second part of the string which will invoke
60 * the C preprocessor on the standard input and produce to standard
61 * output. This symbol will have the value "-" if CPPSTDIN needs a minus
62 * to specify standard input, otherwise the value is "".
64 #define CPPSTDIN "$cppstdin"
65 #define CPPMINUS "$cppminus"
68 * This symbol, if defined, indicates that the bcmp routine is available
69 * to compare blocks of memory. If undefined, use memcmp. If that's
70 * not available, roll your own.
75 * This symbol, if defined, indicates that the bcopy routine is available
76 * to copy blocks of memory. Otherwise you should probably use memcpy().
81 * This symbol, if defined, indicates that the bzero routine is available
82 * to zero blocks of memory. Otherwise you should probably use memcpy().
87 * This symbol, if defined, indicates that this C compiler knows how to
88 * cast negative numbers to unsigned longs, ints and shorts.
90 #$d_castneg CASTNEGFLOAT /**/
93 * This symbol is defined if this system declares "char *sprintf()" in
94 * stdio.h. The trend seems to be to declare it as "int sprintf()". It
95 * is up to the package author to declare sprintf correctly based on the
98 #$d_charsprf CHARSPRINTF /**/
101 * This symbol, if defined, indicates that the chsize routine is available
102 * to truncate files. You might need a -lx to get this routine.
104 #$d_chsize CHSIZE /**/
107 * This symbol, if defined, indicates that the crypt routine is available
108 * to encrypt passwords and the like.
113 * This symbol, if defined, indicates that the C-shell exists.
114 * If defined, contains the full pathname of csh.
116 #$d_csh CSH "$csh" /**/
119 * This symbol, if defined, indicates that the C program should
120 * check the script that it is executing for setuid/setgid bits, and
121 * attempt to emulate setuid/setgid on systems that have disabled
122 * setuid #! scripts because the kernel can't do it securely.
123 * It is up to the package designer to make sure that this emulation
124 * is done securely. Among other things, it should do an fstat on
125 * the script it just opened to make sure it really is a setuid/setgid
126 * script, it should make sure the arguments passed correspond exactly
127 * to the argument on the #! line, and it should not trust any
128 * subprocesses to which it must pass the filename rather than the
129 * file descriptor of the script to be executed.
131 #$d_dosuid DOSUID /**/
134 * This symbol, if defined, indicates that the dup2 routine is available
135 * to dup file descriptors. Otherwise you should use dup().
140 * This symbol, if defined, indicates that the fchmod routine is available
141 * to change mode of opened files. If unavailable, use chmod().
143 #$d_fchmod FCHMOD /**/
146 * This symbol, if defined, indicates that the fchown routine is available
147 * to change ownership of opened files. If unavailable, use chown().
149 #$d_fchown FCHOWN /**/
152 * This symbol, if defined, indicates to the C program that it should
158 * This symbol, if defined, indicates that the flock() routine is
159 * available to do file locking.
164 * This symbol, if defined, indicates that the getgroups() routine is
165 * available to get the list of process groups. If unavailable, multiple
166 * groups are probably not supported.
168 #$d_getgrps GETGROUPS /**/
171 * This symbol, if defined, indicates that the gethostent() routine is
172 * available to lookup host names in some data base or other.
174 #$d_gethent GETHOSTENT /**/
177 * This symbol, if defined, indicates that the getpgrp() routine is
178 * available to get the current process group.
180 #$d_getpgrp GETPGRP /**/
183 * This symbol, if defined, indicates that the getpgrp2() (as in DG/UX)
184 * routine is available to get the current process group.
186 #$d_getpgrp2 GETPGRP2 /**/
189 * This symbol, if defined, indicates that the getpriority() routine is
190 * available to get a process's priority.
192 #$d_getprior GETPRIORITY /**/
195 * This symbol, if defined, indicates that the htons routine (and friends)
196 * are available to do network order byte swapping.
199 * This symbol, if defined, indicates that the htonl routine (and friends)
200 * are available to do network order byte swapping.
203 * This symbol, if defined, indicates that the ntohs routine (and friends)
204 * are available to do network order byte swapping.
207 * This symbol, if defined, indicates that the ntohl routine (and friends)
208 * are available to do network order byte swapping.
216 * This preprocessor symbol is defined, along with rindex, if the system
217 * uses the strchr and strrchr routines instead.
220 * This preprocessor symbol is defined, along with index, if the system
221 * uses the strchr and strrchr routines instead.
223 #$d_index index strchr /* cultural */
224 #$d_index rindex strrchr /* differences? */
227 * This symbol, if defined, indicates that sys/ioctl.h exists and should
233 * This symbol, if defined, indicates that the killpg routine is available
234 * to kill process groups. If unavailable, you probably should use kill
235 * with a negative process number.
237 #$d_killpg KILLPG /**/
240 * This symbol, if defined, indicates that the lstat() routine is
241 * available to do file locking.
246 * This symbol, if defined, indicates that the memcmp routine is available
247 * to compare blocks of memory. If undefined, roll your own.
249 #$d_memcmp MEMCMP /**/
252 * This symbol, if defined, indicates that the memcpy routine is available
253 * to copy blocks of memory. Otherwise you should probably use bcopy().
254 * If neither is defined, roll your own.
256 #$d_memcpy MEMCPY /**/
259 * This symbol, if defined, indicates that the mkdir routine is available
260 * to create directories. Otherwise you should fork off a new process to
266 * This symbol, if defined, indicates that ndbm.h exists and should
272 * This symbol, if defined, indicates that dbm.h exists and should
278 * This symbol, if defined, indicates that the readdir routine is available
279 * from the C library to create directories.
281 #$d_readdir READDIR /**/
284 * This symbol, if defined, indicates that the rename routine is available
285 * to rename files. Otherwise you should do the unlink(), link(), unlink()
288 #$d_rename RENAME /**/
291 * This symbol, if defined, indicates that the rmdir routine is available
292 * to remove directories. Otherwise you should fork off a new process to
298 * This symbol, if defined, indicates that the select routine is available
299 * to select active file descriptors.
301 #$d_select SELECT /**/
304 * This symbol, if defined, indicates that the setegid routine is available
305 * to change the effective gid of the current program.
307 #$d_setegid SETEGID /**/
310 * This symbol, if defined, indicates that the seteuid routine is available
311 * to change the effective uid of the current program.
313 #$d_seteuid SETEUID /**/
316 * This symbol, if defined, indicates that the setpgrp() routine is
317 * available to set the current process group.
319 #$d_setpgrp SETPGRP /**/
322 * This symbol, if defined, indicates that the setpgrp2() (as in DG/UX)
323 * routine is available to set the current process group.
325 #$d_setpgrp2 SETPGRP2 /**/
328 * This symbol, if defined, indicates that the setpriority() routine is
329 * available to set a process's priority.
331 #$d_setprior SETPRIORITY /**/
334 * This symbol, if defined, indicates that the setregid routine is
335 * available to change the real and effective gid of the current program.
338 * This symbol, if defined, indicates that the setresgid routine is
339 * available to change the real, effective and saved gid of the current
342 #$d_setregid SETREGID /**/
343 #$d_setresgid SETRESGID /**/
346 * This symbol, if defined, indicates that the setreuid routine is
347 * available to change the real and effective uid of the current program.
350 * This symbol, if defined, indicates that the setresuid routine is
351 * available to change the real, effective and saved uid of the current
354 #$d_setreuid SETREUID /**/
355 #$d_setresuid SETRESUID /**/
358 * This symbol, if defined, indicates that the setrgid routine is available
359 * to change the real gid of the current program.
361 #$d_setrgid SETRGID /**/
364 * This symbol, if defined, indicates that the setruid routine is available
365 * to change the real uid of the current program.
367 #$d_setruid SETRUID /**/
370 * This symbol, if defined, indicates that the BSD socket interface is
374 * This symbol, if defined, indicates that the BSD socketpair call is
378 * This symbol, if defined, indicates that the 4.1c BSD socket interface
379 * is supported instead of the 4.2/4.3 BSD socket interface.
381 #$d_socket SOCKET /**/
383 #$d_sockpair SOCKETPAIR /**/
385 #$d_oldsock OLDSOCKET /**/
388 * This symbol is defined if this system has a stat structure declaring
389 * st_blksize and st_blocks.
391 #$d_statblks STATBLOCKS /**/
394 * This symbol is defined if this system has a FILE structure declaring
395 * _ptr and _cnt in stdio.h.
397 #$d_stdstdio STDSTDIO /**/
400 * This symbol, if defined, indicates that this C compiler knows how
401 * to copy structures. If undefined, you'll need to use a block copy
402 * routine of some sort instead.
404 #$d_strctcpy STRUCTCOPY /**/
407 * This symbol, if defined, indicates that the strerror() routine is
408 * available to translate error numbers to strings.
410 #$d_strerror STRERROR /**/
413 * This symbol, if defined, indicates that the symlink routine is available
414 * to create symbolic links.
416 #$d_symlink SYMLINK /**/
419 * This symbol, if defined, indicates that the syscall routine is available
420 * to call arbitrary system calls. If undefined, that's tough.
422 #$d_syscall SYSCALL /**/
425 * This symbol, if defined, indicates that the truncate routine is
426 * available to truncate files.
428 #$d_truncate TRUNCATE /**/
431 * This symbol, if defined, indicates to the C program that it should
434 #$d_varargs VARARGS /**/
437 * This symbol, if defined, indicates that vfork() exists.
442 * This symbol is defined if this system declares "void (*signal())()" in
443 * signal.h. The old way was to declare it as "int (*signal())()". It
444 * is up to the package author to declare things correctly based on the
447 #$d_voidsig VOIDSIG /**/
450 * This symbol, if defined, indicates that this C compiler knows about
451 * the volatile declaration.
453 #$d_volatile HASVOLATILE /**/
456 * This symbol, if defined, indicates that the vprintf routine is available
457 * to printf with a pointer to an argument list. If unavailable, you
458 * may need to write your own, probably in terms of _doprnt().
461 * This symbol is defined if this system has vsprintf() returning type
462 * (char*). The trend seems to be to declare it as "int vsprintf()". It
463 * is up to the package author to declare vsprintf correctly based on the
466 #$d_vprintf VPRINTF /**/
467 #$d_charvspr CHARVSPRINTF /**/
470 * This symbol, if defined, indicates that wait4() exists.
475 * This symbol has a value like gid_t, int, ushort, or whatever type is
476 * used to declare group ids in the kernel.
478 #define GIDTYPE $gidtype /**/
481 * This symbol, if defined, indicates to the C program that it should
485 * This symbol, if defined, indicates to the C program that the length
486 * of directory entry names is provided by a d_namlen field. Otherwise
487 * you need to do strlen() on the d_name field.
489 #$i_dirent I_DIRENT /**/
490 #$d_dirnamlen DIRNAMLEN /**/
493 * This symbol, if defined, indicates to the C program that it should
496 #$i_fcntl I_FCNTL /**/
499 * This symbol, if defined, indicates to the C program that it should
505 * This symbol, if defined, indicates to the C program that it should
506 * include netinet/in.h.
508 #$i_niin I_NETINET_IN /**/
511 * This symbol, if defined, indicates to the C program that it should
515 * This symbol, if defined, indicates to the C program that struct passwd
519 * This symbol, if defined, indicates to the C program that struct passwd
523 * This symbol, if defined, indicates to the C program that struct passwd
524 * contains pw_change.
527 * This symbol, if defined, indicates to the C program that struct passwd
531 * This symbol, if defined, indicates to the C program that struct passwd
532 * contains pw_expire.
535 #$d_pwquota PWQUOTA /**/
537 #$d_pwchange PWCHANGE /**/
538 #$d_pwclass PWCLASS /**/
539 #$d_pwexpire PWEXPIRE /**/
542 * This symbol, if defined, indicates to the C program that it should
545 #$i_sysdir I_SYSDIR /**/
548 * This symbol, if defined, indicates that sys/ioctl.h exists and should
551 #$i_sysioctl I_SYSIOCTL /**/
554 * This symbol, if defined, indicates to the C program that it should
555 * include sys/ndir.h.
557 #$i_sysndir I_SYSNDIR /**/
560 * This symbol is defined if the program should include <time.h>.
563 * This symbol is defined if the program should include <sys/time.h>.
566 * This symbol is defined if the program should include <sys/time.h>
567 * with KERNEL defined.
570 #$i_systime I_SYSTIME /**/
571 #$d_systimekernel SYSTIMEKERNEL /**/
574 * This symbol, if defined, indicates to the C program that it should
577 #$i_utime I_UTIME /**/
580 * This symbol, if defined, indicates to the C program that it should
583 #$i_varargs I_VARARGS /**/
586 * This symbol, if defined, indicates to the C program that it should
589 #$i_vfork I_VFORK /**/
592 * This symbol contains the size of an int, so that the C preprocessor
593 * can make decisions based on it.
595 #define INTSIZE $intsize /**/
598 * This symbol contains the number of bits of random number the rand()
599 * function produces. Usual values are 15, 16, and 31.
601 #define RANDBITS $randbits /**/
604 * This symbol holds the name of the directory in which the user wants
605 * to put publicly executable scripts for the package in question. It
606 * is often a directory that is mounted across diverse architectures.
608 #define SCRIPTDIR "$scriptdir" /**/
611 * This symbol contains an list of signal names in order.
613 #define SIG_NAME "`echo $sig_name | sed 's/ /","/g'`" /**/
616 * This symbol is defined to be the type of char used in stdio.h.
617 * It has the values "unsigned char" or "char".
619 #define STDCHAR $stdchar /**/
622 * This symbol has a value like uid_t, int, ushort, or whatever type is
623 * used to declare user ids in the kernel.
625 #define UIDTYPE $uidtype /**/
628 * This symbol indicates how much support of the void type is given by this
629 * compiler. What various bits mean:
631 * 1 = supports declaration of void
632 * 2 = supports arrays of pointers to functions returning void
633 * 4 = supports comparisons between pointers to void functions and
634 * addresses of void functions
636 * The package designer should define VOIDUSED to indicate the requirements
637 * of the package. This can be done either by #defining VOIDUSED before
638 * including config.h, or by defining defvoidused in Myinit.U. If the
639 * latter approach is taken, only those flags will be tested. If the
640 * level of void support necessary is not present, defines void to int.
643 #define VOIDUSED $defvoidused
645 #define VOIDFLAGS $voidflags
646 #if (VOIDFLAGS & VOIDUSED) != VOIDUSED
647 #$define void int /* is void to be avoided? */
648 #$define M_VOID /* Xenix strikes again */
652 * This symbol contains the name of the private library for this package.
653 * The library is private in the sense that it needn't be in anyone's
654 * execution path, but it should be accessible by the world. The program
655 * should be prepared to do ~ expansion.
657 #define PRIVLIB "$privlib" /**/