|
|
1.1 root 1: /* Configuration header file for Taylor UUCP. -*- C -*- */
2:
3: /* Set MAIL_PROGRAM to a program which takes a mail address as an
4: argument and accepts a mail message to send to that address on
5: stdin (e.g. "/bin/mail"). */
6: #define MAIL_PROGRAM undefined
7:
8: /* Set ECHO_PROGRAM to a program which echoes its arguments; if echo
9: is a shell builtin you can just use "echo". */
10: #define ECHO_PROGRAM undefined
11:
12: /* The following macros indicate what header files you have. Set the
13: macro to 1 if you have the corresponding header file, or 0 if you
14: do not. */
15: #define HAVE_STDDEF_H 0 /* <stddef.h> */
16: #define HAVE_STRING_H 0 /* <string.h> */
17: #define HAVE_STRINGS_H 0 /* <strings.h> */
18: #define HAVE_UNISTD_H 0 /* <unistd.h> */
19: #define HAVE_STDLIB_H 0 /* <stdlib.h> */
20: #define HAVE_LIMITS_H 0 /* <limits.h> */
21: #define HAVE_TIME_H 0 /* <time.h> */
22: #define HAVE_SYS_WAIT_H 0 /* <sys/wait.h> */
23: #define HAVE_SYS_IOCTL_H 0 /* <sys/ioctl.h> */
24: #define HAVE_DIRENT_H 0 /* <dirent.h> */
25: #define HAVE_MEMORY_H 0 /* <memory.h> */
26: #define HAVE_SYS_PARAM_H 0 /* <sys/param.h> */
27: #define HAVE_UTIME_H 0 /* <utime.h> */
28: #define HAVE_FCNTL_H 0 /* <fcntl.h> */
29: #define HAVE_SYS_FILE_H 0 /* <sys/file.h> */
30: #define HAVE_SYS_TIMES_H 0 /* <sys/times.h> */
31: #define HAVE_LIBC_H 0 /* <libc.h> */
32: #define HAVE_SYSEXITS_H 0 /* <sysexits.h> */
33: #define HAVE_POLL_H 0 /* <poll.h> */
34: #define HAVE_TIUSER_H 0 /* <tiuser.h> */
35: #define HAVE_XTI_H 0 /* <xti.h> */
36: #define HAVE_SYS_TLI_H 0 /* <sys/tli.h> */
37: #define HAVE_STROPTS_H 0 /* <stropts.h> */
38: #define HAVE_FTW_H 0 /* <ftw.h> */
39: #define HAVE_GLOB_H 0 /* <glob.h> */
40: #define HAVE_SYS_SELECT_H 0 /* <sys/select.h> */
41: #define HAVE_SYS_TYPES_TCP_H 0 /* <sys/types.tcp.h> */
42:
43: /* If major and minor are not defined in <sys/types.h>, but are in
44: <sys/mkdev.h>, set MAJOR_IN_MKDEV to 1. If they are in
45: <sys/sysmacros.h>, set MAJOR_IN_SYSMACROS to 1. */
46: #define MAJOR_IN_MKDEV 0
47: #define MAJOR_IN_SYSMACROS 0
48:
49: /* If the macro offsetof is not defined in <stddef.h>, you may give it
50: a definition here. If you do not, the code will use a definition
51: (in uucp.h) that should be fairly portable. */
52: /* #define offsetof */
53:
54: /* Set RETSIGTYPE to the return type of a signal handler. On newer
55: systems this will be void; some older systems use int. */
56: #define RETSIGTYPE void
57:
58: /* Set HAVE_SYS_TIME_AND_TIME_H to 1 if <time.h> and <sys/time.h> can both
59: be included in a single source file; if you don't have either or both of
60: them, it doesn't matter what you set this to. */
61: #define HAVE_SYS_TIME_AND_TIME_H 0
62:
63: /* Set HAVE_TERMIOS_AND_SYS_IOCTL_H to 1 if <termios.h> and <sys/ioctl.h>
64: can both be included in a single source file; if you don't have either
65: or both of them, it doesn't matter what you set this to. */
66: #define HAVE_TERMIOS_AND_SYS_IOCTL_H 0
67:
68: /* If you are configuring by hand, you should set one of the terminal
69: driver options in policy.h. If you are autoconfiguring, the script
70: will check whether your system defines CBREAK, which is a terminal
71: setting; if your system supports CBREAK, and you don't set a terminal
72: driver in policy.h, the code will assume that you have a BSD style
73: terminal driver. */
74: #define HAVE_CBREAK 0
75:
76: /* The package needs several standard types. If you are using the
77: configure script, it will look in standard places for these types,
78: and give default definitions for them here if it doesn't find them.
79: The default definitions should work on most systems, but you may
80: want to check them. If you are configuring by hand, you will have
81: to figure out whether the types are defined on your system, and
82: what they should be defined to.
83:
84: Any type that is not defined on your system should get a macro
85: definition. The definition should be of the name of the type in
86: all capital letters. For example, #define PID_T int. If the type
87: is defined in a standard header file, the macro name should not be
88: defined. */
89:
90: /* The type pid_t is used to hold a process ID number. It is normally
91: defined in <sys/types.h>. This is the type returned by the
92: functions fork or getpid. Usually int will work fine. */
93: #undef PID_T
94:
95: /* The type uid_t is used to hold a user ID number. It is normally
96: defined in <sys/types.h>. This is the type returned by the getuid
97: function. Usually int will work fine. */
98: #undef UID_T
99:
100: /* The type gid_t is used to hold a group ID number. It is sometimes
101: defined in <sys/types.h>. This is the type returned by the getgid
102: function. Usually int will work fine. */
103: #undef GID_T
104:
105: /* The type off_t is used to hold an offset in a file. It is sometimes
106: defined in <sys/types.h>. This is the type of the second argument to
107: the lseek function. Usually long will work fine. */
108: #undef OFF_T
109:
110: /* Set HAVE_SIG_ATOMIC_T_IN_SIGNAL_H if the type sig_atomic_t is defined
111: in <signal.h> as required by ANSI C. */
112: #define HAVE_SIG_ATOMIC_T_IN_SIGNAL_H 0
113:
114: /* Set HAVE_SIG_ATOMIC_T_IN_TYPES_H if the type sig_atomic_t is defined
115: in <sys/types.h>. This is ignored if HAVE_SIG_ATOMIC_T_IN_SIGNAL_H is
116: set to 1. */
117: #define HAVE_SIG_ATOMIC_T_IN_TYPES_H 0
118:
119: /* The type sig_atomic_t is used to hold a value which may be
120: referenced in a single atomic operation. If it is not defined in
121: either <signal.h> or <sys/types.h>, you may want to give it a
122: definition here. If you don't, the code will use char. If your
123: compiler does not support sig_atomic_t, there is no type which is
124: really correct; fortunately, for this package it does not really
125: matter very much. */
126: #undef SIG_ATOMIC_T
127:
128: /* Set HAVE_SIZE_T_IN_STDDEF_H to 1 if the type size_t is defined in
129: <stddef.h> as required by ANSI C. */
130: #define HAVE_SIZE_T_IN_STDDEF_H 0
131:
132: /* Set HAVE_SIZE_T_IN_TYPES_H to 1 if the type size_t is defined in
133: <sys/types.h>. This is ignored if HAVE_SIZE_T_IN_STDDEF_H is set
134: to 1. */
135: #define HAVE_SIZE_T_IN_TYPES_H 0
136:
137: /* The type size_t is used to hold the size of an object. In
138: particular, an argument of this type is passed as the size argument
139: to the malloc and realloc functions. If size_t is not defined in
140: either <stddef.h> or <sys/types.h>, you may want to give it a
141: definition here. If you don't, the code will use unsigned. */
142: #undef SIZE_T
143:
144: /* Set HAVE_TIME_T_IN_TIME_H to 1 if the type time_t is defined in
145: <time.h>, as required by the ANSI C standard. */
146: #define HAVE_TIME_T_IN_TIME_H 0
147:
148: /* Set HAVE_TIME_T_IN_TYPES_H to 1 if the type time_t is defined in
149: <sys/types.h>. This is ignored if HAVE_TIME_T_IN_TIME_H is set to
150: 1. */
151: #define HAVE_TIME_T_IN_TYPES_H 0
152:
153: /* When Taylor UUCP is talking to another instance of itself, it will
154: tell the other side the size of a file before it is transferred.
155: If the package can determine how much disk space is available, it
156: will use this information to avoid filling up the disk. Define one
157: of the following macros to tell the code how to determine the
158: amount of available disk space. It is possible that none of these
159: are appropriate; it will do no harm to use none of them, but, of
160: course, nothing will then prevent the package from filling up the
161: disk. Note that this space check is only useful when talking to
162: another instance of Taylor UUCP.
163:
164: STAT_STATVFS statvfs function
165: STAT_STATFS2_BSIZE two argument statfs function with f_bsize field
166: STAT_STATFS2_FSIZE two argument statfs function with f_fsize field
167: STAT_STATFS2_FS_DATA two argument statfs function with fd_req field
168: STAT_STATFS4 four argument statfs function
169: STAT_USTAT the ustat function with 512 byte blocks. */
170: #define STAT_STATVFS 0
171: #define STAT_STATFS2_BSIZE 0
172: #define STAT_STATFS2_FSIZE 0
173: #define STAT_STATFS2_FS_DATA 0
174: #define STAT_STATFS4 0
175: #define STAT_USTAT 0
176:
177: /* Set HAVE_VOID to 1 if the compiler supports declaring functions with
178: a return type of void and casting values to void. */
179: #define HAVE_VOID 0
180:
181: /* Set HAVE_UNSIGNED_CHAR to 1 if the compiler supports the type unsigned
182: char. */
183: #define HAVE_UNSIGNED_CHAR 0
184:
185: /* Set HAVE_ERRNO_DECLARATION to 1 if errno is declared in <errno.h>. */
186: #define HAVE_ERRNO_DECLARATION 0
187:
188: /* There are now a number of functions to check for. For each of
189: these, the macro HAVE_FUNC should be set to 1 if your system has
190: FUNC. For example, HAVE_VFPRINTF should be set to 1 if your system
191: has vfprintf, 0 otherwise. */
192:
193: /* Taylor UUCP will take advantage of the following functions if they
194: are available, but knows how to deal with their absence. */
195: #define HAVE_VFPRINTF 0
196: #define HAVE_FTRUNCATE 0
197: #define HAVE_LTRUNC 0
198: #define HAVE_WAITPID 0
199: #define HAVE_WAIT4 0
200: #define HAVE_GLOB 0
201: #define HAVE_SETREUID 0
202:
203: /* There are several functions which are replaced in the subdirectory
204: lib. If they are missing, the configure script will automatically
205: add them to lib/Makefile to force them to be recompiled. If you
206: are configuring by hand, you will have to do this yourself. The
207: string @LIBOBJS@ in lib/Makefile.in should be replaced by a list of
208: object files in lib/Makefile. The following comments tell you
209: which object file names to add (they are generally fairly obvious,
210: given that the file names have no more than six characters before
211: the period). */
212:
213: /* For each of these functions, if it does not exist, the indicated
214: object file should be added to lib/Makefile. */
215: #define HAVE_BSEARCH 0 /* bsrch.o */
216: #define HAVE_GETLINE 0 /* getlin.o */
217: #define HAVE_MEMCHR 0 /* memchr.o */
218: #define HAVE_STRDUP 0 /* strdup.o */
219: #define HAVE_STRSTR 0 /* strstr.o */
220: #define HAVE_STRTOL 0 /* strtol.o */
221:
222: /* If neither of these functions exists, you should add bzero.o to
223: lib/Makefile. */
224: #define HAVE_BZERO 0
225: #define HAVE_MEMSET 0
226:
227: /* If neither of these functions exists, you should add memcmp.o to
228: lib/Makefile. */
229: #define HAVE_MEMCMP 0
230: #define HAVE_BCMP 0
231:
232: /* If neither of these functions exists, you should add memcpy.o to
233: lib/Makefile. */
234: #define HAVE_MEMCPY 0
235: #define HAVE_BCOPY 0
236:
237: /* If neither of these functions exists, you should add strcas.o to
238: lib/Makefile. */
239: #define HAVE_STRCASECMP 0
240: #define HAVE_STRICMP 0
241:
242: /* If neither of these functions exists, you should add strncs.o to
243: lib/Makefile. */
244: #define HAVE_STRNCASECMP 0
245: #define HAVE_STRNICMP 0
246:
247: /* If neither of these functions exists, you should add strchr.o to
248: lib/Makefile. */
249: #define HAVE_STRCHR 0
250: #define HAVE_INDEX 0
251:
252: /* If neither of these functions exists, you should add strrch.o to
253: lib/Makefile. */
254: #define HAVE_STRRCHR 0
255: #define HAVE_RINDEX 0
256:
257: /* There are also Unix specific functions which are replaced in the
258: subdirectory unix. If they are missing, the configure script will
259: automatically add them to unix/Makefile to force them to be
260: recompiled. If you are configuring by hand, you will have to do
261: this yourself. The string @UNIXOBJS@ in unix/Makefile.in should be
262: replaced by a list of object files in unix/Makefile. The following
263: comments tell you which object file names to add. */
264:
265: /* For each of these functions, if it does not exist, the indicated
266: object file should be added to unix/Makefile. */
267: #define HAVE_OPENDIR 0 /* dirent.o */
268: #define HAVE_DUP2 0 /* dup2.o */
269: #define HAVE_FTW 0 /* ftw.o */
270: #define HAVE_REMOVE 0 /* remove.o */
271: #define HAVE_RENAME 0 /* rename.o */
272: #define HAVE_STRERROR 0 /* strerr.o */
273:
274: /* The code needs to know how to create directories. If you have the
275: mkdir function, set HAVE_MKDIR to 1 and replace @UUDIR@ in
276: Makefile.in with '# ' (the configure script will set @UUDIR@
277: according to the variable UUDIR). Otherwise, set HAVE_MKDIR to 0,
278: remove @UUDIR@ from Makefile.in, set MKDIR_PROGRAM to the name of
279: the program which will create a directory named on the command line
280: (e.g., "/bin/mkdir"), and add mkdir.o to the @UNIXOBJS@ string in
281: unix/Makefile.in. */
282: #define HAVE_MKDIR 0
283: #define MKDIR_PROGRAM unused
284:
285: /* The code also needs to know how to remove directories. If you have
286: the rmdir function, set HAVE_RMDIR to 1. Otherwise, set
287: RMDIR_PROGRAM to the name of the program which will remove a
288: directory named on the command line (e.g., "/bin/rmdir") and add
289: rmdir.o to the @UNIXOBJS@ string in unix/Makefile.in. */
290: #define HAVE_RMDIR 0
291: #define RMDIR_PROGRAM unused
292:
293: /* The code needs to know to how to get the name of the current
294: directory. If getcwd is available it will be used, otherwise if
295: getwd is available it will be used. Otherwise, set PWD_PROGRAM to
296: the name of the program which will print the name of the current
297: working directory (e.g., "/bin/pwd") and add getcwd.o to the
298: @UNIXOBJS@ string in unix/Makefile.in. */
299: #define HAVE_GETCWD 0
300: #define HAVE_GETWD 0
301: #define PWD_PROGRAM unused
302:
303: /* If you have either sigsetjmp or setret, it will be used instead of
304: setjmp. These functions will only be used if your system restarts
305: system calls after interrupts (see HAVE_RESTARTABLE_SYSCALLS,
306: below). */
307: #define HAVE_SIGSETJMP 0
308: #define HAVE_SETRET 0
309:
310: /* The code needs to know what function to use to set a signal
311: handler. If will try to use each of the following functions in
312: turn. If none are available, it will use signal, which is assumed
313: to always exist. */
314: #define HAVE_SIGACTION 0
315: #define HAVE_SIGVEC 0
316: #define HAVE_SIGSET 0
317:
318: /* If the code is going to use sigvec (HAVE_SIGACTION is 0 and
319: HAVE_SIGVEC is 1), then HAVE_SIGVEC_SV_FLAGS must be set to 1 if
320: the sigvec structure contains the sv_flags field, or 0 if the
321: sigvec structure contains the sv_onstack field. If the code is not
322: going to use sigvec, it doesn't matter what this is set to. */
323: #define HAVE_SIGVEC_SV_FLAGS 0
324:
325: /* The code will try to use each of the following functions in turn
326: when blocking signals from delivery. If none are available, a
327: relatively unimportant race condition will exist. */
328: #define HAVE_SIGPROCMASK 0
329: #define HAVE_SIGBLOCK 0
330: #define HAVE_SIGHOLD 0
331:
332: /* If you have either of the following functions, it will be used to
333: determine the number of file descriptors which may be open.
334: Otherwise, the code will use OPEN_MAX if defined, then NOFILE if
335: defined, then 20. */
336: #define HAVE_GETDTABLESIZE 0
337: #define HAVE_SYSCONF 0
338:
339: /* The code will use one of the following functions when detaching
340: from a terminal. One of these must exist. */
341: #define HAVE_SETPGRP 0
342: #define HAVE_SETSID 0
343:
344: /* If you do not specify the local node name in the main configuration
345: file, Taylor UUCP will try to use each of the following functions
346: in turn. If neither is available, you must specify the local node
347: name in the configuration file. */
348: #define HAVE_GETHOSTNAME 0
349: #define HAVE_UNAME 0
350:
351: /* The code will try to use each of the following functions in turn to
352: determine the current time. If none are available, it will use
353: time, which is assumed to always exist. */
354: #define HAVE_GETTIMEOFDAY 0
355: #define HAVE_FTIME 0
356:
357: /* If neither gettimeofday nor ftime is available, the code will use
358: times (if available) to measure a span of time. See also the
359: discussion of TIMES_TICK in policy.h. */
360: #define HAVE_TIMES 0
361:
362: /* When a chat script requests a pause of less than a second with \p,
363: Taylor UUCP will try to use each of the following functions in
364: turn. If none are available, it will sleep for a full second.
365: Also, the (non-portable) tstuu program requires either select or
366: poll. */
367: #define HAVE_NAPMS 0
368: #define HAVE_NAP 0
369: #define HAVE_USLEEP 0
370: #define HAVE_POLL 0
371: #define HAVE_SELECT 0
372:
373: /* If the getgrent function is available, it will be used to determine
374: all the groups a user belongs to when checking file access
375: permissions. */
376: #define HAVE_GETGRENT 0
377:
378: /* If the socket function is available, TCP support code will be
379: compiled in. */
380: #define HAVE_SOCKET 0
381:
382: /* If the t_open function is available, TLI support code will be
383: compiled in. This may require adding a library, such as -lnsl or
384: -lxti, to the Makefile variables LIBS. */
385: #define HAVE_T_OPEN 0
386:
387: /* That's the end of the list of the functions. Now there are a few
388: last miscellaneous items. */
389:
390: /* On some systems the following functions are declared in such a way
391: that the code cannot make a simple extern. On other systems, these
392: functions are not declared at all, and the extern is required. If
393: a declaration of the function, as shown, compiles on your system,
394: set the value to 1. Not all functions declared externally are
395: listed here, only the ones with which I have had trouble. */
396: /* extern long times (); */
397: #define TIMES_DECLARATION_OK 0
398: /* extern struct passwd *getpwnam (); */
399: #define GETPWNAM_DECLARATION_OK 0
400: /* extern struct passwd *getpwuid (); */
401: #define GETPWUID_DECLARATION_OK 0
402: /* extern struct group *getgrent (); */
403: #define GETGRENT_DECLARATION_OK 0
404:
405: /* Set HAVE_BSD_PGRP to 1 if your getpgrp call takes 1 argument and
406: your setpgrp calls takes 2 arguments (on System V they generally
407: take no arguments). You can safely set this to 1 on System V,
408: provided the call will compile without any errors. */
409: #define HAVE_BSD_PGRP 0
410:
411: /* Set HAVE_UNION_WAIT to 1 if union wait is defined in the header
412: file <sys/wait.h>. */
413: #define HAVE_UNION_WAIT 0
414:
415: /* Set HAVE_LONG_FILE_NAMES to 1 if the system supports file names
416: longer than 14 characters. */
417: #define HAVE_LONG_FILE_NAMES 0
418:
419: /* If slow system calls are restarted after interrupts, set
420: HAVE_RESTARTABLE_SYSCALLS to 1. This is ignored if HAVE_SIGACTION
421: is 1 or if HAVE_SIGVEC is 1 and HAVE_SIGVEC_SV_FLAGS is 1 and
422: SV_INTERRUPT is defined in <signal.h>. In both of these cases
423: system calls can be prevented from restarting. */
424: #define HAVE_RESTARTABLE_SYSCALLS 0
425:
426: /* Some systems supposedly need the following macros to be defined.
427: These are handled by the configure script (it will turn #undef into
428: #define when appropriate, which is why the peculiar #ifndef #undef
429: construction is used). If you are configuring by hand, you may add
430: appropriate definitions here, or just add them to CFLAGS when
431: running make. */
432: #ifndef _ALL_SOURCE
433: #undef _ALL_SOURCE
434: #endif
435: #ifndef _POSIX_SOURCE
436: #undef _POSIX_SOURCE
437: #endif
438: #ifndef _MINIX
439: #undef _MINIX
440: #endif
441: #ifndef _POSIX_1_SOURCE
442: #undef _POSIX_1_SOURCE
443: #endif
This archive runs on limited infrastructure. Preserving old code on modern bandwidth. Automated agents are requested to crawl responsibly.