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