1 /* config.h.in. Generated from configure.in by autoheader. */
6 /* Define to 1 if the `syslog' function returns a non-zero int to denote
10 /* Define to 1 if you want the insults from the "classic" version sudo. */
11 #undef CLASSIC_INSULTS
13 /* Define to one of `_getb67', `GETB67', `getb67' for Cray-2 and Cray-YMP
14 systems. This function is required for `alloca.c' support on those systems.
16 #undef CRAY_STACKSEG_END
18 /* Define to 1 if you want insults culled from the twisted minds of CSOps. */
21 /* Define to 1 if using `alloca.c'. */
24 /* Define to 1 if you want sudo to display "command not allowed" instead of
25 "command not found" when a command cannot be found. */
26 #undef DONT_LEAK_PATH_INFO
28 /* A colon-separated list of pathnames to be used as the editor for visudo. */
31 /* Define to 1 if you want visudo to honor the EDITOR and VISUAL env
35 /* If defined, users in this group need not enter a passwd (ie "sudo"). */
38 /* Define to 1 if you want to require fully qualified hosts in sudoers. */
41 /* Define to 1 if you want insults from the "Goon Show". */
44 /* Define to 1 if you want 2001-like insults. */
47 /* Define to 1 if you use AFS. */
50 /* Define to 1 if you use AIX general authentication. */
53 /* Define to 1 if you have `alloca', as a function or macro. */
56 /* Define to 1 if you have <alloca.h> and it should be used (not on Ultrix).
60 /* Define to 1 if you have the `asprintf' function. */
63 /* Define to 1 if you have the `authenticate' function. */
64 #undef HAVE_AUTHENTICATE
66 /* Define to 1 if you have the `auth_challenge' function. */
67 #undef HAVE_AUTH_CHALLENGE
69 /* Define to 1 if you have the `bigcrypt' function. */
72 /* Define to 1 if you use BSD authentication. */
73 #undef HAVE_BSD_AUTH_H
75 /* Define to 1 if you have the `closefrom' function. */
78 /* Define to 1 if you use OSF DCE. */
81 /* Define to 1 if your `DIR' contains dd_fd. */
84 /* Define to 1 if you have the `dgettext' function. */
87 /* Define to 1 if you have the <dirent.h> header file, and it defines `DIR'.
91 /* Define to 1 if you have the `dirfd' function or macro. */
94 /* Define to 1 if you have the `dispcrypt' function. */
97 /* Define to 1 if you have the <err.h> header file. */
100 /* Define to 1 if your glob.h defines the GLOB_BRACE and GLOB_TILDE flags. */
101 #undef HAVE_EXTENDED_GLOB
103 /* Define to 1 if your system has the F_CLOSEM fcntl. */
104 #undef HAVE_FCNTL_CLOSEM
106 /* Define to 1 if you have the `flock' function. */
109 /* Define to 1 if you have the `fnmatch' function. */
112 /* Define to 1 if you have the `freeifaddrs' function. */
113 #undef HAVE_FREEIFADDRS
115 /* Define to 1 if you have the `fstat' function. */
118 /* Define to 1 if you have the `futime' function. */
121 /* Define to 1 if you have the `futimes' function. */
124 /* Define to 1 if you have the `futimesat' function. */
125 #undef HAVE_FUTIMESAT
127 /* Define to 1 if you use the FWTK authsrv daemon. */
130 /* Define to 1 if you have the `getaddrinfo' function. */
131 #undef HAVE_GETADDRINFO
133 /* Define to 1 if you have the `getauthuid' function. (ULTRIX 4.x shadow
135 #undef HAVE_GETAUTHUID
137 /* Define to 1 if you have the `getcwd' function. */
140 /* Define to 1 if you have the `getdomainname' function. */
141 #undef HAVE_GETDOMAINNAME
143 /* Define to 1 if you have the `getgroups' function. */
144 #undef HAVE_GETGROUPS
146 /* Define to 1 if you have the `getifaddrs' function. */
147 #undef HAVE_GETIFADDRS
149 /* Define to 1 if you have the `getprogname' function. */
150 #undef HAVE_GETPROGNAME
152 /* Define to 1 if you have the `getprpwnam' function. (SecureWare-style shadow
154 #undef HAVE_GETPRPWNAM
156 /* Define to 1 if you have the `getpwanam' function. (SunOS 4.x shadow
158 #undef HAVE_GETPWANAM
160 /* Define to 1 if you have the `getspnam' function (SVR4-style shadow
164 /* Define to 1 if you have the `getspwuid' function. (HP-UX <= 9.X shadow
166 #undef HAVE_GETSPWUID
168 /* Define to 1 if you have the `gettimeofday' function. */
169 #undef HAVE_GETTIMEOFDAY
171 /* Define to 1 if you have the `glob' function. */
174 /* Define to 1 if your Kerberos is Heimdal. */
177 /* Define to 1 if <netinet/in.h> contains struct in6_addr. */
180 /* Define to 1 if you have the `initgroups' function. */
181 #undef HAVE_INITGROUPS
183 /* Define to 1 if you have the `initprivs' function. */
184 #undef HAVE_INITPRIVS
186 /* Define to 1 if you have the `innetgr' function. */
189 /* Define to 1 if you have the <inttypes.h> header file. */
190 #undef HAVE_INTTYPES_H
192 /* Define if you have isblank(3). */
195 /* Define to 1 if you have the `iscomsec' function. (HP-UX >= 10.x check for
199 /* Define to 1 if you have the `issecure' function. (SunOS 4.x check for
203 /* Define to 1 if you use Kerberos IV. */
206 /* Define to 1 if you use Kerberos V. */
209 /* Define to 1 if you have the `krb5_init_secure_context' function. */
210 #undef HAVE_KRB5_INIT_SECURE_CONTEXT
212 /* Define to 1 if you have the `krb5_verify_user' function. */
213 #undef HAVE_KRB5_VERIFY_USER
215 /* Define to 1 if your LDAP needs <lber.h>. (OpenLDAP does not) */
218 /* Define to 1 if you use LDAP for sudoers. */
221 /* Define to 1 if you have the `ldap_initialize' function. */
222 #undef HAVE_LDAP_INITIALIZE
224 /* Define to 1 if you have the <ldap_ssl.h> header file. */
225 #undef HAVE_LDAP_SSL_H
227 /* Define to 1 if you have the `ldap_start_tls_s' function. */
228 #undef HAVE_LDAP_START_TLS_S
230 /* Define to 1 if you have the `ldapssl_init' function. */
231 #undef HAVE_LDAPSSL_INIT
233 /* Define to 1 if you have the `ldapssl_set_strength' function. */
234 #undef HAVE_LDAPSSL_SET_STRENGTH
236 /* Define to 1 if you have the `lockf' function. */
239 /* Define to 1 if you have the <login_cap.h> header file. */
240 #undef HAVE_LOGIN_CAP_H
242 /* Define if your compiler supports the "long long" type. */
243 #undef HAVE_LONG_LONG
245 /* Define to 1 if you have the `lrand48' function. */
248 /* Define to 1 if you have the `lsearch' function. */
251 /* Define to 1 if you have the <malloc.h> header file. */
254 /* Define to 1 if you have the `memchr' function. */
257 /* Define to 1 if you have the `memcpy' function. */
260 /* Define to 1 if you have the <memory.h> header file. */
263 /* Define to 1 if you have the `memrchr' function. */
266 /* Define to 1 if you have the `memset' function. */
269 /* Define to 1 if you have the `mkstemp' function. */
272 /* Define to 1 if you have the <mps/ldap_ssl.h> header file. */
273 #undef HAVE_MPS_LDAP_SSL_H
275 /* Define to 1 if you have the <ndir.h> header file, and it defines `DIR'. */
278 /* Define to 1 if you have the <netgroup.h> header file. */
279 #undef HAVE_NETGROUP_H
281 /* Define to 1 if you use NRL OPIE. */
284 /* Define to 1 if you use PAM authentication. */
287 /* Define to 1 if you have the <pam/pam_appl.h> header file. */
288 #undef HAVE_PAM_PAM_APPL_H
290 /* Define to 1 if you have the <paths.h> header file. */
293 /* Define to 1 if you have the <project.h> header file. */
294 #undef HAVE_PROJECT_H
296 /* Define to 1 if you have the `random' function. */
299 /* Define if your struct sockadr has an sa_len field. */
302 /* Define to 1 if you use SecurID for authentication. */
305 /* Define to 1 if you have the <security/pam_appl.h> header file. */
306 #undef HAVE_SECURITY_PAM_APPL_H
308 /* Define to 1 to enable SELinux RBAC support. */
311 /* Define to 1 if you have the `seteuid' function. */
314 /* Define to 1 if you have the `setlocale' function. */
315 #undef HAVE_SETLOCALE
317 /* Define to 1 if you have the `setresuid' function. */
318 #undef HAVE_SETRESUID
320 /* Define to 1 if you have the `setreuid' function. */
323 /* Define to 1 if you have the `setrlimit' function. */
324 #undef HAVE_SETRLIMIT
326 /* Define to 1 if you have the `setsid' function. */
329 /* Define to 1 if you have the `set_auth_parameters' function. */
330 #undef HAVE_SET_AUTH_PARAMETERS
332 /* Define to 1 if you use SIA authentication. */
335 /* Define to 1 if you have the `sia_ses_init' function. */
336 #undef HAVE_SIA_SES_INIT
338 /* Define to 1 if you have the `sigaction' function. */
339 #undef HAVE_SIGACTION
341 /* Define to 1 if <signal.h> has the sigaction_t typedef. */
342 #undef HAVE_SIGACTION_T
344 /* Define to 1 if the system has the type `sig_atomic_t'. */
345 #undef HAVE_SIG_ATOMIC_T
347 /* Define to 1 if you use S/Key. */
350 /* Define to 1 if your S/Key library has skeyaccess(). */
351 #undef HAVE_SKEYACCESS
353 /* Define to 1 if you have the `snprintf' function. */
356 /* Define to 1 if you have the <stdint.h> header file. */
359 /* Define to 1 if you have the <stdlib.h> header file. */
362 /* Define to 1 if you have the `strcasecmp' function. */
363 #undef HAVE_STRCASECMP
365 /* Define to 1 if you have the `strchr' function. */
368 /* Define to 1 if you have the `strerror' function. */
371 /* Define to 1 if you have the `strftime' function. */
374 /* Define to 1 if you have the <strings.h> header file. */
375 #undef HAVE_STRINGS_H
377 /* Define to 1 if you have the <string.h> header file. */
380 /* Define to 1 if you have the `strlcat' function. */
383 /* Define to 1 if you have the `strlcpy' function. */
386 /* Define to 1 if you have the `strrchr' function. */
389 /* Define to 1 if your struct stat has an st_mtim member */
392 /* Define to 1 if your struct stat uses an st__tim union */
395 /* Define to 1 if your struct stat has an st_mtimespec member */
396 #undef HAVE_ST_MTIMESPEC
398 /* Define to 1 if you have the `sysconf' function. */
401 /* Define to 1 if you have the <sys/bsdtypes.h> header file. */
402 #undef HAVE_SYS_BSDTYPES_H
404 /* Define to 1 if you have the <sys/dir.h> header file, and it defines `DIR'.
406 #undef HAVE_SYS_DIR_H
408 /* Define to 1 if you have the <sys/ndir.h> header file, and it defines `DIR'.
410 #undef HAVE_SYS_NDIR_H
412 /* Define to 1 if you have the <sys/select.h> header file. */
413 #undef HAVE_SYS_SELECT_H
415 /* Define to 1 if you have the <sys/sockio.h> header file. */
416 #undef HAVE_SYS_SOCKIO_H
418 /* Define to 1 if you have the <sys/stat.h> header file. */
419 #undef HAVE_SYS_STAT_H
421 /* Define to 1 if you have the <sys/types.h> header file. */
422 #undef HAVE_SYS_TYPES_H
424 /* Define to 1 if you have the <termios.h> header file and the `tcgetattr'
426 #undef HAVE_TERMIOS_H
428 /* Define to 1 if you have the <termio.h> header file. */
431 /* Define to 1 if you have struct timespec in sys/time.h */
434 /* Define to 1 if you have a timespecsub macro or function that takes two
435 arguments (not three) */
436 #undef HAVE_TIMESPECSUB2
438 /* Define to 1 if you have the `tzset' function. */
441 /* Define to 1 if you have the <unistd.h> header file. */
444 /* Define to 1 if you have the `utimes' function. */
447 /* Define to 1 if you have the <utime.h> header file. */
450 /* Define to 1 if you have the `vasprintf' function. */
451 #undef HAVE_VASPRINTF
453 /* Define to 1 if you have the `vsnprintf' function. */
454 #undef HAVE_VSNPRINTF
456 /* Define to 1 if you have the `wait3' function. */
459 /* Define to 1 if you have the `waitpid' function. */
462 /* Define to 1 if you have the `_innetgr' function. */
465 /* Define to 1 if your crt0.o defines the __progname symbol for you. */
466 #undef HAVE___PROGNAME
468 /* Define to 1 if you want the hostname to be entered into the log file. */
471 /* Define to 1 if you want to ignore '.' and empty PATH elements */
472 #undef IGNORE_DOT_PATH
474 /* The message given when a bad password is entered. */
475 #undef INCORRECT_PASSWORD
477 /* The syslog facility sudo will use. */
480 /* Define to SLOG_SYSLOG, SLOG_FILE, or SLOG_BOTH. */
483 /* Define if sizeof(long) == sizeof(long long). */
486 /* Define to 1 if you want a two line OTP (S/Key or OPIE) prompt. */
487 #undef LONG_OTP_PROMPT
489 /* Define to the sub-directory in which libtool stores uninstalled libraries.
493 /* The subject of the mail sent by sudo to the MAILTO user/address. */
496 /* The user or email address that sudo mail is sent to. */
499 /* The max number of chars per log file line (for line wrapping). */
502 /* Define to the max length of a uid_t in string context (excluding the NUL).
506 /* Define to 1 if you don't want sudo to prompt for a password by default. */
507 #undef NO_AUTHENTICATION
509 /* Define to 1 if you don't want users to get the lecture the first they user
513 /* Define to 1 if you don't want to use sudo's PAM session support. */
514 #undef NO_PAM_SESSION
516 /* Define to avoid runing the mailer as root. */
517 #undef NO_ROOT_MAILER
519 /* Define to 1 if root should not be allowed to use sudo. */
522 /* The default password prompt. */
525 /* The passwd prompt timeout (in minutes). */
526 #undef PASSWORD_TIMEOUT
528 /* Define to 1 to replace politically incorrect insults with less offensive
532 /* The syslog priority sudo will use for unsuccessful attempts/errors. */
535 /* The syslog priority sudo will use for successful attempts. */
538 /* Define as the return type of signal handlers (`int' or `void'). */
541 /* The user sudo should run commands as by default. */
544 /* Define to 1 to override the user's path with a built-in one. */
547 /* Define to 1 to send mail when the user is not allowed to run a command. */
548 #undef SEND_MAIL_WHEN_NOT_OK
550 /* Define to 1 to send mail when the user is not allowed to run sudo on this
552 #undef SEND_MAIL_WHEN_NO_HOST
554 /* Define to 1 to send mail when the user is not in the sudoers file. */
555 #undef SEND_MAIL_WHEN_NO_USER
557 /* Define to 1 if you want sudo to start a shell if given no arguments. */
558 #undef SHELL_IF_NO_ARGS
560 /* Define to 1 if you want sudo to set $HOME in shell mode. */
561 #undef SHELL_SETS_HOME
563 /* If using the C implementation of alloca, define if you know the
564 direction of stack growth for your system; otherwise it will be
565 automatically deduced at run-time.
566 STACK_DIRECTION > 0 => grows toward higher addresses
567 STACK_DIRECTION < 0 => grows toward lower addresses
568 STACK_DIRECTION = 0 => direction of growth unknown */
569 #undef STACK_DIRECTION
571 /* Define to 1 if you have the ANSI C header files. */
574 /* Define to 1 if the code in interfaces.c does not compile for you. */
575 #undef STUB_LOAD_INTERFACES
577 /* The umask that the root-run prog should use. */
580 /* The number of minutes before sudo asks for a password again. */
583 /* Define to 1 if you can safely include both <sys/time.h> and <time.h>. */
584 #undef TIME_WITH_SYS_TIME
586 /* The number of tries a user gets to enter their password. */
587 #undef TRIES_FOR_PASSWORD
589 /* Define to 1 if you want to insult the user for entering an incorrect
593 /* Define to 1 if you use GNU stow packaging. */
596 /* Define to 1 if you want a different ticket file for each tty. */
597 #undef USE_TTY_TICKETS
599 /* Define to "void" if your compiler supports void pointers, else use "char".
603 /* Define to avoid using the passwd/shadow file for authentication. */
604 #undef WITHOUT_PASSWD
606 /* Path to the ldap.conf file */
607 #undef _PATH_LDAP_CONF
609 /* Path to the ldap.secret file */
610 #undef _PATH_LDAP_SECRET
612 /* The fully qualified pathname of sudo_noexec.so */
613 #undef _PATH_SUDO_NOEXEC
615 /* Define to empty if `const' does not conform to ANSI C. */
618 /* Define if your system lacks the dev_t type. */
621 /* Define to `int' if <sys/types.h> doesn't define. */
624 /* Define if your system lacks the ino_t type. */
627 /* Define to `int' if <sys/types.h> does not define. */
630 /* Define to `int' if <signal.h> does not define. */
633 /* Define if your system lacks the size_t type. */
636 /* Define if your system lacks the ssize_t type. */
639 /* Define to `int' if <sys/types.h> doesn't define. */
642 /* Define to the type of elements in the array set by `getgroups'.
643 Usually this is either `int' or `gid_t'. */
646 /* Define to empty if the keyword `volatile' does not work. Warning: valid
647 code using `volatile' can become incorrect without. Disable with care. */
651 * Macros to pull sec and nsec parts of mtime from struct stat.
652 * We need to be able to convert between timeval and timespec
653 * so the last 3 digits of tv_nsec are not significant.
657 # define mtim_getsec(_x) ((_x).st_mtim.st__tim.tv_sec)
658 # define mtim_getnsec(_x) (((_x).st_mtim.st__tim.tv_nsec / 1000) * 1000)
660 # define mtim_getsec(_x) ((_x).st_mtim.tv_sec)
661 # define mtim_getnsec(_x) (((_x).st_mtim.tv_nsec / 1000) * 1000)
664 # ifdef HAVE_ST_MTIMESPEC
665 # define mtim_getsec(_x) ((_x).st_mtimespec.tv_sec)
666 # define mtim_getnsec(_x) (((_x).st_mtimespec.tv_nsec / 1000) * 1000)
668 # define mtim_getsec(_x) ((_x).st_mtime)
669 # define mtim_getnsec(_x) (0)
670 # endif /* HAVE_ST_MTIMESPEC */
671 #endif /* HAVE_ST_MTIM */
674 * Emulate a subset of waitpid() if we don't have it.
677 # define sudo_waitpid(p, s, o) waitpid(p, s, o)
680 # define sudo_waitpid(p, s, o) wait3(s, o, NULL)
684 /* GNU stow needs /etc/sudoers to be a symlink. */
686 # define stat_sudoers stat
688 # define stat_sudoers lstat
691 /* Macros to set/clear/test flags. */
693 #define SET(t, f) ((t) |= (f))
695 #define CLR(t, f) ((t) &= ~(f))
697 #define ISSET(t, f) ((t) & (f))
699 /* New ANSI-style OS defs for HP-UX and ConvexOS. */
700 #if defined(hpux) && !defined(__hpux)
704 #if defined(convex) && !defined(__convex__)
705 # define __convex__ 1
708 /* BSD compatibility on some SVR4 systems. */
711 #endif /* __svr4__ */
713 #endif /* _SUDO_CONFIG_H */