1 /* config.h -- Configuration file for bash. */
3 /* Copyright (C) 1987-2002 Free Software Foundation, Inc.
5 This file is part of GNU Bash, the Bourne Again SHell.
7 Bash is free software; you can redistribute it and/or modify it
8 under the terms of the GNU General Public License as published by
9 the Free Software Foundation; either version 2, or (at your option)
12 Bash is distributed in the hope that it will be useful, but WITHOUT
13 ANY WARRANTY; without even the implied warranty of MERCHANTABILITY
14 or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public
15 License for more details.
17 You should have received a copy of the GNU General Public License
18 along with Bash; see the file COPYING. If not, write to the Free
19 Software Foundation, 59 Temple Place, Suite 330, Boston, MA 02111 USA. */
24 /* Configuration feature settings controllable by autoconf. */
26 /* Define JOB_CONTROL if your operating system supports
27 BSD-like job control. */
30 /* Define ALIAS if you want the alias features. */
33 /* Define PUSHD_AND_POPD if you want those commands to be compiled in.
34 (Also the `dirs' commands.) */
37 /* Define BRACE_EXPANSION if you want curly brace expansion a la Csh:
38 foo{a,b} -> fooa foob. Even if this is compiled in (the default) you
39 can turn it off at shell startup with `-nobraceexpansion', or during
40 shell execution with `set +o braceexpand'. */
41 #undef BRACE_EXPANSION
43 /* Define READLINE to get the nifty/glitzy editing features.
44 This is on by default. You can turn it off interactively
45 with the -nolineediting flag. */
48 /* Define BANG_HISTORY if you want to have Csh style "!" history expansion.
49 This is unrelated to READLINE. */
52 /* Define HISTORY if you want to have access to previously typed commands.
54 If both HISTORY and READLINE are defined, you can get at the commands
55 with line editing commands, and you can directly manipulate the history
56 from the command line.
58 If only HISTORY is defined, the `fc' and `history' builtins are
62 /* Define this if you want completion that puts all alternatives into
63 a brace expansion shell expression. */
64 #if defined (BRACE_EXPANSION) && defined (READLINE)
65 # define BRACE_COMPLETION
66 #endif /* BRACE_EXPANSION */
68 /* Define DEFAULT_ECHO_TO_XPG if you want the echo builtin to interpret
69 the backslash-escape characters by default, like the XPG Single Unix
70 Specification V2 for echo.
71 This requires that V9_ECHO be defined. */
72 #undef DEFAULT_ECHO_TO_XPG
74 /* Define HELP_BUILTIN if you want the `help' shell builtin and the long
75 documentation strings compiled into the shell. */
78 /* Define RESTRICTED_SHELL if you want the generated shell to have the
79 ability to be a restricted one. The shell thus generated can become
80 restricted by being run with the name "rbash", or by setting the -r
82 #undef RESTRICTED_SHELL
84 /* Define DISABLED_BUILTINS if you want "builtin foo" to always run the
85 shell builtin "foo", even if it has been disabled with "enable -n foo". */
86 #undef DISABLED_BUILTINS
88 /* Define PROCESS_SUBSTITUTION if you want the K*rn shell-like process
89 substitution features "<(file)". */
90 /* Right now, you cannot do this on machines without fully operational
91 FIFO support. This currently include NeXT and Alliant. */
92 #undef PROCESS_SUBSTITUTION
94 /* Define PROMPT_STRING_DECODE if you want the backslash-escaped special
95 characters in PS1 and PS2 expanded. Variable expansion will still be
97 #undef PROMPT_STRING_DECODE
99 /* Define SELECT_COMMAND if you want the Korn-shell style `select' command:
100 select word in word_list; do command_list; done */
101 #undef SELECT_COMMAND
103 /* Define COMMAND_TIMING of you want the ksh-style `time' reserved word and
104 the ability to time pipelines, functions, and builtins. */
105 #undef COMMAND_TIMING
107 /* Define ARRAY_VARS if you want ksh-style one-dimensional array variables. */
110 /* Define DPAREN_ARITHMETIC if you want the ksh-style ((...)) arithmetic
111 evaluation command. */
112 #undef DPAREN_ARITHMETIC
114 /* Define EXTENDED_GLOB if you want the ksh-style [*+@?!](patlist) extended
118 /* Define COND_COMMAND if you want the ksh-style [[...]] conditional
122 /* Define ARITH_FOR_COMMAND if you want the ksh93-style
123 for (( init; test; step )) do list; done
124 arithmetic for command. */
125 #undef ARITH_FOR_COMMAND
127 /* Define NETWORK_REDIRECTIONS if you want /dev/(tcp|udp)/host/port to open
128 socket connections when used in redirections */
129 #undef NETWORK_REDIRECTIONS
131 /* Define PROGRAMMABLE_COMPLETION for the programmable completion features
132 and the complete builtin. */
133 #undef PROGRAMMABLE_COMPLETION
135 /* Define MEMSCRAMBLE if you want the bash malloc and free to scramble
136 memory contents on malloc() and free(). */
139 /* Define AFS if you are using Transarc's AFS. */
142 /* End of configuration settings controllable by autoconf. */
143 /* Other settable options appear in config-top.h. */
145 #include "config-top.h"
147 /* Beginning of autoconf additions. */
149 /* Characteristics of the C compiler */
154 /* Define if cpp supports the ANSI-C stringizing `#' operator */
155 #undef HAVE_STRINGIZE
157 /* Define if the compiler supports `long double' variables. */
158 #undef HAVE_LONG_DOUBLE
162 #undef __CHAR_UNSIGNED__
164 /* Define if the compiler supports `long long' variables. */
165 #undef HAVE_LONG_LONG
167 #undef HAVE_UNSIGNED_LONG_LONG
169 /* The number of bytes in a int. */
172 /* The number of bytes in a long. */
175 /* The number of bytes in a pointer to char. */
178 /* The number of bytes in a double (hopefully 8). */
181 /* The number of bytes in a `long long', if we have one. */
182 #undef SIZEOF_LONG_LONG
186 #define DEFAULT_MAIL_DIRECTORY "/usr/spool/mail"
188 /* Characteristics of the system's header files and libraries that affect
189 the compilation environment. */
191 /* Define if the system does not provide POSIX.1 features except
192 with this defined. */
193 #undef _POSIX_1_SOURCE
195 /* Define if you need to in order for stat and other things to work. */
198 /* Define to use GNU libc extensions */
201 /* Define if you have the ANSI C header files. */
204 /* Memory management functions. */
206 /* Define if using the bash version of malloc in lib/malloc/malloc.c */
207 #undef USING_BASH_MALLOC
209 #undef DISABLE_MALLOC_WRAPPERS
211 /* Define if using alloca.c. */
214 /* Define to one of _getb67, GETB67, getb67 for Cray-2 and Cray-YMP systems.
215 This function is required for alloca.c support on those systems. */
216 #undef CRAY_STACKSEG_END
218 /* Define if you have alloca, as a function or macro. */
221 /* Define if you have <alloca.h> and it should be used (not on Ultrix). */
227 /* Define to `long' if <sys/types.h> doesn't define. */
230 /* Define to `int' if <sys/types.h> doesn't define. */
233 /* Define to `int' if <signal.h> doesn't define. */
236 /* Define to `int' if <sys/types.h> doesn't define. */
239 /* Define to `short' if <sys/types.h> doesn't define. */
242 /* Define to `unsigned short' if <sys/types.h> doesn't define. */
245 /* Define to `int' if <sys/types.h> doesn't define. */
248 /* Define to `unsigned int' if <sys/types.h> doesn't define. */
251 /* Define to `double' if <sys/types.h> doesn't define. */
254 /* Define to `unsigned int' if <sys/types.h> doesn't define. */
257 /* Define to `unsigned long' if <sys/types.h> doesn't define. */
260 /* Define to `int' if <sys/types.h> doesn't define. */
263 /* Define to `unsigned' if <sys/types.h> doesn't define. */
266 /* Define to `int' if <sys/types.h> doesn't define. */
269 /* Define to `long' if <stdint.h> doesn't define. */
272 /* Define to `unsigned long' if <stdint.h> doesn't define. */
275 /* Define to `int' if <sys/types.h> doesn't define. */
278 /* Define to `long' if <sys/types.h> doesn't define. */
281 /* Define to `long' if <sys/types.h> doesn't define. */
284 /* Define to `int' if <sys/types.h> doesn't define. */
287 /* Define to `unsigned int' if <sys/socket.h> doesn't define. */
290 /* Define if you have quad_t in <sys/types.h>. */
295 /* Define to the type of elements in the array set by `getgroups'.
296 Usually this is either `int' or `gid_t'. */
299 /* Characteristics of the machine archictecture. */
301 /* If using the C implementation of alloca, define if you know the
302 direction of stack growth for your system; otherwise it will be
303 automatically deduced at run-time.
304 STACK_DIRECTION > 0 => grows toward higher addresses
305 STACK_DIRECTION < 0 => grows toward lower addresses
306 STACK_DIRECTION = 0 => direction of growth unknown
308 #undef STACK_DIRECTION
310 /* Define if the machine architecture is big-endian. */
311 #undef WORDS_BIGENDIAN
313 /* Check for the presence of certain non-function symbols in the system
316 /* Define if `sys_siglist' is declared by <signal.h> or <unistd.h>. */
317 #undef SYS_SIGLIST_DECLARED
319 /* Define if `_sys_siglist' is declared by <signal.h> or <unistd.h>. */
320 #undef UNDER_SYS_SIGLIST_DECLARED
322 #undef HAVE_SYS_SIGLIST
324 #undef HAVE_UNDER_SYS_SIGLIST
326 #undef HAVE_SYS_ERRLIST
333 /* Characteristics of some of the system structures. */
335 #undef STRUCT_DIRENT_HAS_D_INO
337 #undef STRUCT_DIRENT_HAS_D_FILENO
339 #undef TIOCSTAT_IN_SYS_IOCTL
341 #undef FIONREAD_IN_SYS_IOCTL
343 #undef GWINSZ_IN_SYS_IOCTL
345 #undef STRUCT_WINSIZE_IN_SYS_IOCTL
347 #undef TM_IN_SYS_TIME
349 #undef STRUCT_WINSIZE_IN_TERMIOS
351 #undef SPEED_T_IN_SYS_TYPES
357 #undef HAVE_STRUCT_STAT_ST_BLOCKS
359 #undef HAVE_STRUCT_TM_TM_ZONE
362 /* Characteristics of definitions in the system header files. */
364 #undef HAVE_GETPW_DECLS
368 #undef HAVE_LIBC_FNM_EXTMATCH
371 #undef HAVE_DECL_CONFSTR
373 #undef HAVE_DECL_PRINTF
375 #undef HAVE_DECL_SBRK
377 #undef HAVE_DECL_STRCPY
379 #undef HAVE_DECL_STRSIGNAL
381 #undef HAVE_DECL_STRTOLD
384 #undef HAVE_MBSTATE_T
386 /* These are checked with BASH_CHECK_DECL */
388 #undef HAVE_DECL_STRTOIMAX
389 #undef HAVE_DECL_STRTOL
390 #undef HAVE_DECL_STRTOLL
391 #undef HAVE_DECL_STRTOUL
392 #undef HAVE_DECL_STRTOULL
393 #undef HAVE_DECL_STRTOUMAX
395 /* Characteristics of system calls and C library functions. */
397 /* Define if the `getpgrp' function takes no argument. */
400 #undef NAMED_PIPES_MISSING
402 #undef OPENDIR_NOT_ROBUST
406 /* Define if the setvbuf function takes the buffering type as its second
407 argument and the buffer pointer as the third, as on System V
409 #undef SETVBUF_REVERSED
411 #undef STAT_MACROS_BROKEN
415 #undef CAN_REDEFINE_GETENV
417 #undef HAVE_STD_PUTENV
419 #undef HAVE_STD_UNSETENV
421 #undef HAVE_PRINTF_A_FORMAT
423 /* Define if you have <langinfo.h> and nl_langinfo(CODESET). */
424 #undef HAVE_LANGINFO_CODESET
426 /* Characteristics of properties exported by the kernel. */
428 /* Define if the kernel can exec files beginning with #! */
429 #undef HAVE_HASH_BANG_EXEC
431 /* Define if you have the /dev/fd devices to map open files into the file system. */
434 /* Defined to /dev/fd or /proc/self/fd (linux). */
437 /* Define if you have the /dev/stdin device. */
438 #undef HAVE_DEV_STDIN
441 /* Type and behavior of signal handling functions. */
443 /* Define as the return type of signal handlers (int or void). */
446 /* Define if return type of signal handlers is void */
447 #undef VOID_SIGHANDLER
449 #undef MUST_REINSTALL_SIGHANDLERS
451 #undef HAVE_BSD_SIGNALS
453 #undef HAVE_POSIX_SIGNALS
455 #undef HAVE_USG_SIGHOLD
457 #undef UNUSABLE_RT_SIGNALS
460 /* Presence of system and C library functions. */
462 /* Define if you have the asprintf function. */
465 /* Define if you have the bcopy function. */
468 /* Define if you have the bindtextdomain function. */
469 #undef HAVE_BINDTEXTDOMAIN
471 /* Define if you have the bzero function. */
474 /* Define if you have the confstr function. */
477 /* Define if you have the dlclose function. */
480 /* Define if you have the dlopen function. */
483 /* Define if you have the dlsym function. */
486 /* Define if you don't have vprintf but do have _doprnt. */
489 /* Define if you have the dup2 function. */
492 /* Define if you have the getaddrinfo function. */
493 #undef HAVE_GETADDRINFO
495 /* Define if you have the getcwd function. */
498 /* Define if you have the getdtablesize function. */
499 #undef HAVE_GETDTABLESIZE
501 /* Define if you have the getgroups function. */
502 #undef HAVE_GETGROUPS
504 /* Define if you have the gethostbyname function. */
505 #undef HAVE_GETHOSTBYNAME
507 /* Define if you have the gethostname function. */
508 #undef HAVE_GETHOSTNAME
510 /* Define if you have the getpagesize function. */
511 #undef HAVE_GETPAGESIZE
513 /* Define if you have the getpeername function. */
514 #undef HAVE_GETPEERNAME
516 /* Define if you have the getrlimit function. */
517 #undef HAVE_GETRLIMIT
519 /* Define if you have the getrusage function. */
520 #undef HAVE_GETRUSAGE
522 /* Define if you have the getservbyname function. */
523 #undef HAVE_GETSERVBYNAME
525 /* Define if you have the getservent function. */
526 #undef HAVE_GETSERVENT
528 /* Define if you have the gettext function. */
531 /* Define if you have the gettimeofday function. */
532 #undef HAVE_GETTIMEOFDAY
534 /* Define if you have the getwd function. */
537 /* Define if you have the inet_aton function. */
538 #undef HAVE_INET_ATON
540 /* Define if you have the isascii function. */
543 /* Define if you have the isblank function. */
546 /* Define if you have the isgraph function. */
549 /* Define if you have the isint function in libc */
550 #undef HAVE_ISINF_IN_LIBC
552 /* Define if you have the isprint function. */
555 /* Define if you have the isspace function. */
558 /* Define if you have the isxdigit function. */
561 /* Define if you have the killpg function. */
564 /* Define if you have the lstat function. */
567 /* Define if you have the mbsrtowcs function. */
568 #undef HAVE_MBSRTOWCS
570 /* Define if you have the memmove function. */
573 /* Define if you have the memset function. */
576 /* Define if you have the mkfifo function. */
579 /* Define if you have the pathconf function. */
582 /* Define if you have the putenv function. */
585 /* Define if you have the readlink function. */
588 /* Define if you have the rename function. */
591 /* Define if you have the sbrk function. */
594 /* Define if you have the select function. */
597 /* Define if you have the setdtablesize function. */
598 #undef HAVE_SETDTABLESIZE
600 /* Define if you have the setenv function. */
603 /* Define if you have the setlinebuf function. */
604 #undef HAVE_SETLINEBUF
606 /* Define if you have the setlocale function. */
607 #undef HAVE_SETLOCALE
609 /* Define if you have the setostype function. */
610 #undef HAVE_SETOSTYPE
612 /* Define if you have the setvbuf function. */
615 /* Define if you have the siginterrupt function. */
616 #undef HAVE_SIGINTERRUPT
618 /* Define if you have the POSIX.1-style sigsetjmp function. */
619 #undef HAVE_POSIX_SIGSETJMP
621 /* Define if you have the snprintf function. */
624 /* Define if you have the strcasecmp function. */
625 #undef HAVE_STRCASECMP
627 /* Define if you have the strchr function. */
630 /* Define if you have the strcoll function. */
633 /* Define if you have the strerror function. */
636 /* Define if you have the strftime function. */
639 /* Define if you have the strpbrk function. */
642 /* Define if you have the strtod function. */
645 /* Define if you have the strtoimax function. */
646 #undef HAVE_STRTOIMAX
648 /* Define if you have the strtol function. */
651 /* Define if you have the strtoll function. */
654 /* Define if you have the strtoul function. */
657 /* Define if you have the strtoull function. */
660 /* Define if you have the strtoumax function. */
661 #undef HAVE_STRTOUMAX
663 /* Define if you have the strsignal function or macro. */
664 #undef HAVE_STRSIGNAL
666 /* Define if you have the sysconf function. */
669 /* Define if you have the tcgetattr function. */
670 #undef HAVE_TCGETATTR
672 /* Define if you have the tcgetpgrp function. */
673 #undef HAVE_TCGETPGRP
675 /* Define if you have the textdomain function. */
676 #undef HAVE_TEXTDOMAIN
678 /* Define if you have the times function. */
681 /* Define if you have the ttyname function. */
684 /* Define if you have the tzset function. */
687 /* Define if you have the ulimit function. */
690 /* Define if you have the uname function. */
693 /* Define if you have the unsetenv function. */
696 /* Define if you have the vasprintf function. */
697 #undef HAVE_VASPRINTF
699 /* Define if you have the vprintf function. */
702 /* Define if you have the vsnprintf function. */
703 #undef HAVE_VSNPRINTF
705 /* Define if you have the waitpid function. */
708 /* Define if you have the wait3 function. */
711 /* Define if you have the wcwidth function. */
714 /* Presence of certain system include files. */
716 /* Define if you have the <arpa/inet.h> header file. */
717 #undef HAVE_ARPA_INET_H
719 /* Define if you have the <dirent.h> header file. */
722 /* Define if you have the <dlfcn.h> header file. */
725 /* Define if you have the <grp.h> header file. */
728 /* Define if you have the <inttypes.h> header file. */
729 #undef HAVE_INTTYPES_H
731 /* Define if you have the <langinfo.h> header file. */
732 #undef HAVE_LANGINFO_H
734 /* Define if you have the <libintl.h> header file. */
735 #undef HAVE_LIBINTL_H
737 /* Define if you have the <limits.h> header file. */
740 /* Define if you have the <locale.h> header file. */
743 /* Define if you have the <ndir.h> header file. */
746 /* Define if you have the <netdh.h> header file. */
749 /* Define if you have the <netinet/in.h> header file. */
750 #undef HAVE_NETINET_IN_H
752 /* Define if you have the <stdlib.h> header file. */
755 /* Define if you have the <stdarg.h> header file. */
758 /* Define if you have the <string.h> header file. */
761 /* Define if you have the <strings.h> header file. */
762 #undef HAVE_STRINGS_H
764 /* Define if you have the <memory.h> header file. */
767 /* Define if you have the <stddef.h> header file. */
770 /* Define if you have the <stdint.h> header file. */
773 /* Define if you have the <sys/dir.h> header file. */
774 #undef HAVE_SYS_DIR_H
776 /* Define if you have the <sys/file.h> header file. */
777 #undef HAVE_SYS_FILE_H
779 /* Define if you have the <sys/ndir.h> header file. */
780 #undef HAVE_SYS_NDIR_H
782 /* Define if you have the <sys/param.h> header file. */
783 #undef HAVE_SYS_PARAM_H
785 /* Define if you have the <sys/pte.h> header file. */
786 #undef HAVE_SYS_PTE_H
788 /* Define if you have the <sys/ptem.h> header file. */
789 #undef HAVE_SYS_PTEM_H
791 /* Define if you have the <sys/resource.h> header file. */
792 #undef HAVE_SYS_RESOURCE_H
794 /* Define if you have the <sys/select.h> header file. */
795 #undef HAVE_SYS_SELECT_H
797 /* Define if you have the <sys/socket.h> header file. */
798 #undef HAVE_SYS_SOCKET_H
800 /* Define if you have the <sys/stream.h> header file. */
801 #undef HAVE_SYS_STREAM_H
803 /* Define if you have <sys/time.h> */
804 #undef HAVE_SYS_TIME_H
806 #undef TIME_WITH_SYS_TIME
808 /* Define if you have <sys/times.h> */
809 #undef HAVE_SYS_TIMES_H
811 /* Define if you have <sys/wait.h> that is POSIX.1 compatible. */
812 #undef HAVE_SYS_WAIT_H
814 /* Define if you have the <termcap.h> header file. */
815 #undef HAVE_TERMCAP_H
817 /* Define if you have the <termio.h> header file. */
820 /* Define if you have the <termios.h> header file. */
821 #undef HAVE_TERMIOS_H
823 /* Define if you have the <unistd.h> header file. */
826 /* Define if you have the <varargs.h> header file. */
827 #undef HAVE_VARARGS_H
829 /* Define if you have the <wchar.h> header file. */
832 /* Define if you have the <varargs.h> header file. */
835 /* Presence of certain system libraries. */
841 #undef HAVE_LIBSOCKET
844 /* Define if on MINIX. */
847 /* Are we running SVR5 (UnixWare 7)? */
850 /* Are we running SVR4.2? */
853 /* Are we running some version of SVR4? */
856 /* Define if job control is unusable or unsupported. */
857 #undef JOB_CONTROL_MISSING
859 /* Do we need to define _KERNEL to get the RLIMIT_* defines from
861 #undef RLIMIT_NEEDS_KERNEL
863 /* Number of bits in a file offset, on hosts where this is settable. */
864 #undef _FILE_OFFSET_BITS
866 /* Define for large files on AIX-style hosts. */
869 /* Do strcoll(3) and strcmp(3) give different results in the default locale? */
870 #undef STRCOLL_BROKEN
876 #include "config-bot.h"
878 #endif /* _CONFIG_H_ */