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 crypt routine is available
102 * to encrypt passwords and the like.
107 * This symbol, if defined, indicates that the C-shell exists.
108 * If defined, contains the full pathname of csh.
110 #$d_csh CSH "$csh" /**/
113 * This symbol, if defined, indicates that the C program should
114 * check the script that it is executing for setuid/setgid bits, and
115 * attempt to emulate setuid/setgid on systems that have disabled
116 * setuid #! scripts because the kernel can't do it securely.
117 * It is up to the package designer to make sure that this emulation
118 * is done securely. Among other things, it should do an fstat on
119 * the script it just opened to make sure it really is a setuid/setgid
120 * script, it should make sure the arguments passed correspond exactly
121 * to the argument on the #! line, and it should not trust any
122 * subprocesses to which it must pass the filename rather than the
123 * file descriptor of the script to be executed.
125 #$d_dosuid DOSUID /**/
128 * This symbol, if defined, indicates that the dup2 routine is available
129 * to dup file descriptors. Otherwise you should use dup().
134 * This symbol, if defined, indicates that the fchmod routine is available
135 * to change mode of opened files. If unavailable, use chmod().
137 #$d_fchmod FCHMOD /**/
140 * This symbol, if defined, indicates that the fchown routine is available
141 * to change ownership of opened files. If unavailable, use chown().
143 #$d_fchown FCHOWN /**/
146 * This symbol, if defined, indicates to the C program that it should
152 * This symbol, if defined, indicates that the flock() routine is
153 * available to do file locking.
158 * This symbol, if defined, indicates that the getgroups() routine is
159 * available to get the list of process groups. If unavailable, multiple
160 * groups are probably not supported.
162 #$d_getgrps GETGROUPS /**/
165 * This symbol, if defined, indicates that the gethostent() routine is
166 * available to lookup host names in some data base or other.
168 #$d_gethent GETHOSTENT /**/
171 * This symbol, if defined, indicates that the getpgrp() routine is
172 * available to get the current process group.
174 #$d_getpgrp GETPGRP /**/
177 * This symbol, if defined, indicates that the getpgrp2() (as in DG/UX)
178 * routine is available to get the current process group.
180 #$d_getpgrp2 GETPGRP2 /**/
183 * This symbol, if defined, indicates that the getpriority() routine is
184 * available to get a process's priority.
186 #$d_getprior GETPRIORITY /**/
189 * This symbol, if defined, indicates that the htons routine (and friends)
190 * are available to do network order byte swapping.
193 * This symbol, if defined, indicates that the htonl routine (and friends)
194 * are available to do network order byte swapping.
197 * This symbol, if defined, indicates that the ntohs routine (and friends)
198 * are available to do network order byte swapping.
201 * This symbol, if defined, indicates that the ntohl routine (and friends)
202 * are available to do network order byte swapping.
210 * This preprocessor symbol is defined, along with rindex, if the system
211 * uses the strchr and strrchr routines instead.
214 * This preprocessor symbol is defined, along with index, if the system
215 * uses the strchr and strrchr routines instead.
217 #$d_index index strchr /* cultural */
218 #$d_index rindex strrchr /* differences? */
221 * This symbol, if defined, indicates that sys/ioctl.h exists and should
227 * This symbol, if defined, indicates that the killpg routine is available
228 * to kill process groups. If unavailable, you probably should use kill
229 * with a negative process number.
231 #$d_killpg KILLPG /**/
234 * This symbol, if defined, indicates that the lstat() routine is
235 * available to do file locking.
240 * This symbol, if defined, indicates that the memcmp routine is available
241 * to compare blocks of memory. If undefined, roll your own.
243 #$d_memcmp MEMCMP /**/
246 * This symbol, if defined, indicates that the memcpy routine is available
247 * to copy blocks of memory. Otherwise you should probably use bcopy().
248 * If neither is defined, roll your own.
250 #$d_memcpy MEMCPY /**/
253 * This symbol, if defined, indicates that the mkdir routine is available
254 * to create directories. Otherwise you should fork off a new process to
260 * This symbol, if defined, indicates that ndbm.h exists and should
266 * This symbol, if defined, indicates that dbm.h exists and should
272 * This symbol, if defined, indicates that the readdir routine is available
273 * from the C library to create directories.
275 #$d_readdir READDIR /**/
278 * This symbol, if defined, indicates that the rename routine is available
279 * to rename files. Otherwise you should do the unlink(), link(), unlink()
282 #$d_rename RENAME /**/
285 * This symbol, if defined, indicates that the rmdir routine is available
286 * to remove directories. Otherwise you should fork off a new process to
292 * This symbol, if defined, indicates that the setegid routine is available
293 * to change the effective gid of the current program.
295 #$d_setegid SETEGID /**/
298 * This symbol, if defined, indicates that the seteuid routine is available
299 * to change the effective uid of the current program.
301 #$d_seteuid SETEUID /**/
304 * This symbol, if defined, indicates that the setpgrp() routine is
305 * available to set the current process group.
307 #$d_setpgrp SETPGRP /**/
310 * This symbol, if defined, indicates that the setpgrp2() (as in DG/UX)
311 * routine is available to set the current process group.
313 #$d_setpgrp2 SETPGRP2 /**/
316 * This symbol, if defined, indicates that the setpriority() routine is
317 * available to set a process's priority.
319 #$d_setprior SETPRIORITY /**/
322 * This symbol, if defined, indicates that the setregid routine is
323 * available to change the real and effective gid of the current program.
326 * This symbol, if defined, indicates that the setresgid routine is
327 * available to change the real, effective and saved gid of the current
330 #$d_setregid SETREGID /**/
331 #$d_setresgid SETRESGID /**/
334 * This symbol, if defined, indicates that the setreuid routine is
335 * available to change the real and effective uid of the current program.
338 * This symbol, if defined, indicates that the setresuid routine is
339 * available to change the real, effective and saved uid of the current
342 #$d_setreuid SETREUID /**/
343 #$d_setresuid SETRESUID /**/
346 * This symbol, if defined, indicates that the setrgid routine is available
347 * to change the real gid of the current program.
349 #$d_setrgid SETRGID /**/
352 * This symbol, if defined, indicates that the setruid routine is available
353 * to change the real uid of the current program.
355 #$d_setruid SETRUID /**/
358 * This symbol, if defined, indicates that the BSD socket interface is
362 * This symbol, if defined, indicates that the BSD socketpair call is
366 * This symbol, if defined, indicates that the 4.1c BSD socket interface
367 * is supported instead of the 4.2/4.3 BSD socket interface.
369 #$d_socket SOCKET /**/
371 #$d_sockpair SOCKETPAIR /**/
373 #$d_oldsock OLDSOCKET /**/
376 * This symbol is defined if this system has a stat structure declaring
377 * st_blksize and st_blocks.
379 #$d_statblks STATBLOCKS /**/
382 * This symbol is defined if this system has a FILE structure declaring
383 * _ptr and _cnt in stdio.h.
385 #$d_stdstdio STDSTDIO /**/
388 * This symbol, if defined, indicates that this C compiler knows how
389 * to copy structures. If undefined, you'll need to use a block copy
390 * routine of some sort instead.
392 #$d_strctcpy STRUCTCOPY /**/
395 * This symbol, if defined, indicates that the strerror() routine is
396 * available to translate error numbers to strings.
398 #$d_strerror STRERROR /**/
401 * This symbol, if defined, indicates that the symlink routine is available
402 * to create symbolic links.
404 #$d_symlink SYMLINK /**/
407 * This symbol, if defined, indicates that the syscall routine is available
408 * to call arbitrary system calls. If undefined, that's tough.
410 #$d_syscall SYSCALL /**/
413 * This symbol, if defined, indicates to the C program that it should
416 #$d_varargs VARARGS /**/
419 * This symbol, if defined, indicates that vfork() exists.
424 * This symbol is defined if this system declares "void (*signal())()" in
425 * signal.h. The old way was to declare it as "int (*signal())()". It
426 * is up to the package author to declare things correctly based on the
429 #$d_voidsig VOIDSIG /**/
432 * This symbol, if defined, indicates that this C compiler knows about
433 * the volatile declaration.
435 #$d_volatile HASVOLATILE /**/
438 * This symbol, if defined, indicates that the vprintf routine is available
439 * to printf with a pointer to an argument list. If unavailable, you
440 * may need to write your own, probably in terms of _doprnt().
443 * This symbol is defined if this system has vsprintf() returning type
444 * (char*). The trend seems to be to declare it as "int vsprintf()". It
445 * is up to the package author to declare vsprintf correctly based on the
448 #$d_vprintf VPRINTF /**/
449 #$d_charvspr CHARVSPRINTF /**/
452 * This symbol, if defined, indicates that wait4() exists.
457 * This symbol has a value like gid_t, int, ushort, or whatever type is
458 * used to declare group ids in the kernel.
460 #define GIDTYPE $gidtype /**/
463 * This symbol, if defined, indicates to the C program that it should
467 * This symbol, if defined, indicates to the C program that the length
468 * of directory entry names is provided by a d_namlen field. Otherwise
469 * you need to do strlen() on the d_name field.
471 #$i_dirent I_DIRENT /**/
472 #$d_dirnamlen DIRNAMLEN /**/
475 * This symbol, if defined, indicates to the C program that it should
478 #$i_fcntl I_FCNTL /**/
481 * This symbol, if defined, indicates to the C program that it should
487 * This symbol, if defined, indicates to the C program that it should
488 * include netinet/in.h.
490 #$i_niin I_NETINET_IN /**/
493 * This symbol, if defined, indicates to the C program that it should
497 * This symbol, if defined, indicates to the C program that struct passwd
501 * This symbol, if defined, indicates to the C program that struct passwd
505 * This symbol, if defined, indicates to the C program that struct passwd
506 * contains pw_change.
509 * This symbol, if defined, indicates to the C program that struct passwd
513 * This symbol, if defined, indicates to the C program that struct passwd
514 * contains pw_expire.
517 #$d_pwquota PWQUOTA /**/
519 #$d_pwchange PWCHANGE /**/
520 #$d_pwclass PWCLASS /**/
521 #$d_pwexpire PWEXPIRE /**/
524 * This symbol, if defined, indicates to the C program that it should
527 #$i_sysdir I_SYSDIR /**/
530 * This symbol, if defined, indicates that sys/ioctl.h exists and should
533 #$i_sysioctl I_SYSIOCTL /**/
536 * This symbol, if defined, indicates to the C program that it should
537 * include sys/ndir.h.
539 #$i_sysndir I_SYSNDIR /**/
542 * This symbol is defined if the program should include <time.h>.
545 * This symbol is defined if the program should include <sys/time.h>.
548 * This symbol is defined if the program should include <sys/time.h>
549 * with KERNEL defined.
552 #$i_systime I_SYSTIME /**/
553 #$d_systimekernel SYSTIMEKERNEL /**/
556 * This symbol, if defined, indicates to the C program that it should
559 #$i_utime I_UTIME /**/
562 * This symbol, if defined, indicates to the C program that it should
565 #$i_varargs I_VARARGS /**/
568 * This symbol, if defined, indicates to the C program that it should
571 #$i_vfork I_VFORK /**/
574 * This symbol contains the size of an int, so that the C preprocessor
575 * can make decisions based on it.
577 #define INTSIZE $intsize /**/
580 * This symbol contains the number of bits of random number the rand()
581 * function produces. Usual values are 15, 16, and 31.
583 #define RANDBITS $randbits /**/
586 * This symbol contains an list of signal names in order.
588 #define SIG_NAME "`echo $sig_name | sed 's/ /","/g'`" /**/
591 * This symbol is defined to be the type of char used in stdio.h.
592 * It has the values "unsigned char" or "char".
594 #define STDCHAR $stdchar /**/
597 * This symbol has a value like uid_t, int, ushort, or whatever type is
598 * used to declare user ids in the kernel.
600 #define UIDTYPE $uidtype /**/
603 * This symbol indicates how much support of the void type is given by this
604 * compiler. What various bits mean:
606 * 1 = supports declaration of void
607 * 2 = supports arrays of pointers to functions returning void
608 * 4 = supports comparisons between pointers to void functions and
609 * addresses of void functions
611 * The package designer should define VOIDUSED to indicate the requirements
612 * of the package. This can be done either by #defining VOIDUSED before
613 * including config.h, or by defining defvoidused in Myinit.U. If the
614 * latter approach is taken, only those flags will be tested. If the
615 * level of void support necessary is not present, defines void to int.
618 #define VOIDUSED $defvoidused
620 #define VOIDFLAGS $voidflags
621 #if (VOIDFLAGS & VOIDUSED) != VOIDUSED
622 #$define void int /* is void to be avoided? */
623 #$define M_VOID /* Xenix strikes again */
627 * This symbol contains the name of the private library for this package.
628 * The library is private in the sense that it needn't be in anyone's
629 * execution path, but it should be accessible by the world. The program
630 * should be prepared to do ~ expansion.
632 #define PRIVLIB "$privlib" /**/