cc88a640ca
[patch 0/3] readline-6.2 rebase http://sourceware.org/ml/gdb-patches/2011-05/msg00003.html [patch 1/3] readline-6.2: Merge of already posted patches http://sourceware.org/ml/gdb-patches/2011-05/msg00004.html = [Bug-readline] [RFC/readline] bind.c, rl_function_dumper, Free allocated http://lists.gnu.org/archive/html/bug-readline/2011-03/msg00000.html [Bug-readline] [patch] Fix underquotation in readline/examples/rlfe/conf http://lists.gnu.org/archive/html/bug-readline/2011-04/msg00001.html [Bug-readline] [patch] Makefile.in htm<->html http://lists.gnu.org/archive/html/bug-readline/2011-04/msg00002.html Re: [Bug-readline] [patch] Makefile.in dependency: callback.o: xmalloc.h http://lists.gnu.org/archive/html/bug-readline/2011-04/msg00004.html [Bug-readline] [patch] Remove . from the VPATH directive http://lists.gnu.org/archive/html/bug-readline/2011-04/msg00005.html Eli Zaretskii's __MSDOS__ / __GO32__ / __MINGW32__ / __DJGPP__ stuff: http://sourceware.org/ml/gdb/2011-04/msg00002.html Jan Kratochvil's patch for FSF GDB tree local-specific changes: http://sourceware.org/ml/gdb/2011-04/msg00006.html Preservation of existing ChangeLog.gdb files, their updates. [patch 2/3] readline-6.2: Workaround "ask" regression http://sourceware.org/ml/gdb-patches/2011-05/msg00005.html [patch 3/3] readline-6.2: Revert 5.x compat., apply 6.x compat. http://sourceware.org/ml/gdb-patches/2011-05/msg00006.html [patch 4/3] readline-6.2: Substitute inc-hist.texinfo http://sourceware.org/ml/gdb-patches/2011-05/msg00010.html readline/ Workaround gdb.base/completion.exp regression on readline-6.2. * complete.c (get_y_or_n): Disable the return on RL_STATE_CALLBACK. Imported readline 6.2, and upstream patch 001. * configure: Regenerate. readline/doc/ * hsuser.texi (Using History Interactively): Disable !BashFeatures @defcodeindex. Make the `Programming with GNU History' reference external. * inc-hist.texinfo: Remove. Imported readline 6.2, and upstream patch 001. readline/examples/ Imported readline 6.2, and upstream patch 001. readline/examples/rlfe/ Imported readline 6.2, and upstream patch 001. gdb/ * config.in: Regenerate. * configure: Regenerate. * configure.ac <--with-system-readline> (for readline_echoing_p): Remove the test. * tui/tui-io.c (tui_old_readline_echoing_p): Rename to ... (tui_old_rl_echoing_p): ... here. (tui_setup_io): Rename extern declaration readline_echoing_p to _rl_echoing_p. Adjust assignments for the both renames. gdb/doc/ * Makefile.in (GDB_DOC_SOURCE_INCLUDES): Rename inc-hist.texinfo to hsuser.texi. * gdb.texinfo <!SYSTEM_READLINE>: Rename inc-hist.texinfo inclusion and comment to hsuser.texi. Change rluser.texi name in the comment.
379 lines
9.1 KiB
C
379 lines
9.1 KiB
C
/* Copyright 2004 Per Bothner <per@bothner.com>
|
|
* Based on config.h from screen-4.0.2.
|
|
* Copyright (c) 1993-2000
|
|
* Juergen Weigert (jnweiger@immd4.informatik.uni-erlangen.de)
|
|
* Michael Schroeder (mlschroe@immd4.informatik.uni-erlangen.de)
|
|
* Copyright (c) 1987 Oliver Laumann
|
|
*
|
|
* This program is free software; you can redistribute it and/or modify
|
|
* it under the terms of the GNU General Public License as published by
|
|
* the Free Software Foundation; either version 2, or (at your option)
|
|
* any later version.
|
|
*
|
|
* This program is distributed in the hope that it will be useful,
|
|
* but WITHOUT ANY WARRANTY; without even the implied warranty of
|
|
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
|
* GNU General Public License for more details.
|
|
*
|
|
* You should have received a copy of the GNU General Public License
|
|
* along with this program (see the file COPYING); if not, write to the
|
|
* Free Software Foundation, Inc.,
|
|
* 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA
|
|
*
|
|
****************************************************************
|
|
* $Id$ FAU
|
|
*/
|
|
|
|
|
|
|
|
|
|
|
|
/**********************************************************************
|
|
*
|
|
* User Configuration Section
|
|
*/
|
|
|
|
|
|
/*
|
|
* define PTYMODE if you do not like the default of 0622, which allows
|
|
* public write to your pty.
|
|
* define PTYGROUP to some numerical group-id if you do not want the
|
|
* tty to be in "your" group.
|
|
* Note, screen is unable to change mode or group of the pty if it
|
|
* is not installed with sufficient privilege. (e.g. set-uid-root)
|
|
* define PTYROFS if the /dev/pty devices are mounted on a read-only
|
|
* filesystem so screen should not even attempt to set mode or group
|
|
* even if running as root (e.g. on TiVo).
|
|
*/
|
|
#undef PTYMODE
|
|
#undef PTYGROUP
|
|
#undef PTYROFS
|
|
|
|
/*
|
|
* If screen is NOT installed set-uid root, screen can provide tty
|
|
* security by exclusively locking the ptys. While this keeps other
|
|
* users from opening your ptys, it also keeps your own subprocesses
|
|
* from being able to open /dev/tty. Define LOCKPTY to add this
|
|
* exclusive locking.
|
|
*/
|
|
#undef LOCKPTY
|
|
|
|
|
|
/**********************************************************************
|
|
*
|
|
* End of User Configuration Section
|
|
*
|
|
* Rest of this file is modified by 'configure'
|
|
* Change at your own risk!
|
|
*
|
|
*/
|
|
|
|
/*
|
|
* Some defines to identify special unix variants
|
|
*/
|
|
#ifndef SVR4
|
|
#undef SVR4
|
|
#endif
|
|
|
|
#ifndef _POSIX_SOURCE
|
|
#undef _POSIX_SOURCE
|
|
#endif
|
|
|
|
/*
|
|
* Define POSIX if your system supports IEEE Std 1003.1-1988 (POSIX).
|
|
*/
|
|
#undef POSIX
|
|
|
|
/*
|
|
* Define TERMIO if you have struct termio instead of struct sgttyb.
|
|
* This is usually the case for SVID systems, where BSD uses sgttyb.
|
|
* POSIX systems should define this anyway, even though they use
|
|
* struct termios.
|
|
*/
|
|
#undef TERMIO
|
|
|
|
/*
|
|
* Define CYTERMIO if you have cyrillic termio modes.
|
|
*/
|
|
#undef CYTERMIO
|
|
|
|
/*
|
|
* Define TERMINFO if your machine emulates the termcap routines
|
|
* with the terminfo database.
|
|
* Thus the .screenrc file is parsed for
|
|
* the command 'terminfo' and not 'termcap'.
|
|
*/
|
|
#undef TERMINFO
|
|
|
|
/*
|
|
* If your library does not define ospeed, define this.
|
|
*/
|
|
#undef NEED_OSPEED
|
|
|
|
/*
|
|
* Define SYSV if your machine is SYSV complient (Sys V, HPUX, A/UX)
|
|
*/
|
|
#ifndef SYSV
|
|
#undef SYSV
|
|
#endif
|
|
|
|
/*
|
|
* Define SIGVOID if your signal handlers return void. On older
|
|
* systems, signal returns int, but on newer ones, it returns void.
|
|
*/
|
|
#undef SIGVOID
|
|
|
|
/*
|
|
* Define USESIGSET if you have sigset for BSD 4.1 reliable signals.
|
|
*/
|
|
#undef USESIGSET
|
|
|
|
/*
|
|
* Define SYSVSIGS if signal handlers must be reinstalled after
|
|
* they have been called.
|
|
*/
|
|
#undef SYSVSIGS
|
|
|
|
/*
|
|
* Define BSDWAIT if your system defines a 'union wait' in <sys/wait.h>
|
|
*
|
|
* Only allow BSDWAIT i.e. wait3 on nonposix systems, since
|
|
* posix implies wait(3) and waitpid(3). vdlinden@fwi.uva.nl
|
|
*
|
|
*/
|
|
#ifndef POSIX
|
|
#undef BSDWAIT
|
|
#endif
|
|
|
|
/*
|
|
* On RISCOS we prefer wait2() over wait3(). rouilj@sni-usa.com
|
|
*/
|
|
#ifdef BSDWAIT
|
|
#undef USE_WAIT2
|
|
#endif
|
|
|
|
/*
|
|
* Define if you have the utempter utmp helper program
|
|
*/
|
|
#undef HAVE_UTEMPTER
|
|
|
|
/*
|
|
* If ttyslot() breaks getlogin() by returning indexes to utmp entries
|
|
* of type DEAD_PROCESS, then our getlogin() replacement should be
|
|
* selected by defining BUGGYGETLOGIN.
|
|
*/
|
|
#undef BUGGYGETLOGIN
|
|
|
|
/*
|
|
* If your system has the calls setreuid() and setregid(),
|
|
* define HAVE_SETREUID. Otherwise screen will use a forked process to
|
|
* safely create output files without retaining any special privileges.
|
|
*/
|
|
#undef HAVE_SETREUID
|
|
|
|
/*
|
|
* If your system supports BSD4.4's seteuid() and setegid(), define
|
|
* HAVE_SETEUID.
|
|
*/
|
|
#undef HAVE_SETEUID
|
|
|
|
/*
|
|
* If you want the "time" command to display the current load average
|
|
* define LOADAV. Maybe you must install screen with the needed
|
|
* privileges to read /dev/kmem.
|
|
* Note that NLIST_ stuff is only checked, when getloadavg() is not available.
|
|
*/
|
|
#undef LOADAV
|
|
|
|
#undef LOADAV_NUM
|
|
#undef LOADAV_TYPE
|
|
#undef LOADAV_SCALE
|
|
#undef LOADAV_GETLOADAVG
|
|
#undef LOADAV_UNIX
|
|
#undef LOADAV_AVENRUN
|
|
#undef LOADAV_USE_NLIST64
|
|
|
|
#undef NLIST_DECLARED
|
|
#undef NLIST_STRUCT
|
|
#undef NLIST_NAME_UNION
|
|
|
|
/*
|
|
* If your system has the new format /etc/ttys (like 4.3 BSD) and the
|
|
* getttyent(3) library functions, define GETTTYENT.
|
|
*/
|
|
#undef GETTTYENT
|
|
|
|
/*
|
|
* Define USEBCOPY if the bcopy/memcpy from your system's C library
|
|
* supports the overlapping of source and destination blocks. When
|
|
* undefined, screen uses its own (probably slower) version of bcopy().
|
|
*
|
|
* SYSV machines may have a working memcpy() -- Oh, this is
|
|
* quite unlikely. Tell me if you see one.
|
|
* "But then, memmove() should work, if at all available" he thought...
|
|
* Boing, never say "works everywhere" unless you checked SCO UNIX.
|
|
* Their memove fails the test in the configure script. Sigh. (Juergen)
|
|
*/
|
|
#undef USEBCOPY
|
|
#undef USEMEMCPY
|
|
#undef USEMEMMOVE
|
|
|
|
/*
|
|
* If your system has vsprintf() and requires the use of the macros in
|
|
* "varargs.h" to use functions with variable arguments,
|
|
* define USEVARARGS.
|
|
*/
|
|
#undef USEVARARGS
|
|
|
|
/*
|
|
* If your system has strerror() define this.
|
|
*/
|
|
#undef HAVE_STRERROR
|
|
|
|
/*
|
|
* If the select return value doesn't treat a descriptor that is
|
|
* usable for reading and writing as two hits, define SELECT_BROKEN.
|
|
*/
|
|
#undef SELECT_BROKEN
|
|
|
|
/*
|
|
* Define this if your system supports named pipes.
|
|
*/
|
|
#undef NAMEDPIPE
|
|
|
|
/*
|
|
* Define this if your system exits select() immediatly if a pipe is
|
|
* opened read-only and no writer has opened it.
|
|
*/
|
|
#undef BROKEN_PIPE
|
|
|
|
/*
|
|
* Define this if the unix-domain socket implementation doesn't
|
|
* create a socket in the filesystem.
|
|
*/
|
|
#undef SOCK_NOT_IN_FS
|
|
|
|
/*
|
|
* If your system has setenv() and unsetenv() define USESETENV
|
|
*/
|
|
#undef USESETENV
|
|
|
|
/*
|
|
* If your system does not come with a setenv()/putenv()/getenv()
|
|
* functions, you may bring in our own code by defining NEEDPUTENV.
|
|
*/
|
|
#undef NEEDPUTENV
|
|
|
|
/*
|
|
* If the passwords are stored in a shadow file and you want the
|
|
* builtin lock to work properly, define SHADOWPW.
|
|
*/
|
|
#undef SHADOWPW
|
|
|
|
/*
|
|
* If you are on a SYS V machine that restricts filename length to 14
|
|
* characters, you may need to enforce that by setting NAME_MAX to 14
|
|
*/
|
|
#undef NAME_MAX /* KEEP_UNDEF_HERE override system value */
|
|
#undef NAME_MAX
|
|
|
|
/*
|
|
* define HAVE_RENAME if your system has a rename() function
|
|
*/
|
|
#undef HAVE_RENAME
|
|
|
|
/*
|
|
* define HAVE__EXIT if your system has the _exit() call.
|
|
*/
|
|
#undef HAVE__EXIT
|
|
|
|
/*
|
|
* define HAVE_LSTAT if your system has symlinks and the lstat() call.
|
|
*/
|
|
#undef HAVE_LSTAT
|
|
|
|
/*
|
|
* define HAVE_UTIMES if your system has the utimes() call.
|
|
*/
|
|
#undef HAVE_UTIMES
|
|
|
|
/*
|
|
* define HAVE_FCHOWN if your system has the fchown() call.
|
|
*/
|
|
#undef HAVE_FCHOWN
|
|
|
|
/*
|
|
* define HAVE_FCHMOD if your system has the fchmod() call.
|
|
*/
|
|
#undef HAVE_FCHMOD
|
|
|
|
/*
|
|
* define HAVE_VSNPRINTF if your system has vsnprintf() (GNU lib).
|
|
*/
|
|
#undef HAVE_VSNPRINTF
|
|
|
|
/*
|
|
* define HAVE_GETCWD if your system has the getcwd() call.
|
|
*/
|
|
#undef HAVE_GETCWD
|
|
|
|
/*
|
|
* define HAVE_SETLOCALE if your system has the setlocale() call.
|
|
*/
|
|
#undef HAVE_SETLOCALE
|
|
|
|
/*
|
|
* define HAVE_STRFTIME if your system has the strftime() call.
|
|
*/
|
|
#undef HAVE_STRFTIME
|
|
|
|
/*
|
|
* define HAVE_NL_LANGINFO if your system has the nl_langinfo() call
|
|
* and <langinfo.h> defines CODESET.
|
|
*/
|
|
#undef HAVE_NL_LANGINFO
|
|
|
|
/*
|
|
* Newer versions of Solaris include fdwalk, which can greatly improve
|
|
* the startup time of screen; otherwise screen spends a lot of time
|
|
* closing file descriptors.
|
|
*/
|
|
#undef HAVE_FDWALK
|
|
|
|
/*
|
|
* define HAVE_DEV_PTC if you have a /dev/ptc character special
|
|
* device.
|
|
*/
|
|
#undef HAVE_DEV_PTC
|
|
|
|
/*
|
|
* define HAVE_SVR4_PTYS if you have a /dev/ptmx character special
|
|
* device and support the ptsname(), grantpt(), unlockpt() functions.
|
|
*/
|
|
#undef HAVE_SVR4_PTYS
|
|
|
|
/*
|
|
* define HAVE_GETPT if you have the getpt() function.
|
|
*/
|
|
#undef HAVE_GETPT
|
|
|
|
/*
|
|
* define HAVE_OPENPTY if your system has the openpty() call.
|
|
*/
|
|
#undef HAVE_OPENPTY
|
|
|
|
/*
|
|
* define PTYRANGE0 and or PTYRANGE1 if you want to adapt screen
|
|
* to unusual environments. E.g. For SunOs the defaults are "qpr" and
|
|
* "0123456789abcdef". For SunOs 4.1.2
|
|
* #define PTYRANGE0 "pqrstuvwxyzPQRST"
|
|
* is recommended by Dan Jacobson.
|
|
*/
|
|
#undef PTYRANGE0
|
|
#undef PTYRANGE1
|
|
|
|
#define USEVARARGS
|
|
|
|
#undef HAVE_SYS_STROPTS_H
|
|
|
|
#undef HAVE_SYS_WAIT_H
|