summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAxel Beckert <abe@deuxchevaux.org>2011-10-04 22:01:30 +0200
committerAxel Beckert <abe@deuxchevaux.org>2011-10-04 22:01:30 +0200
commited169177fbfd1fedb0750f3ba18737aba5596451 (patch)
tree4410859c72a75d3ca453521b881d0d40456e2749
parent168c94858d20f79247aad40daf2c54cd54182565 (diff)
downloadscreen-ed169177fbfd1fedb0750f3ba18737aba5596451.tar.gz
Imported Upstream version 4.0.3+git201108019upstream/4.0.3+git201108019
-rw-r--r--COPYING915
l---------FAQ1
-rw-r--r--Makefile3
-rw-r--r--comm.h.dist227
-rwxr-xr-xconfigure9194
l---------doc/install.sh1
-rw-r--r--doc/screen.info198
-rw-r--r--doc/screen.info-11447
-rw-r--r--doc/screen.info-21171
-rw-r--r--doc/screen.info-31255
-rw-r--r--doc/screen.info-41411
-rw-r--r--doc/screen.info-5608
-rw-r--r--incoming/howto/emulate_vims_help.txt52
-rw-r--r--kmapdef.c.dist144
-rwxr-xr-xmktar.pl44
-rw-r--r--patches/bill_pursell_fFtT_402.patch201
-rw-r--r--patches/screen-4.0.2.dif29
-rw-r--r--patches/screen-__P.diff10
-rw-r--r--patches/screen-gcc4.diff44
-rw-r--r--src/.gitignore21
-rw-r--r--src/.iscreenrc169
-rw-r--r--src/COPYING674
-rw-r--r--src/ChangeLog (renamed from ChangeLog)121
-rw-r--r--src/FAQ (renamed from doc/FAQ)0
-rw-r--r--src/HACKING39
-rw-r--r--src/INSTALL (renamed from INSTALL)5
-rw-r--r--src/Makefile.in (renamed from Makefile.in)107
-rw-r--r--src/NEWS (renamed from NEWS)14
-rw-r--r--src/NEWS.3.5 (renamed from NEWS.3.5)2
-rw-r--r--src/NEWS.3.6 (renamed from NEWS.3.6)0
-rw-r--r--src/NEWS.3.7 (renamed from NEWS.3.7)0
-rw-r--r--src/NEWS.3.9 (renamed from NEWS.3.9)0
-rw-r--r--src/README (renamed from README)0
-rw-r--r--src/TODO (renamed from TODO)0
-rw-r--r--src/acconfig.h (renamed from config.h.in)123
-rw-r--r--src/acls.c (renamed from acls.c)20
-rw-r--r--src/acls.h (renamed from acls.h)15
-rw-r--r--src/ansi.c (renamed from ansi.c)1106
-rw-r--r--src/ansi.h (renamed from ansi.h)17
-rw-r--r--src/attacher.c (renamed from attacher.c)152
-rwxr-xr-xsrc/autogen.sh2
-rw-r--r--src/braille.c (renamed from braille.c)10
-rw-r--r--src/braille.h (renamed from braille.h)10
-rw-r--r--src/braille_tsi.c (renamed from braille_tsi.c)8
-rw-r--r--src/canvas.c916
-rw-r--r--src/canvas.h101
-rw-r--r--src/comm.c (renamed from comm.c)65
-rw-r--r--src/comm.sh (renamed from comm.sh)6
-rw-r--r--src/configure.in (renamed from configure.in)179
-rw-r--r--src/display.c (renamed from display.c)798
-rw-r--r--src/display.h (renamed from display.h)89
-rw-r--r--src/doc/.gitignore2
-rw-r--r--src/doc/FAQ253
-rw-r--r--src/doc/Makefile.in (renamed from doc/Makefile.in)1
-rw-r--r--src/doc/README.DOTSCREEN (renamed from doc/README.DOTSCREEN)0
-rw-r--r--src/doc/fdpat.ps (renamed from doc/fdpat.ps)0
-rwxr-xr-xsrc/doc/install.sh (renamed from install.sh)0
-rw-r--r--src/doc/make.help (renamed from doc/make.help)0
-rw-r--r--src/doc/screen.1 (renamed from doc/screen.1)617
-rw-r--r--src/doc/screen.texinfo (renamed from doc/screen.texinfo)1039
-rw-r--r--src/doc/window_to_display.ps (renamed from doc/window_to_display.ps)0
-rw-r--r--src/encoding.c (renamed from encoding.c)244
-rwxr-xr-xsrc/etc/ccdefs (renamed from etc/ccdefs)0
-rw-r--r--src/etc/completer.zsh (renamed from etc/completer.zsh)0
-rwxr-xr-xsrc/etc/countmail (renamed from etc/countmail)0
-rw-r--r--src/etc/etcscreenrc (renamed from etc/etcscreenrc)0
-rw-r--r--src/etc/gr-braille.tbl (renamed from etc/gr-braille.tbl)0
-rw-r--r--src/etc/gs-braille.tbl (renamed from etc/gs-braille.tbl)0
-rwxr-xr-xsrc/etc/mkinstalldirs (renamed from etc/mkinstalldirs)0
-rwxr-xr-xsrc/etc/newsyntax (renamed from etc/newsyntax)0
-rwxr-xr-xsrc/etc/newsyntax38 (renamed from etc/newsyntax38)0
-rw-r--r--src/etc/screenrc (renamed from etc/screenrc)0
-rwxr-xr-xsrc/etc/toolcheck (renamed from etc/toolcheck)0
-rw-r--r--src/etc/us-braille.tbl (renamed from etc/us-braille.tbl)0
-rw-r--r--src/extern.h (renamed from extern.h)63
-rw-r--r--src/fileio.c (renamed from fileio.c)110
-rw-r--r--src/help.c (renamed from help.c)833
-rw-r--r--src/image.h (renamed from image.h)26
-rw-r--r--src/input.c (renamed from input.c)252
-rwxr-xr-xsrc/install.sh119
-rw-r--r--src/layer.c (renamed from layer.c)381
-rw-r--r--src/layer.h (renamed from layer.h)72
-rw-r--r--src/layout.c406
-rw-r--r--src/layout.h60
-rw-r--r--src/list_display.c243
-rw-r--r--src/list_generic.c486
-rw-r--r--src/list_generic.h73
-rw-r--r--src/list_window.c710
-rw-r--r--src/loadav.c (renamed from loadav.c)15
-rw-r--r--src/logfile.c (renamed from logfile.c)15
-rw-r--r--src/logfile.h (renamed from logfile.h)17
-rw-r--r--src/mark.c (renamed from mark.c)202
-rw-r--r--src/mark.h (renamed from mark.h)21
-rw-r--r--src/misc.c (renamed from misc.c)65
-rw-r--r--src/nethack.c (renamed from nethack.c)19
-rw-r--r--src/os.h (renamed from os.h)56
-rw-r--r--src/osdef.h.in (renamed from osdef.h.in)17
-rw-r--r--src/osdef.sh (renamed from osdef.sh)0
-rw-r--r--src/patchlevel.h (renamed from patchlevel.h)34
-rw-r--r--src/process.c (renamed from process.c)2079
-rw-r--r--src/pty.c (renamed from pty.c)17
-rw-r--r--src/putenv.c (renamed from putenv.c)15
-rw-r--r--src/resize.c (renamed from resize.c)348
-rw-r--r--src/sched.c (renamed from sched.c)15
-rw-r--r--src/sched.h (renamed from sched.h)17
-rw-r--r--src/screen.c (renamed from screen.c)627
-rw-r--r--src/screen.h (renamed from screen.h)40
-rw-r--r--src/search.c (renamed from search.c)19
-rw-r--r--src/socket.c (renamed from socket.c)662
-rw-r--r--src/teln.c (renamed from teln.c)36
-rw-r--r--src/term.c (renamed from term.c)21
-rw-r--r--src/term.sh (renamed from term.sh)0
-rw-r--r--src/termcap.c (renamed from termcap.c)44
-rw-r--r--src/terminfo/8bits (renamed from terminfo/8bits)0
-rw-r--r--src/terminfo/README (renamed from terminfo/README)0
-rw-r--r--src/terminfo/checktc.c (renamed from terminfo/checktc.c)0
-rw-r--r--src/terminfo/screencap (renamed from terminfo/screencap)0
-rw-r--r--src/terminfo/screeninfo.src (renamed from terminfo/screeninfo.src)9
-rw-r--r--src/terminfo/test.txt (renamed from terminfo/test.txt)0
-rw-r--r--src/terminfo/tetris.c (renamed from terminfo/tetris.c)0
-rw-r--r--src/tty.sh (renamed from tty.sh)25
-rw-r--r--src/utf8encodings/01 (renamed from utf8encodings/01)bin29808 -> 29808 bytes
-rw-r--r--src/utf8encodings/02 (renamed from utf8encodings/02)bin27550 -> 27550 bytes
-rw-r--r--src/utf8encodings/03 (renamed from utf8encodings/03)bin32926 -> 32926 bytes
-rw-r--r--src/utf8encodings/04 (renamed from utf8encodings/04)bin24302 -> 24302 bytes
-rw-r--r--src/utf8encodings/18 (renamed from utf8encodings/18)bin54862 -> 54862 bytes
-rw-r--r--src/utf8encodings/19 (renamed from utf8encodings/19)bin95776 -> 95776 bytes
-rw-r--r--src/utf8encodings/a1 (renamed from utf8encodings/a1)bin536 -> 536 bytes
-rw-r--r--src/utf8encodings/bf (renamed from utf8encodings/bf)bin232 -> 232 bytes
-rw-r--r--src/utf8encodings/c2 (renamed from utf8encodings/c2)bin256 -> 256 bytes
-rw-r--r--src/utf8encodings/c3 (renamed from utf8encodings/c3)bin140 -> 140 bytes
-rw-r--r--src/utf8encodings/c4 (renamed from utf8encodings/c4)bin228 -> 228 bytes
-rw-r--r--src/utf8encodings/c6 (renamed from utf8encodings/c6)bin68 -> 68 bytes
-rw-r--r--src/utf8encodings/c7 (renamed from utf8encodings/c7)bin52 -> 52 bytes
-rw-r--r--src/utf8encodings/c8 (renamed from utf8encodings/c8)bin40 -> 40 bytes
-rw-r--r--src/utf8encodings/cc (renamed from utf8encodings/cc)bin68 -> 68 bytes
-rw-r--r--src/utf8encodings/cd (renamed from utf8encodings/cd)bin52 -> 52 bytes
-rw-r--r--src/utf8encodings/d6 (renamed from utf8encodings/d6)bin212 -> 212 bytes
-rw-r--r--src/utmp.c (renamed from utmp.c)35
-rw-r--r--src/viewport.c140
-rw-r--r--src/viewport.h51
-rw-r--r--src/window.c (renamed from window.c)195
-rw-r--r--src/window.h (renamed from window.h)78
-rw-r--r--term.h.dist252
-rw-r--r--tty.c.dist1887
145 files changed, 12773 insertions, 22014 deletions
diff --git a/COPYING b/COPYING
index 55d2947..94a9ed0 100644
--- a/COPYING
+++ b/COPYING
@@ -1,285 +1,626 @@
- GNU GENERAL PUBLIC LICENSE
- Version 2, June 1991
+ GNU GENERAL PUBLIC LICENSE
+ Version 3, 29 June 2007
- Copyright (C) 1989, 1991 Free Software Foundation, Inc.
- 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA
+ Copyright (C) 2007 Free Software Foundation, Inc. <http://fsf.org/>
Everyone is permitted to copy and distribute verbatim copies
of this license document, but changing it is not allowed.
- Preamble
+ Preamble
- The licenses for most software are designed to take away your
-freedom to share and change it. By contrast, the GNU General Public
-License is intended to guarantee your freedom to share and change free
-software--to make sure the software is free for all its users. This
-General Public License applies to most of the Free Software
-Foundation's software and to any other program whose authors commit to
-using it. (Some other Free Software Foundation software is covered by
-the GNU Library General Public License instead.) You can apply it to
+ The GNU General Public License is a free, copyleft license for
+software and other kinds of works.
+
+ The licenses for most software and other practical works are designed
+to take away your freedom to share and change the works. By contrast,
+the GNU General Public License is intended to guarantee your freedom to
+share and change all versions of a program--to make sure it remains free
+software for all its users. We, the Free Software Foundation, use the
+GNU General Public License for most of our software; it applies also to
+any other work released this way by its authors. You can apply it to
your programs, too.
When we speak of free software, we are referring to freedom, not
price. Our General Public Licenses are designed to make sure that you
have the freedom to distribute copies of free software (and charge for
-this service if you wish), that you receive source code or can get it
-if you want it, that you can change the software or use pieces of it
-in new free programs; and that you know you can do these things.
+them if you wish), that you receive source code or can get it if you
+want it, that you can change the software or use pieces of it in new
+free programs, and that you know you can do these things.
- To protect your rights, we need to make restrictions that forbid
-anyone to deny you these rights or to ask you to surrender the rights.
-These restrictions translate to certain responsibilities for you if you
-distribute copies of the software, or if you modify it.
+ To protect your rights, we need to prevent others from denying you
+these rights or asking you to surrender the rights. Therefore, you have
+certain responsibilities if you distribute copies of the software, or if
+you modify it: responsibilities to respect the freedom of others.
For example, if you distribute copies of such a program, whether
-gratis or for a fee, you must give the recipients all the rights that
-you have. You must make sure that they, too, receive or can get the
-source code. And you must show them these terms so they know their
-rights.
-
- We protect your rights with two steps: (1) copyright the software, and
-(2) offer you this license which gives you legal permission to copy,
-distribute and/or modify the software.
-
- Also, for each author's protection and ours, we want to make certain
-that everyone understands that there is no warranty for this free
-software. If the software is modified by someone else and passed on, we
-want its recipients to know that what they have is not the original, so
-that any problems introduced by others will not reflect on the original
-authors' reputations.
-
- Finally, any free program is threatened constantly by software
-patents. We wish to avoid the danger that redistributors of a free
-program will individually obtain patent licenses, in effect making the
-program proprietary. To prevent this, we have made it clear that any
-patent must be licensed for everyone's free use or not licensed at all.
+gratis or for a fee, you must pass on to the recipients the same
+freedoms that you received. You must make sure that they, too, receive
+or can get the source code. And you must show them these terms so they
+know their rights.
+
+ Developers that use the GNU GPL protect your rights with two steps:
+(1) assert copyright on the software, and (2) offer you this License
+giving you legal permission to copy, distribute and/or modify it.
+
+ For the developers' and authors' protection, the GPL clearly explains
+that there is no warranty for this free software. For both users' and
+authors' sake, the GPL requires that modified versions be marked as
+changed, so that their problems will not be attributed erroneously to
+authors of previous versions.
+
+ Some devices are designed to deny users access to install or run
+modified versions of the software inside them, although the manufacturer
+can do so. This is fundamentally incompatible with the aim of
+protecting users' freedom to change the software. The systematic
+pattern of such abuse occurs in the area of products for individuals to
+use, which is precisely where it is most unacceptable. Therefore, we
+have designed this version of the GPL to prohibit the practice for those
+products. If such problems arise substantially in other domains, we
+stand ready to extend this provision to those domains in future versions
+of the GPL, as needed to protect the freedom of users.
+
+ Finally, every program is threatened constantly by software patents.
+States should not allow patents to restrict development and use of
+software on general-purpose computers, but in those that do, we wish to
+avoid the special danger that patents applied to a free program could
+make it effectively proprietary. To prevent this, the GPL assures that
+patents cannot be used to render the program non-free.
The precise terms and conditions for copying, distribution and
modification follow.
-
- GNU GENERAL PUBLIC LICENSE
- TERMS AND CONDITIONS FOR COPYING, DISTRIBUTION AND MODIFICATION
-
- 0. This License applies to any program or other work which contains
-a notice placed by the copyright holder saying it may be distributed
-under the terms of this General Public License. The "Program", below,
-refers to any such program or work, and a "work based on the Program"
-means either the Program or any derivative work under copyright law:
-that is to say, a work containing the Program or a portion of it,
-either verbatim or with modifications and/or translated into another
-language. (Hereinafter, translation is included without limitation in
-the term "modification".) Each licensee is addressed as "you".
-
-Activities other than copying, distribution and modification are not
-covered by this License; they are outside its scope. The act of
-running the Program is not restricted, and the output from the Program
-is covered only if its contents constitute a work based on the
-Program (independent of having been made by running the Program).
-Whether that is true depends on what the Program does.
-
- 1. You may copy and distribute verbatim copies of the Program's
-source code as you receive it, in any medium, provided that you
-conspicuously and appropriately publish on each copy an appropriate
-copyright notice and disclaimer of warranty; keep intact all the
-notices that refer to this License and to the absence of any warranty;
-and give any other recipients of the Program a copy of this License
-along with the Program.
-
-You may charge a fee for the physical act of transferring a copy, and
-you may at your option offer warranty protection in exchange for a fee.
-
- 2. You may modify your copy or copies of the Program or any portion
-of it, thus forming a work based on the Program, and copy and
-distribute such modifications or work under the terms of Section 1
-above, provided that you also meet all of these conditions:
-
- a) You must cause the modified files to carry prominent notices
- stating that you changed the files and the date of any change.
-
- b) You must cause any work that you distribute or publish, that in
- whole or in part contains or is derived from the Program or any
- part thereof, to be licensed as a whole at no charge to all third
- parties under the terms of this License.
-
- c) If the modified program normally reads commands interactively
- when run, you must cause it, when started running for such
- interactive use in the most ordinary way, to print or display an
- announcement including an appropriate copyright notice and a
- notice that there is no warranty (or else, saying that you provide
- a warranty) and that users may redistribute the program under
- these conditions, and telling the user how to view a copy of this
- License. (Exception: if the Program itself is interactive but
- does not normally print such an announcement, your work based on
- the Program is not required to print an announcement.)
-
-These requirements apply to the modified work as a whole. If
-identifiable sections of that work are not derived from the Program,
-and can be reasonably considered independent and separate works in
-themselves, then this License, and its terms, do not apply to those
-sections when you distribute them as separate works. But when you
-distribute the same sections as part of a whole which is a work based
-on the Program, the distribution of the whole must be on the terms of
-this License, whose permissions for other licensees extend to the
-entire whole, and thus to each and every part regardless of who wrote it.
-
-Thus, it is not the intent of this section to claim rights or contest
-your rights to work written entirely by you; rather, the intent is to
-exercise the right to control the distribution of derivative or
-collective works based on the Program.
-
-In addition, mere aggregation of another work not based on the Program
-with the Program (or with a work based on the Program) on a volume of
-a storage or distribution medium does not bring the other work under
-the scope of this License.
-
- 3. You may copy and distribute the Program (or a work based on it,
-under Section 2) in object code or executable form under the terms of
-Sections 1 and 2 above provided that you also do one of the following:
-
- a) Accompany it with the complete corresponding machine-readable
- source code, which must be distributed under the terms of Sections
- 1 and 2 above on a medium customarily used for software interchange; or,
-
- b) Accompany it with a written offer, valid for at least three
- years, to give any third party, for a charge no more than your
- cost of physically performing source distribution, a complete
- machine-readable copy of the corresponding source code, to be
- distributed under the terms of Sections 1 and 2 above on a medium
- customarily used for software interchange; or,
-
- c) Accompany it with the information you received as to the offer
- to distribute corresponding source code. (This alternative is
- allowed only for noncommercial distribution and only if you
- received the program in object code or executable form with such
- an offer, in accord with Subsection b above.)
-
-The source code for a work means the preferred form of the work for
-making modifications to it. For an executable work, complete source
-code means all the source code for all modules it contains, plus any
-associated interface definition files, plus the scripts used to
-control compilation and installation of the executable. However, as a
-special exception, the source code distributed need not include
-anything that is normally distributed (in either source or binary
-form) with the major components (compiler, kernel, and so on) of the
-operating system on which the executable runs, unless that component
-itself accompanies the executable.
-
-If distribution of executable or object code is made by offering
-access to copy from a designated place, then offering equivalent
-access to copy the source code from the same place counts as
-distribution of the source code, even though third parties are not
-compelled to copy the source along with the object code.
-
- 4. You may not copy, modify, sublicense, or distribute the Program
-except as expressly provided under this License. Any attempt
-otherwise to copy, modify, sublicense or distribute the Program is
-void, and will automatically terminate your rights under this License.
-However, parties who have received copies, or rights, from you under
-this License will not have their licenses terminated so long as such
-parties remain in full compliance.
-
- 5. You are not required to accept this License, since you have not
-signed it. However, nothing else grants you permission to modify or
-distribute the Program or its derivative works. These actions are
-prohibited by law if you do not accept this License. Therefore, by
-modifying or distributing the Program (or any work based on the
-Program), you indicate your acceptance of this License to do so, and
-all its terms and conditions for copying, distributing or modifying
-the Program or works based on it.
-
- 6. Each time you redistribute the Program (or any work based on the
-Program), the recipient automatically receives a license from the
-original licensor to copy, distribute or modify the Program subject to
-these terms and conditions. You may not impose any further
-restrictions on the recipients' exercise of the rights granted herein.
-You are not responsible for enforcing compliance by third parties to
+
+ TERMS AND CONDITIONS
+
+ 0. Definitions.
+
+ "This License" refers to version 3 of the GNU General Public License.
+
+ "Copyright" also means copyright-like laws that apply to other kinds of
+works, such as semiconductor masks.
+
+ "The Program" refers to any copyrightable work licensed under this
+License. Each licensee is addressed as "you". "Licensees" and
+"recipients" may be individuals or organizations.
+
+ To "modify" a work means to copy from or adapt all or part of the work
+in a fashion requiring copyright permission, other than the making of an
+exact copy. The resulting work is called a "modified version" of the
+earlier work or a work "based on" the earlier work.
+
+ A "covered work" means either the unmodified Program or a work based
+on the Program.
+
+ To "propagate" a work means to do anything with it that, without
+permission, would make you directly or secondarily liable for
+infringement under applicable copyright law, except executing it on a
+computer or modifying a private copy. Propagation includes copying,
+distribution (with or without modification), making available to the
+public, and in some countries other activities as well.
+
+ To "convey" a work means any kind of propagation that enables other
+parties to make or receive copies. Mere interaction with a user through
+a computer network, with no transfer of a copy, is not conveying.
+
+ An interactive user interface displays "Appropriate Legal Notices"
+to the extent that it includes a convenient and prominently visible
+feature that (1) displays an appropriate copyright notice, and (2)
+tells the user that there is no warranty for the work (except to the
+extent that warranties are provided), that licensees may convey the
+work under this License, and how to view a copy of this License. If
+the interface presents a list of user commands or options, such as a
+menu, a prominent item in the list meets this criterion.
+
+ 1. Source Code.
+
+ The "source code" for a work means the preferred form of the work
+for making modifications to it. "Object code" means any non-source
+form of a work.
+
+ A "Standard Interface" means an interface that either is an official
+standard defined by a recognized standards body, or, in the case of
+interfaces specified for a particular programming language, one that
+is widely used among developers working in that language.
+
+ The "System Libraries" of an executable work include anything, other
+than the work as a whole, that (a) is included in the normal form of
+packaging a Major Component, but which is not part of that Major
+Component, and (b) serves only to enable use of the work with that
+Major Component, or to implement a Standard Interface for which an
+implementation is available to the public in source code form. A
+"Major Component", in this context, means a major essential component
+(kernel, window system, and so on) of the specific operating system
+(if any) on which the executable work runs, or a compiler used to
+produce the work, or an object code interpreter used to run it.
+
+ The "Corresponding Source" for a work in object code form means all
+the source code needed to generate, install, and (for an executable
+work) run the object code and to modify the work, including scripts to
+control those activities. However, it does not include the work's
+System Libraries, or general-purpose tools or generally available free
+programs which are used unmodified in performing those activities but
+which are not part of the work. For example, Corresponding Source
+includes interface definition files associated with source files for
+the work, and the source code for shared libraries and dynamically
+linked subprograms that the work is specifically designed to require,
+such as by intimate data communication or control flow between those
+subprograms and other parts of the work.
+
+ The Corresponding Source need not include anything that users
+can regenerate automatically from other parts of the Corresponding
+Source.
+
+ The Corresponding Source for a work in source code form is that
+same work.
+
+ 2. Basic Permissions.
+
+ All rights granted under this License are granted for the term of
+copyright on the Program, and are irrevocable provided the stated
+conditions are met. This License explicitly affirms your unlimited
+permission to run the unmodified Program. The output from running a
+covered work is covered by this License only if the output, given its
+content, constitutes a covered work. This License acknowledges your
+rights of fair use or other equivalent, as provided by copyright law.
+
+ You may make, run and propagate covered works that you do not
+convey, without conditions so long as your license otherwise remains
+in force. You may convey covered works to others for the sole purpose
+of having them make modifications exclusively for you, or provide you
+with facilities for running those works, provided that you comply with
+the terms of this License in conveying all material for which you do
+not control copyright. Those thus making or running the covered works
+for you must do so exclusively on your behalf, under your direction
+and control, on terms that prohibit them from making any copies of
+your copyrighted material outside their relationship with you.
+
+ Conveying under any other circumstances is permitted solely under
+the conditions stated below. Sublicensing is not allowed; section 10
+makes it unnecessary.
+
+ 3. Protecting Users' Legal Rights From Anti-Circumvention Law.
+
+ No covered work shall be deemed part of an effective technological
+measure under any applicable law fulfilling obligations under article
+11 of the WIPO copyright treaty adopted on 20 December 1996, or
+similar laws prohibiting or restricting circumvention of such
+measures.
+
+ When you convey a covered work, you waive any legal power to forbid
+circumvention of technological measures to the extent such circumvention
+is effected by exercising rights under this License with respect to
+the covered work, and you disclaim any intention to limit operation or
+modification of the work as a means of enforcing, against the work's
+users, your or third parties' legal rights to forbid circumvention of
+technological measures.
+
+ 4. Conveying Verbatim Copies.
+
+ You may convey verbatim copies of the Program's source code as you
+receive it, in any medium, provided that you conspicuously and
+appropriately publish on each copy an appropriate copyright notice;
+keep intact all notices stating that this License and any
+non-permissive terms added in accord with section 7 apply to the code;
+keep intact all notices of the absence of any warranty; and give all
+recipients a copy of this License along with the Program.
+
+ You may charge any price or no price for each copy that you convey,
+and you may offer support or warranty protection for a fee.
+
+ 5. Conveying Modified Source Versions.
+
+ You may convey a work based on the Program, or the modifications to
+produce it from the Program, in the form of source code under the
+terms of section 4, provided that you also meet all of these conditions:
+
+ a) The work must carry prominent notices stating that you modified
+ it, and giving a relevant date.
+
+ b) The work must carry prominent notices stating that it is
+ released under this License and any conditions added under section
+ 7. This requirement modifies the requirement in section 4 to
+ "keep intact all notices".
+
+ c) You must license the entire work, as a whole, under this
+ License to anyone who comes into possession of a copy. This
+ License will therefore apply, along with any applicable section 7
+ additional terms, to the whole of the work, and all its parts,
+ regardless of how they are packaged. This License gives no
+ permission to license the work in any other way, but it does not
+ invalidate such permission if you have separately received it.
+
+ d) If the work has interactive user interfaces, each must display
+ Appropriate Legal Notices; however, if the Program has interactive
+ interfaces that do not display Appropriate Legal Notices, your
+ work need not make them do so.
+
+ A compilation of a covered work with other separate and independent
+works, which are not by their nature extensions of the covered work,
+and which are not combined with it such as to form a larger program,
+in or on a volume of a storage or distribution medium, is called an
+"aggregate" if the compilation and its resulting copyright are not
+used to limit the access or legal rights of the compilation's users
+beyond what the individual works permit. Inclusion of a covered work
+in an aggregate does not cause this License to apply to the other
+parts of the aggregate.
+
+ 6. Conveying Non-Source Forms.
+
+ You may convey a covered work in object code form under the terms
+of sections 4 and 5, provided that you also convey the
+machine-readable Corresponding Source under the terms of this License,
+in one of these ways:
+
+ a) Convey the object code in, or embodied in, a physical product
+ (including a physical distribution medium), accompanied by the
+ Corresponding Source fixed on a durable physical medium
+ customarily used for software interchange.
+
+ b) Convey the object code in, or embodied in, a physical product
+ (including a physical distribution medium), accompanied by a
+ written offer, valid for at least three years and valid for as
+ long as you offer spare parts or customer support for that product
+ model, to give anyone who possesses the object code either (1) a
+ copy of the Corresponding Source for all the software in the
+ product that is covered by this License, on a durable physical
+ medium customarily used for software interchange, for a price no
+ more than your reasonable cost of physically performing this
+ conveying of source, or (2) access to copy the
+ Corresponding Source from a network server at no charge.
+
+ c) Convey individual copies of the object code with a copy of the
+ written offer to provide the Corresponding Source. This
+ alternative is allowed only occasionally and noncommercially, and
+ only if you received the object code with such an offer, in accord
+ with subsection 6b.
+
+ d) Convey the object code by offering access from a designated
+ place (gratis or for a charge), and offer equivalent access to the
+ Corresponding Source in the same way through the same place at no
+ further charge. You need not require recipients to copy the
+ Corresponding Source along with the object code. If the place to
+ copy the object code is a network server, the Corresponding Source
+ may be on a different server (operated by you or a third party)
+ that supports equivalent copying facilities, provided you maintain
+ clear directions next to the object code saying where to find the
+ Corresponding Source. Regardless of what server hosts the
+ Corresponding Source, you remain obligated to ensure that it is
+ available for as long as needed to satisfy these requirements.
+
+ e) Convey the object code using peer-to-peer transmission, provided
+ you inform other peers where the object code and Corresponding
+ Source of the work are being offered to the general public at no
+ charge under subsection 6d.
+
+ A separable portion of the object code, whose source code is excluded
+from the Corresponding Source as a System Library, need not be
+included in conveying the object code work.
+
+ A "User Product" is either (1) a "consumer product", which means any
+tangible personal property which is normally used for personal, family,
+or household purposes, or (2) anything designed or sold for incorporation
+into a dwelling. In determining whether a product is a consumer product,
+doubtful cases shall be resolved in favor of coverage. For a particular
+product received by a particular user, "normally used" refers to a
+typical or common use of that class of product, regardless of the status
+of the particular user or of the way in which the particular user
+actually uses, or expects or is expected to use, the product. A product
+is a consumer product regardless of whether the product has substantial
+commercial, industrial or non-consumer uses, unless such uses represent
+the only significant mode of use of the product.
+
+ "Installation Information" for a User Product means any methods,
+procedures, authorization keys, or other information required to install
+and execute modified versions of a covered work in that User Product from
+a modified version of its Corresponding Source. The information must
+suffice to ensure that the continued functioning of the modified object
+code is in no case prevented or interfered with solely because
+modification has been made.
+
+ If you convey an object code work under this section in, or with, or
+specifically for use in, a User Product, and the conveying occurs as
+part of a transaction in which the right of possession and use of the
+User Product is transferred to the recipient in perpetuity or for a
+fixed term (regardless of how the transaction is characterized), the
+Corresponding Source conveyed under this section must be accompanied
+by the Installation Information. But this requirement does not apply
+if neither you nor any third party retains the ability to install
+modified object code on the User Product (for example, the work has
+been installed in ROM).
+
+ The requirement to provide Installation Information does not include a
+requirement to continue to provide support service, warranty, or updates
+for a work that has been modified or installed by the recipient, or for
+the User Product in which it has been modified or installed. Access to a
+network may be denied when the modification itself materially and
+adversely affects the operation of the network or violates the rules and
+protocols for communication across the network.
+
+ Corresponding Source conveyed, and Installation Information provided,
+in accord with this section must be in a format that is publicly
+documented (and with an implementation available to the public in
+source code form), and must require no special password or key for
+unpacking, reading or copying.
+
+ 7. Additional Terms.
+
+ "Additional permissions" are terms that supplement the terms of this
+License by making exceptions from one or more of its conditions.
+Additional permissions that are applicable to the entire Program shall
+be treated as though they were included in this License, to the extent
+that they are valid under applicable law. If additional permissions
+apply only to part of the Program, that part may be used separately
+under those permissions, but the entire Program remains governed by
+this License without regard to the additional permissions.
+
+ When you convey a copy of a covered work, you may at your option
+remove any additional permissions from that copy, or from any part of
+it. (Additional permissions may be written to require their own
+removal in certain cases when you modify the work.) You may place
+additional permissions on material, added by you to a covered work,
+for which you have or can give appropriate copyright permission.
+
+ Notwithstanding any other provision of this License, for material you
+add to a covered work, you may (if authorized by the copyright holders of
+that material) supplement the terms of this License with terms:
+
+ a) Disclaiming warranty or limiting liability differently from the
+ terms of sections 15 and 16 of this License; or
+
+ b) Requiring preservation of specified reasonable legal notices or
+ author attributions in that material or in the Appropriate Legal
+ Notices displayed by works containing it; or
+
+ c) Prohibiting misrepresentation of the origin of that material, or
+ requiring that modified versions of such material be marked in
+ reasonable ways as different from the original version; or
+
+ d) Limiting the use for publicity purposes of names of licensors or
+ authors of the material; or
+
+ e) Declining to grant rights under trademark law for use of some
+ trade names, trademarks, or service marks; or
+
+ f) Requiring indemnification of licensors and authors of that
+ material by anyone who conveys the material (or modified versions of
+ it) with contractual assumptions of liability to the recipient, for
+ any liability that these contractual assumptions directly impose on
+ those licensors and authors.
+
+ All other non-permissive additional terms are considered "further
+restrictions" within the meaning of section 10. If the Program as you
+received it, or any part of it, contains a notice stating that it is
+governed by this License along with a term that is a further
+restriction, you may remove that term. If a license document contains
+a further restriction but permits relicensing or conveying under this
+License, you may add to a covered work material governed by the terms
+of that license document, provided that the further restriction does
+not survive such relicensing or conveying.
+
+ If you add terms to a covered work in accord with this section, you
+must place, in the relevant source files, a statement of the
+additional terms that apply to those files, or a notice indicating
+where to find the applicable terms.
+
+ Additional terms, permissive or non-permissive, may be stated in the
+form of a separately written license, or stated as exceptions;
+the above requirements apply either way.
+
+ 8. Termination.
+
+ You may not propagate or modify a covered work except as expressly
+provided under this License. Any attempt otherwise to propagate or
+modify it is void, and will automatically terminate your rights under
+this License (including any patent licenses granted under the third
+paragraph of section 11).
+
+ However, if you cease all violation of this License, then your
+license from a particular copyright holder is reinstated (a)
+provisionally, unless and until the copyright holder explicitly and
+finally terminates your license, and (b) permanently, if the copyright
+holder fails to notify you of the violation by some reasonable means
+prior to 60 days after the cessation.
+
+ Moreover, your license from a particular copyright holder is
+reinstated permanently if the copyright holder notifies you of the
+violation by some reasonable means, this is the first time you have
+received notice of violation of this License (for any work) from that
+copyright holder, and you cure the violation prior to 30 days after
+your receipt of the notice.
+
+ Termination of your rights under this section does not terminate the
+licenses of parties who have received copies or rights from you under
+this License. If your rights have been terminated and not permanently
+reinstated, you do not qualify to receive new licenses for the same
+material under section 10.
+
+ 9. Acceptance Not Required for Having Copies.
+
+ You are not required to accept this License in order to receive or
+run a copy of the Program. Ancillary propagation of a covered work
+occurring solely as a consequence of using peer-to-peer transmission
+to receive a copy likewise does not require acceptance. However,
+nothing other than this License grants you permission to propagate or
+modify any covered work. These actions infringe copyright if you do
+not accept this License. Therefore, by modifying or propagating a
+covered work, you indicate your acceptance of this License to do so.
+
+ 10. Automatic Licensing of Downstream Recipients.
+
+ Each time you convey a covered work, the recipient automatically
+receives a license from the original licensors, to run, modify and
+propagate that work, subject to this License. You are not responsible
+for enforcing compliance by third parties with this License.
+
+ An "entity transaction" is a transaction transferring control of an
+organization, or substantially all assets of one, or subdividing an
+organization, or merging organizations. If propagation of a covered
+work results from an entity transaction, each party to that
+transaction who receives a copy of the work also receives whatever
+licenses to the work the party's predecessor in interest had or could
+give under the previous paragraph, plus a right to possession of the
+Corresponding Source of the work from the predecessor in interest, if
+the predecessor has it or can get it with reasonable efforts.
+
+ You may not impose any further restrictions on the exercise of the
+rights granted or affirmed under this License. For example, you may
+not impose a license fee, royalty, or other charge for exercise of
+rights granted under this License, and you may not initiate litigation
+(including a cross-claim or counterclaim in a lawsuit) alleging that
+any patent claim is infringed by making, using, selling, offering for
+sale, or importing the Program or any portion of it.
+
+ 11. Patents.
+
+ A "contributor" is a copyright holder who authorizes use under this
+License of the Program or a work on which the Program is based. The
+work thus licensed is called the contributor's "contributor version".
+
+ A contributor's "essential patent claims" are all patent claims
+owned or controlled by the contributor, whether already acquired or
+hereafter acquired, that would be infringed by some manner, permitted
+by this License, of making, using, or selling its contributor version,
+but do not include claims that would be infringed only as a
+consequence of further modification of the contributor version. For
+purposes of this definition, "control" includes the right to grant
+patent sublicenses in a manner consistent with the requirements of
this License.
- 7. If, as a consequence of a court judgment or allegation of patent
-infringement or for any other reason (not limited to patent issues),
-conditions are imposed on you (whether by court order, agreement or
+ Each contributor grants you a non-exclusive, worldwide, royalty-free
+patent license under the contributor's essential patent claims, to
+make, use, sell, offer for sale, import and otherwise run, modify and
+propagate the contents of its contributor version.
+
+ In the following three paragraphs, a "patent license" is any express
+agreement or commitment, however denominated, not to enforce a patent
+(such as an express permission to practice a patent or covenant not to
+sue for patent infringement). To "grant" such a patent license to a
+party means to make such an agreement or commitment not to enforce a
+patent against the party.
+
+ If you convey a covered work, knowingly relying on a patent license,
+and the Corresponding Source of the work is not available for anyone
+to copy, free of charge and under the terms of this License, through a
+publicly available network server or other readily accessible means,
+then you must either (1) cause the Corresponding Source to be so
+available, or (2) arrange to deprive yourself of the benefit of the
+patent license for this particular work, or (3) arrange, in a manner
+consistent with the requirements of this License, to extend the patent
+license to downstream recipients. "Knowingly relying" means you have
+actual knowledge that, but for the patent license, your conveying the
+covered work in a country, or your recipient's use of the covered work
+in a country, would infringe one or more identifiable patents in that
+country that you have reason to believe are valid.
+
+ If, pursuant to or in connection with a single transaction or
+arrangement, you convey, or propagate by procuring conveyance of, a
+covered work, and grant a patent license to some of the parties
+receiving the covered work authorizing them to use, propagate, modify
+or convey a specific copy of the covered work, then the patent license
+you grant is automatically extended to all recipients of the covered
+work and works based on it.
+
+ A patent license is "discriminatory" if it does not include within
+the scope of its coverage, prohibits the exercise of, or is
+conditioned on the non-exercise of one or more of the rights that are
+specifically granted under this License. You may not convey a covered
+work if you are a party to an arrangement with a third party that is
+in the business of distributing software, under which you make payment
+to the third party based on the extent of your activity of conveying
+the work, and under which the third party grants, to any of the
+parties who would receive the covered work from you, a discriminatory
+patent license (a) in connection with copies of the covered work
+conveyed by you (or copies made from those copies), or (b) primarily
+for and in connection with specific products or compilations that
+contain the covered work, unless you entered into that arrangement,
+or that patent license was granted, prior to 28 March 2007.
+
+ Nothing in this License shall be construed as excluding or limiting
+any implied license or other defenses to infringement that may
+otherwise be available to you under applicable patent law.
+
+ 12. No Surrender of Others' Freedom.
+
+ If conditions are imposed on you (whether by court order, agreement or
otherwise) that contradict the conditions of this License, they do not
-excuse you from the conditions of this License. If you cannot
-distribute so as to satisfy simultaneously your obligations under this
-License and any other pertinent obligations, then as a consequence you
-may not distribute the Program at all. For example, if a patent
-license would not permit royalty-free redistribution of the Program by
-all those who receive copies directly or indirectly through you, then
-the only way you could satisfy both it and this License would be to
-refrain entirely from distribution of the Program.
-
-If any portion of this section is held invalid or unenforceable under
-any particular circumstance, the balance of the section is intended to
-apply and the section as a whole is intended to apply in other
-circumstances.
-
-It is not the purpose of this section to induce you to infringe any
-patents or other property right claims or to contest validity of any
-such claims; this section has the sole purpose of protecting the
-integrity of the free software distribution system, which is
-implemented by public license practices. Many people have made
-generous contributions to the wide range of software distributed
-through that system in reliance on consistent application of that
-system; it is up to the author/donor to decide if he or she is willing
-to distribute software through any other system and a licensee cannot
-impose that choice.
-
-This section is intended to make thoroughly clear what is believed to
-be a consequence of the rest of this License.
-
- 8. If the distribution and/or use of the Program is restricted in
-certain countries either by patents or by copyrighted interfaces, the
-original copyright holder who places the Program under this License
-may add an explicit geographical distribution limitation excluding
-those countries, so that distribution is permitted only in or among
-countries not thus excluded. In such case, this License incorporates
-the limitation as if written in the body of this License.
-
- 9. The Free Software Foundation may publish revised and/or new versions
-of the General Public License from time to time. Such new versions will
+excuse you from the conditions of this License. If you cannot convey a
+covered work so as to satisfy simultaneously your obligations under this
+License and any other pertinent obligations, then as a consequence you may
+not convey it at all. For example, if you agree to terms that obligate you
+to collect a royalty for further conveying from those to whom you convey
+the Program, the only way you could satisfy both those terms and this
+License would be to refrain entirely from conveying the Program.
+
+ 13. Use with the GNU Affero General Public License.
+
+ Notwithstanding any other provision of this License, you have
+permission to link or combine any covered work with a work licensed
+under version 3 of the GNU Affero General Public License into a single
+combined work, and to convey the resulting work. The terms of this
+License will continue to apply to the part which is the covered work,
+but the special requirements of the GNU Affero General Public License,
+section 13, concerning interaction through a network will apply to the
+combination as such.
+
+ 14. Revised Versions of this License.
+
+ The Free Software Foundation may publish revised and/or new versions of
+the GNU General Public License from time to time. Such new versions will
be similar in spirit to the present version, but may differ in detail to
address new problems or concerns.
-Each version is given a distinguishing version number. If the Program
-specifies a version number of this License which applies to it and "any
-later version", you have the option of following the terms and conditions
-either of that version or of any later version published by the Free
-Software Foundation. If the Program does not specify a version number of
-this License, you may choose any version ever published by the Free Software
-Foundation.
-
- 10. If you wish to incorporate parts of the Program into other free
-programs whose distribution conditions are different, write to the author
-to ask for permission. For software which is copyrighted by the Free
-Software Foundation, write to the Free Software Foundation; we sometimes
-make exceptions for this. Our decision will be guided by the two goals
-of preserving the free status of all derivatives of our free software and
-of promoting the sharing and reuse of software generally.
-
- NO WARRANTY
-
- 11. BECAUSE THE PROGRAM IS LICENSED FREE OF CHARGE, THERE IS NO WARRANTY
-FOR THE PROGRAM, TO THE EXTENT PERMITTED BY APPLICABLE LAW. EXCEPT WHEN
-OTHERWISE STATED IN WRITING THE COPYRIGHT HOLDERS AND/OR OTHER PARTIES
-PROVIDE THE PROGRAM "AS IS" WITHOUT WARRANTY OF ANY KIND, EITHER EXPRESSED
-OR IMPLIED, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF
-MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE. THE ENTIRE RISK AS
-TO THE QUALITY AND PERFORMANCE OF THE PROGRAM IS WITH YOU. SHOULD THE
-PROGRAM PROVE DEFECTIVE, YOU ASSUME THE COST OF ALL NECESSARY SERVICING,
-REPAIR OR CORRECTION.
-
- 12. IN NO EVENT UNLESS REQUIRED BY APPLICABLE LAW OR AGREED TO IN WRITING
-WILL ANY COPYRIGHT HOLDER, OR ANY OTHER PARTY WHO MAY MODIFY AND/OR
-REDISTRIBUTE THE PROGRAM AS PERMITTED ABOVE, BE LIABLE TO YOU FOR DAMAGES,
-INCLUDING ANY GENERAL, SPECIAL, INCIDENTAL OR CONSEQUENTIAL DAMAGES ARISING
-OUT OF THE USE OR INABILITY TO USE THE PROGRAM (INCLUDING BUT NOT LIMITED
-TO LOSS OF DATA OR DATA BEING RENDERED INACCURATE OR LOSSES SUSTAINED BY
-YOU OR THIRD PARTIES OR A FAILURE OF THE PROGRAM TO OPERATE WITH ANY OTHER
-PROGRAMS), EVEN IF SUCH HOLDER OR OTHER PARTY HAS BEEN ADVISED OF THE
-POSSIBILITY OF SUCH DAMAGES.
-
- END OF TERMS AND CONDITIONS
-
- Appendix: How to Apply These Terms to Your New Programs
+ Each version is given a distinguishing version number. If the
+Program specifies that a certain numbered version of the GNU General
+Public License "or any later version" applies to it, you have the
+option of following the terms and conditions either of that numbered
+version or of any later version published by the Free Software
+Foundation. If the Program does not specify a version number of the
+GNU General Public License, you may choose any version ever published
+by the Free Software Foundation.
+
+ If the Program specifies that a proxy can decide which future
+versions of the GNU General Public License can be used, that proxy's
+public statement of acceptance of a version permanently authorizes you
+to choose that version for the Program.
+
+ Later license versions may give you additional or different
+permissions. However, no additional obligations are imposed on any
+author or copyright holder as a result of your choosing to follow a
+later version.
+
+ 15. Disclaimer of Warranty.
+
+ THERE IS NO WARRANTY FOR THE PROGRAM, TO THE EXTENT PERMITTED BY
+APPLICABLE LAW. EXCEPT WHEN OTHERWISE STATED IN WRITING THE COPYRIGHT
+HOLDERS AND/OR OTHER PARTIES PROVIDE THE PROGRAM "AS IS" WITHOUT WARRANTY
+OF ANY KIND, EITHER EXPRESSED OR IMPLIED, INCLUDING, BUT NOT LIMITED TO,
+THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR
+PURPOSE. THE ENTIRE RISK AS TO THE QUALITY AND PERFORMANCE OF THE PROGRAM
+IS WITH YOU. SHOULD THE PROGRAM PROVE DEFECTIVE, YOU ASSUME THE COST OF
+ALL NECESSARY SERVICING, REPAIR OR CORRECTION.
+
+ 16. Limitation of Liability.
+
+ IN NO EVENT UNLESS REQUIRED BY APPLICABLE LAW OR AGREED TO IN WRITING
+WILL ANY COPYRIGHT HOLDER, OR ANY OTHER PARTY WHO MODIFIES AND/OR CONVEYS
+THE PROGRAM AS PERMITTED ABOVE, BE LIABLE TO YOU FOR DAMAGES, INCLUDING ANY
+GENERAL, SPECIAL, INCIDENTAL OR CONSEQUENTIAL DAMAGES ARISING OUT OF THE
+USE OR INABILITY TO USE THE PROGRAM (INCLUDING BUT NOT LIMITED TO LOSS OF
+DATA OR DATA BEING RENDERED INACCURATE OR LOSSES SUSTAINED BY YOU OR THIRD
+PARTIES OR A FAILURE OF THE PROGRAM TO OPERATE WITH ANY OTHER PROGRAMS),
+EVEN IF SUCH HOLDER OR OTHER PARTY HAS BEEN ADVISED OF THE POSSIBILITY OF
+SUCH DAMAGES.
+
+ 17. Interpretation of Sections 15 and 16.
+
+ If the disclaimer of warranty and limitation of liability provided
+above cannot be given local legal effect according to their terms,
+reviewing courts shall apply local law that most closely approximates
+an absolute waiver of all civil liability in connection with the
+Program, unless a warranty or assumption of liability accompanies a
+copy of the Program in return for a fee.
+
+ END OF TERMS AND CONDITIONS
+
+ How to Apply These Terms to Your New Programs
If you develop a new program, and you want it to be of the greatest
possible use to the public, the best way to achieve this is to make it
@@ -287,15 +628,15 @@ free software which everyone can redistribute and change under these terms.
To do so, attach the following notices to the program. It is safest
to attach them to the start of each source file to most effectively
-convey the exclusion of warranty; and each file should have at least
+state the exclusion of warranty; and each file should have at least
the "copyright" line and a pointer to where the full notice is found.
<one line to give the program's name and a brief idea of what it does.>
- Copyright (C) 19yy <name of author>
+ Copyright (C) <year> <name of author>
- This program is free software; you can redistribute it and/or modify
+ 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 of the License, or
+ the Free Software Foundation, either version 3 of the License, or
(at your option) any later version.
This program is distributed in the hope that it will be useful,
@@ -303,37 +644,31 @@ the "copyright" line and a pointer to where the full notice is found.
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; if not, write to the Free Software Foundation, Inc.,
- 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
+ You should have received a copy of the GNU General Public License
+ along with this program. If not, see <http://www.gnu.org/licenses/>.
Also add information on how to contact you by electronic and paper mail.
-If the program is interactive, make it output a short notice like this
-when it starts in an interactive mode:
+ If the program does terminal interaction, make it output a short
+notice like this when it starts in an interactive mode:
- Gnomovision version 69, Copyright (C) 19yy name of author
- Gnomovision comes with ABSOLUTELY NO WARRANTY; for details type `show w'.
+ <program> Copyright (C) <year> <name of author>
+ This program comes with ABSOLUTELY NO WARRANTY; for details type `show w'.
This is free software, and you are welcome to redistribute it
under certain conditions; type `show c' for details.
The hypothetical commands `show w' and `show c' should show the appropriate
-parts of the General Public License. Of course, the commands you use may
-be called something other than `show w' and `show c'; they could even be
-mouse-clicks or menu items--whatever suits your program.
-
-You should also get your employer (if you work as a programmer) or your
-school, if any, to sign a "copyright disclaimer" for the program, if
-necessary. Here is a sample; alter the names:
-
- Yoyodyne, Inc., hereby disclaims all copyright interest in the program
- `Gnomovision' (which makes passes at compilers) written by James Hacker.
-
- <signature of Ty Coon>, 1 April 1989
- Ty Coon, President of Vice
-
-This General Public License does not permit incorporating your program into
-proprietary programs. If your program is a subroutine library, you may
-consider it more useful to permit linking proprietary applications with the
-library. If this is what you want to do, use the GNU Library General
-Public License instead of this License.
+parts of the General Public License. Of course, your program's commands
+might be different; for a GUI interface, you would use an "about box".
+
+ You should also get your employer (if you work as a programmer) or school,
+if any, to sign a "copyright disclaimer" for the program, if necessary.
+For more information on this, and how to apply and follow the GNU GPL, see
+<http://www.gnu.org/licenses/>.
+
+ The GNU General Public License does not permit incorporating your program
+into proprietary programs. If your program is a subroutine library, you
+may consider it more useful to permit linking proprietary applications with
+the library. If this is what you want to do, use the GNU Lesser General
+Public License instead of this License. But first, please read
+<http://www.gnu.org/philosophy/why-not-lgpl.html>.
diff --git a/FAQ b/FAQ
deleted file mode 120000
index 1ad45dd..0000000
--- a/FAQ
+++ /dev/null
@@ -1 +0,0 @@
-doc/FAQ \ No newline at end of file
diff --git a/Makefile b/Makefile
deleted file mode 100644
index 06b972a..0000000
--- a/Makefile
+++ /dev/null
@@ -1,3 +0,0 @@
-install all Makefiles and config:
- rm -f config.cache
- sh ./configure
diff --git a/comm.h.dist b/comm.h.dist
deleted file mode 100644
index bdc620e..0000000
--- a/comm.h.dist
+++ /dev/null
@@ -1,227 +0,0 @@
-/*
- * This file is automagically created from comm.c -- DO NOT EDIT
- */
-
-struct comm
-{
- char *name;
- int flags;
-#ifdef MULTIUSER
- AclBits userbits[ACL_BITS_PER_CMD];
-#endif
-};
-
-#define ARGS_MASK (3)
-
-#define ARGS_0 (0)
-#define ARGS_1 (1)
-#define ARGS_2 (2)
-#define ARGS_3 (3)
-
-#define ARGS_PLUS1 (1<<2)
-#define ARGS_PLUS2 (1<<3)
-#define ARGS_PLUS3 (1<<4)
-#define ARGS_ORMORE (1<<5)
-
-#define NEED_FORE (1<<6) /* this command needs a fore window */
-#define NEED_DISPLAY (1<<7) /* this command needs a display */
-#define NEED_LAYER (1<<8) /* this command needs a layer */
-
-#define ARGS_01 (ARGS_0 | ARGS_PLUS1)
-#define ARGS_02 (ARGS_0 | ARGS_PLUS2)
-#define ARGS_12 (ARGS_1 | ARGS_PLUS1)
-#define ARGS_23 (ARGS_2 | ARGS_PLUS1)
-#define ARGS_24 (ARGS_2 | ARGS_PLUS2)
-#define ARGS_34 (ARGS_3 | ARGS_PLUS1)
-#define ARGS_012 (ARGS_0 | ARGS_PLUS1 | ARGS_PLUS2)
-#define ARGS_0123 (ARGS_0 | ARGS_PLUS1 | ARGS_PLUS2 | ARGS_PLUS3)
-#define ARGS_123 (ARGS_1 | ARGS_PLUS1 | ARGS_PLUS2)
-#define ARGS_124 (ARGS_1 | ARGS_PLUS1 | ARGS_PLUS3)
-#define ARGS_1234 (ARGS_1 | ARGS_PLUS1 | ARGS_PLUS2 | ARGS_PLUS3)
-
-struct action
-{
- int nr;
- char **args;
- int *argl;
-};
-
-#define RC_ILLEGAL -1
-
-#define RC_ACLADD 0
-#define RC_ACLCHG 1
-#define RC_ACLDEL 2
-#define RC_ACLGRP 3
-#define RC_ACLUMASK 4
-#define RC_ACTIVITY 5
-#define RC_ADDACL 6
-#define RC_ALLPARTIAL 7
-#define RC_ALTSCREEN 8
-#define RC_AT 9
-#define RC_ATTRCOLOR 10
-#define RC_AUTODETACH 11
-#define RC_AUTONUKE 12
-#define RC_BACKTICK 13
-#define RC_BCE 14
-#define RC_BELL 15
-#define RC_BELL_MSG 16
-#define RC_BIND 17
-#define RC_BINDKEY 18
-#define RC_BLANKER 19
-#define RC_BLANKERPRG 20
-#define RC_BREAK 21
-#define RC_BREAKTYPE 22
-#define RC_BUFFERFILE 23
-#define RC_C1 24
-#define RC_CAPTION 25
-#define RC_CHACL 26
-#define RC_CHARSET 27
-#define RC_CHDIR 28
-#define RC_CLEAR 29
-#define RC_COLON 30
-#define RC_COMMAND 31
-#define RC_COMPACTHIST 32
-#define RC_CONSOLE 33
-#define RC_COPY 34
-#define RC_CRLF 35
-#define RC_DEBUG 36
-#define RC_DEFAUTONUKE 37
-#define RC_DEFBCE 38
-#define RC_DEFBREAKTYPE 39
-#define RC_DEFC1 40
-#define RC_DEFCHARSET 41
-#define RC_DEFENCODING 42
-#define RC_DEFESCAPE 43
-#define RC_DEFFLOW 44
-#define RC_DEFGR 45
-#define RC_DEFHSTATUS 46
-#define RC_DEFKANJI 47
-#define RC_DEFLOG 48
-#define RC_DEFLOGIN 49
-#define RC_DEFMODE 50
-#define RC_DEFMONITOR 51
-#define RC_DEFNONBLOCK 52
-#define RC_DEFOBUFLIMIT 53
-#define RC_DEFSCROLLBACK 54
-#define RC_DEFSHELL 55
-#define RC_DEFSILENCE 56
-#define RC_DEFSLOWPASTE 57
-#define RC_DEFUTF8 58
-#define RC_DEFWRAP 59
-#define RC_DEFWRITELOCK 60
-#define RC_DETACH 61
-#define RC_DIGRAPH 62
-#define RC_DINFO 63
-#define RC_DISPLAYS 64
-#define RC_DUMPTERMCAP 65
-#define RC_ECHO 66
-#define RC_ENCODING 67
-#define RC_ESCAPE 68
-#define RC_EVAL 69
-#define RC_EXEC 70
-#define RC_FIT 71
-#define RC_FLOW 72
-#define RC_FOCUS 73
-#define RC_GR 74
-#define RC_HARDCOPY 75
-#define RC_HARDCOPY_APPEND 76
-#define RC_HARDCOPYDIR 77
-#define RC_HARDSTATUS 78
-#define RC_HEIGHT 79
-#define RC_HELP 80
-#define RC_HISTORY 81
-#define RC_HSTATUS 82
-#define RC_IDLE 83
-#define RC_IGNORECASE 84
-#define RC_INFO 85
-#define RC_KANJI 86
-#define RC_KILL 87
-#define RC_LASTMSG 88
-#define RC_LICENSE 89
-#define RC_LOCKSCREEN 90
-#define RC_LOG 91
-#define RC_LOGFILE 92
-#define RC_LOGIN 93
-#define RC_LOGTSTAMP 94
-#define RC_MAPDEFAULT 95
-#define RC_MAPNOTNEXT 96
-#define RC_MAPTIMEOUT 97
-#define RC_MARKKEYS 98
-#define RC_MAXWIN 99
-#define RC_META 100
-#define RC_MONITOR 101
-#define RC_MSGMINWAIT 102
-#define RC_MSGWAIT 103
-#define RC_MULTIUSER 104
-#define RC_NETHACK 105
-#define RC_NEXT 106
-#define RC_NONBLOCK 107
-#define RC_NUMBER 108
-#define RC_OBUFLIMIT 109
-#define RC_ONLY 110
-#define RC_OTHER 111
-#define RC_PARTIAL 112
-#define RC_PASSWORD 113
-#define RC_PASTE 114
-#define RC_PASTEFONT 115
-#define RC_POW_BREAK 116
-#define RC_POW_DETACH 117
-#define RC_POW_DETACH_MSG 118
-#define RC_PREV 119
-#define RC_PRINTCMD 120
-#define RC_PROCESS 121
-#define RC_QUIT 122
-#define RC_READBUF 123
-#define RC_READREG 124
-#define RC_REDISPLAY 125
-#define RC_REGISTER 126
-#define RC_REMOVE 127
-#define RC_REMOVEBUF 128
-#define RC_RESET 129
-#define RC_RESIZE 130
-#define RC_SCREEN 131
-#define RC_SCROLLBACK 132
-#define RC_SELECT 133
-#define RC_SESSIONNAME 134
-#define RC_SETENV 135
-#define RC_SETSID 136
-#define RC_SHELL 137
-#define RC_SHELLTITLE 138
-#define RC_SILENCE 139
-#define RC_SILENCEWAIT 140
-#define RC_SLEEP 141
-#define RC_SLOWPASTE 142
-#define RC_SORENDITION 143
-#define RC_SOURCE 144
-#define RC_SPLIT 145
-#define RC_STARTUP_MESSAGE 146
-#define RC_STUFF 147
-#define RC_SU 148
-#define RC_SUSPEND 149
-#define RC_TERM 150
-#define RC_TERMCAP 151
-#define RC_TERMCAPINFO 152
-#define RC_TERMINFO 153
-#define RC_TIME 154
-#define RC_TITLE 155
-#define RC_UMASK 156
-#define RC_UNSETENV 157
-#define RC_UTF8 158
-#define RC_VBELL 159
-#define RC_VBELL_MSG 160
-#define RC_VBELLWAIT 161
-#define RC_VERBOSE 162
-#define RC_VERSION 163
-#define RC_WALL 164
-#define RC_WIDTH 165
-#define RC_WINDOWLIST 166
-#define RC_WINDOWS 167
-#define RC_WRAP 168
-#define RC_WRITEBUF 169
-#define RC_WRITELOCK 170
-#define RC_XOFF 171
-#define RC_XON 172
-#define RC_ZMODEM 173
-#define RC_ZOMBIE 174
-
-#define RC_LAST 174
diff --git a/configure b/configure
deleted file mode 100755
index 75675fc..0000000
--- a/configure
+++ /dev/null
@@ -1,9194 +0,0 @@
-#! /bin/sh
-# From configure.in Revision: 1.18 .
-# Guess values for system-dependent variables and create Makefiles.
-# Generated by GNU Autoconf 2.57.
-#
-# Copyright 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001, 2002
-# Free Software Foundation, Inc.
-# This configure script is free software; the Free Software Foundation
-# gives unlimited permission to copy, distribute and modify it.
-## --------------------- ##
-## M4sh Initialization. ##
-## --------------------- ##
-
-# Be Bourne compatible
-if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
- emulate sh
- NULLCMD=:
- # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
- # is contrary to our usage. Disable this feature.
- alias -g '${1+"$@"}'='"$@"'
-elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
- set -o posix
-fi
-
-# Support unset when possible.
-if (FOO=FOO; unset FOO) >/dev/null 2>&1; then
- as_unset=unset
-else
- as_unset=false
-fi
-
-
-# Work around bugs in pre-3.0 UWIN ksh.
-$as_unset ENV MAIL MAILPATH
-PS1='$ '
-PS2='> '
-PS4='+ '
-
-# NLS nuisances.
-for as_var in \
- LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
- LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
- LC_TELEPHONE LC_TIME
-do
- if (set +x; test -n "`(eval $as_var=C; export $as_var) 2>&1`"); then
- eval $as_var=C; export $as_var
- else
- $as_unset $as_var
- fi
-done
-
-# Required to use basename.
-if expr a : '\(a\)' >/dev/null 2>&1; then
- as_expr=expr
-else
- as_expr=false
-fi
-
-if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then
- as_basename=basename
-else
- as_basename=false
-fi
-
-
-# Name of the executable.
-as_me=`$as_basename "$0" ||
-$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
- X"$0" : 'X\(//\)$' \| \
- X"$0" : 'X\(/\)$' \| \
- . : '\(.\)' 2>/dev/null ||
-echo X/"$0" |
- sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
- /^X\/\(\/\/\)$/{ s//\1/; q; }
- /^X\/\(\/\).*/{ s//\1/; q; }
- s/.*/./; q'`
-
-
-# PATH needs CR, and LINENO needs CR and PATH.
-# Avoid depending upon Character Ranges.
-as_cr_letters='abcdefghijklmnopqrstuvwxyz'
-as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
-as_cr_Letters=$as_cr_letters$as_cr_LETTERS
-as_cr_digits='0123456789'
-as_cr_alnum=$as_cr_Letters$as_cr_digits
-
-# The user is always right.
-if test "${PATH_SEPARATOR+set}" != set; then
- echo "#! /bin/sh" >conf$$.sh
- echo "exit 0" >>conf$$.sh
- chmod +x conf$$.sh
- if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
- PATH_SEPARATOR=';'
- else
- PATH_SEPARATOR=:
- fi
- rm -f conf$$.sh
-fi
-
-
- as_lineno_1=$LINENO
- as_lineno_2=$LINENO
- as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
- test "x$as_lineno_1" != "x$as_lineno_2" &&
- test "x$as_lineno_3" = "x$as_lineno_2" || {
- # Find who we are. Look in the path if we contain no path at all
- # relative or not.
- case $0 in
- *[\\/]* ) as_myself=$0 ;;
- *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
-for as_dir in $PATH
-do
- IFS=$as_save_IFS
- test -z "$as_dir" && as_dir=.
- test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
-done
-
- ;;
- esac
- # We did not find ourselves, most probably we were run as `sh COMMAND'
- # in which case we are not to be found in the path.
- if test "x$as_myself" = x; then
- as_myself=$0
- fi
- if test ! -f "$as_myself"; then
- { echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2
- { (exit 1); exit 1; }; }
- fi
- case $CONFIG_SHELL in
- '')
- as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
-for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
-do
- IFS=$as_save_IFS
- test -z "$as_dir" && as_dir=.
- for as_base in sh bash ksh sh5; do
- case $as_dir in
- /*)
- if ("$as_dir/$as_base" -c '
- as_lineno_1=$LINENO
- as_lineno_2=$LINENO
- as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
- test "x$as_lineno_1" != "x$as_lineno_2" &&
- test "x$as_lineno_3" = "x$as_lineno_2" ') 2>/dev/null; then
- $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; }
- $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; }
- CONFIG_SHELL=$as_dir/$as_base
- export CONFIG_SHELL
- exec "$CONFIG_SHELL" "$0" ${1+"$@"}
- fi;;
- esac
- done
-done
-;;
- esac
-
- # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
- # uniformly replaced by the line number. The first 'sed' inserts a
- # line-number line before each line; the second 'sed' does the real
- # work. The second script uses 'N' to pair each line-number line
- # with the numbered line, and appends trailing '-' during
- # substitution so that $LINENO is not a special case at line end.
- # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
- # second 'sed' script. Blame Lee E. McMahon for sed's syntax. :-)
- sed '=' <$as_myself |
- sed '
- N
- s,$,-,
- : loop
- s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
- t loop
- s,-$,,
- s,^['$as_cr_digits']*\n,,
- ' >$as_me.lineno &&
- chmod +x $as_me.lineno ||
- { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
- { (exit 1); exit 1; }; }
-
- # Don't try to exec as it changes $[0], causing all sort of problems
- # (the dirname of $[0] is not the place where we might find the
- # original and so on. Autoconf is especially sensible to this).
- . ./$as_me.lineno
- # Exit status is that of the last command.
- exit
-}
-
-
-case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
- *c*,-n*) ECHO_N= ECHO_C='
-' ECHO_T=' ' ;;
- *c*,* ) ECHO_N=-n ECHO_C= ECHO_T= ;;
- *) ECHO_N= ECHO_C='\c' ECHO_T= ;;
-esac
-
-if expr a : '\(a\)' >/dev/null 2>&1; then
- as_expr=expr
-else
- as_expr=false
-fi
-
-rm -f conf$$ conf$$.exe conf$$.file
-echo >conf$$.file
-if ln -s conf$$.file conf$$ 2>/dev/null; then
- # We could just check for DJGPP; but this test a) works b) is more generic
- # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
- if test -f conf$$.exe; then
- # Don't use ln at all; we don't have any links
- as_ln_s='cp -p'
- else
- as_ln_s='ln -s'
- fi
-elif ln conf$$.file conf$$ 2>/dev/null; then
- as_ln_s=ln
-else
- as_ln_s='cp -p'
-fi
-rm -f conf$$ conf$$.exe conf$$.file
-
-if mkdir -p . 2>/dev/null; then
- as_mkdir_p=:
-else
- as_mkdir_p=false
-fi
-
-as_executable_p="test -f"
-
-# Sed expression to map a string onto a valid CPP name.
-as_tr_cpp="sed y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g"
-
-# Sed expression to map a string onto a valid variable name.
-as_tr_sh="sed y%*+%pp%;s%[^_$as_cr_alnum]%_%g"
-
-
-# IFS
-# We need space, tab and new line, in precisely that order.
-as_nl='
-'
-IFS=" $as_nl"
-
-# CDPATH.
-$as_unset CDPATH
-
-
-# Name of the host.
-# hostname on some systems (SVR3.2, Linux) returns a bogus exit status,
-# so uname gets run too.
-ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
-
-exec 6>&1
-
-#
-# Initializations.
-#
-ac_default_prefix=/usr/local
-ac_config_libobj_dir=.
-cross_compiling=no
-subdirs=
-MFLAGS=
-MAKEFLAGS=
-SHELL=${CONFIG_SHELL-/bin/sh}
-
-# Maximum number of lines to put in a shell here document.
-# This variable seems obsolete. It should probably be removed, and
-# only ac_max_sed_lines should be used.
-: ${ac_max_here_lines=38}
-
-# Identity of this package.
-PACKAGE_NAME=
-PACKAGE_TARNAME=
-PACKAGE_VERSION=
-PACKAGE_STRING=
-PACKAGE_BUGREPORT=
-
-ac_unique_file="screen.c"
-# Factoring default headers for most tests.
-ac_includes_default="\
-#include <stdio.h>
-#if HAVE_SYS_TYPES_H
-# include <sys/types.h>
-#endif
-#if HAVE_SYS_STAT_H
-# include <sys/stat.h>
-#endif
-#if STDC_HEADERS
-# include <stdlib.h>
-# include <stddef.h>
-#else
-# if HAVE_STDLIB_H
-# include <stdlib.h>
-# endif
-#endif
-#if HAVE_STRING_H
-# if !STDC_HEADERS && HAVE_MEMORY_H
-# include <memory.h>
-# endif
-# include <string.h>
-#endif
-#if HAVE_STRINGS_H
-# include <strings.h>
-#endif
-#if HAVE_INTTYPES_H
-# include <inttypes.h>
-#else
-# if HAVE_STDINT_H
-# include <stdint.h>
-# endif
-#endif
-#if HAVE_UNISTD_H
-# include <unistd.h>
-#endif"
-
-ac_subst_vars='SHELL PATH_SEPARATOR PACKAGE_NAME PACKAGE_TARNAME PACKAGE_VERSION PACKAGE_STRING PACKAGE_BUGREPORT exec_prefix prefix program_transform_name bindir sbindir libexecdir datadir sysconfdir sharedstatedir localstatedir libdir includedir oldincludedir infodir mandir build_alias host_alias target_alias DEFS ECHO_C ECHO_N ECHO_T LIBS VERSION ac_prefix_program CC CFLAGS LDFLAGS CPPFLAGS ac_ct_CC EXEEXT OBJEXT CPP EGREP AWK INSTALL_PROGRAM INSTALL_SCRIPT INSTALL_DATA WRITEPATH XTERMPATH LIBOBJS LTLIBOBJS'
-ac_subst_files=''
-
-# Initialize some variables set by options.
-ac_init_help=
-ac_init_version=false
-# The variables have the same names as the options, with
-# dashes changed to underlines.
-cache_file=/dev/null
-exec_prefix=NONE
-no_create=
-no_recursion=
-prefix=NONE
-program_prefix=NONE
-program_suffix=NONE
-program_transform_name=s,x,x,
-silent=
-site=
-srcdir=
-verbose=
-x_includes=NONE
-x_libraries=NONE
-
-# Installation directory options.
-# These are left unexpanded so users can "make install exec_prefix=/foo"
-# and all the variables that are supposed to be based on exec_prefix
-# by default will actually change.
-# Use braces instead of parens because sh, perl, etc. also accept them.
-bindir='${exec_prefix}/bin'
-sbindir='${exec_prefix}/sbin'
-libexecdir='${exec_prefix}/libexec'
-datadir='${prefix}/share'
-sysconfdir='${prefix}/etc'
-sharedstatedir='${prefix}/com'
-localstatedir='${prefix}/var'
-libdir='${exec_prefix}/lib'
-includedir='${prefix}/include'
-oldincludedir='/usr/include'
-infodir='${prefix}/info'
-mandir='${prefix}/man'
-
-ac_prev=
-for ac_option
-do
- # If the previous option needs an argument, assign it.
- if test -n "$ac_prev"; then
- eval "$ac_prev=\$ac_option"
- ac_prev=
- continue
- fi
-
- ac_optarg=`expr "x$ac_option" : 'x[^=]*=\(.*\)'`
-
- # Accept the important Cygnus configure options, so we can diagnose typos.
-
- case $ac_option in
-
- -bindir | --bindir | --bindi | --bind | --bin | --bi)
- ac_prev=bindir ;;
- -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
- bindir=$ac_optarg ;;
-
- -build | --build | --buil | --bui | --bu)
- ac_prev=build_alias ;;
- -build=* | --build=* | --buil=* | --bui=* | --bu=*)
- build_alias=$ac_optarg ;;
-
- -cache-file | --cache-file | --cache-fil | --cache-fi \
- | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
- ac_prev=cache_file ;;
- -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
- | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
- cache_file=$ac_optarg ;;
-
- --config-cache | -C)
- cache_file=config.cache ;;
-
- -datadir | --datadir | --datadi | --datad | --data | --dat | --da)
- ac_prev=datadir ;;
- -datadir=* | --datadir=* | --datadi=* | --datad=* | --data=* | --dat=* \
- | --da=*)
- datadir=$ac_optarg ;;
-
- -disable-* | --disable-*)
- ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
- # Reject names that are not valid shell variable names.
- expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
- { echo "$as_me: error: invalid feature name: $ac_feature" >&2
- { (exit 1); exit 1; }; }
- ac_feature=`echo $ac_feature | sed 's/-/_/g'`
- eval "enable_$ac_feature=no" ;;
-
- -enable-* | --enable-*)
- ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
- # Reject names that are not valid shell variable names.
- expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
- { echo "$as_me: error: invalid feature name: $ac_feature" >&2
- { (exit 1); exit 1; }; }
- ac_feature=`echo $ac_feature | sed 's/-/_/g'`
- case $ac_option in
- *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
- *) ac_optarg=yes ;;
- esac
- eval "enable_$ac_feature='$ac_optarg'" ;;
-
- -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
- | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
- | --exec | --exe | --ex)
- ac_prev=exec_prefix ;;
- -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
- | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
- | --exec=* | --exe=* | --ex=*)
- exec_prefix=$ac_optarg ;;
-
- -gas | --gas | --ga | --g)
- # Obsolete; use --with-gas.
- with_gas=yes ;;
-
- -help | --help | --hel | --he | -h)
- ac_init_help=long ;;
- -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
- ac_init_help=recursive ;;
- -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
- ac_init_help=short ;;
-
- -host | --host | --hos | --ho)
- ac_prev=host_alias ;;
- -host=* | --host=* | --hos=* | --ho=*)
- host_alias=$ac_optarg ;;
-
- -includedir | --includedir | --includedi | --included | --include \
- | --includ | --inclu | --incl | --inc)
- ac_prev=includedir ;;
- -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
- | --includ=* | --inclu=* | --incl=* | --inc=*)
- includedir=$ac_optarg ;;
-
- -infodir | --infodir | --infodi | --infod | --info | --inf)
- ac_prev=infodir ;;
- -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
- infodir=$ac_optarg ;;
-
- -libdir | --libdir | --libdi | --libd)
- ac_prev=libdir ;;
- -libdir=* | --libdir=* | --libdi=* | --libd=*)
- libdir=$ac_optarg ;;
-
- -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
- | --libexe | --libex | --libe)
- ac_prev=libexecdir ;;
- -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
- | --libexe=* | --libex=* | --libe=*)
- libexecdir=$ac_optarg ;;
-
- -localstatedir | --localstatedir | --localstatedi | --localstated \
- | --localstate | --localstat | --localsta | --localst \
- | --locals | --local | --loca | --loc | --lo)
- ac_prev=localstatedir ;;
- -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
- | --localstate=* | --localstat=* | --localsta=* | --localst=* \
- | --locals=* | --local=* | --loca=* | --loc=* | --lo=*)
- localstatedir=$ac_optarg ;;
-
- -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
- ac_prev=mandir ;;
- -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
- mandir=$ac_optarg ;;
-
- -nfp | --nfp | --nf)
- # Obsolete; use --without-fp.
- with_fp=no ;;
-
- -no-create | --no-create | --no-creat | --no-crea | --no-cre \
- | --no-cr | --no-c | -n)
- no_create=yes ;;
-
- -no-recursion | --no-recursion | --no-recursio | --no-recursi \
- | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
- no_recursion=yes ;;
-
- -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
- | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
- | --oldin | --oldi | --old | --ol | --o)
- ac_prev=oldincludedir ;;
- -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
- | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
- | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
- oldincludedir=$ac_optarg ;;
-
- -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
- ac_prev=prefix ;;
- -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
- prefix=$ac_optarg ;;
-
- -program-prefix | --program-prefix | --program-prefi | --program-pref \
- | --program-pre | --program-pr | --program-p)
- ac_prev=program_prefix ;;
- -program-prefix=* | --program-prefix=* | --program-prefi=* \
- | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
- program_prefix=$ac_optarg ;;
-
- -program-suffix | --program-suffix | --program-suffi | --program-suff \
- | --program-suf | --program-su | --program-s)
- ac_prev=program_suffix ;;
- -program-suffix=* | --program-suffix=* | --program-suffi=* \
- | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
- program_suffix=$ac_optarg ;;
-
- -program-transform-name | --program-transform-name \
- | --program-transform-nam | --program-transform-na \
- | --program-transform-n | --program-transform- \
- | --program-transform | --program-transfor \
- | --program-transfo | --program-transf \
- | --program-trans | --program-tran \
- | --progr-tra | --program-tr | --program-t)
- ac_prev=program_transform_name ;;
- -program-transform-name=* | --program-transform-name=* \
- | --program-transform-nam=* | --program-transform-na=* \
- | --program-transform-n=* | --program-transform-=* \
- | --program-transform=* | --program-transfor=* \
- | --program-transfo=* | --program-transf=* \
- | --program-trans=* | --program-tran=* \
- | --progr-tra=* | --program-tr=* | --program-t=*)
- program_transform_name=$ac_optarg ;;
-
- -q | -quiet | --quiet | --quie | --qui | --qu | --q \
- | -silent | --silent | --silen | --sile | --sil)
- silent=yes ;;
-
- -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
- ac_prev=sbindir ;;
- -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
- | --sbi=* | --sb=*)
- sbindir=$ac_optarg ;;
-
- -sharedstatedir | --sharedstatedir | --sharedstatedi \
- | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
- | --sharedst | --shareds | --shared | --share | --shar \
- | --sha | --sh)
- ac_prev=sharedstatedir ;;
- -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
- | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
- | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
- | --sha=* | --sh=*)
- sharedstatedir=$ac_optarg ;;
-
- -site | --site | --sit)
- ac_prev=site ;;
- -site=* | --site=* | --sit=*)
- site=$ac_optarg ;;
-
- -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
- ac_prev=srcdir ;;
- -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
- srcdir=$ac_optarg ;;
-
- -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
- | --syscon | --sysco | --sysc | --sys | --sy)
- ac_prev=sysconfdir ;;
- -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
- | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
- sysconfdir=$ac_optarg ;;
-
- -target | --target | --targe | --targ | --tar | --ta | --t)
- ac_prev=target_alias ;;
- -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
- target_alias=$ac_optarg ;;
-
- -v | -verbose | --verbose | --verbos | --verbo | --verb)
- verbose=yes ;;
-
- -version | --version | --versio | --versi | --vers | -V)
- ac_init_version=: ;;
-
- -with-* | --with-*)
- ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
- # Reject names that are not valid shell variable names.
- expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
- { echo "$as_me: error: invalid package name: $ac_package" >&2
- { (exit 1); exit 1; }; }
- ac_package=`echo $ac_package| sed 's/-/_/g'`
- case $ac_option in
- *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
- *) ac_optarg=yes ;;
- esac
- eval "with_$ac_package='$ac_optarg'" ;;
-
- -without-* | --without-*)
- ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'`
- # Reject names that are not valid shell variable names.
- expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
- { echo "$as_me: error: invalid package name: $ac_package" >&2
- { (exit 1); exit 1; }; }
- ac_package=`echo $ac_package | sed 's/-/_/g'`
- eval "with_$ac_package=no" ;;
-
- --x)
- # Obsolete; use --with-x.
- with_x=yes ;;
-
- -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
- | --x-incl | --x-inc | --x-in | --x-i)
- ac_prev=x_includes ;;
- -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
- | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
- x_includes=$ac_optarg ;;
-
- -x-libraries | --x-libraries | --x-librarie | --x-librari \
- | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
- ac_prev=x_libraries ;;
- -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
- | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
- x_libraries=$ac_optarg ;;
-
- -*) { echo "$as_me: error: unrecognized option: $ac_option
-Try \`$0 --help' for more information." >&2
- { (exit 1); exit 1; }; }
- ;;
-
- *=*)
- ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
- # Reject names that are not valid shell variable names.
- expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null &&
- { echo "$as_me: error: invalid variable name: $ac_envvar" >&2
- { (exit 1); exit 1; }; }
- ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`
- eval "$ac_envvar='$ac_optarg'"
- export $ac_envvar ;;
-
- *)
- # FIXME: should be removed in autoconf 3.0.
- echo "$as_me: WARNING: you should use --build, --host, --target" >&2
- expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
- echo "$as_me: WARNING: invalid host type: $ac_option" >&2
- : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
- ;;
-
- esac
-done
-
-if test -n "$ac_prev"; then
- ac_option=--`echo $ac_prev | sed 's/_/-/g'`
- { echo "$as_me: error: missing argument to $ac_option" >&2
- { (exit 1); exit 1; }; }
-fi
-
-# Be sure to have absolute paths.
-for ac_var in exec_prefix prefix
-do
- eval ac_val=$`echo $ac_var`
- case $ac_val in
- [\\/$]* | ?:[\\/]* | NONE | '' ) ;;
- *) { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
- { (exit 1); exit 1; }; };;
- esac
-done
-
-# Be sure to have absolute paths.
-for ac_var in bindir sbindir libexecdir datadir sysconfdir sharedstatedir \
- localstatedir libdir includedir oldincludedir infodir mandir
-do
- eval ac_val=$`echo $ac_var`
- case $ac_val in
- [\\/$]* | ?:[\\/]* ) ;;
- *) { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
- { (exit 1); exit 1; }; };;
- esac
-done
-
-# There might be people who depend on the old broken behavior: `$host'
-# used to hold the argument of --host etc.
-# FIXME: To remove some day.
-build=$build_alias
-host=$host_alias
-target=$target_alias
-
-# FIXME: To remove some day.
-if test "x$host_alias" != x; then
- if test "x$build_alias" = x; then
- cross_compiling=maybe
- echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
- If a cross compiler is detected then cross compile mode will be used." >&2
- elif test "x$build_alias" != "x$host_alias"; then
- cross_compiling=yes
- fi
-fi
-
-ac_tool_prefix=
-test -n "$host_alias" && ac_tool_prefix=$host_alias-
-
-test "$silent" = yes && exec 6>/dev/null
-
-
-# Find the source files, if location was not specified.
-if test -z "$srcdir"; then
- ac_srcdir_defaulted=yes
- # Try the directory containing this script, then its parent.
- ac_confdir=`(dirname "$0") 2>/dev/null ||
-$as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
- X"$0" : 'X\(//\)[^/]' \| \
- X"$0" : 'X\(//\)$' \| \
- X"$0" : 'X\(/\)' \| \
- . : '\(.\)' 2>/dev/null ||
-echo X"$0" |
- sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
- /^X\(\/\/\)[^/].*/{ s//\1/; q; }
- /^X\(\/\/\)$/{ s//\1/; q; }
- /^X\(\/\).*/{ s//\1/; q; }
- s/.*/./; q'`
- srcdir=$ac_confdir
- if test ! -r $srcdir/$ac_unique_file; then
- srcdir=..
- fi
-else
- ac_srcdir_defaulted=no
-fi
-if test ! -r $srcdir/$ac_unique_file; then
- if test "$ac_srcdir_defaulted" = yes; then
- { echo "$as_me: error: cannot find sources ($ac_unique_file) in $ac_confdir or .." >&2
- { (exit 1); exit 1; }; }
- else
- { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
- { (exit 1); exit 1; }; }
- fi
-fi
-(cd $srcdir && test -r ./$ac_unique_file) 2>/dev/null ||
- { echo "$as_me: error: sources are in $srcdir, but \`cd $srcdir' does not work" >&2
- { (exit 1); exit 1; }; }
-srcdir=`echo "$srcdir" | sed 's%\([^\\/]\)[\\/]*$%\1%'`
-ac_env_build_alias_set=${build_alias+set}
-ac_env_build_alias_value=$build_alias
-ac_cv_env_build_alias_set=${build_alias+set}
-ac_cv_env_build_alias_value=$build_alias
-ac_env_host_alias_set=${host_alias+set}
-ac_env_host_alias_value=$host_alias
-ac_cv_env_host_alias_set=${host_alias+set}
-ac_cv_env_host_alias_value=$host_alias
-ac_env_target_alias_set=${target_alias+set}
-ac_env_target_alias_value=$target_alias
-ac_cv_env_target_alias_set=${target_alias+set}
-ac_cv_env_target_alias_value=$target_alias
-ac_env_CC_set=${CC+set}
-ac_env_CC_value=$CC
-ac_cv_env_CC_set=${CC+set}
-ac_cv_env_CC_value=$CC
-ac_env_CFLAGS_set=${CFLAGS+set}
-ac_env_CFLAGS_value=$CFLAGS
-ac_cv_env_CFLAGS_set=${CFLAGS+set}
-ac_cv_env_CFLAGS_value=$CFLAGS
-ac_env_LDFLAGS_set=${LDFLAGS+set}
-ac_env_LDFLAGS_value=$LDFLAGS
-ac_cv_env_LDFLAGS_set=${LDFLAGS+set}
-ac_cv_env_LDFLAGS_value=$LDFLAGS
-ac_env_CPPFLAGS_set=${CPPFLAGS+set}
-ac_env_CPPFLAGS_value=$CPPFLAGS
-ac_cv_env_CPPFLAGS_set=${CPPFLAGS+set}
-ac_cv_env_CPPFLAGS_value=$CPPFLAGS
-ac_env_CPP_set=${CPP+set}
-ac_env_CPP_value=$CPP
-ac_cv_env_CPP_set=${CPP+set}
-ac_cv_env_CPP_value=$CPP
-
-#
-# Report the --help message.
-#
-if test "$ac_init_help" = "long"; then
- # Omit some internal or obsolete options to make the list less imposing.
- # This message is too long to be a string in the A/UX 3.1 sh.
- cat <<_ACEOF
-\`configure' configures this package to adapt to many kinds of systems.
-
-Usage: $0 [OPTION]... [VAR=VALUE]...
-
-To assign environment variables (e.g., CC, CFLAGS...), specify them as
-VAR=VALUE. See below for descriptions of some of the useful variables.
-
-Defaults for the options are specified in brackets.
-
-Configuration:
- -h, --help display this help and exit
- --help=short display options specific to this package
- --help=recursive display the short help of all the included packages
- -V, --version display version information and exit
- -q, --quiet, --silent do not print \`checking...' messages
- --cache-file=FILE cache test results in FILE [disabled]
- -C, --config-cache alias for \`--cache-file=config.cache'
- -n, --no-create do not create output files
- --srcdir=DIR find the sources in DIR [configure dir or \`..']
-
-_ACEOF
-
- cat <<_ACEOF
-Installation directories:
- --prefix=PREFIX install architecture-independent files in PREFIX
- [$ac_default_prefix]
- --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
- [PREFIX]
-
-By default, \`make install' will install all the files in
-\`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
-an installation prefix other than \`$ac_default_prefix' using \`--prefix',
-for instance \`--prefix=\$HOME'.
-
-For better control, use the options below.
-
-Fine tuning of the installation directories:
- --bindir=DIR user executables [EPREFIX/bin]
- --sbindir=DIR system admin executables [EPREFIX/sbin]
- --libexecdir=DIR program executables [EPREFIX/libexec]
- --datadir=DIR read-only architecture-independent data [PREFIX/share]
- --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
- --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
- --localstatedir=DIR modifiable single-machine data [PREFIX/var]
- --libdir=DIR object code libraries [EPREFIX/lib]
- --includedir=DIR C header files [PREFIX/include]
- --oldincludedir=DIR C header files for non-gcc [/usr/include]
- --infodir=DIR info documentation [PREFIX/info]
- --mandir=DIR man documentation [PREFIX/man]
-_ACEOF
-
- cat <<\_ACEOF
-_ACEOF
-fi
-
-if test -n "$ac_init_help"; then
-
- cat <<\_ACEOF
-
-Optional Features:
- --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
- --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
- --disable-socket-dir disable system wide socket-dir and use ~/.screen instead
- --enable-pam enable PAM support
- --enable-locale use localized month/day names
- --enable-telnet enable builtin telnet
- --enable-colors256 enable support for 256 colors
- --enable-rxvt_osc enable support for rxvt OSC codes
-
-Optional Packages:
- --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
- --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
- --with-socket-dir=path where to put the per-user sockets
- --with-pty-mode=mode default mode for ptys
- --with-pty-group=group default group for ptys
- --with-sys-screenrc=path where to put the global screenrc file
-
-Some influential environment variables:
- CC C compiler command
- CFLAGS C compiler flags
- LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
- nonstandard directory <lib dir>
- CPPFLAGS C/C++ preprocessor flags, e.g. -I<include dir> if you have
- headers in a nonstandard directory <include dir>
- CPP C preprocessor
-
-Use these variables to override the choices made by `configure' or to help
-it to find libraries and programs with nonstandard names/locations.
-
-_ACEOF
-fi
-
-if test "$ac_init_help" = "recursive"; then
- # If there are subdirs, report their specific --help.
- ac_popdir=`pwd`
- for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
- test -d $ac_dir || continue
- ac_builddir=.
-
-if test "$ac_dir" != .; then
- ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
- # A "../" for each directory in $ac_dir_suffix.
- ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
-else
- ac_dir_suffix= ac_top_builddir=
-fi
-
-case $srcdir in
- .) # No --srcdir option. We are building in place.
- ac_srcdir=.
- if test -z "$ac_top_builddir"; then
- ac_top_srcdir=.
- else
- ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
- fi ;;
- [\\/]* | ?:[\\/]* ) # Absolute path.
- ac_srcdir=$srcdir$ac_dir_suffix;
- ac_top_srcdir=$srcdir ;;
- *) # Relative path.
- ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
- ac_top_srcdir=$ac_top_builddir$srcdir ;;
-esac
-# Don't blindly perform a `cd "$ac_dir"/$ac_foo && pwd` since $ac_foo can be
-# absolute.
-ac_abs_builddir=`cd "$ac_dir" && cd $ac_builddir && pwd`
-ac_abs_top_builddir=`cd "$ac_dir" && cd ${ac_top_builddir}. && pwd`
-ac_abs_srcdir=`cd "$ac_dir" && cd $ac_srcdir && pwd`
-ac_abs_top_srcdir=`cd "$ac_dir" && cd $ac_top_srcdir && pwd`
-
- cd $ac_dir
- # Check for guested configure; otherwise get Cygnus style configure.
- if test -f $ac_srcdir/configure.gnu; then
- echo
- $SHELL $ac_srcdir/configure.gnu --help=recursive
- elif test -f $ac_srcdir/configure; then
- echo
- $SHELL $ac_srcdir/configure --help=recursive
- elif test -f $ac_srcdir/configure.ac ||
- test -f $ac_srcdir/configure.in; then
- echo
- $ac_configure --help
- else
- echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
- fi
- cd $ac_popdir
- done
-fi
-
-test -n "$ac_init_help" && exit 0
-if $ac_init_version; then
- cat <<\_ACEOF
-
-Copyright 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001, 2002
-Free Software Foundation, Inc.
-This configure script is free software; the Free Software Foundation
-gives unlimited permission to copy, distribute and modify it.
-_ACEOF
- exit 0
-fi
-exec 5>config.log
-cat >&5 <<_ACEOF
-This file contains any messages produced by compilers while
-running configure, to aid debugging if configure makes a mistake.
-
-It was created by $as_me, which was
-generated by GNU Autoconf 2.57. Invocation command line was
-
- $ $0 $@
-
-_ACEOF
-{
-cat <<_ASUNAME
-## --------- ##
-## Platform. ##
-## --------- ##
-
-hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
-uname -m = `(uname -m) 2>/dev/null || echo unknown`
-uname -r = `(uname -r) 2>/dev/null || echo unknown`
-uname -s = `(uname -s) 2>/dev/null || echo unknown`
-uname -v = `(uname -v) 2>/dev/null || echo unknown`
-
-/usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
-/bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
-
-/bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
-/usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
-/usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
-hostinfo = `(hostinfo) 2>/dev/null || echo unknown`
-/bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
-/usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
-/bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
-
-_ASUNAME
-
-as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
-for as_dir in $PATH
-do
- IFS=$as_save_IFS
- test -z "$as_dir" && as_dir=.
- echo "PATH: $as_dir"
-done
-
-} >&5
-
-cat >&5 <<_ACEOF
-
-
-## ----------- ##
-## Core tests. ##
-## ----------- ##
-
-_ACEOF
-
-
-# Keep a trace of the command line.
-# Strip out --no-create and --no-recursion so they do not pile up.
-# Strip out --silent because we don't want to record it for future runs.
-# Also quote any args containing shell meta-characters.
-# Make two passes to allow for proper duplicate-argument suppression.
-ac_configure_args=
-ac_configure_args0=
-ac_configure_args1=
-ac_sep=
-ac_must_keep_next=false
-for ac_pass in 1 2
-do
- for ac_arg
- do
- case $ac_arg in
- -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
- -q | -quiet | --quiet | --quie | --qui | --qu | --q \
- | -silent | --silent | --silen | --sile | --sil)
- continue ;;
- *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
- ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
- esac
- case $ac_pass in
- 1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
- 2)
- ac_configure_args1="$ac_configure_args1 '$ac_arg'"
- if test $ac_must_keep_next = true; then
- ac_must_keep_next=false # Got value, back to normal.
- else
- case $ac_arg in
- *=* | --config-cache | -C | -disable-* | --disable-* \
- | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
- | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
- | -with-* | --with-* | -without-* | --without-* | --x)
- case "$ac_configure_args0 " in
- "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
- esac
- ;;
- -* ) ac_must_keep_next=true ;;
- esac
- fi
- ac_configure_args="$ac_configure_args$ac_sep'$ac_arg'"
- # Get rid of the leading space.
- ac_sep=" "
- ;;
- esac
- done
-done
-$as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
-$as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
-
-# When interrupted or exit'd, cleanup temporary files, and complete
-# config.log. We remove comments because anyway the quotes in there
-# would cause problems or look ugly.
-# WARNING: Be sure not to use single quotes in there, as some shells,
-# such as our DU 5.0 friend, will then `close' the trap.
-trap 'exit_status=$?
- # Save into config.log some information that might help in debugging.
- {
- echo
-
- cat <<\_ASBOX
-## ---------------- ##
-## Cache variables. ##
-## ---------------- ##
-_ASBOX
- echo
- # The following way of writing the cache mishandles newlines in values,
-{
- (set) 2>&1 |
- case `(ac_space='"'"' '"'"'; set | grep ac_space) 2>&1` in
- *ac_space=\ *)
- sed -n \
- "s/'"'"'/'"'"'\\\\'"'"''"'"'/g;
- s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='"'"'\\2'"'"'/p"
- ;;
- *)
- sed -n \
- "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
- ;;
- esac;
-}
- echo
-
- cat <<\_ASBOX
-## ----------------- ##
-## Output variables. ##
-## ----------------- ##
-_ASBOX
- echo
- for ac_var in $ac_subst_vars
- do
- eval ac_val=$`echo $ac_var`
- echo "$ac_var='"'"'$ac_val'"'"'"
- done | sort
- echo
-
- if test -n "$ac_subst_files"; then
- cat <<\_ASBOX
-## ------------- ##
-## Output files. ##
-## ------------- ##
-_ASBOX
- echo
- for ac_var in $ac_subst_files
- do
- eval ac_val=$`echo $ac_var`
- echo "$ac_var='"'"'$ac_val'"'"'"
- done | sort
- echo
- fi
-
- if test -s confdefs.h; then
- cat <<\_ASBOX
-## ----------- ##
-## confdefs.h. ##
-## ----------- ##
-_ASBOX
- echo
- sed "/^$/d" confdefs.h | sort
- echo
- fi
- test "$ac_signal" != 0 &&
- echo "$as_me: caught signal $ac_signal"
- echo "$as_me: exit $exit_status"
- } >&5
- rm -f core core.* *.core &&
- rm -rf conftest* confdefs* conf$$* $ac_clean_files &&
- exit $exit_status
- ' 0
-for ac_signal in 1 2 13 15; do
- trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
-done
-ac_signal=0
-
-# confdefs.h avoids OS command line length limits that DEFS can exceed.
-rm -rf conftest* confdefs.h
-# AIX cpp loses on an empty file, so make sure it contains at least a newline.
-echo >confdefs.h
-
-# Predefined preprocessor variables.
-
-cat >>confdefs.h <<_ACEOF
-#define PACKAGE_NAME "$PACKAGE_NAME"
-_ACEOF
-
-
-cat >>confdefs.h <<_ACEOF
-#define PACKAGE_TARNAME "$PACKAGE_TARNAME"
-_ACEOF
-
-
-cat >>confdefs.h <<_ACEOF
-#define PACKAGE_VERSION "$PACKAGE_VERSION"
-_ACEOF
-
-
-cat >>confdefs.h <<_ACEOF
-#define PACKAGE_STRING "$PACKAGE_STRING"
-_ACEOF
-
-
-cat >>confdefs.h <<_ACEOF
-#define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
-_ACEOF
-
-
-# Let the site file select an alternate cache file if it wants to.
-# Prefer explicitly selected file to automatically selected ones.
-if test -z "$CONFIG_SITE"; then
- if test "x$prefix" != xNONE; then
- CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site"
- else
- CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
- fi
-fi
-for ac_site_file in $CONFIG_SITE; do
- if test -r "$ac_site_file"; then
- { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
-echo "$as_me: loading site script $ac_site_file" >&6;}
- sed 's/^/| /' "$ac_site_file" >&5
- . "$ac_site_file"
- fi
-done
-
-if test -r "$cache_file"; then
- # Some versions of bash will fail to source /dev/null (special
- # files actually), so we avoid doing that.
- if test -f "$cache_file"; then
- { echo "$as_me:$LINENO: loading cache $cache_file" >&5
-echo "$as_me: loading cache $cache_file" >&6;}
- case $cache_file in
- [\\/]* | ?:[\\/]* ) . $cache_file;;
- *) . ./$cache_file;;
- esac
- fi
-else
- { echo "$as_me:$LINENO: creating cache $cache_file" >&5
-echo "$as_me: creating cache $cache_file" >&6;}
- >$cache_file
-fi
-
-# Check that the precious variables saved in the cache have kept the same
-# value.
-ac_cache_corrupted=false
-for ac_var in `(set) 2>&1 |
- sed -n 's/^ac_env_\([a-zA-Z_0-9]*\)_set=.*/\1/p'`; do
- eval ac_old_set=\$ac_cv_env_${ac_var}_set
- eval ac_new_set=\$ac_env_${ac_var}_set
- eval ac_old_val="\$ac_cv_env_${ac_var}_value"
- eval ac_new_val="\$ac_env_${ac_var}_value"
- case $ac_old_set,$ac_new_set in
- set,)
- { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
-echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
- ac_cache_corrupted=: ;;
- ,set)
- { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
-echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
- ac_cache_corrupted=: ;;
- ,);;
- *)
- if test "x$ac_old_val" != "x$ac_new_val"; then
- { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
-echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
- { echo "$as_me:$LINENO: former value: $ac_old_val" >&5
-echo "$as_me: former value: $ac_old_val" >&2;}
- { echo "$as_me:$LINENO: current value: $ac_new_val" >&5
-echo "$as_me: current value: $ac_new_val" >&2;}
- ac_cache_corrupted=:
- fi;;
- esac
- # Pass precious variables to config.status.
- if test "$ac_new_set" = set; then
- case $ac_new_val in
- *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
- ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
- *) ac_arg=$ac_var=$ac_new_val ;;
- esac
- case " $ac_configure_args " in
- *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
- *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
- esac
- fi
-done
-if $ac_cache_corrupted; then
- { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
-echo "$as_me: error: changes in the environment can compromise the build" >&2;}
- { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
-echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
- { (exit 1); exit 1; }; }
-fi
-
-ac_ext=c
-ac_cpp='$CPP $CPPFLAGS'
-ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
-ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
-ac_compiler_gnu=$ac_cv_c_compiler_gnu
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
- ac_config_headers="$ac_config_headers config.h"
-
-
-
-rev=`sed < ${srcdir}/patchlevel.h -n -e '/#define REV/s/#define REV *//p'`
-vers=`sed < ${srcdir}/patchlevel.h -n -e '/#define VERS/s/#define VERS *//p'`
-pat=`sed < ${srcdir}/patchlevel.h -n -e '/#define PATCHLEVEL/s/#define PATCHLEVEL *//p'`
-VERSION="$rev.$vers.$pat"
-echo "this is screen version $VERSION" 1>&6
-
-
-if test "x$prefix" = xNONE; then
- echo $ECHO_N "checking for prefix by $ECHO_C" >&6
- # Extract the first word of "screen", so it can be a program name with args.
-set dummy screen; ac_word=$2
-echo "$as_me:$LINENO: checking for $ac_word" >&5
-echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
-if test "${ac_cv_path_ac_prefix_program+set}" = set; then
- echo $ECHO_N "(cached) $ECHO_C" >&6
-else
- case $ac_prefix_program in
- [\\/]* | ?:[\\/]*)
- ac_cv_path_ac_prefix_program="$ac_prefix_program" # Let the user override the test with a path.
- ;;
- *)
- as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
-for as_dir in $PATH
-do
- IFS=$as_save_IFS
- test -z "$as_dir" && as_dir=.
- for ac_exec_ext in '' $ac_executable_extensions; do
- if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
- ac_cv_path_ac_prefix_program="$as_dir/$ac_word$ac_exec_ext"
- echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
- break 2
- fi
-done
-done
-
- ;;
-esac
-fi
-ac_prefix_program=$ac_cv_path_ac_prefix_program
-
-if test -n "$ac_prefix_program"; then
- echo "$as_me:$LINENO: result: $ac_prefix_program" >&5
-echo "${ECHO_T}$ac_prefix_program" >&6
-else
- echo "$as_me:$LINENO: result: no" >&5
-echo "${ECHO_T}no" >&6
-fi
-
- if test -n $ac_prefix_program; then
- prefix=`(dirname "$ac_prefix_program") 2>/dev/null ||
-$as_expr X"$ac_prefix_program" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
- X"$ac_prefix_program" : 'X\(//\)[^/]' \| \
- X"$ac_prefix_program" : 'X\(//\)$' \| \
- X"$ac_prefix_program" : 'X\(/\)' \| \
- . : '\(.\)' 2>/dev/null ||
-echo X"$ac_prefix_program" |
- sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
- /^X\(\/\/\)[^/].*/{ s//\1/; q; }
- /^X\(\/\/\)$/{ s//\1/; q; }
- /^X\(\/\).*/{ s//\1/; q; }
- s/.*/./; q'`
- prefix=`(dirname "$prefix") 2>/dev/null ||
-$as_expr X"$prefix" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
- X"$prefix" : 'X\(//\)[^/]' \| \
- X"$prefix" : 'X\(//\)$' \| \
- X"$prefix" : 'X\(/\)' \| \
- . : '\(.\)' 2>/dev/null ||
-echo X"$prefix" |
- sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
- /^X\(\/\/\)[^/].*/{ s//\1/; q; }
- /^X\(\/\/\)$/{ s//\1/; q; }
- /^X\(\/\).*/{ s//\1/; q; }
- s/.*/./; q'`
- fi
-fi
-
-if test "x$prefix" = xNONE; then
- echo $ECHO_N "checking for prefix by $ECHO_C" >&6
- # Extract the first word of "gzip", so it can be a program name with args.
-set dummy gzip; ac_word=$2
-echo "$as_me:$LINENO: checking for $ac_word" >&5
-echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
-if test "${ac_cv_path_ac_prefix_program+set}" = set; then
- echo $ECHO_N "(cached) $ECHO_C" >&6
-else
- case $ac_prefix_program in
- [\\/]* | ?:[\\/]*)
- ac_cv_path_ac_prefix_program="$ac_prefix_program" # Let the user override the test with a path.
- ;;
- *)
- as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
-for as_dir in $PATH
-do
- IFS=$as_save_IFS
- test -z "$as_dir" && as_dir=.
- for ac_exec_ext in '' $ac_executable_extensions; do
- if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
- ac_cv_path_ac_prefix_program="$as_dir/$ac_word$ac_exec_ext"
- echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
- break 2
- fi
-done
-done
-
- ;;
-esac
-fi
-ac_prefix_program=$ac_cv_path_ac_prefix_program
-
-if test -n "$ac_prefix_program"; then
- echo "$as_me:$LINENO: result: $ac_prefix_program" >&5
-echo "${ECHO_T}$ac_prefix_program" >&6
-else
- echo "$as_me:$LINENO: result: no" >&5
-echo "${ECHO_T}no" >&6
-fi
-
- if test -n $ac_prefix_program; then
- prefix=`(dirname "$ac_prefix_program") 2>/dev/null ||
-$as_expr X"$ac_prefix_program" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
- X"$ac_prefix_program" : 'X\(//\)[^/]' \| \
- X"$ac_prefix_program" : 'X\(//\)$' \| \
- X"$ac_prefix_program" : 'X\(/\)' \| \
- . : '\(.\)' 2>/dev/null ||
-echo X"$ac_prefix_program" |
- sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
- /^X\(\/\/\)[^/].*/{ s//\1/; q; }
- /^X\(\/\/\)$/{ s//\1/; q; }
- /^X\(\/\).*/{ s//\1/; q; }
- s/.*/./; q'`
- prefix=`(dirname "$prefix") 2>/dev/null ||
-$as_expr X"$prefix" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
- X"$prefix" : 'X\(//\)[^/]' \| \
- X"$prefix" : 'X\(//\)$' \| \
- X"$prefix" : 'X\(/\)' \| \
- . : '\(.\)' 2>/dev/null ||
-echo X"$prefix" |
- sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
- /^X\(\/\/\)[^/].*/{ s//\1/; q; }
- /^X\(\/\/\)$/{ s//\1/; q; }
- /^X\(\/\).*/{ s//\1/; q; }
- s/.*/./; q'`
- fi
-fi
-
-
-old_CFLAGS="$CFLAGS"
-ac_ext=c
-ac_cpp='$CPP $CPPFLAGS'
-ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
-ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
-ac_compiler_gnu=$ac_cv_c_compiler_gnu
-if test -n "$ac_tool_prefix"; then
- # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
-set dummy ${ac_tool_prefix}gcc; ac_word=$2
-echo "$as_me:$LINENO: checking for $ac_word" >&5
-echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
-if test "${ac_cv_prog_CC+set}" = set; then
- echo $ECHO_N "(cached) $ECHO_C" >&6
-else
- if test -n "$CC"; then
- ac_cv_prog_CC="$CC" # Let the user override the test.
-else
-as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
-for as_dir in $PATH
-do
- IFS=$as_save_IFS
- test -z "$as_dir" && as_dir=.
- for ac_exec_ext in '' $ac_executable_extensions; do
- if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
- ac_cv_prog_CC="${ac_tool_prefix}gcc"
- echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
- break 2
- fi
-done
-done
-
-fi
-fi
-CC=$ac_cv_prog_CC
-if test -n "$CC"; then
- echo "$as_me:$LINENO: result: $CC" >&5
-echo "${ECHO_T}$CC" >&6
-else
- echo "$as_me:$LINENO: result: no" >&5
-echo "${ECHO_T}no" >&6
-fi
-
-fi
-if test -z "$ac_cv_prog_CC"; then
- ac_ct_CC=$CC
- # Extract the first word of "gcc", so it can be a program name with args.
-set dummy gcc; ac_word=$2
-echo "$as_me:$LINENO: checking for $ac_word" >&5
-echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
-if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
- echo $ECHO_N "(cached) $ECHO_C" >&6
-else
- if test -n "$ac_ct_CC"; then
- ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
-else
-as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
-for as_dir in $PATH
-do
- IFS=$as_save_IFS
- test -z "$as_dir" && as_dir=.
- for ac_exec_ext in '' $ac_executable_extensions; do
- if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
- ac_cv_prog_ac_ct_CC="gcc"
- echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
- break 2
- fi
-done
-done
-
-fi
-fi
-ac_ct_CC=$ac_cv_prog_ac_ct_CC
-if test -n "$ac_ct_CC"; then
- echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
-echo "${ECHO_T}$ac_ct_CC" >&6
-else
- echo "$as_me:$LINENO: result: no" >&5
-echo "${ECHO_T}no" >&6
-fi
-
- CC=$ac_ct_CC
-else
- CC="$ac_cv_prog_CC"
-fi
-
-if test -z "$CC"; then
- if test -n "$ac_tool_prefix"; then
- # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
-set dummy ${ac_tool_prefix}cc; ac_word=$2
-echo "$as_me:$LINENO: checking for $ac_word" >&5
-echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
-if test "${ac_cv_prog_CC+set}" = set; then
- echo $ECHO_N "(cached) $ECHO_C" >&6
-else
- if test -n "$CC"; then
- ac_cv_prog_CC="$CC" # Let the user override the test.
-else
-as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
-for as_dir in $PATH
-do
- IFS=$as_save_IFS
- test -z "$as_dir" && as_dir=.
- for ac_exec_ext in '' $ac_executable_extensions; do
- if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
- ac_cv_prog_CC="${ac_tool_prefix}cc"
- echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
- break 2
- fi
-done
-done
-
-fi
-fi
-CC=$ac_cv_prog_CC
-if test -n "$CC"; then
- echo "$as_me:$LINENO: result: $CC" >&5
-echo "${ECHO_T}$CC" >&6
-else
- echo "$as_me:$LINENO: result: no" >&5
-echo "${ECHO_T}no" >&6
-fi
-
-fi
-if test -z "$ac_cv_prog_CC"; then
- ac_ct_CC=$CC
- # Extract the first word of "cc", so it can be a program name with args.
-set dummy cc; ac_word=$2
-echo "$as_me:$LINENO: checking for $ac_word" >&5
-echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
-if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
- echo $ECHO_N "(cached) $ECHO_C" >&6
-else
- if test -n "$ac_ct_CC"; then
- ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
-else
-as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
-for as_dir in $PATH
-do
- IFS=$as_save_IFS
- test -z "$as_dir" && as_dir=.
- for ac_exec_ext in '' $ac_executable_extensions; do
- if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
- ac_cv_prog_ac_ct_CC="cc"
- echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
- break 2
- fi
-done
-done
-
-fi
-fi
-ac_ct_CC=$ac_cv_prog_ac_ct_CC
-if test -n "$ac_ct_CC"; then
- echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
-echo "${ECHO_T}$ac_ct_CC" >&6
-else
- echo "$as_me:$LINENO: result: no" >&5
-echo "${ECHO_T}no" >&6
-fi
-
- CC=$ac_ct_CC
-else
- CC="$ac_cv_prog_CC"
-fi
-
-fi
-if test -z "$CC"; then
- # Extract the first word of "cc", so it can be a program name with args.
-set dummy cc; ac_word=$2
-echo "$as_me:$LINENO: checking for $ac_word" >&5
-echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
-if test "${ac_cv_prog_CC+set}" = set; then
- echo $ECHO_N "(cached) $ECHO_C" >&6
-else
- if test -n "$CC"; then
- ac_cv_prog_CC="$CC" # Let the user override the test.
-else
- ac_prog_rejected=no
-as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
-for as_dir in $PATH
-do
- IFS=$as_save_IFS
- test -z "$as_dir" && as_dir=.
- for ac_exec_ext in '' $ac_executable_extensions; do
- if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
- if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
- ac_prog_rejected=yes
- continue
- fi
- ac_cv_prog_CC="cc"
- echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
- break 2
- fi
-done
-done
-
-if test $ac_prog_rejected = yes; then
- # We found a bogon in the path, so make sure we never use it.
- set dummy $ac_cv_prog_CC
- shift
- if test $# != 0; then
- # We chose a different compiler from the bogus one.
- # However, it has the same basename, so the bogon will be chosen
- # first if we set CC to just the basename; use the full file name.
- shift
- ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
- fi
-fi
-fi
-fi
-CC=$ac_cv_prog_CC
-if test -n "$CC"; then
- echo "$as_me:$LINENO: result: $CC" >&5
-echo "${ECHO_T}$CC" >&6
-else
- echo "$as_me:$LINENO: result: no" >&5
-echo "${ECHO_T}no" >&6
-fi
-
-fi
-if test -z "$CC"; then
- if test -n "$ac_tool_prefix"; then
- for ac_prog in cl
- do
- # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
-set dummy $ac_tool_prefix$ac_prog; ac_word=$2
-echo "$as_me:$LINENO: checking for $ac_word" >&5
-echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
-if test "${ac_cv_prog_CC+set}" = set; then
- echo $ECHO_N "(cached) $ECHO_C" >&6
-else
- if test -n "$CC"; then
- ac_cv_prog_CC="$CC" # Let the user override the test.
-else
-as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
-for as_dir in $PATH
-do
- IFS=$as_save_IFS
- test -z "$as_dir" && as_dir=.
- for ac_exec_ext in '' $ac_executable_extensions; do
- if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
- ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
- echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
- break 2
- fi
-done
-done
-
-fi
-fi
-CC=$ac_cv_prog_CC
-if test -n "$CC"; then
- echo "$as_me:$LINENO: result: $CC" >&5
-echo "${ECHO_T}$CC" >&6
-else
- echo "$as_me:$LINENO: result: no" >&5
-echo "${ECHO_T}no" >&6
-fi
-
- test -n "$CC" && break
- done
-fi
-if test -z "$CC"; then
- ac_ct_CC=$CC
- for ac_prog in cl
-do
- # Extract the first word of "$ac_prog", so it can be a program name with args.
-set dummy $ac_prog; ac_word=$2
-echo "$as_me:$LINENO: checking for $ac_word" >&5
-echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
-if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
- echo $ECHO_N "(cached) $ECHO_C" >&6
-else
- if test -n "$ac_ct_CC"; then
- ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
-else
-as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
-for as_dir in $PATH
-do
- IFS=$as_save_IFS
- test -z "$as_dir" && as_dir=.
- for ac_exec_ext in '' $ac_executable_extensions; do
- if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
- ac_cv_prog_ac_ct_CC="$ac_prog"
- echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
- break 2
- fi
-done
-done
-
-fi
-fi
-ac_ct_CC=$ac_cv_prog_ac_ct_CC
-if test -n "$ac_ct_CC"; then
- echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
-echo "${ECHO_T}$ac_ct_CC" >&6
-else
- echo "$as_me:$LINENO: result: no" >&5
-echo "${ECHO_T}no" >&6
-fi
-
- test -n "$ac_ct_CC" && break
-done
-
- CC=$ac_ct_CC
-fi
-
-fi
-
-
-test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
-See \`config.log' for more details." >&5
-echo "$as_me: error: no acceptable C compiler found in \$PATH
-See \`config.log' for more details." >&2;}
- { (exit 1); exit 1; }; }
-
-# Provide some information about the compiler.
-echo "$as_me:$LINENO:" \
- "checking for C compiler version" >&5
-ac_compiler=`set X $ac_compile; echo $2`
-{ (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
- (eval $ac_compiler --version </dev/null >&5) 2>&5
- ac_status=$?
- echo "$as_me:$LINENO: \$? = $ac_status" >&5
- (exit $ac_status); }
-{ (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
- (eval $ac_compiler -v </dev/null >&5) 2>&5
- ac_status=$?
- echo "$as_me:$LINENO: \$? = $ac_status" >&5
- (exit $ac_status); }
-{ (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
- (eval $ac_compiler -V </dev/null >&5) 2>&5
- ac_status=$?
- echo "$as_me:$LINENO: \$? = $ac_status" >&5
- (exit $ac_status); }
-
-cat >conftest.$ac_ext <<_ACEOF
-#line $LINENO "configure"
-/* confdefs.h. */
-_ACEOF
-cat confdefs.h >>conftest.$ac_ext
-cat >>conftest.$ac_ext <<_ACEOF
-/* end confdefs.h. */
-
-int
-main ()
-{
-
- ;
- return 0;
-}
-_ACEOF
-ac_clean_files_save=$ac_clean_files
-ac_clean_files="$ac_clean_files a.out a.exe b.out"
-# Try to create an executable without -o first, disregard a.out.
-# It will help us diagnose broken compilers, and finding out an intuition
-# of exeext.
-echo "$as_me:$LINENO: checking for C compiler default output" >&5
-echo $ECHO_N "checking for C compiler default output... $ECHO_C" >&6
-ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
-if { (eval echo "$as_me:$LINENO: \"$ac_link_default\"") >&5
- (eval $ac_link_default) 2>&5
- ac_status=$?
- echo "$as_me:$LINENO: \$? = $ac_status" >&5
- (exit $ac_status); }; then
- # Find the output, starting from the most likely. This scheme is
-# not robust to junk in `.', hence go to wildcards (a.*) only as a last
-# resort.
-
-# Be careful to initialize this variable, since it used to be cached.
-# Otherwise an old cache value of `no' led to `EXEEXT = no' in a Makefile.
-ac_cv_exeext=
-# b.out is created by i960 compilers.
-for ac_file in a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out
-do
- test -f "$ac_file" || continue
- case $ac_file in
- *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj )
- ;;
- conftest.$ac_ext )
- # This is the source file.
- ;;
- [ab].out )
- # We found the default executable, but exeext='' is most
- # certainly right.
- break;;
- *.* )
- ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
- # FIXME: I believe we export ac_cv_exeext for Libtool,
- # but it would be cool to find out if it's true. Does anybody
- # maintain Libtool? --akim.
- export ac_cv_exeext
- break;;
- * )
- break;;
- esac
-done
-else
- echo "$as_me: failed program was:" >&5
-sed 's/^/| /' conftest.$ac_ext >&5
-
-{ { echo "$as_me:$LINENO: error: C compiler cannot create executables
-See \`config.log' for more details." >&5
-echo "$as_me: error: C compiler cannot create executables
-See \`config.log' for more details." >&2;}
- { (exit 77); exit 77; }; }
-fi
-
-ac_exeext=$ac_cv_exeext
-echo "$as_me:$LINENO: result: $ac_file" >&5
-echo "${ECHO_T}$ac_file" >&6
-
-# Check the compiler produces executables we can run. If not, either
-# the compiler is broken, or we cross compile.
-echo "$as_me:$LINENO: checking whether the C compiler works" >&5
-echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6
-# FIXME: These cross compiler hacks should be removed for Autoconf 3.0
-# If not cross compiling, check that we can run a simple program.
-if test "$cross_compiling" != yes; then
- if { ac_try='./$ac_file'
- { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
- (eval $ac_try) 2>&5
- ac_status=$?
- echo "$as_me:$LINENO: \$? = $ac_status" >&5
- (exit $ac_status); }; }; then
- cross_compiling=no
- else
- if test "$cross_compiling" = maybe; then
- cross_compiling=yes
- else
- { { echo "$as_me:$LINENO: error: cannot run C compiled programs.
-If you meant to cross compile, use \`--host'.
-See \`config.log' for more details." >&5
-echo "$as_me: error: cannot run C compiled programs.
-If you meant to cross compile, use \`--host'.
-See \`config.log' for more details." >&2;}
- { (exit 1); exit 1; }; }
- fi
- fi
-fi
-echo "$as_me:$LINENO: result: yes" >&5
-echo "${ECHO_T}yes" >&6
-
-rm -f a.out a.exe conftest$ac_cv_exeext b.out
-ac_clean_files=$ac_clean_files_save
-# Check the compiler produces executables we can run. If not, either
-# the compiler is broken, or we cross compile.
-echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
-echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6
-echo "$as_me:$LINENO: result: $cross_compiling" >&5
-echo "${ECHO_T}$cross_compiling" >&6
-
-echo "$as_me:$LINENO: checking for suffix of executables" >&5
-echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6
-if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
- (eval $ac_link) 2>&5
- ac_status=$?
- echo "$as_me:$LINENO: \$? = $ac_status" >&5
- (exit $ac_status); }; then
- # If both `conftest.exe' and `conftest' are `present' (well, observable)
-# catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
-# work properly (i.e., refer to `conftest.exe'), while it won't with
-# `rm'.
-for ac_file in conftest.exe conftest conftest.*; do
- test -f "$ac_file" || continue
- case $ac_file in
- *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj ) ;;
- *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
- export ac_cv_exeext
- break;;
- * ) break;;
- esac
-done
-else
- { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
-See \`config.log' for more details." >&5
-echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
-See \`config.log' for more details." >&2;}
- { (exit 1); exit 1; }; }
-fi
-
-rm -f conftest$ac_cv_exeext
-echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
-echo "${ECHO_T}$ac_cv_exeext" >&6
-
-rm -f conftest.$ac_ext
-EXEEXT=$ac_cv_exeext
-ac_exeext=$EXEEXT
-echo "$as_me:$LINENO: checking for suffix of object files" >&5
-echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6
-if test "${ac_cv_objext+set}" = set; then
- echo $ECHO_N "(cached) $ECHO_C" >&6
-else
- cat >conftest.$ac_ext <<_ACEOF
-#line $LINENO "configure"
-/* confdefs.h. */
-_ACEOF
-cat confdefs.h >>conftest.$ac_ext
-cat >>conftest.$ac_ext <<_ACEOF
-/* end confdefs.h. */
-
-int
-main ()
-{
-
- ;
- return 0;
-}
-_ACEOF
-rm -f conftest.o conftest.obj
-if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
- (eval $ac_compile) 2>&5
- ac_status=$?
- echo "$as_me:$LINENO: \$? = $ac_status" >&5
- (exit $ac_status); }; then
- for ac_file in `(ls conftest.o conftest.obj; ls conftest.*) 2>/dev/null`; do
- case $ac_file in
- *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg ) ;;
- *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
- break;;
- esac
-done
-else
- echo "$as_me: failed program was:" >&5
-sed 's/^/| /' conftest.$ac_ext >&5
-
-{ { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
-See \`config.log' for more details." >&5
-echo "$as_me: error: cannot compute suffix of object files: cannot compile
-See \`config.log' for more details." >&2;}
- { (exit 1); exit 1; }; }
-fi
-
-rm -f conftest.$ac_cv_objext conftest.$ac_ext
-fi
-echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
-echo "${ECHO_T}$ac_cv_objext" >&6
-OBJEXT=$ac_cv_objext
-ac_objext=$OBJEXT
-echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
-echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6
-if test "${ac_cv_c_compiler_gnu+set}" = set; then
- echo $ECHO_N "(cached) $ECHO_C" >&6
-else
- cat >conftest.$ac_ext <<_ACEOF
-#line $LINENO "configure"
-/* confdefs.h. */
-_ACEOF
-cat confdefs.h >>conftest.$ac_ext
-cat >>conftest.$ac_ext <<_ACEOF
-/* end confdefs.h. */
-
-int
-main ()
-{
-#ifndef __GNUC__
- choke me
-#endif
-
- ;
- return 0;
-}
-_ACEOF
-rm -f conftest.$ac_objext
-if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
- (eval $ac_compile) 2>&5
- ac_status=$?
- echo "$as_me:$LINENO: \$? = $ac_status" >&5
- (exit $ac_status); } &&
- { ac_try='test -s conftest.$ac_objext'
- { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
- (eval $ac_try) 2>&5
- ac_status=$?
- echo "$as_me:$LINENO: \$? = $ac_status" >&5
- (exit $ac_status); }; }; then
- ac_compiler_gnu=yes
-else
- echo "$as_me: failed program was:" >&5
-sed 's/^/| /' conftest.$ac_ext >&5
-
-ac_compiler_gnu=no
-fi
-rm -f conftest.$ac_objext conftest.$ac_ext
-ac_cv_c_compiler_gnu=$ac_compiler_gnu
-
-fi
-echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
-echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6
-GCC=`test $ac_compiler_gnu = yes && echo yes`
-ac_test_CFLAGS=${CFLAGS+set}
-ac_save_CFLAGS=$CFLAGS
-CFLAGS="-g"
-echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
-echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6
-if test "${ac_cv_prog_cc_g+set}" = set; then
- echo $ECHO_N "(cached) $ECHO_C" >&6
-else
- cat >conftest.$ac_ext <<_ACEOF
-#line $LINENO "configure"
-/* confdefs.h. */
-_ACEOF
-cat confdefs.h >>conftest.$ac_ext
-cat >>conftest.$ac_ext <<_ACEOF
-/* end confdefs.h. */
-
-int
-main ()
-{
-
- ;
- return 0;
-}
-_ACEOF
-rm -f conftest.$ac_objext
-if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
- (eval $ac_compile) 2>&5
- ac_status=$?
- echo "$as_me:$LINENO: \$? = $ac_status" >&5
- (exit $ac_status); } &&
- { ac_try='test -s conftest.$ac_objext'
- { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
- (eval $ac_try) 2>&5
- ac_status=$?
- echo "$as_me:$LINENO: \$? = $ac_status" >&5
- (exit $ac_status); }; }; then
- ac_cv_prog_cc_g=yes
-else
- echo "$as_me: failed program was:" >&5
-sed 's/^/| /' conftest.$ac_ext >&5
-
-ac_cv_prog_cc_g=no
-fi
-rm -f conftest.$ac_objext conftest.$ac_ext
-fi
-echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
-echo "${ECHO_T}$ac_cv_prog_cc_g" >&6
-if test "$ac_test_CFLAGS" = set; then
- CFLAGS=$ac_save_CFLAGS
-elif test $ac_cv_prog_cc_g = yes; then
- if test "$GCC" = yes; then
- CFLAGS="-g -O2"
- else
- CFLAGS="-g"
- fi
-else
- if test "$GCC" = yes; then
- CFLAGS="-O2"
- else
- CFLAGS=
- fi
-fi
-echo "$as_me:$LINENO: checking for $CC option to accept ANSI C" >&5
-echo $ECHO_N "checking for $CC option to accept ANSI C... $ECHO_C" >&6
-if test "${ac_cv_prog_cc_stdc+set}" = set; then
- echo $ECHO_N "(cached) $ECHO_C" >&6
-else
- ac_cv_prog_cc_stdc=no
-ac_save_CC=$CC
-cat >conftest.$ac_ext <<_ACEOF
-#line $LINENO "configure"
-/* confdefs.h. */
-_ACEOF
-cat confdefs.h >>conftest.$ac_ext
-cat >>conftest.$ac_ext <<_ACEOF
-/* end confdefs.h. */
-#include <stdarg.h>
-#include <stdio.h>
-#include <sys/types.h>
-#include <sys/stat.h>
-/* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
-struct buf { int x; };
-FILE * (*rcsopen) (struct buf *, struct stat *, int);
-static char *e (p, i)
- char **p;
- int i;
-{
- return p[i];
-}
-static char *f (char * (*g) (char **, int), char **p, ...)
-{
- char *s;
- va_list v;
- va_start (v,p);
- s = g (p, va_arg (v,int));
- va_end (v);
- return s;
-}
-int test (int i, double x);
-struct s1 {int (*f) (int a);};
-struct s2 {int (*f) (double a);};
-int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
-int argc;
-char **argv;
-int
-main ()
-{
-return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
- ;
- return 0;
-}
-_ACEOF
-# Don't try gcc -ansi; that turns off useful extensions and
-# breaks some systems' header files.
-# AIX -qlanglvl=ansi
-# Ultrix and OSF/1 -std1
-# HP-UX 10.20 and later -Ae
-# HP-UX older versions -Aa -D_HPUX_SOURCE
-# SVR4 -Xc -D__EXTENSIONS__
-for ac_arg in "" -qlanglvl=ansi -std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
-do
- CC="$ac_save_CC $ac_arg"
- rm -f conftest.$ac_objext
-if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
- (eval $ac_compile) 2>&5
- ac_status=$?
- echo "$as_me:$LINENO: \$? = $ac_status" >&5
- (exit $ac_status); } &&
- { ac_try='test -s conftest.$ac_objext'
- { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
- (eval $ac_try) 2>&5
- ac_status=$?
- echo "$as_me:$LINENO: \$? = $ac_status" >&5
- (exit $ac_status); }; }; then
- ac_cv_prog_cc_stdc=$ac_arg
-break
-else
- echo "$as_me: failed program was:" >&5
-sed 's/^/| /' conftest.$ac_ext >&5
-
-fi
-rm -f conftest.$ac_objext
-done
-rm -f conftest.$ac_ext conftest.$ac_objext
-CC=$ac_save_CC
-
-fi
-
-case "x$ac_cv_prog_cc_stdc" in
- x|xno)
- echo "$as_me:$LINENO: result: none needed" >&5
-echo "${ECHO_T}none needed" >&6 ;;
- *)
- echo "$as_me:$LINENO: result: $ac_cv_prog_cc_stdc" >&5
-echo "${ECHO_T}$ac_cv_prog_cc_stdc" >&6
- CC="$CC $ac_cv_prog_cc_stdc" ;;
-esac
-
-# Some people use a C++ compiler to compile C. Since we use `exit',
-# in C++ we need to declare it. In case someone uses the same compiler
-# for both compiling C and C++ we need to have the C++ compiler decide
-# the declaration of exit, since it's the most demanding environment.
-cat >conftest.$ac_ext <<_ACEOF
-#ifndef __cplusplus
- choke me
-#endif
-_ACEOF
-rm -f conftest.$ac_objext
-if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
- (eval $ac_compile) 2>&5
- ac_status=$?
- echo "$as_me:$LINENO: \$? = $ac_status" >&5
- (exit $ac_status); } &&
- { ac_try='test -s conftest.$ac_objext'
- { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
- (eval $ac_try) 2>&5
- ac_status=$?
- echo "$as_me:$LINENO: \$? = $ac_status" >&5
- (exit $ac_status); }; }; then
- for ac_declaration in \
- ''\
- '#include <stdlib.h>' \
- 'extern "C" void std::exit (int) throw (); using std::exit;' \
- 'extern "C" void std::exit (int); using std::exit;' \
- 'extern "C" void exit (int) throw ();' \
- 'extern "C" void exit (int);' \
- 'void exit (int);'
-do
- cat >conftest.$ac_ext <<_ACEOF
-#line $LINENO "configure"
-/* confdefs.h. */
-_ACEOF
-cat confdefs.h >>conftest.$ac_ext
-cat >>conftest.$ac_ext <<_ACEOF
-/* end confdefs.h. */
-#include <stdlib.h>
-$ac_declaration
-int
-main ()
-{
-exit (42);
- ;
- return 0;
-}
-_ACEOF
-rm -f conftest.$ac_objext
-if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
- (eval $ac_compile) 2>&5
- ac_status=$?
- echo "$as_me:$LINENO: \$? = $ac_status" >&5
- (exit $ac_status); } &&
- { ac_try='test -s conftest.$ac_objext'
- { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
- (eval $ac_try) 2>&5
- ac_status=$?
- echo "$as_me:$LINENO: \$? = $ac_status" >&5
- (exit $ac_status); }; }; then
- :
-else
- echo "$as_me: failed program was:" >&5
-sed 's/^/| /' conftest.$ac_ext >&5
-
-continue
-fi
-rm -f conftest.$ac_objext conftest.$ac_ext
- cat >conftest.$ac_ext <<_ACEOF
-#line $LINENO "configure"
-/* confdefs.h. */
-_ACEOF
-cat confdefs.h >>conftest.$ac_ext
-cat >>conftest.$ac_ext <<_ACEOF
-/* end confdefs.h. */
-$ac_declaration
-int
-main ()
-{
-exit (42);
- ;
- return 0;
-}
-_ACEOF
-rm -f conftest.$ac_objext
-if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
- (eval $ac_compile) 2>&5
- ac_status=$?
- echo "$as_me:$LINENO: \$? = $ac_status" >&5
- (exit $ac_status); } &&
- { ac_try='test -s conftest.$ac_objext'
- { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
- (eval $ac_try) 2>&5
- ac_status=$?
- echo "$as_me:$LINENO: \$? = $ac_status" >&5
- (exit $ac_status); }; }; then
- break
-else
- echo "$as_me: failed program was:" >&5
-sed 's/^/| /' conftest.$ac_ext >&5
-
-fi
-rm -f conftest.$ac_objext conftest.$ac_ext
-done
-rm -f conftest*
-if test -n "$ac_declaration"; then
- echo '#ifdef __cplusplus' >>confdefs.h
- echo $ac_declaration >>confdefs.h
- echo '#endif' >>confdefs.h
-fi
-
-else
- echo "$as_me: failed program was:" >&5
-sed 's/^/| /' conftest.$ac_ext >&5
-
-fi
-rm -f conftest.$ac_objext conftest.$ac_ext
-ac_ext=c
-ac_cpp='$CPP $CPPFLAGS'
-ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
-ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
-ac_compiler_gnu=$ac_cv_c_compiler_gnu
-
-ac_ext=c
-ac_cpp='$CPP $CPPFLAGS'
-ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
-ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
-ac_compiler_gnu=$ac_cv_c_compiler_gnu
-echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
-echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6
-# On Suns, sometimes $CPP names a directory.
-if test -n "$CPP" && test -d "$CPP"; then
- CPP=
-fi
-if test -z "$CPP"; then
- if test "${ac_cv_prog_CPP+set}" = set; then
- echo $ECHO_N "(cached) $ECHO_C" >&6
-else
- # Double quotes because CPP needs to be expanded
- for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
- do
- ac_preproc_ok=false
-for ac_c_preproc_warn_flag in '' yes
-do
- # Use a header file that comes with gcc, so configuring glibc
- # with a fresh cross-compiler works.
- # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
- # <limits.h> exists even on freestanding compilers.
- # On the NeXT, cc -E runs the code through the compiler's parser,
- # not just through cpp. "Syntax error" is here to catch this case.
- cat >conftest.$ac_ext <<_ACEOF
-#line $LINENO "configure"
-/* confdefs.h. */
-_ACEOF
-cat confdefs.h >>conftest.$ac_ext
-cat >>conftest.$ac_ext <<_ACEOF
-/* end confdefs.h. */
-#ifdef __STDC__
-# include <limits.h>
-#else
-# include <assert.h>
-#endif
- Syntax error
-_ACEOF
-if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
- (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
- ac_status=$?
- grep -v '^ *+' conftest.er1 >conftest.err
- rm -f conftest.er1
- cat conftest.err >&5
- echo "$as_me:$LINENO: \$? = $ac_status" >&5
- (exit $ac_status); } >/dev/null; then
- if test -s conftest.err; then
- ac_cpp_err=$ac_c_preproc_warn_flag
- else
- ac_cpp_err=
- fi
-else
- ac_cpp_err=yes
-fi
-if test -z "$ac_cpp_err"; then
- :
-else
- echo "$as_me: failed program was:" >&5
-sed 's/^/| /' conftest.$ac_ext >&5
-
- # Broken: fails on valid input.
-continue
-fi
-rm -f conftest.err conftest.$ac_ext
-
- # OK, works on sane cases. Now check whether non-existent headers
- # can be detected and how.
- cat >conftest.$ac_ext <<_ACEOF
-#line $LINENO "configure"
-/* confdefs.h. */
-_ACEOF
-cat confdefs.h >>conftest.$ac_ext
-cat >>conftest.$ac_ext <<_ACEOF
-/* end confdefs.h. */
-#include <ac_nonexistent.h>
-_ACEOF
-if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
- (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
- ac_status=$?
- grep -v '^ *+' conftest.er1 >conftest.err
- rm -f conftest.er1
- cat conftest.err >&5
- echo "$as_me:$LINENO: \$? = $ac_status" >&5
- (exit $ac_status); } >/dev/null; then
- if test -s conftest.err; then
- ac_cpp_err=$ac_c_preproc_warn_flag
- else
- ac_cpp_err=
- fi
-else
- ac_cpp_err=yes
-fi
-if test -z "$ac_cpp_err"; then
- # Broken: success on invalid input.
-continue
-else
- echo "$as_me: failed program was:" >&5
-sed 's/^/| /' conftest.$ac_ext >&5
-
- # Passes both tests.
-ac_preproc_ok=:
-break
-fi
-rm -f conftest.err conftest.$ac_ext
-
-done
-# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
-rm -f conftest.err conftest.$ac_ext
-if $ac_preproc_ok; then
- break
-fi
-
- done
- ac_cv_prog_CPP=$CPP
-
-fi
- CPP=$ac_cv_prog_CPP
-else
- ac_cv_prog_CPP=$CPP
-fi
-echo "$as_me:$LINENO: result: $CPP" >&5
-echo "${ECHO_T}$CPP" >&6
-ac_preproc_ok=false
-for ac_c_preproc_warn_flag in '' yes
-do
- # Use a header file that comes with gcc, so configuring glibc
- # with a fresh cross-compiler works.
- # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
- # <limits.h> exists even on freestanding compilers.
- # On the NeXT, cc -E runs the code through the compiler's parser,
- # not just through cpp. "Syntax error" is here to catch this case.
- cat >conftest.$ac_ext <<_ACEOF
-#line $LINENO "configure"
-/* confdefs.h. */
-_ACEOF
-cat confdefs.h >>conftest.$ac_ext
-cat >>conftest.$ac_ext <<_ACEOF
-/* end confdefs.h. */
-#ifdef __STDC__
-# include <limits.h>
-#else
-# include <assert.h>
-#endif
- Syntax error
-_ACEOF
-if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
- (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
- ac_status=$?
- grep -v '^ *+' conftest.er1 >conftest.err
- rm -f conftest.er1
- cat conftest.err >&5
- echo "$as_me:$LINENO: \$? = $ac_status" >&5
- (exit $ac_status); } >/dev/null; then
- if test -s conftest.err; then
- ac_cpp_err=$ac_c_preproc_warn_flag
- else
- ac_cpp_err=
- fi
-else
- ac_cpp_err=yes
-fi
-if test -z "$ac_cpp_err"; then
- :
-else
- echo "$as_me: failed program was:" >&5
-sed 's/^/| /' conftest.$ac_ext >&5
-
- # Broken: fails on valid input.
-continue
-fi
-rm -f conftest.err conftest.$ac_ext
-
- # OK, works on sane cases. Now check whether non-existent headers
- # can be detected and how.
- cat >conftest.$ac_ext <<_ACEOF
-#line $LINENO "configure"
-/* confdefs.h. */
-_ACEOF
-cat confdefs.h >>conftest.$ac_ext
-cat >>conftest.$ac_ext <<_ACEOF
-/* end confdefs.h. */
-#include <ac_nonexistent.h>
-_ACEOF
-if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
- (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
- ac_status=$?
- grep -v '^ *+' conftest.er1 >conftest.err
- rm -f conftest.er1
- cat conftest.err >&5
- echo "$as_me:$LINENO: \$? = $ac_status" >&5
- (exit $ac_status); } >/dev/null; then
- if test -s conftest.err; then
- ac_cpp_err=$ac_c_preproc_warn_flag
- else
- ac_cpp_err=
- fi
-else
- ac_cpp_err=yes
-fi
-if test -z "$ac_cpp_err"; then
- # Broken: success on invalid input.
-continue
-else
- echo "$as_me: failed program was:" >&5
-sed 's/^/| /' conftest.$ac_ext >&5
-
- # Passes both tests.
-ac_preproc_ok=:
-break
-fi
-rm -f conftest.err conftest.$ac_ext
-
-done
-# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
-rm -f conftest.err conftest.$ac_ext
-if $ac_preproc_ok; then
- :
-else
- { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
-See \`config.log' for more details." >&5
-echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
-See \`config.log' for more details." >&2;}
- { (exit 1); exit 1; }; }
-fi
-
-ac_ext=c
-ac_cpp='$CPP $CPPFLAGS'
-ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
-ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
-ac_compiler_gnu=$ac_cv_c_compiler_gnu
-
-
-
-echo "$as_me:$LINENO: checking for egrep" >&5
-echo $ECHO_N "checking for egrep... $ECHO_C" >&6
-if test "${ac_cv_prog_egrep+set}" = set; then
- echo $ECHO_N "(cached) $ECHO_C" >&6
-else
- if echo a | (grep -E '(a|b)') >/dev/null 2>&1
- then ac_cv_prog_egrep='grep -E'
- else ac_cv_prog_egrep='egrep'
- fi
-fi
-echo "$as_me:$LINENO: result: $ac_cv_prog_egrep" >&5
-echo "${ECHO_T}$ac_cv_prog_egrep" >&6
- EGREP=$ac_cv_prog_egrep
-
-
-if test $ac_cv_c_compiler_gnu = yes; then
- echo "$as_me:$LINENO: checking whether $CC needs -traditional" >&5
-echo $ECHO_N "checking whether $CC needs -traditional... $ECHO_C" >&6
-if test "${ac_cv_prog_gcc_traditional+set}" = set; then
- echo $ECHO_N "(cached) $ECHO_C" >&6
-else
- ac_pattern="Autoconf.*'x'"
- cat >conftest.$ac_ext <<_ACEOF
-#line $LINENO "configure"
-/* confdefs.h. */
-_ACEOF
-cat confdefs.h >>conftest.$ac_ext
-cat >>conftest.$ac_ext <<_ACEOF
-/* end confdefs.h. */
-#include <sgtty.h>
-Autoconf TIOCGETP
-_ACEOF
-if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
- $EGREP "$ac_pattern" >/dev/null 2>&1; then
- ac_cv_prog_gcc_traditional=yes
-else
- ac_cv_prog_gcc_traditional=no
-fi
-rm -f conftest*
-
-
- if test $ac_cv_prog_gcc_traditional = no; then
- cat >conftest.$ac_ext <<_ACEOF
-#line $LINENO "configure"
-/* confdefs.h. */
-_ACEOF
-cat confdefs.h >>conftest.$ac_ext
-cat >>conftest.$ac_ext <<_ACEOF
-/* end confdefs.h. */
-#include <termio.h>
-Autoconf TCGETA
-_ACEOF
-if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
- $EGREP "$ac_pattern" >/dev/null 2>&1; then
- ac_cv_prog_gcc_traditional=yes
-fi
-rm -f conftest*
-
- fi
-fi
-echo "$as_me:$LINENO: result: $ac_cv_prog_gcc_traditional" >&5
-echo "${ECHO_T}$ac_cv_prog_gcc_traditional" >&6
- if test $ac_cv_prog_gcc_traditional = yes; then
- CC="$CC -traditional"
- fi
-fi
-
-echo "$as_me:$LINENO: checking for library containing strerror" >&5
-echo $ECHO_N "checking for library containing strerror... $ECHO_C" >&6
-if test "${ac_cv_search_strerror+set}" = set; then
- echo $ECHO_N "(cached) $ECHO_C" >&6
-else
- ac_func_search_save_LIBS=$LIBS
-ac_cv_search_strerror=no
-cat >conftest.$ac_ext <<_ACEOF
-#line $LINENO "configure"
-/* confdefs.h. */
-_ACEOF
-cat confdefs.h >>conftest.$ac_ext
-cat >>conftest.$ac_ext <<_ACEOF
-/* end confdefs.h. */
-
-/* Override any gcc2 internal prototype to avoid an error. */
-#ifdef __cplusplus
-extern "C"
-#endif
-/* We use char because int might match the return type of a gcc2
- builtin and then its argument prototype would still apply. */
-char strerror ();
-int
-main ()
-{
-strerror ();
- ;
- return 0;
-}
-_ACEOF
-rm -f conftest.$ac_objext conftest$ac_exeext
-if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
- (eval $ac_link) 2>&5
- ac_status=$?
- echo "$as_me:$LINENO: \$? = $ac_status" >&5
- (exit $ac_status); } &&
- { ac_try='test -s conftest$ac_exeext'
- { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
- (eval $ac_try) 2>&5
- ac_status=$?
- echo "$as_me:$LINENO: \$? = $ac_status" >&5
- (exit $ac_status); }; }; then
- ac_cv_search_strerror="none required"
-else
- echo "$as_me: failed program was:" >&5
-sed 's/^/| /' conftest.$ac_ext >&5
-
-fi
-rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
-if test "$ac_cv_search_strerror" = no; then
- for ac_lib in cposix; do
- LIBS="-l$ac_lib $ac_func_search_save_LIBS"
- cat >conftest.$ac_ext <<_ACEOF
-#line $LINENO "configure"
-/* confdefs.h. */
-_ACEOF
-cat confdefs.h >>conftest.$ac_ext
-cat >>conftest.$ac_ext <<_ACEOF
-/* end confdefs.h. */
-
-/* Override any gcc2 internal prototype to avoid an error. */
-#ifdef __cplusplus
-extern "C"
-#endif
-/* We use char because int might match the return type of a gcc2
- builtin and then its argument prototype would still apply. */
-char strerror ();
-int
-main ()
-{
-strerror ();
- ;
- return 0;
-}
-_ACEOF
-rm -f conftest.$ac_objext conftest$ac_exeext
-if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
- (eval $ac_link) 2>&5
- ac_status=$?
- echo "$as_me:$LINENO: \$? = $ac_status" >&5
- (exit $ac_status); } &&
- { ac_try='test -s conftest$ac_exeext'
- { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
- (eval $ac_try) 2>&5
- ac_status=$?
- echo "$as_me:$LINENO: \$? = $ac_status" >&5
- (exit $ac_status); }; }; then
- ac_cv_search_strerror="-l$ac_lib"
-break
-else
- echo "$as_me: failed program was:" >&5
-sed 's/^/| /' conftest.$ac_ext >&5
-
-fi
-rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
- done
-fi
-LIBS=$ac_func_search_save_LIBS
-fi
-echo "$as_me:$LINENO: result: $ac_cv_search_strerror" >&5
-echo "${ECHO_T}$ac_cv_search_strerror" >&6
-if test "$ac_cv_search_strerror" != no; then
- test "$ac_cv_search_strerror" = "none required" || LIBS="$ac_cv_search_strerror $LIBS"
-
-fi
-
-
-if test "$cross_compiling" = yes; then
- { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
-See \`config.log' for more details." >&5
-echo "$as_me: error: cannot run test program while cross compiling
-See \`config.log' for more details." >&2;}
- { (exit 1); exit 1; }; }
-else
- cat >conftest.$ac_ext <<_ACEOF
-#line $LINENO "configure"
-/* confdefs.h. */
-_ACEOF
-cat confdefs.h >>conftest.$ac_ext
-cat >>conftest.$ac_ext <<_ACEOF
-/* end confdefs.h. */
-main(){exit(0);}
-_ACEOF
-rm -f conftest$ac_exeext
-if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
- (eval $ac_link) 2>&5
- ac_status=$?
- echo "$as_me:$LINENO: \$? = $ac_status" >&5
- (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
- { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
- (eval $ac_try) 2>&5
- ac_status=$?
- echo "$as_me:$LINENO: \$? = $ac_status" >&5
- (exit $ac_status); }; }; then
- :
-else
- echo "$as_me: program exited with status $ac_status" >&5
-echo "$as_me: failed program was:" >&5
-sed 's/^/| /' conftest.$ac_ext >&5
-
-( exit $ac_status )
-
-if test $CC != cc ; then
-echo "Your $CC failed - restarting with CC=cc" 1>&6
-
-echo "" 1>&6
-
-CC=cc
-export CC
-exec $0 $configure_args
-fi
-
-fi
-rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
-fi
-
-if test "$cross_compiling" = yes; then
- { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
-See \`config.log' for more details." >&5
-echo "$as_me: error: cannot run test program while cross compiling
-See \`config.log' for more details." >&2;}
- { (exit 1); exit 1; }; }
-else
- cat >conftest.$ac_ext <<_ACEOF
-#line $LINENO "configure"
-/* confdefs.h. */
-_ACEOF
-cat confdefs.h >>conftest.$ac_ext
-cat >>conftest.$ac_ext <<_ACEOF
-/* end confdefs.h. */
-main(){exit(0);}
-_ACEOF
-rm -f conftest$ac_exeext
-if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
- (eval $ac_link) 2>&5
- ac_status=$?
- echo "$as_me:$LINENO: \$? = $ac_status" >&5
- (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
- { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
- (eval $ac_try) 2>&5
- ac_status=$?
- echo "$as_me:$LINENO: \$? = $ac_status" >&5
- (exit $ac_status); }; }; then
- :
-else
- echo "$as_me: program exited with status $ac_status" >&5
-echo "$as_me: failed program was:" >&5
-sed 's/^/| /' conftest.$ac_ext >&5
-
-( exit $ac_status )
-exec 5>&2
-eval $ac_link
-echo "CC=$CC; CFLAGS=$CFLAGS; LIBS=$LIBS;" 1>&6
-
-echo "$ac_compile" 1>&6
-
-{ { echo "$as_me:$LINENO: error: Can't run the compiler - sorry" >&5
-echo "$as_me: error: Can't run the compiler - sorry" >&2;}
- { (exit 1); exit 1; }; }
-fi
-rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
-fi
-
-if test "$cross_compiling" = yes; then
- { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
-See \`config.log' for more details." >&5
-echo "$as_me: error: cannot run test program while cross compiling
-See \`config.log' for more details." >&2;}
- { (exit 1); exit 1; }; }
-else
- cat >conftest.$ac_ext <<_ACEOF
-#line $LINENO "configure"
-/* confdefs.h. */
-_ACEOF
-cat confdefs.h >>conftest.$ac_ext
-cat >>conftest.$ac_ext <<_ACEOF
-/* end confdefs.h. */
-
-main()
-{
- int __something_strange_();
- __something_strange_(0);
-}
-
-_ACEOF
-rm -f conftest$ac_exeext
-if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
- (eval $ac_link) 2>&5
- ac_status=$?
- echo "$as_me:$LINENO: \$? = $ac_status" >&5
- (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
- { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
- (eval $ac_try) 2>&5
- ac_status=$?
- echo "$as_me:$LINENO: \$? = $ac_status" >&5
- (exit $ac_status); }; }; then
- { { echo "$as_me:$LINENO: error: Your compiler does not set the exit status - sorry" >&5
-echo "$as_me: error: Your compiler does not set the exit status - sorry" >&2;}
- { (exit 1); exit 1; }; }
-else
- echo "$as_me: program exited with status $ac_status" >&5
-echo "$as_me: failed program was:" >&5
-sed 's/^/| /' conftest.$ac_ext >&5
-
-fi
-rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
-fi
-
-for ac_prog in gawk mawk nawk awk
-do
- # Extract the first word of "$ac_prog", so it can be a program name with args.
-set dummy $ac_prog; ac_word=$2
-echo "$as_me:$LINENO: checking for $ac_word" >&5
-echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
-if test "${ac_cv_prog_AWK+set}" = set; then
- echo $ECHO_N "(cached) $ECHO_C" >&6
-else
- if test -n "$AWK"; then
- ac_cv_prog_AWK="$AWK" # Let the user override the test.
-else
-as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
-for as_dir in $PATH
-do
- IFS=$as_save_IFS
- test -z "$as_dir" && as_dir=.
- for ac_exec_ext in '' $ac_executable_extensions; do
- if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
- ac_cv_prog_AWK="$ac_prog"
- echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
- break 2
- fi
-done
-done
-
-fi
-fi
-AWK=$ac_cv_prog_AWK
-if test -n "$AWK"; then
- echo "$as_me:$LINENO: result: $AWK" >&5
-echo "${ECHO_T}$AWK" >&6
-else
- echo "$as_me:$LINENO: result: no" >&5
-echo "${ECHO_T}no" >&6
-fi
-
- test -n "$AWK" && break
-done
-
-
-ac_aux_dir=
-for ac_dir in $srcdir $srcdir/.. $srcdir/../..; do
- if test -f $ac_dir/install-sh; then
- ac_aux_dir=$ac_dir
- ac_install_sh="$ac_aux_dir/install-sh -c"
- break
- elif test -f $ac_dir/install.sh; then
- ac_aux_dir=$ac_dir
- ac_install_sh="$ac_aux_dir/install.sh -c"
- break
- elif test -f $ac_dir/shtool; then
- ac_aux_dir=$ac_dir
- ac_install_sh="$ac_aux_dir/shtool install -c"
- break
- fi
-done
-if test -z "$ac_aux_dir"; then
- { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&5
-echo "$as_me: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&2;}
- { (exit 1); exit 1; }; }
-fi
-ac_config_guess="$SHELL $ac_aux_dir/config.guess"
-ac_config_sub="$SHELL $ac_aux_dir/config.sub"
-ac_configure="$SHELL $ac_aux_dir/configure" # This should be Cygnus configure.
-
-# Find a good install program. We prefer a C program (faster),
-# so one script is as good as another. But avoid the broken or
-# incompatible versions:
-# SysV /etc/install, /usr/sbin/install
-# SunOS /usr/etc/install
-# IRIX /sbin/install
-# AIX /bin/install
-# AmigaOS /C/install, which installs bootblocks on floppy discs
-# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
-# AFS /usr/afsws/bin/install, which mishandles nonexistent args
-# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
-# ./install, which can be erroneously created by make from ./install.sh.
-echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
-echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6
-if test -z "$INSTALL"; then
-if test "${ac_cv_path_install+set}" = set; then
- echo $ECHO_N "(cached) $ECHO_C" >&6
-else
- as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
-for as_dir in $PATH
-do
- IFS=$as_save_IFS
- test -z "$as_dir" && as_dir=.
- # Account for people who put trailing slashes in PATH elements.
-case $as_dir/ in
- ./ | .// | /cC/* | \
- /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
- /usr/ucb/* ) ;;
- *)
- # OSF1 and SCO ODT 3.0 have their own names for install.
- # Don't use installbsd from OSF since it installs stuff as root
- # by default.
- for ac_prog in ginstall scoinst install; do
- for ac_exec_ext in '' $ac_executable_extensions; do
- if $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
- if test $ac_prog = install &&
- grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
- # AIX install. It has an incompatible calling convention.
- :
- elif test $ac_prog = install &&
- grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
- # program-specific install script used by HP pwplus--don't use.
- :
- else
- ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
- break 3
- fi
- fi
- done
- done
- ;;
-esac
-done
-
-
-fi
- if test "${ac_cv_path_install+set}" = set; then
- INSTALL=$ac_cv_path_install
- else
- # As a last resort, use the slow shell script. We don't cache a
- # path for INSTALL within a source directory, because that will
- # break other packages using the cache if that directory is
- # removed, or if the path is relative.
- INSTALL=$ac_install_sh
- fi
-fi
-echo "$as_me:$LINENO: result: $INSTALL" >&5
-echo "${ECHO_T}$INSTALL" >&6
-
-# Use test -z because SunOS4 sh mishandles braces in ${var-val}.
-# It thinks the first close brace ends the variable substitution.
-test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
-
-test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
-
-test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
-
-
-if test -f etc/toolcheck; then
-{ echo "$as_me:$LINENO: checking for buggy tools..." >&5
-echo "$as_me: checking for buggy tools..." >&6;}
-sh etc/toolcheck 1>&6
-fi
-
-
-
-echo "$as_me:$LINENO: checking if a system-wide socket dir should be used" >&5
-echo $ECHO_N "checking if a system-wide socket dir should be used... $ECHO_C" >&6
-# Check whether --enable-socket-dir or --disable-socket-dir was given.
-if test "${enable_socket_dir+set}" = set; then
- enableval="$enable_socket_dir"
-
- echo "$as_me:$LINENO: result: no. ~/.screen will be used instead." >&5
-echo "${ECHO_T}no. ~/.screen will be used instead." >&6
-
-else
-
- echo "$as_me:$LINENO: result: yes" >&5
-echo "${ECHO_T}yes" >&6
- echo "$as_me:$LINENO: checking for the socket dir" >&5
-echo $ECHO_N "checking for the socket dir... $ECHO_C" >&6
- SOCKDIR="(eff_uid ? \"/tmp/uscreens\" : \"/tmp/screens\")"
-
-# Check whether --with-socket-dir or --without-socket-dir was given.
-if test "${with_socket_dir+set}" = set; then
- withval="$with_socket_dir"
- SOCKDIR="\"${withval}\""
-fi;
- echo "$as_me:$LINENO: result: ${SOCKDIR}" >&5
-echo "${ECHO_T}${SOCKDIR}" >&6
- cat >>confdefs.h <<_ACEOF
-#define SOCKDIR $SOCKDIR
-_ACEOF
-
-
-
-fi;
-
-
-if test -n "$ISC"; then
- cat >>confdefs.h <<\_ACEOF
-#define ISC 1
-_ACEOF
- LIBS="$LIBS -linet"
-fi
-
-
-if test -f /sysV68 ; then
-cat >>confdefs.h <<\_ACEOF
-#define sysV68 1
-_ACEOF
-
-fi
-
-{ echo "$as_me:$LINENO: checking for MIPS..." >&5
-echo "$as_me: checking for MIPS..." >&6;}
-if test -f /lib/libmld.a || test -f /usr/lib/libmld.a || test -f /usr/lib/cmplrs/cc/libmld.a; then
-oldlibs="$LIBS"
-test -f /bin/mx || LIBS="$LIBS -lmld" # for nlist. But not on alpha.
-{ echo "$as_me:$LINENO: checking mld library..." >&5
-echo "$as_me: checking mld library..." >&6;}
-cat >conftest.$ac_ext <<_ACEOF
-#line $LINENO "configure"
-/* confdefs.h. */
-_ACEOF
-cat confdefs.h >>conftest.$ac_ext
-cat >>conftest.$ac_ext <<_ACEOF
-/* end confdefs.h. */
-
-int
-main ()
-{
-
- ;
- return 0;
-}
-_ACEOF
-rm -f conftest.$ac_objext conftest$ac_exeext
-if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
- (eval $ac_link) 2>&5
- ac_status=$?
- echo "$as_me:$LINENO: \$? = $ac_status" >&5
- (exit $ac_status); } &&
- { ac_try='test -s conftest$ac_exeext'
- { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
- (eval $ac_try) 2>&5
- ac_status=$?
- echo "$as_me:$LINENO: \$? = $ac_status" >&5
- (exit $ac_status); }; }; then
- :
-else
- echo "$as_me: failed program was:" >&5
-sed 's/^/| /' conftest.$ac_ext >&5
-
-LIBS="$oldlibs"
-fi
-rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
-if test -r /dev/ptc; then
-cat >>confdefs.h <<\_ACEOF
-#define MIPS 1
-_ACEOF
-
-{ echo "$as_me:$LINENO: checking wait3..." >&5
-echo "$as_me: checking wait3..." >&6;}
-cat >conftest.$ac_ext <<_ACEOF
-#line $LINENO "configure"
-/* confdefs.h. */
-_ACEOF
-cat confdefs.h >>conftest.$ac_ext
-cat >>conftest.$ac_ext <<_ACEOF
-/* end confdefs.h. */
-
-int
-main ()
-{
-wait3();
- ;
- return 0;
-}
-_ACEOF
-rm -f conftest.$ac_objext conftest$ac_exeext
-if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
- (eval $ac_link) 2>&5
- ac_status=$?
- echo "$as_me:$LINENO: \$? = $ac_status" >&5
- (exit $ac_status); } &&
- { ac_try='test -s conftest$ac_exeext'
- { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
- (eval $ac_try) 2>&5
- ac_status=$?
- echo "$as_me:$LINENO: \$? = $ac_status" >&5
- (exit $ac_status); }; }; then
- :
-else
- echo "$as_me: failed program was:" >&5
-sed 's/^/| /' conftest.$ac_ext >&5
-
-{ echo "$as_me:$LINENO: checking wait2..." >&5
-echo "$as_me: checking wait2..." >&6;}
-cat >conftest.$ac_ext <<_ACEOF
-#line $LINENO "configure"
-/* confdefs.h. */
-_ACEOF
-cat confdefs.h >>conftest.$ac_ext
-cat >>conftest.$ac_ext <<_ACEOF
-/* end confdefs.h. */
-
-int
-main ()
-{
-wait2();
- ;
- return 0;
-}
-_ACEOF
-rm -f conftest.$ac_objext conftest$ac_exeext
-if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
- (eval $ac_link) 2>&5
- ac_status=$?
- echo "$as_me:$LINENO: \$? = $ac_status" >&5
- (exit $ac_status); } &&
- { ac_try='test -s conftest$ac_exeext'
- { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
- (eval $ac_try) 2>&5
- ac_status=$?
- echo "$as_me:$LINENO: \$? = $ac_status" >&5
- (exit $ac_status); }; }; then
- cat >>confdefs.h <<\_ACEOF
-#define USE_WAIT2 1
-_ACEOF
- LIBS="$LIBS -lbsd" ; CC="$CC -I/usr/include/bsd"
-
-else
- echo "$as_me: failed program was:" >&5
-sed 's/^/| /' conftest.$ac_ext >&5
-
-fi
-rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
-fi
-rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
-fi
-fi
-
-
-{ echo "$as_me:$LINENO: checking for Ultrix..." >&5
-echo "$as_me: checking for Ultrix..." >&6;}
-cat >conftest.$ac_ext <<_ACEOF
-#line $LINENO "configure"
-/* confdefs.h. */
-_ACEOF
-cat confdefs.h >>conftest.$ac_ext
-cat >>conftest.$ac_ext <<_ACEOF
-/* end confdefs.h. */
-#if defined(ultrix) || defined(__ultrix)
- yes;
-#endif
-
-_ACEOF
-if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
- $EGREP "yes" >/dev/null 2>&1; then
- ULTRIX=1
-fi
-rm -f conftest*
-
-
-if test -f /usr/lib/libpyr.a ; then
-oldlibs="$LIBS"
-LIBS="$LIBS -lpyr"
-{ echo "$as_me:$LINENO: checking Pyramid OSX..." >&5
-echo "$as_me: checking Pyramid OSX..." >&6;}
-cat >conftest.$ac_ext <<_ACEOF
-#line $LINENO "configure"
-/* confdefs.h. */
-_ACEOF
-cat confdefs.h >>conftest.$ac_ext
-cat >>conftest.$ac_ext <<_ACEOF
-/* end confdefs.h. */
-
-int
-main ()
-{
-open_controlling_pty("")
- ;
- return 0;
-}
-_ACEOF
-rm -f conftest.$ac_objext conftest$ac_exeext
-if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
- (eval $ac_link) 2>&5
- ac_status=$?
- echo "$as_me:$LINENO: \$? = $ac_status" >&5
- (exit $ac_status); } &&
- { ac_try='test -s conftest$ac_exeext'
- { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
- (eval $ac_try) 2>&5
- ac_status=$?
- echo "$as_me:$LINENO: \$? = $ac_status" >&5
- (exit $ac_status); }; }; then
- cat >>confdefs.h <<\_ACEOF
-#define OSX 1
-_ACEOF
-
-else
- echo "$as_me: failed program was:" >&5
-sed 's/^/| /' conftest.$ac_ext >&5
-
-LIBS="$oldlibs"
-fi
-rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
-fi
-
-{ echo "$as_me:$LINENO: checking for butterfly..." >&5
-echo "$as_me: checking for butterfly..." >&6;}
-cat >conftest.$ac_ext <<_ACEOF
-#line $LINENO "configure"
-/* confdefs.h. */
-_ACEOF
-cat confdefs.h >>conftest.$ac_ext
-cat >>conftest.$ac_ext <<_ACEOF
-/* end confdefs.h. */
-#if defined(butterfly)
- yes;
-#endif
-
-_ACEOF
-if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
- $EGREP "yes" >/dev/null 2>&1; then
- butterfly=1
-fi
-rm -f conftest*
-
-
-if test -z "$butterfly"; then
-if test -n "$ULTRIX"; then
- test -z "$GCC" && CC="$CC -YBSD"
-fi
-{ echo "$as_me:$LINENO: checking for POSIX.1..." >&5
-echo "$as_me: checking for POSIX.1..." >&6;}
-cat >conftest.$ac_ext <<_ACEOF
-#line $LINENO "configure"
-/* confdefs.h. */
-_ACEOF
-cat confdefs.h >>conftest.$ac_ext
-cat >>conftest.$ac_ext <<_ACEOF
-/* end confdefs.h. */
-#include <sys/types.h>
-#include <unistd.h>
-main () {
-#ifdef _POSIX_VERSION
- yes;
-#endif
-
-_ACEOF
-if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
- $EGREP "yes" >/dev/null 2>&1; then
- echo "- you have a POSIX system" 1>&6
- cat >>confdefs.h <<\_ACEOF
-#define POSIX 1
-_ACEOF
- posix=1
-fi
-rm -f conftest*
-
-fi
-
-{ echo "$as_me:$LINENO: checking for System V..." >&5
-echo "$as_me: checking for System V..." >&6;}
-cat >conftest.$ac_ext <<_ACEOF
-#line $LINENO "configure"
-/* confdefs.h. */
-_ACEOF
-cat confdefs.h >>conftest.$ac_ext
-cat >>conftest.$ac_ext <<_ACEOF
-/* end confdefs.h. */
-#include <sys/types.h>
-#include <signal.h>
-#include <fcntl.h>
-int
-main ()
-{
-int x = SIGCHLD | FNDELAY;
- ;
- return 0;
-}
-_ACEOF
-rm -f conftest.$ac_objext
-if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
- (eval $ac_compile) 2>&5
- ac_status=$?
- echo "$as_me:$LINENO: \$? = $ac_status" >&5
- (exit $ac_status); } &&
- { ac_try='test -s conftest.$ac_objext'
- { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
- (eval $ac_try) 2>&5
- ac_status=$?
- echo "$as_me:$LINENO: \$? = $ac_status" >&5
- (exit $ac_status); }; }; then
- :
-else
- echo "$as_me: failed program was:" >&5
-sed 's/^/| /' conftest.$ac_ext >&5
-
-cat >>confdefs.h <<\_ACEOF
-#define SYSV 1
-_ACEOF
-
-fi
-rm -f conftest.$ac_objext conftest.$ac_ext
-
-{ echo "$as_me:$LINENO: checking for sequent/ptx..." >&5
-echo "$as_me: checking for sequent/ptx..." >&6;}
-cat >conftest.$ac_ext <<_ACEOF
-#line $LINENO "configure"
-/* confdefs.h. */
-_ACEOF
-cat confdefs.h >>conftest.$ac_ext
-cat >>conftest.$ac_ext <<_ACEOF
-/* end confdefs.h. */
-#ifdef _SEQUENT_
- yes;
-#endif
-
-_ACEOF
-if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
- $EGREP "yes" >/dev/null 2>&1; then
- LIBS="$LIBS -lsocket -linet";seqptx=1
-fi
-rm -f conftest*
-
-
-oldlibs="$LIBS"
-LIBS="$LIBS -lelf"
-{ echo "$as_me:$LINENO: checking SVR4..." >&5
-echo "$as_me: checking SVR4..." >&6;}
-echo "$as_me:$LINENO: checking for ANSI C header files" >&5
-echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
-if test "${ac_cv_header_stdc+set}" = set; then
- echo $ECHO_N "(cached) $ECHO_C" >&6
-else
- cat >conftest.$ac_ext <<_ACEOF
-#line $LINENO "configure"
-/* confdefs.h. */
-_ACEOF
-cat confdefs.h >>conftest.$ac_ext
-cat >>conftest.$ac_ext <<_ACEOF
-/* end confdefs.h. */
-#include <stdlib.h>
-#include <stdarg.h>
-#include <string.h>
-#include <float.h>
-
-int
-main ()
-{
-
- ;
- return 0;
-}
-_ACEOF
-rm -f conftest.$ac_objext
-if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
- (eval $ac_compile) 2>&5
- ac_status=$?
- echo "$as_me:$LINENO: \$? = $ac_status" >&5
- (exit $ac_status); } &&
- { ac_try='test -s conftest.$ac_objext'
- { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
- (eval $ac_try) 2>&5
- ac_status=$?
- echo "$as_me:$LINENO: \$? = $ac_status" >&5
- (exit $ac_status); }; }; then
- ac_cv_header_stdc=yes
-else
- echo "$as_me: failed program was:" >&5
-sed 's/^/| /' conftest.$ac_ext >&5
-
-ac_cv_header_stdc=no
-fi
-rm -f conftest.$ac_objext conftest.$ac_ext
-
-if test $ac_cv_header_stdc = yes; then
- # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
- cat >conftest.$ac_ext <<_ACEOF
-#line $LINENO "configure"
-/* confdefs.h. */
-_ACEOF
-cat confdefs.h >>conftest.$ac_ext
-cat >>conftest.$ac_ext <<_ACEOF
-/* end confdefs.h. */
-#include <string.h>
-
-_ACEOF
-if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
- $EGREP "memchr" >/dev/null 2>&1; then
- :
-else
- ac_cv_header_stdc=no
-fi
-rm -f conftest*
-
-fi
-
-if test $ac_cv_header_stdc = yes; then
- # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
- cat >conftest.$ac_ext <<_ACEOF
-#line $LINENO "configure"
-/* confdefs.h. */
-_ACEOF
-cat confdefs.h >>conftest.$ac_ext
-cat >>conftest.$ac_ext <<_ACEOF
-/* end confdefs.h. */
-#include <stdlib.h>
-
-_ACEOF
-if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
- $EGREP "free" >/dev/null 2>&1; then
- :
-else
- ac_cv_header_stdc=no
-fi
-rm -f conftest*
-
-fi
-
-if test $ac_cv_header_stdc = yes; then
- # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
- if test "$cross_compiling" = yes; then
- :
-else
- cat >conftest.$ac_ext <<_ACEOF
-#line $LINENO "configure"
-/* confdefs.h. */
-_ACEOF
-cat confdefs.h >>conftest.$ac_ext
-cat >>conftest.$ac_ext <<_ACEOF
-/* end confdefs.h. */
-#include <ctype.h>
-#if ((' ' & 0x0FF) == 0x020)
-# define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
-# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
-#else
-# define ISLOWER(c) \
- (('a' <= (c) && (c) <= 'i') \
- || ('j' <= (c) && (c) <= 'r') \
- || ('s' <= (c) && (c) <= 'z'))
-# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
-#endif
-
-#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
-int
-main ()
-{
- int i;
- for (i = 0; i < 256; i++)
- if (XOR (islower (i), ISLOWER (i))
- || toupper (i) != TOUPPER (i))
- exit(2);
- exit (0);
-}
-_ACEOF
-rm -f conftest$ac_exeext
-if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
- (eval $ac_link) 2>&5
- ac_status=$?
- echo "$as_me:$LINENO: \$? = $ac_status" >&5
- (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
- { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
- (eval $ac_try) 2>&5
- ac_status=$?
- echo "$as_me:$LINENO: \$? = $ac_status" >&5
- (exit $ac_status); }; }; then
- :
-else
- echo "$as_me: program exited with status $ac_status" >&5
-echo "$as_me: failed program was:" >&5
-sed 's/^/| /' conftest.$ac_ext >&5
-
-( exit $ac_status )
-ac_cv_header_stdc=no
-fi
-rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
-fi
-fi
-fi
-echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
-echo "${ECHO_T}$ac_cv_header_stdc" >&6
-if test $ac_cv_header_stdc = yes; then
-
-cat >>confdefs.h <<\_ACEOF
-#define STDC_HEADERS 1
-_ACEOF
-
-fi
-
-# On IRIX 5.3, sys/types and inttypes.h are conflicting.
-
-
-
-
-
-
-
-
-
-for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
- inttypes.h stdint.h unistd.h
-do
-as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
-echo "$as_me:$LINENO: checking for $ac_header" >&5
-echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
-if eval "test \"\${$as_ac_Header+set}\" = set"; then
- echo $ECHO_N "(cached) $ECHO_C" >&6
-else
- cat >conftest.$ac_ext <<_ACEOF
-#line $LINENO "configure"
-/* confdefs.h. */
-_ACEOF
-cat confdefs.h >>conftest.$ac_ext
-cat >>conftest.$ac_ext <<_ACEOF
-/* end confdefs.h. */
-$ac_includes_default
-
-#include <$ac_header>
-_ACEOF
-rm -f conftest.$ac_objext
-if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
- (eval $ac_compile) 2>&5
- ac_status=$?
- echo "$as_me:$LINENO: \$? = $ac_status" >&5
- (exit $ac_status); } &&
- { ac_try='test -s conftest.$ac_objext'
- { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
- (eval $ac_try) 2>&5
- ac_status=$?
- echo "$as_me:$LINENO: \$? = $ac_status" >&5
- (exit $ac_status); }; }; then
- eval "$as_ac_Header=yes"
-else
- echo "$as_me: failed program was:" >&5
-sed 's/^/| /' conftest.$ac_ext >&5
-
-eval "$as_ac_Header=no"
-fi
-rm -f conftest.$ac_objext conftest.$ac_ext
-fi
-echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
-echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
-if test `eval echo '${'$as_ac_Header'}'` = yes; then
- cat >>confdefs.h <<_ACEOF
-#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
-_ACEOF
-
-fi
-
-done
-
-
-cat >conftest.$ac_ext <<_ACEOF
-#line $LINENO "configure"
-/* confdefs.h. */
-_ACEOF
-cat confdefs.h >>conftest.$ac_ext
-cat >>conftest.$ac_ext <<_ACEOF
-/* end confdefs.h. */
-#include <utmpx.h>
-
-int
-main ()
-{
-
- ;
- return 0;
-}
-_ACEOF
-rm -f conftest.$ac_objext conftest$ac_exeext
-if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
- (eval $ac_link) 2>&5
- ac_status=$?
- echo "$as_me:$LINENO: \$? = $ac_status" >&5
- (exit $ac_status); } &&
- { ac_try='test -s conftest$ac_exeext'
- { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
- (eval $ac_try) 2>&5
- ac_status=$?
- echo "$as_me:$LINENO: \$? = $ac_status" >&5
- (exit $ac_status); }; }; then
- if test "${ac_cv_header_dwarf_h+set}" = set; then
- echo "$as_me:$LINENO: checking for dwarf.h" >&5
-echo $ECHO_N "checking for dwarf.h... $ECHO_C" >&6
-if test "${ac_cv_header_dwarf_h+set}" = set; then
- echo $ECHO_N "(cached) $ECHO_C" >&6
-fi
-echo "$as_me:$LINENO: result: $ac_cv_header_dwarf_h" >&5
-echo "${ECHO_T}$ac_cv_header_dwarf_h" >&6
-else
- # Is the header compilable?
-echo "$as_me:$LINENO: checking dwarf.h usability" >&5
-echo $ECHO_N "checking dwarf.h usability... $ECHO_C" >&6
-cat >conftest.$ac_ext <<_ACEOF
-#line $LINENO "configure"
-/* confdefs.h. */
-_ACEOF
-cat confdefs.h >>conftest.$ac_ext
-cat >>conftest.$ac_ext <<_ACEOF
-/* end confdefs.h. */
-$ac_includes_default
-#include <dwarf.h>
-_ACEOF
-rm -f conftest.$ac_objext
-if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
- (eval $ac_compile) 2>&5
- ac_status=$?
- echo "$as_me:$LINENO: \$? = $ac_status" >&5
- (exit $ac_status); } &&
- { ac_try='test -s conftest.$ac_objext'
- { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
- (eval $ac_try) 2>&5
- ac_status=$?
- echo "$as_me:$LINENO: \$? = $ac_status" >&5
- (exit $ac_status); }; }; then
- ac_header_compiler=yes
-else
- echo "$as_me: failed program was:" >&5
-sed 's/^/| /' conftest.$ac_ext >&5
-
-ac_header_compiler=no
-fi
-rm -f conftest.$ac_objext conftest.$ac_ext
-echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
-echo "${ECHO_T}$ac_header_compiler" >&6
-
-# Is the header present?
-echo "$as_me:$LINENO: checking dwarf.h presence" >&5
-echo $ECHO_N "checking dwarf.h presence... $ECHO_C" >&6
-cat >conftest.$ac_ext <<_ACEOF
-#line $LINENO "configure"
-/* confdefs.h. */
-_ACEOF
-cat confdefs.h >>conftest.$ac_ext
-cat >>conftest.$ac_ext <<_ACEOF
-/* end confdefs.h. */
-#include <dwarf.h>
-_ACEOF
-if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
- (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
- ac_status=$?
- grep -v '^ *+' conftest.er1 >conftest.err
- rm -f conftest.er1
- cat conftest.err >&5
- echo "$as_me:$LINENO: \$? = $ac_status" >&5
- (exit $ac_status); } >/dev/null; then
- if test -s conftest.err; then
- ac_cpp_err=$ac_c_preproc_warn_flag
- else
- ac_cpp_err=
- fi
-else
- ac_cpp_err=yes
-fi
-if test -z "$ac_cpp_err"; then
- ac_header_preproc=yes
-else
- echo "$as_me: failed program was:" >&5
-sed 's/^/| /' conftest.$ac_ext >&5
-
- ac_header_preproc=no
-fi
-rm -f conftest.err conftest.$ac_ext
-echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
-echo "${ECHO_T}$ac_header_preproc" >&6
-
-# So? What about this header?
-case $ac_header_compiler:$ac_header_preproc in
- yes:no )
- { echo "$as_me:$LINENO: WARNING: dwarf.h: accepted by the compiler, rejected by the preprocessor!" >&5
-echo "$as_me: WARNING: dwarf.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
- { echo "$as_me:$LINENO: WARNING: dwarf.h: proceeding with the preprocessor's result" >&5
-echo "$as_me: WARNING: dwarf.h: proceeding with the preprocessor's result" >&2;}
- (
- cat <<\_ASBOX
-## ------------------------------------ ##
-## Report this to bug-autoconf@gnu.org. ##
-## ------------------------------------ ##
-_ASBOX
- ) |
- sed "s/^/$as_me: WARNING: /" >&2
- ;;
- no:yes )
- { echo "$as_me:$LINENO: WARNING: dwarf.h: present but cannot be compiled" >&5
-echo "$as_me: WARNING: dwarf.h: present but cannot be compiled" >&2;}
- { echo "$as_me:$LINENO: WARNING: dwarf.h: check for missing prerequisite headers?" >&5
-echo "$as_me: WARNING: dwarf.h: check for missing prerequisite headers?" >&2;}
- { echo "$as_me:$LINENO: WARNING: dwarf.h: proceeding with the preprocessor's result" >&5
-echo "$as_me: WARNING: dwarf.h: proceeding with the preprocessor's result" >&2;}
- (
- cat <<\_ASBOX
-## ------------------------------------ ##
-## Report this to bug-autoconf@gnu.org. ##
-## ------------------------------------ ##
-_ASBOX
- ) |
- sed "s/^/$as_me: WARNING: /" >&2
- ;;
-esac
-echo "$as_me:$LINENO: checking for dwarf.h" >&5
-echo $ECHO_N "checking for dwarf.h... $ECHO_C" >&6
-if test "${ac_cv_header_dwarf_h+set}" = set; then
- echo $ECHO_N "(cached) $ECHO_C" >&6
-else
- ac_cv_header_dwarf_h=$ac_header_preproc
-fi
-echo "$as_me:$LINENO: result: $ac_cv_header_dwarf_h" >&5
-echo "${ECHO_T}$ac_cv_header_dwarf_h" >&6
-
-fi
-if test $ac_cv_header_dwarf_h = yes; then
- cat >>confdefs.h <<\_ACEOF
-#define SVR4 1
-_ACEOF
- cat >>confdefs.h <<\_ACEOF
-#define BUGGYGETLOGIN 1
-_ACEOF
-
-else
- if test "${ac_cv_header_elf_h+set}" = set; then
- echo "$as_me:$LINENO: checking for elf.h" >&5
-echo $ECHO_N "checking for elf.h... $ECHO_C" >&6
-if test "${ac_cv_header_elf_h+set}" = set; then
- echo $ECHO_N "(cached) $ECHO_C" >&6
-fi
-echo "$as_me:$LINENO: result: $ac_cv_header_elf_h" >&5
-echo "${ECHO_T}$ac_cv_header_elf_h" >&6
-else
- # Is the header compilable?
-echo "$as_me:$LINENO: checking elf.h usability" >&5
-echo $ECHO_N "checking elf.h usability... $ECHO_C" >&6
-cat >conftest.$ac_ext <<_ACEOF
-#line $LINENO "configure"
-/* confdefs.h. */
-_ACEOF
-cat confdefs.h >>conftest.$ac_ext
-cat >>conftest.$ac_ext <<_ACEOF
-/* end confdefs.h. */
-$ac_includes_default
-#include <elf.h>
-_ACEOF
-rm -f conftest.$ac_objext
-if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
- (eval $ac_compile) 2>&5
- ac_status=$?
- echo "$as_me:$LINENO: \$? = $ac_status" >&5
- (exit $ac_status); } &&
- { ac_try='test -s conftest.$ac_objext'
- { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
- (eval $ac_try) 2>&5
- ac_status=$?
- echo "$as_me:$LINENO: \$? = $ac_status" >&5
- (exit $ac_status); }; }; then
- ac_header_compiler=yes
-else
- echo "$as_me: failed program was:" >&5
-sed 's/^/| /' conftest.$ac_ext >&5
-
-ac_header_compiler=no
-fi
-rm -f conftest.$ac_objext conftest.$ac_ext
-echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
-echo "${ECHO_T}$ac_header_compiler" >&6
-
-# Is the header present?
-echo "$as_me:$LINENO: checking elf.h presence" >&5
-echo $ECHO_N "checking elf.h presence... $ECHO_C" >&6
-cat >conftest.$ac_ext <<_ACEOF
-#line $LINENO "configure"
-/* confdefs.h. */
-_ACEOF
-cat confdefs.h >>conftest.$ac_ext
-cat >>conftest.$ac_ext <<_ACEOF
-/* end confdefs.h. */
-#include <elf.h>
-_ACEOF
-if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
- (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
- ac_status=$?
- grep -v '^ *+' conftest.er1 >conftest.err
- rm -f conftest.er1
- cat conftest.err >&5
- echo "$as_me:$LINENO: \$? = $ac_status" >&5
- (exit $ac_status); } >/dev/null; then
- if test -s conftest.err; then
- ac_cpp_err=$ac_c_preproc_warn_flag
- else
- ac_cpp_err=
- fi
-else
- ac_cpp_err=yes
-fi
-if test -z "$ac_cpp_err"; then
- ac_header_preproc=yes
-else
- echo "$as_me: failed program was:" >&5
-sed 's/^/| /' conftest.$ac_ext >&5
-
- ac_header_preproc=no
-fi
-rm -f conftest.err conftest.$ac_ext
-echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
-echo "${ECHO_T}$ac_header_preproc" >&6
-
-# So? What about this header?
-case $ac_header_compiler:$ac_header_preproc in
- yes:no )
- { echo "$as_me:$LINENO: WARNING: elf.h: accepted by the compiler, rejected by the preprocessor!" >&5
-echo "$as_me: WARNING: elf.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
- { echo "$as_me:$LINENO: WARNING: elf.h: proceeding with the preprocessor's result" >&5
-echo "$as_me: WARNING: elf.h: proceeding with the preprocessor's result" >&2;}
- (
- cat <<\_ASBOX
-## ------------------------------------ ##
-## Report this to bug-autoconf@gnu.org. ##
-## ------------------------------------ ##
-_ASBOX
- ) |
- sed "s/^/$as_me: WARNING: /" >&2
- ;;
- no:yes )
- { echo "$as_me:$LINENO: WARNING: elf.h: present but cannot be compiled" >&5
-echo "$as_me: WARNING: elf.h: present but cannot be compiled" >&2;}
- { echo "$as_me:$LINENO: WARNING: elf.h: check for missing prerequisite headers?" >&5
-echo "$as_me: WARNING: elf.h: check for missing prerequisite headers?" >&2;}
- { echo "$as_me:$LINENO: WARNING: elf.h: proceeding with the preprocessor's result" >&5
-echo "$as_me: WARNING: elf.h: proceeding with the preprocessor's result" >&2;}
- (
- cat <<\_ASBOX
-## ------------------------------------ ##
-## Report this to bug-autoconf@gnu.org. ##
-## ------------------------------------ ##
-_ASBOX
- ) |
- sed "s/^/$as_me: WARNING: /" >&2
- ;;
-esac
-echo "$as_me:$LINENO: checking for elf.h" >&5
-echo $ECHO_N "checking for elf.h... $ECHO_C" >&6
-if test "${ac_cv_header_elf_h+set}" = set; then
- echo $ECHO_N "(cached) $ECHO_C" >&6
-else
- ac_cv_header_elf_h=$ac_header_preproc
-fi
-echo "$as_me:$LINENO: result: $ac_cv_header_elf_h" >&5
-echo "${ECHO_T}$ac_cv_header_elf_h" >&6
-
-fi
-if test $ac_cv_header_elf_h = yes; then
- cat >>confdefs.h <<\_ACEOF
-#define SVR4 1
-_ACEOF
- cat >>confdefs.h <<\_ACEOF
-#define BUGGYGETLOGIN 1
-_ACEOF
-
-fi
-
-
-fi
-
-
-
-else
- echo "$as_me: failed program was:" >&5
-sed 's/^/| /' conftest.$ac_ext >&5
-
-LIBS="$oldlibs"
-fi
-rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
-
-{ echo "$as_me:$LINENO: checking for Solaris 2.x..." >&5
-echo "$as_me: checking for Solaris 2.x..." >&6;}
-cat >conftest.$ac_ext <<_ACEOF
-#line $LINENO "configure"
-/* confdefs.h. */
-_ACEOF
-cat confdefs.h >>conftest.$ac_ext
-cat >>conftest.$ac_ext <<_ACEOF
-/* end confdefs.h. */
-#if defined(SVR4) && defined(sun)
- yes
-#endif
-
-_ACEOF
-if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
- $EGREP "yes" >/dev/null 2>&1; then
- LIBS="$LIBS -lsocket -lnsl -lkstat"
-fi
-rm -f conftest*
-
-
-
-
-{ echo "$as_me:$LINENO: checking BSD job jontrol..." >&5
-echo "$as_me: checking BSD job jontrol..." >&6;}
-cat >conftest.$ac_ext <<_ACEOF
-#line $LINENO "configure"
-/* confdefs.h. */
-_ACEOF
-cat confdefs.h >>conftest.$ac_ext
-cat >>conftest.$ac_ext <<_ACEOF
-/* end confdefs.h. */
-#include <sys/types.h>
-#include <sys/ioctl.h>
-
-int
-main ()
-{
-
-#ifdef POSIX
-tcsetpgrp(0, 0);
-#else
-int x = TIOCSPGRP;
-#ifdef SYSV
-setpgrp();
-#else
-int y = TIOCNOTTY;
-#endif
-#endif
-
- ;
- return 0;
-}
-_ACEOF
-rm -f conftest.$ac_objext conftest$ac_exeext
-if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
- (eval $ac_link) 2>&5
- ac_status=$?
- echo "$as_me:$LINENO: \$? = $ac_status" >&5
- (exit $ac_status); } &&
- { ac_try='test -s conftest$ac_exeext'
- { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
- (eval $ac_try) 2>&5
- ac_status=$?
- echo "$as_me:$LINENO: \$? = $ac_status" >&5
- (exit $ac_status); }; }; then
- echo "- you have jobcontrol" 1>&6
- cat >>confdefs.h <<\_ACEOF
-#define BSDJOBS 1
-_ACEOF
-
-else
- echo "$as_me: failed program was:" >&5
-sed 's/^/| /' conftest.$ac_ext >&5
-
-echo "- you don't have jobcontrol" 1>&6
-
-fi
-rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
-
-{ echo "$as_me:$LINENO: checking setreuid..." >&5
-echo "$as_me: checking setreuid..." >&6;}
-cat >conftest.$ac_ext <<_ACEOF
-#line $LINENO "configure"
-/* confdefs.h. */
-_ACEOF
-cat confdefs.h >>conftest.$ac_ext
-cat >>conftest.$ac_ext <<_ACEOF
-/* end confdefs.h. */
-
-int
-main ()
-{
-
-#ifdef __hpux
-setresuid(0, 0, 0);
-#else
-setreuid(0, 0);
-#endif
-
- ;
- return 0;
-}
-_ACEOF
-rm -f conftest.$ac_objext conftest$ac_exeext
-if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
- (eval $ac_link) 2>&5
- ac_status=$?
- echo "$as_me:$LINENO: \$? = $ac_status" >&5
- (exit $ac_status); } &&
- { ac_try='test -s conftest$ac_exeext'
- { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
- (eval $ac_try) 2>&5
- ac_status=$?
- echo "$as_me:$LINENO: \$? = $ac_status" >&5
- (exit $ac_status); }; }; then
- cat >>confdefs.h <<\_ACEOF
-#define HAVE_SETREUID 1
-_ACEOF
-
-else
- echo "$as_me: failed program was:" >&5
-sed 's/^/| /' conftest.$ac_ext >&5
-
-fi
-rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
-{ echo "$as_me:$LINENO: checking seteuid..." >&5
-echo "$as_me: checking seteuid..." >&6;}
-cat >conftest.$ac_ext <<_ACEOF
-#line $LINENO "configure"
-/* confdefs.h. */
-_ACEOF
-cat confdefs.h >>conftest.$ac_ext
-cat >>conftest.$ac_ext <<_ACEOF
-/* end confdefs.h. */
-
-int
-main ()
-{
-
-#if defined(linux) || defined(NeXT) || defined(_AUX_SOURCE) || defined(AUX) || defined(ultrix) || (defined(sun) && defined(SVR4)) || defined(ISC) || defined(sony_news)
-seteuid_is_broken(0);
-#else
-seteuid(0);
-#endif
-
- ;
- return 0;
-}
-_ACEOF
-rm -f conftest.$ac_objext conftest$ac_exeext
-if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
- (eval $ac_link) 2>&5
- ac_status=$?
- echo "$as_me:$LINENO: \$? = $ac_status" >&5
- (exit $ac_status); } &&
- { ac_try='test -s conftest$ac_exeext'
- { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
- (eval $ac_try) 2>&5
- ac_status=$?
- echo "$as_me:$LINENO: \$? = $ac_status" >&5
- (exit $ac_status); }; }; then
- cat >>confdefs.h <<\_ACEOF
-#define HAVE_SETEUID 1
-_ACEOF
-
-else
- echo "$as_me: failed program was:" >&5
-sed 's/^/| /' conftest.$ac_ext >&5
-
-fi
-rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
-
-
-{ echo "$as_me:$LINENO: checking select..." >&5
-echo "$as_me: checking select..." >&6;}
-cat >conftest.$ac_ext <<_ACEOF
-#line $LINENO "configure"
-/* confdefs.h. */
-_ACEOF
-cat confdefs.h >>conftest.$ac_ext
-cat >>conftest.$ac_ext <<_ACEOF
-/* end confdefs.h. */
-
-int
-main ()
-{
-select(0, 0, 0, 0, 0);
- ;
- return 0;
-}
-_ACEOF
-rm -f conftest.$ac_objext conftest$ac_exeext
-if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
- (eval $ac_link) 2>&5
- ac_status=$?
- echo "$as_me:$LINENO: \$? = $ac_status" >&5
- (exit $ac_status); } &&
- { ac_try='test -s conftest$ac_exeext'
- { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
- (eval $ac_try) 2>&5
- ac_status=$?
- echo "$as_me:$LINENO: \$? = $ac_status" >&5
- (exit $ac_status); }; }; then
- :
-else
- echo "$as_me: failed program was:" >&5
-sed 's/^/| /' conftest.$ac_ext >&5
-
-LIBS="$LIBS -lnet -lnsl"
-{ echo "$as_me:$LINENO: checking select with $LIBS..." >&5
-echo "$as_me: checking select with $LIBS..." >&6;}
-cat >conftest.$ac_ext <<_ACEOF
-#line $LINENO "configure"
-/* confdefs.h. */
-_ACEOF
-cat confdefs.h >>conftest.$ac_ext
-cat >>conftest.$ac_ext <<_ACEOF
-/* end confdefs.h. */
-
-int
-main ()
-{
-select(0, 0, 0, 0, 0);
- ;
- return 0;
-}
-_ACEOF
-rm -f conftest.$ac_objext conftest$ac_exeext
-if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
- (eval $ac_link) 2>&5
- ac_status=$?
- echo "$as_me:$LINENO: \$? = $ac_status" >&5
- (exit $ac_status); } &&
- { ac_try='test -s conftest$ac_exeext'
- { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
- (eval $ac_try) 2>&5
- ac_status=$?
- echo "$as_me:$LINENO: \$? = $ac_status" >&5
- (exit $ac_status); }; }; then
- :
-else
- echo "$as_me: failed program was:" >&5
-sed 's/^/| /' conftest.$ac_ext >&5
-
-{ { echo "$as_me:$LINENO: error: !!! no select - no screen" >&5
-echo "$as_me: error: !!! no select - no screen" >&2;}
- { (exit 1); exit 1; }; }
-fi
-rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
-
-fi
-rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
-
-{ echo "$as_me:$LINENO: checking fifos..." >&5
-echo "$as_me: checking fifos..." >&6;}
-if test "$cross_compiling" = yes; then
- { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
-See \`config.log' for more details." >&5
-echo "$as_me: error: cannot run test program while cross compiling
-See \`config.log' for more details." >&2;}
- { (exit 1); exit 1; }; }
-else
- cat >conftest.$ac_ext <<_ACEOF
-#line $LINENO "configure"
-/* confdefs.h. */
-_ACEOF
-cat confdefs.h >>conftest.$ac_ext
-cat >>conftest.$ac_ext <<_ACEOF
-/* end confdefs.h. */
-
-#include <sys/types.h>
-#include <sys/stat.h>
-#include <fcntl.h>
-
-#ifndef O_NONBLOCK
-#define O_NONBLOCK O_NDELAY
-#endif
-#ifndef S_IFIFO
-#define S_IFIFO 0010000
-#endif
-
-char *fin = "/tmp/conftest$$";
-
-main()
-{
- struct stat stb;
-#ifdef FD_SET
- fd_set f;
-#else
- int f;
-#endif
-
- (void)alarm(5);
-#ifdef POSIX
- if (mkfifo(fin, 0777))
-#else
- if (mknod(fin, S_IFIFO|0777, 0))
-#endif
- exit(1);
- if (stat(fin, &stb) || (stb.st_mode & S_IFIFO) != S_IFIFO)
- exit(1);
- close(0);
-#ifdef __386BSD__
- /*
- * The next test fails under 386BSD, but screen works using fifos.
- * Fifos in O_RDWR mode are only used for the BROKEN_PIPE case and for
- * the select() configuration test.
- */
- exit(0);
-#endif
- if (open(fin, O_RDONLY | O_NONBLOCK))
- exit(1);
- if (fork() == 0)
- {
- close(0);
- if (open(fin, O_WRONLY | O_NONBLOCK))
- exit(1);
- close(0);
- if (open(fin, O_WRONLY | O_NONBLOCK))
- exit(1);
- if (write(0, "TEST", 4) == -1)
- exit(1);
- exit(0);
- }
-#ifdef FD_SET
- FD_SET(0, &f);
-#else
- f = 1;
-#endif
- if (select(1, &f, 0, 0, 0) == -1)
- exit(1);
- exit(0);
-}
-
-_ACEOF
-rm -f conftest$ac_exeext
-if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
- (eval $ac_link) 2>&5
- ac_status=$?
- echo "$as_me:$LINENO: \$? = $ac_status" >&5
- (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
- { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
- (eval $ac_try) 2>&5
- ac_status=$?
- echo "$as_me:$LINENO: \$? = $ac_status" >&5
- (exit $ac_status); }; }; then
- echo "- your fifos are usable" 1>&6
- fifo=1
-else
- echo "$as_me: program exited with status $ac_status" >&5
-echo "$as_me: failed program was:" >&5
-sed 's/^/| /' conftest.$ac_ext >&5
-
-( exit $ac_status )
-echo "- your fifos are not usable" 1>&6
-
-fi
-rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
-fi
-rm -f /tmp/conftest*
-
-if test -n "$fifo"; then
-{ echo "$as_me:$LINENO: checking for broken fifo implementation..." >&5
-echo "$as_me: checking for broken fifo implementation..." >&6;}
-if test "$cross_compiling" = yes; then
- { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
-See \`config.log' for more details." >&5
-echo "$as_me: error: cannot run test program while cross compiling
-See \`config.log' for more details." >&2;}
- { (exit 1); exit 1; }; }
-else
- cat >conftest.$ac_ext <<_ACEOF
-#line $LINENO "configure"
-/* confdefs.h. */
-_ACEOF
-cat confdefs.h >>conftest.$ac_ext
-cat >>conftest.$ac_ext <<_ACEOF
-/* end confdefs.h. */
-
-#include <sys/types.h>
-#include <fcntl.h>
-#include <sys/time.h>
-#include <sys/stat.h>
-
-#ifndef O_NONBLOCK
-#define O_NONBLOCK O_NDELAY
-#endif
-#ifndef S_IFIFO
-#define S_IFIFO 0010000
-#endif
-
-char *fin = "/tmp/conftest$$";
-
-main()
-{
- struct timeval tv;
-#ifdef FD_SET
- fd_set f;
-#else
- int f;
-#endif
-
-#ifdef POSIX
- if (mkfifo(fin, 0600))
-#else
- if (mknod(fin, S_IFIFO|0600, 0))
-#endif
- exit(1);
- close(0);
- if (open(fin, O_RDONLY|O_NONBLOCK))
- exit(1);
-#ifdef FD_SET
- FD_SET(0, &f);
-#else
- f = 1;
-#endif
- tv.tv_sec = 1;
- tv.tv_usec = 0;
- if (select(1, &f, 0, 0, &tv))
- exit(1);
- exit(0);
-}
-
-_ACEOF
-rm -f conftest$ac_exeext
-if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
- (eval $ac_link) 2>&5
- ac_status=$?
- echo "$as_me:$LINENO: \$? = $ac_status" >&5
- (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
- { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
- (eval $ac_try) 2>&5
- ac_status=$?
- echo "$as_me:$LINENO: \$? = $ac_status" >&5
- (exit $ac_status); }; }; then
- echo "- your implementation is ok" 1>&6
-
-else
- echo "$as_me: program exited with status $ac_status" >&5
-echo "$as_me: failed program was:" >&5
-sed 's/^/| /' conftest.$ac_ext >&5
-
-( exit $ac_status )
-echo "- you have a broken implementation" 1>&6
- cat >>confdefs.h <<\_ACEOF
-#define BROKEN_PIPE 1
-_ACEOF
- fifobr=1
-fi
-rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
-fi
-rm -f /tmp/conftest*
-fi
-
-
-{ echo "$as_me:$LINENO: checking sockets..." >&5
-echo "$as_me: checking sockets..." >&6;}
-if test "$cross_compiling" = yes; then
- { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
-See \`config.log' for more details." >&5
-echo "$as_me: error: cannot run test program while cross compiling
-See \`config.log' for more details." >&2;}
- { (exit 1); exit 1; }; }
-else
- cat >conftest.$ac_ext <<_ACEOF
-#line $LINENO "configure"
-/* confdefs.h. */
-_ACEOF
-cat confdefs.h >>conftest.$ac_ext
-cat >>conftest.$ac_ext <<_ACEOF
-/* end confdefs.h. */
-
-#include <sys/types.h>
-#include <sys/socket.h>
-#include <sys/un.h>
-#include <fcntl.h>
-
-char *son = "/tmp/conftest$$";
-
-main()
-{
- int s1, s2, l;
- struct sockaddr_un a;
-#ifdef FD_SET
- fd_set f;
-#else
- int f;
-#endif
-
- (void)alarm(5);
- if ((s1 = socket(AF_UNIX, SOCK_STREAM, 0)) == -1)
- exit(1);
- a.sun_family = AF_UNIX;
- strcpy(a.sun_path, son);
- (void) unlink(son);
- if (bind(s1, (struct sockaddr *) &a, strlen(son)+2) == -1)
- exit(1);
- if (listen(s1, 2))
- exit(1);
- if (fork() == 0)
- {
- if ((s2 = socket(AF_UNIX, SOCK_STREAM, 0)) == -1)
- kill(getppid(), 3);
- (void)connect(s2, (struct sockaddr *)&a, strlen(son) + 2);
- if (write(s2, "HELLO", 5) == -1)
- kill(getppid(), 3);
- exit(0);
- }
- l = sizeof(a);
- close(0);
- if (accept(s1, &a, &l))
- exit(1);
-#ifdef FD_SET
- FD_SET(0, &f);
-#else
- f = 1;
-#endif
- if (select(1, &f, 0, 0, 0) == -1)
- exit(1);
- exit(0);
-}
-
-_ACEOF
-rm -f conftest$ac_exeext
-if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
- (eval $ac_link) 2>&5
- ac_status=$?
- echo "$as_me:$LINENO: \$? = $ac_status" >&5
- (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
- { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
- (eval $ac_try) 2>&5
- ac_status=$?
- echo "$as_me:$LINENO: \$? = $ac_status" >&5
- (exit $ac_status); }; }; then
- echo "- your sockets are usable" 1>&6
- sock=1
-else
- echo "$as_me: program exited with status $ac_status" >&5
-echo "$as_me: failed program was:" >&5
-sed 's/^/| /' conftest.$ac_ext >&5
-
-( exit $ac_status )
-echo "- your sockets are not usable" 1>&6
-
-fi
-rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
-fi
-rm -f /tmp/conftest*
-
-if test -n "$sock"; then
-{ echo "$as_me:$LINENO: checking socket implementation..." >&5
-echo "$as_me: checking socket implementation..." >&6;}
-if test "$cross_compiling" = yes; then
- { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
-See \`config.log' for more details." >&5
-echo "$as_me: error: cannot run test program while cross compiling
-See \`config.log' for more details." >&2;}
- { (exit 1); exit 1; }; }
-else
- cat >conftest.$ac_ext <<_ACEOF
-#line $LINENO "configure"
-/* confdefs.h. */
-_ACEOF
-cat confdefs.h >>conftest.$ac_ext
-cat >>conftest.$ac_ext <<_ACEOF
-/* end confdefs.h. */
-
-#include <sys/types.h>
-#include <sys/stat.h>
-#include <sys/socket.h>
-#include <sys/un.h>
-
-char *son = "/tmp/conftest$$";
-
-main()
-{
- int s;
- struct stat stb;
- struct sockaddr_un a;
- if ((s = socket(AF_UNIX, SOCK_STREAM, 0)) == -1)
- exit(0);
- a.sun_family = AF_UNIX;
- strcpy(a.sun_path, son);
- (void) unlink(son);
- if (bind(s, (struct sockaddr *) &a, strlen(son)+2) == -1)
- exit(0);
- if (stat(son, &stb))
- exit(1);
- close(s);
- exit(0);
-}
-
-_ACEOF
-rm -f conftest$ac_exeext
-if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
- (eval $ac_link) 2>&5
- ac_status=$?
- echo "$as_me:$LINENO: \$? = $ac_status" >&5
- (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
- { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
- (eval $ac_try) 2>&5
- ac_status=$?
- echo "$as_me:$LINENO: \$? = $ac_status" >&5
- (exit $ac_status); }; }; then
- echo "- you are normal" 1>&6
-
-else
- echo "$as_me: program exited with status $ac_status" >&5
-echo "$as_me: failed program was:" >&5
-sed 's/^/| /' conftest.$ac_ext >&5
-
-( exit $ac_status )
-echo "- unix domain sockets are not kept in the filesystem" 1>&6
-
-cat >>confdefs.h <<\_ACEOF
-#define SOCK_NOT_IN_FS 1
-_ACEOF
- socknofs=1
-fi
-rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
-fi
-rm -f /tmp/conftest*
-fi
-
-
-if test -n "$fifo"; then
- if test -n "$sock"; then
- if test -n "$nore"; then
- echo "- hmmm... better take the fifos" 1>&6
-
- cat >>confdefs.h <<\_ACEOF
-#define NAMEDPIPE 1
-_ACEOF
-
- elif test -n "$fifobr"; then
- echo "- as your fifos are broken lets use the sockets." 1>&6
-
- else
- echo "- both sockets and fifos usable. let's take fifos." 1>&6
-
- cat >>confdefs.h <<\_ACEOF
-#define NAMEDPIPE 1
-_ACEOF
-
- fi
- else
- echo "- using named pipes" 1>&6
-
- cat >>confdefs.h <<\_ACEOF
-#define NAMEDPIPE 1
-_ACEOF
-
- fi
-elif test -n "$sock"; then
- echo "- using unix-domain sockets" 1>&6
-
-else
- { { echo "$as_me:$LINENO: error: you have neither usable sockets nor usable pipes -> no screen" >&5
-echo "$as_me: error: you have neither usable sockets nor usable pipes -> no screen" >&2;}
- { (exit 1); exit 1; }; }
-fi
-
-
-{ echo "$as_me:$LINENO: checking select return value..." >&5
-echo "$as_me: checking select return value..." >&6;}
-if test "$cross_compiling" = yes; then
- { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
-See \`config.log' for more details." >&5
-echo "$as_me: error: cannot run test program while cross compiling
-See \`config.log' for more details." >&2;}
- { (exit 1); exit 1; }; }
-else
- cat >conftest.$ac_ext <<_ACEOF
-#line $LINENO "configure"
-/* confdefs.h. */
-_ACEOF
-cat confdefs.h >>conftest.$ac_ext
-cat >>conftest.$ac_ext <<_ACEOF
-/* end confdefs.h. */
-
-#include <sys/types.h>
-#include <sys/stat.h>
-#include <fcntl.h>
-
-char *nam = "/tmp/conftest$$";
-
-#ifdef NAMEDPIPE
-
-#ifndef O_NONBLOCK
-#define O_NONBLOCK O_NDELAY
-#endif
-#ifndef S_IFIFO
-#define S_IFIFO 0010000
-#endif
-
-
-main()
-{
-#ifdef FD_SET
- fd_set f;
-#else
- int f;
-#endif
-
-#ifdef __FreeBSD__
-/* From Andrew A. Chernov (ache@astral.msk.su):
- * opening RDWR fifo fails in BSD 4.4, but select return values are
- * right.
- */
- exit(0);
-#endif
- (void)alarm(5);
-#ifdef POSIX
- if (mkfifo(nam, 0777))
-#else
- if (mknod(nam, S_IFIFO|0777, 0))
-#endif
- exit(1);
- close(0);
- if (open(nam, O_RDWR | O_NONBLOCK))
- exit(1);
- if (write(0, "TEST", 4) == -1)
- exit(1);
-
-#else
-
-#include <sys/types.h>
-#include <sys/socket.h>
-#include <sys/un.h>
-
-main()
-{
- int s1, s2, l;
- struct sockaddr_un a;
-#ifdef FD_SET
- fd_set f;
-#else
- int f;
-#endif
-
- (void)alarm(5);
- if ((s1 = socket(AF_UNIX, SOCK_STREAM, 0)) == -1)
- exit(1);
- a.sun_family = AF_UNIX;
- strcpy(a.sun_path, nam);
- (void) unlink(nam);
- if (bind(s1, (struct sockaddr *) &a, strlen(nam)+2) == -1)
- exit(1);
- if (listen(s1, 2))
- exit(1);
- if (fork() == 0)
- {
- if ((s2 = socket(AF_UNIX, SOCK_STREAM, 0)) == -1)
- kill(getppid(), 3);
- (void)connect(s2, (struct sockaddr *)&a, strlen(nam) + 2);
- if (write(s2, "HELLO", 5) == -1)
- kill(getppid(), 3);
- exit(0);
- }
- l = sizeof(a);
- close(0);
- if (accept(s1, (struct sockaddr *)&a, &l))
- exit(1);
-#endif
-
-
-#ifdef FD_SET
- FD_SET(0, &f);
-#else
- f = 1;
-#endif
- if (select(1, &f, 0, 0, 0) == -1)
- exit(1);
- if (select(1, &f, &f, 0, 0) != 2)
- exit(1);
- exit(0);
-}
-
-_ACEOF
-rm -f conftest$ac_exeext
-if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
- (eval $ac_link) 2>&5
- ac_status=$?
- echo "$as_me:$LINENO: \$? = $ac_status" >&5
- (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
- { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
- (eval $ac_try) 2>&5
- ac_status=$?
- echo "$as_me:$LINENO: \$? = $ac_status" >&5
- (exit $ac_status); }; }; then
- echo "- select is ok" 1>&6
-
-else
- echo "$as_me: program exited with status $ac_status" >&5
-echo "$as_me: failed program was:" >&5
-sed 's/^/| /' conftest.$ac_ext >&5
-
-( exit $ac_status )
-echo "- select can't count" 1>&6
- cat >>confdefs.h <<\_ACEOF
-#define SELECT_BROKEN 1
-_ACEOF
-
-fi
-rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
-fi
-
-{ echo "$as_me:$LINENO: checking for tgetent..." >&5
-echo "$as_me: checking for tgetent..." >&6;}
-cat >conftest.$ac_ext <<_ACEOF
-#line $LINENO "configure"
-/* confdefs.h. */
-_ACEOF
-cat confdefs.h >>conftest.$ac_ext
-cat >>conftest.$ac_ext <<_ACEOF
-/* end confdefs.h. */
-
-int
-main ()
-{
-tgetent((char *)0, (char *)0);
- ;
- return 0;
-}
-_ACEOF
-rm -f conftest.$ac_objext conftest$ac_exeext
-if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
- (eval $ac_link) 2>&5
- ac_status=$?
- echo "$as_me:$LINENO: \$? = $ac_status" >&5
- (exit $ac_status); } &&
- { ac_try='test -s conftest$ac_exeext'
- { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
- (eval $ac_try) 2>&5
- ac_status=$?
- echo "$as_me:$LINENO: \$? = $ac_status" >&5
- (exit $ac_status); }; }; then
- :
-else
- echo "$as_me: failed program was:" >&5
-sed 's/^/| /' conftest.$ac_ext >&5
-
-olibs="$LIBS"
-LIBS="-lcurses $olibs"
-{ echo "$as_me:$LINENO: checking libcurses..." >&5
-echo "$as_me: checking libcurses..." >&6;}
-cat >conftest.$ac_ext <<_ACEOF
-#line $LINENO "configure"
-/* confdefs.h. */
-_ACEOF
-cat confdefs.h >>conftest.$ac_ext
-cat >>conftest.$ac_ext <<_ACEOF
-/* end confdefs.h. */
-
-int
-main ()
-{
-
-#ifdef __hpux
-__sorry_hpux_libcurses_is_totally_broken_in_10_10();
-#else
-tgetent((char *)0, (char *)0);
-#endif
-
- ;
- return 0;
-}
-_ACEOF
-rm -f conftest.$ac_objext conftest$ac_exeext
-if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
- (eval $ac_link) 2>&5
- ac_status=$?
- echo "$as_me:$LINENO: \$? = $ac_status" >&5
- (exit $ac_status); } &&
- { ac_try='test -s conftest$ac_exeext'
- { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
- (eval $ac_try) 2>&5
- ac_status=$?
- echo "$as_me:$LINENO: \$? = $ac_status" >&5
- (exit $ac_status); }; }; then
- :
-else
- echo "$as_me: failed program was:" >&5
-sed 's/^/| /' conftest.$ac_ext >&5
-
-LIBS="-ltermcap $olibs"
-{ echo "$as_me:$LINENO: checking libtermcap..." >&5
-echo "$as_me: checking libtermcap..." >&6;}
-cat >conftest.$ac_ext <<_ACEOF
-#line $LINENO "configure"
-/* confdefs.h. */
-_ACEOF
-cat confdefs.h >>conftest.$ac_ext
-cat >>conftest.$ac_ext <<_ACEOF
-/* end confdefs.h. */
-
-int
-main ()
-{
-tgetent((char *)0, (char *)0);
- ;
- return 0;
-}
-_ACEOF
-rm -f conftest.$ac_objext conftest$ac_exeext
-if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
- (eval $ac_link) 2>&5
- ac_status=$?
- echo "$as_me:$LINENO: \$? = $ac_status" >&5
- (exit $ac_status); } &&
- { ac_try='test -s conftest$ac_exeext'
- { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
- (eval $ac_try) 2>&5
- ac_status=$?
- echo "$as_me:$LINENO: \$? = $ac_status" >&5
- (exit $ac_status); }; }; then
- :
-else
- echo "$as_me: failed program was:" >&5
-sed 's/^/| /' conftest.$ac_ext >&5
-
-LIBS="-ltermlib $olibs"
-{ echo "$as_me:$LINENO: checking libtermlib..." >&5
-echo "$as_me: checking libtermlib..." >&6;}
-cat >conftest.$ac_ext <<_ACEOF
-#line $LINENO "configure"
-/* confdefs.h. */
-_ACEOF
-cat confdefs.h >>conftest.$ac_ext
-cat >>conftest.$ac_ext <<_ACEOF
-/* end confdefs.h. */
-
-int
-main ()
-{
-tgetent((char *)0, (char *)0);
- ;
- return 0;
-}
-_ACEOF
-rm -f conftest.$ac_objext conftest$ac_exeext
-if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
- (eval $ac_link) 2>&5
- ac_status=$?
- echo "$as_me:$LINENO: \$? = $ac_status" >&5
- (exit $ac_status); } &&
- { ac_try='test -s conftest$ac_exeext'
- { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
- (eval $ac_try) 2>&5
- ac_status=$?
- echo "$as_me:$LINENO: \$? = $ac_status" >&5
- (exit $ac_status); }; }; then
- :
-else
- echo "$as_me: failed program was:" >&5
-sed 's/^/| /' conftest.$ac_ext >&5
-
-LIBS="-lncurses $olibs"
-{ echo "$as_me:$LINENO: checking libncurses..." >&5
-echo "$as_me: checking libncurses..." >&6;}
-cat >conftest.$ac_ext <<_ACEOF
-#line $LINENO "configure"
-/* confdefs.h. */
-_ACEOF
-cat confdefs.h >>conftest.$ac_ext
-cat >>conftest.$ac_ext <<_ACEOF
-/* end confdefs.h. */
-
-int
-main ()
-{
-tgetent((char *)0, (char *)0);
- ;
- return 0;
-}
-_ACEOF
-rm -f conftest.$ac_objext conftest$ac_exeext
-if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
- (eval $ac_link) 2>&5
- ac_status=$?
- echo "$as_me:$LINENO: \$? = $ac_status" >&5
- (exit $ac_status); } &&
- { ac_try='test -s conftest$ac_exeext'
- { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
- (eval $ac_try) 2>&5
- ac_status=$?
- echo "$as_me:$LINENO: \$? = $ac_status" >&5
- (exit $ac_status); }; }; then
- :
-else
- echo "$as_me: failed program was:" >&5
-sed 's/^/| /' conftest.$ac_ext >&5
-
-{ { echo "$as_me:$LINENO: error: !!! no tgetent - no screen" >&5
-echo "$as_me: error: !!! no tgetent - no screen" >&2;}
- { (exit 1); exit 1; }; }
-fi
-rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
-fi
-rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
-fi
-rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
-fi
-rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
-fi
-rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
-
-if test "$cross_compiling" = yes; then
- { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
-See \`config.log' for more details." >&5
-echo "$as_me: error: cannot run test program while cross compiling
-See \`config.log' for more details." >&2;}
- { (exit 1); exit 1; }; }
-else
- cat >conftest.$ac_ext <<_ACEOF
-#line $LINENO "configure"
-/* confdefs.h. */
-_ACEOF
-cat confdefs.h >>conftest.$ac_ext
-cat >>conftest.$ac_ext <<_ACEOF
-/* end confdefs.h. */
-
-main()
-{
- exit(strcmp(tgoto("%p1%d", 0, 1), "1") ? 0 : 1);
-}
-_ACEOF
-rm -f conftest$ac_exeext
-if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
- (eval $ac_link) 2>&5
- ac_status=$?
- echo "$as_me:$LINENO: \$? = $ac_status" >&5
- (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
- { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
- (eval $ac_try) 2>&5
- ac_status=$?
- echo "$as_me:$LINENO: \$? = $ac_status" >&5
- (exit $ac_status); }; }; then
- echo "- you use the termcap database" 1>&6
-
-else
- echo "$as_me: program exited with status $ac_status" >&5
-echo "$as_me: failed program was:" >&5
-sed 's/^/| /' conftest.$ac_ext >&5
-
-( exit $ac_status )
-echo "- you use the terminfo database" 1>&6
- cat >>confdefs.h <<\_ACEOF
-#define TERMINFO 1
-_ACEOF
-
-fi
-rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
-fi
-{ echo "$as_me:$LINENO: checking ospeed..." >&5
-echo "$as_me: checking ospeed..." >&6;}
-cat >conftest.$ac_ext <<_ACEOF
-#line $LINENO "configure"
-/* confdefs.h. */
-_ACEOF
-cat confdefs.h >>conftest.$ac_ext
-cat >>conftest.$ac_ext <<_ACEOF
-/* end confdefs.h. */
-extern short ospeed;
-int
-main ()
-{
-ospeed=5;
- ;
- return 0;
-}
-_ACEOF
-rm -f conftest.$ac_objext conftest$ac_exeext
-if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
- (eval $ac_link) 2>&5
- ac_status=$?
- echo "$as_me:$LINENO: \$? = $ac_status" >&5
- (exit $ac_status); } &&
- { ac_try='test -s conftest$ac_exeext'
- { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
- (eval $ac_try) 2>&5
- ac_status=$?
- echo "$as_me:$LINENO: \$? = $ac_status" >&5
- (exit $ac_status); }; }; then
- :
-else
- echo "$as_me: failed program was:" >&5
-sed 's/^/| /' conftest.$ac_ext >&5
-
-cat >>confdefs.h <<\_ACEOF
-#define NEED_OSPEED 1
-_ACEOF
-
-fi
-rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
-
-{ echo "$as_me:$LINENO: checking for /dev/ptc..." >&5
-echo "$as_me: checking for /dev/ptc..." >&6;}
-if test -r /dev/ptc; then
-cat >>confdefs.h <<\_ACEOF
-#define HAVE_DEV_PTC 1
-_ACEOF
-
-fi
-
-{ echo "$as_me:$LINENO: checking for SVR4 ptys..." >&5
-echo "$as_me: checking for SVR4 ptys..." >&6;}
-sysvr4ptys=
-if test -c /dev/ptmx ; then
-cat >conftest.$ac_ext <<_ACEOF
-#line $LINENO "configure"
-/* confdefs.h. */
-_ACEOF
-cat confdefs.h >>conftest.$ac_ext
-cat >>conftest.$ac_ext <<_ACEOF
-/* end confdefs.h. */
-
-int
-main ()
-{
-ptsname(0);grantpt(0);unlockpt(0);
- ;
- return 0;
-}
-_ACEOF
-rm -f conftest.$ac_objext conftest$ac_exeext
-if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
- (eval $ac_link) 2>&5
- ac_status=$?
- echo "$as_me:$LINENO: \$? = $ac_status" >&5
- (exit $ac_status); } &&
- { ac_try='test -s conftest$ac_exeext'
- { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
- (eval $ac_try) 2>&5
- ac_status=$?
- echo "$as_me:$LINENO: \$? = $ac_status" >&5
- (exit $ac_status); }; }; then
- cat >>confdefs.h <<\_ACEOF
-#define HAVE_SVR4_PTYS 1
-_ACEOF
-
-sysvr4ptys=1
-else
- echo "$as_me: failed program was:" >&5
-sed 's/^/| /' conftest.$ac_ext >&5
-
-fi
-rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
-fi
-
-
-for ac_func in getpt
-do
-as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
-echo "$as_me:$LINENO: checking for $ac_func" >&5
-echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
-if eval "test \"\${$as_ac_var+set}\" = set"; then
- echo $ECHO_N "(cached) $ECHO_C" >&6
-else
- cat >conftest.$ac_ext <<_ACEOF
-#line $LINENO "configure"
-/* confdefs.h. */
-_ACEOF
-cat confdefs.h >>conftest.$ac_ext
-cat >>conftest.$ac_ext <<_ACEOF
-/* end confdefs.h. */
-/* System header to define __stub macros and hopefully few prototypes,
- which can conflict with char $ac_func (); below.
- Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
- <limits.h> exists even on freestanding compilers. */
-#ifdef __STDC__
-# include <limits.h>
-#else
-# include <assert.h>
-#endif
-/* Override any gcc2 internal prototype to avoid an error. */
-#ifdef __cplusplus
-extern "C"
-{
-#endif
-/* We use char because int might match the return type of a gcc2
- builtin and then its argument prototype would still apply. */
-char $ac_func ();
-/* The GNU C library defines this for functions which it implements
- to always fail with ENOSYS. Some functions are actually named
- something starting with __ and the normal name is an alias. */
-#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
-choke me
-#else
-char (*f) () = $ac_func;
-#endif
-#ifdef __cplusplus
-}
-#endif
-
-int
-main ()
-{
-return f != $ac_func;
- ;
- return 0;
-}
-_ACEOF
-rm -f conftest.$ac_objext conftest$ac_exeext
-if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
- (eval $ac_link) 2>&5
- ac_status=$?
- echo "$as_me:$LINENO: \$? = $ac_status" >&5
- (exit $ac_status); } &&
- { ac_try='test -s conftest$ac_exeext'
- { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
- (eval $ac_try) 2>&5
- ac_status=$?
- echo "$as_me:$LINENO: \$? = $ac_status" >&5
- (exit $ac_status); }; }; then
- eval "$as_ac_var=yes"
-else
- echo "$as_me: failed program was:" >&5
-sed 's/^/| /' conftest.$ac_ext >&5
-
-eval "$as_ac_var=no"
-fi
-rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
-fi
-echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
-echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
-if test `eval echo '${'$as_ac_var'}'` = yes; then
- cat >>confdefs.h <<_ACEOF
-#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
-_ACEOF
-
-fi
-done
-
-
-if test -z "$sysvr4ptys"; then
-
-for ac_func in openpty
-do
-as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
-echo "$as_me:$LINENO: checking for $ac_func" >&5
-echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
-if eval "test \"\${$as_ac_var+set}\" = set"; then
- echo $ECHO_N "(cached) $ECHO_C" >&6
-else
- cat >conftest.$ac_ext <<_ACEOF
-#line $LINENO "configure"
-/* confdefs.h. */
-_ACEOF
-cat confdefs.h >>conftest.$ac_ext
-cat >>conftest.$ac_ext <<_ACEOF
-/* end confdefs.h. */
-/* System header to define __stub macros and hopefully few prototypes,
- which can conflict with char $ac_func (); below.
- Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
- <limits.h> exists even on freestanding compilers. */
-#ifdef __STDC__
-# include <limits.h>
-#else
-# include <assert.h>
-#endif
-/* Override any gcc2 internal prototype to avoid an error. */
-#ifdef __cplusplus
-extern "C"
-{
-#endif
-/* We use char because int might match the return type of a gcc2
- builtin and then its argument prototype would still apply. */
-char $ac_func ();
-/* The GNU C library defines this for functions which it implements
- to always fail with ENOSYS. Some functions are actually named
- something starting with __ and the normal name is an alias. */
-#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
-choke me
-#else
-char (*f) () = $ac_func;
-#endif
-#ifdef __cplusplus
-}
-#endif
-
-int
-main ()
-{
-return f != $ac_func;
- ;
- return 0;
-}
-_ACEOF
-rm -f conftest.$ac_objext conftest$ac_exeext
-if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
- (eval $ac_link) 2>&5
- ac_status=$?
- echo "$as_me:$LINENO: \$? = $ac_status" >&5
- (exit $ac_status); } &&
- { ac_try='test -s conftest$ac_exeext'
- { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
- (eval $ac_try) 2>&5
- ac_status=$?
- echo "$as_me:$LINENO: \$? = $ac_status" >&5
- (exit $ac_status); }; }; then
- eval "$as_ac_var=yes"
-else
- echo "$as_me: failed program was:" >&5
-sed 's/^/| /' conftest.$ac_ext >&5
-
-eval "$as_ac_var=no"
-fi
-rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
-fi
-echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
-echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
-if test `eval echo '${'$as_ac_var'}'` = yes; then
- cat >>confdefs.h <<_ACEOF
-#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
-_ACEOF
-
-else
- echo "$as_me:$LINENO: checking for openpty in -lutil" >&5
-echo $ECHO_N "checking for openpty in -lutil... $ECHO_C" >&6
-if test "${ac_cv_lib_util_openpty+set}" = set; then
- echo $ECHO_N "(cached) $ECHO_C" >&6
-else
- ac_check_lib_save_LIBS=$LIBS
-LIBS="-lutil $LIBS"
-cat >conftest.$ac_ext <<_ACEOF
-#line $LINENO "configure"
-/* confdefs.h. */
-_ACEOF
-cat confdefs.h >>conftest.$ac_ext
-cat >>conftest.$ac_ext <<_ACEOF
-/* end confdefs.h. */
-
-/* Override any gcc2 internal prototype to avoid an error. */
-#ifdef __cplusplus
-extern "C"
-#endif
-/* We use char because int might match the return type of a gcc2
- builtin and then its argument prototype would still apply. */
-char openpty ();
-int
-main ()
-{
-openpty ();
- ;
- return 0;
-}
-_ACEOF
-rm -f conftest.$ac_objext conftest$ac_exeext
-if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
- (eval $ac_link) 2>&5
- ac_status=$?
- echo "$as_me:$LINENO: \$? = $ac_status" >&5
- (exit $ac_status); } &&
- { ac_try='test -s conftest$ac_exeext'
- { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
- (eval $ac_try) 2>&5
- ac_status=$?
- echo "$as_me:$LINENO: \$? = $ac_status" >&5
- (exit $ac_status); }; }; then
- ac_cv_lib_util_openpty=yes
-else
- echo "$as_me: failed program was:" >&5
-sed 's/^/| /' conftest.$ac_ext >&5
-
-ac_cv_lib_util_openpty=no
-fi
-rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
-LIBS=$ac_check_lib_save_LIBS
-fi
-echo "$as_me:$LINENO: result: $ac_cv_lib_util_openpty" >&5
-echo "${ECHO_T}$ac_cv_lib_util_openpty" >&6
-if test $ac_cv_lib_util_openpty = yes; then
- cat >>confdefs.h <<\_ACEOF
-#define HAVE_OPENPTY 1
-_ACEOF
- LIBS="$LIBS -lutil"
-fi
-
-fi
-done
-
-fi
-
-{ echo "$as_me:$LINENO: checking for ptyranges..." >&5
-echo "$as_me: checking for ptyranges..." >&6;}
-if test -d /dev/ptym ; then
-pdir='/dev/ptym'
-else
-pdir='/dev'
-fi
-cat >conftest.$ac_ext <<_ACEOF
-#line $LINENO "configure"
-/* confdefs.h. */
-_ACEOF
-cat confdefs.h >>conftest.$ac_ext
-cat >>conftest.$ac_ext <<_ACEOF
-/* end confdefs.h. */
-#ifdef M_UNIX
- yes;
-#endif
-
-_ACEOF
-if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
- $EGREP "yes" >/dev/null 2>&1; then
- ptys=`echo /dev/ptyp??`
-else
- ptys=`echo $pdir/pty??`
-fi
-rm -f conftest*
-
-if test "$ptys" != "$pdir/pty??" ; then
-p0=`echo $ptys | tr ' ' '\012' | sed -e 's/^.*\(.\).$/\1/g' | sort -u | tr -d '\012'`
-p1=`echo $ptys | tr ' ' '\012' | sed -e 's/^.*\(.\)$/\1/g' | sort -u | tr -d '\012'`
-cat >>confdefs.h <<_ACEOF
-#define PTYRANGE0 "$p0"
-_ACEOF
-
-cat >>confdefs.h <<_ACEOF
-#define PTYRANGE1 "$p1"
-_ACEOF
-
-fi
-
-
-# Check whether --with-pty-mode or --without-pty-mode was given.
-if test "${with_pty_mode+set}" = set; then
- withval="$with_pty_mode"
- ptymode="${withval}"
-fi;
-
-# Check whether --with-pty-group or --without-pty-group was given.
-if test "${with_pty_group+set}" = set; then
- withval="$with_pty_group"
- ptygrp="${withval}"
-fi;
-test -n "$ptymode" || ptymode=0620
-if test -n "$ptygrp" ; then
-cat >>confdefs.h <<_ACEOF
-#define PTYMODE $ptymode
-_ACEOF
-
-cat >>confdefs.h <<_ACEOF
-#define PTYGROUP $ptygrp
-_ACEOF
-
-else
-
-{ echo "$as_me:$LINENO: checking default tty permissions/group..." >&5
-echo "$as_me: checking default tty permissions/group..." >&6;}
-rm -f conftest_grp
-if test "$cross_compiling" = yes; then
- { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
-See \`config.log' for more details." >&5
-echo "$as_me: error: cannot run test program while cross compiling
-See \`config.log' for more details." >&2;}
- { (exit 1); exit 1; }; }
-else
- cat >conftest.$ac_ext <<_ACEOF
-#line $LINENO "configure"
-/* confdefs.h. */
-_ACEOF
-cat confdefs.h >>conftest.$ac_ext
-cat >>conftest.$ac_ext <<_ACEOF
-/* end confdefs.h. */
-
-#include <sys/types.h>
-#include <sys/stat.h>
-#include <stdio.h>
-main()
-{
- struct stat sb;
- char *x,*ttyname();
- int om, m;
- FILE *fp;
-
- if (!(x = ttyname(0))) exit(1);
- if (stat(x, &sb)) exit(1);
- om = sb.st_mode;
- if (om & 002) exit(0);
- m = system("mesg y");
- if (m == -1 || m == 127) exit(1);
- if (stat(x, &sb)) exit(1);
- m = sb.st_mode;
- if (chmod(x, om)) exit(1);
- if (m & 002) exit(0);
- if (sb.st_gid == getgid()) exit(1);
- if (!(fp=fopen("conftest_grp", "w")))
- exit(1);
- fprintf(fp, "%d\n", sb.st_gid);
- fclose(fp);
- exit(0);
-}
-
-_ACEOF
-rm -f conftest$ac_exeext
-if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
- (eval $ac_link) 2>&5
- ac_status=$?
- echo "$as_me:$LINENO: \$? = $ac_status" >&5
- (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
- { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
- (eval $ac_try) 2>&5
- ac_status=$?
- echo "$as_me:$LINENO: \$? = $ac_status" >&5
- (exit $ac_status); }; }; then
-
- if test -f conftest_grp; then
- ptygrp=`cat conftest_grp`
- echo "- pty mode: $ptymode, group: $ptygrp" 1>&6
-
- cat >>confdefs.h <<_ACEOF
-#define PTYMODE $ptymode
-_ACEOF
-
- cat >>confdefs.h <<_ACEOF
-#define PTYGROUP $ptygrp
-_ACEOF
-
- else
- echo "- ptys are world accessable" 1>&6
-
- fi
-
-else
- echo "$as_me: program exited with status $ac_status" >&5
-echo "$as_me: failed program was:" >&5
-sed 's/^/| /' conftest.$ac_ext >&5
-
-( exit $ac_status )
-
- WRITEPATH=''
- XTERMPATH=''
- # Extract the first word of "write", so it can be a program name with args.
-set dummy write; ac_word=$2
-echo "$as_me:$LINENO: checking for $ac_word" >&5
-echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
-if test "${ac_cv_path_WRITEPATH+set}" = set; then
- echo $ECHO_N "(cached) $ECHO_C" >&6
-else
- case $WRITEPATH in
- [\\/]* | ?:[\\/]*)
- ac_cv_path_WRITEPATH="$WRITEPATH" # Let the user override the test with a path.
- ;;
- *)
- as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
-for as_dir in $PATH
-do
- IFS=$as_save_IFS
- test -z "$as_dir" && as_dir=.
- for ac_exec_ext in '' $ac_executable_extensions; do
- if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
- ac_cv_path_WRITEPATH="$as_dir/$ac_word$ac_exec_ext"
- echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
- break 2
- fi
-done
-done
-
- ;;
-esac
-fi
-WRITEPATH=$ac_cv_path_WRITEPATH
-
-if test -n "$WRITEPATH"; then
- echo "$as_me:$LINENO: result: $WRITEPATH" >&5
-echo "${ECHO_T}$WRITEPATH" >&6
-else
- echo "$as_me:$LINENO: result: no" >&5
-echo "${ECHO_T}no" >&6
-fi
-
- # Extract the first word of "xterm", so it can be a program name with args.
-set dummy xterm; ac_word=$2
-echo "$as_me:$LINENO: checking for $ac_word" >&5
-echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
-if test "${ac_cv_path_XTERMPATH+set}" = set; then
- echo $ECHO_N "(cached) $ECHO_C" >&6
-else
- case $XTERMPATH in
- [\\/]* | ?:[\\/]*)
- ac_cv_path_XTERMPATH="$XTERMPATH" # Let the user override the test with a path.
- ;;
- *)
- as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
-for as_dir in $PATH
-do
- IFS=$as_save_IFS
- test -z "$as_dir" && as_dir=.
- for ac_exec_ext in '' $ac_executable_extensions; do
- if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
- ac_cv_path_XTERMPATH="$as_dir/$ac_word$ac_exec_ext"
- echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
- break 2
- fi
-done
-done
-
- ;;
-esac
-fi
-XTERMPATH=$ac_cv_path_XTERMPATH
-
-if test -n "$XTERMPATH"; then
- echo "$as_me:$LINENO: result: $XTERMPATH" >&5
-echo "${ECHO_T}$XTERMPATH" >&6
-else
- echo "$as_me:$LINENO: result: no" >&5
-echo "${ECHO_T}no" >&6
-fi
-
- found=
- if test -n "$WRITEPATH$XTERMPATH"; then
- findfollow=
- lsfollow=
- found=`find $WRITEPATH $XTERMPATH -follow -print 2>/dev/null`
- if test -n "$found"; then
- findfollow=-follow
- lsfollow=L
- fi
- if test -n "$XTERMPATH"; then
- ptygrpn=`ls -l$lsfollow $XTERMPATH | sed -n -e 1p | $AWK '{print $4}'`
- if test tty != "$ptygrpn"; then
- XTERMPATH=
- fi
- fi
- fi
- if test -n "$WRITEPATH$XTERMPATH"; then
- found=`find $WRITEPATH $XTERMPATH $findfollow -perm -2000 -print`
- if test -n "$found"; then
- ptygrp=`ls -ln$lsfollow $found | sed -n -e 1p | $AWK '{print $4}'`
- echo "- pty mode: $ptymode, group: $ptygrp" 1>&6
-
- cat >>confdefs.h <<_ACEOF
-#define PTYMODE $ptymode
-_ACEOF
-
- cat >>confdefs.h <<_ACEOF
-#define PTYGROUP $ptygrp
-_ACEOF
-
- else
- echo "- ptys are world accessable" 1>&6
-
- fi
- else
- echo "- can't determine - assume ptys are world accessable" 1>&6
-
- fi
-
-
-fi
-rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
-fi
-rm -f conftest_grp
-fi
-
-{ echo "$as_me:$LINENO: checking getutent..." >&5
-echo "$as_me: checking getutent..." >&6;}
-cat >conftest.$ac_ext <<_ACEOF
-#line $LINENO "configure"
-/* confdefs.h. */
-_ACEOF
-cat confdefs.h >>conftest.$ac_ext
-cat >>conftest.$ac_ext <<_ACEOF
-/* end confdefs.h. */
-
-#include <time.h> /* to get time_t on SCO */
-#include <sys/types.h>
-#if defined(SVR4) && !defined(DGUX)
-#include <utmpx.h>
-#define utmp utmpx
-#else
-#include <utmp.h>
-#endif
-#ifdef __hpux
-#define pututline _pututline
-#endif
-
-int
-main ()
-{
-int x = DEAD_PROCESS; pututline((struct utmp *)0); getutent();
- ;
- return 0;
-}
-_ACEOF
-rm -f conftest.$ac_objext conftest$ac_exeext
-if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
- (eval $ac_link) 2>&5
- ac_status=$?
- echo "$as_me:$LINENO: \$? = $ac_status" >&5
- (exit $ac_status); } &&
- { ac_try='test -s conftest$ac_exeext'
- { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
- (eval $ac_try) 2>&5
- ac_status=$?
- echo "$as_me:$LINENO: \$? = $ac_status" >&5
- (exit $ac_status); }; }; then
- cat >>confdefs.h <<\_ACEOF
-#define GETUTENT 1
-_ACEOF
-
-else
- echo "$as_me: failed program was:" >&5
-sed 's/^/| /' conftest.$ac_ext >&5
-
-olibs="$LIBS"
-LIBS="$LIBS -lgen"
-{ echo "$as_me:$LINENO: checking getutent with -lgen..." >&5
-echo "$as_me: checking getutent with -lgen..." >&6;}
-cat >conftest.$ac_ext <<_ACEOF
-#line $LINENO "configure"
-/* confdefs.h. */
-_ACEOF
-cat confdefs.h >>conftest.$ac_ext
-cat >>conftest.$ac_ext <<_ACEOF
-/* end confdefs.h. */
-
-#include <time.h>
-#include <sys/types.h>
-#if defined(SVR4) && !defined(DGUX)
-#include <utmpx.h>
-#define utmp utmpx
-#else
-#include <utmp.h>
-#endif
-#ifdef __hpux
-#define pututline _pututline
-#endif
-
-int
-main ()
-{
-int x = DEAD_PROCESS; pututline((struct utmp *)0); getutent();
- ;
- return 0;
-}
-_ACEOF
-rm -f conftest.$ac_objext conftest$ac_exeext
-if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
- (eval $ac_link) 2>&5
- ac_status=$?
- echo "$as_me:$LINENO: \$? = $ac_status" >&5
- (exit $ac_status); } &&
- { ac_try='test -s conftest$ac_exeext'
- { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
- (eval $ac_try) 2>&5
- ac_status=$?
- echo "$as_me:$LINENO: \$? = $ac_status" >&5
- (exit $ac_status); }; }; then
- cat >>confdefs.h <<\_ACEOF
-#define GETUTENT 1
-_ACEOF
-
-else
- echo "$as_me: failed program was:" >&5
-sed 's/^/| /' conftest.$ac_ext >&5
-
-LIBS="$olibs"
-fi
-rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
-
-fi
-rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
-{ echo "$as_me:$LINENO: checking ut_host..." >&5
-echo "$as_me: checking ut_host..." >&6;}
-cat >conftest.$ac_ext <<_ACEOF
-#line $LINENO "configure"
-/* confdefs.h. */
-_ACEOF
-cat confdefs.h >>conftest.$ac_ext
-cat >>conftest.$ac_ext <<_ACEOF
-/* end confdefs.h. */
-
-#include <time.h>
-#include <sys/types.h>
-#if defined(SVR4) && !defined(DGUX)
-#include <utmpx.h>
-#define utmp utmpx
-#else
-#include <utmp.h>
-#endif
-
-int
-main ()
-{
-struct utmp u; u.ut_host[0] = 0;
- ;
- return 0;
-}
-_ACEOF
-rm -f conftest.$ac_objext
-if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
- (eval $ac_compile) 2>&5
- ac_status=$?
- echo "$as_me:$LINENO: \$? = $ac_status" >&5
- (exit $ac_status); } &&
- { ac_try='test -s conftest.$ac_objext'
- { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
- (eval $ac_try) 2>&5
- ac_status=$?
- echo "$as_me:$LINENO: \$? = $ac_status" >&5
- (exit $ac_status); }; }; then
- cat >>confdefs.h <<\_ACEOF
-#define UTHOST 1
-_ACEOF
-
-else
- echo "$as_me: failed program was:" >&5
-sed 's/^/| /' conftest.$ac_ext >&5
-
-fi
-rm -f conftest.$ac_objext conftest.$ac_ext
-if test "${ac_cv_header_utempter_h+set}" = set; then
- echo "$as_me:$LINENO: checking for utempter.h" >&5
-echo $ECHO_N "checking for utempter.h... $ECHO_C" >&6
-if test "${ac_cv_header_utempter_h+set}" = set; then
- echo $ECHO_N "(cached) $ECHO_C" >&6
-fi
-echo "$as_me:$LINENO: result: $ac_cv_header_utempter_h" >&5
-echo "${ECHO_T}$ac_cv_header_utempter_h" >&6
-else
- # Is the header compilable?
-echo "$as_me:$LINENO: checking utempter.h usability" >&5
-echo $ECHO_N "checking utempter.h usability... $ECHO_C" >&6
-cat >conftest.$ac_ext <<_ACEOF
-#line $LINENO "configure"
-/* confdefs.h. */
-_ACEOF
-cat confdefs.h >>conftest.$ac_ext
-cat >>conftest.$ac_ext <<_ACEOF
-/* end confdefs.h. */
-$ac_includes_default
-#include <utempter.h>
-_ACEOF
-rm -f conftest.$ac_objext
-if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
- (eval $ac_compile) 2>&5
- ac_status=$?
- echo "$as_me:$LINENO: \$? = $ac_status" >&5
- (exit $ac_status); } &&
- { ac_try='test -s conftest.$ac_objext'
- { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
- (eval $ac_try) 2>&5
- ac_status=$?
- echo "$as_me:$LINENO: \$? = $ac_status" >&5
- (exit $ac_status); }; }; then
- ac_header_compiler=yes
-else
- echo "$as_me: failed program was:" >&5
-sed 's/^/| /' conftest.$ac_ext >&5
-
-ac_header_compiler=no
-fi
-rm -f conftest.$ac_objext conftest.$ac_ext
-echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
-echo "${ECHO_T}$ac_header_compiler" >&6
-
-# Is the header present?
-echo "$as_me:$LINENO: checking utempter.h presence" >&5
-echo $ECHO_N "checking utempter.h presence... $ECHO_C" >&6
-cat >conftest.$ac_ext <<_ACEOF
-#line $LINENO "configure"
-/* confdefs.h. */
-_ACEOF
-cat confdefs.h >>conftest.$ac_ext
-cat >>conftest.$ac_ext <<_ACEOF
-/* end confdefs.h. */
-#include <utempter.h>
-_ACEOF
-if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
- (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
- ac_status=$?
- grep -v '^ *+' conftest.er1 >conftest.err
- rm -f conftest.er1
- cat conftest.err >&5
- echo "$as_me:$LINENO: \$? = $ac_status" >&5
- (exit $ac_status); } >/dev/null; then
- if test -s conftest.err; then
- ac_cpp_err=$ac_c_preproc_warn_flag
- else
- ac_cpp_err=
- fi
-else
- ac_cpp_err=yes
-fi
-if test -z "$ac_cpp_err"; then
- ac_header_preproc=yes
-else
- echo "$as_me: failed program was:" >&5
-sed 's/^/| /' conftest.$ac_ext >&5
-
- ac_header_preproc=no
-fi
-rm -f conftest.err conftest.$ac_ext
-echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
-echo "${ECHO_T}$ac_header_preproc" >&6
-
-# So? What about this header?
-case $ac_header_compiler:$ac_header_preproc in
- yes:no )
- { echo "$as_me:$LINENO: WARNING: utempter.h: accepted by the compiler, rejected by the preprocessor!" >&5
-echo "$as_me: WARNING: utempter.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
- { echo "$as_me:$LINENO: WARNING: utempter.h: proceeding with the preprocessor's result" >&5
-echo "$as_me: WARNING: utempter.h: proceeding with the preprocessor's result" >&2;}
- (
- cat <<\_ASBOX
-## ------------------------------------ ##
-## Report this to bug-autoconf@gnu.org. ##
-## ------------------------------------ ##
-_ASBOX
- ) |
- sed "s/^/$as_me: WARNING: /" >&2
- ;;
- no:yes )
- { echo "$as_me:$LINENO: WARNING: utempter.h: present but cannot be compiled" >&5
-echo "$as_me: WARNING: utempter.h: present but cannot be compiled" >&2;}
- { echo "$as_me:$LINENO: WARNING: utempter.h: check for missing prerequisite headers?" >&5
-echo "$as_me: WARNING: utempter.h: check for missing prerequisite headers?" >&2;}
- { echo "$as_me:$LINENO: WARNING: utempter.h: proceeding with the preprocessor's result" >&5
-echo "$as_me: WARNING: utempter.h: proceeding with the preprocessor's result" >&2;}
- (
- cat <<\_ASBOX
-## ------------------------------------ ##
-## Report this to bug-autoconf@gnu.org. ##
-## ------------------------------------ ##
-_ASBOX
- ) |
- sed "s/^/$as_me: WARNING: /" >&2
- ;;
-esac
-echo "$as_me:$LINENO: checking for utempter.h" >&5
-echo $ECHO_N "checking for utempter.h... $ECHO_C" >&6
-if test "${ac_cv_header_utempter_h+set}" = set; then
- echo $ECHO_N "(cached) $ECHO_C" >&6
-else
- ac_cv_header_utempter_h=$ac_header_preproc
-fi
-echo "$as_me:$LINENO: result: $ac_cv_header_utempter_h" >&5
-echo "${ECHO_T}$ac_cv_header_utempter_h" >&6
-
-fi
-if test $ac_cv_header_utempter_h = yes; then
- have_utempter=yes
-else
- have_utempter=no
-fi
-
-
-if test "$have_utempter" = yes; then
- cat >>confdefs.h <<\_ACEOF
-#define HAVE_UTEMPTER 1
-_ACEOF
-
- LIBS="$LIBS -lutempter"
-fi
-
-{ echo "$as_me:$LINENO: checking for libutil(s)..." >&5
-echo "$as_me: checking for libutil(s)..." >&6;}
-test -f /usr/lib/libutils.a && LIBS="$LIBS -lutils"
-test -f /usr/lib/libutil.a && LIBS="$LIBS -lutil"
-
-{ echo "$as_me:$LINENO: checking getloadavg..." >&5
-echo "$as_me: checking getloadavg..." >&6;}
-cat >conftest.$ac_ext <<_ACEOF
-#line $LINENO "configure"
-/* confdefs.h. */
-_ACEOF
-cat confdefs.h >>conftest.$ac_ext
-cat >>conftest.$ac_ext <<_ACEOF
-/* end confdefs.h. */
-
-int
-main ()
-{
-getloadavg((double *)0, 0);
- ;
- return 0;
-}
-_ACEOF
-rm -f conftest.$ac_objext conftest$ac_exeext
-if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
- (eval $ac_link) 2>&5
- ac_status=$?
- echo "$as_me:$LINENO: \$? = $ac_status" >&5
- (exit $ac_status); } &&
- { ac_try='test -s conftest$ac_exeext'
- { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
- (eval $ac_try) 2>&5
- ac_status=$?
- echo "$as_me:$LINENO: \$? = $ac_status" >&5
- (exit $ac_status); }; }; then
- cat >>confdefs.h <<\_ACEOF
-#define LOADAV_GETLOADAVG 1
-_ACEOF
- load=1
-else
- echo "$as_me: failed program was:" >&5
-sed 's/^/| /' conftest.$ac_ext >&5
-
-if test -f /usr/lib/libkvm.a ; then
-olibs="$LIBS"
-LIBS="$LIBS -lkvm"
-{ echo "$as_me:$LINENO: checking getloadavg with -lkvm..." >&5
-echo "$as_me: checking getloadavg with -lkvm..." >&6;}
-cat >conftest.$ac_ext <<_ACEOF
-#line $LINENO "configure"
-/* confdefs.h. */
-_ACEOF
-cat confdefs.h >>conftest.$ac_ext
-cat >>conftest.$ac_ext <<_ACEOF
-/* end confdefs.h. */
-
-int
-main ()
-{
-getloadavg((double *)0, 0);
- ;
- return 0;
-}
-_ACEOF
-rm -f conftest.$ac_objext conftest$ac_exeext
-if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
- (eval $ac_link) 2>&5
- ac_status=$?
- echo "$as_me:$LINENO: \$? = $ac_status" >&5
- (exit $ac_status); } &&
- { ac_try='test -s conftest$ac_exeext'
- { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
- (eval $ac_try) 2>&5
- ac_status=$?
- echo "$as_me:$LINENO: \$? = $ac_status" >&5
- (exit $ac_status); }; }; then
- cat >>confdefs.h <<\_ACEOF
-#define LOADAV_GETLOADAVG 1
-_ACEOF
- load=1
-else
- echo "$as_me: failed program was:" >&5
-sed 's/^/| /' conftest.$ac_ext >&5
-
-LIBS="$olibs"
-fi
-rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
-fi
-
-fi
-rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
-
-if test -z "$load" ; then
-cat >conftest.$ac_ext <<_ACEOF
-#line $LINENO "configure"
-/* confdefs.h. */
-_ACEOF
-cat confdefs.h >>conftest.$ac_ext
-cat >>conftest.$ac_ext <<_ACEOF
-/* end confdefs.h. */
-#if defined(NeXT) || defined(apollo) || defined(linux)
- yes;
-#endif
-
-_ACEOF
-if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
- $EGREP "yes" >/dev/null 2>&1; then
- load=1
-fi
-rm -f conftest*
-
-fi
-if test -z "$load" ; then
-{ echo "$as_me:$LINENO: checking for kernelfile..." >&5
-echo "$as_me: checking for kernelfile..." >&6;}
-for core in /unix /vmunix /dynix /hp-ux /xelos /dev/ksyms /kernel/unix /kernel/genunix /unicos /mach /netbsd /386bsd /dgux /bsd /stand/vmunix; do
- if test -f $core || test -c $core; then
- break
- fi
-done
-if test ! -f $core && test ! -c $core ; then
- echo "- no kernelfile found" 1>&6
-
-else
- echo "- using kernelfile '$core'" 1>&6
-
- if test -r $core ; then
- cat >>confdefs.h <<_ACEOF
-#define LOADAV_UNIX "$core"
-_ACEOF
-
- if test "${ac_cv_header_nlist_h+set}" = set; then
- echo "$as_me:$LINENO: checking for nlist.h" >&5
-echo $ECHO_N "checking for nlist.h... $ECHO_C" >&6
-if test "${ac_cv_header_nlist_h+set}" = set; then
- echo $ECHO_N "(cached) $ECHO_C" >&6
-fi
-echo "$as_me:$LINENO: result: $ac_cv_header_nlist_h" >&5
-echo "${ECHO_T}$ac_cv_header_nlist_h" >&6
-else
- # Is the header compilable?
-echo "$as_me:$LINENO: checking nlist.h usability" >&5
-echo $ECHO_N "checking nlist.h usability... $ECHO_C" >&6
-cat >conftest.$ac_ext <<_ACEOF
-#line $LINENO "configure"
-/* confdefs.h. */
-_ACEOF
-cat confdefs.h >>conftest.$ac_ext
-cat >>conftest.$ac_ext <<_ACEOF
-/* end confdefs.h. */
-$ac_includes_default
-#include <nlist.h>
-_ACEOF
-rm -f conftest.$ac_objext
-if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
- (eval $ac_compile) 2>&5
- ac_status=$?
- echo "$as_me:$LINENO: \$? = $ac_status" >&5
- (exit $ac_status); } &&
- { ac_try='test -s conftest.$ac_objext'
- { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
- (eval $ac_try) 2>&5
- ac_status=$?
- echo "$as_me:$LINENO: \$? = $ac_status" >&5
- (exit $ac_status); }; }; then
- ac_header_compiler=yes
-else
- echo "$as_me: failed program was:" >&5
-sed 's/^/| /' conftest.$ac_ext >&5
-
-ac_header_compiler=no
-fi
-rm -f conftest.$ac_objext conftest.$ac_ext
-echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
-echo "${ECHO_T}$ac_header_compiler" >&6
-
-# Is the header present?
-echo "$as_me:$LINENO: checking nlist.h presence" >&5
-echo $ECHO_N "checking nlist.h presence... $ECHO_C" >&6
-cat >conftest.$ac_ext <<_ACEOF
-#line $LINENO "configure"
-/* confdefs.h. */
-_ACEOF
-cat confdefs.h >>conftest.$ac_ext
-cat >>conftest.$ac_ext <<_ACEOF
-/* end confdefs.h. */
-#include <nlist.h>
-_ACEOF
-if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
- (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
- ac_status=$?
- grep -v '^ *+' conftest.er1 >conftest.err
- rm -f conftest.er1
- cat conftest.err >&5
- echo "$as_me:$LINENO: \$? = $ac_status" >&5
- (exit $ac_status); } >/dev/null; then
- if test -s conftest.err; then
- ac_cpp_err=$ac_c_preproc_warn_flag
- else
- ac_cpp_err=
- fi
-else
- ac_cpp_err=yes
-fi
-if test -z "$ac_cpp_err"; then
- ac_header_preproc=yes
-else
- echo "$as_me: failed program was:" >&5
-sed 's/^/| /' conftest.$ac_ext >&5
-
- ac_header_preproc=no
-fi
-rm -f conftest.err conftest.$ac_ext
-echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
-echo "${ECHO_T}$ac_header_preproc" >&6
-
-# So? What about this header?
-case $ac_header_compiler:$ac_header_preproc in
- yes:no )
- { echo "$as_me:$LINENO: WARNING: nlist.h: accepted by the compiler, rejected by the preprocessor!" >&5
-echo "$as_me: WARNING: nlist.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
- { echo "$as_me:$LINENO: WARNING: nlist.h: proceeding with the preprocessor's result" >&5
-echo "$as_me: WARNING: nlist.h: proceeding with the preprocessor's result" >&2;}
- (
- cat <<\_ASBOX
-## ------------------------------------ ##
-## Report this to bug-autoconf@gnu.org. ##
-## ------------------------------------ ##
-_ASBOX
- ) |
- sed "s/^/$as_me: WARNING: /" >&2
- ;;
- no:yes )
- { echo "$as_me:$LINENO: WARNING: nlist.h: present but cannot be compiled" >&5
-echo "$as_me: WARNING: nlist.h: present but cannot be compiled" >&2;}
- { echo "$as_me:$LINENO: WARNING: nlist.h: check for missing prerequisite headers?" >&5
-echo "$as_me: WARNING: nlist.h: check for missing prerequisite headers?" >&2;}
- { echo "$as_me:$LINENO: WARNING: nlist.h: proceeding with the preprocessor's result" >&5
-echo "$as_me: WARNING: nlist.h: proceeding with the preprocessor's result" >&2;}
- (
- cat <<\_ASBOX
-## ------------------------------------ ##
-## Report this to bug-autoconf@gnu.org. ##
-## ------------------------------------ ##
-_ASBOX
- ) |
- sed "s/^/$as_me: WARNING: /" >&2
- ;;
-esac
-echo "$as_me:$LINENO: checking for nlist.h" >&5
-echo $ECHO_N "checking for nlist.h... $ECHO_C" >&6
-if test "${ac_cv_header_nlist_h+set}" = set; then
- echo $ECHO_N "(cached) $ECHO_C" >&6
-else
- ac_cv_header_nlist_h=$ac_header_preproc
-fi
-echo "$as_me:$LINENO: result: $ac_cv_header_nlist_h" >&5
-echo "${ECHO_T}$ac_cv_header_nlist_h" >&6
-
-fi
-if test $ac_cv_header_nlist_h = yes; then
- cat >>confdefs.h <<\_ACEOF
-#define NLIST_STRUCT 1
-_ACEOF
-
- { echo "$as_me:$LINENO: checking n_un in struct nlist..." >&5
-echo "$as_me: checking n_un in struct nlist..." >&6;}
- cat >conftest.$ac_ext <<_ACEOF
-#line $LINENO "configure"
-/* confdefs.h. */
-_ACEOF
-cat confdefs.h >>conftest.$ac_ext
-cat >>conftest.$ac_ext <<_ACEOF
-/* end confdefs.h. */
-#include <nlist.h>
-int
-main ()
-{
-struct nlist n; n.n_un.n_name = 0;
- ;
- return 0;
-}
-_ACEOF
-rm -f conftest.$ac_objext
-if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
- (eval $ac_compile) 2>&5
- ac_status=$?
- echo "$as_me:$LINENO: \$? = $ac_status" >&5
- (exit $ac_status); } &&
- { ac_try='test -s conftest.$ac_objext'
- { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
- (eval $ac_try) 2>&5
- ac_status=$?
- echo "$as_me:$LINENO: \$? = $ac_status" >&5
- (exit $ac_status); }; }; then
- cat >>confdefs.h <<\_ACEOF
-#define NLIST_NAME_UNION 1
-_ACEOF
-
-else
- echo "$as_me: failed program was:" >&5
-sed 's/^/| /' conftest.$ac_ext >&5
-
-fi
-rm -f conftest.$ac_objext conftest.$ac_ext
-fi
-
-
-
- { echo "$as_me:$LINENO: checking for nlist declaration..." >&5
-echo "$as_me: checking for nlist declaration..." >&6;}
- cat >conftest.$ac_ext <<_ACEOF
-#line $LINENO "configure"
-/* confdefs.h. */
-_ACEOF
-cat confdefs.h >>conftest.$ac_ext
-cat >>conftest.$ac_ext <<_ACEOF
-/* end confdefs.h. */
-
-#ifdef NLIST_STRUCT
-# include <nlist.h>
-#else
-# include <a.out.h>
-#endif
-
-_ACEOF
-if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
- $EGREP "nlist(( | )( | )*.*\(|\()" >/dev/null 2>&1; then
- cat >>confdefs.h <<\_ACEOF
-#define NLIST_DECLARED 1
-_ACEOF
-
-fi
-rm -f conftest*
-
-
- { echo "$as_me:$LINENO: checking for avenrun symbol..." >&5
-echo "$as_me: checking for avenrun symbol..." >&6;}
- nlist64=
- for av in avenrun _avenrun _Loadavg avenrun _avenrun _Loadavg; do
- if test "$cross_compiling" = yes; then
- { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
-See \`config.log' for more details." >&5
-echo "$as_me: error: cannot run test program while cross compiling
-See \`config.log' for more details." >&2;}
- { (exit 1); exit 1; }; }
-else
- cat >conftest.$ac_ext <<_ACEOF
-#line $LINENO "configure"
-/* confdefs.h. */
-_ACEOF
-cat confdefs.h >>conftest.$ac_ext
-cat >>conftest.$ac_ext <<_ACEOF
-/* end confdefs.h. */
-
-#include <sys/types.h>
-#ifdef NLIST_STRUCT
-#include <nlist.h>
-#else
-#include <a.out.h>
-#endif
-
-$nlist64
-
-struct nlist nl[2];
-
-main()
-{
-#if !defined(_AUX_SOURCE) && !defined(AUX)
-# ifdef NLIST_NAME_UNION
- nl[0].n_un.n_name = "$av";
-# else
- nl[0].n_name = "$av";
-# endif
-#else
- strncpy(nl[0].n_name, "$av", sizeof(nl[0].n_name));
-#endif
- nlist(LOADAV_UNIX, nl);
- if (nl[0].n_value == 0)
- exit(1);
- exit(0);
-}
-
-_ACEOF
-rm -f conftest$ac_exeext
-if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
- (eval $ac_link) 2>&5
- ac_status=$?
- echo "$as_me:$LINENO: \$? = $ac_status" >&5
- (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
- { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
- (eval $ac_try) 2>&5
- ac_status=$?
- echo "$as_me:$LINENO: \$? = $ac_status" >&5
- (exit $ac_status); }; }; then
- avensym=$av;break
-else
- echo "$as_me: program exited with status $ac_status" >&5
-echo "$as_me: failed program was:" >&5
-sed 's/^/| /' conftest.$ac_ext >&5
-
-fi
-rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
-fi
- if test "$av" = _Loadavg; then
- nlist64='#define nlist nlist64'
- fi
- done
- if test -z "$avensym" ; then
- echo "- no avenrun symbol found" 1>&6
-
- else
- echo "- using avenrun symbol '$avensym'" 1>&6
-
- cat >>confdefs.h <<_ACEOF
-#define LOADAV_AVENRUN "$avensym"
-_ACEOF
-
- if test -n "$nlist64"; then
- echo "- used nlist64 to find it" 1>&6
-
- cat >>confdefs.h <<\_ACEOF
-#define LOADAV_USE_NLIST64 1
-_ACEOF
-
- fi
- load=1
- fi
- else
- echo "Can't configure the load average display feature" 1>&6
-
- echo "because $core is not readable by you." 1>&6
-
- echo "To configure the load average display feature" 1>&6
-
- echo "re-run configure as root if possible." 1>&6
-
- echo "If you are not the system administrator then disregard" 1>&6
-
- echo "this warning. You can still use screen without" 1>&6
-
- echo "the load average display feature." 1>&6
-
- fi
-fi
-fi
-
-cat > conftest.c <<EOF
-#include "confdefs.h"
-
-#include <sys/types.h>
-#include <sys/param.h>
-
-_CUT_HERE_
-
-#if !defined(LOADAV_GETLOADAVG) && ((defined(hp300) && !defined(__hpux)) || defined(sun) || (defined(ultrix) && defined(mips)) || defined(_SEQUENT_) || defined(sgi) || (defined(SVR4) && !defined(__hpux)) || defined(sony_news) || (!defined(__osf__) && defined(__alpha)) || defined(_IBMR2) || defined(_AUX_SOURCE) || defined(AUX) || defined(m88k))
-loadtype=long
-# if defined(apollo) || defined(_IBMR2) || defined(_AUX_SOURCE) || defined(AUX)
-loadscale=65536
-# else
-# if defined(FSCALE) && !defined(__osf__)
-# undef FSCALE
-loadscale=FSCALE
-# else
-# ifdef sgi
-loadtype=int
-loadscale=1024
-# else
-# if defined(MIPS) || defined(SVR4) || defined(m88k)
-loadscale=256
-# else /* not MIPS */
-loadscale=1000 /* our default value */
-# endif /* MIPS */
-# endif /* sgi */
-# endif /* not FSCALE */
-# endif /* not apollo */
-#else
-loadtype=double
-loadscale=1
-#endif
-#ifdef alliant
-loadnum=4
-#else
-loadnum=3
-#endif
-
-EOF
-eval "$ac_cpp conftest.c 2>&5 | sed -e '1,/_CUT_HERE_/d' -e 's/ //g' > conftest.out"
-. ./conftest.out
-rm -f conftest*
-
-
-if test -n "$load" ; then cat >>confdefs.h <<\_ACEOF
-#define LOADAV 1
-_ACEOF
- fi
-if test -n "$loadtype" ; then cat >>confdefs.h <<_ACEOF
-#define LOADAV_TYPE $loadtype
-_ACEOF
- fi
-if test -n "$loadnum" ; then cat >>confdefs.h <<_ACEOF
-#define LOADAV_NUM $loadnum
-_ACEOF
- fi
-if test -n "$loadscale" ; then cat >>confdefs.h <<_ACEOF
-#define LOADAV_SCALE $loadscale
-_ACEOF
- fi
-
-if test -n "$posix" ; then
-
-echo "assuming posix signal definition" 1>&6
-
-cat >>confdefs.h <<\_ACEOF
-#define SIGVOID 1
-_ACEOF
-
-
-else
-
-{ echo "$as_me:$LINENO: checking return type of signal handlers..." >&5
-echo "$as_me: checking return type of signal handlers..." >&6;}
-cat >conftest.$ac_ext <<_ACEOF
-#line $LINENO "configure"
-/* confdefs.h. */
-_ACEOF
-cat confdefs.h >>conftest.$ac_ext
-cat >>conftest.$ac_ext <<_ACEOF
-/* end confdefs.h. */
-#include <sys/types.h>
-#include <signal.h>
-#ifdef signal
-#undef signal
-#endif
-extern void (*signal ()) ();
-int
-main ()
-{
-int i;
- ;
- return 0;
-}
-_ACEOF
-rm -f conftest.$ac_objext
-if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
- (eval $ac_compile) 2>&5
- ac_status=$?
- echo "$as_me:$LINENO: \$? = $ac_status" >&5
- (exit $ac_status); } &&
- { ac_try='test -s conftest.$ac_objext'
- { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
- (eval $ac_try) 2>&5
- ac_status=$?
- echo "$as_me:$LINENO: \$? = $ac_status" >&5
- (exit $ac_status); }; }; then
- cat >>confdefs.h <<\_ACEOF
-#define SIGVOID 1
-_ACEOF
-
-else
- echo "$as_me: failed program was:" >&5
-sed 's/^/| /' conftest.$ac_ext >&5
-
-fi
-rm -f conftest.$ac_objext conftest.$ac_ext
-{ echo "$as_me:$LINENO: checking sigset..." >&5
-echo "$as_me: checking sigset..." >&6;}
-cat >conftest.$ac_ext <<_ACEOF
-#line $LINENO "configure"
-/* confdefs.h. */
-_ACEOF
-cat confdefs.h >>conftest.$ac_ext
-cat >>conftest.$ac_ext <<_ACEOF
-/* end confdefs.h. */
-
-#include <sys/types.h>
-#include <signal.h>
-
-int
-main ()
-{
-
-#ifdef SIGVOID
-sigset(0, (void (*)())0);
-#else
-sigset(0, (int (*)())0);
-#endif
-
- ;
- return 0;
-}
-_ACEOF
-rm -f conftest.$ac_objext conftest$ac_exeext
-if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
- (eval $ac_link) 2>&5
- ac_status=$?
- echo "$as_me:$LINENO: \$? = $ac_status" >&5
- (exit $ac_status); } &&
- { ac_try='test -s conftest$ac_exeext'
- { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
- (eval $ac_try) 2>&5
- ac_status=$?
- echo "$as_me:$LINENO: \$? = $ac_status" >&5
- (exit $ac_status); }; }; then
- cat >>confdefs.h <<\_ACEOF
-#define USESIGSET 1
-_ACEOF
-
-else
- echo "$as_me: failed program was:" >&5
-sed 's/^/| /' conftest.$ac_ext >&5
-
-fi
-rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
-{ echo "$as_me:$LINENO: checking signal implementation..." >&5
-echo "$as_me: checking signal implementation..." >&6;}
-if test "$cross_compiling" = yes; then
- { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
-See \`config.log' for more details." >&5
-echo "$as_me: error: cannot run test program while cross compiling
-See \`config.log' for more details." >&2;}
- { (exit 1); exit 1; }; }
-else
- cat >conftest.$ac_ext <<_ACEOF
-#line $LINENO "configure"
-/* confdefs.h. */
-_ACEOF
-cat confdefs.h >>conftest.$ac_ext
-cat >>conftest.$ac_ext <<_ACEOF
-/* end confdefs.h. */
-
-#include <sys/types.h>
-#include <signal.h>
-
-#ifndef SIGCLD
-#define SIGCLD SIGCHLD
-#endif
-#ifdef USESIGSET
-#define signal sigset
-#endif
-
-int got;
-
-#ifdef SIGVOID
-void
-#endif
-hand()
-{
- got++;
-}
-
-main()
-{
- /* on hpux we use sigvec to get bsd signals */
-#ifdef __hpux
- (void)signal(SIGCLD, hand);
- kill(getpid(), SIGCLD);
- kill(getpid(), SIGCLD);
- if (got < 2)
- exit(1);
-#endif
- exit(0);
-}
-
-_ACEOF
-rm -f conftest$ac_exeext
-if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
- (eval $ac_link) 2>&5
- ac_status=$?
- echo "$as_me:$LINENO: \$? = $ac_status" >&5
- (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
- { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
- (eval $ac_try) 2>&5
- ac_status=$?
- echo "$as_me:$LINENO: \$? = $ac_status" >&5
- (exit $ac_status); }; }; then
- :
-else
- echo "$as_me: program exited with status $ac_status" >&5
-echo "$as_me: failed program was:" >&5
-sed 's/^/| /' conftest.$ac_ext >&5
-
-( exit $ac_status )
-cat >>confdefs.h <<\_ACEOF
-#define SYSVSIGS 1
-_ACEOF
-
-fi
-rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
-fi
-
-fi
-
-
-{ echo "$as_me:$LINENO: checking for crypt and sec libraries..." >&5
-echo "$as_me: checking for crypt and sec libraries..." >&6;}
-test -f /lib/libcrypt_d.a || test -f /usr/lib/libcrypt_d.a && LIBS="$LIBS -lcrypt_d"
-oldlibs="$LIBS"
-LIBS="$LIBS -lcrypt"
-{ echo "$as_me:$LINENO: checking crypt..." >&5
-echo "$as_me: checking crypt..." >&6;}
-cat >conftest.$ac_ext <<_ACEOF
-#line $LINENO "configure"
-/* confdefs.h. */
-_ACEOF
-cat confdefs.h >>conftest.$ac_ext
-cat >>conftest.$ac_ext <<_ACEOF
-/* end confdefs.h. */
-
-int
-main ()
-{
-
- ;
- return 0;
-}
-_ACEOF
-rm -f conftest.$ac_objext conftest$ac_exeext
-if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
- (eval $ac_link) 2>&5
- ac_status=$?
- echo "$as_me:$LINENO: \$? = $ac_status" >&5
- (exit $ac_status); } &&
- { ac_try='test -s conftest$ac_exeext'
- { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
- (eval $ac_try) 2>&5
- ac_status=$?
- echo "$as_me:$LINENO: \$? = $ac_status" >&5
- (exit $ac_status); }; }; then
- :
-else
- echo "$as_me: failed program was:" >&5
-sed 's/^/| /' conftest.$ac_ext >&5
-
-LIBS="$oldlibs"
-fi
-rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
-test -f /lib/libsec.a || test -f /usr/lib/libsec.a && LIBS="$LIBS -lsec"
-test -f /lib/libshadow.a || test -f /usr/lib/libshadow.a && LIBS="$LIBS -lshadow"
-oldlibs="$LIBS"
-LIBS="$LIBS -lsun"
-{ echo "$as_me:$LINENO: checking IRIX sun library..." >&5
-echo "$as_me: checking IRIX sun library..." >&6;}
-cat >conftest.$ac_ext <<_ACEOF
-#line $LINENO "configure"
-/* confdefs.h. */
-_ACEOF
-cat confdefs.h >>conftest.$ac_ext
-cat >>conftest.$ac_ext <<_ACEOF
-/* end confdefs.h. */
-
-int
-main ()
-{
-
- ;
- return 0;
-}
-_ACEOF
-rm -f conftest.$ac_objext conftest$ac_exeext
-if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
- (eval $ac_link) 2>&5
- ac_status=$?
- echo "$as_me:$LINENO: \$? = $ac_status" >&5
- (exit $ac_status); } &&
- { ac_try='test -s conftest$ac_exeext'
- { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
- (eval $ac_try) 2>&5
- ac_status=$?
- echo "$as_me:$LINENO: \$? = $ac_status" >&5
- (exit $ac_status); }; }; then
- :
-else
- echo "$as_me: failed program was:" >&5
-sed 's/^/| /' conftest.$ac_ext >&5
-
-LIBS="$oldlibs"
-fi
-rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
-
-{ echo "$as_me:$LINENO: checking syslog..." >&5
-echo "$as_me: checking syslog..." >&6;}
-cat >conftest.$ac_ext <<_ACEOF
-#line $LINENO "configure"
-/* confdefs.h. */
-_ACEOF
-cat confdefs.h >>conftest.$ac_ext
-cat >>conftest.$ac_ext <<_ACEOF
-/* end confdefs.h. */
-
-int
-main ()
-{
-closelog();
- ;
- return 0;
-}
-_ACEOF
-rm -f conftest.$ac_objext conftest$ac_exeext
-if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
- (eval $ac_link) 2>&5
- ac_status=$?
- echo "$as_me:$LINENO: \$? = $ac_status" >&5
- (exit $ac_status); } &&
- { ac_try='test -s conftest$ac_exeext'
- { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
- (eval $ac_try) 2>&5
- ac_status=$?
- echo "$as_me:$LINENO: \$? = $ac_status" >&5
- (exit $ac_status); }; }; then
- :
-else
- echo "$as_me: failed program was:" >&5
-sed 's/^/| /' conftest.$ac_ext >&5
-
-oldlibs="$LIBS"
-LIBS="$LIBS -lbsd"
-{ echo "$as_me:$LINENO: checking syslog in libbsd.a..." >&5
-echo "$as_me: checking syslog in libbsd.a..." >&6;}
-cat >conftest.$ac_ext <<_ACEOF
-#line $LINENO "configure"
-/* confdefs.h. */
-_ACEOF
-cat confdefs.h >>conftest.$ac_ext
-cat >>conftest.$ac_ext <<_ACEOF
-/* end confdefs.h. */
-
-int
-main ()
-{
-closelog();
- ;
- return 0;
-}
-_ACEOF
-rm -f conftest.$ac_objext conftest$ac_exeext
-if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
- (eval $ac_link) 2>&5
- ac_status=$?
- echo "$as_me:$LINENO: \$? = $ac_status" >&5
- (exit $ac_status); } &&
- { ac_try='test -s conftest$ac_exeext'
- { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
- (eval $ac_try) 2>&5
- ac_status=$?
- echo "$as_me:$LINENO: \$? = $ac_status" >&5
- (exit $ac_status); }; }; then
- echo "- found." 1>&6
-
-else
- echo "$as_me: failed program was:" >&5
-sed 's/^/| /' conftest.$ac_ext >&5
-
-LIBS="$oldlibs"
-echo "- bad news: syslog missing." 1>&6
- cat >>confdefs.h <<\_ACEOF
-#define NOSYSLOG 1
-_ACEOF
-
-fi
-rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
-fi
-rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
-
-cat >conftest.$ac_ext <<_ACEOF
-#line $LINENO "configure"
-/* confdefs.h. */
-_ACEOF
-cat confdefs.h >>conftest.$ac_ext
-cat >>conftest.$ac_ext <<_ACEOF
-/* end confdefs.h. */
-#ifdef M_UNIX
- yes;
-#endif
-
-_ACEOF
-if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
- $EGREP "yes" >/dev/null 2>&1; then
- LIBS="$LIBS -lsocket -lcrypt_i"
-fi
-rm -f conftest*
-
-
-{ echo "$as_me:$LINENO: checking wait union..." >&5
-echo "$as_me: checking wait union..." >&6;}
-cat >conftest.$ac_ext <<_ACEOF
-#line $LINENO "configure"
-/* confdefs.h. */
-_ACEOF
-cat confdefs.h >>conftest.$ac_ext
-cat >>conftest.$ac_ext <<_ACEOF
-/* end confdefs.h. */
-#include <sys/types.h>
-#include <sys/wait.h>
-
-int
-main ()
-{
-
- union wait x;
- int y;
-#ifdef WEXITSTATUS
- y = WEXITSTATUS(x);
-#endif
-
- ;
- return 0;
-}
-_ACEOF
-rm -f conftest.$ac_objext
-if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
- (eval $ac_compile) 2>&5
- ac_status=$?
- echo "$as_me:$LINENO: \$? = $ac_status" >&5
- (exit $ac_status); } &&
- { ac_try='test -s conftest.$ac_objext'
- { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
- (eval $ac_try) 2>&5
- ac_status=$?
- echo "$as_me:$LINENO: \$? = $ac_status" >&5
- (exit $ac_status); }; }; then
- cat >>confdefs.h <<\_ACEOF
-#define BSDWAIT 1
-_ACEOF
-
-else
- echo "$as_me: failed program was:" >&5
-sed 's/^/| /' conftest.$ac_ext >&5
-
-fi
-rm -f conftest.$ac_objext conftest.$ac_ext
-
-if test -z "$butterfly"; then
-{ echo "$as_me:$LINENO: checking for termio or termios..." >&5
-echo "$as_me: checking for termio or termios..." >&6;}
-cat >conftest.$ac_ext <<_ACEOF
-#line $LINENO "configure"
-/* confdefs.h. */
-_ACEOF
-cat confdefs.h >>conftest.$ac_ext
-cat >>conftest.$ac_ext <<_ACEOF
-/* end confdefs.h. */
-#include <termio.h>
-_ACEOF
-if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
- (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
- ac_status=$?
- grep -v '^ *+' conftest.er1 >conftest.err
- rm -f conftest.er1
- cat conftest.err >&5
- echo "$as_me:$LINENO: \$? = $ac_status" >&5
- (exit $ac_status); } >/dev/null; then
- if test -s conftest.err; then
- ac_cpp_err=$ac_c_preproc_warn_flag
- else
- ac_cpp_err=
- fi
-else
- ac_cpp_err=yes
-fi
-if test -z "$ac_cpp_err"; then
- cat >>confdefs.h <<\_ACEOF
-#define TERMIO 1
-_ACEOF
-
-else
- echo "$as_me: failed program was:" >&5
-sed 's/^/| /' conftest.$ac_ext >&5
-
- if test -n "$posix"; then
-cat >conftest.$ac_ext <<_ACEOF
-#line $LINENO "configure"
-/* confdefs.h. */
-_ACEOF
-cat confdefs.h >>conftest.$ac_ext
-cat >>conftest.$ac_ext <<_ACEOF
-/* end confdefs.h. */
-#include <termios.h>
-_ACEOF
-if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
- (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
- ac_status=$?
- grep -v '^ *+' conftest.er1 >conftest.err
- rm -f conftest.er1
- cat conftest.err >&5
- echo "$as_me:$LINENO: \$? = $ac_status" >&5
- (exit $ac_status); } >/dev/null; then
- if test -s conftest.err; then
- ac_cpp_err=$ac_c_preproc_warn_flag
- else
- ac_cpp_err=
- fi
-else
- ac_cpp_err=yes
-fi
-if test -z "$ac_cpp_err"; then
- cat >>confdefs.h <<\_ACEOF
-#define TERMIO 1
-_ACEOF
-
-else
- echo "$as_me: failed program was:" >&5
-sed 's/^/| /' conftest.$ac_ext >&5
-
-
-fi
-rm -f conftest.err conftest.$ac_ext
-fi
-
-fi
-rm -f conftest.err conftest.$ac_ext
-fi
-
-{ echo "$as_me:$LINENO: checking getspnam..." >&5
-echo "$as_me: checking getspnam..." >&6;}
-cat >conftest.$ac_ext <<_ACEOF
-#line $LINENO "configure"
-/* confdefs.h. */
-_ACEOF
-cat confdefs.h >>conftest.$ac_ext
-cat >>conftest.$ac_ext <<_ACEOF
-/* end confdefs.h. */
-#include <shadow.h>
-int
-main ()
-{
-getspnam("x");
- ;
- return 0;
-}
-_ACEOF
-rm -f conftest.$ac_objext conftest$ac_exeext
-if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
- (eval $ac_link) 2>&5
- ac_status=$?
- echo "$as_me:$LINENO: \$? = $ac_status" >&5
- (exit $ac_status); } &&
- { ac_try='test -s conftest$ac_exeext'
- { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
- (eval $ac_try) 2>&5
- ac_status=$?
- echo "$as_me:$LINENO: \$? = $ac_status" >&5
- (exit $ac_status); }; }; then
- cat >>confdefs.h <<\_ACEOF
-#define SHADOWPW 1
-_ACEOF
-
-else
- echo "$as_me: failed program was:" >&5
-sed 's/^/| /' conftest.$ac_ext >&5
-
-fi
-rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
-
-{ echo "$as_me:$LINENO: checking getttyent..." >&5
-echo "$as_me: checking getttyent..." >&6;}
-cat >conftest.$ac_ext <<_ACEOF
-#line $LINENO "configure"
-/* confdefs.h. */
-_ACEOF
-cat confdefs.h >>conftest.$ac_ext
-cat >>conftest.$ac_ext <<_ACEOF
-/* end confdefs.h. */
-
-int
-main ()
-{
-getttyent();
- ;
- return 0;
-}
-_ACEOF
-rm -f conftest.$ac_objext conftest$ac_exeext
-if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
- (eval $ac_link) 2>&5
- ac_status=$?
- echo "$as_me:$LINENO: \$? = $ac_status" >&5
- (exit $ac_status); } &&
- { ac_try='test -s conftest$ac_exeext'
- { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
- (eval $ac_try) 2>&5
- ac_status=$?
- echo "$as_me:$LINENO: \$? = $ac_status" >&5
- (exit $ac_status); }; }; then
- cat >>confdefs.h <<\_ACEOF
-#define GETTTYENT 1
-_ACEOF
-
-else
- echo "$as_me: failed program was:" >&5
-sed 's/^/| /' conftest.$ac_ext >&5
-
-fi
-rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
-
-{ echo "$as_me:$LINENO: checking fdwalk..." >&5
-echo "$as_me: checking fdwalk..." >&6;}
-cat >conftest.$ac_ext <<_ACEOF
-#line $LINENO "configure"
-/* confdefs.h. */
-_ACEOF
-cat confdefs.h >>conftest.$ac_ext
-cat >>conftest.$ac_ext <<_ACEOF
-/* end confdefs.h. */
-#include <stdlib.h>
-int
-main ()
-{
-fdwalk(NULL, NULL);
- ;
- return 0;
-}
-_ACEOF
-rm -f conftest.$ac_objext conftest$ac_exeext
-if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
- (eval $ac_link) 2>&5
- ac_status=$?
- echo "$as_me:$LINENO: \$? = $ac_status" >&5
- (exit $ac_status); } &&
- { ac_try='test -s conftest$ac_exeext'
- { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
- (eval $ac_try) 2>&5
- ac_status=$?
- echo "$as_me:$LINENO: \$? = $ac_status" >&5
- (exit $ac_status); }; }; then
- cat >>confdefs.h <<\_ACEOF
-#define HAVE_FDWALK 1
-_ACEOF
-
-else
- echo "$as_me: failed program was:" >&5
-sed 's/^/| /' conftest.$ac_ext >&5
-
-fi
-rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
-
-{ echo "$as_me:$LINENO: checking whether memcpy/memmove/bcopy handles overlapping arguments..." >&5
-echo "$as_me: checking whether memcpy/memmove/bcopy handles overlapping arguments..." >&6;}
-if test "$cross_compiling" = yes; then
- { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
-See \`config.log' for more details." >&5
-echo "$as_me: error: cannot run test program while cross compiling
-See \`config.log' for more details." >&2;}
- { (exit 1); exit 1; }; }
-else
- cat >conftest.$ac_ext <<_ACEOF
-#line $LINENO "configure"
-/* confdefs.h. */
-_ACEOF
-cat confdefs.h >>conftest.$ac_ext
-cat >>conftest.$ac_ext <<_ACEOF
-/* end confdefs.h. */
-
-main() {
- char buf[10];
- strcpy(buf, "abcdefghi");
- bcopy(buf, buf + 2, 3);
- if (strncmp(buf, "ababcf", 6))
- exit(1);
- strcpy(buf, "abcdefghi");
- bcopy(buf + 2, buf, 3);
- if (strncmp(buf, "cdedef", 6))
- exit(1);
- exit(0); /* libc version works properly. */
-}
-_ACEOF
-rm -f conftest$ac_exeext
-if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
- (eval $ac_link) 2>&5
- ac_status=$?
- echo "$as_me:$LINENO: \$? = $ac_status" >&5
- (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
- { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
- (eval $ac_try) 2>&5
- ac_status=$?
- echo "$as_me:$LINENO: \$? = $ac_status" >&5
- (exit $ac_status); }; }; then
- cat >>confdefs.h <<\_ACEOF
-#define USEBCOPY 1
-_ACEOF
-
-else
- echo "$as_me: program exited with status $ac_status" >&5
-echo "$as_me: failed program was:" >&5
-sed 's/^/| /' conftest.$ac_ext >&5
-
-fi
-rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
-fi
-
-if test "$cross_compiling" = yes; then
- { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
-See \`config.log' for more details." >&5
-echo "$as_me: error: cannot run test program while cross compiling
-See \`config.log' for more details." >&2;}
- { (exit 1); exit 1; }; }
-else
- cat >conftest.$ac_ext <<_ACEOF
-#line $LINENO "configure"
-/* confdefs.h. */
-_ACEOF
-cat confdefs.h >>conftest.$ac_ext
-cat >>conftest.$ac_ext <<_ACEOF
-/* end confdefs.h. */
-
-#define bcopy(s,d,l) memmove(d,s,l)
-main() {
- char buf[10];
- strcpy(buf, "abcdefghi");
- bcopy(buf, buf + 2, 3);
- if (strncmp(buf, "ababcf", 6))
- exit(1);
- strcpy(buf, "abcdefghi");
- bcopy(buf + 2, buf, 3);
- if (strncmp(buf, "cdedef", 6))
- exit(1);
- exit(0); /* libc version works properly. */
-}
-_ACEOF
-rm -f conftest$ac_exeext
-if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
- (eval $ac_link) 2>&5
- ac_status=$?
- echo "$as_me:$LINENO: \$? = $ac_status" >&5
- (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
- { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
- (eval $ac_try) 2>&5
- ac_status=$?
- echo "$as_me:$LINENO: \$? = $ac_status" >&5
- (exit $ac_status); }; }; then
- cat >>confdefs.h <<\_ACEOF
-#define USEMEMMOVE 1
-_ACEOF
-
-else
- echo "$as_me: program exited with status $ac_status" >&5
-echo "$as_me: failed program was:" >&5
-sed 's/^/| /' conftest.$ac_ext >&5
-
-fi
-rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
-fi
-
-
-if test "$cross_compiling" = yes; then
- { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
-See \`config.log' for more details." >&5
-echo "$as_me: error: cannot run test program while cross compiling
-See \`config.log' for more details." >&2;}
- { (exit 1); exit 1; }; }
-else
- cat >conftest.$ac_ext <<_ACEOF
-#line $LINENO "configure"
-/* confdefs.h. */
-_ACEOF
-cat confdefs.h >>conftest.$ac_ext
-cat >>conftest.$ac_ext <<_ACEOF
-/* end confdefs.h. */
-
-#define bcopy(s,d,l) memcpy(d,s,l)
-main() {
- char buf[10];
- strcpy(buf, "abcdefghi");
- bcopy(buf, buf + 2, 3);
- if (strncmp(buf, "ababcf", 6))
- exit(1);
- strcpy(buf, "abcdefghi");
- bcopy(buf + 2, buf, 3);
- if (strncmp(buf, "cdedef", 6))
- exit(1);
- exit(0); /* libc version works properly. */
-}
-_ACEOF
-rm -f conftest$ac_exeext
-if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
- (eval $ac_link) 2>&5
- ac_status=$?
- echo "$as_me:$LINENO: \$? = $ac_status" >&5
- (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
- { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
- (eval $ac_try) 2>&5
- ac_status=$?
- echo "$as_me:$LINENO: \$? = $ac_status" >&5
- (exit $ac_status); }; }; then
- cat >>confdefs.h <<\_ACEOF
-#define USEMEMCPY 1
-_ACEOF
-
-else
- echo "$as_me: program exited with status $ac_status" >&5
-echo "$as_me: failed program was:" >&5
-sed 's/^/| /' conftest.$ac_ext >&5
-
-fi
-rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
-fi
-
-echo "$as_me:$LINENO: checking long file names" >&5
-echo $ECHO_N "checking long file names... $ECHO_C" >&6
-(echo 1 > /tmp/conftest9012345) 2>/dev/null
-(echo 2 > /tmp/conftest9012346) 2>/dev/null
-val=`cat /tmp/conftest9012345 2>/dev/null`
-if test -f /tmp/conftest9012345 && test "$val" = 1; then
-echo "$as_me:$LINENO: result: yes" >&5
-echo "${ECHO_T}yes" >&6
-else
-echo "$as_me:$LINENO: result: no" >&5
-echo "${ECHO_T}no" >&6
-cat >>confdefs.h <<\_ACEOF
-#define NAME_MAX 14
-_ACEOF
-
-fi
-rm -f /tmp/conftest*
-
-echo "$as_me:$LINENO: checking for vsprintf" >&5
-echo $ECHO_N "checking for vsprintf... $ECHO_C" >&6
-cat >conftest.$ac_ext <<_ACEOF
-#line $LINENO "configure"
-/* confdefs.h. */
-_ACEOF
-cat confdefs.h >>conftest.$ac_ext
-cat >>conftest.$ac_ext <<_ACEOF
-/* end confdefs.h. */
-
-int
-main ()
-{
-vsprintf(0,0,0);
- ;
- return 0;
-}
-_ACEOF
-rm -f conftest.$ac_objext conftest$ac_exeext
-if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
- (eval $ac_link) 2>&5
- ac_status=$?
- echo "$as_me:$LINENO: \$? = $ac_status" >&5
- (exit $ac_status); } &&
- { ac_try='test -s conftest$ac_exeext'
- { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
- (eval $ac_try) 2>&5
- ac_status=$?
- echo "$as_me:$LINENO: \$? = $ac_status" >&5
- (exit $ac_status); }; }; then
- echo "$as_me:$LINENO: result: yes" >&5
-echo "${ECHO_T}yes" >&6;cat >>confdefs.h <<\_ACEOF
-#define USEVARARGS 1
-_ACEOF
-
-else
- echo "$as_me: failed program was:" >&5
-sed 's/^/| /' conftest.$ac_ext >&5
-
-echo "$as_me:$LINENO: result: no" >&5
-echo "${ECHO_T}no" >&6
-fi
-rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
-
-
-
-
-
-
-ac_header_dirent=no
-for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h; do
- as_ac_Header=`echo "ac_cv_header_dirent_$ac_hdr" | $as_tr_sh`
-echo "$as_me:$LINENO: checking for $ac_hdr that defines DIR" >&5
-echo $ECHO_N "checking for $ac_hdr that defines DIR... $ECHO_C" >&6
-if eval "test \"\${$as_ac_Header+set}\" = set"; then
- echo $ECHO_N "(cached) $ECHO_C" >&6
-else
- cat >conftest.$ac_ext <<_ACEOF
-#line $LINENO "configure"
-/* confdefs.h. */
-_ACEOF
-cat confdefs.h >>conftest.$ac_ext
-cat >>conftest.$ac_ext <<_ACEOF
-/* end confdefs.h. */
-#include <sys/types.h>
-#include <$ac_hdr>
-
-int
-main ()
-{
-if ((DIR *) 0)
-return 0;
- ;
- return 0;
-}
-_ACEOF
-rm -f conftest.$ac_objext
-if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
- (eval $ac_compile) 2>&5
- ac_status=$?
- echo "$as_me:$LINENO: \$? = $ac_status" >&5
- (exit $ac_status); } &&
- { ac_try='test -s conftest.$ac_objext'
- { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
- (eval $ac_try) 2>&5
- ac_status=$?
- echo "$as_me:$LINENO: \$? = $ac_status" >&5
- (exit $ac_status); }; }; then
- eval "$as_ac_Header=yes"
-else
- echo "$as_me: failed program was:" >&5
-sed 's/^/| /' conftest.$ac_ext >&5
-
-eval "$as_ac_Header=no"
-fi
-rm -f conftest.$ac_objext conftest.$ac_ext
-fi
-echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
-echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
-if test `eval echo '${'$as_ac_Header'}'` = yes; then
- cat >>confdefs.h <<_ACEOF
-#define `echo "HAVE_$ac_hdr" | $as_tr_cpp` 1
-_ACEOF
-
-ac_header_dirent=$ac_hdr; break
-fi
-
-done
-# Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
-if test $ac_header_dirent = dirent.h; then
- echo "$as_me:$LINENO: checking for library containing opendir" >&5
-echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6
-if test "${ac_cv_search_opendir+set}" = set; then
- echo $ECHO_N "(cached) $ECHO_C" >&6
-else
- ac_func_search_save_LIBS=$LIBS
-ac_cv_search_opendir=no
-cat >conftest.$ac_ext <<_ACEOF
-#line $LINENO "configure"
-/* confdefs.h. */
-_ACEOF
-cat confdefs.h >>conftest.$ac_ext
-cat >>conftest.$ac_ext <<_ACEOF
-/* end confdefs.h. */
-
-/* Override any gcc2 internal prototype to avoid an error. */
-#ifdef __cplusplus
-extern "C"
-#endif
-/* We use char because int might match the return type of a gcc2
- builtin and then its argument prototype would still apply. */
-char opendir ();
-int
-main ()
-{
-opendir ();
- ;
- return 0;
-}
-_ACEOF
-rm -f conftest.$ac_objext conftest$ac_exeext
-if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
- (eval $ac_link) 2>&5
- ac_status=$?
- echo "$as_me:$LINENO: \$? = $ac_status" >&5
- (exit $ac_status); } &&
- { ac_try='test -s conftest$ac_exeext'
- { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
- (eval $ac_try) 2>&5
- ac_status=$?
- echo "$as_me:$LINENO: \$? = $ac_status" >&5
- (exit $ac_status); }; }; then
- ac_cv_search_opendir="none required"
-else
- echo "$as_me: failed program was:" >&5
-sed 's/^/| /' conftest.$ac_ext >&5
-
-fi
-rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
-if test "$ac_cv_search_opendir" = no; then
- for ac_lib in dir; do
- LIBS="-l$ac_lib $ac_func_search_save_LIBS"
- cat >conftest.$ac_ext <<_ACEOF
-#line $LINENO "configure"
-/* confdefs.h. */
-_ACEOF
-cat confdefs.h >>conftest.$ac_ext
-cat >>conftest.$ac_ext <<_ACEOF
-/* end confdefs.h. */
-
-/* Override any gcc2 internal prototype to avoid an error. */
-#ifdef __cplusplus
-extern "C"
-#endif
-/* We use char because int might match the return type of a gcc2
- builtin and then its argument prototype would still apply. */
-char opendir ();
-int
-main ()
-{
-opendir ();
- ;
- return 0;
-}
-_ACEOF
-rm -f conftest.$ac_objext conftest$ac_exeext
-if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
- (eval $ac_link) 2>&5
- ac_status=$?
- echo "$as_me:$LINENO: \$? = $ac_status" >&5
- (exit $ac_status); } &&
- { ac_try='test -s conftest$ac_exeext'
- { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
- (eval $ac_try) 2>&5
- ac_status=$?
- echo "$as_me:$LINENO: \$? = $ac_status" >&5
- (exit $ac_status); }; }; then
- ac_cv_search_opendir="-l$ac_lib"
-break
-else
- echo "$as_me: failed program was:" >&5
-sed 's/^/| /' conftest.$ac_ext >&5
-
-fi
-rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
- done
-fi
-LIBS=$ac_func_search_save_LIBS
-fi
-echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
-echo "${ECHO_T}$ac_cv_search_opendir" >&6
-if test "$ac_cv_search_opendir" != no; then
- test "$ac_cv_search_opendir" = "none required" || LIBS="$ac_cv_search_opendir $LIBS"
-
-fi
-
-else
- echo "$as_me:$LINENO: checking for library containing opendir" >&5
-echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6
-if test "${ac_cv_search_opendir+set}" = set; then
- echo $ECHO_N "(cached) $ECHO_C" >&6
-else
- ac_func_search_save_LIBS=$LIBS
-ac_cv_search_opendir=no
-cat >conftest.$ac_ext <<_ACEOF
-#line $LINENO "configure"
-/* confdefs.h. */
-_ACEOF
-cat confdefs.h >>conftest.$ac_ext
-cat >>conftest.$ac_ext <<_ACEOF
-/* end confdefs.h. */
-
-/* Override any gcc2 internal prototype to avoid an error. */
-#ifdef __cplusplus
-extern "C"
-#endif
-/* We use char because int might match the return type of a gcc2
- builtin and then its argument prototype would still apply. */
-char opendir ();
-int
-main ()
-{
-opendir ();
- ;
- return 0;
-}
-_ACEOF
-rm -f conftest.$ac_objext conftest$ac_exeext
-if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
- (eval $ac_link) 2>&5
- ac_status=$?
- echo "$as_me:$LINENO: \$? = $ac_status" >&5
- (exit $ac_status); } &&
- { ac_try='test -s conftest$ac_exeext'
- { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
- (eval $ac_try) 2>&5
- ac_status=$?
- echo "$as_me:$LINENO: \$? = $ac_status" >&5
- (exit $ac_status); }; }; then
- ac_cv_search_opendir="none required"
-else
- echo "$as_me: failed program was:" >&5
-sed 's/^/| /' conftest.$ac_ext >&5
-
-fi
-rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
-if test "$ac_cv_search_opendir" = no; then
- for ac_lib in x; do
- LIBS="-l$ac_lib $ac_func_search_save_LIBS"
- cat >conftest.$ac_ext <<_ACEOF
-#line $LINENO "configure"
-/* confdefs.h. */
-_ACEOF
-cat confdefs.h >>conftest.$ac_ext
-cat >>conftest.$ac_ext <<_ACEOF
-/* end confdefs.h. */
-
-/* Override any gcc2 internal prototype to avoid an error. */
-#ifdef __cplusplus
-extern "C"
-#endif
-/* We use char because int might match the return type of a gcc2
- builtin and then its argument prototype would still apply. */
-char opendir ();
-int
-main ()
-{
-opendir ();
- ;
- return 0;
-}
-_ACEOF
-rm -f conftest.$ac_objext conftest$ac_exeext
-if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
- (eval $ac_link) 2>&5
- ac_status=$?
- echo "$as_me:$LINENO: \$? = $ac_status" >&5
- (exit $ac_status); } &&
- { ac_try='test -s conftest$ac_exeext'
- { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
- (eval $ac_try) 2>&5
- ac_status=$?
- echo "$as_me:$LINENO: \$? = $ac_status" >&5
- (exit $ac_status); }; }; then
- ac_cv_search_opendir="-l$ac_lib"
-break
-else
- echo "$as_me: failed program was:" >&5
-sed 's/^/| /' conftest.$ac_ext >&5
-
-fi
-rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
- done
-fi
-LIBS=$ac_func_search_save_LIBS
-fi
-echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
-echo "${ECHO_T}$ac_cv_search_opendir" >&6
-if test "$ac_cv_search_opendir" != no; then
- test "$ac_cv_search_opendir" = "none required" || LIBS="$ac_cv_search_opendir $LIBS"
-
-fi
-
-fi
-
-
-echo "$as_me:$LINENO: checking for setenv" >&5
-echo $ECHO_N "checking for setenv... $ECHO_C" >&6
-cat >conftest.$ac_ext <<_ACEOF
-#line $LINENO "configure"
-/* confdefs.h. */
-_ACEOF
-cat confdefs.h >>conftest.$ac_ext
-cat >>conftest.$ac_ext <<_ACEOF
-/* end confdefs.h. */
-
-int
-main ()
-{
-setenv((char *)0,(char *)0);unsetenv((char *)0);
- ;
- return 0;
-}
-_ACEOF
-rm -f conftest.$ac_objext conftest$ac_exeext
-if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
- (eval $ac_link) 2>&5
- ac_status=$?
- echo "$as_me:$LINENO: \$? = $ac_status" >&5
- (exit $ac_status); } &&
- { ac_try='test -s conftest$ac_exeext'
- { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
- (eval $ac_try) 2>&5
- ac_status=$?
- echo "$as_me:$LINENO: \$? = $ac_status" >&5
- (exit $ac_status); }; }; then
- echo "$as_me:$LINENO: result: yes" >&5
-echo "${ECHO_T}yes" >&6;cat >>confdefs.h <<\_ACEOF
-#define USESETENV 1
-_ACEOF
-
-else
- echo "$as_me: failed program was:" >&5
-sed 's/^/| /' conftest.$ac_ext >&5
-
-echo "$as_me:$LINENO: result: no" >&5
-echo "${ECHO_T}no" >&6
-echo "$as_me:$LINENO: checking for putenv" >&5
-echo $ECHO_N "checking for putenv... $ECHO_C" >&6
-cat >conftest.$ac_ext <<_ACEOF
-#line $LINENO "configure"
-/* confdefs.h. */
-_ACEOF
-cat confdefs.h >>conftest.$ac_ext
-cat >>conftest.$ac_ext <<_ACEOF
-/* end confdefs.h. */
-
-int
-main ()
-{
-putenv((char *)0);unsetenv((char *)0);
- ;
- return 0;
-}
-_ACEOF
-rm -f conftest.$ac_objext conftest$ac_exeext
-if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
- (eval $ac_link) 2>&5
- ac_status=$?
- echo "$as_me:$LINENO: \$? = $ac_status" >&5
- (exit $ac_status); } &&
- { ac_try='test -s conftest$ac_exeext'
- { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
- (eval $ac_try) 2>&5
- ac_status=$?
- echo "$as_me:$LINENO: \$? = $ac_status" >&5
- (exit $ac_status); }; }; then
- echo "$as_me:$LINENO: result: yes" >&5
-echo "${ECHO_T}yes" >&6
-else
- echo "$as_me: failed program was:" >&5
-sed 's/^/| /' conftest.$ac_ext >&5
-
-echo "$as_me:$LINENO: result: no" >&5
-echo "${ECHO_T}no" >&6;cat >>confdefs.h <<\_ACEOF
-#define NEEDPUTENV 1
-_ACEOF
-
-
-fi
-rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
-fi
-rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
-echo "$as_me:$LINENO: checking for nl_langinfo(CODESET)" >&5
-echo $ECHO_N "checking for nl_langinfo(CODESET)... $ECHO_C" >&6
-cat >conftest.$ac_ext <<_ACEOF
-#line $LINENO "configure"
-/* confdefs.h. */
-_ACEOF
-cat confdefs.h >>conftest.$ac_ext
-cat >>conftest.$ac_ext <<_ACEOF
-/* end confdefs.h. */
-
-#include <langinfo.h>
-
-int
-main ()
-{
-nl_langinfo(CODESET);
- ;
- return 0;
-}
-_ACEOF
-rm -f conftest.$ac_objext conftest$ac_exeext
-if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
- (eval $ac_link) 2>&5
- ac_status=$?
- echo "$as_me:$LINENO: \$? = $ac_status" >&5
- (exit $ac_status); } &&
- { ac_try='test -s conftest$ac_exeext'
- { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
- (eval $ac_try) 2>&5
- ac_status=$?
- echo "$as_me:$LINENO: \$? = $ac_status" >&5
- (exit $ac_status); }; }; then
- echo "$as_me:$LINENO: result: yes" >&5
-echo "${ECHO_T}yes" >&6;cat >>confdefs.h <<\_ACEOF
-#define HAVE_NL_LANGINFO 1
-_ACEOF
-
-else
- echo "$as_me: failed program was:" >&5
-sed 's/^/| /' conftest.$ac_ext >&5
-
-echo "$as_me:$LINENO: result: no" >&5
-echo "${ECHO_T}no" >&6
-fi
-rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
-
-echo "$as_me:$LINENO: checking for library containing gethostname" >&5
-echo $ECHO_N "checking for library containing gethostname... $ECHO_C" >&6
-if test "${ac_cv_search_gethostname+set}" = set; then
- echo $ECHO_N "(cached) $ECHO_C" >&6
-else
- ac_func_search_save_LIBS=$LIBS
-ac_cv_search_gethostname=no
-cat >conftest.$ac_ext <<_ACEOF
-#line $LINENO "configure"
-/* confdefs.h. */
-_ACEOF
-cat confdefs.h >>conftest.$ac_ext
-cat >>conftest.$ac_ext <<_ACEOF
-/* end confdefs.h. */
-
-/* Override any gcc2 internal prototype to avoid an error. */
-#ifdef __cplusplus
-extern "C"
-#endif
-/* We use char because int might match the return type of a gcc2
- builtin and then its argument prototype would still apply. */
-char gethostname ();
-int
-main ()
-{
-gethostname ();
- ;
- return 0;
-}
-_ACEOF
-rm -f conftest.$ac_objext conftest$ac_exeext
-if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
- (eval $ac_link) 2>&5
- ac_status=$?
- echo "$as_me:$LINENO: \$? = $ac_status" >&5
- (exit $ac_status); } &&
- { ac_try='test -s conftest$ac_exeext'
- { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
- (eval $ac_try) 2>&5
- ac_status=$?
- echo "$as_me:$LINENO: \$? = $ac_status" >&5
- (exit $ac_status); }; }; then
- ac_cv_search_gethostname="none required"
-else
- echo "$as_me: failed program was:" >&5
-sed 's/^/| /' conftest.$ac_ext >&5
-
-fi
-rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
-if test "$ac_cv_search_gethostname" = no; then
- for ac_lib in nsl; do
- LIBS="-l$ac_lib $ac_func_search_save_LIBS"
- cat >conftest.$ac_ext <<_ACEOF
-#line $LINENO "configure"
-/* confdefs.h. */
-_ACEOF
-cat confdefs.h >>conftest.$ac_ext
-cat >>conftest.$ac_ext <<_ACEOF
-/* end confdefs.h. */
-
-/* Override any gcc2 internal prototype to avoid an error. */
-#ifdef __cplusplus
-extern "C"
-#endif
-/* We use char because int might match the return type of a gcc2
- builtin and then its argument prototype would still apply. */
-char gethostname ();
-int
-main ()
-{
-gethostname ();
- ;
- return 0;
-}
-_ACEOF
-rm -f conftest.$ac_objext conftest$ac_exeext
-if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
- (eval $ac_link) 2>&5
- ac_status=$?
- echo "$as_me:$LINENO: \$? = $ac_status" >&5
- (exit $ac_status); } &&
- { ac_try='test -s conftest$ac_exeext'
- { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
- (eval $ac_try) 2>&5
- ac_status=$?
- echo "$as_me:$LINENO: \$? = $ac_status" >&5
- (exit $ac_status); }; }; then
- ac_cv_search_gethostname="-l$ac_lib"
-break
-else
- echo "$as_me: failed program was:" >&5
-sed 's/^/| /' conftest.$ac_ext >&5
-
-fi
-rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
- done
-fi
-LIBS=$ac_func_search_save_LIBS
-fi
-echo "$as_me:$LINENO: result: $ac_cv_search_gethostname" >&5
-echo "${ECHO_T}$ac_cv_search_gethostname" >&6
-if test "$ac_cv_search_gethostname" != no; then
- test "$ac_cv_search_gethostname" = "none required" || LIBS="$ac_cv_search_gethostname $LIBS"
-
-fi
-
-
-
-
-
-
-
-
-
-
-
-
-
-for ac_func in rename fchmod fchown strerror lstat _exit utimes vsnprintf getcwd setlocale strftime
-do
-as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
-echo "$as_me:$LINENO: checking for $ac_func" >&5
-echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
-if eval "test \"\${$as_ac_var+set}\" = set"; then
- echo $ECHO_N "(cached) $ECHO_C" >&6
-else
- cat >conftest.$ac_ext <<_ACEOF
-#line $LINENO "configure"
-/* confdefs.h. */
-_ACEOF
-cat confdefs.h >>conftest.$ac_ext
-cat >>conftest.$ac_ext <<_ACEOF
-/* end confdefs.h. */
-/* System header to define __stub macros and hopefully few prototypes,
- which can conflict with char $ac_func (); below.
- Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
- <limits.h> exists even on freestanding compilers. */
-#ifdef __STDC__
-# include <limits.h>
-#else
-# include <assert.h>
-#endif
-/* Override any gcc2 internal prototype to avoid an error. */
-#ifdef __cplusplus
-extern "C"
-{
-#endif
-/* We use char because int might match the return type of a gcc2
- builtin and then its argument prototype would still apply. */
-char $ac_func ();
-/* The GNU C library defines this for functions which it implements
- to always fail with ENOSYS. Some functions are actually named
- something starting with __ and the normal name is an alias. */
-#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
-choke me
-#else
-char (*f) () = $ac_func;
-#endif
-#ifdef __cplusplus
-}
-#endif
-
-int
-main ()
-{
-return f != $ac_func;
- ;
- return 0;
-}
-_ACEOF
-rm -f conftest.$ac_objext conftest$ac_exeext
-if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
- (eval $ac_link) 2>&5
- ac_status=$?
- echo "$as_me:$LINENO: \$? = $ac_status" >&5
- (exit $ac_status); } &&
- { ac_try='test -s conftest$ac_exeext'
- { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
- (eval $ac_try) 2>&5
- ac_status=$?
- echo "$as_me:$LINENO: \$? = $ac_status" >&5
- (exit $ac_status); }; }; then
- eval "$as_ac_var=yes"
-else
- echo "$as_me: failed program was:" >&5
-sed 's/^/| /' conftest.$ac_ext >&5
-
-eval "$as_ac_var=no"
-fi
-rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
-fi
-echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
-echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
-if test `eval echo '${'$as_ac_var'}'` = yes; then
- cat >>confdefs.h <<_ACEOF
-#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
-_ACEOF
-
-fi
-done
-
-
-# Check whether --enable-pam or --disable-pam was given.
-if test "${enable_pam+set}" = set; then
- enableval="$enable_pam"
-
-fi;
-if test "$enable_pam" = "yes"; then
- echo "$as_me:$LINENO: checking for PAM support" >&5
-echo $ECHO_N "checking for PAM support... $ECHO_C" >&6
- oldlibs="$LIBS"
- LIBS="$LIBS -lpam"
- cat >conftest.$ac_ext <<_ACEOF
-#line $LINENO "configure"
-/* confdefs.h. */
-_ACEOF
-cat confdefs.h >>conftest.$ac_ext
-cat >>conftest.$ac_ext <<_ACEOF
-/* end confdefs.h. */
-#include <security/pam_appl.h>
-int
-main ()
-{
-
- pam_start(0, 0, 0, 0);
- pam_authenticate(0, 0);
- pam_end(0,0);
-
- ;
- return 0;
-}
-_ACEOF
-rm -f conftest.$ac_objext conftest$ac_exeext
-if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
- (eval $ac_link) 2>&5
- ac_status=$?
- echo "$as_me:$LINENO: \$? = $ac_status" >&5
- (exit $ac_status); } &&
- { ac_try='test -s conftest$ac_exeext'
- { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
- (eval $ac_try) 2>&5
- ac_status=$?
- echo "$as_me:$LINENO: \$? = $ac_status" >&5
- (exit $ac_status); }; }; then
- echo "$as_me:$LINENO: result: yes" >&5
-echo "${ECHO_T}yes" >&6;cat >>confdefs.h <<\_ACEOF
-#define USE_PAM 1
-_ACEOF
-
-else
- echo "$as_me: failed program was:" >&5
-sed 's/^/| /' conftest.$ac_ext >&5
-
-echo "$as_me:$LINENO: result: no" >&5
-echo "${ECHO_T}no" >&6;LIBS="$oldlibs"
-fi
-rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
-fi
-
-# Check whether --enable-use_locale or --disable-use_locale was given.
-if test "${enable_use_locale+set}" = set; then
- enableval="$enable_use_locale"
-
-fi;
-if test "$enable_use_locale" = "yes"; then
- cat >>confdefs.h <<\_ACEOF
-#define USE_LOCALE 1
-_ACEOF
-
-fi
-# Check whether --enable-telnet or --disable-telnet was given.
-if test "${enable_telnet+set}" = set; then
- enableval="$enable_telnet"
-
-fi;
-if test "$enable_telnet" = "yes"; then
- cat >>confdefs.h <<\_ACEOF
-#define BUILTIN_TELNET 1
-_ACEOF
-
-fi
-# Check whether --enable-colors256 or --disable-colors256 was given.
-if test "${enable_colors256+set}" = set; then
- enableval="$enable_colors256"
-
-fi;
-if test "$enable_colors256" = "yes"; then
- cat >>confdefs.h <<\_ACEOF
-#define COLORS256 1
-_ACEOF
-
-fi
-# Check whether --enable-rxvt_osc or --disable-rxvt_osc was given.
-if test "${enable_rxvt_osc+set}" = set; then
- enableval="$enable_rxvt_osc"
-
-fi;
-if test "$enable_rxvt_osc" = "yes"; then
- cat >>confdefs.h <<\_ACEOF
-#define RXVT_OSC 1
-_ACEOF
-
-fi
-
-if test -z "$old_CFLAGS"; then
- if test "x$CFLAGS" = "x-g"; then
- CFLAGS="-O"
- fi
-fi
-test -n "$seqptx" && LIBS="-ltermcap -lc -lsocket -linet -lnsl -lsec -lseq"
-
-if test "$cross_compiling" = yes; then
- { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
-See \`config.log' for more details." >&5
-echo "$as_me: error: cannot run test program while cross compiling
-See \`config.log' for more details." >&2;}
- { (exit 1); exit 1; }; }
-else
- cat >conftest.$ac_ext <<_ACEOF
-#line $LINENO "configure"
-/* confdefs.h. */
-_ACEOF
-cat confdefs.h >>conftest.$ac_ext
-cat >>conftest.$ac_ext <<_ACEOF
-/* end confdefs.h. */
-main(){exit(0);}
-_ACEOF
-rm -f conftest$ac_exeext
-if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
- (eval $ac_link) 2>&5
- ac_status=$?
- echo "$as_me:$LINENO: \$? = $ac_status" >&5
- (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
- { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
- (eval $ac_try) 2>&5
- ac_status=$?
- echo "$as_me:$LINENO: \$? = $ac_status" >&5
- (exit $ac_status); }; }; then
- :
-else
- echo "$as_me: program exited with status $ac_status" >&5
-echo "$as_me: failed program was:" >&5
-sed 's/^/| /' conftest.$ac_ext >&5
-
-( exit $ac_status )
-{ { echo "$as_me:$LINENO: error: Can't run the compiler - internal error. Sorry." >&5
-echo "$as_me: error: Can't run the compiler - internal error. Sorry." >&2;}
- { (exit 1); exit 1; }; }
-fi
-rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
-fi
-
-ETCSCREENRC="\"/usr/local/etc/screenrc\""
-if test -n "$prefix"; then
-ETCSCREENRC="\"$prefix/etc/screenrc\""
-fi
-echo "$as_me:$LINENO: checking for the global screenrc file" >&5
-echo $ECHO_N "checking for the global screenrc file... $ECHO_C" >&6
-
-# Check whether --with-sys-screenrc or --without-sys-screenrc was given.
-if test "${with_sys_screenrc+set}" = set; then
- withval="$with_sys_screenrc"
- ETCSCREENRC="\"${withval}\""
-fi;
-cat >>confdefs.h <<_ACEOF
-#define ETCSCREENRC $ETCSCREENRC
-_ACEOF
-
-echo "$as_me:$LINENO: result: $ETCSCREENRC" >&5
-echo "${ECHO_T}$ETCSCREENRC" >&6
-
-SCREENENCODINGS="\"/usr/local/lib/screen/utf8encodings\""
-if test -n "$datadir"; then
-eval SCREENENCODINGS="$datadir/screen/utf8encodings"
-SCREENENCODINGS="\"$SCREENENCODINGS\""
-fi
-echo "$as_me:$LINENO: checking for the utf8-encodings location" >&5
-echo $ECHO_N "checking for the utf8-encodings location... $ECHO_C" >&6
-cat >>confdefs.h <<_ACEOF
-#define SCREENENCODINGS $SCREENENCODINGS
-_ACEOF
-
-echo "$as_me:$LINENO: result: $SCREENENCODINGS" >&5
-echo "${ECHO_T}$SCREENENCODINGS" >&6
-
- ac_config_files="$ac_config_files Makefile doc/Makefile"
- ac_config_commands="$ac_config_commands default"
-cat >confcache <<\_ACEOF
-# This file is a shell script that caches the results of configure
-# tests run on this system so they can be shared between configure
-# scripts and configure runs, see configure's option --config-cache.
-# It is not useful on other systems. If it contains results you don't
-# want to keep, you may remove or edit it.
-#
-# config.status only pays attention to the cache file if you give it
-# the --recheck option to rerun configure.
-#
-# `ac_cv_env_foo' variables (set or unset) will be overridden when
-# loading this file, other *unset* `ac_cv_foo' will be assigned the
-# following values.
-
-_ACEOF
-
-# The following way of writing the cache mishandles newlines in values,
-# but we know of no workaround that is simple, portable, and efficient.
-# So, don't put newlines in cache variables' values.
-# Ultrix sh set writes to stderr and can't be redirected directly,
-# and sets the high bit in the cache file unless we assign to the vars.
-{
- (set) 2>&1 |
- case `(ac_space=' '; set | grep ac_space) 2>&1` in
- *ac_space=\ *)
- # `set' does not quote correctly, so add quotes (double-quote
- # substitution turns \\\\ into \\, and sed turns \\ into \).
- sed -n \
- "s/'/'\\\\''/g;
- s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
- ;;
- *)
- # `set' quotes correctly as required by POSIX, so do not add quotes.
- sed -n \
- "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
- ;;
- esac;
-} |
- sed '
- t clear
- : clear
- s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
- t end
- /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
- : end' >>confcache
-if diff $cache_file confcache >/dev/null 2>&1; then :; else
- if test -w $cache_file; then
- test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file"
- cat confcache >$cache_file
- else
- echo "not updating unwritable cache $cache_file"
- fi
-fi
-rm -f confcache
-
-test "x$prefix" = xNONE && prefix=$ac_default_prefix
-# Let make expand exec_prefix.
-test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
-
-# VPATH may cause trouble with some makes, so we remove $(srcdir),
-# ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
-# trailing colons and then remove the whole line if VPATH becomes empty
-# (actually we leave an empty line to preserve line numbers).
-if test "x$srcdir" = x.; then
- ac_vpsub='/^[ ]*VPATH[ ]*=/{
-s/:*\$(srcdir):*/:/;
-s/:*\${srcdir}:*/:/;
-s/:*@srcdir@:*/:/;
-s/^\([^=]*=[ ]*\):*/\1/;
-s/:*$//;
-s/^[^=]*=[ ]*$//;
-}'
-fi
-
-DEFS=-DHAVE_CONFIG_H
-
-ac_libobjs=
-ac_ltlibobjs=
-for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
- # 1. Remove the extension, and $U if already installed.
- ac_i=`echo "$ac_i" |
- sed 's/\$U\././;s/\.o$//;s/\.obj$//'`
- # 2. Add them.
- ac_libobjs="$ac_libobjs $ac_i\$U.$ac_objext"
- ac_ltlibobjs="$ac_ltlibobjs $ac_i"'$U.lo'
-done
-LIBOBJS=$ac_libobjs
-
-LTLIBOBJS=$ac_ltlibobjs
-
-
-
-: ${CONFIG_STATUS=./config.status}
-ac_clean_files_save=$ac_clean_files
-ac_clean_files="$ac_clean_files $CONFIG_STATUS"
-{ echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
-echo "$as_me: creating $CONFIG_STATUS" >&6;}
-cat >$CONFIG_STATUS <<_ACEOF
-#! $SHELL
-# Generated by $as_me.
-# Run this file to recreate the current configuration.
-# Compiler output produced by configure, useful for debugging
-# configure, is in config.log if it exists.
-
-debug=false
-ac_cs_recheck=false
-ac_cs_silent=false
-SHELL=\${CONFIG_SHELL-$SHELL}
-_ACEOF
-
-cat >>$CONFIG_STATUS <<\_ACEOF
-## --------------------- ##
-## M4sh Initialization. ##
-## --------------------- ##
-
-# Be Bourne compatible
-if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
- emulate sh
- NULLCMD=:
- # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
- # is contrary to our usage. Disable this feature.
- alias -g '${1+"$@"}'='"$@"'
-elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
- set -o posix
-fi
-
-# Support unset when possible.
-if (FOO=FOO; unset FOO) >/dev/null 2>&1; then
- as_unset=unset
-else
- as_unset=false
-fi
-
-
-# Work around bugs in pre-3.0 UWIN ksh.
-$as_unset ENV MAIL MAILPATH
-PS1='$ '
-PS2='> '
-PS4='+ '
-
-# NLS nuisances.
-for as_var in \
- LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
- LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
- LC_TELEPHONE LC_TIME
-do
- if (set +x; test -n "`(eval $as_var=C; export $as_var) 2>&1`"); then
- eval $as_var=C; export $as_var
- else
- $as_unset $as_var
- fi
-done
-
-# Required to use basename.
-if expr a : '\(a\)' >/dev/null 2>&1; then
- as_expr=expr
-else
- as_expr=false
-fi
-
-if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then
- as_basename=basename
-else
- as_basename=false
-fi
-
-
-# Name of the executable.
-as_me=`$as_basename "$0" ||
-$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
- X"$0" : 'X\(//\)$' \| \
- X"$0" : 'X\(/\)$' \| \
- . : '\(.\)' 2>/dev/null ||
-echo X/"$0" |
- sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
- /^X\/\(\/\/\)$/{ s//\1/; q; }
- /^X\/\(\/\).*/{ s//\1/; q; }
- s/.*/./; q'`
-
-
-# PATH needs CR, and LINENO needs CR and PATH.
-# Avoid depending upon Character Ranges.
-as_cr_letters='abcdefghijklmnopqrstuvwxyz'
-as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
-as_cr_Letters=$as_cr_letters$as_cr_LETTERS
-as_cr_digits='0123456789'
-as_cr_alnum=$as_cr_Letters$as_cr_digits
-
-# The user is always right.
-if test "${PATH_SEPARATOR+set}" != set; then
- echo "#! /bin/sh" >conf$$.sh
- echo "exit 0" >>conf$$.sh
- chmod +x conf$$.sh
- if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
- PATH_SEPARATOR=';'
- else
- PATH_SEPARATOR=:
- fi
- rm -f conf$$.sh
-fi
-
-
- as_lineno_1=$LINENO
- as_lineno_2=$LINENO
- as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
- test "x$as_lineno_1" != "x$as_lineno_2" &&
- test "x$as_lineno_3" = "x$as_lineno_2" || {
- # Find who we are. Look in the path if we contain no path at all
- # relative or not.
- case $0 in
- *[\\/]* ) as_myself=$0 ;;
- *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
-for as_dir in $PATH
-do
- IFS=$as_save_IFS
- test -z "$as_dir" && as_dir=.
- test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
-done
-
- ;;
- esac
- # We did not find ourselves, most probably we were run as `sh COMMAND'
- # in which case we are not to be found in the path.
- if test "x$as_myself" = x; then
- as_myself=$0
- fi
- if test ! -f "$as_myself"; then
- { { echo "$as_me:$LINENO: error: cannot find myself; rerun with an absolute path" >&5
-echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2;}
- { (exit 1); exit 1; }; }
- fi
- case $CONFIG_SHELL in
- '')
- as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
-for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
-do
- IFS=$as_save_IFS
- test -z "$as_dir" && as_dir=.
- for as_base in sh bash ksh sh5; do
- case $as_dir in
- /*)
- if ("$as_dir/$as_base" -c '
- as_lineno_1=$LINENO
- as_lineno_2=$LINENO
- as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
- test "x$as_lineno_1" != "x$as_lineno_2" &&
- test "x$as_lineno_3" = "x$as_lineno_2" ') 2>/dev/null; then
- $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; }
- $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; }
- CONFIG_SHELL=$as_dir/$as_base
- export CONFIG_SHELL
- exec "$CONFIG_SHELL" "$0" ${1+"$@"}
- fi;;
- esac
- done
-done
-;;
- esac
-
- # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
- # uniformly replaced by the line number. The first 'sed' inserts a
- # line-number line before each line; the second 'sed' does the real
- # work. The second script uses 'N' to pair each line-number line
- # with the numbered line, and appends trailing '-' during
- # substitution so that $LINENO is not a special case at line end.
- # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
- # second 'sed' script. Blame Lee E. McMahon for sed's syntax. :-)
- sed '=' <$as_myself |
- sed '
- N
- s,$,-,
- : loop
- s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
- t loop
- s,-$,,
- s,^['$as_cr_digits']*\n,,
- ' >$as_me.lineno &&
- chmod +x $as_me.lineno ||
- { { echo "$as_me:$LINENO: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&5
-echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2;}
- { (exit 1); exit 1; }; }
-
- # Don't try to exec as it changes $[0], causing all sort of problems
- # (the dirname of $[0] is not the place where we might find the
- # original and so on. Autoconf is especially sensible to this).
- . ./$as_me.lineno
- # Exit status is that of the last command.
- exit
-}
-
-
-case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
- *c*,-n*) ECHO_N= ECHO_C='
-' ECHO_T=' ' ;;
- *c*,* ) ECHO_N=-n ECHO_C= ECHO_T= ;;
- *) ECHO_N= ECHO_C='\c' ECHO_T= ;;
-esac
-
-if expr a : '\(a\)' >/dev/null 2>&1; then
- as_expr=expr
-else
- as_expr=false
-fi
-
-rm -f conf$$ conf$$.exe conf$$.file
-echo >conf$$.file
-if ln -s conf$$.file conf$$ 2>/dev/null; then
- # We could just check for DJGPP; but this test a) works b) is more generic
- # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
- if test -f conf$$.exe; then
- # Don't use ln at all; we don't have any links
- as_ln_s='cp -p'
- else
- as_ln_s='ln -s'
- fi
-elif ln conf$$.file conf$$ 2>/dev/null; then
- as_ln_s=ln
-else
- as_ln_s='cp -p'
-fi
-rm -f conf$$ conf$$.exe conf$$.file
-
-if mkdir -p . 2>/dev/null; then
- as_mkdir_p=:
-else
- as_mkdir_p=false
-fi
-
-as_executable_p="test -f"
-
-# Sed expression to map a string onto a valid CPP name.
-as_tr_cpp="sed y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g"
-
-# Sed expression to map a string onto a valid variable name.
-as_tr_sh="sed y%*+%pp%;s%[^_$as_cr_alnum]%_%g"
-
-
-# IFS
-# We need space, tab and new line, in precisely that order.
-as_nl='
-'
-IFS=" $as_nl"
-
-# CDPATH.
-$as_unset CDPATH
-
-exec 6>&1
-
-# Open the log real soon, to keep \$[0] and so on meaningful, and to
-# report actual input values of CONFIG_FILES etc. instead of their
-# values after options handling. Logging --version etc. is OK.
-exec 5>>config.log
-{
- echo
- sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
-## Running $as_me. ##
-_ASBOX
-} >&5
-cat >&5 <<_CSEOF
-
-This file was extended by $as_me, which was
-generated by GNU Autoconf 2.57. Invocation command line was
-
- CONFIG_FILES = $CONFIG_FILES
- CONFIG_HEADERS = $CONFIG_HEADERS
- CONFIG_LINKS = $CONFIG_LINKS
- CONFIG_COMMANDS = $CONFIG_COMMANDS
- $ $0 $@
-
-_CSEOF
-echo "on `(hostname || uname -n) 2>/dev/null | sed 1q`" >&5
-echo >&5
-_ACEOF
-
-# Files that config.status was made for.
-if test -n "$ac_config_files"; then
- echo "config_files=\"$ac_config_files\"" >>$CONFIG_STATUS
-fi
-
-if test -n "$ac_config_headers"; then
- echo "config_headers=\"$ac_config_headers\"" >>$CONFIG_STATUS
-fi
-
-if test -n "$ac_config_links"; then
- echo "config_links=\"$ac_config_links\"" >>$CONFIG_STATUS
-fi
-
-if test -n "$ac_config_commands"; then
- echo "config_commands=\"$ac_config_commands\"" >>$CONFIG_STATUS
-fi
-
-cat >>$CONFIG_STATUS <<\_ACEOF
-
-ac_cs_usage="\
-\`$as_me' instantiates files from templates according to the
-current configuration.
-
-Usage: $0 [OPTIONS] [FILE]...
-
- -h, --help print this help, then exit
- -V, --version print version number, then exit
- -q, --quiet do not print progress messages
- -d, --debug don't remove temporary files
- --recheck update $as_me by reconfiguring in the same conditions
- --file=FILE[:TEMPLATE]
- instantiate the configuration file FILE
- --header=FILE[:TEMPLATE]
- instantiate the configuration header FILE
-
-Configuration files:
-$config_files
-
-Configuration headers:
-$config_headers
-
-Configuration commands:
-$config_commands
-
-Report bugs to <bug-autoconf@gnu.org>."
-_ACEOF
-
-cat >>$CONFIG_STATUS <<_ACEOF
-ac_cs_version="\\
-config.status
-configured by $0, generated by GNU Autoconf 2.57,
- with options \\"`echo "$ac_configure_args" | sed 's/[\\""\`\$]/\\\\&/g'`\\"
-
-Copyright 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001
-Free Software Foundation, Inc.
-This config.status script is free software; the Free Software Foundation
-gives unlimited permission to copy, distribute and modify it."
-srcdir=$srcdir
-INSTALL="$INSTALL"
-_ACEOF
-
-cat >>$CONFIG_STATUS <<\_ACEOF
-# If no file are specified by the user, then we need to provide default
-# value. By we need to know if files were specified by the user.
-ac_need_defaults=:
-while test $# != 0
-do
- case $1 in
- --*=*)
- ac_option=`expr "x$1" : 'x\([^=]*\)='`
- ac_optarg=`expr "x$1" : 'x[^=]*=\(.*\)'`
- ac_shift=:
- ;;
- -*)
- ac_option=$1
- ac_optarg=$2
- ac_shift=shift
- ;;
- *) # This is not an option, so the user has probably given explicit
- # arguments.
- ac_option=$1
- ac_need_defaults=false;;
- esac
-
- case $ac_option in
- # Handling of the options.
-_ACEOF
-cat >>$CONFIG_STATUS <<\_ACEOF
- -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
- ac_cs_recheck=: ;;
- --version | --vers* | -V )
- echo "$ac_cs_version"; exit 0 ;;
- --he | --h)
- # Conflict between --help and --header
- { { echo "$as_me:$LINENO: error: ambiguous option: $1
-Try \`$0 --help' for more information." >&5
-echo "$as_me: error: ambiguous option: $1
-Try \`$0 --help' for more information." >&2;}
- { (exit 1); exit 1; }; };;
- --help | --hel | -h )
- echo "$ac_cs_usage"; exit 0 ;;
- --debug | --d* | -d )
- debug=: ;;
- --file | --fil | --fi | --f )
- $ac_shift
- CONFIG_FILES="$CONFIG_FILES $ac_optarg"
- ac_need_defaults=false;;
- --header | --heade | --head | --hea )
- $ac_shift
- CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg"
- ac_need_defaults=false;;
- -q | -quiet | --quiet | --quie | --qui | --qu | --q \
- | -silent | --silent | --silen | --sile | --sil | --si | --s)
- ac_cs_silent=: ;;
-
- # This is an error.
- -*) { { echo "$as_me:$LINENO: error: unrecognized option: $1
-Try \`$0 --help' for more information." >&5
-echo "$as_me: error: unrecognized option: $1
-Try \`$0 --help' for more information." >&2;}
- { (exit 1); exit 1; }; } ;;
-
- *) ac_config_targets="$ac_config_targets $1" ;;
-
- esac
- shift
-done
-
-ac_configure_extra_args=
-
-if $ac_cs_silent; then
- exec 6>/dev/null
- ac_configure_extra_args="$ac_configure_extra_args --silent"
-fi
-
-_ACEOF
-cat >>$CONFIG_STATUS <<_ACEOF
-if \$ac_cs_recheck; then
- echo "running $SHELL $0 " $ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
- exec $SHELL $0 $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
-fi
-
-_ACEOF
-
-
-
-
-
-cat >>$CONFIG_STATUS <<\_ACEOF
-for ac_config_target in $ac_config_targets
-do
- case "$ac_config_target" in
- # Handling of arguments.
- "Makefile" ) CONFIG_FILES="$CONFIG_FILES Makefile" ;;
- "doc/Makefile" ) CONFIG_FILES="$CONFIG_FILES doc/Makefile" ;;
- "default" ) CONFIG_COMMANDS="$CONFIG_COMMANDS default" ;;
- "config.h" ) CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;;
- *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
-echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
- { (exit 1); exit 1; }; };;
- esac
-done
-
-# If the user did not use the arguments to specify the items to instantiate,
-# then the envvar interface is used. Set only those that are not.
-# We use the long form for the default assignment because of an extremely
-# bizarre bug on SunOS 4.1.3.
-if $ac_need_defaults; then
- test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
- test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
- test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
-fi
-
-# Have a temporary directory for convenience. Make it in the build tree
-# simply because there is no reason to put it here, and in addition,
-# creating and moving files from /tmp can sometimes cause problems.
-# Create a temporary directory, and hook for its removal unless debugging.
-$debug ||
-{
- trap 'exit_status=$?; rm -rf $tmp && exit $exit_status' 0
- trap '{ (exit 1); exit 1; }' 1 2 13 15
-}
-
-# Create a (secure) tmp directory for tmp files.
-
-{
- tmp=`(umask 077 && mktemp -d -q "./confstatXXXXXX") 2>/dev/null` &&
- test -n "$tmp" && test -d "$tmp"
-} ||
-{
- tmp=./confstat$$-$RANDOM
- (umask 077 && mkdir $tmp)
-} ||
-{
- echo "$me: cannot create a temporary directory in ." >&2
- { (exit 1); exit 1; }
-}
-
-_ACEOF
-
-cat >>$CONFIG_STATUS <<_ACEOF
-
-#
-# CONFIG_FILES section.
-#
-
-# No need to generate the scripts if there are no CONFIG_FILES.
-# This happens for instance when ./config.status config.h
-if test -n "\$CONFIG_FILES"; then
- # Protect against being on the right side of a sed subst in config.status.
- sed 's/,@/@@/; s/@,/@@/; s/,;t t\$/@;t t/; /@;t t\$/s/[\\\\&,]/\\\\&/g;
- s/@@/,@/; s/@@/@,/; s/@;t t\$/,;t t/' >\$tmp/subs.sed <<\\CEOF
-s,@SHELL@,$SHELL,;t t
-s,@PATH_SEPARATOR@,$PATH_SEPARATOR,;t t
-s,@PACKAGE_NAME@,$PACKAGE_NAME,;t t
-s,@PACKAGE_TARNAME@,$PACKAGE_TARNAME,;t t
-s,@PACKAGE_VERSION@,$PACKAGE_VERSION,;t t
-s,@PACKAGE_STRING@,$PACKAGE_STRING,;t t
-s,@PACKAGE_BUGREPORT@,$PACKAGE_BUGREPORT,;t t
-s,@exec_prefix@,$exec_prefix,;t t
-s,@prefix@,$prefix,;t t
-s,@program_transform_name@,$program_transform_name,;t t
-s,@bindir@,$bindir,;t t
-s,@sbindir@,$sbindir,;t t
-s,@libexecdir@,$libexecdir,;t t
-s,@datadir@,$datadir,;t t
-s,@sysconfdir@,$sysconfdir,;t t
-s,@sharedstatedir@,$sharedstatedir,;t t
-s,@localstatedir@,$localstatedir,;t t
-s,@libdir@,$libdir,;t t
-s,@includedir@,$includedir,;t t
-s,@oldincludedir@,$oldincludedir,;t t
-s,@infodir@,$infodir,;t t
-s,@mandir@,$mandir,;t t
-s,@build_alias@,$build_alias,;t t
-s,@host_alias@,$host_alias,;t t
-s,@target_alias@,$target_alias,;t t
-s,@DEFS@,$DEFS,;t t
-s,@ECHO_C@,$ECHO_C,;t t
-s,@ECHO_N@,$ECHO_N,;t t
-s,@ECHO_T@,$ECHO_T,;t t
-s,@LIBS@,$LIBS,;t t
-s,@VERSION@,$VERSION,;t t
-s,@ac_prefix_program@,$ac_prefix_program,;t t
-s,@CC@,$CC,;t t
-s,@CFLAGS@,$CFLAGS,;t t
-s,@LDFLAGS@,$LDFLAGS,;t t
-s,@CPPFLAGS@,$CPPFLAGS,;t t
-s,@ac_ct_CC@,$ac_ct_CC,;t t
-s,@EXEEXT@,$EXEEXT,;t t
-s,@OBJEXT@,$OBJEXT,;t t
-s,@CPP@,$CPP,;t t
-s,@EGREP@,$EGREP,;t t
-s,@AWK@,$AWK,;t t
-s,@INSTALL_PROGRAM@,$INSTALL_PROGRAM,;t t
-s,@INSTALL_SCRIPT@,$INSTALL_SCRIPT,;t t
-s,@INSTALL_DATA@,$INSTALL_DATA,;t t
-s,@WRITEPATH@,$WRITEPATH,;t t
-s,@XTERMPATH@,$XTERMPATH,;t t
-s,@LIBOBJS@,$LIBOBJS,;t t
-s,@LTLIBOBJS@,$LTLIBOBJS,;t t
-CEOF
-
-_ACEOF
-
- cat >>$CONFIG_STATUS <<\_ACEOF
- # Split the substitutions into bite-sized pieces for seds with
- # small command number limits, like on Digital OSF/1 and HP-UX.
- ac_max_sed_lines=48
- ac_sed_frag=1 # Number of current file.
- ac_beg=1 # First line for current file.
- ac_end=$ac_max_sed_lines # Line after last line for current file.
- ac_more_lines=:
- ac_sed_cmds=
- while $ac_more_lines; do
- if test $ac_beg -gt 1; then
- sed "1,${ac_beg}d; ${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
- else
- sed "${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
- fi
- if test ! -s $tmp/subs.frag; then
- ac_more_lines=false
- else
- # The purpose of the label and of the branching condition is to
- # speed up the sed processing (if there are no `@' at all, there
- # is no need to browse any of the substitutions).
- # These are the two extra sed commands mentioned above.
- (echo ':t
- /@[a-zA-Z_][a-zA-Z_0-9]*@/!b' && cat $tmp/subs.frag) >$tmp/subs-$ac_sed_frag.sed
- if test -z "$ac_sed_cmds"; then
- ac_sed_cmds="sed -f $tmp/subs-$ac_sed_frag.sed"
- else
- ac_sed_cmds="$ac_sed_cmds | sed -f $tmp/subs-$ac_sed_frag.sed"
- fi
- ac_sed_frag=`expr $ac_sed_frag + 1`
- ac_beg=$ac_end
- ac_end=`expr $ac_end + $ac_max_sed_lines`
- fi
- done
- if test -z "$ac_sed_cmds"; then
- ac_sed_cmds=cat
- fi
-fi # test -n "$CONFIG_FILES"
-
-_ACEOF
-cat >>$CONFIG_STATUS <<\_ACEOF
-for ac_file in : $CONFIG_FILES; do test "x$ac_file" = x: && continue
- # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
- case $ac_file in
- - | *:- | *:-:* ) # input from stdin
- cat >$tmp/stdin
- ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
- ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
- *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
- ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
- * ) ac_file_in=$ac_file.in ;;
- esac
-
- # Compute @srcdir@, @top_srcdir@, and @INSTALL@ for subdirectories.
- ac_dir=`(dirname "$ac_file") 2>/dev/null ||
-$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
- X"$ac_file" : 'X\(//\)[^/]' \| \
- X"$ac_file" : 'X\(//\)$' \| \
- X"$ac_file" : 'X\(/\)' \| \
- . : '\(.\)' 2>/dev/null ||
-echo X"$ac_file" |
- sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
- /^X\(\/\/\)[^/].*/{ s//\1/; q; }
- /^X\(\/\/\)$/{ s//\1/; q; }
- /^X\(\/\).*/{ s//\1/; q; }
- s/.*/./; q'`
- { if $as_mkdir_p; then
- mkdir -p "$ac_dir"
- else
- as_dir="$ac_dir"
- as_dirs=
- while test ! -d "$as_dir"; do
- as_dirs="$as_dir $as_dirs"
- as_dir=`(dirname "$as_dir") 2>/dev/null ||
-$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
- X"$as_dir" : 'X\(//\)[^/]' \| \
- X"$as_dir" : 'X\(//\)$' \| \
- X"$as_dir" : 'X\(/\)' \| \
- . : '\(.\)' 2>/dev/null ||
-echo X"$as_dir" |
- sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
- /^X\(\/\/\)[^/].*/{ s//\1/; q; }
- /^X\(\/\/\)$/{ s//\1/; q; }
- /^X\(\/\).*/{ s//\1/; q; }
- s/.*/./; q'`
- done
- test ! -n "$as_dirs" || mkdir $as_dirs
- fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
-echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
- { (exit 1); exit 1; }; }; }
-
- ac_builddir=.
-
-if test "$ac_dir" != .; then
- ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
- # A "../" for each directory in $ac_dir_suffix.
- ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
-else
- ac_dir_suffix= ac_top_builddir=
-fi
-
-case $srcdir in
- .) # No --srcdir option. We are building in place.
- ac_srcdir=.
- if test -z "$ac_top_builddir"; then
- ac_top_srcdir=.
- else
- ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
- fi ;;
- [\\/]* | ?:[\\/]* ) # Absolute path.
- ac_srcdir=$srcdir$ac_dir_suffix;
- ac_top_srcdir=$srcdir ;;
- *) # Relative path.
- ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
- ac_top_srcdir=$ac_top_builddir$srcdir ;;
-esac
-# Don't blindly perform a `cd "$ac_dir"/$ac_foo && pwd` since $ac_foo can be
-# absolute.
-ac_abs_builddir=`cd "$ac_dir" && cd $ac_builddir && pwd`
-ac_abs_top_builddir=`cd "$ac_dir" && cd ${ac_top_builddir}. && pwd`
-ac_abs_srcdir=`cd "$ac_dir" && cd $ac_srcdir && pwd`
-ac_abs_top_srcdir=`cd "$ac_dir" && cd $ac_top_srcdir && pwd`
-
-
- case $INSTALL in
- [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
- *) ac_INSTALL=$ac_top_builddir$INSTALL ;;
- esac
-
- if test x"$ac_file" != x-; then
- { echo "$as_me:$LINENO: creating $ac_file" >&5
-echo "$as_me: creating $ac_file" >&6;}
- rm -f "$ac_file"
- fi
- # Let's still pretend it is `configure' which instantiates (i.e., don't
- # use $as_me), people would be surprised to read:
- # /* config.h. Generated by config.status. */
- if test x"$ac_file" = x-; then
- configure_input=
- else
- configure_input="$ac_file. "
- fi
- configure_input=$configure_input"Generated from `echo $ac_file_in |
- sed 's,.*/,,'` by configure."
-
- # First look for the input files in the build tree, otherwise in the
- # src tree.
- ac_file_inputs=`IFS=:
- for f in $ac_file_in; do
- case $f in
- -) echo $tmp/stdin ;;
- [\\/$]*)
- # Absolute (can't be DOS-style, as IFS=:)
- test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
-echo "$as_me: error: cannot find input file: $f" >&2;}
- { (exit 1); exit 1; }; }
- echo $f;;
- *) # Relative
- if test -f "$f"; then
- # Build tree
- echo $f
- elif test -f "$srcdir/$f"; then
- # Source tree
- echo $srcdir/$f
- else
- # /dev/null tree
- { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
-echo "$as_me: error: cannot find input file: $f" >&2;}
- { (exit 1); exit 1; }; }
- fi;;
- esac
- done` || { (exit 1); exit 1; }
-_ACEOF
-cat >>$CONFIG_STATUS <<_ACEOF
- sed "$ac_vpsub
-$extrasub
-_ACEOF
-cat >>$CONFIG_STATUS <<\_ACEOF
-:t
-/@[a-zA-Z_][a-zA-Z_0-9]*@/!b
-s,@configure_input@,$configure_input,;t t
-s,@srcdir@,$ac_srcdir,;t t
-s,@abs_srcdir@,$ac_abs_srcdir,;t t
-s,@top_srcdir@,$ac_top_srcdir,;t t
-s,@abs_top_srcdir@,$ac_abs_top_srcdir,;t t
-s,@builddir@,$ac_builddir,;t t
-s,@abs_builddir@,$ac_abs_builddir,;t t
-s,@top_builddir@,$ac_top_builddir,;t t
-s,@abs_top_builddir@,$ac_abs_top_builddir,;t t
-s,@INSTALL@,$ac_INSTALL,;t t
-" $ac_file_inputs | (eval "$ac_sed_cmds") >$tmp/out
- rm -f $tmp/stdin
- if test x"$ac_file" != x-; then
- mv $tmp/out $ac_file
- else
- cat $tmp/out
- rm -f $tmp/out
- fi
-
-done
-_ACEOF
-cat >>$CONFIG_STATUS <<\_ACEOF
-
-#
-# CONFIG_HEADER section.
-#
-
-# These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
-# NAME is the cpp macro being defined and VALUE is the value it is being given.
-#
-# ac_d sets the value in "#define NAME VALUE" lines.
-ac_dA='s,^\([ ]*\)#\([ ]*define[ ][ ]*\)'
-ac_dB='[ ].*$,\1#\2'
-ac_dC=' '
-ac_dD=',;t'
-# ac_u turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
-ac_uA='s,^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
-ac_uB='$,\1#\2define\3'
-ac_uC=' '
-ac_uD=',;t'
-
-for ac_file in : $CONFIG_HEADERS; do test "x$ac_file" = x: && continue
- # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
- case $ac_file in
- - | *:- | *:-:* ) # input from stdin
- cat >$tmp/stdin
- ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
- ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
- *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
- ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
- * ) ac_file_in=$ac_file.in ;;
- esac
-
- test x"$ac_file" != x- && { echo "$as_me:$LINENO: creating $ac_file" >&5
-echo "$as_me: creating $ac_file" >&6;}
-
- # First look for the input files in the build tree, otherwise in the
- # src tree.
- ac_file_inputs=`IFS=:
- for f in $ac_file_in; do
- case $f in
- -) echo $tmp/stdin ;;
- [\\/$]*)
- # Absolute (can't be DOS-style, as IFS=:)
- test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
-echo "$as_me: error: cannot find input file: $f" >&2;}
- { (exit 1); exit 1; }; }
- echo $f;;
- *) # Relative
- if test -f "$f"; then
- # Build tree
- echo $f
- elif test -f "$srcdir/$f"; then
- # Source tree
- echo $srcdir/$f
- else
- # /dev/null tree
- { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
-echo "$as_me: error: cannot find input file: $f" >&2;}
- { (exit 1); exit 1; }; }
- fi;;
- esac
- done` || { (exit 1); exit 1; }
- # Remove the trailing spaces.
- sed 's/[ ]*$//' $ac_file_inputs >$tmp/in
-
-_ACEOF
-
-# Transform confdefs.h into two sed scripts, `conftest.defines' and
-# `conftest.undefs', that substitutes the proper values into
-# config.h.in to produce config.h. The first handles `#define'
-# templates, and the second `#undef' templates.
-# And first: Protect against being on the right side of a sed subst in
-# config.status. Protect against being in an unquoted here document
-# in config.status.
-rm -f conftest.defines conftest.undefs
-# Using a here document instead of a string reduces the quoting nightmare.
-# Putting comments in sed scripts is not portable.
-#
-# `end' is used to avoid that the second main sed command (meant for
-# 0-ary CPP macros) applies to n-ary macro definitions.
-# See the Autoconf documentation for `clear'.
-cat >confdef2sed.sed <<\_ACEOF
-s/[\\&,]/\\&/g
-s,[\\$`],\\&,g
-t clear
-: clear
-s,^[ ]*#[ ]*define[ ][ ]*\([^ (][^ (]*\)\(([^)]*)\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1\2${ac_dC}\3${ac_dD},gp
-t end
-s,^[ ]*#[ ]*define[ ][ ]*\([^ ][^ ]*\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD},gp
-: end
-_ACEOF
-# If some macros were called several times there might be several times
-# the same #defines, which is useless. Nevertheless, we may not want to
-# sort them, since we want the *last* AC-DEFINE to be honored.
-uniq confdefs.h | sed -n -f confdef2sed.sed >conftest.defines
-sed 's/ac_d/ac_u/g' conftest.defines >conftest.undefs
-rm -f confdef2sed.sed
-
-# This sed command replaces #undef with comments. This is necessary, for
-# example, in the case of _POSIX_SOURCE, which is predefined and required
-# on some systems where configure will not decide to define it.
-cat >>conftest.undefs <<\_ACEOF
-s,^[ ]*#[ ]*undef[ ][ ]*[a-zA-Z_][a-zA-Z_0-9]*,/* & */,
-_ACEOF
-
-# Break up conftest.defines because some shells have a limit on the size
-# of here documents, and old seds have small limits too (100 cmds).
-echo ' # Handle all the #define templates only if necessary.' >>$CONFIG_STATUS
-echo ' if grep "^[ ]*#[ ]*define" $tmp/in >/dev/null; then' >>$CONFIG_STATUS
-echo ' # If there are no defines, we may have an empty if/fi' >>$CONFIG_STATUS
-echo ' :' >>$CONFIG_STATUS
-rm -f conftest.tail
-while grep . conftest.defines >/dev/null
-do
- # Write a limited-size here document to $tmp/defines.sed.
- echo ' cat >$tmp/defines.sed <<CEOF' >>$CONFIG_STATUS
- # Speed up: don't consider the non `#define' lines.
- echo '/^[ ]*#[ ]*define/!b' >>$CONFIG_STATUS
- # Work around the forget-to-reset-the-flag bug.
- echo 't clr' >>$CONFIG_STATUS
- echo ': clr' >>$CONFIG_STATUS
- sed ${ac_max_here_lines}q conftest.defines >>$CONFIG_STATUS
- echo 'CEOF
- sed -f $tmp/defines.sed $tmp/in >$tmp/out
- rm -f $tmp/in
- mv $tmp/out $tmp/in
-' >>$CONFIG_STATUS
- sed 1,${ac_max_here_lines}d conftest.defines >conftest.tail
- rm -f conftest.defines
- mv conftest.tail conftest.defines
-done
-rm -f conftest.defines
-echo ' fi # grep' >>$CONFIG_STATUS
-echo >>$CONFIG_STATUS
-
-# Break up conftest.undefs because some shells have a limit on the size
-# of here documents, and old seds have small limits too (100 cmds).
-echo ' # Handle all the #undef templates' >>$CONFIG_STATUS
-rm -f conftest.tail
-while grep . conftest.undefs >/dev/null
-do
- # Write a limited-size here document to $tmp/undefs.sed.
- echo ' cat >$tmp/undefs.sed <<CEOF' >>$CONFIG_STATUS
- # Speed up: don't consider the non `#undef'
- echo '/^[ ]*#[ ]*undef/!b' >>$CONFIG_STATUS
- # Work around the forget-to-reset-the-flag bug.
- echo 't clr' >>$CONFIG_STATUS
- echo ': clr' >>$CONFIG_STATUS
- sed ${ac_max_here_lines}q conftest.undefs >>$CONFIG_STATUS
- echo 'CEOF
- sed -f $tmp/undefs.sed $tmp/in >$tmp/out
- rm -f $tmp/in
- mv $tmp/out $tmp/in
-' >>$CONFIG_STATUS
- sed 1,${ac_max_here_lines}d conftest.undefs >conftest.tail
- rm -f conftest.undefs
- mv conftest.tail conftest.undefs
-done
-rm -f conftest.undefs
-
-cat >>$CONFIG_STATUS <<\_ACEOF
- # Let's still pretend it is `configure' which instantiates (i.e., don't
- # use $as_me), people would be surprised to read:
- # /* config.h. Generated by config.status. */
- if test x"$ac_file" = x-; then
- echo "/* Generated by configure. */" >$tmp/config.h
- else
- echo "/* $ac_file. Generated by configure. */" >$tmp/config.h
- fi
- cat $tmp/in >>$tmp/config.h
- rm -f $tmp/in
- if test x"$ac_file" != x-; then
- if diff $ac_file $tmp/config.h >/dev/null 2>&1; then
- { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
-echo "$as_me: $ac_file is unchanged" >&6;}
- else
- ac_dir=`(dirname "$ac_file") 2>/dev/null ||
-$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
- X"$ac_file" : 'X\(//\)[^/]' \| \
- X"$ac_file" : 'X\(//\)$' \| \
- X"$ac_file" : 'X\(/\)' \| \
- . : '\(.\)' 2>/dev/null ||
-echo X"$ac_file" |
- sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
- /^X\(\/\/\)[^/].*/{ s//\1/; q; }
- /^X\(\/\/\)$/{ s//\1/; q; }
- /^X\(\/\).*/{ s//\1/; q; }
- s/.*/./; q'`
- { if $as_mkdir_p; then
- mkdir -p "$ac_dir"
- else
- as_dir="$ac_dir"
- as_dirs=
- while test ! -d "$as_dir"; do
- as_dirs="$as_dir $as_dirs"
- as_dir=`(dirname "$as_dir") 2>/dev/null ||
-$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
- X"$as_dir" : 'X\(//\)[^/]' \| \
- X"$as_dir" : 'X\(//\)$' \| \
- X"$as_dir" : 'X\(/\)' \| \
- . : '\(.\)' 2>/dev/null ||
-echo X"$as_dir" |
- sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
- /^X\(\/\/\)[^/].*/{ s//\1/; q; }
- /^X\(\/\/\)$/{ s//\1/; q; }
- /^X\(\/\).*/{ s//\1/; q; }
- s/.*/./; q'`
- done
- test ! -n "$as_dirs" || mkdir $as_dirs
- fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
-echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
- { (exit 1); exit 1; }; }; }
-
- rm -f $ac_file
- mv $tmp/config.h $ac_file
- fi
- else
- cat $tmp/config.h
- rm -f $tmp/config.h
- fi
-done
-_ACEOF
-cat >>$CONFIG_STATUS <<\_ACEOF
-
-#
-# CONFIG_COMMANDS section.
-#
-for ac_file in : $CONFIG_COMMANDS; do test "x$ac_file" = x: && continue
- ac_dest=`echo "$ac_file" | sed 's,:.*,,'`
- ac_source=`echo "$ac_file" | sed 's,[^:]*:,,'`
- ac_dir=`(dirname "$ac_dest") 2>/dev/null ||
-$as_expr X"$ac_dest" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
- X"$ac_dest" : 'X\(//\)[^/]' \| \
- X"$ac_dest" : 'X\(//\)$' \| \
- X"$ac_dest" : 'X\(/\)' \| \
- . : '\(.\)' 2>/dev/null ||
-echo X"$ac_dest" |
- sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
- /^X\(\/\/\)[^/].*/{ s//\1/; q; }
- /^X\(\/\/\)$/{ s//\1/; q; }
- /^X\(\/\).*/{ s//\1/; q; }
- s/.*/./; q'`
- ac_builddir=.
-
-if test "$ac_dir" != .; then
- ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
- # A "../" for each directory in $ac_dir_suffix.
- ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
-else
- ac_dir_suffix= ac_top_builddir=
-fi
-
-case $srcdir in
- .) # No --srcdir option. We are building in place.
- ac_srcdir=.
- if test -z "$ac_top_builddir"; then
- ac_top_srcdir=.
- else
- ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
- fi ;;
- [\\/]* | ?:[\\/]* ) # Absolute path.
- ac_srcdir=$srcdir$ac_dir_suffix;
- ac_top_srcdir=$srcdir ;;
- *) # Relative path.
- ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
- ac_top_srcdir=$ac_top_builddir$srcdir ;;
-esac
-# Don't blindly perform a `cd "$ac_dir"/$ac_foo && pwd` since $ac_foo can be
-# absolute.
-ac_abs_builddir=`cd "$ac_dir" && cd $ac_builddir && pwd`
-ac_abs_top_builddir=`cd "$ac_dir" && cd ${ac_top_builddir}. && pwd`
-ac_abs_srcdir=`cd "$ac_dir" && cd $ac_srcdir && pwd`
-ac_abs_top_srcdir=`cd "$ac_dir" && cd $ac_top_srcdir && pwd`
-
-
- { echo "$as_me:$LINENO: executing $ac_dest commands" >&5
-echo "$as_me: executing $ac_dest commands" >&6;}
- case $ac_dest in
- default )
-# a hook for preserving undef directive in config.h
-mv config.h conftest
-sed -e 's@^\(.*\)defin.\( .*\) .*/\*\(.*KEEP_UNDEF_HERE\)@\1undef\2 /\*\3@' < conftest > config.h
-rm -f conftest
- ;;
- esac
-done
-_ACEOF
-
-cat >>$CONFIG_STATUS <<\_ACEOF
-
-{ (exit 0); exit 0; }
-_ACEOF
-chmod +x $CONFIG_STATUS
-ac_clean_files=$ac_clean_files_save
-
-
-# configure is writing to config.log, and then calls config.status.
-# config.status does its own redirection, appending to config.log.
-# Unfortunately, on DOS this fails, as config.log is still kept open
-# by configure, so config.status won't be able to write to it; its
-# output is simply discarded. So we exec the FD to /dev/null,
-# effectively closing config.log, so it can be properly (re)opened and
-# appended to by config.status. When coming back to configure, we
-# need to make the FD available again.
-if test "$no_create" != yes; then
- ac_cs_success=:
- ac_config_status_args=
- test "$silent" = yes &&
- ac_config_status_args="$ac_config_status_args --quiet"
- exec 5>/dev/null
- $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
- exec 5>>config.log
- # Use ||, not &&, to avoid exiting from the if with $? = 1, which
- # would make configure fail if this is the last instruction.
- $ac_cs_success || { (exit 1); exit 1; }
-fi
-
-
-echo ""
-if test -z "$AWK"; then
-echo "!!! Since you have no awk you must copy the files 'comm.h.dist'"
-echo "!!! and 'term.h.dist' to 'comm.h' and 'term.h'."
-echo "!!! Do _not_ change the user configuration section in config.h!"
-echo "Please check the pathnames in the Makefile."
-else
-echo "Now please check the pathnames in the Makefile and in the user"
-echo "configuration section in config.h."
-fi
-echo "Then type 'make' to make screen. Good luck."
-echo ""
diff --git a/doc/install.sh b/doc/install.sh
deleted file mode 120000
index 3f44f99..0000000
--- a/doc/install.sh
+++ /dev/null
@@ -1 +0,0 @@
-../install.sh \ No newline at end of file
diff --git a/doc/screen.info b/doc/screen.info
deleted file mode 100644
index 3a18ff3..0000000
--- a/doc/screen.info
+++ /dev/null
@@ -1,198 +0,0 @@
-This is screen.info, produced by makeinfo version 4.5 from
-./screen.texinfo.
-
-INFO-DIR-SECTION General Commands
-START-INFO-DIR-ENTRY
-* Screen: (screen). Full-screen window manager.
-END-INFO-DIR-ENTRY
-
- This file documents the `Screen' virtual terminal manager.
-
- Copyright (c) 1993-2003 Free Software Foundation, Inc.
-
- Permission is granted to make and distribute verbatim copies of this
-manual provided the copyright notice and this permission notice are
-preserved on all copies.
-
- Permission is granted to copy and distribute modified versions of
-this manual under the conditions for verbatim copying, provided that
-the entire resulting derived work is distributed under the terms of a
-permission notice identical to this one.
-
- Permission is granted to copy and distribute translations of this
-manual into another language, under the above conditions for modified
-versions, except that this permission notice may be stated in a
-translation approved by the Foundation.
-
-
-Indirect:
-screen.info-1: 995
-screen.info-2: 46865
-screen.info-3: 92444
-screen.info-4: 140698
-screen.info-5: 190096
-
-Tag Table:
-(Indirect)
-Node: Top995
-Node: Overview3003
-Node: Getting Started6633
-Node: Invoking Screen8387
-Node: Customization17073
-Node: Startup Files17619
-Node: Source19265
-Node: Colon19950
-Node: Commands20564
-Node: Default Key Bindings21521
-Node: Command Summary27200
-Node: New Window41325
-Node: Chdir42126
-Node: Screen Command43097
-Node: Setenv44798
-Node: Shell45318
-Node: Term46084
-Node: Window Types46865
-Node: Selecting51188
-Node: Next and Previous51818
-Node: Other Window52348
-Node: Select52756
-Node: Windowlist53571
-Node: Session Management54666
-Node: Detach55495
-Node: Power Detach56882
-Node: Lock57523
-Node: Multiuser Session58409
-Node: Multiuser59371
-Node: Acladd59758
-Node: Aclchg60323
-Node: Acldel61730
-Node: Aclgrp62065
-Node: Displays62716
-Node: Umask63010
-Node: Wall63959
-Node: Writelock64196
-Node: Su65092
-Node: Session Name65892
-Node: Suspend66439
-Node: Quit66771
-Node: Regions67195
-Node: Split67762
-Node: Focus68052
-Node: Only68630
-Node: Remove68794
-Node: Resize69002
-Node: Caption69650
-Node: Fit70407
-Node: Window Settings70709
-Node: Naming Windows71444
-Node: Title Command72945
-Node: Dynamic Titles73219
-Node: Title Prompts74755
-Node: Title Screenrc75836
-Node: Console77475
-Node: Kill77918
-Node: Login78807
-Node: Mode79624
-Node: Monitor80022
-Node: Windows81433
-Node: Hardstatus82493
-Node: Virtual Terminal83686
-Node: Control Sequences84744
-Node: Input Translation92444
-Node: Digraph96915
-Node: Bell97707
-Node: Clear99586
-Node: Info99789
-Node: Redisplay101818
-Node: Wrap103121
-Node: Reset103872
-Node: Window Size104190
-Node: Character Processing105043
-Node: Copy and Paste109368
-Node: Copy109973
-Node: Line Termination110820
-Node: Scrollback111229
-Node: Copy Mode Keys111966
-Node: Movement112780
-Node: Marking113985
-Node: Repeat count114360
-Node: Searching114674
-Node: Specials115066
-Node: Paste117020
-Node: Registers120075
-Node: Screen Exchange120868
-Node: History122273
-Node: Subprocess Execution123013
-Node: Exec123377
-Node: Using Exec125123
-Node: Key Binding126962
-Node: Bind127605
-Node: Bind Examples128849
-Node: Command Character129905
-Node: Help131540
-Node: Bindkey132148
-Node: Bindkey Examples133698
-Node: Bindkey Control134587
-Node: Flow Control135184
-Node: Flow Control Summary135760
-Node: Flow138694
-Node: XON/XOFF139468
-Node: Termcap139841
-Node: Window Termcap140698
-Node: Dump Termcap146059
-Node: Termcap Syntax146773
-Node: Termcap Examples148939
-Node: Special Capabilities150980
-Node: Autonuke153755
-Node: Obuflimit154405
-Node: Character Translation155234
-Node: Message Line157848
-Node: Privacy Message158759
-Node: Hardware Status Line159256
-Node: Last Message160959
-Node: Message Wait161386
-Node: Logging161812
-Node: Hardcopy162136
-Node: Log163071
-Node: Startup164848
-Node: echo165255
-Node: sleep165663
-Node: Startup Message166004
-Node: Miscellaneous166277
-Node: At167716
-Node: Break169686
-Node: Debug171332
-Node: License171809
-Node: Nethack172074
-Node: Nonblock172751
-Node: Number173730
-Node: Silence174100
-Node: Time175036
-Node: Verbose175628
-Node: Version175962
-Node: Zombie176171
-Node: Printcmd177225
-Node: Sorendition177931
-Node: Attrcolor178361
-Node: Setsid179411
-Node: Eval179928
-Node: Maxwin180137
-Node: Backtick180407
-Node: Screen Saver181654
-Node: Zmodem182779
-Node: String Escapes183664
-Node: Environment189000
-Node: Files190096
-Node: Credits191184
-Node: Bugs193195
-Node: Known Bugs193665
-Node: Reporting Bugs195759
-Node: Availability196525
-Node: Installation197069
-Node: Socket Directory197459
-Node: Compiling Screen197989
-Node: Concept Index199376
-Node: Command Index201468
-Node: Keystroke Index210715
-
-End Tag Table
diff --git a/doc/screen.info-1 b/doc/screen.info-1
deleted file mode 100644
index ece1aba..0000000
--- a/doc/screen.info-1
+++ /dev/null
@@ -1,1447 +0,0 @@
-This is screen.info, produced by makeinfo version 4.5 from
-./screen.texinfo.
-
-INFO-DIR-SECTION General Commands
-START-INFO-DIR-ENTRY
-* Screen: (screen). Full-screen window manager.
-END-INFO-DIR-ENTRY
-
- This file documents the `Screen' virtual terminal manager.
-
- Copyright (c) 1993-2003 Free Software Foundation, Inc.
-
- Permission is granted to make and distribute verbatim copies of this
-manual provided the copyright notice and this permission notice are
-preserved on all copies.
-
- Permission is granted to copy and distribute modified versions of
-this manual under the conditions for verbatim copying, provided that
-the entire resulting derived work is distributed under the terms of a
-permission notice identical to this one.
-
- Permission is granted to copy and distribute translations of this
-manual into another language, under the above conditions for modified
-versions, except that this permission notice may be stated in a
-translation approved by the Foundation.
-
-
-File: screen.info, Node: Top, Next: Overview, Prev: (dir), Up: (dir)
-
-Screen
-******
-
- This file documents the `Screen' virtual terminal manager, version
-4.0.2.
-
-* Menu:
-
-* Overview:: Preliminary information.
-* Getting Started:: An introduction to `screen'.
-* Invoking Screen:: Command line options for `screen'.
-* Customization:: The `.screenrc' file.
-* Commands:: List all of the commands.
-* New Window:: Running a program in a new window.
-* Selecting:: Selecting a window to display.
-* Session Management:: Suspend/detach, grant access, connect sessions.
-* Regions:: Split-screen commands.
-* Window Settings:: Titles, logging, etc.
-* Virtual Terminal:: Controlling the `screen' VT100 emulation.
-* Copy and Paste:: Exchanging text between windows and sessions.
-* Subprocess Execution:: I/O filtering with `exec'.
-* Key Binding:: Binding commands to keys.
-* Flow Control:: Trap or pass flow control characters.
-* Termcap:: Tweaking your terminal's termcap entry.
-* Message Line:: The `screen' message line.
-* Logging:: Keeping a record of your session.
-* Startup:: Functions only useful at `screen' startup.
-* Miscellaneous:: Various other commands.
-* String Escapes:: Inserting current information into strings
-* Environment:: Environment variables used by `screen'.
-* Files:: Files used by `screen'.
-* Credits:: Who's who of `screen'.
-* Bugs:: What to do if you find a bug.
-* Installation:: Getting `screen' running on your system.
-* Concept Index:: Index of concepts.
-* Command Index:: Index of all `screen' commands.
-* Keystroke Index:: Index of default key bindings.
-
-
-File: screen.info, Node: Overview, Next: Getting Started, Prev: Top, Up: Top
-
-Overview
-********
-
- Screen is a full-screen window manager that multiplexes a physical
-terminal between several processes, typically interactive shells. Each
-virtual terminal provides the functions of the DEC VT100 terminal and,
-in addition, several control functions from the ISO 6429 (ECMA 48, ANSI
-X3.64) and ISO 2022 standards (e.g. insert/delete line and support for
-multiple character sets). There is a scrollback history buffer for
-each virtual terminal and a copy-and-paste mechanism that allows the
-user to move text regions between windows.
-
- When `screen' is called, it creates a single window with a shell in
-it (or the specified command) and then gets out of your way so that you
-can use the program as you normally would. Then, at any time, you can
-create new (full-screen) windows with other programs in them (including
-more shells), kill the current window, view a list of the active
-windows, turn output logging on and off, copy text between windows, view
-the scrollback history, switch between windows, etc. All windows run
-their programs completely independent of each other. Programs continue
-to run when their window is currently not visible and even when the
-whole screen session is detached from the user's terminal.
-
- When a program terminates, `screen' (per default) kills the window
-that contained it. If this window was in the foreground, the display
-switches to the previously displayed window; if none are left, `screen'
-exits.
-
- Everything you type is sent to the program running in the current
-window. The only exception to this is the one keystroke that is used to
-initiate a command to the window manager. By default, each command
-begins with a control-a (abbreviated `C-a' from now on), and is
-followed by one other keystroke. The command character (*note Command
-Character::) and all the key bindings (*note Key Binding::) can be fully
-customized to be anything you like, though they are always two
-characters in length.
-
- `Screen' does not understand the prefix `C-' to mean control.
-Please use the caret notation (`^A' instead of `C-a') as arguments to
-e.g. the `escape' command or the `-e' option. `Screen' will also print
-out control characters in caret notation.
-
- The standard way to create a new window is to type `C-a c'. This
-creates a new window running a shell and switches to that window
-immediately, regardless of the state of the process running in the
-current window. Similarly, you can create a new window with a custom
-command in it by first binding the command to a keystroke (in your
-`.screenrc' file or at the `C-a :' command line) and then using it just
-like the `C-a c' command. In addition, new windows can be created by
-running a command like:
-
- screen emacs prog.c
-
-from a shell prompt within a previously created window. This will not
-run another copy of `screen', but will instead supply the command name
-and its arguments to the window manager (specified in the $STY
-environment variable) who will use it to create the new window. The
-above example would start the `emacs' editor (editing `prog.c') and
-switch to its window.
-
- If `/etc/utmp' is writable by `screen', an appropriate record will
-be written to this file for each window, and removed when the window is
-closed. This is useful for working with `talk', `script', `shutdown',
-`rsend', `sccs' and other similar programs that use the utmp file to
-determine who you are. As long as `screen' is active on your terminal,
-the terminal's own record is removed from the utmp file. *Note Login::.
-
-
-File: screen.info, Node: Getting Started, Next: Invoking Screen, Prev: Overview, Up: Top
-
-Getting Started
-***************
-
- Before you begin to use `screen' you'll need to make sure you have
-correctly selected your terminal type, just as you would for any other
-termcap/terminfo program. (You can do this by using `tset', `qterm',
-or just `set term=mytermtype', for example.)
-
- If you're impatient and want to get started without doing a lot more
-reading, you should remember this one command: `C-a ?' (*note Key
-Binding::). Typing these two characters will display a list of the
-available `screen' commands and their bindings. Each keystroke is
-discussed in the section on keystrokes (*note Default Key Bindings::).
-Another section (*note Customization::) deals with the contents of your
-`.screenrc'.
-
- If your terminal is a "true" auto-margin terminal (it doesn't allow
-the last position on the screen to be updated without scrolling the
-screen) consider using a version of your terminal's termcap that has
-automatic margins turned _off_. This will ensure an accurate and
-optimal update of the screen in all circumstances. Most terminals
-nowadays have "magic" margins (automatic margins plus usable last
-column). This is the VT100 style type and perfectly suited for
-`screen'. If all you've got is a "true" auto-margin terminal `screen'
-will be content to use it, but updating a character put into the last
-position on the screen may not be possible until the screen scrolls or
-the character is moved into a safe position in some other way. This
-delay can be shortened by using a terminal with insert-character
-capability.
-
- *Note Special Capabilities::, for more information about telling
-`screen' what kind of terminal you have.
-
-
-File: screen.info, Node: Invoking Screen, Next: Customization, Prev: Getting Started, Up: Top
-
-Invoking `Screen'
-*****************
-
- Screen has the following command-line options:
-
-`-a'
- Include _all_ capabilities (with some minor exceptions) in each
- window's termcap, even if `screen' must redraw parts of the display
- in order to implement a function.
-
-`-A'
- Adapt the sizes of all windows to the size of the display. By
- default, `screen' may try to restore its old window sizes when
- attaching to resizable terminals (those with `WS' in their
- descriptions, e.g. `suncmd' or some varieties of `xterm').
-
-`-c FILE'
- Use FILE as the user's configuration file instead of the default
- of `$HOME/.screenrc'.
-
-`-d [PID.SESSIONNAME]'
-`-D [PID.SESSIONNAME]'
- Do not start `screen', but instead detach a `screen' session
- running elsewhere (*note Detach::). `-d' has the same effect as
- typing `C-a d' from the controlling terminal for the session.
- `-D' is the equivalent to the power detach key. If no session can
- be detached, this option is ignored. In combination with the
- `-r'/`-R' option more powerful effects can be achieved:
-
- `-d -r'
- Reattach a session and if necessary detach it first.
-
- `-d -R'
- Reattach a session and if necessary detach or even create
- it first.
-
- `-d -RR'
- Reattach a session and if necessary detach or create it. Use
- the first session if more than one session is available.
-
- `-D -r'
- Reattach a session. If necessary detach and logout remotely
- first.
-
- `-D -R'
- Attach here and now. In detail this means: If a session is
- running, then reattach. If necessary detach and logout
- remotely first. If it was not running create it and notify
- the user. This is the author's favorite.
-
- `-D -RR'
- Attach here and now. Whatever that means, just do it.
-
- _Note_: It is a good idea to check the status of your sessions
- with `screen -list' before using this option.
-
-`-e XY'
- Set the command character to X, and the character generating a
- literal command character (when typed after the command character)
- to Y. The defaults are `C-a' and `a', which can be specified as
- `-e^Aa'. When creating a `screen' session, this option sets the
- default command character. In a multiuser session all users added
- will start off with this command character. But when attaching to
- an already running session, this option only changes the command
- character of the attaching user. This option is equivalent to the
- commands `defescape' or `escape' respectively. (*note Command
- Character::).
-
-`-f'
-`-fn'
-`-fa'
- Set flow-control to on, off, or automatic switching mode,
- respectively. This option is equivalent to the `defflow' command
- (*note Flow Control::).
-
-`-h NUM'
- Set the history scrollback buffer to be NUM lines high.
- Equivalent to the `defscrollback' command (*note Copy::).
-
-`-i'
- Cause the interrupt key (usually `C-c') to interrupt the display
- immediately when flow control is on. This option is equivalent to
- the `interrupt' argument to the `defflow' command (*note Flow
- Control::). Its use is discouraged.
-
-`-l'
-`-ln'
- Turn login mode on or off (for `/etc/utmp' updating). This option
- is equivalent to the `deflogin' command (*note Login::).
-
-`-ls [MATCH]'
-`-list [MATCH]'
- Do not start `screen', but instead print a list of session
- identification strings (usually of the form PID.TTY.HOST; *note
- Session Name::). Sessions marked `detached' can be resumed with
- `screen -r'. Those marked `attached' are running and have a
- controlling terminal. If the session runs in multiuser mode, it
- is marked `multi'. Sessions marked as `unreachable' either live
- on a different host or are dead. An unreachable session is
- considered dead, when its name matches either the name of the
- local host, or the specified parameter, if any. See the `-r' flag
- for a description how to construct matches. Sessions marked as
- `dead' should be thoroughly checked and removed. Ask your system
- administrator if you are not sure. Remove sessions with the
- `-wipe' option.
-
-`-L'
- Tell `screen' to turn on automatic output logging for the windows.
-
-`-m'
- Tell `screen' to ignore the `$STY' environment variable. When
- this option is used, a new session will always be created,
- regardless of whether `screen' is being called from within another
- `screen' session or not. This flag has a special meaning in
- connection with the `-d' option:
- `-d -m'
- Start `screen' in _detached_ mode. This creates a new session
- but doesn't attach to it. This is useful for system startup
- scripts.
-
- `-D -m'
- This also starts `screen' in _detached_ mode, but doesn't fork
- a new process. The command exits if the session terminates.
-
-`-p NAME_OR_NUMBER'
- Preselect a window. This is usefull when you want to reattach to a
- specific windor or you want to send a command via the `-X' option
- to a specific window. As with screen's select commant, `-' selects
- the blank window. As a special case for reattach, `=' brings up
- the windowlist on the blank window.
-
-`-q'
- Suppress printing of error messages. In combination with `-ls' the
- exit value is set as follows: 9 indicates a directory without
- sessions. 10 indicates a directory with running but not attachable
- sessions. 11 (or more) indicates 1 (or more) usable sessions. In
- combination with `-r' the exit value is as follows: 10 indicates
- that there is no session to resume. 12 (or more) indicates that
- there are 2 (or more) sessions to resume and you should specify
- which one to choose. In all other cases `-q' has no effect.
-
-`-r [PID.SESSIONNAME]'
-`-r SESSIONOWNER/[PID.SESSIONNAME]'
- Resume a detached `screen' session. No other options (except
- combinations with `-d' or `-D') may be specified, though the
- session name (*note Session Name::) may be needed to distinguish
- between multiple detached `screen' sessions. The second form is
- used to connect to another user's screen session which runs in
- multiuser mode. This indicates that screen should look for
- sessions in another user's directory. This requires setuid-root.
-
-`-R'
- Resume the first appropriate detached `screen' session. If
- successful, all other command-line options are ignored. If no
- detached session exists, start a new session using the specified
- options, just as if `-R' had not been specified. This option is
- set by default if screen is run as a login-shell (actually screen
- uses `-xRR' in that case). For combinations with the `-D'/`-d'
- option see there.
-
-`-s PROGRAM'
- Set the default shell to be PROGRAM. By default, `screen' uses
- the value of the environment variable `$SHELL', or `/bin/sh' if it
- is not defined. This option is equivalent to the `shell' command
- (*note Shell::).
-
-`-S SESSIONNAME'
- Set the name of the new session to SESSIONNAME. This option can
- be used to specify a meaningful name for the session in place of
- the default TTY.HOST suffix. This name identifies the session for
- the `screen -list' and `screen -r' commands. This option is
- equivalent to the `sessionname' command (*note Session Name::).
-
-`-t NAME'
- Set the title (name) for the default shell or specified program.
- This option is equivalent to the `shelltitle' command (*note
- Shell::).
-
-`-U'
- Run screen in UTF-8 mode. This option tells screen that your
- terminal sends and understands UTF-8 encoded characters. It also
- sets the default encoding for new windows to `utf8'.
-
-`-v'
- Print the version number.
-
-`-wipe [MATCH]'
- List available screens like `screen -ls', but remove destroyed
- sessions instead of marking them as `dead'. An unreachable
- session is considered dead, when its name matches either the name
- of the local host, or the explicitly given parameter, if any. See
- the `-r' flag for a description how to construct matches.
-
-`-x'
- Attach to a session which is already attached elsewhere
- (multi-display mode).
-
-`-X'
- Send the specified command to a running screen session. You can use
- the `-d' or `-r' option to tell screen to look only for attached
- or detached screen sessions. Note that this command doesn't work
- if the session is password protected.
-
-
-
-File: screen.info, Node: Customization, Next: Commands, Prev: Invoking Screen, Up: Top
-
-Customizing `Screen'
-********************
-
- You can modify the default settings for `screen' to fit your tastes
-either through a personal `.screenrc' file which contains commands to
-be executed at startup, or on the fly using the `colon' command.
-
-* Menu:
-
-* Startup Files:: The `.screenrc' file.
-* Source:: Read commands from a file.
-* Colon:: Entering customization commands interactively.
-
-
-File: screen.info, Node: Startup Files, Next: Source, Up: Customization
-
-The `.screenrc' file
-====================
-
- When `screen' is invoked, it executes initialization commands from
-the files `.screenrc' in the user's home directory and
-`/usr/local/etc/screenrc'. These defaults can be overridden in the
-following ways: For the global screenrc file `screen' searches for the
-environment variable `$SYSSCREENRC' (this override feature may be
-disabled at compile-time). The user specific screenrc file is searched
-for in `$SCREENRC', then ``$HOME'/.screenrc'. The command line option
-`-c' specifies which file to use (*note Invoking Screen::. Commands in
-these files are used to set options, bind commands to keys, and to
-automatically establish one or more windows at the beginning of your
-`screen' session. Commands are listed one per line, with empty lines
-being ignored. A command's arguments are separated by tabs or spaces,
-and may be surrounded by single or double quotes. A `#' turns the rest
-of the line into a comment, except in quotes. Unintelligible lines are
-warned about and ignored. Commands may contain references to
-environment variables. The syntax is the shell-like `$VAR' or
-`${VAR}'. Note that this causes incompatibility with previous `screen'
-versions, as now the '$'-character has to be protected with '\' if no
-variable substitution is intended. A string in single-quotes is also
-protected from variable substitution.
-
- Two configuration files are shipped as examples with your screen
-distribution: `etc/screenrc' and `etc/etcscreenrc'. They contain a
-number of useful examples for various commands.
-
-
-File: screen.info, Node: Source, Next: Colon, Prev: Startup Files, Up: Customization
-
-Source
-======
-
- - Command: source file
- (none)
- Read and execute commands from file FILE. Source commands may be
- nested to a maximum recursion level of ten. If FILE is not an
- absolute path and screen is already processing a source
- command, the parent directory of the running source command file
- is used to search for the new command file before screen's
- current directory.
-
- Note that termcap/terminfo/termcapinfo commands only work at
- startup and reattach time, so they must be reached via the
- default screenrc files to have an effect.
-
-
-File: screen.info, Node: Colon, Prev: Source, Up: Customization
-
-Colon
-=====
-
- Customization can also be done online, with this command:
-
- - Command: colon
- (`C-a :')
- Allows you to enter `.screenrc' command lines. Useful for
- on-the-fly modification of key bindings, specific window creation
- and changing settings. Note that the `set' keyword no longer
- exists, as of version 3.3. Change default settings with commands
- starting with `def'. You might think of this as the `ex' command
- mode of `screen', with `copy' as its `vi' command mode (*note Copy
- and Paste::).
-
-
-File: screen.info, Node: Commands, Next: New Window, Prev: Customization, Up: Top
-
-Commands
-********
-
- A command in `screen' can either be bound to a key, invoked from a
-screenrc file, or called from the `colon' prompt (*note
-Customization::). As of version 3.3, all commands can be bound to
-keys, although some may be less useful than others. For a number of
-real life working examples of the most important commands see the files
-`etc/screenrc' and `etc/etcscreenrc' of your screen distribution.
-
- In this manual, a command definition looks like this:
-
-- Command: command [-n] ARG1 [ARG2] ...
- (KEYBINDINGS)
- This command does something, but I can't remember what.
-
- An argument in square brackets (`[]') is optional. Many commands
-take an argument of `on' or `off', which is indicated as STATE in the
-definition.
-
-* Menu:
-
-* Default Key Bindings:: `screen' keyboard commands.
-* Command Summary:: List of all commands.
-
-
-File: screen.info, Node: Default Key Bindings, Next: Command Summary, Up: Commands
-
-Default Key Bindings
-====================
-
- As mentioned previously, each keyboard command consists of a `C-a'
-followed by one other character. For your convenience, all commands
-that are bound to lower-case letters are also bound to their control
-character counterparts (with the exception of `C-a a'; see below).
-Thus, both `C-a c' and `C-a C-c' can be used to create a window.
-
- The following table shows the default key bindings:
-
-`C-a ''
- (select)
- Prompt for a window identifier and switch. *Note Selecting::.
-
-`C-a "'
- (windowlist -b)
- Present a list of all windows for selection. *Note Selecting::.
-
-`C-a 0...9, -'
- (select 0...select 9, select -)
- Switch to window number 0...9, or the blank window. *Note
- Selecting::.
-
-`C-a <Tab>'
- (focus)
- Switch the input focus to the next region. *Note Regions::.
-
-`C-a C-a'
- (other)
- Toggle to the window displayed previously. If this window does no
- longer exist, `other' has the same effect as `next'. *Note
- Selecting::.
-
-`C-a a'
- (meta)
- Send the command character (C-a) to window. See `escape' command.
- *Note Command Character::.
-
-`C-a A'
- (title)
- Allow the user to enter a title for the current window. *Note
- Naming Windows::.
-
-`C-a b'
-`C-a C-b'
- (break)
- Send a break to the tty. *Note Break::.
-
-`C-a B'
- (pow_break)
- Close and reopen the tty-line. *Note Break::.
-
-`C-a c'
-`C-a C-c'
- (screen)
- Create a new window with a shell and switch to that window. *Note
- Screen Command::.
-
-`C-a C'
- (clear)
- Clear the screen. *Note Clear::.
-
-`C-a d'
-`C-a C-d'
- (detach)
- Detach `screen' from this terminal. *Note Detach::.
-
-`C-a D D'
- (pow_detach)
- Detach and logout. *Note Power Detach::.
-
-`C-a f'
-`C-a C-f'
- (flow)
- Cycle flow among `on', `off' or `auto'. *Note Flow::.
-
-`C-a F'
- (fit)
- Resize the window to the current region size. *Note Window Size::.
-
-`C-a C-g'
- (vbell)
- Toggle visual bell mode. *Note Bell::.
-
-`C-a h'
- (hardcopy)
- Write a hardcopy of the current window to the file "hardcopy.N".
- *Note Hardcopy::.
-
-`C-a H'
- (log)
- Toggle logging of the current window to the file "screenlog.N".
- *Note Log::.
-
-`C-a i'
-`C-a C-i'
- (info)
- Show info about the current window. *Note Info::.
-
-`C-a k'
-`C-a C-k'
- (kill)
- Destroy the current window. *Note Kill::.
-
-`C-a l'
-`C-a C-l'
- (redisplay)
- Fully refresh the current window. *Note Redisplay::.
-
-`C-a L'
- (login)
- Toggle the current window's login state. *Note Login::.
-
-`C-a m'
-`C-a C-m'
- (lastmsg)
- Repeat the last message displayed in the message line. *Note Last
- Message::.
-
-`C-a M'
- (monitor) Toggle monitoring of the current window. *Note
- Monitor::.
-
-`C-a <SPC>'
-`C-a n'
-`C-a C-n'
- (next)
- Switch to the next window. *Note Selecting::.
-
-`C-a N'
- (number)
- Show the number (and title) of the current window. *Note Number::.
-
-`C-a p'
-`C-a C-p'
-`C-a C-h'
-`C-a <BackSpace>'
- (prev)
- Switch to the previous window (opposite of `C-a n'). *Note
- Selecting::.
-
-`C-a q'
-`C-a C-q'
- (xon)
- Send a ^Q (ASCII XON) to the current window. *Note XON/XOFF::.
-
-`C-a Q'
- (only)
- Delete all regions but the current one. *Note Regions::.
-
-`C-a r'
-`C-a C-r'
- (wrap)
- Toggle the current window's line-wrap setting (turn the current
- window's automatic margins on or off). *Note Wrap::.
-
-`C-a s'
-`C-a C-s'
- (xoff)
- Send a ^S (ASCII XOFF) to the current window. *Note XON/XOFF::.
-
-`C-a S'
- (split)
- Split the current region into two new ones. *Note Regions::.
-
-`C-a t'
-`C-a C-t'
- (time)
- Show the load average and xref. *Note Time::.
-
-`C-a v'
- (version)
- Display the version and compilation date. *Note Version::.
-
-`C-a C-v'
- (digraph)
- Enter digraph. *Note Digraph::.
-
-`C-a w'
-`C-a C-w'
- (windows)
- Show a list of active windows. *Note Windows::.
-
-`C-a W'
- (width)
- Toggle between 80 and 132 columns. *Note Window Size::.
-
-`C-a x'
-`C-a C-x'
- (lockscreen)
- Lock your terminal. *Note Lock::.
-
-`C-a X'
- (remove)
- Kill the current region. *Note Regions::.
-
-`C-a z'
-`C-a C-z'
- (suspend)
- Suspend `screen'. *Note Suspend::.
-
-`C-a Z'
- (reset)
- Reset the virtual terminal to its "power-on" values. *Note
- Reset::.
-
-`C-a .'
- (dumptermcap)
- Write out a `.termcap' file. *Note Dump Termcap::.
-
-`C-a ?'
- (help)
- Show key bindings. *Note Help::.
-
-`C-a C-\'
- (quit)
- Kill all windows and terminate `screen'. *Note Quit::.
-
-`C-a :'
- (colon)
- Enter a command line. *Note Colon::.
-
-`C-a ['
-`C-a C-['
-`C-a <ESC>'
- (copy)
- Enter copy/scrollback mode. *Note Copy::.
-
-`C-a ]'
-`C-a C-]'
- (paste .)
- Write the contents of the paste buffer to the stdin queue of the
- current window. *Note Paste::.
-
-`C-a {'
-`C-a }'
- (history)
- Copy and paste a previous (command) line. *Note History::.
-
-`C-a >'
- (writebuf)
- Write the paste buffer out to the screen-exchange file. *Note
- Screen Exchange::.
-
-`C-a <'
- (readbuf)
- Read the screen-exchange file into the paste buffer. *Note Screen
- Exchange::.
-
-`C-a ='
- (removebuf)
- Delete the screen-exchange file. *Note Screen Exchange::.
-
-`C-a _'
- (silence)
- Start/stop monitoring the current window for inactivity. *Note
- Silence::,
-
-`C-a ,'
- (license)
- Show the copyright page.
-
-`C-a *'
- (displays)
- Show the listing of attached displays.
-
-
-File: screen.info, Node: Command Summary, Prev: Default Key Bindings, Up: Commands
-
-Command Summary
-===============
-
-`acladd USERNAMES'
- Allow other users in this session. *Note Multiuser Session::.
-
-`aclchg USERNAMES PERMBITS LIST'
- Change a user's permissions. *Note Multiuser Session::.
-
-`acldel USERNAME'
- Disallow other user in this session. *Note Multiuser Session::.
-
-`aclgrp USRNAME [GROUPNAME]'
- Inherit permissions granted to a group leader. *Note Multiuser
- Session::.
-
-`aclumask [USERS]+/-BITS ...'
- Predefine access to new windows. *Note Umask::.
-
-`activity MESSAGE'
- Set the activity notification message. *Note Monitor::.
-
-`addacl USERNAMES'
- Synonym to `acladd'. *Note Multiuser Session::.
-
-`allpartial STATE'
- Set all windows to partial refresh. *Note Redisplay::.
-
-`altscreen STATE'
- Enables support for the "alternate screen" terminal capability.
- *Note Redisplay::.
-
-`at [IDENT][#|*|%] COMMAND [ARGS]'
- Execute a command at other displays or windows. *Note At::.
-
-`attrcolor ATTRIB [ATTRIBUTE/COLOR-MODIFIER]'
- Map attributes to colors. *Note Attrcolor::.
-
-`autodetach STATE'
- Automatically detach the session on SIGHUP. *Note Detach::.
-
-`autonuke STATE'
- Enable a clear screen to discard unwritten output. *Note
- Autonuke::.
-
-`backtick ID LIFESPAN AUTOREFRESH COMMAND [ARGS]'
- Define a command for the backtick string escape. *Note Backtick::.
-
-`bce [STATE]'
- Change background color erase. *Note Character Processing::.
-
-`bell_msg [MESSAGE]'
- Set the bell notification message. *Note Bell::.
-
-`bind [-c CLASS] KEY [COMMAND [ARGS]]'
- Bind a command to a key. *Note Bind::.
-
-`bindkey [OPTS] [STRING [CMD ARGS]]'
- Bind a string to a series of keystrokes. *Note Bindkey::.
-
-`blanker'
- Blank the screen. *Note Screen Saver::.
-
-`blankerprg'
- Define a blanker program. *Note Screen Saver::.
-
-`break [DURATION]'
- Send a break signal to the current window. *Note Break::.
-
-`breaktype [TCSENDBREAK | TCSBRK | TIOCSBRK]'
- Specify how to generate breaks. *Note Break::.
-
-`bufferfile [EXCHANGE-FILE]'
- Select a file for screen-exchange. *Note Screen Exchange::.
-
-`c1 [STATE]'
- Change c1 code processing. *Note Character Processing::.
-
-`caption MODE [STRING]'
- Change caption mode and string. *Note Regions::.
-
-`chacl USERNAMES PERMBITS LIST'
- Synonym to `aclchg'. *Note Multiuser Session::.
-
-`charset SET'
- Change character set slot designation. *Note Character
- Processing::.
-
-`chdir [DIRECTORY]'
- Change the current directory for future windows. *Note Chdir::.
-
-`clear'
- Clear the window screen. *Note Clear::.
-
-`colon'
- Enter a `screen' command. *Note Colon::.
-
-`command [-c CLASS]'
- Simulate the screen escape key. *Note Command Character::.
-
-`compacthist [STATE]'
- Selects compaction of trailing empty lines. *Note Scrollback::.
-
-`console [STATE]'
- Grab or ungrab console output. *Note Console::.
-
-`copy'
- Enter copy mode. *Note Copy::.
-
-`copy_reg [KEY]'
- Removed. Use `paste' instead. *Note Registers::.
-
-`crlf STATE'
- Select line break behavior for copying. *Note Line Termination::.
-
-`debug STATE'
- Suppress/allow debugging output. *Note Debug::.
-
-`defautonuke STATE'
- Select default autonuke behavior. *Note Autonuke::.
-
-`defbce STATE'
- Select background color erase. *Note Character Processing::.
-
-`defbreaktype [TCSENDBREAK | TCSBRK | TIOCSBRK]'
- Specify the default for generating breaks. *Note Break::.
-
-`defc1 STATE'
- Select default c1 processing behavior. *Note Character
- Processing::.
-
-`defcharset [SET]'
- Change defaul character set slot designation. *Note Character
- Processing::.
-
-`defencoding ENC'
- Select default window encoding. *Note Character Processing::.
-
-`defescape XY'
- Set the default command and `meta' characters. *Note Command
- Character::.
-
-`defflow FSTATE'
- Select default flow control behavior. *Note Flow::.
-
-`defgr STATE'
- Select default GR processing behavior. *Note Character
- Processing::.
-
-`defhstatus [STATUS]'
- Select default window hardstatus line. *Note Hardstatus::.
-
-`deflog STATE'
- Select default window logging behavior. *Note Log::.
-
-`deflogin STATE'
- Select default utmp logging behavior. *Note Login::.
-
-`defmode MODE'
- Select default file mode for ptys. *Note Mode::.
-
-`defmonitor STATE'
- Select default activity monitoring behavior. *Note Monitor::.
-
-`defnonblock STATE|NUMSECS'
- Select default nonblock mode. *Note Nonblock::.
-
-`defobuflimit LIMIT'
- Select default output buffer limit. *Note Obuflimit::.
-
-`defscrollback NUM'
- Set default lines of scrollback. *Note Scrollback::.
-
-`defshell COMMAND'
- Set the default program for new windows. *Note Shell::.
-
-`defsilence STATE'
- Select default idle monitoring behavior. *Note Silence::.
-
-`defslowpaste MSEC'
- Select the default inter-character timeout when pasting. *Note
- Paste::.
-
-`defutf8 STATE'
- Select default character encoding. *Note Character Processing::.
-
-`defwrap STATE'
- Set default line-wrapping behavior. *Note Wrap::.
-
-`defwritelock ON|OFF|AUTO'
- Set default writelock behavior. *Note Multiuser Session::.
-
-`defzombie [KEYS]'
- Keep dead windows. *Note Zombie::.
-
-`detach [-h]'
- Disconnect `screen' from the terminal. *Note Detach::.
-
-`digraph'
- Enter digraph sequence. *Note Digraph::.
-
-`dinfo'
- Display terminal information. *Note Info::.
-
-`displays'
- List currently active user interfaces. *Note Displays::.
-
-`dumptermcap'
- Write the window's termcap entry to a file. *Note Dump Termcap::.
-
-`echo [-n] MESSAGE'
- Display a message on startup. *Note Startup::.
-
-`encoding ENC [DENC]'
- Set the encoding of a window. *Note Character Processing::.
-
-`escape XY'
- Set the command and `meta' characters. *Note Command Character::.
-
-`eval COMMAND1 [COMMAND2 ...]'
- Parse and execute each argument. *Note Eval::.
-
-`exec [[FDPAT] COMMAND [ARGS ...]]'
- Run a subprocess (filter). *Note Exec::.
-
-`fit'
- Change window size to current display size. *Note Window Size::.
-
-`flow [FSTATE]'
- Set flow control behavior. *Note Flow::.
-
-`focus'
- Move focus to next region. *Note Regions::.
-
-`gr [STATE]'
- Change GR charset processing. *Note Character Processing::.
-
-`hardcopy [-h] [FILE]'
- Write out the contents of the current window. *Note Hardcopy::.
-
-`hardcopy_append STATE'
- Append to hardcopy files. *Note Hardcopy::.
-
-`hardcopydir DIRECTORY'
- Place, where to dump hardcopy files. *Note Hardcopy::.
-
-`hardstatus [STATE]'
- Use the hardware status line. *Note Hardware Status Line::.
-
-`height [LINES [COLS]]'
- Set display height. *Note Window Size::.
-
-`help [-c CLASS]'
- Display current key bindings. *Note Help::.
-
-`history'
- Find previous command beginning .... *Note History::.
-
-`hstatus STATUS'
- Change the window's hardstatus line. *Note Hardstatus::.
-
-`idle [TIMEOUT [CMD ARGS]]'
- Define a screen saver command. *Note Screen Saver::.
-
-`ignorecase [STATE]'
- Ignore character case in searches. *Note Searching::.
-
-`info'
- Display window settings. *Note Info::.
-
-`ins_reg [KEY]'
- Removed, use `paste' instead. *Note Registers::.
-
-`kill'
- Destroy the current window. *Note Kill::.
-
-`lastmsg'
- Redisplay the last message. *Note Last Message::.
-
-`license'
- Display licensing information. *Note Startup::.
-
-`lockscreen'
- Lock the controlling terminal. *Note Lock::.
-
-`log [STATE]'
- Log all output in the current window. *Note Log::.
-
-`logfile FILENAME'
- Place where to collect logfiles. *Note Log::.
-
-`login [STATE]'
- Log the window in `/etc/utmp'. *Note Login::.
-
-`logtstamp [STATE]'
- Configure logfile time-stamps. *Note Log::.
-
-`mapdefault'
- Use only the default mapping table for the next keystroke. *Note
- Bindkey Control::.
-
-`mapnotnext'
- Don't try to do keymapping on the next keystroke. *Note Bindkey
- Control::.
-
-`maptimeout TIMO'
- Set the inter-character timeout used for keymapping. *Note Bindkey
- Control::.
-
-`markkeys STRING'
- Rebind keys in copy mode. *Note Copy Mode Keys::.
-
-`maxwin N'
- Set the maximum window number. *Note Maxwin::.
-
-`meta'
- Insert the command character. *Note Command Character::.
-
-`monitor [STATE]'
- Monitor activity in window. *Note Monitor::.
-
-`msgminwait SEC'
- Set minimum message wait. *Note Message Wait::.
-
-`msgwait SEC'
- Set default message wait. *Note Message Wait::.
-
-`multiuser STATE'
- Go into single or multi user mode. *Note Multiuser Session::.
-
-`nethack STATE'
- Use `nethack'-like error messages. *Note Nethack::.
-
-`next'
- Switch to the next window. *Note Selecting::.
-
-`nonblock [STATE|NUMSECS]'
- Disable flow control to the current display. *Note
- Nonblock::.|NUMSECS]
-
-`number [N]'
- Change/display the current window's number. *Note Number::.
-
-`obuflimit [LIMIT]'
- Select output buffer limit. *Note Obuflimit::.
-
-`only'
- Kill all other regions. *Note Regions::.
-
-`other'
- Switch to the window you were in last. *Note Selecting::.
-
-`partial STATE'
- Set window to partial refresh. *Note Redisplay::.
-
-`password [CRYPTED_PW]'
- Set reattach password. *Note Detach::.
-
-`paste [SRC_REGS [DEST_REG]]'
- Paste contents of paste buffer or registers somewhere. *Note
- Paste::.
-
-`pastefont [STATE]'
- Include font information in the paste buffer. *Note Paste::.
-
-`pow_break'
- Close and Reopen the window's terminal. *Note Break::.
-
-`pow_detach'
- Detach and hang up. *Note Power Detach::.
-
-`pow_detach_msg [MESSAGE]'
- Set message displayed on `pow_detach'. *Note Power Detach::.
-
-`prev'
- Switch to the previous window. *Note Selecting::.
-
-`printcmd [CMD]'
- Set a command for VT100 printer port emulation. *Note Printcmd::.
-
-`process [KEY]'
- Treat a register as input to `screen'. *Note Registers::.
-
-`quit'
- Kill all windows and exit. *Note Quit::.
-
-`readbuf [-e ENCODING] [FILENAME]'
- Read the paste buffer from the screen-exchange file. *Note Screen
- Exchange::.
-
-`readreg [-e ENCODING] [REG [FILE]]'
- Load a register from paste buffer or file. *Note Registers::.
-
-`redisplay'
- Redisplay the current window. *Note Redisplay::.
-
-`register [-e ENCODING] KEY STRING'
- Store a string to a register. *Note Registers::.
-
-`remove'
- Kill current region. *Note Regions::.
-
-`removebuf'
- Delete the screen-exchange file. *Note Screen Exchange::.
-
-`reset'
- Reset the terminal settings for the window. *Note Reset::.
-
-`resize [(+/-)lines]'
- Grow or shrink a region
-
-`screen [OPTS] [N] [CMD [ARGS]]'
- Create a new window. *Note Screen Command::.
-
-`scrollback NUM'
- Set size of scrollback buffer. *Note Scrollback::.
-
-`select [N]'
- Switch to a specified window. *Note Selecting::.
-
-`sessionname [NAME]'
- Name this session. *Note Session Name::.
-
-`setenv [VAR [STRING]]'
- Set an environment variable for new windows. *Note Setenv::.
-
-`setsid STATE'
- Controll process group creation for windows. *Note Setsid::.
-
-`shell COMMAND'
- Set the default program for new windows. *Note Shell::.
-
-`shelltitle TITLE'
- Set the default name for new windows. *Note Shell::.
-
-`silence [STATE|SECONDS]'
- Monitor a window for inactivity. *Note Silence::.
-
-`silencewait SECONDS'
- Default timeout to trigger an inactivity notify. *Note Silence::.
-
-`sleep NUM'
- Pause during startup. *Note Startup::.
-
-`slowpaste MSEC'
- Slow down pasting in windows. *Note Paste::.
-
-`source FILE'
- Run commands from a file. *Note Source::.
-
-`sorendition [ATTR [COLOR]]'
- Change text highlighting. *Note Sorendition::.
-
-`split'
- Split region into two parts. *Note Regions::.
-
-`startup_message STATE'
- Display copyright notice on startup. *Note Startup::.
-
-`stuff STRING'
- Stuff a string in the input buffer of a window. *Note Paste::.
-
-`su [USERNAME [PASSWORD [PASSWORD2]]]'
- Identify a user. *Note Multiuser Session::.
-
-`suspend'
- Put session in background. *Note Suspend::.
-
-`term TERM'
- Set `$TERM' for new windows. *Note Term::.
-
-`termcap TERM TERMINAL-TWEAKS [WINDOW-TWEAKS]'
- Tweak termcap entries for best performance. *Note Termcap
- Syntax::.
-
-`terminfo TERM TERMINAL-TWEAKS [WINDOW-TWEAKS]'
- Ditto, for terminfo systems. *Note Termcap Syntax::.
-
-`termcapinfo TERM TERMINAL-TWEAKS [WINDOW-TWEAKS]'
- Ditto, for both systems. *Note Termcap Syntax::.
-
-`time [STRING]'
- Display time and load average. *Note Time::.
-
-`title [WINDOWTITLE]'
- Set the name of the current window. *Note Title Command::.
-
-`umask [USERS]+/-BITS ...'
- Synonym to `aclumask'. *Note Umask::.
-
-`unsetenv VAR'
- Unset environment variable for new windows. *Note Setenv::.
-
-`utf8 [STATE [DSTATE]]'
- Select character encoding of the current window. *Note Character
- Processing::.
-
-`vbell [STATE]'
- Use visual bell. *Note Bell::.
-
-`vbell_msg [MESSAGE]'
- Set vbell message. *Note Bell::.
-
-`vbellwait SEC'
- Set delay for vbell message. *Note Bell::.
-
-`version'
- Display `screen' version. *Note Version::.
-
-`wall MESSAGE'
- Write a message to all displays. *Note Multiuser Session::.
-
-`width [COLS [LINES]]'
- Set the width of the window. *Note Window Size::.
-
-`windowlist [-b] | string [STRING] | title [TITLE]'
- Present a list of all windows for selection. *Note Windowlist::.
-
-`windows'
- List active windows. *Note Windows::.
-
-`wrap [STATE]'
- Control line-wrap behavior. *Note Wrap::.
-
-`writebuf [-e ENCODING] [FILENAME]'
- Write paste buffer to screen-exchange file. *Note Screen
- Exchange::.
-
-`writelock ON|OFF|AUTO'
- Grant exclusive write permission. *Note Multiuser Session::.
-
-`xoff'
- Send an XOFF character. *Note XON/XOFF::.
-
-`xon'
- Send an XON character. *Note XON/XOFF::.
-
-`zmodem [off|auto|catch|pass]'
- Define how screen treats zmodem requests. *Note Zmodem::.
-
-`zombie [KEYS]'
- Keep dead windows. *Note Zombie::.
-
-
-File: screen.info, Node: New Window, Next: Selecting, Prev: Commands, Up: Top
-
-New Window
-**********
-
- This section describes the commands for creating a new window for
-running programs. When a new window is created, the first available
-number from the range 0...9 is assigned to it. The number of windows
-is limited at compile-time by the MAXWIN configuration parameter.
-
-* Menu:
-
-* Chdir:: Change the working directory for new windows.
-* Screen Command:: Create a new window.
-* Setenv:: Set environment variables for new windows.
-* Shell:: Parameters for shell windows.
-* Term:: Set the terminal type for new windows.
-* Window Types:: Creating different types of windows.
-
-
-File: screen.info, Node: Chdir, Next: Screen Command, Up: New Window
-
-Chdir
-=====
-
- - Command: chdir [directory]
- (none)
- Change the current directory of `screen' to the specified directory
- or, if called without an argument, to your home directory (the
- value of the environment variable `$HOME'). All windows that are
- created by means of the `screen' command from within `.screenrc'
- or by means of `C-a : screen ...' or `C-a c' use this as their
- default directory. Without a `chdir' command, this would be the
- directory from which `screen' was invoked. Hardcopy and log files
- are always written to the _window's_ default directory, _not_ the
- current directory of the process running in the window. You can
- use this command multiple times in your `.screenrc' to start
- various windows in different default directories, but the last
- `chdir' value will affect all the windows you create interactively.
-
-
-File: screen.info, Node: Screen Command, Next: Setenv, Prev: Chdir, Up: New Window
-
-Screen Command
-==============
-
- - Command: screen [opts] [n] [cmd [args]]
- (`C-a c', `C-a C-c')
- Establish a new window. The flow-control options (`-f', `-fn' and
- `-fa'), title option (`-t'), login options (`-l' and `-ln') ,
- terminal type option (`-T TERM'), the all-capability-flag (`-a')
- and scrollback option (`-h NUM') may be specified with each
- command. The option (`-M') turns monitoring on for this window.
- The option (`-L') turns output logging on for this window. If an
- optional number N in the range 0...9 is given, the window number N
- is assigned to the newly created window (or, if this number is
- already in-use, the next available number). If a command is
- specified after `screen', this command (with the given arguments)
- is started in the window; otherwise, a shell is created.
-
- Screen has built in some functionality of `cu' and `telnet'.
- *Note Window Types::.
-
- Thus, if your `.screenrc' contains the lines
-
- # example for .screenrc:
- screen 1
- screen -fn -t foobar 2 -L telnet foobar
-
-`screen' creates a shell window (in window #1) and a window with a
-TELNET connection to the machine foobar (with no flow-control using the
-title `foobar' in window #2) and will write a logfile `screenlog.2' of
-the telnet session. If you do not include any `screen' commands in
-your `.screenrc' file, then `screen' defaults to creating a single
-shell window, number zero. When the initialization is completed,
-`screen' switches to the last window specified in your .screenrc file
-or, if none, it opens default window #0.
-
-
-File: screen.info, Node: Setenv, Next: Shell, Prev: Screen Command, Up: New Window
-
-Setenv
-======
-
- - Command: setenv var string
- (none)
- Set the environment variable VAR to value STRING. If only VAR is
- specified, the user will be prompted to enter a value. If no
- parameters are specified, the user will be prompted for both
- variable and value. The environment is inherited by all
- subsequently forked shells.
-
- - Command: unsetenv var
- (none)
- Unset an environment variable.
-
-
-File: screen.info, Node: Shell, Next: Term, Prev: Setenv, Up: New Window
-
-Shell
-=====
-
- - Command: shell command
- - Command: defshell command
- (none)
- Set the command to be used to create a new shell. This overrides
- the value of the environment variable `$SHELL'. This is useful if
- you'd like to run a tty-enhancer which is expecting to execute the
- program specified in `$SHELL'. If the command begins with a `-'
- character, the shell will be started as a login-shell.
-
- `defshell' is currently a synonym to the `shell' command.
-
- - Command: shelltitle title
- (none)
- Set the title for all shells created during startup or by the C-a
- C-c command. *Note Naming Windows::, for details about what
- titles are.
-
-
-File: screen.info, Node: Term, Next: Window Types, Prev: Shell, Up: New Window
-
-Term
-====
-
- - Command: term term
- (none)
- In each window `screen' opens, it sets the `$TERM' variable to
- `screen' by default, unless no description for `screen' is
- installed in the local termcap or terminfo data base. In that
- case it pretends that the terminal emulator is `vt100'. This
- won't do much harm, as `screen' is VT100/ANSI compatible. The use
- of the `term' command is discouraged for non-default purpose.
- That is, one may want to specify special `$TERM' settings (e.g.
- vt100) for the next `screen rlogin othermachine' command. Use the
- command `screen -T vt100 rlogin othermachine' rather than setting
- and resetting the default.
-
diff --git a/doc/screen.info-2 b/doc/screen.info-2
deleted file mode 100644
index bc2cfdc..0000000
--- a/doc/screen.info-2
+++ /dev/null
@@ -1,1171 +0,0 @@
-This is screen.info, produced by makeinfo version 4.5 from
-./screen.texinfo.
-
-INFO-DIR-SECTION General Commands
-START-INFO-DIR-ENTRY
-* Screen: (screen). Full-screen window manager.
-END-INFO-DIR-ENTRY
-
- This file documents the `Screen' virtual terminal manager.
-
- Copyright (c) 1993-2003 Free Software Foundation, Inc.
-
- Permission is granted to make and distribute verbatim copies of this
-manual provided the copyright notice and this permission notice are
-preserved on all copies.
-
- Permission is granted to copy and distribute modified versions of
-this manual under the conditions for verbatim copying, provided that
-the entire resulting derived work is distributed under the terms of a
-permission notice identical to this one.
-
- Permission is granted to copy and distribute translations of this
-manual into another language, under the above conditions for modified
-versions, except that this permission notice may be stated in a
-translation approved by the Foundation.
-
-
-File: screen.info, Node: Window Types, Prev: Term, Up: New Window
-
-Window Types
-============
-
- Screen provides three different window types. New windows are created
-with `screen''s `screen' command (*note Screen Command::). The first
-parameter to the `screen' command defines which type of window is
-created. The different window types are all special cases of the normal
-type. They have been added in order to allow `screen' to be used
-efficiently as a console with 100 or more windows.
- * The normal window contains a shell (default, if no parameter is
- given) or any other system command that could be executed from a
- shell. (e.g. `slogin', etc...).
-
- * If a tty (character special device) name (e.g. `/dev/ttya') is
- specified as the first parameter, then the window is directly
- connected to this device. This window type is similar to `screen
- cu -l /dev/ttya'. Read and write access is required on the device
- node, an exclusive open is attempted on the node to mark the
- connection line as busy. An optional parameter is allowed
- consisting of a comma separated list of flags in the notation used
- by `stty(1)':
- `<baud_rate>'
- Usually 300, 1200, 9600 or 19200. This affects transmission
- as well as receive speed.
-
- `cs8 or cs7'
- Specify the transmission of eight (or seven) bits per byte.
-
- `ixon or -ixon'
- Enables (or disables) software flow-control (CTRL-S/CTRL-Q)
- for sending data.
-
- `ixoff or -ixoff'
- Enables (or disables) software flow-control for receiving
- data.
-
- `istrip or -istrip'
- Clear (or keep) the eight bit in each received byte.
-
- You may want to specify as many of these options as applicable.
- Unspecified options cause the terminal driver to make up the
- parameter values of the connection. These values are system
- dependant and may be in defaults or values saved from a previous
- connection.
-
- For tty windows, the `info' command shows some of the modem
- control lines in the status line. These may include `RTS', `CTS',
- `DTR', `CD' and more. This depends rather on on the available
- `ioctl()''s and system header files than on the physical
- capabilities of the serial board. The name of a logical low
- (inactive) signal is preceded by an exclamation mark (`!'),
- otherwise the signal is logical high (active). Unsupported but
- shown signals are usually shown low. When the `CLOCAL' status bit
- is true, the whole set of modem signals is placed inside curly
- braces (`{' and `}'). When the `CRTSCTS' or `TIOCSOFTCAR' bit is
- true, the signals `CTS' or `CD' are shown in parenthesis,
- respectively.
-
- For tty windows, the command `break' causes the Data transmission
- line (TxD) to go low for a specified period of time. This is
- expected to be interpreted as break signal on the other side. No
- data is sent and no modem control line is changed when a `break'
- is issued.
-
- * If the first parameter is `//telnet', the second parameter is
- expected to be a host name, and an optional third parameter may
- specify a TCP port number (default decimal 23). Screen will
- connect to a server listening on the remote host and use the
- telnet protocol to communicate with that server.
-
- For telnet windows, the command `info' shows details about the
- connection in square brackets (`[' and `]') at the end of the
- status line.
- `b'
- BINARY. The connection is in binary mode.
-
- `e'
- ECHO. Local echo is disabled.
-
- `c'
- SGA. The connection is in `character mode' (default: `line
- mode').
-
- `t'
- TTYPE. The terminal type has been requested by the remote
- host. Screen sends the name `screen' unless instructed
- otherwise (see also the command `term').
-
- `w'
- NAWS. The remote site is notified about window size changes.
-
- `f'
- LFLOW. The remote host will send flow control information.
- (Ignored at the moment.)
- Additional flags for debugging are `x', `t' and `n' (XDISPLOC,
- TSPEED and NEWENV).
-
- For telnet windows, the command `break' sends the telnet code `IAC
- BREAK' (decimal 243) to the remote host.
-
-
-
-File: screen.info, Node: Selecting, Next: Session Management, Prev: New Window, Up: Top
-
-Selecting a Window
-******************
-
- This section describes the commands for switching between windows in
-an `screen' session. The windows are numbered from 0 to 9, and are
-created in that order by default (*note New Window::).
-
-* Menu:
-
-* Next and Previous:: Forward or back one window.
-* Other Window:: Switch back and forth between two windows.
-* Select:: Switch to a window (and to one after `kill').
-* Windowlist:: Present a list of all windows for selection.
-
-
-File: screen.info, Node: Next and Previous, Next: Other Window, Up: Selecting
-
-Moving Back and Forth
-=====================
-
- - Command: next
- (`C-a <SPC>', `C-a n', `C-a C-n')
- Switch to the next window. This command can be used repeatedly to
- cycle through the list of windows. (On some terminals, C-<SPC>
- generates a NUL character, so you must release the control key
- before pressing space.)
-
- - Command: prev
- (`C-a p', `C-a C-p')
- Switch to the previous window (the opposite of `C-a n').
-
-
-File: screen.info, Node: Other Window, Next: Select, Prev: Next and Previous, Up: Selecting
-
-Other Window
-============
-
- - Command: other
- (`C-a C-a')
- Switch to the last window displayed. Note that this command
- defaults to the command character typed twice, unless overridden.
- For instance, if you use the option `-e]x', this command becomes
- `]]' (*note Command Character::).
-
-
-File: screen.info, Node: Select, Next: Windowlist, Prev: Other Window, Up: Selecting
-
-Select
-======
-
- - Command: select [n]
- (`C-a N', `C-a '')
- Switch to the window with the number N. If no window number is
- specified, you get prompted for an identifier. This can be a
- window name (title) or a number. When a new window is
- established, the lowest available number is assigned to this
- window. Thus, the first window can be activated by `select 0';
- there can be no more than 10 windows present simultaneously
- (unless screen is compiled with a higher MAXWIN setting). There
- are two special arguments, `select -' switches to the internal
- blank window and `select .' switches to the current window. The
- latter is useful if used with screen's `-X' option.
-
-
-
-File: screen.info, Node: Windowlist, Prev: Select, Up: Selecting
-
-Windowlist
-==========
-
- - Command: windowlist [-b] [-m]
- - Command: windowlist string [STRING]
- - Command: windowlist title [TITLE]
- (`C-a "')
- Display all windows in a table for visual window selection. The
- desired window can be selected via the standard movement keys
- (*note Movement::) and activated via the return key. If the `-b'
- option is given, screen will switch to the blank window before
- presenting the list, so that the current window is also selectable.
- The `-m' option changes the order of the windows, instead of
- sorting by window numbers screen uses its internal
- most-recently-used list.
-
- The table format can be changed with the string and title option,
- the title is displayed as table heading, while the lines are made
- by using the string setting. The default setting is `Num
- Name%=Flags' for the title and `%3n %t%=%f' for the lines. See the
- string escapes chapter (*note String Escapes::) for more codes
- (e.g. color settings).
-
-
-
-File: screen.info, Node: Session Management, Next: Regions, Prev: Selecting, Up: Top
-
-Session Management Commands
-***************************
-
- Perhaps the most useful feature of `screen' is the way it allows the
-user to move a session between terminals, by detaching and reattaching.
-This also makes life easier for modem users who have to deal with
-unexpected loss of carrier.
-
-* Menu:
-
-* Detach:: Disconnect `screen' from your terminal.
-* Power Detach:: Detach and log out.
-* Lock:: Lock your terminal temporarily.
-* Multiuser Session:: Changing number of allowed users.
-* Session Name:: Rename your session for later reattachment.
-* Suspend:: Suspend your session.
-* Quit:: Terminate your session.
-
-
-File: screen.info, Node: Detach, Next: Power Detach, Up: Session Management
-
-Detach
-======
-
- - Command: autodetach state
- (none)
- Sets whether `screen' will automatically detach upon hangup, which
- saves all your running programs until they are resumed with a
- `screen -r' command. When turned off, a hangup signal will
- terminate `screen' and all the processes it contains. Autodetach is
- on by default.
-
- - Command: detach
- (`C-a d', `C-a C-d')
- Detach the `screen' session (disconnect it from the terminal and
- put it into the background). A detached `screen' can be resumed by
- invoking `screen' with the `-r' option (*note Invoking Screen::).
- The `-h' option tells screen to immediately close the connection
- to the terminal (`hangup').
-
- - Command: password [crypted_pw]
- (none)
- Present a crypted password in your `.screenrc' file and screen will
- ask for it, whenever someone attempts to resume a detached
- session. This is useful, if you have privileged programs running
- under `screen' and you want to protect your session from reattach
- attempts by users that managed to assume your uid. (I.e. any
- superuser.) If no crypted password is specified, screen prompts
- twice a password and places its encryption in the paste buffer.
- Default is `none', which disables password checking.
-
-
-File: screen.info, Node: Power Detach, Next: Lock, Prev: Detach, Up: Session Management
-
-Power Detach
-============
-
- - Command: pow_detach
- (`C-a D D')
- Mainly the same as `detach', but also sends a HANGUP signal to the
- parent process of `screen'.
- _Caution_: This will result in a logout if `screen' was started
- from your login shell.
-
- - Command: pow_detach_msg [message]
- (none)
- The MESSAGE specified here is output whenever a power detach is
- performed. It may be used as a replacement for a logout message or
- to reset baud rate, etc. Without parameter, the current message
- is shown.
-
-
-File: screen.info, Node: Lock, Next: Multiuser Session, Prev: Power Detach, Up: Session Management
-
-Lock
-====
-
- - Command: lockscreen
- (`C-a x', `C-a C-x')
- Call a screenlock program (`/local/bin/lck' or `/usr/bin/lock' or
- a builtin, if no other is available). Screen does not accept any
- command keys until this program terminates. Meanwhile processes in
- the windows may continue, as the windows are in the detached state.
- The screenlock program may be changed through the environment
- variable `$LOCKPRG' (which must be set in the shell from which
- `screen' is started) and is executed with the user's uid and gid.
-
- Warning: When you leave other shells unlocked and have no password
- set on `screen', the lock is void: One could easily re-attach from
- an unlocked shell. This feature should rather be called
- `lockterminal'.
-
-
-File: screen.info, Node: Multiuser Session, Next: Session Name, Prev: Lock, Up: Session Management
-
-Multiuser Session
-=================
-
- These commands allow other users to gain access to one single
-`screen' session. When attaching to a multiuser `screen' the
-sessionname is specified as `username/sessionname' to the `-S' command
-line option. `Screen' must be compiled with multiuser support to
-enable features described here.
-
-* Menu:
-
-* Multiuser:: Enable / Disable multiuser mode.
-* Acladd:: Enable a specific user.
-* Aclchg:: Change a users permissions.
-* Acldel:: Disable a specific user.
-* Aclgrp:: Grant a user permissions to other users.
-* Displays:: List all active users at their displays.
-* Umask:: Predefine access to new windows.
-* Wall:: Write a message to all users.
-* Writelock:: Grant exclusive window access.
-* Su:: Substitute user.
-
-
-File: screen.info, Node: Multiuser, Next: Acladd, Up: Multiuser Session
-
-Multiuser
----------
-
- - Command: multiuser STATE
- (none)
- Switch between single-user and multi-user mode. Standard screen
- operation is single-user. In multi-user mode the commands
- `acladd', `aclchg' and `acldel' can be used to enable (and
- disable) other users accessing this `screen'.
-
-
-File: screen.info, Node: Acladd, Next: Aclchg, Prev: Multiuser, Up: Multiuser Session
-
-Acladd
-------
-
- - Command: acladd USERNAMES
- - Command: addacl USERNAMES
- (none)
- Enable users to fully access this screen session. USERNAMES can be
- one user or a comma separated list of users. This command enables
- to attach to the `screen' session and performs the equivalent of
- `aclchg USERNAMES +rwx "#?"'. To add a user with restricted access,
- use the `aclchg' command below. `Addacl' is a synonym to `acladd'.
- Multi-user mode only.
-
-
-File: screen.info, Node: Aclchg, Next: Acldel, Prev: Acladd, Up: Multiuser Session
-
-Aclchg
-------
-
- - Command: aclchg USERNAMES PERMBITS LIST
- - Command: chacl USERNAMES PERMBITS LIST
- (none)
- Change permissions for a comma separated list of users.
- Permission bits are represented as `r', `w' and `x'. Prefixing
- `+' grants the permission, `-' removes it. The third parameter is
- a comma separated list of commands or windows (specified either by
- number or title). The special list `#' refers to all windows, `?'
- to all commands. If USERNAMES consists of a single `*', all known
- users are affected. A command can be executed when the user has
- the `x' bit for it. The user can type input to a window when he
- has its `w' bit set and no other user obtains a writelock for this
- window. Other bits are currently ignored. To withdraw the
- writelock from another user in e.g. window 2: `aclchg USERNAME
- -w+w 2'. To allow read-only access to the session: `aclchg
- USERNAME -w "#"'. As soon as a user's name is known to screen, he
- can attach to the session and (per default) has full permissions
- for all command and windows. Execution permission for the acl
- commands, `at' and others should also be removed or the user may
- be able to regain write permission. `Chacl' is a synonym to
- `aclchg'. Multi-user mode only.
-
-
-File: screen.info, Node: Acldel, Next: Aclgrp, Prev: Aclchg, Up: Multiuser Session
-
-Acldel
-------
-
- - Command: acldel USERNAME
- (none)
- Remove a user from screen's access control list. If currently
- attached, all the user's displays are detached from the session.
- He cannot attach again. Multi-user mode only.
-
-
-File: screen.info, Node: Aclgrp, Next: Displays, Prev: Acldel, Up: Multiuser Session
-
-Aclgrp
-------
-
- - Command: aclgrp USERNAME [GROUPNAME]
- (none)
- Creates groups of users that share common access rights. The name
- of the group is the username of the group leader. Each member of
- the group inherits the permissions that are granted to the
- group leader. That means, if a user fails an access check, another
- check is made for the group leader. A user is removed from all
- groups the special value `none' is used for GROUPNAME. If the
- second parameter is omitted all groups the user is in are listed.
-
-
-File: screen.info, Node: Displays, Next: Umask, Prev: Aclgrp, Up: Multiuser Session
-
-Displays
---------
-
- - Command: displays
- (`C-a *')
- Shows a tabular listing of all currently connected user
- front-ends (displays). This is most useful for multiuser
- sessions.
-
-
-File: screen.info, Node: Umask, Next: Wall, Prev: Displays, Up: Multiuser Session
-
-aclumask
---------
-
- - Command: aclumask [USERS]+/-BITS ...
- - Command: umask [USERS]+/-BITS ...
- (none)
- This specifies the access other users have to windows that will
- be created by the caller of the command. USERS may be no, one
- or a comma separated list of known usernames. If no users are
- specified, a list of all currently known users is assumed. BITS
- is any combination of access control bits allowed defined
- with the `aclchg' command. The special username `?' predefines the
- access that not yet known users will be granted to any
- window initially. The special username `??' predefines the access
- that not yet known users are granted to any command. Rights of
- the special username nobody cannot be changed (see the `su'
- command). `Umask' is a synonym to `aclumask'.
-
-
-File: screen.info, Node: Wall, Next: Writelock, Prev: Umask, Up: Multiuser Session
-
-Wall
-----
-
- - Command: wall MESSAGE
- (none)
- Write a message to all displays. The message will appear in the
- terminal's status line.
-
-
-File: screen.info, Node: Writelock, Next: Su, Prev: Wall, Up: Multiuser Session
-
-Writelock
----------
-
- - Command: writelock ON|OFF|AUTO
- (none)
- In addition to access control lists, not all users may be able to
- write to the same window at once. Per default, writelock is in
- `auto' mode and grants exclusive input permission to the user who
- is the first to switch to the particular window. When he leaves
- the window, other users may obtain the writelock (automatically).
- The writelock of the current window is disabled by the command
- `writelock off'. If the user issues the command `writelock on' he
- keeps the exclusive write permission while switching to other
- windows.
-
- - Command: defwritelock ON|OFF|AUTO
- (none)
- Sets the default writelock behavior for new windows. Initially all
- windows will be created with no writelocks.
-
-
-File: screen.info, Node: Su, Prev: Writelock, Up: Multiuser Session
-
-Su
---
-
- - Command: su [USERNAME [PASSWORD [PASSWORD2]]]
- (none)
- Substitute the user of a display. The command prompts for all
- parameters that are omitted. If passwords are specified as
- parameters, they have to be specified un-crypted. The first
- password is matched against the systems passwd database, the
- second password is matched against the `screen' password as
- set with the commands `acladd' or `password'. `Su' may be useful
- for the `screen' administrator to test multiuser setups. When
- the identification fails, the user has access to the commands
- available for user `nobody'. These are `detach', `license',
- `version', `help' and `displays'.
-
-
-File: screen.info, Node: Session Name, Next: Suspend, Prev: Multiuser Session, Up: Session Management
-
-Session Name
-============
-
- - Command: sessionname [NAME]
- (none)
- Rename the current session. Note that for `screen -list' the name
- shows up with the process-id prepended. If the argument NAME is
- omitted, the name of this session is displayed.
- _Caution_: The `$STY' environment variable still reflects the old
- name. This may result in confusion. The default is constructed
- from the tty and host names.
-
-
-File: screen.info, Node: Suspend, Next: Quit, Prev: Session Name, Up: Session Management
-
-Suspend
-=======
-
- - Command: suspend
- (`C-a z', `C-a C-z')
- Suspend `screen'. The windows are in the detached state while
- `screen' is suspended. This feature relies on the parent shell
- being able to do job control.
-
-
-File: screen.info, Node: Quit, Prev: Suspend, Up: Session Management
-
-Quit
-====
-
- - Command: quit
- (`C-a C-\')
- Kill all windows and terminate `screen'. Note that on VT100-style
- terminals the keys `C-4' and `C-\' are identical. So be careful
- not to type `C-a C-4' when selecting window no. 4. Use the empty
- bind command (as in `bind "^\"') to remove a key binding (*note
- Key Binding::).
-
-
-File: screen.info, Node: Regions, Next: Window Settings, Prev: Session Management, Up: Top
-
-Regions
-*******
-
- Screen has the ability to display more than one window on the user's
-display. This is done by splitting the screen in regions, which can
-contain different windows.
-
-* Menu:
-
-* Split:: Split a region into two
-* Focus:: Change to the next region
-* Only:: Delete all other regions
-* Remove:: Delete the current region
-* Resize:: Grow or shrink a region
-* Caption:: Control the window's caption
-* Fit:: Resize a window to fit the region
-
-
-File: screen.info, Node: Split, Next: Focus, Up: Regions
-
-Split
-=====
-
- - Command: split
- (`C-a S')
- Split the current region into two new ones. All regions on the
- display are resized to make room for the new region. The blank
- window is displayed on the new region.
-
-
-File: screen.info, Node: Focus, Next: Only, Prev: Split, Up: Regions
-
-Focus
-=====
-
- - Command: focus
- (`C-a <Tab>')
- Move the input focus to the next region. This is done in a cyclic
- way so that the top region is selected after the bottom one. If no
- subcommand is given it defaults to `down'. `up' cycles in the
- opposite order, `top' and `bottom' go to the top and bottom region
- respectively. Useful bindings are (j and k as in vi)
- bind j focus down
- bind k focus up
- bind t focus top
- bind b focus bottom
-
-
-File: screen.info, Node: Only, Next: Remove, Prev: Focus, Up: Regions
-
-Only
-====
-
- - Command: only
- (`C-a Q')
- Kill all regions but the current one.
-
-
-File: screen.info, Node: Remove, Next: Resize, Prev: Only, Up: Regions
-
-Remove
-======
-
- - Command: remove
- (`C-a X')
- Kill the current region. This is a no-op if there is only one
- region.
-
-
-File: screen.info, Node: Resize, Next: Caption, Prev: Remove, Up: Regions
-
-Resize
-======
-
- - Command: resize [(+/-)LINES]
- (none)
- Resize the current region. The space will be removed from or added
- to the region below or if there's not enough space from the region
- above.
- resize +N increase current region height by N
- resize -N decrease current region height by N
- resize N set current region height to N
- resize = make all windows equally high
- resize max maximize current region height
- resize min minimize current region height
-
-
-File: screen.info, Node: Caption, Next: Fit, Prev: Resize, Up: Regions
-
-Caption
-=======
-
- - Command: caption `always'|`splitonly' [string]
- - Command: caption `string' [string]
- (none)
- This command controls the display of the window captions. Normally
- a caption is only used if more than one window is shown on the
- display (split screen mode). But if the type is set to `always',
- `screen' shows a caption even if only one window is displayed. The
- default is `splitonly'.
-
- The second form changes the text used for the caption. You can use
- all string escapes (*note String Escapes::). `Screen' uses a
- default of `%3n %t'.
-
- You can mix both forms by providing the string as an additional
- argument.
-
-
-File: screen.info, Node: Fit, Prev: Caption, Up: Regions
-
-Fit
-===
-
- - Command: fit
- (`C-a F')
- Change the window size to the size of the current region. This
- command is needed because screen doesn't adapt the window size
- automatically if the window is displayed more than once.
-
-
-File: screen.info, Node: Window Settings, Next: Virtual Terminal, Prev: Regions, Up: Top
-
-Window Settings
-***************
-
- These commands control the way `screen' treats individual windows in
-a session. *Note Virtual Terminal::, for commands to control the
-terminal emulation itself.
-
-* Menu:
-
-* Naming Windows:: Control the name of the window
-* Console:: See the host's console messages
-* Kill:: Destroy an unwanted window
-* Login:: Control `/etc/utmp' logging
-* Mode:: Control the file mode of the pty
-* Monitor:: Watch for activity in a window
-* Windows:: List the active windows
-* Hardstatus:: Set a window's hardstatus line
-
-
-File: screen.info, Node: Naming Windows, Next: Console, Up: Window Settings
-
-Naming Windows (Titles)
-=======================
-
- You can customize each window's name in the window display (viewed
-with the `windows' command (*note Windows::) by setting it with one of
-the title commands. Normally the name displayed is the actual command
-name of the program created in the window. However, it is sometimes
-useful to distinguish various programs of the same name or to change
-the name on-the-fly to reflect the current state of the window.
-
- The default name for all shell windows can be set with the
-`shelltitle' command (*note Shell::). You can specify the name you
-want for a window with the `-t' option to the `screen' command when the
-window is created (*note Screen Command::). To change the name after
-the window has been created you can use the title-string escape-sequence
-(`<ESC> k NAME <ESC> \') and the `title' command (C-a A). The former
-can be output from an application to control the window's name under
-software control, and the latter will prompt for a name when typed.
-You can also bind predefined names to keys with the `title' command to
-set things quickly without prompting.
-
-* Menu:
-
-* Title Command:: The `title' command.
-* Dynamic Titles:: Make shell windows change titles dynamically.
-* Title Prompts:: Set up your shell prompt for dynamic Titles.
-* Title Screenrc:: Set up Titles in your `.screenrc'.
-
-
-File: screen.info, Node: Title Command, Next: Dynamic Titles, Up: Naming Windows
-
-Title Command
--------------
-
- - Command: title [windowtitle]
- (`C-a A')
- Set the name of the current window to WINDOWTITLE. If no name is
- specified, screen prompts for one.
-
-
-File: screen.info, Node: Dynamic Titles, Next: Title Prompts, Prev: Title Command, Up: Naming Windows
-
-Dynamic Titles
---------------
-
- `screen' has a shell-specific heuristic that is enabled by setting
-the window's name to SEARCH|NAME and arranging to have a null title
-escape-sequence output as a part of your prompt. The SEARCH portion
-specifies an end-of-prompt search string, while the NAME portion
-specifies the default shell name for the window. If the NAME ends in a
-`:' `screen' will add what it believes to be the current command
-running in the window to the end of the specified name (e.g. NAME:CMD).
-Otherwise the current command name supersedes the shell name while it
-is running.
-
- Here's how it works: you must modify your shell prompt to output a
-null title-escape-sequence (<ESC> k <ESC> \) as a part of your prompt.
-The last part of your prompt must be the same as the string you
-specified for the SEARCH portion of the title. Once this is set up,
-`screen' will use the title-escape-sequence to clear the previous
-command name and get ready for the next command. Then, when a newline
-is received from the shell, a search is made for the end of the prompt.
-If found, it will grab the first word after the matched string and use
-it as the command name. If the command name begins with `!', `%', or
-`^', `screen' will use the first word on the following line (if found)
-in preference to the just-found name. This helps csh users get more
-accurate titles when using job control or history recall commands.
-
-
-File: screen.info, Node: Title Prompts, Next: Title Screenrc, Prev: Dynamic Titles, Up: Naming Windows
-
-Setting up your prompt for shell titles
----------------------------------------
-
- One thing to keep in mind when adding a null title-escape-sequence
-to your prompt is that some shells (like the csh) count all the
-non-control characters as part of the prompt's length. If these
-invisible characters aren't a multiple of 8 then backspacing over a tab
-will result in an incorrect display. One way to get around this is to
-use a prompt like this:
-
- set prompt='k\% '
-
- The escape-sequence `' not only normalizes the character
-attributes, but all the zeros round the length of the invisible
-characters up to 8.
-
- Tcsh handles escape codes in the prompt more intelligently, so you
-can specify your prompt like this:
-
- set prompt="%{\ek\e\\%}\% "
-
- Bash users will probably want to echo the escape sequence in the
-PROMPT_COMMAND:
-
- PROMPT_COMMAND='echo -n -e "\033k\033\134"'
-
- (I used `\134' to output a `\' because of a bug in v1.04).
-
-
-File: screen.info, Node: Title Screenrc, Prev: Title Prompts, Up: Naming Windows
-
-Setting up shell titles in your `.screenrc'
--------------------------------------------
-
- Here are some .screenrc examples:
-
- screen -t top 2 nice top
-
- Adding this line to your .screenrc would start a niced version of the
-`top' command in window 2 named `top' rather than `nice'.
-
- shelltitle '> |csh'
- screen 1
-
- This file would start a shell using the given shelltitle. The title
-specified is an auto-title that would expect the prompt and the typed
-command to look something like the following:
-
- /usr/joe/src/dir> trn
-
- (it looks after the '> ' for the command name). The window status
-would show the name `trn' while the command was running, and revert to
-`csh' upon completion.
-
- bind R screen -t '% |root:' su
-
- Having this command in your .screenrc would bind the key sequence
-`C-a R' to the `su' command and give it an auto-title name of `root:'.
-For this auto-title to work, the screen could look something like this:
-
- % !em
- emacs file.c
-
- Here the user typed the csh history command `!em' which ran the
-previously entered `emacs' command. The window status would show
-`root:emacs' during the execution of the command, and revert to simply
-`root:' at its completion.
-
- bind o title
- bind E title ""
- bind u title (unknown)
-
- The first binding doesn't have any arguments, so it would prompt you
-for a title when you type `C-a o'. The second binding would clear an
-auto-titles current setting (C-a E). The third binding would set the
-current window's title to `(unknown)' (C-a u).
-
-
-File: screen.info, Node: Console, Next: Kill, Prev: Naming Windows, Up: Window Settings
-
-Console
-=======
-
- - Command: console [STATE]
- (none)
- Grabs or un-grabs the machines console output to a window. When
- the argument is omitted the current state is displayed. _Note_:
- Only the owner of `/dev/console' can grab the console output. This
- command is only available if the host supports the ioctl
- `TIOCCONS'.
-
-
-File: screen.info, Node: Kill, Next: Login, Prev: Console, Up: Window Settings
-
-Kill
-====
-
- - Command: kill
- (`C-a k', `C-a C-k')
- Kill the current window.
- If there is an `exec' command running (*note Exec::) then it is
- killed. Otherwise the process (e.g. shell) running in the window
- receives a `HANGUP' condition, the window structure is removed and
- screen (your display) switches to another window. When the last
- window is destroyed, `screen' exits. After a kill screen switches
- to the previously displayed window.
- _Caution_: `emacs' users may find themselves killing their `emacs'
- session when trying to delete the current line. For this reason,
- it is probably wise to use a different command character (*note
- Command Character::) or rebind `kill' to another key sequence,
- such as `C-a K' (*note Key Binding::).
-
-
-File: screen.info, Node: Login, Next: Mode, Prev: Kill, Up: Window Settings
-
-Login
-=====
-
- - Command: deflogin state
- (none)
- Same as the `login' command except that the default setting for new
- windows is changed. This defaults to `on' unless otherwise
- specified at compile time (*note Installation::). Both commands
- are only present when `screen' has been compiled with utmp support.
-
- - Command: login [state]
- (`C-a L')
- Adds or removes the entry in `/etc/utmp' for the current window.
- This controls whether or not the window is "logged in". In
- addition to this toggle, it is convenient to have "log in" and
- "log out" keys. For instance, `bind I login on' and `bind O login
- off' will map these keys to be `C-a I' and `C-a O' (*note Key
- Binding::).
-
-
-File: screen.info, Node: Mode, Next: Monitor, Prev: Login, Up: Window Settings
-
-Mode
-====
-
- - Command: defmode mode
- (none)
- The mode of each newly allocated pseudo-tty is set to MODE. MODE
- is an octal number as used by chmod(1). Defaults to 0622 for
- windows which are logged in, 0600 for others (e.g. when `-ln' was
- specified for creation, *note Screen Command::).
-
-
-File: screen.info, Node: Monitor, Next: Windows, Prev: Mode, Up: Window Settings
-
-Monitoring
-==========
-
- - Command: activity message
- (none)
- When any activity occurs in a background window that is being
- monitored, `screen' displays a notification in the message line.
- The notification message can be redefined by means of the
- `activity' command. Each occurrence of `%' in MESSAGE is replaced
- by the number of the window in which activity has occurred, and
- each occurrence of `^G' is replaced by the definition for bell in
- your termcap (usually an audible bell). The default message is
-
- 'Activity in window %n'
-
- Note that monitoring is off for all windows by default, but can be
- altered by use of the `monitor' command (`C-a M').
-
- - Command: defmonitor state
- (none)
- Same as the `monitor' command except that the default setting for
- new windows is changed. Initial setting is `off'.
-
- - Command: monitor [state]
- (`C-a M')
- Toggles monitoring of the current window. When monitoring is
- turned on and the affected window is switched into the background,
- the activity notification message will be displayed in the status
- line at the first sign of output, and the window will also be
- marked with an `@' in the window-status display (*note Windows::).
- Monitoring defaults to `off' for all windows.
-
-
-File: screen.info, Node: Windows, Next: Hardstatus, Prev: Monitor, Up: Window Settings
-
-Windows
-=======
-
- - Command: windows
- (`C-a w', `C-a C-w')
- Uses the message line to display a list of all the windows. Each
- window is listed by number with the name of the program running in
- the window (or its title).
-
- The current window is marked with a `*'; the previous window is
- marked with a `-'; all the windows that are logged in are marked
- with a `$' (*note Login::); a background window that has received
- a bell is marked with a `!'; a background window that is being
- monitored and has had activity occur is marked with an `@' (*note
- Monitor::); a window which has output logging turned on is marked
- with `(L)'; windows occupied by other users are marked with `&' or
- `&&' if the window is shared by other users; windows in the zombie
- state are marked with `Z'.
-
- If this list is too long to fit on the terminal's status line only
- the portion around the current window is displayed.
-
-
-File: screen.info, Node: Hardstatus, Prev: Windows, Up: Window Settings
-
-Hardstatus
-==========
-
- `Screen' maintains a hardstatus line for every window. If a window
-gets selected, the display's hardstatus will be updated to match the
-window's hardstatus line. The hardstatus line can be changed with the
-ANSI Application Program Command (APC): `ESC_<string>ESC\'. As a
-convenience for xterm users the sequence `ESC]0..2;<string>^G' is also
-accepted.
-
- - Command: defhstatus [status]
- (none)
- The hardstatus line that all new windows will get is set to STATUS.
- This command is useful to make the hardstatus of every window
- display the window number or title or the like. STATUS may
- contain the same directives as in the window messages, but the
- directive escape character is `^E' (octal 005) instead of `%'.
- This was done to make a misinterpretation of program generated
- hardstatus lines impossible. If the parameter STATUS is omitted,
- the current default string is displayed. Per default the
- hardstatus line of new windows is empty.
-
- - Command: hstatus status
- (none)
- Changes the current window's hardstatus line to STATUS.
-
-
-File: screen.info, Node: Virtual Terminal, Next: Copy and Paste, Prev: Window Settings, Up: Top
-
-Virtual Terminal
-****************
-
- Each window in a `screen' session emulates a VT100 terminal, with
-some extra functions added. The VT100 emulator is hard-coded, no other
-terminal types can be emulated. The commands described here modify the
-terminal emulation.
-
-* Menu:
-
-* Control Sequences:: Details of the internal VT100 emulation.
-* Input Translation:: How keystrokes are remapped.
-* Digraph:: Entering digraph sequences.
-* Bell:: Getting your attention.
-* Clear:: Clear the window display.
-* Info:: Terminal emulation statistics.
-* Redisplay:: When the display gets confusing.
-* Wrap:: Automatic margins.
-* Reset:: Recovering from ill-behaved applications.
-* Window Size:: Changing the size of your terminal.
-* Character Processing:: Change the effect of special characters.
-
-
-File: screen.info, Node: Control Sequences, Next: Input Translation, Up: Virtual Terminal
-
-Control Sequences
-=================
-
- The following is a list of control sequences recognized by `screen'.
-`(V)' and `(A)' indicate VT100-specific and ANSI- or ISO-specific
-functions, respectively.
-
- ESC E Next Line
- ESC D Index
- ESC M Reverse Index
- ESC H Horizontal Tab Set
- ESC Z Send VT100 Identification String
- ESC 7 (V) Save Cursor and Attributes
- ESC 8 (V) Restore Cursor and Attributes
- ESC [s (A) Save Cursor and Attributes
- ESC [u (A) Restore Cursor and Attributes
- ESC c Reset to Initial State
- ESC g Visual Bell
- ESC Pn p Cursor Visibility (97801)
- Pn = 6 Invisible
- 7 Visible
- ESC = (V) Application Keypad Mode
- ESC > (V) Numeric Keypad Mode
- ESC # 8 (V) Fill Screen with E's
- ESC \ (A) String Terminator
- ESC ^ (A) Privacy Message String (Message Line)
- ESC ! Global Message String (Message Line)
- ESC k Title Definition String
- ESC P (A) Device Control String
- Outputs a string directly to the host
- terminal without interpretation.
- ESC _ (A) Application Program Command (Hardstatus)
- ESC ] 0 ; string ^G (A) Operating System Command (Hardstatus, xterm
- title hack)
- ESC ] 83 ; cmd ^G (A) Execute screen command. This only works if
- multi-user support is compiled into screen.
- The pseudo-user ":window:" is used to check
- the access control list. Use "addacl :window:
- -rwx #?" to create a user with no rights and
- allow only the needed commands.
- Control-N (A) Lock Shift G1 (SO)
- Control-O (A) Lock Shift G0 (SI)
- ESC n (A) Lock Shift G2
- ESC o (A) Lock Shift G3
- ESC N (A) Single Shift G2
- ESC O (A) Single Shift G3
- ESC ( Pcs (A) Designate character set as G0
- ESC ) Pcs (A) Designate character set as G1
- ESC * Pcs (A) Designate character set as G2
- ESC + Pcs (A) Designate character set as G3
- ESC [ Pn ; Pn H Direct Cursor Addressing
- ESC [ Pn ; Pn f same as above
- ESC [ Pn J Erase in Display
- Pn = None or 0 From Cursor to End of Screen
- 1 From Beginning of Screen to Cursor
- 2 Entire Screen
- ESC [ Pn K Erase in Line
- Pn = None or 0 From Cursor to End of Line
- 1 From Beginning of Line to Cursor
- 2 Entire Line
- ESC [ Pn X Erase character
- ESC [ Pn A Cursor Up
- ESC [ Pn B Cursor Down
- ESC [ Pn C Cursor Right
- ESC [ Pn D Cursor Left
- ESC [ Pn E Cursor next line
- ESC [ Pn F Cursor previous line
- ESC [ Pn G Cursor horizontal position
- ESC [ Pn ` same as above
- ESC [ Pn d Cursor vertical position
- ESC [ Ps ;...; Ps m Select Graphic Rendition
- Ps = None or 0 Default Rendition
- 1 Bold
- 2 (A) Faint
- 3 (A) Standout Mode (ANSI: Italicized)
- 4 Underlined
- 5 Blinking
- 7 Negative Image
- 22 (A) Normal Intensity
- 23 (A) Standout Mode off (ANSI: Italicized off)
- 24 (A) Not Underlined
- 25 (A) Not Blinking
- 27 (A) Positive Image
- 30 (A) Foreground Black
- 31 (A) Foreground Red
- 32 (A) Foreground Green
- 33 (A) Foreground Yellow
- 34 (A) Foreground Blue
- 35 (A) Foreground Magenta
- 36 (A) Foreground Cyan
- 37 (A) Foreground White
- 39 (A) Foreground Default
- 40 (A) Background Black
- ... ...
- 49 (A) Background Default
- ESC [ Pn g Tab Clear
- Pn = None or 0 Clear Tab at Current Position
- 3 Clear All Tabs
- ESC [ Pn ; Pn r (V) Set Scrolling Region
- ESC [ Pn I (A) Horizontal Tab
- ESC [ Pn Z (A) Backward Tab
- ESC [ Pn L (A) Insert Line
- ESC [ Pn M (A) Delete Line
- ESC [ Pn @ (A) Insert Character
- ESC [ Pn P (A) Delete Character
- ESC [ Pn S Scroll Scrolling Region Up
- ESC [ Pn T Scroll Scrolling Region Down
- ESC [ Pn ^ same as above
- ESC [ Ps ;...; Ps h Set Mode
- ESC [ Ps ;...; Ps l Reset Mode
- Ps = 4 (A) Insert Mode
- 20 (A) `Automatic Linefeed' Mode.
- 34 Normal Cursor Visibility
- ?1 (V) Application Cursor Keys
- ?3 (V) Change Terminal Width to 132 columns
- ?5 (V) Reverse Video
- ?6 (V) `Origin' Mode
- ?7 (V) `Wrap' Mode
- ?9 X10 mouse tracking
- ?25 (V) Visible Cursor
- ?47 Alternate Screen (old xterm code)
- ?1000 (V) VT200 mouse tracking
- ?1047 Alternate Screen (new xterm code)
- ?1049 Alternate Screen (new xterm code)
- ESC [ 5 i (A) Start relay to printer (ANSI Media Copy)
- ESC [ 4 i (A) Stop relay to printer (ANSI Media Copy)
- ESC [ 8 ; Ph ; Pw t Resize the window to `Ph' lines and
- `Pw' columns (SunView special)
- ESC [ c Send VT100 Identification String
- ESC [ x (V) Send Terminal Parameter Report
- ESC [ > c Send Secondary Device Attributes String
- ESC [ 6 n Send Cursor Position Report
-
diff --git a/doc/screen.info-3 b/doc/screen.info-3
deleted file mode 100644
index 6c78005..0000000
--- a/doc/screen.info-3
+++ /dev/null
@@ -1,1255 +0,0 @@
-This is screen.info, produced by makeinfo version 4.5 from
-./screen.texinfo.
-
-INFO-DIR-SECTION General Commands
-START-INFO-DIR-ENTRY
-* Screen: (screen). Full-screen window manager.
-END-INFO-DIR-ENTRY
-
- This file documents the `Screen' virtual terminal manager.
-
- Copyright (c) 1993-2003 Free Software Foundation, Inc.
-
- Permission is granted to make and distribute verbatim copies of this
-manual provided the copyright notice and this permission notice are
-preserved on all copies.
-
- Permission is granted to copy and distribute modified versions of
-this manual under the conditions for verbatim copying, provided that
-the entire resulting derived work is distributed under the terms of a
-permission notice identical to this one.
-
- Permission is granted to copy and distribute translations of this
-manual into another language, under the above conditions for modified
-versions, except that this permission notice may be stated in a
-translation approved by the Foundation.
-
-
-File: screen.info, Node: Input Translation, Next: Digraph, Prev: Control Sequences, Up: Virtual Terminal
-
-Input Translation
-=================
-
- In order to do a full VT100 emulation `screen' has to detect that a
-sequence of characters in the input stream was generated by a keypress
-on the user's keyboard and insert the VT100 style escape sequence.
-`Screen' has a very flexible way of doing this by making it possible to
-map arbitrary commands on arbitrary sequences of characters. For
-standard VT100 emulation the command will always insert a string in the
-input buffer of the window (see also command `stuff', *note Paste::).
-Because the sequences generated by a keypress can change after a
-reattach from a different terminal type, it is possible to bind
-commands to the termcap name of the keys. `Screen' will insert the
-correct binding after each reattach. See *Note Bindkey:: for further
-details on the syntax and examples.
-
- Here is the table of the default key bindings. (A) means that the
-command is executed if the keyboard is switched into application mode.
-
- Key name Termcap name Command
- -----------------------------------------------------
- Cursor up ku stuff \033[A
- stuff \033OA (A)
- Cursor down kd stuff \033[B
- stuff \033OB (A)
- Cursor right kr stuff \033[C
- stuff \033OC (A)
- Cursor left kl stuff \033[D
- stuff \033OD (A)
- Function key 0 k0 stuff \033[10~
- Function key 1 k1 stuff \033OP
- Function key 2 k2 stuff \033OQ
- Function key 3 k3 stuff \033OR
- Function key 4 k4 stuff \033OS
- Function key 5 k5 stuff \033[15~
- Function key 6 k6 stuff \033[17~
- Function key 7 k7 stuff \033[18~
- Function key 8 k8 stuff \033[19~
- Function key 9 k9 stuff \033[20~
- Function key 10 k; stuff \033[21~
- Function key 11 F1 stuff \033[23~
- Function key 12 F2 stuff \033[24~
- Home kh stuff \033[1~
- End kH stuff \033[4~
- Insert kI stuff \033[2~
- Delete kD stuff \033[3~
- Page up kP stuff \033[5~
- Page down kN stuff \033[6~
- Keypad 0 f0 stuff 0
- stuff \033Op (A)
- Keypad 1 f1 stuff 1
- stuff \033Oq (A)
- Keypad 2 f2 stuff 2
- stuff \033Or (A)
- Keypad 3 f3 stuff 3
- stuff \033Os (A)
- Keypad 4 f4 stuff 4
- stuff \033Ot (A)
- Keypad 5 f5 stuff 5
- stuff \033Ou (A)
- Keypad 6 f6 stuff 6
- stuff \033Ov (A)
- Keypad 7 f7 stuff 7
- stuff \033Ow (A)
- Keypad 8 f8 stuff 8
- stuff \033Ox (A)
- Keypad 9 f9 stuff 9
- stuff \033Oy (A)
- Keypad + f+ stuff +
- stuff \033Ok (A)
- Keypad - f- stuff -
- stuff \033Om (A)
- Keypad * f* stuff *
- stuff \033Oj (A)
- Keypad / f/ stuff /
- stuff \033Oo (A)
- Keypad = fq stuff =
- stuff \033OX (A)
- Keypad . f. stuff .
- stuff \033On (A)
- Keypad , f, stuff ,
- stuff \033Ol (A)
- Keypad enter fe stuff \015
- stuff \033OM (A)
-
-
-File: screen.info, Node: Digraph, Next: Bell, Prev: Input Translation, Up: Virtual Terminal
-
-Digraph
-=======
-
- - Command: digraph [preset]
- (none)
- This command prompts the user for a digraph sequence. The next two
- characters typed are looked up in a builtin table and the
- resulting character is inserted in the input stream. For example,
- if the user enters `a"', an a-umlaut will be inserted. If the
- first character entered is a 0 (zero), `screen' will treat the
- following characters (up to three) as an octal number instead.
- The optional argument PRESET is treated as user input, thus one
- can create an "umlaut" key. For example the command `bindkey ^K
- digraph '"'' enables the user to generate an a-umlaut by typing
- `CTRL-K a'.
-
-
-File: screen.info, Node: Bell, Next: Clear, Prev: Digraph, Up: Virtual Terminal
-
-Bell
-====
-
- - Command: bell_msg [message]
- (none)
- When a bell character is sent to a background window, `screen'
- displays a notification in the message line. The notification
- message can be re-defined by this command. Each occurrence of `%'
- in MESSAGE is replaced by the number of the window to which a bell
- has been sent, and each occurrence of `^G' is replaced by the
- definition for bell in your termcap (usually an audible bell).
- The default message is
-
- 'Bell in window %n'
-
- An empty message can be supplied to the `bell_msg' command to
- suppress output of a message line (`bell_msg ""'). Without
- parameter, the current message is shown.
-
- - Command: vbell [state]
- (`C-a C-g')
- Sets or toggles the visual bell setting for the current window. If
- `vbell' is switched to `on', but your terminal does not support a
- visual bell, the visual bell message is displayed in the status
- line when the bell character is received. Visual bell support of
- a terminal is defined by the termcap variable `vb'. *Note Visual
- Bell: (termcap)Bell, for more information on visual bells. The
- equivalent terminfo capability is `flash'.
-
- Per default, `vbell' is `off', thus the audible bell is used.
-
- - Command: vbell_msg [message]
- (none)
- Sets the visual bell message. MESSAGE is printed to the status
- line if the window receives a bell character (^G), `vbell' is set
- to `on' and the terminal does not support a visual bell. The
- default message is `Wuff, Wuff!!'. Without parameter, the current
- message is shown.
-
- - Command: vbellwait sec
- (none)
- Define a delay in seconds after each display of `screen' 's visual
- bell message. The default is 1 second.
-
-
-File: screen.info, Node: Clear, Next: Info, Prev: Bell, Up: Virtual Terminal
-
-Clear
-=====
-
- - Command: clear
- (`C-a C')
- Clears the screen and saves its contents to the scrollback buffer.
-
-
-File: screen.info, Node: Info, Next: Redisplay, Prev: Clear, Up: Virtual Terminal
-
-Info
-====
-
- - Command: info
- (`C-a i', `C-a C-i')
- Uses the message line to display some information about the current
- window: the cursor position in the form `(COLUMN,ROW)' starting
- with `(1,1)', the terminal width and height plus the size of the
- scrollback buffer in lines, like in `(80,24)+50', the current
- state of window XON/XOFF flow control is shown like this (*note
- Flow Control::):
- +flow automatic flow control, currently on.
- -flow automatic flow control, currently off.
- +(+)flow flow control enabled. Agrees with automatic control.
- -(+)flow flow control disabled. Disagrees with automatic control.
- +(-)flow flow control enabled. Disagrees with automatic control.
- -(-)flow flow control disabled. Agrees with automatic control.
-
- The current line wrap setting (`+wrap' indicates enabled, `-wrap'
- not) is also shown. The flags `ins', `org', `app', `log', `mon'
- and `nored' are displayed when the window is in insert mode,
- origin mode, application-keypad mode, has output logging, activity
- monitoring or partial redraw enabled.
-
- The currently active character set (`G0', `G1', `G2', or `G3'),
- and in square brackets the terminal character sets that are
- currently designated as `G0' through `G3'. If the window is in
- UTF-8 mode, the string `UTF-8' is shown instead. Additional modes
- depending on the type of the window are displayed at the end of
- the status line (*note Window Types::).
-
- If the state machine of the terminal emulator is in a non-default
- state, the info line is started with a string identifying the
- current state.
-
- For system information use `time'.
-
- - Command: dinfo
- (none)
- Show what screen thinks about your terminal. Useful if you want to
- know why features like color or the alternate charset don't work.
-
-
-File: screen.info, Node: Redisplay, Next: Wrap, Prev: Info, Up: Virtual Terminal
-
-Redisplay
-=========
-
- - Command: allpartial state
- (none)
- If set to on, only the current cursor line is refreshed on window
- change. This affects all windows and is useful for slow terminal
- lines. The previous setting of full/partial refresh for each
- window is restored with `allpartial off'. This is a global flag
- that immediately takes effect on all windows overriding the
- `partial' settings. It does not change the default redraw behavior
- of newly created windows.
-
- - Command: altscreen state
- (none)
- If set to on, "alternate screen" support is enabled in virtual
- terminals, just like in xterm. Initial setting is `off'.
-
- - Command: partial state
- (none)
- Defines whether the display should be refreshed (as with
- `redisplay') after switching to the current window. This command
- only affects the current window. To immediately affect all
- windows use the `allpartial' command. Default is `off', of
- course. This default is fixed, as there is currently no
- `defpartial' command.
-
- - Command: redisplay
- (`C-a l', `C-a C-l')
- Redisplay the current window. Needed to get a full redisplay in
- partial redraw mode.
-
-
-File: screen.info, Node: Wrap, Next: Reset, Prev: Redisplay, Up: Virtual Terminal
-
-Wrap
-====
-
- - Command: wrap state
- (`C-a r', `C-a C-r')
- Sets the line-wrap setting for the current window. When line-wrap
- is on, the second consecutive printable character output at the
- last column of a line will wrap to the start of the following
- line. As an added feature, backspace (^H) will also wrap through
- the left margin to the previous line. Default is `on'.
-
- - Command: defwrap state
- (none)
- Same as the `wrap' command except that the default setting for new
- windows is changed. Initially line-wrap is on and can be toggled
- with the `wrap' command (`C-a r') or by means of "C-a : wrap
- on|off".
-
-
-File: screen.info, Node: Reset, Next: Window Size, Prev: Wrap, Up: Virtual Terminal
-
-Reset
-=====
-
- - Command: reset
- (`C-a Z')
- Reset the virtual terminal to its "power-on" values. Useful when
- strange settings (like scroll regions or graphics character set)
- are left over from an application.
-
-
-File: screen.info, Node: Window Size, Next: Character Processing, Prev: Reset, Up: Virtual Terminal
-
-Window Size
-===========
-
- - Command: width [`-w'|`-d'] [cols [lines]]
- (`C-a W')
- Toggle the window width between 80 and 132 columns, or set it to
- COLS columns if an argument is specified. This requires a capable
- terminal and the termcap entries `Z0' and `Z1'. See the `termcap'
- command (*note Termcap::), for more information. You can also
- specify a height if you want to change both values. The `-w'
- option tells screen to leave the display size unchanged and just
- set the window size, `-d' vice versa.
-
- - Command: height [`-w'|`-d'] [lines [cols]]
- (none)
- Set the display height to a specified number of lines. When no
- argument is given it toggles between 24 and 42 lines display.
-
-
-File: screen.info, Node: Character Processing, Prev: Window Size, Up: Virtual Terminal
-
-Character Processing
-====================
-
- - Command: c1 [state]
- (none)
- Change c1 code processing. `c1 on' tells screen to treat the input
- characters between 128 and 159 as control functions. Such an
- 8-bit code is normally the same as ESC followed by the
- corresponding 7-bit code. The default setting is to process c1
- codes and can be changed with the `defc1' command. Users with
- fonts that have usable characters in the c1 positions may want to
- turn this off.
-
-
- - Command: gr [state]
- (none)
- Turn GR charset switching on/off. Whenever screen sees an input
- char with an 8th bit set, it will use the charset stored in the GR
- slot and print the character with the 8th bit stripped. The
- default (see also `defgr') is not to process GR switching because
- otherwise the ISO88591 charset would not work.
-
- - Command: bce [state]
- (none)
- Change background-color-erase setting. If `bce' is set to on, all
- characters cleared by an erase/insert/scroll/clear operation will
- be displayed in the current background color. Otherwise the
- default background color is used.
-
- - Command: encoding enc [denc]
- (none)
- Tell screen how to interpret the input/output. The first argument
- sets the encoding of the current window. Each window can emulate
- a different encoding. The optional second parameter overwrites the
- encoding of the connected terminal. It should never be needed as
- screen uses the locale setting to detect the encoding. There is
- also a way to select a terminal encoding depending on the terminal
- type by using the `KJ' termcap entry. *Note Special Capabilities::.
-
- Supported encodings are `eucJP', `SJIS', `eucKR', `eucCN', `Big5',
- `GBK', `KOI8-R', `CP1251', `UTF-8', `ISO8859-2', `ISO8859-3',
- `ISO8859-4', `ISO8859-5', `ISO8859-6', `ISO8859-7', `ISO8859-8',
- `ISO8859-9', `ISO8859-10', `ISO8859-15', `jis'.
-
- See also `defencoding', which changes the default setting of a new
- window.
-
- - Command: charset set
- (none)
- Change the current character set slot designation and charset
- mapping. The first four character of SET are treated as charset
- designators while the fifth and sixth character must be in range
- `0' to `3' and set the GL/GR charset mapping. On every position a
- `.' may be used to indicate that the corresponding charset/mapping
- should not be changed (SET is padded to six characters internally
- by appending `.' chars). New windows have `BBBB02' as default
- charset, unless a `encoding' command is active.
-
- The current setting can be viewed with the *Note Info:: command.
-
- - Command: utf8 [state [dstate]]
- (none)
- Change the encoding used in the current window. If utf8 is
- enabled, the strings sent to the window will be UTF-8 encoded and
- vice versa. Omitting the parameter toggles the setting. If a
- second parameter is given, the display's encoding is also changed
- (this should rather be done with screen's `-U' option). See also
- `defutf8', which changes the default setting of a new window.
-
- - Command: defc1 state
- (none)
- Same as the `c1' command except that the default setting for new
- windows is changed. Initial setting is `on'.
-
- - Command: defgr state
- (none)
- Same as the `gr' command except that the default setting for new
- windows is changed. Initial setting is `off'.
-
- - Command: defbce state
- (none)
- Same as the `bce' command except that the default setting for new
- windows is changed. Initial setting is `off'.
-
- - Command: defencoding enc
- (none)
- Same as the `encoding' command except that the default setting for
- new windows is changed. Initial setting is the encoding taken from
- the terminal.
-
- - Command: defcharset [set]
- Like the `charset' command except that the default setting for new
- windows is changed. Shows current default if called without
- argument.
-
- - Command: defutf8 state
- (none)
- Same as the `utf8' command except that the default setting for new
- windows is changed. Initial setting is `on' if screen was started
- with `-U', otherwise `off'.
-
-
-File: screen.info, Node: Copy and Paste, Next: Subprocess Execution, Prev: Virtual Terminal, Up: Top
-
-Copy and Paste
-**************
-
- For those confined to a hardware terminal, these commands provide a
-cut and paste facility more powerful than those provided by most
-windowing systems.
-
-* Menu:
-
-* Copy:: Copy from scrollback to buffer
-* Paste:: Paste from buffer into window
-* Registers:: Longer-term storage
-* Screen Exchange:: Sharing data between screen users
-* History:: Recalling previous input
-
-
-File: screen.info, Node: Copy, Next: Paste, Up: Copy and Paste
-
-Copying
-=======
-
- - Command: copy
- (`C-a [', `C-a C-[', `C-a <ESC>')
- Enter copy/scrollback mode. This allows you to copy text from the
- current window and its history into the paste buffer. In this mode
- a `vi'-like full screen editor is active, with controls as
- outlined below.
-
-* Menu:
-
-* Line Termination:: End copied lines with CR/LF
-* Scrollback:: Set the size of the scrollback buffer
-* Copy Mode Keys:: Remap keys in copy mode
-* Movement:: Move around in the scrollback buffer
-* Marking:: Select the text you want
-* Repeat count:: Repeat a command
-* Searching:: Find the text you want
-* Specials:: Other random keys
-
-
-File: screen.info, Node: Line Termination, Next: Scrollback, Up: Copy
-
-CR/LF
------
-
- - Command: crlf [state]
- (none)
- This affects the copying of text regions with the `C-a [' command.
- If it is set to `on', lines will be separated by the two character
- sequence `CR'/`LF'. Otherwise only `LF' is used. `crlf' is off
- by default. When no parameter is given, the state is toggled.
-
-
-File: screen.info, Node: Scrollback, Next: Copy Mode Keys, Prev: Line Termination, Up: Copy
-
-Scrollback
-----------
-
- - Command: defscrollback num
- (none)
- Same as the `scrollback' command except that the default setting
- for new windows is changed. Defaults to 100.
-
- - Command: scrollback num
- (none)
- Set the size of the scrollback buffer for the current window to
- NUM lines. The default scrollback is 100 lines. Use `C-a i' to
- view the current setting.
-
- - Command: compacthist [state]
- (none)
- This tells screen whether to suppress trailing blank lines when
- scrolling up text into the history buffer. Turn compacting `on' to
- hold more useful lines in your scrollback buffer.
-
-
-File: screen.info, Node: Copy Mode Keys, Next: Movement, Prev: Scrollback, Up: Copy
-
-markkeys
---------
-
- - Command: markkeys string
- (none)
- This is a method of changing the keymap used for copy/history
- mode. The string is made up of OLDCHAR=NEWCHAR pairs which are
- separated by `:'. Example: The command `markkeys h=^B:l=^F:$=^E'
- would set some keys to be more familiar to `emacs' users. If your
- terminal sends characters, that cause you to abort copy mode, then
- this command may help by binding these characters to do nothing.
- The no-op character is `a'nd is used like this: `markkeys @=L=H'
- if you do not want to use the `H' or `L' commands any longer. As
- shown in this example, multiple keys can be assigned to one
- function in a single statement.
-
-
-File: screen.info, Node: Movement, Next: Marking, Prev: Copy Mode Keys, Up: Copy
-
-Movement Keys
--------------
-
-`h', `j', `k', `l' move the cursor line by line or column by column.
-
-`0', `^' and `$' move to the leftmost column or to the first or last
-non-whitespace character on the line.
-
-`H', `M' and `L' move the cursor to the leftmost column of the top,
-center or bottom line of the window.
-
-`+' and `-' move the cursor to the leftmost column of the next or
-previous line.
-
-`G' moves to the specified absolute line (default: end of buffer).
-
-`|' moves to the specified absolute column.
-
-`w', `b', `e' move the cursor word by word.
-
-`B', `E' move the cursor WORD by WORD (as in vi).
-
-`C-u' and `C-d' scroll the display up/down by the specified amount of
-lines while preserving the cursor position. (Default: half screenfull).
-
-`C-b' and `C-f' move the cursor up/down a full screen.
-
-`g' moves to the beginning of the buffer.
-
-`%' jumps to the specified percentage of the buffer.
-
- Note that Emacs-style movement keys can be specified by a .screenrc
-command. (`markkeys "h=^B:l=^F:$=^E"') There is no simple method for a
-full emacs-style keymap, however, as this involves multi-character
-codes.
-
-
-File: screen.info, Node: Marking, Next: Repeat count, Prev: Movement, Up: Copy
-
-Marking
--------
-
- The copy range is specified by setting two marks. The text between
-these marks will be highlighted. Press `space' to set the first or
-second mark respectively.
-
-`Y' and `y' can be used to mark one whole line or to mark from start of
-line.
-
-`W' marks exactly one word.
-
-
-File: screen.info, Node: Repeat count, Next: Searching, Prev: Marking, Up: Copy
-
-Repeat Count
-------------
-
- Any command in copy mode can be prefixed with a number (by pressing
-digits `0...9') which is taken as a repeat count. Example: `C-a C-[ H
-10 j 5 Y' will copy lines 11 to 15 into the paste buffer.
-
-
-File: screen.info, Node: Searching, Next: Specials, Prev: Repeat count, Up: Copy
-
-Searching
----------
-
-`/' `vi'-like search forward.
-
-`?' `vi'-like search backward.
-
-`C-a s' `emacs' style incremental search forward.
-
-`C-r' `emacs' style reverse i-search.
-
- - Command: ignorecase [state]
- (none)
- Tell screen to ignore the case of characters in searches. Default
- is `off'.
-
-
-File: screen.info, Node: Specials, Prev: Searching, Up: Copy
-
-Specials
---------
-
- There are, however, some keys that act differently here from in
-`vi'. `Vi' does not allow to yank rectangular blocks of text, but
-`screen' does. Press
-
-`c' or `C' to set the left or right margin respectively. If no repeat
-count is given, both default to the current cursor position.
-Example: Try this on a rather full text screen: `C-a [ M 20 l SPACE c
-10 l 5 j C SPACE'.
-
-This moves one to the middle line of the screen, moves in 20 columns
-left, marks the beginning of the paste buffer, sets the left column,
-moves 5 columns down, sets the right column, and then marks the end of
-the paste buffer. Now try:
-`C-a [ M 20 l SPACE 10 l 5 j SPACE'
-
-and notice the difference in the amount of text copied.
-
-`J' joins lines. It toggles between 4 modes: lines separated by a
-newline character (012), lines glued seamless, lines separated by a
-single space or comma separated lines. Note that you can prepend the
-newline character with a carriage return character, by issuing a `set
-crlf on'.
-
-`v' is for all the `vi' users who use `:set numbers' - it toggles the
-left margin between column 9 and 1.
-
-`a' before the final space key turns on append mode. Thus the contents
-of the paste buffer will not be overwritten, but appended to.
-
-`A' turns on append mode and sets a (second) mark.
-
-`>' sets the (second) mark and writes the contents of the paste buffer
-to the screen-exchange file (`/tmp/screen-exchange' per default) once
-copy-mode is finished. *Note Screen Exchange::.
-This example demonstrates how to dump the whole scrollback buffer to
-that file:
-`C-a [ g SPACE G $ >'.
-
-`C-g' gives information about the current line and column.
-
-`x' exchanges the first mark and the current cursor position. You can
-use this to adjust an already placed mark.
-
-`@' does nothing. Absolutely nothing. Does not even exit copy mode.
-
-All keys not described here exit copy mode.
-
-
-File: screen.info, Node: Paste, Next: Registers, Prev: Copy, Up: Copy and Paste
-
-Paste
-=====
-
- - Command: paste [registers [destination]]
- (`C-a ]', `C-a C-]')
- Write the (concatenated) contents of the specified registers to
- the stdin stream of the current window. The register `.' is
- treated as the paste buffer. If no parameter is specified the user
- is prompted to enter a single register. The paste buffer can be
- filled with the `copy', `history' and `readbuf' commands. Other
- registers can be filled with the `register', `readreg' and `paste'
- commands. If `paste' is called with a second argument, the
- contents of the specified registers is pasted into the named
- destination register rather than the window. If `.' is used as the
- second argument, the display's paste buffer is the destination.
- Note, that `paste' uses a wide variety of resources: Usually both,
- a current window and a current display are required. But whenever
- a second argument is specified no current window is needed. When
- the source specification only contains registers (not the paste
- buffer) then there need not be a current display (terminal
- attached), as the registers are a global resource. The paste
- buffer exists once for every user.
-
- - Command: stuff string
- (none)
- Stuff the string STRING in the input buffer of the current window.
- This is like the `paste' command, but with much less overhead.
- You cannot paste large buffers with the `stuff' command. It is most
- useful for key bindings. *Note Bindkey::.
-
- - Command: pastefont [state]
- Tell screen to include font information in the paste buffer. The
- default is not to do so. This command is especially useful for
- multi character fonts like kanji.
-
- - Command: slowpaste msec
- - Command: defslowpaste msec
- (none)
- Define the speed text is inserted in the current window by the
- `paste' command. If the slowpaste value is nonzero text is written
- character by character. `screen' will pause for MSEC milliseconds
- after each write to allow the application to process the input.
- only use `slowpaste' if your underlying system exposes flow
- control problems while pasting large amounts of text.
- `defslowpaste' specifies the default for new windows.
-
- - Command: readreg [-e encoding] [register [filename]]
- (none)
- Does one of two things, dependent on number of arguments: with
- zero or one arguments it it duplicates the paste buffer contents
- into the register specified or entered at the prompt. With two
- arguments it reads the contents of the named file into the
- register, just as `readbuf' reads the screen-exchange file into
- the paste buffer. You can tell screen the encoding of the file
- via the `-e' option. The following example will paste the
- system's password file into the screen window (using register p,
- where a copy remains):
-
- C-a : readreg p /etc/passwd
- C-a : paste p
-
-
-File: screen.info, Node: Registers, Next: Screen Exchange, Prev: Paste, Up: Copy and Paste
-
-Registers
-=========
-
- - Command: copy_reg [key]
- (none)
- Removed. Use `readreg' instead.
-
- - Command: ins_reg [key]
- (none)
- Removed. Use `paste' instead.
-
- - Command: process [key]
- (none)
- Stuff the contents of the specified register into the `screen'
- input queue. If no argument is given you are prompted for a
- register name. The text is parsed as if it had been typed in from
- the user's keyboard. This command can be used to bind multiple
- actions to a single key.
-
- - Command: register [-e encoding] key string
- (none)
- Save the specified STRING to the register KEY. The encoding of
- the string can be specified via the `-e' option.
-
-
-File: screen.info, Node: Screen Exchange, Next: History, Prev: Registers, Up: Copy and Paste
-
-Screen Exchange
-===============
-
- - Command: bufferfile [EXCHANGE-FILE]
- (none)
- Change the filename used for reading and writing with the paste
- buffer. If the EXCHANGE-FILE parameter is omitted, `screen'
- reverts to the default of `/tmp/screen-exchange'. The following
- example will paste the system's password file into the screen
- window (using the paste buffer, where a copy remains):
-
- C-a : bufferfile /etc/passwd
- C-a < C-a ]
- C-a : bufferfile
-
- - Command: readbuf [-e ENCODING] [FILENAME]
- (`C-a <')
- Reads the contents of the specified file into the paste buffer.
- You can tell screen the encoding of the file via the `-e' option.
- If no file is specified, the screen-exchange filename is used.
-
- - Command: removebuf
- (`C-a =')
- Unlinks the screen-exchange file.
-
- - Command: writebuf [-e ENCODING] [FILENAME]
- (`C-a >')
- Writes the contents of the paste buffer to the specified file, or
- the public accessible screen-exchange file if no filename is given.
- This is thought of as a primitive means of communication between
- `screen' users on the same host. If an encoding is specified the
- paste buffer is recoded on the fly to match the encoding. See also
- `C-a <ESC>' (*note Copy::).
-
-
-File: screen.info, Node: History, Prev: Screen Exchange, Up: Copy and Paste
-
-History
-=======
-
- - Command: history
- (`C-a {')
- Usually users work with a shell that allows easy access to previous
- commands. For example, `csh' has the command `!!' to repeat the
- last command executed. `screen' provides a primitive way of
- recalling "the command that started ...": You just type the first
- letter of that command, then hit `C-a {' and `screen' tries to
- find a previous line that matches with the prompt character to the
- left of the cursor. This line is pasted into this window's input
- queue. Thus you have a crude command history (made up by the
- visible window and its scrollback buffer).
-
-
-File: screen.info, Node: Subprocess Execution, Next: Key Binding, Prev: Copy and Paste, Up: Top
-
-Subprocess Execution
-********************
-
- Control Input or Output of a window by another filter process. Use
-with care!
-
-* Menu:
-
-* Exec:: The `exec' command syntax.
-* Using Exec:: Weird things that filters can do.
-
-
-File: screen.info, Node: Exec, Next: Using Exec, Up: Subprocess Execution
-
-Exec
-====
-
- - Command: exec [[FDPAT] NEWCOMMAND [ARGS ... ]]
- (none)
- Run a unix subprocess (specified by an executable path NEWCOMMAND
- and its optional arguments) in the current window. The flow of
- data between newcommands stdin/stdout/stderr, the process
- originally started (let us call it "application-process") and
- screen itself (window) is controlled by the filedescriptor pattern
- FDPAT. This pattern is basically a three character sequence
- representing stdin, stdout and stderr of newcommand. A dot (`.')
- connects the file descriptor to screen. An exclamation mark (`!')
- causes the file descriptor to be connected to the
- application-process. A colon (`:') combines both.
- User input will go to newcommand unless newcommand receives the
- application-process' output (FDPATs first character is `!' or `:')
- or a pipe symbol (`|') is added to the end of FDPAT.
- Invoking `exec' without arguments shows name and arguments of the
- currently running subprocess in this window. Only one subprocess
- can be running per window.
- When a subprocess is running the `kill' command will affect it
- instead of the windows process. Only one subprocess a time can be
- running in each window.
- Refer to the postscript file `doc/fdpat.ps' for a confusing
- illustration of all 21 possible combinations. Each drawing shows
- the digits 2, 1, 0 representing the three file descriptors of
- newcommand. The box marked `W' is usual pty that has the
- application-process on its slave side. The box marked `P' is the
- secondary pty that now has screen at its master side.
-
-
-File: screen.info, Node: Using Exec, Prev: Exec, Up: Subprocess Execution
-
-Using Exec
-==========
-
-Abbreviations:
-
- * Whitespace between the word `exec' and FDPAT and the command name
- can be omitted.
-
- * Trailing dots and a FDPAT consisting only of dots can be omitted.
-
- * A simple `|' is synonymous for the `!..|' pattern.
-
- * The word `exec' can be omitted when the `|' abbreviation is used.
-
- * The word `exec' can always be replaced by leading `!'.
-
-Examples:
-
-`!/bin/sh'
-`exec /bin/sh'
-`exec ... /bin/sh'
- All of the above are equivalent. Creates another shell in the
- same window, while the original shell is still running. Output of
- both shells is displayed and user input is sent to the new
- `/bin/sh'.
-
-`!!stty 19200'
-`exec!stty 19200'
-`exec !.. stty 19200'
- All of the above are equivalent. Set the speed of the window's
- tty. If your stty command operates on stdout, then add another
- `!'. This is a useful command, when a screen window is directly
- connected to a serial line that needs to be configured.
-
-`|less'
-`exec !..| less'
- Both are equivalent. This adds a pager to the window output. The
- special character `|' is needed to give the user control over the
- pager although it gets its input from the window's process. This
- works, because `less' listens on stderr (a behavior that `screen'
- would not expect without the `|') when its stdin is not a tty.
- `Less' versions newer than 177 fail miserably here; good old `pg'
- still works.
-
-`!:sed -n s/.*Error.*/\007/p'
- Sends window output to both, the user and the sed command. The sed
- inserts an additional bell character (oct. 007) to the window
- output seen by screen. This will cause 'Bell in window x'
- messages, whenever the string `Error' appears in the window.
-
-
-File: screen.info, Node: Key Binding, Next: Flow Control, Prev: Subprocess Execution, Up: Top
-
-Key Binding
-***********
-
- You may disagree with some of the default bindings (I know I do).
-The `bind' command allows you to redefine them to suit your preferences.
-
-* Menu:
-
-* Bind:: `bind' syntax.
-* Bind Examples:: Using `bind'.
-* Command Character:: The character used to start keyboard commands.
-* Help:: Show current key bindings.
-* Bindkey:: `bindkey' syntax.
-* Bindkey Examples:: Some easy examples.
-* Bindkey Control:: How to control the bindkey mechanism.
-
-
-File: screen.info, Node: Bind, Next: Bind Examples, Up: Key Binding
-
-The `bind' command
-==================
-
- - Command: bind [-c class] key [command [args]]
- (none)
- Bind a command to a key. The KEY argument is either a single
- character, a two-character sequence of the form `^x' (meaning
- `C-x'), a backslash followed by an octal number (specifying the
- ASCII code of the character), or a backslash followed by a second
- character, such as `\^' or `\\'. The argument can also be quoted,
- if you like. If no further argument is given, any previously
- established binding for this key is removed. The COMMAND argument
- can be any command (*note Command Index::).
-
- If a command class is specified via the `-c' option, the key is
- bound for the specified class. Use the `command' command to
- activate a class. Command classes can be used to create multiple
- command keys or multi-character bindings.
-
- By default, most suitable commands are bound to one or more keys
- (*note Default Key Bindings::; for instance, the command to create
- a new window is bound to `C-c' and `c'. The `bind' command can be
- used to redefine the key bindings and to define new bindings.
-
-
-File: screen.info, Node: Bind Examples, Next: Command Character, Prev: Bind, Up: Key Binding
-
-Examples of the `bind' command
-==============================
-
-Some examples:
-
- bind ' ' windows
- bind ^f screen telnet foobar
- bind \033 screen -ln -t root -h 1000 9 su
-
-would bind the space key to the command that displays a list of windows
-(so that the command usually invoked by `C-a C-w' would also be
-available as `C-a space'), bind `C-f' to the command "create a window
-with a TELNET connection to foobar", and bind <ESC> to the command that
-creates an non-login window with title `root' in slot #9, with a
-superuser shell and a scrollback buffer of 1000 lines.
-
- bind -c demo1 0 select 10
- bind -c demo1 1 select 11
- bind -c demo1 2 select 12
- bindkey "^B" command -c demo1
- makes `C-b 0' select window 10, `C-b 1' window 11, etc.
-
- bind -c demo2 0 select 10
- bind -c demo2 1 select 11
- bind -c demo2 2 select 12
- bind - command -c demo2
- makes `C-a - 0' select window 10, `C-a - 1' window 11, etc.
-
-
-File: screen.info, Node: Command Character, Next: Help, Prev: Bind Examples, Up: Key Binding
-
-Command Character
-=================
-
- - Command: escape xy
- (none)
- Set the command character to X and the character generating a
- literal command character (by triggering the `meta' command) to Y
- (similar to the `-e' option). Each argument is either a single
- character, a two-character sequence of the form `^x' (meaning
- `C-x'), a backslash followed by an octal number (specifying the
- ASCII code of the character), or a backslash followed by a second
- character, such as `\^' or `\\'. The default is `^Aa', but ```'
- is recommended by one of the authors.
-
- - Command: defescape xy
- (none)
- Set the default command characters. This is equivalent to the
- command `escape' except that it is useful for multiuser sessions
- only. In a multiuser session `escape' changes the command
- character of the calling user, where `defescape' changes the
- default command characters for users that will be added later.
-
- - Command: meta
- (`C-a a')
- Send the command character (`C-a') to the process in the current
- window. The keystroke for this command is the second parameter to
- the `-e' command line switch (*note Invoking Screen::), or the
- `escape' .screenrc directive.
-
- - Command: command [-c CLASS]
- (none)
- This command has the same effect as typing the screen escape
- character (`C-a'). It is probably only useful for key bindings.
- If the `-c' option is given, select the specified command class.
- *Note Bind::, *Note Bindkey::.
-
-
-File: screen.info, Node: Help, Next: Bindkey, Prev: Command Character, Up: Key Binding
-
-Help
-====
-
- - Command: help
- (`C-a ?')
- Displays a help screen showing you all the key bindings. The first
- pages list all the internal commands followed by their bindings.
- Subsequent pages will display the custom commands, one command per
- key. Press space when you're done reading each page, or return to
- exit early. All other characters are ignored. If the `-c' option
- is given, display all bound commands for the specified command
- class. *Note Default Key Bindings::.
-
-
-File: screen.info, Node: Bindkey, Next: Bindkey Examples, Prev: Help, Up: Key Binding
-
-Bindkey
-=======
-
- - Command: bindkey [OPTS] [STRING [CMD ARGS]]
- (none)
- This command manages screen's input translation tables. Every
- entry in one of the tables tells screen how to react if a certain
- sequence of characters is encountered. There are three tables: one
- that should contain actions programmed by the user, one for the
- default actions used for terminal emulation and one for screen's
- copy mode to do cursor movement. See *Note Input Translation:: for
- a list of default key bindings.
-
- If the `-d' option is given, bindkey modifies the default table,
- `-m' changes the copy mode table and with neither option the user
- table is selected. The argument `string' is the sequence of
- characters to which an action is bound. This can either be a fixed
- tring or a termcap keyboard capability name (selectable with the
- `-k' option).
-
- Some keys on a VT100 terminal can send a different string if
- application mode is turned on (e.g. the cursor keys). Such keys
- have two entries in the translation table. You can select the
- application mode entry by specifying the `-a' option.
-
- The `-t' option tells screen not to do inter-character timing. One
- cannot turn off the timing if a termcap capability is used.
-
- `cmd' can be any of screen's commands with an arbitrary number of
- `args'. If `cmd' is omitted the key-binding is removed from the
- table.
-
-
-File: screen.info, Node: Bindkey Examples, Next: Bindkey Control, Prev: Bindkey, Up: Key Binding
-
-Bindkey Examples
-================
-
-Here are some examples of keyboard bindings:
-
- bindkey -d
-
-Show all of the default key bindings. The application mode entries are
-marked with [A].
-
- bindkey -k k1 select 1
-
-Make the "F1" key switch to window one.
-
- bindkey -t foo stuff barfoo
-
-Make `foo' an abbreviation of the word `barfoo'. Timeout is disabled so
-that users can type slowly.
-
- bindkey "\024" mapdefault
-
-This key-binding makes `C-t' an escape character for key-bindings. If
-you did the above `stuff barfoo' binding, you can enter the word `foo'
-by typing `C-t foo'. If you want to insert a `C-t' you have to press
-the key twice (i.e. escape the escape binding).
-
- bindkey -k F1 command
-
-Make the F11 (not F1!) key an alternative screen escape (besides `C-a').
-
-
-File: screen.info, Node: Bindkey Control, Prev: Bindkey Examples, Up: Key Binding
-
-Bindkey Control
-===============
-
- - Command: mapdefault
- (none)
- Tell screen that the next input character should only be looked up
- in the default bindkey table.
-
- - Command: mapnotnext
- (none)
- Like mapdefault, but don't even look in the default bindkey table.
-
- - Command: maptimeout timo
- (none)
- Set the intercharacter timer for input sequence detection to a
- timeout of TIMO ms. The default timeout is 300ms. Maptimeout with
- no arguments shows the current setting.
-
-
-File: screen.info, Node: Flow Control, Next: Termcap, Prev: Key Binding, Up: Top
-
-Flow Control
-************
-
- `screen' can trap flow control characters or pass them to the
-program, as you see fit. This is useful when your terminal wants to use
-XON/XOFF flow control and you are running a program which wants to use
-^S/^Q for other purposes (i.e. `emacs').
-
-* Menu:
-
-* Flow Control Summary:: The effect of `screen' flow control
-* Flow:: Setting the flow control behavior
-* XON/XOFF:: Sending XON or XOFF to the window
-
-
-File: screen.info, Node: Flow Control Summary, Next: Flow, Up: Flow Control
-
-About `screen' flow control settings
-====================================
-
- Each window has a flow-control setting that determines how screen
-deals with the XON and XOFF characters (and perhaps the interrupt
-character). When flow-control is turned off, screen ignores the XON
-and XOFF characters, which allows the user to send them to the current
-program by simply typing them (useful for the `emacs' editor, for
-instance). The trade-off is that it will take longer for output from a
-"normal" program to pause in response to an XOFF. With flow-control
-turned on, XON and XOFF characters are used to immediately pause the
-output of the current window. You can still send these characters to
-the current program, but you must use the appropriate two-character
-screen commands (typically `C-a q' (xon) and `C-a s' (xoff)). The
-xon/xoff commands are also useful for typing C-s and C-q past a
-terminal that intercepts these characters.
-
- Each window has an initial flow-control value set with either the
-`-f' option or the `defflow' command. By default the windows are set
-to automatic flow-switching. It can then be toggled between the three
-states 'fixed on', 'fixed off' and 'automatic' interactively with the
-`flow' command bound to `C-a f'.
-
- The automatic flow-switching mode deals with flow control using the
-TIOCPKT mode (like `rlogin' does). If the tty driver does not support
-TIOCPKT, screen tries to determine the right mode based on the current
-setting of the application keypad -- when it is enabled, flow-control
-is turned off and visa versa. Of course, you can still manipulate
-flow-control manually when needed.
-
- If you're running with flow-control enabled and find that pressing
-the interrupt key (usually C-c) does not interrupt the display until
-another 6-8 lines have scrolled by, try running screen with the
-`interrupt' option (add the `interrupt' flag to the `flow' command in
-your .screenrc, or use the `-i' command-line option). This causes the
-output that `screen' has accumulated from the interrupted program to be
-flushed. One disadvantage is that the virtual terminal's memory
-contains the non-flushed version of the output, which in rare cases can
-cause minor inaccuracies in the output. For example, if you switch
-screens and return, or update the screen with `C-a l' you would see the
-version of the output you would have gotten without `interrupt' being
-on. Also, you might need to turn off flow-control (or use auto-flow
-mode to turn it off automatically) when running a program that expects
-you to type the interrupt character as input, as the `interrupt'
-parameter only takes effect when flow-control is enabled. If your
-program's output is interrupted by mistake, a simple refresh of the
-screen with `C-a l' will restore it. Give each mode a try, and use
-whichever mode you find more comfortable.
-
-
-File: screen.info, Node: Flow, Next: XON/XOFF, Prev: Flow Control Summary, Up: Flow Control
-
-Flow
-====
-
- - Command: defflow fstate [interrupt]
- (none)
- Same as the `flow' command except that the default setting for new
- windows is changed. Initial setting is `auto'. Specifying `flow
- auto interrupt' has the same effect as the command-line options
- `-fa' and `-i'. Note that if `interrupt' is enabled, all existing
- displays are changed immediately to forward interrupt signals.
-
- - Command: flow [fstate]
- (`C-a f', `C-a C-f')
- Sets the flow-control mode for this window to FSTATE, which can be
- `on', `off' or `auto'. Without parameters it cycles the current
- window's flow-control setting. Default is set by `defflow'.
-
-
-File: screen.info, Node: XON/XOFF, Prev: Flow, Up: Flow Control
-
-XON and XOFF
-============
-
- - Command: xon
- (`C-a q', `C-a C-q')
- Send a ^Q (ASCII XON) to the program in the current window.
- Redundant if flow control is set to `off' or `auto'.
-
- - Command: xoff
- (`C-a s', `C-a C-s')
- Send a ^S (ASCII XOFF) to the program in the current window.
-
-
-File: screen.info, Node: Termcap, Next: Message Line, Prev: Flow Control, Up: Top
-
-Termcap
-*******
-
- `screen' demands the most out of your terminal so that it can
-perform its VT100 emulation most efficiently. These functions provide
-means for tweaking the termcap entries for both your physical terminal
-and the one simulated by `screen'.
-
-* Menu:
-
-* Window Termcap:: Choosing a termcap entry for the window.
-* Dump Termcap:: Write out a termcap entry for the window.
-* Termcap Syntax:: The `termcap' and `terminfo' commands.
-* Termcap Examples:: Uses for `termcap'.
-* Special Capabilities:: Non-standard capabilities used by `screen'.
-* Autonuke:: Flush unseen output
-* Obuflimit:: Allow pending output when reading more
-* Character Translation:: Emulating fonts and charsets.
-
diff --git a/doc/screen.info-4 b/doc/screen.info-4
deleted file mode 100644
index 7a778f2..0000000
--- a/doc/screen.info-4
+++ /dev/null
@@ -1,1411 +0,0 @@
-This is screen.info, produced by makeinfo version 4.5 from
-./screen.texinfo.
-
-INFO-DIR-SECTION General Commands
-START-INFO-DIR-ENTRY
-* Screen: (screen). Full-screen window manager.
-END-INFO-DIR-ENTRY
-
- This file documents the `Screen' virtual terminal manager.
-
- Copyright (c) 1993-2003 Free Software Foundation, Inc.
-
- Permission is granted to make and distribute verbatim copies of this
-manual provided the copyright notice and this permission notice are
-preserved on all copies.
-
- Permission is granted to copy and distribute modified versions of
-this manual under the conditions for verbatim copying, provided that
-the entire resulting derived work is distributed under the terms of a
-permission notice identical to this one.
-
- Permission is granted to copy and distribute translations of this
-manual into another language, under the above conditions for modified
-versions, except that this permission notice may be stated in a
-translation approved by the Foundation.
-
-
-File: screen.info, Node: Window Termcap, Next: Dump Termcap, Up: Termcap
-
-Choosing the termcap entry for a window
-=======================================
-
- Usually `screen' tries to emulate as much of the VT100/ANSI standard
-as possible. But if your terminal lacks certain capabilities the
-emulation may not be complete. In these cases `screen' has to tell the
-applications that some of the features are missing. This is no problem
-on machines using termcap, because `screen' can use the `$TERMCAP'
-variable to customize the standard screen termcap.
-
- But if you do a rlogin on another machine or your machine supports
-only terminfo this method fails. Because of this `screen' offers a way
-to deal with these cases. Here is how it works:
-
- When `screen' tries to figure out a terminal name for itself, it
-first looks for an entry named `screen.TERM', where TERM is the
-contents of your `$TERM' variable. If no such entry exists, `screen'
-tries `screen' (or `screen-w', if the terminal is wide (132 cols or
-more)). If even this entry cannot be found, `vt100' is used as a
-substitute.
-
- The idea is that if you have a terminal which doesn't support an
-important feature (e.g. delete char or clear to EOS) you can build a new
-termcap/terminfo entry for `screen' (named `screen.DUMBTERM') in which
-this capability has been disabled. If this entry is installed on your
-machines you are able to do a rlogin and still keep the correct
-termcap/terminfo entry. The terminal name is put in the `$TERM'
-variable of all new windows. `screen' also sets the `$TERMCAP'
-variable reflecting the capabilities of the virtual terminal emulated.
-Furthermore, the variable `$WINDOW' is set to the window number of each
-window.
-
- The actual set of capabilities supported by the virtual terminal
-depends on the capabilities supported by the physical terminal. If, for
-instance, the physical terminal does not support underscore mode,
-`screen' does not put the `us' and `ue' capabilities into the window's
-`$TERMCAP' variable, accordingly. However, a minimum number of
-capabilities must be supported by a terminal in order to run `screen';
-namely scrolling, clear screen, and direct cursor addressing (in
-addition, `screen' does not run on hardcopy terminals or on terminals
-that over-strike).
-
- Also, you can customize the `$TERMCAP' value used by `screen' by
-using the `termcap' command, or by defining the variable `$SCREENCAP'
-prior to startup. When the latter defined, its value will be copied
-verbatim into each window's `$TERMCAP' variable. This can either be
-the full terminal definition, or a filename where the terminal `screen'
-(and/or `screen-w') is defined.
-
- Note that `screen' honors the `terminfo' command if the system uses
-the terminfo database rather than termcap. On such machines the
-`$TERMCAP' variable has no effect and you must use the `dumptermcap'
-command (*note Dump Termcap::) and the `tic' program to generate
-terminfo entries for `screen' windows.
-
- When the boolean `G0' capability is present in the termcap entry for
-the terminal on which `screen' has been called, the terminal emulation
-of `screen' supports multiple character sets. This allows an
-application to make use of, for instance, the VT100 graphics character
-set or national character sets. The following control functions from
-ISO 2022 are supported: `lock shift G0' (`SI'), `lock shift G1' (`SO'),
-`lock shift G2', `lock shift G3', `single shift G2', and `single shift
-G3'. When a virtual terminal is created or reset, the ASCII character
-set is designated as `G0' through `G3'. When the `G0' capability is
-present, screen evaluates the capabilities `S0', `E0', and `C0' if
-present. `S0' is the sequence the terminal uses to enable and start the
-graphics character set rather than `SI'. `E0' is the corresponding
-replacement for `SO'. `C0' gives a character by character translation
-string that is used during semi-graphics mode. This string is built
-like the `acsc' terminfo capability.
-
- When the `po' and `pf' capabilities are present in the terminal's
-termcap entry, applications running in a `screen' window can send
-output to the printer port of the terminal. This allows a user to have
-an application in one window sending output to a printer connected to
-the terminal, while all other windows are still active (the printer
-port is enabled and disabled again for each chunk of output). As a
-side-effect, programs running in different windows can send output to
-the printer simultaneously. Data sent to the printer is not displayed
-in the window. The `info' command displays a line starting with `PRIN'
-while the printer is active.
-
- Some capabilities are only put into the `$TERMCAP' variable of the
-virtual terminal if they can be efficiently implemented by the physical
-terminal. For instance, `dl' (delete line) is only put into the
-`$TERMCAP' variable if the terminal supports either delete line itself
-or scrolling regions. Note that this may provoke confusion, when the
-session is reattached on a different terminal, as the value of
-`$TERMCAP' cannot be modified by parent processes. You can force
-`screen' to include all capabilities in `$TERMCAP' with the `-a'
-command-line option (*note Invoking Screen::).
-
- The "alternate screen" capability is not enabled by default. Set
-the `altscreen' `.screenrc' command to enable it.
-
-
-File: screen.info, Node: Dump Termcap, Next: Termcap Syntax, Prev: Window Termcap, Up: Termcap
-
-Write out the window's termcap entry
-====================================
-
- - Command: dumptermcap
- (`C-a .')
- Write the termcap entry for the virtual terminal optimized for the
- currently active window to the file `.termcap' in the user's
- `$HOME/.screen' directory (or wherever `screen' stores its
- sockets. *note Files::). This termcap entry is identical to the
- value of the environment variable `$TERMCAP' that is set up by
- `screen' for each window. For terminfo based systems you will need
- to run a converter like `captoinfo' and then compile the entry with
- `tic'.
-
-
-File: screen.info, Node: Termcap Syntax, Next: Termcap Examples, Prev: Dump Termcap, Up: Termcap
-
-The `termcap' command
-=====================
-
- - Command: termcap term terminal-tweaks [window-tweaks]
- - Command: terminfo term terminal-tweaks [window-tweaks]
- - Command: termcapinfo term terminal-tweaks [window-tweaks]
- (none)
- Use this command to modify your terminal's termcap entry without
- going through all the hassles involved in creating a custom
- termcap entry. Plus, you can optionally customize the termcap
- generated for the windows. You have to place these commands in
- one of the screenrc startup files, as they are meaningless once
- the terminal emulator is booted.
-
- If your system uses the terminfo database rather than termcap,
- `screen' will understand the `terminfo' command, which has the
- same effects as the `termcap' command. Two separate commands are
- provided, as there are subtle syntactic differences, e.g. when
- parameter interpolation (using `%') is required. Note that the
- termcap names of the capabilities should also be used with the
- `terminfo' command.
-
- In many cases, where the arguments are valid in both terminfo and
- termcap syntax, you can use the command `termcapinfo', which is
- just a shorthand for a pair of `termcap' and `terminfo' commands
- with identical arguments.
-
- The first argument specifies which terminal(s) should be affected by
-this definition. You can specify multiple terminal names by separating
-them with `|'s. Use `*' to match all terminals and `vt*' to match all
-terminals that begin with `vt'.
-
- Each TWEAK argument contains one or more termcap defines (separated
-by `:'s) to be inserted at the start of the appropriate termcap entry,
-enhancing it or overriding existing values. The first tweak modifies
-your terminal's termcap, and contains definitions that your terminal
-uses to perform certain functions. Specify a null string to leave this
-unchanged (e.g. ""). The second (optional) tweak modifies all the
-window termcaps, and should contain definitions that screen understands
-(*note Virtual Terminal::).
-
-
-File: screen.info, Node: Termcap Examples, Next: Special Capabilities, Prev: Termcap Syntax, Up: Termcap
-
-Termcap Examples
-================
-
- Some examples:
-
- termcap xterm* xn:hs@
-
-Informs `screen' that all terminals that begin with `xterm' have firm
-auto-margins that allow the last position on the screen to be updated
-(xn), but they don't really have a status line (no 'hs' - append `@' to
-turn entries off). Note that we assume `xn' for all terminal names
-that start with `vt', but only if you don't specify a termcap command
-for that terminal.
-
- termcap vt* xn
- termcap vt102|vt220 Z0=\E[?3h:Z1=\E[?3l
-
-Specifies the firm-margined `xn' capability for all terminals that
-begin with `vt', and the second line will also add the escape-sequences
-to switch into (Z0) and back out of (Z1) 132-character-per-line mode if
-this is a VT102 or VT220. (You must specify Z0 and Z1 in your termcap
-to use the width-changing commands.)
-
- termcap vt100 "" l0=PF1:l1=PF2:l2=PF3:l3=PF4
-
-This leaves your vt100 termcap alone and adds the function key labels to
-each window's termcap entry.
-
- termcap h19|z19 am@:im=\E@:ei=\EO dc=\E[P
-
-Takes a h19 or z19 termcap and turns off auto-margins (am@) and enables
-the insert mode (im) and end-insert (ei) capabilities (the `@' in the
-`im' string is after the `=', so it is part of the string). Having the
-`im' and `ei' definitions put into your terminal's termcap will cause
-screen to automatically advertise the character-insert capability in
-each window's termcap. Each window will also get the delete-character
-capability (dc) added to its termcap, which screen will translate into
-a line-update for the terminal (we're pretending it doesn't support
-character deletion).
-
- If you would like to fully specify each window's termcap entry, you
-should instead set the `$SCREENCAP' variable prior to running `screen'.
-*Note Virtual Terminal::, for the details of the `screen' terminal
-emulation. *Note Termcap: (termcap)Top, for more information on
-termcap definitions.
-
-
-File: screen.info, Node: Special Capabilities, Next: Autonuke, Prev: Termcap Examples, Up: Termcap
-
-Special Terminal Capabilities
-=============================
-
- The following table describes all terminal capabilities that are
-recognized by `screen' and are not in the termcap manual (*note
-Termcap: (termcap)Top.). You can place these capabilities in your
-termcap entries (in `/etc/termcap') or use them with the commands
-`termcap', `terminfo' and `termcapinfo' in your `screenrc' files. It is
-often not possible to place these capabilities in the terminfo database.
-`LP'
- (bool)
- Terminal has VT100 style margins (`magic margins'). Note that this
- capability is obsolete -- `screen' now uses the standard `xn'
- instead.
-
-`Z0'
- (str)
- Change width to 132 columns.
-
-`Z1'
- (str)
- Change width to 80 columns.
-
-`WS'
- (str)
- Resize display. This capability has the desired width and height as
- arguments. SunView(tm) example: `\E[8;%d;%dt'.
-
-`NF'
- (bool)
- Terminal doesn't need flow control. Send ^S and ^Q direct to the
- application. Same as `flow off'. The opposite of this capability
- is `nx'.
-
-`G0'
- (bool)
- Terminal can deal with ISO 2022 font selection sequences.
-
-`S0'
- (str)
- Switch charset `G0' to the specified charset. Default is `\E(%.'.
-
-`E0'
- (str)
- Switch charset `G0' back to standard charset. Default is `\E(B'.
-
-`C0'
- (str)
- Use the string as a conversion table for font 0. See the `ac'
- capability for more details.
-
-`CS'
- (str)
- Switch cursor-keys to application mode.
-
-`CE'
- (str)
- Switch cursor-keys to cursor mode.
-
-`AN'
- (bool)
- Enable autonuke for displays of this terminal type. (*note
- Autonuke::).
-
-`OL'
- (num)
- Set the output buffer limit. See the `obuflimit' command (*note
- Obuflimit::) for more details.
-
-`KJ'
- (str)
- Set the encoding of the terminal. See the `encoding' command
- (*note Character Processing::) for valid encodings.
-
-`AF'
- (str)
- Change character foreground color in an ANSI conform way. This
- capability will almost always be set to `\E[3%dm' (`\E[3%p1%dm' on
- terminfo machines).
-
-`AB'
- (str)
- Same as `AF', but change background color.
-
-`AX'
- (bool)
- Does understand ANSI set default fg/bg color (`\E[39m / \E[49m').
-
-`XC'
- (str)
- Describe a translation of characters to strings depending on the
- current font. (*note Character Translation::).
-
-`XT'
- (bool)
- Terminal understands special xterm sequences (OSC, mouse tracking).
-
-`C8'
- (bool)
- Terminal needs bold to display high-intensity colors (e.g. Eterm).
-
-`TF'
- (bool)
- Add missing capabilities to the termcap/info entry. (Set by
- default).
-
-
-File: screen.info, Node: Autonuke, Next: Obuflimit, Prev: Special Capabilities, Up: Termcap
-
-Autonuke
-========
-
- - Command: autonuke STATE
- (none)
- Sets whether a clear screen sequence should nuke all the output
- that has not been written to the terminal. *Note Obuflimit::.
- This property is set per display, not per window.
-
- - Command: defautonuke STATE
- (none)
- Same as the `autonuke' command except that the default setting for
- new displays is also changed. Initial setting is `off'. Note that
- you can use the special `AN' terminal capability if you want to
- have a terminal type dependent setting.
-
-
-File: screen.info, Node: Obuflimit, Next: Character Translation, Prev: Autonuke, Up: Termcap
-
-Obuflimit
-=========
-
- - Command: obuflimit [LIMIT]
- (none)
- If the output buffer contains more bytes than the specified limit,
- no more data will be read from the windows. The default value is
- 256. If you have a fast display (like `xterm'), you can set it to
- some higher value. If no argument is specified, the current
- setting is displayed. This property is set per display, not per
- window.
-
- - Command: defobuflimit LIMIT
- (none)
- Same as the `obuflimit' command except that the default setting
- for new displays is also changed. Initial setting is 256 bytes.
- Note that you can use the special `OL' terminal capability if you
- want to have a terminal type dependent limit.
-
-
-File: screen.info, Node: Character Translation, Prev: Obuflimit, Up: Termcap
-
-Character Translation
-=====================
-
- `Screen' has a powerful mechanism to translate characters to
-arbitrary strings depending on the current font and terminal type. Use
-this feature if you want to work with a common standard character set
-(say ISO8851-latin1) even on terminals that scatter the more unusual
-characters over several national language font pages.
-
- Syntax:
-
- XC=<CHARSET-MAPPING>{,,<CHARSET-MAPPING>}
- <CHARSET-MAPPING> := <DESIGNATOR><TEMPLATE>{,<MAPPING>}
- <MAPPING> := <CHAR-TO-BE-MAPPED><TEMPLATE-ARG>
-
- The things in braces may be repeated any number of times.
-
- A <CHARSET-MAPPING> tells screen how to map characters in font
-<DESIGNATOR> (`B': Ascii, `A': UK, `K': german, etc.) to strings.
-Every <MAPPING> describes to what string a single character will be
-translated. A template mechanism is used, as most of the time the codes
-have a lot in common (for example strings to switch to and from another
-charset). Each occurrence of `%' in <TEMPLATE> gets substituted with the
-TEMPLATE-ARG specified together with the character. If your strings are
-not similar at all, then use `%' as a template and place the full
-string in <TEMPLATE-ARG>. A quoting mechanism was added to make it
-possible to use a real `%'. The `\' character quotes the special
-characters `\', `%', and `,'.
-
- Here is an example:
-
- termcap hp700 'XC=B\E(K%\E(B,\304[,\326\\\\,\334]'
-
- This tells `screen', how to translate ISOlatin1 (charset `B') upper
-case umlaut characters on a `hp700' terminal that has a german charset.
-`\304' gets translated to `\E(K[\E(B' and so on. Note that this line
-gets parsed *three* times before the internal lookup table is built,
-therefore a lot of quoting is needed to create a single `\'.
-
- Another extension was added to allow more emulation: If a mapping
-translates the unquoted `%' char, it will be sent to the terminal
-whenever screen switches to the corresponding <DESIGNATOR>. In this
-special case the template is assumed to be just `%' because the charset
-switch sequence and the character mappings normally haven't much in
-common.
-
- This example shows one use of the extension:
- termcap xterm 'XC=K%,%\E(B,[\304,\\\\\326,]\334'
-
- Here, a part of the german (`K') charset is emulated on an xterm.
-If screen has to change to the `K' charset, `\E(B' will be sent to the
-terminal, i.e. the ASCII charset is used instead. The template is just
-`%', so the mapping is straightforward: `[' to `\304', `\' to `\326',
-and `]' to `\334'.
-
-
-File: screen.info, Node: Message Line, Next: Logging, Prev: Termcap, Up: Top
-
-The Message Line
-****************
-
- `screen' displays informational messages and other diagnostics in a
-"message line" at the bottom of the screen. If your terminal has a
-status line defined in its termcap, screen will use this for displaying
-its messages, otherwise the last line of the screen will be temporarily
-overwritten and output will be momentarily interrupted. The message
-line is automatically removed after a few seconds delay, but it can also
-be removed early (on terminals without a status line) by beginning to
-type.
-
-* Menu:
-
-* Privacy Message:: Using the message line from your program.
-* Hardware Status Line:: Use the terminal's hardware status line.
-* Last Message:: Redisplay the last message.
-* Message Wait:: Control how long messages are displayed.
-
-
-File: screen.info, Node: Privacy Message, Next: Hardware Status Line, Up: Message Line
-
-Using the message line from your program
-========================================
-
- The message line facility can be used by an application running in
-the current window by means of the ANSI "Privacy message" control
-sequence. For instance, from within the shell, try something like:
-
- echo "^Hello world from window $WINDOW\"
-
- where `' is ASCII ESC and `^' is a literal caret or up-arrow.
-
-
-File: screen.info, Node: Hardware Status Line, Next: Last Message, Prev: Privacy Message, Up: Message Line
-
-Hardware Status Line
-====================
-
- - Command: hardstatus [state]
- - Command: hardstatus [`always']`lastline'|`message'|`ignore' [string]
- - Command: hardstatus `string' [string]
- (none)
- This command configures the use and emulation of the terminal's
- hardstatus line. The first form toggles whether `screen' will use
- the hardware status line to display messages. If the flag is set
- to `off', these messages are overlaid in reverse video mode at the
- display line. The default setting is `on'.
-
- The second form tells screen what to do if the terminal doesn't
- have a hardstatus line (i.e. the termcap/terminfo capabilities
- "hs", "ts", "fs" and "ds" are not set). If the type `lastline' is
- used, screen will reserve the last line of the display for the
- hardstatus. `message' uses `screen''s message mechanism and
- `ignore' tells `screen' never to display the hardstatus. If you
- prepend the word `always' to the type (e.g., `alwayslastline'),
- `screen' will use the type even if the terminal supports a
- hardstatus line.
-
- The third form specifies the contents of the hardstatus line.
- `%h' is used as default string, i.e. the stored hardstatus of the
- current window (settable via `ESC]0;^G' or `ESC_\\') is displayed.
- You can customize this to any string you like including string
- escapes (*note String Escapes::). If you leave out the argument
- STRING, the current string is displayed.
-
- You can mix the second and third form by providing the string as
- additional argument.
-
-
-File: screen.info, Node: Last Message, Next: Message Wait, Prev: Hardware Status Line, Up: Message Line
-
-Display Last Message
-====================
-
- - Command: lastmsg
- (`C-a m', `C-a C-m')
- Repeat the last message displayed in the message line. Useful if
- you're typing when a message appears, because (unless your
- terminal has a hardware status line) the message goes away when
- you press a key.
-
-
-File: screen.info, Node: Message Wait, Prev: Last Message, Up: Message Line
-
-Message Wait
-============
-
- - Command: msgminwait sec
- (none)
- Defines the time `screen' delays a new message when another is
- currently displayed. Defaults to 1 second.
-
- - Command: msgwait sec
- (none)
- Defines the time a message is displayed, if `screen' is not
- disturbed by other activity. Defaults to 5 seconds.
-
-
-File: screen.info, Node: Logging, Next: Startup, Prev: Message Line, Up: Top
-
-Logging
-*******
-
- This section describes the commands for keeping a record of your
-session.
-
-* Menu:
-
-* Hardcopy:: Dump the current screen to a file
-* Log:: Log the output of a window to a file
-
-
-File: screen.info, Node: Hardcopy, Next: Log, Up: Logging
-
-hardcopy
-========
-
- - Command: hardcopy [-h] [FILE]
- (`C-a h', `C-a C-h')
- Writes out the currently displayed image to the file FILE, or, if
- no filename is specified, to `hardcopy.N' in the default
- directory, where N is the number of the current window. This
- either appends or overwrites the file if it exists, as determined
- by the `hardcopy_append' command. If the option `-h' is
- specified, dump also the contents of the scrollback buffer.
-
- - Command: hardcopy_append state
- (none)
- If set to `on', `screen' will append to the `hardcopy.N' files
- created by the command `hardcopy'; otherwise, these files are
- overwritten each time.
-
- - Command: hardcopydir directory
- (none)
- Defines a directory where hardcopy files will be placed. If unset
- hardcopys are dumped in screen's current working directory.
-
-
-File: screen.info, Node: Log, Prev: Hardcopy, Up: Logging
-
-log
-===
-
- - Command: deflog state
- (none)
- Same as the `log' command except that the default setting for new
- windows is changed. Initial setting is `off'.
-
- - Command: log [state]
- (`C-a H')
- Begins/ends logging of the current window to the file
- `screenlog.N' in the window's default directory, where N is the
- number of the current window. This filename can be changed with
- the `logfile' command. If no parameter is given, the logging
- state is toggled. The session log is appended to the previous
- contents of the file if it already exists. The current contents
- and the contents of the scrollback history are not included in the
- session log. Default is `off'.
-
- - Command: logfile filename
- - Command: logfile flush secs
- (none)
- Defines the name the logfiles will get. The default is
- `screenlog.%n'. The second form changes the number of seconds
- `screen' will wait before flushing the logfile buffer to the
- file-system. The default value is 10 seconds.
-
- - Command: logtstamp [state]
- - Command: logtstamp `after' secs
- - Command: logtstamp `string' string
- (none)
- This command controls logfile time-stamp mechanism of screen. If
- time-stamps are turned `on', screen adds a string containing the
- current time to the logfile after two minutes of inactivity. When
- output continues and more than another two minutes have passed, a
- second time-stamp is added to document the restart of the output.
- You can change this timeout with the second form of the command.
- The third form is used for customizing the time-stamp string (`--
- %n:%t -- time-stamp -- %M/%d/%y %c:%s --\n' by default).
-
-
-File: screen.info, Node: Startup, Next: Miscellaneous, Prev: Logging, Up: Top
-
-Startup
-*******
-
- This section describes commands which are only useful in the
-`.screenrc' file, for use at startup.
-
-* Menu:
-
-* echo:: Display a message.
-* sleep:: Pause execution of the `.screenrc'.
-* Startup Message:: Control display of the copyright notice.
-
-
-File: screen.info, Node: echo, Next: sleep, Up: Startup
-
-echo
-====
-
- - Command: echo [`-n'] message
- (none)
- The echo command may be used to annoy `screen' users with a
- 'message of the day'. Typically installed in a global screenrc.
- The option `-n' may be used to suppress the line feed. See also
- `sleep'. Echo is also useful for online checking of environment
- variables.
-
-
-File: screen.info, Node: sleep, Next: Startup Message, Prev: echo, Up: Startup
-
-sleep
-=====
-
- - Command: sleep num
- (none)
- This command will pause the execution of a .screenrc file for NUM
- seconds. Keyboard activity will end the sleep. It may be used to
- give users a chance to read the messages output by `echo'.
-
-
-File: screen.info, Node: Startup Message, Prev: sleep, Up: Startup
-
-Startup Message
-===============
-
- - Command: startup_message state
- (none)
- Select whether you want to see the copyright notice during startup.
- Default is `on', as you probably noticed.
-
-
-File: screen.info, Node: Miscellaneous, Next: String Escapes, Prev: Startup, Up: Top
-
-Miscellaneous commands
-**********************
-
- The commands described here do not fit well under any of the other
-categories.
-
-* Menu:
-
-* At:: Execute a command at other displays or windows.
-* Break:: Send a break signal to the window.
-* Debug:: Suppress/allow debugging output.
-* License:: Display the disclaimer page.
-* Nethack:: Use `nethack'-like error messages.
-* Nonblock:: Disable flow-control to a display.
-* Number:: Change the current window's number.
-* Silence:: Notify on inactivity.
-* Time:: Display the time and load average.
-* Verbose:: Display window creation commands.
-* Version:: Display the version of `screen'.
-* Zombie:: Keep dead windows.
-* Printcmd:: Set command for VT100 printer port emulation.
-* Sorendition:: Change the text highlighting method.
-* Attrcolor:: Map attributes to colors.
-* Setsid:: Change process group management.
-* Eval:: Parse and execute arguments.
-* Maxwin:: Set the maximum window number.
-* Backtick:: Program a command for a backtick string escape.
-* Screen Saver:: Define a screen safer.
-* Zmodem:: Define how screen treats zmodem requests.
-
-
-File: screen.info, Node: At, Next: Break, Up: Miscellaneous
-
-At
-==
-
- - Command: at [identifier][#|*|%] command [args]
- (none)
- Execute a command at other displays or windows as if it had been
- entered there. `At' changes the context (the `current window' or
- `current display' setting) of the command. If the first parameter
- describes a non-unique context, the command will be executed
- multiple times. If the first parameter is of the form
- `IDENTIFIER*' then identifier is matched against user names. The
- command is executed once for each display of the selected user(s).
- If the first parameter is of the form `IDENTIFIER%' identifier is
- matched against displays. Displays are named after the ttys they
- attach. The prefix `/dev/' or `/dev/tty' may be omitted from the
- identifier. If IDENTIFIER has a `#' or nothing appended it is
- matched against window numbers and titles. Omitting an identifier
- in front of the `#', `*' or `%' character selects all users,
- displays or windows because a prefix-match is performed. Note that
- on the affected display(s) a short message will describe what
- happened. Note that the `#' character works as a comment
- introducer when it is preceded by whitespace. This can be escaped
- by prefixing `#' with a `\'. Permission is checked for the
- initiator of the `at' command, not for the owners of the affected
- display(s). Caveat: When matching against windows, the command is
- executed at least once per window. Commands that change the
- internal arrangement of windows (like `other') may be called
- again. In shared windows the command will be repeated for each
- attached display. Beware, when issuing toggle commands like
- `login'! Some commands (e.g. `\*Qprocess') require that a display
- is associated with the target windows. These commands may not
- work correctly under `at' looping over windows.
-
-
-File: screen.info, Node: Break, Next: Debug, Prev: At, Up: Miscellaneous
-
-Break
-=====
-
- - Command: break [duration]
- (none)
- Send a break signal for DURATION*0.25 seconds to this window. For
- non-Posix systems the time interval is rounded up to full seconds.
- Most useful if a character device is attached to the window rather
- than a shell process (*note Window Types::). The maximum duration
- of a break signal is limited to 15 seconds.
-
- - Command: pow_break
- (none)
- Reopen the window's terminal line and send a break condition.
-
- - Command: breaktype [tcsendbreak|TIOCSBRK|TCSBRK]
- (none)
- Choose one of the available methods of generating a break signal
- for terminal devices. This command should affect the current
- window only. But it still behaves identical to `defbreaktype'.
- This will be changed in the future. Calling `breaktype' with no
- parameter displays the break setting for the current window.
-
- - Command: defbreaktype [tcsendbreak|TIOCSBRK|TCSBRK]
- (none)
- Choose one of the available methods of generating a break signal
- for terminal devices opened afterwards. The preferred methods are
- `tcsendbreak' and `TIOCSBRK'. The third, `TCSBRK', blocks the
- complete `screen' session for the duration of the break, but it
- may be the only way to generate long breaks. `tcsendbreak' and
- `TIOCSBRK' may or may not produce long breaks with spikes (e.g. 4
- per second). This is not only system dependant, this also differs
- between serial board drivers. Calling `defbreaktype' with no
- parameter displays the current setting.
-
-
-File: screen.info, Node: Debug, Next: License, Prev: Break, Up: Miscellaneous
-
-Debug
-=====
-
- - Command: debug [on|off]
- (none)
- Turns runtime debugging on or off. If `screen' has been compiled
- with option `-DDEBUG' debugging is available and is turned on per
- default. Note that this command only affects debugging output
- from the main `SCREEN' process correctly. Debug output from
- attacher processes can only be turned off once and forever.
-
-
-File: screen.info, Node: License, Next: Nethack, Prev: Debug, Up: Miscellaneous
-
-License
-=======
-
- - Command: license
- (none)
- Display the disclaimer page. This is done whenever `screen' is
- started without options, which should be often enough.
-
-
-File: screen.info, Node: Nethack, Next: Nonblock, Prev: License, Up: Miscellaneous
-
-Nethack
-=======
-
- - Command: nethack state
- (none)
- Changes the kind of error messages used by `screen'. When you are
- familiar with the game `nethack', you may enjoy the nethack-style
- messages which will often blur the facts a little, but are much
- funnier to read. Anyway, standard messages often tend to be
- unclear as well.
-
- This option is only available if `screen' was compiled with the
- NETHACK flag defined (*note Installation::). The default setting
- is then determined by the presence of the environment variable
- `$NETHACKOPTIONS'.
-
-
-File: screen.info, Node: Nonblock, Next: Number, Prev: Nethack, Up: Miscellaneous
-
-Nonblock
-========
-
- - Command: nonblock [STATE|NUMSECS]
- Tell screen how to deal with user interfaces (displays) that cease
- to accept output. This can happen if a user presses ^S or a
- TCP/modem connection gets cut but no hangup is received. If
- nonblock is `off' (this is the default) screen waits until the
- display restarts to accept the output. If nonblock is `on', screen
- waits until the timeout is reached (`on' is treated as 1s). If the
- display still doesn't receive characters, screen will consider it
- "blocked" and stop sending characters to it. If at some time it
- restarts to accept characters, screen will unblock the display and
- redisplay the updated window contents.
-
- - Command: defnonblock STATE|NUMSECS
- Same as the `nonblock' command except that the default setting for
- displays is changed. Initial setting is `off'.
-
-
-File: screen.info, Node: Number, Next: Silence, Prev: Nonblock, Up: Miscellaneous
-
-Number
-======
-
- - Command: number [N]
- (`C-a N')
- Change the current window's number. If the given number N is
- already used by another window, both windows exchange their
- numbers. If no argument is specified, the current window number
- (and title) is shown.
-
-
-File: screen.info, Node: Silence, Next: Time, Prev: Number, Up: Miscellaneous
-
-Silence
-=======
-
- - Command: silence [STATE|SEC]
- (none)
- Toggles silence monitoring of windows. When silence is turned on
- and an affected window is switched into the background, you will
- receive the silence notification message in the status line after
- a specified period of inactivity (silence). The default timeout
- can be changed with the `silencewait' command or by specifying a
- number of seconds instead of `on' or `off'. Silence is initially
- off for all windows.
-
- - Command: defsilence state
- (none)
- Same as the `silence' command except that the default setting for
- new windows is changed. Initial setting is `off'.
-
- - Command: silencewait SECONDS
- (none)
- Define the time that all windows monitored for silence should wait
- before displaying a message. Default is 30 seconds.
-
-
-File: screen.info, Node: Time, Next: Verbose, Prev: Silence, Up: Miscellaneous
-
-Time
-====
-
- - Command: time [STRING]
- (`C-a t', `C-a C-t')
- Uses the message line to display the time of day, the host name,
- and the load averages over 1, 5, and 15 minutes (if this is
- available on your system). For window-specific information use
- `info' (*note Info::). If a STRING is specified, it changes the
- format of the time report like it is described in the string
- escapes chapter (*note String Escapes::). Screen uses a default of
- `%c:%s %M %d %H%? %l%?'.
-
-
-File: screen.info, Node: Verbose, Next: Version, Prev: Time, Up: Miscellaneous
-
-Verbose
-=======
-
- - Command: verbose [on|off]
- If verbose is switched on, the command name is echoed, whenever a
- window is created (or resurrected from zombie state). Default is
- off. Without parameter, the current setting is shown.
-
-
-File: screen.info, Node: Version, Next: Zombie, Prev: Verbose, Up: Miscellaneous
-
-Version
-=======
-
- - Command: version
- (`C-a v')
- Display the version and modification date in the message line.
-
-
-File: screen.info, Node: Zombie, Next: Printcmd, Prev: Version, Up: Miscellaneous
-
-Zombie
-======
-
- - Command: zombie [KEYS]
- - Command: defzombie [KEYS]
- (none)
- Per default windows are removed from the window list as soon as the
- windows process (e.g. shell) exits. When a string of two keys is
- specified to the zombie command, `dead' windows will remain in the
- list. The `kill' command may be used to remove the window.
- Pressing the first key in the dead window has the same effect.
- Pressing the second key, however, screen will attempt to resurrect
- the window. The process that was initially running in the window
- will be launched again. Calling `zombie' without parameters will
- clear the zombie setting, thus making windows disappear when the
- process terminates.
-
- As the zombie setting is affected globally for all windows, this
- command should only be called `defzombie'. Until we need this as a
- per window setting, the commands `zombie' and `defzombie' are
- synonymous.
-
-
-File: screen.info, Node: Printcmd, Next: Sorendition, Prev: Zombie, Up: Miscellaneous
-
-Printcmd
-========
-
- - Command: printcmd [CMD]
- (none)
- If CMD is not an empty string, screen will not use the terminal
- capabilities `po/pf' for printing if it detects an ansi print
- sequence `ESC [ 5 i', but pipe the output into CMD. This should
- normally be a command like `lpr' or `cat > /tmp/scrprint'.
- `Printcmd' without an argument displays the current setting. The
- ansi sequence `ESC \' ends printing and closes the pipe.
-
- Warning: Be careful with this command! If other user have write
- access to your terminal, they will be able to fire off print
- commands.
-
-
-File: screen.info, Node: Sorendition, Next: Attrcolor, Prev: Printcmd, Up: Miscellaneous
-
-Sorendition
-===========
-
- - Command: sorendition [ATTR [COLOR]]
- (none)
- Change the way screen does highlighting for text marking and
- printing messages. See the chapter about string escapes (*note
- String Escapes::) for the syntax of the modifiers. The default is
- currently `=s dd' (standout, default colors).
-
-
-File: screen.info, Node: Attrcolor, Next: Setsid, Prev: Sorendition, Up: Miscellaneous
-
-Attrcolor
-=========
-
- - Command: attrcolor ATTRIB [ATTRIBUTE/COLOR-MODIFIER]
- (none)
- This command can be used to highlight attributes by changing the
- color of the text. If the attribute ATTRIB is in use, the
- specified attribute/color modifier is also applied. If no modifier
- is given, the current one is deleted. See the chapter about string
- escapes (*note String Escapes::) for the syntax of the modifier.
- Screen understands two pseudo-attributes, `i' stands for
- high-intensity foreground color and `I' for high-intensity
- background color.
-
- Examples:
- `attrcolor b "R"'
- Change the color to bright red if bold text is to be printed.
-
- `attrcolor u "-u b"'
- Use blue text instead of underline.
-
- `attrcolor b ".I"'
- Use bright colors for bold text. Most terminal emulators do
- this already.
-
- `attrcolor i "+b"'
- Make bright colored text also bold.
-
-
-File: screen.info, Node: Setsid, Next: Eval, Prev: Attrcolor, Up: Miscellaneous
-
-Setsid
-======
-
- - Command: setsid state
- (none)
- Normally screen uses different sessions and process groups for the
- windows. If setsid is turned `off', this is not done anymore and
- all windows will be in the same process group as the screen
- backend process. This also breaks job-control, so be careful. The
- default is `on', of course. This command is probably useful only
- in rare circumstances.
-
-
-File: screen.info, Node: Eval, Next: Maxwin, Prev: Setsid, Up: Miscellaneous
-
-Eval
-====
-
- - Command: eval COMMAND1 [COMMAND2 ...]
- (none)
- Parses and executes each argument as separate command.
-
-
-File: screen.info, Node: Maxwin, Next: Backtick, Prev: Eval, Up: Miscellaneous
-
-Maxwin
-======
-
- - Command: maxwin N
- (none)
- Set the maximum window number screen will create. Doesn't affect
- already existing windows. The number may only be decreased.
-
-
-File: screen.info, Node: Backtick, Next: Screen Saver, Prev: Maxwin, Up: Miscellaneous
-
-Backtick
-========
-
- - Command: backtick ID LIFESPAN AUTOREFRESH COMMAND [ARGS]
- - Command: backtick ID
- (none)
- Program the backtick command with the numerical id ID. The output
- of such a command is used for substitution of the `%`' string
- escape (*note String Escapes::). The specified LIFESPAN is the
- number of seconds the output is considered valid. After this time,
- the command is run again if a corresponding string escape is
- encountered. The AUTOREFRESH parameter triggers an automatic
- refresh for caption and hardstatus strings after the specified
- number of seconds. Only the last line of output is used for
- substitution.
-
- If both the LIFESPAN and the AUTOREFRESH parameters are zero, the
- backtick program is expected to stay in the background and
- generate output once in a while. In this case, the command is
- executed right away and screen stores the last line of output. If
- a new line gets printed screen will automatically refresh the
- hardstatus or the captions.
-
- The second form of the command deletes the backtick command with
- the numerical id ID.
-
-
-File: screen.info, Node: Screen Saver, Next: Zmodem, Prev: Backtick, Up: Miscellaneous
-
-Screen Saver
-============
-
- - Command: idle [TIMEOUT [CMD ARGS]]
- (none)
- Sets a command that is run after the specified number of seconds
- inactivity is reached. This command will normally be the `blanker'
- command to create a screen blanker, but it can be any screen
- command. If no command is specified, only the timeout is set. A
- timeout of zero (ot the special timeout `off') disables the timer.
- If no arguments are given, the current settings are displayed.
-
- - Command: blanker
- (none)
- Activate the screen blanker. First the screen is cleared. If no
- blanker program is defined, the cursor is turned off, otherwise,
- the program is started and it's output is written to the screen.
- The screen blanker is killed with the first keypress, the read key
- is discarded.
-
- This command is normally used together with the `idle' command.
-
- - Command: blankerprg [PROGRAM ARGS]
- Defines a blanker program. Disables the blanker program if no
- arguments are given.
-
-
-File: screen.info, Node: Zmodem, Prev: Screen Saver, Up: Miscellaneous
-
-Zmodem
-======
-
- - Command: zmodem [off|auto|catch|pass]
- - Command: zmodem sendcmd [string]
- - Command: zmodem recvcmd [string]
- (none)
- Define zmodem support for screen. Screen understands two different
- modes when it detects a zmodem request: `pass' and `catch'. If the
- mode is set to `pass', screen will relay all data to the attacher
- until the end of the transmission is reached. In `catch' mode
- screen acts as a zmodem endpoint and starts the corresponding
- rz/sz commands. If the mode is set to `auto', screen will use
- `catch' if the window is a tty (e.g. a serial line), otherwise it
- will use `pass'.
-
- You can define the templates screen uses in `catch' mode via the
- second and the third form.
-
- Note also that this is an experimental feature.
-
-
-File: screen.info, Node: String Escapes, Next: Environment, Prev: Miscellaneous, Up: Top
-
-String Escapes
-**************
-
- Screen provides an escape mechanism to insert information like the
-current time into messages or file names. The escape character is `%'
-with one exception: inside of a window's hardstatus `^%' (`^E') is used
-instead.
-
- Here is the full list of supported escapes:
-
-`%'
- the escape character itself
-
-`a'
- either `am' or `pm'
-
-`A'
- either `AM' or `PM'
-
-`c'
- current time `HH:MM' in 24h format
-
-`C'
- current time `HH:MM' in 12h format
-
-`d'
- day number
-
-`D'
- weekday name
-
-`f'
- flags of the window
-
-`F'
- sets %? to true if the window has the focus
-
-`h'
- hardstatus of the window
-
-`H'
- hostname of the system
-
-`l'
- current load of the system
-
-`m'
- month number
-
-`M'
- month name
-
-`n'
- window number
-
-`s'
- seconds
-
-`t'
- window title
-
-`u'
- all other users on this window
-
-`w'
- all window numbers and names. With `-' quailifier: up to the
- current window; with `+' qualifier: starting with the window after
- the current one.
-
-`W'
- all window numbers and names except the current one
-
-`y'
- last two digits of the year number
-
-`Y'
- full year number
-
-`?'
- the part to the next `%?' is displayed only if a `%' escape inside
- the part expands to a non-empty string
-
-`:'
- else part of `%?'
-
-`='
- pad the string to the display's width (like TeX's hfill). If a
- number is specified, pad to the percentage of the window's width.
- A `0' qualifier tells screen to treat the number as absolute
- position. You can specify to pad relative to the last absolute
- pad position by adding a `+' qualifier or to pad relative to the
- right margin by using `-'. The padding truncates the string if the
- specified position lies before the current position. Add the `L'
- qualifier to change this.
-
-`<'
- same as `%=' but just do truncation, do not fill with spaces
-
-`>'
- mark the current text position for the next truncation. When
- screen needs to do truncation, it tries to do it in a way that the
- marked position gets moved to the specified percentage of the
- output area. (The area starts from the last absolute pad position
- and ends with the position specified by the truncation operator.)
- The `L' qualifier tells screen to mark the truncated parts with
- `...'.
-
-`{'
- attribute/color modifier string terminated by the next `}'
-
-``'
- Substitute with the output of a `backtick' command. The length
- qualifier is misused to identify one of the commands. *Note
- Backtick::.
- The `c' and `C' escape may be qualified with a `0' to make screen use
-zero instead of space as fill character. The `n' and `=' escapes
-understand a length qualifier (e.g. `%3n'), `D' and `M' can be prefixed
-with `L' to generate long names, `w' and `W' also show the window flags
-if `L' is given.
-
- An attribute/color modifier is is used to change the attributes or
-the color settings. Its format is `[attribute modifier] [color
-description]'. The attribute modifier must be prefixed by a change type
-indicator if it can be confused with a color desciption. The following
-change types are known:
-`+'
- add the specified set to the current attributes
-
-`-'
- remove the set from the current attributes
-
-`!'
- invert the set in the current attributes
-
-`='
- change the current attributes to the specified set
- The attribute set can either be specified as a hexadecimal number or
-a combination of the following letters:
-`d'
- dim
-
-`u'
- underline
-
-`b'
- bold
-
-`r'
- reverse
-
-`s'
- standout
-
-`B'
- blinking
- Colors are coded either as a hexadecimal number or two letters
-specifying the desired background and foreground color (in that order).
-The following colors are known:
-`k'
- black
-
-`r'
- red
-
-`g'
- green
-
-`y'
- yellow
-
-`b'
- blue
-
-`m'
- magenta
-
-`c'
- cyan
-
-`w'
- white
-
-`d'
- default color
-
-`.'
- leave color unchanged
- The capitalized versions of the letter specify bright colors. You
-can also use the pseudo-color `i' to set just the brightness and leave
-the color unchanged.
-
- A one digit/letter color description is treated as foreground or
-background color dependant on the current attributes: if reverse mode is
-set, the background color is changed instead of the foreground color.
-If you don't like this, prefix the color with a `.'. If you want the
-same behaviour for two-letter color descriptions, also prefix them with
-a `.'.
-
- As a special case, `%{-}' restores the attributes and colors that
-were set before the last change was made (i.e. pops one level of the
-color-change stack).
-
-Examples:
-`G'
- set color to bright green
-
-`+b r'
- use bold red
-
-`= yd'
- clear all attributes, write in default color on yellow background.
-
-`%-Lw%{= BW}%50>%n%f* %t%{-}%+Lw%<'
- The available windows centered at the current win dow and
- truncated to the available width. The current window is displayed
- white on blue. This can be used with `hardstatus alwayslastline'.
-
-`%?%F%{.R.}%?%3n %t%? [%h]%?'
- The window number and title and the window's hardstatus, if one is
- set. Also use a red background if this is the active focus.
- Useful for `caption string'.
-
-
-File: screen.info, Node: Environment, Next: Files, Prev: String Escapes, Up: Top
-
-Environment Variables
-*********************
-
-`COLUMNS'
- Number of columns on the terminal (overrides termcap entry).
-
-`HOME'
- Directory in which to look for .screenrc.
-
-`LINES'
- Number of lines on the terminal (overrides termcap entry).
-
-`LOCKPRG'
- Screen lock program.
-
-`NETHACKOPTIONS'
- Turns on `nethack' option.
-
-`PATH'
- Used for locating programs to run.
-
-`SCREENCAP'
- For customizing a terminal's `TERMCAP' value.
-
-`SCREENDIR'
- Alternate socket directory.
-
-`SCREENRC'
- Alternate user screenrc file.
-
-`SHELL'
- Default shell program for opening windows (default `/bin/sh').
-
-`STY'
- Alternate socket name. If `screen' is invoked, and the environment
- variable `STY' is set, then it creates only a window in the
- running `screen' session rather than starting a new session.
-
-`SYSSCREENRC'
- Alternate system screenrc file.
-
-`TERM'
- Terminal name.
-
-`TERMCAP'
- Terminal description.
-
-`WINDOW'
- Window number of a window (at creation time).
-
diff --git a/doc/screen.info-5 b/doc/screen.info-5
deleted file mode 100644
index fff18bd..0000000
--- a/doc/screen.info-5
+++ /dev/null
@@ -1,608 +0,0 @@
-This is screen.info, produced by makeinfo version 4.5 from
-./screen.texinfo.
-
-INFO-DIR-SECTION General Commands
-START-INFO-DIR-ENTRY
-* Screen: (screen). Full-screen window manager.
-END-INFO-DIR-ENTRY
-
- This file documents the `Screen' virtual terminal manager.
-
- Copyright (c) 1993-2003 Free Software Foundation, Inc.
-
- Permission is granted to make and distribute verbatim copies of this
-manual provided the copyright notice and this permission notice are
-preserved on all copies.
-
- Permission is granted to copy and distribute modified versions of
-this manual under the conditions for verbatim copying, provided that
-the entire resulting derived work is distributed under the terms of a
-permission notice identical to this one.
-
- Permission is granted to copy and distribute translations of this
-manual into another language, under the above conditions for modified
-versions, except that this permission notice may be stated in a
-translation approved by the Foundation.
-
-
-File: screen.info, Node: Files, Next: Credits, Prev: Environment, Up: Top
-
-Files Referenced
-****************
-
-`.../screen-4.?.??/etc/screenrc'
-`.../screen-4.?.??/etc/etcscreenrc'
- Examples in the `screen' distribution package for private and
- global initialization files.
-
-``$SYSSCREENRC''
-`/local/etc/screenrc'
- `screen' initialization commands
-
-``$SCREENRC''
-``$HOME'/.iscreenrc'
-``$HOME'/.screenrc'
- Read in after /local/etc/screenrc
-
-``$SCREENDIR'/S-LOGIN'
-
-`/local/screens/S-LOGIN'
- Socket directories (default)
-
-`/usr/tmp/screens/S-LOGIN'
- Alternate socket directories.
-
-`SOCKET DIRECTORY/.termcap'
- Written by the `dumptermcap' command
-
-`/usr/tmp/screens/screen-exchange or'
-`/tmp/screen-exchange'
- `screen' interprocess communication buffer
-
-`hardcopy.[0-9]'
- Screen images created by the hardcopy command
-
-`screenlog.[0-9]'
- Output log files created by the log command
-
-`/usr/lib/terminfo/?/* or'
-`/etc/termcap'
- Terminal capability databases
-
-`/etc/utmp'
- Login records
-
-``$LOCKPRG''
- Program for locking the terminal.
-
-
-File: screen.info, Node: Credits, Next: Bugs, Prev: Files, Up: Top
-
-Credits
-*******
-
-Authors
-=======
-
- Originally created by Oliver Laumann, this latest version was
-produced by Wayne Davison, Juergen Weigert and Michael Schroeder.
-
-Contributors
-============
-
- Ken Beal (kbeal@amber.ssd.csd.harris.com),
- Rudolf Koenig (rfkoenig@informatik.uni-erlangen.de),
- Toerless Eckert (eckert@informatik.uni-erlangen.de),
- Wayne Davison (davison@borland.com),
- Patrick Wolfe (pat@kai.com, kailand!pat),
- Bart Schaefer (schaefer@cse.ogi.edu),
- Nathan Glasser (nathan@brokaw.lcs.mit.edu),
- Larry W. Virden (lvirden@cas.org),
- Howard Chu (hyc@hanauma.jpl.nasa.gov),
- Tim MacKenzie (tym@dibbler.cs.monash.edu.au),
- Markku Jarvinen (mta@{cc,cs,ee}.tut.fi),
- Marc Boucher (marc@CAM.ORG),
- Doug Siebert (dsiebert@isca.uiowa.edu),
- Ken Stillson (stillson@tsfsrv.mitre.org),
- Ian Frechett (frechett@spot.Colorado.EDU),
- Brian Koehmstedt (bpk@gnu.ai.mit.edu),
- Don Smith (djs6015@ultb.isc.rit.edu),
- Frank van der Linden (vdlinden@fwi.uva.nl),
- Martin Schweikert (schweik@cpp.ob.open.de),
- David Vrona (dave@sashimi.lcu.com),
- E. Tye McQueen (tye%spillman.UUCP@uunet.uu.net),
- Matthew Green (mrg@eterna.com.au),
- Christopher Williams (cgw@pobox.com),
- Matt Mosley (mattm@access.digex.net),
- Gregory Neil Shapiro (gshapiro@wpi.WPI.EDU),
- Jason Merrill (jason@jarthur.Claremont.EDU),
- Johannes Zellner (johannes@zellner.org),
- Pablo Averbuj (pablo@averbuj.com).
-
-Version
-=======
-
- This manual describes version 4.0.2 of the `screen' program. Its
-roots are a merge of a custom version 2.3PR7 by Wayne Davison and
-several enhancements to Oliver Laumann's version 2.0. Note that all
-versions numbered 2.x are copyright by Oliver Laumann.
-
- See also *Note Availability::.
-
-
-File: screen.info, Node: Bugs, Next: Installation, Prev: Credits, Up: Top
-
-Bugs
-****
-
- Just like any other significant piece of software, `screen' has a
-few bugs and missing features. Please send in a bug report if you have
-found a bug not mentioned here.
-
-* Menu:
-
-* Known Bugs:: Problems we know about.
-* Reporting Bugs:: How to contact the maintainers.
-* Availability:: Where to find the lastest screen version.
-
-
-File: screen.info, Node: Known Bugs, Next: Reporting Bugs, Up: Bugs
-
-Known Bugs
-==========
-
- * `dm' (delete mode) and `xs' are not handled correctly (they are
- ignored). `xn' is treated as a magic-margin indicator.
-
- * `screen' has no clue about double-high or double-wide characters.
- But this is the only area where `vttest' is allowed to fail.
-
- * It is not possible to change the environment variable `$TERMCAP'
- when reattaching under a different terminal type.
-
- * The support of terminfo based systems is very limited. Adding extra
- capabilities to `$TERMCAP' may not have any effects.
-
- * `screen' does not make use of hardware tabs.
-
- * `screen' must be installed setuid root on most systems in order to
- be able to correctly change the owner of the tty device file for
- each window. Special permission may also be required to write the
- file `/etc/utmp'.
-
- * Entries in `/etc/utmp' are not removed when `screen' is killed
- with SIGKILL. This will cause some programs (like "w" or "rwho")
- to advertise that a user is logged on who really isn't.
-
- * `screen' may give a strange warning when your tty has no utmp
- entry.
-
- * When the modem line was hung up, `screen' may not automatically
- detach (or quit) unless the device driver sends a HANGUP signal.
- To detach such a `screen' session use the -D or -d command line
- option.
-
- * If a password is set, the command line options -d and -D still
- detach a session without asking.
-
- * Both `breaktype' and `defbreaktype' change the break generating
- method used by all terminal devices. The first should change a
- window specific setting, where the latter should change only the
- default for new windows.
-
- * When attaching to a multiuser session, the user's `.screenrc' file
- is not sourced. Each users personal settings have to be included
- in the `.screenrc' file from which the session is booted, or have
- to be changed manually.
-
- * A weird imagination is most useful to gain full advantage of all
- the features.
-
-
-File: screen.info, Node: Reporting Bugs, Next: Availability, Prev: Known Bugs, Up: Bugs
-
-Reporting Bugs
-==============
-
- If you find a bug in `Screen', please send electronic mail to
-`screen@uni-erlangen.de', and also to `bug-gnu-utils@prep.ai.mit.edu'.
-Include the version number of `Screen' which you are using. Also
-include in your message the hardware and operating system, the compiler
-used to compile, a description of the bug behavior, and the conditions
-that triggered the bug. Please recompile `screen' with the `-DDEBUG'
-options enabled, reproduce the bug, and have a look at the debug output
-written to the directory `/tmp/debug'. If necessary quote suspect
-passages from the debug output and show the contents of your `config.h'
-if it matters.
-
-
-File: screen.info, Node: Availability, Prev: Reporting Bugs, Up: Bugs
-
-Availability
-============
-
- `Screen' is available under the `GNU' copyleft.
-
- The latest official release of `screen' available via anonymous ftp
-from `prep.ai.mit.edu', `nic.funet.fi' or any other `GNU' distribution
-site. The home site of `screen' is `ftp.uni-erlangen.de
-(131.188.3.71)', in the directory `pub/utilities/screen'. The
-subdirectory `private' contains the latest beta testing release. If
-you want to help, send a note to screen@uni-erlangen.de.
-
-
-File: screen.info, Node: Installation, Next: Concept Index, Prev: Bugs, Up: Top
-
-Installation
-************
-
- Since `screen' uses pseudo-ttys, the select system call, and
-UNIX-domain sockets/named pipes, it will not run under a system that
-does not include these features of 4.2 and 4.3 BSD UNIX.
-
-* Menu:
-
-* Socket Directory:: Where screen stores its handle.
-* Compiling Screen::
-
-
-File: screen.info, Node: Socket Directory, Next: Compiling Screen, Up: Installation
-
-Socket Directory
-================
-
- The socket directory defaults either to `$HOME/.screen' or simply to
-`/tmp/screens' or preferably to `/usr/local/screens' chosen at
-compile-time. If `screen' is installed setuid root, then the
-administrator should compile screen with an adequate (not NFS mounted)
-`SOCKDIR'. If `screen' is not running setuid-root, the user can specify
-any mode 700 directory in the environment variable `$SCREENDIR'.
-
-
-File: screen.info, Node: Compiling Screen, Prev: Socket Directory, Up: Installation
-
-Compiling Screen
-================
-
- To compile and install screen:
-
- The `screen' package comes with a `GNU Autoconf' configuration
-script. Before you compile the package run
-
- `sh ./configure'
- This will create a `config.h' and `Makefile' for your
-machine. If `configure' fails for some reason, then look at the
-examples and comments found in the `Makefile.in' and `config.h.in'
-templates. Rename `config.status' to `config.status.MACHINE' when you
-want to keep configuration data for multiple architectures. Running `sh
-./config.status.MACHINE' recreates your configuration significantly
-faster than rerunning `configure'.
-Read through the "User Configuration" section of `config.h', and verify
-that it suits your needs. A comment near the top of this section
-explains why it's best to install screen setuid to root. Check for the
-place for the global `screenrc'-file and for the socket directory.
-Check the compiler used in `Makefile', the prefix path where to install
-`screen'. Then run
-
- `make'
- If `make' fails to produce one of the files `term.h', `comm.h'
-or `tty.c', then use `FILENAME.X.dist' instead. For additional
-information about installation of `screen' refer to the file
-`INSTALLATION', coming with this package.
-
-
-File: screen.info, Node: Concept Index, Next: Command Index, Prev: Installation, Up: Top
-
-Concept Index
-*************
-
-* Menu:
-
-* .screenrc: Startup Files.
-* availability: Availability.
-* binding: Key Binding.
-* bug report: Reporting Bugs.
-* bugs: Bugs.
-* capabilities: Special Capabilities.
-* command character: Command Character.
-* command line options: Invoking Screen.
-* command summary: Command Summary.
-* compiling screen: Compiling Screen.
-* control sequences: Control Sequences.
-* copy and paste: Copy and Paste.
-* customization: Customization.
-* environment: Environment.
-* escape character: Command Character.
-* files: Files.
-* flow control: Flow Control.
-* input translation: Input Translation.
-* installation: Installation.
-* introduction: Getting Started.
-* invoking: Invoking Screen.
-* key binding: Key Binding.
-* marking: Copy.
-* message line: Message Line.
-* multiuser session: Multiuser Session.
-* options: Invoking Screen.
-* overview: Overview.
-* regions: Regions.
-* screenrc: Startup Files.
-* scrollback: Copy.
-* socket directory: Socket Directory.
-* string escapes: String Escapes.
-* terminal capabilities: Special Capabilities.
-* title: Naming Windows.
-* window types: Window Types.
-
-
-File: screen.info, Node: Command Index, Next: Keystroke Index, Prev: Concept Index, Up: Top
-
-Command Index
-*************
-
- This is a list of all the commands supported by `screen'.
-
-* Menu:
-
-* acladd: Acladd.
-* aclchg: Aclchg.
-* acldel: Acldel.
-* aclgrp: Aclgrp.
-* aclumask: Umask.
-* activity: Monitor.
-* addacl: Acladd.
-* allpartial: Redisplay.
-* altscreen: Redisplay.
-* at: At.
-* attrcolor: Attrcolor.
-* autodetach: Detach.
-* autonuke: Autonuke.
-* backtick: Backtick.
-* bce: Character Processing.
-* bell_msg: Bell.
-* bind: Bind.
-* bindkey: Bindkey.
-* blanker: Screen Saver.
-* blankerprg: Screen Saver.
-* break: Break.
-* breaktype: Break.
-* bufferfile: Screen Exchange.
-* c1: Character Processing.
-* caption: Caption.
-* chacl: Aclchg.
-* charset: Character Processing.
-* chdir: Chdir.
-* clear: Clear.
-* colon: Colon.
-* command: Command Character.
-* compacthist: Scrollback.
-* console: Console.
-* copy: Copy.
-* copy_reg: Registers.
-* crlf: Line Termination.
-* debug: Debug.
-* defautonuke: Autonuke.
-* defbce: Character Processing.
-* defbreaktype: Break.
-* defc1: Character Processing.
-* defcharset: Character Processing.
-* defencoding: Character Processing.
-* defescape: Command Character.
-* defflow: Flow.
-* defgr: Character Processing.
-* defhstatus: Hardstatus.
-* deflog: Log.
-* deflogin: Login.
-* defmode: Mode.
-* defmonitor: Monitor.
-* defnonblock: Nonblock.
-* defobuflimit: Obuflimit.
-* defscrollback: Scrollback.
-* defshell: Shell.
-* defsilence: Silence.
-* defslowpaste: Paste.
-* defutf8: Character Processing.
-* defwrap: Wrap.
-* defwritelock: Writelock.
-* defzombie: Zombie.
-* detach: Detach.
-* digraph: Digraph.
-* dinfo: Info.
-* displays: Displays.
-* dumptermcap: Dump Termcap.
-* echo: echo.
-* encoding: Character Processing.
-* escape: Command Character.
-* eval: Eval.
-* exec: Exec.
-* fit: Fit.
-* flow: Flow.
-* focus: Focus.
-* gr: Character Processing.
-* hardcopy: Hardcopy.
-* hardcopy_append: Hardcopy.
-* hardcopydir: Hardcopy.
-* hardstatus: Hardware Status Line.
-* height: Window Size.
-* help: Help.
-* history: History.
-* hstatus: Hardstatus.
-* idle: Screen Saver.
-* ignorecase: Searching.
-* info: Info.
-* ins_reg: Registers.
-* kill: Kill.
-* lastmsg: Last Message.
-* license: License.
-* lockscreen: Lock.
-* log: Log.
-* logfile: Log.
-* login: Login.
-* logtstamp: Log.
-* mapdefault: Bindkey Control.
-* mapnotnext: Bindkey Control.
-* maptimeout: Bindkey Control.
-* markkeys: Copy Mode Keys.
-* maxwin: Maxwin.
-* meta: Command Character.
-* monitor: Monitor.
-* msgminwait: Message Wait.
-* msgwait: Message Wait.
-* multiuser: Multiuser.
-* nethack: Nethack.
-* next: Next and Previous.
-* nonblock: Nonblock.
-* number: Number.
-* obuflimit: Obuflimit.
-* only: Only.
-* other: Other Window.
-* partial: Redisplay.
-* password: Detach.
-* paste: Paste.
-* pastefont: Paste.
-* pow_break: Break.
-* pow_detach: Power Detach.
-* pow_detach_msg: Power Detach.
-* prev: Next and Previous.
-* printcmd: Printcmd.
-* process: Registers.
-* quit: Quit.
-* readbuf: Screen Exchange.
-* readreg: Paste.
-* redisplay: Redisplay.
-* register: Registers.
-* remove: Remove.
-* removebuf: Screen Exchange.
-* reset: Reset.
-* resize: Resize.
-* screen: Screen Command.
-* scrollback: Scrollback.
-* select: Select.
-* sessionname: Session Name.
-* setenv: Setenv.
-* setsid: Setsid.
-* shell: Shell.
-* shelltitle: Shell.
-* silence: Silence.
-* silencewait: Silence.
-* sleep: sleep.
-* slowpaste: Paste.
-* sorendition: Sorendition.
-* source: Source.
-* split: Split.
-* startup_message: Startup Message.
-* stuff: Paste.
-* su: Su.
-* suspend: Suspend.
-* term: Term.
-* termcap: Termcap Syntax.
-* termcapinfo: Termcap Syntax.
-* terminfo: Termcap Syntax.
-* time: Time.
-* title: Title Command.
-* umask: Umask.
-* unsetenv: Setenv.
-* utf8: Character Processing.
-* vbell: Bell.
-* vbell_msg: Bell.
-* vbellwait: Bell.
-* verbose: Verbose.
-* version: Version.
-* wall: Wall.
-* width: Window Size.
-* windowlist: Windowlist.
-* windows: Windows.
-* wrap: Wrap.
-* writebuf: Screen Exchange.
-* writelock: Writelock.
-* xoff: XON/XOFF.
-* xon: XON/XOFF.
-* zmodem: Zmodem.
-* zombie: Zombie.
-
-
-File: screen.info, Node: Keystroke Index, Prev: Command Index, Up: Top
-
-Keystroke Index
-***************
-
- This is a list of the default key bindings.
-
- The leading escape character (*note Command Character::) has been
-omitted from the key sequences, since it is the same for all bindings.
-
-* Menu:
-
-* ": Windowlist.
-* ': Select.
-* *: Displays.
-* .: Dump Termcap.
-* 0...9: Select.
-* :: Colon.
-* <: Screen Exchange.
-* =: Screen Exchange.
-* >: Screen Exchange.
-* ?: Help.
-* [: Copy.
-* ]: Paste.
-* a: Command Character.
-* A: Title Command.
-* C: Clear.
-* c: Screen Command.
-* C-[: Copy.
-* C-\: Quit.
-* C-]: Paste.
-* C-a: Other Window.
-* C-c: Screen Command.
-* C-d: Detach.
-* C-f: Flow.
-* C-g: Bell.
-* C-h: Hardcopy.
-* C-i: Info.
-* C-k: Kill.
-* C-l: Redisplay.
-* C-m: Last Message.
-* C-n: Next and Previous.
-* C-p: Next and Previous.
-* C-q: XON/XOFF.
-* C-r: Wrap.
-* C-s: XON/XOFF.
-* C-t: Time.
-* C-v: Digraph.
-* C-w: Windows.
-* C-x: Lock.
-* C-z: Suspend.
-* D: Power Detach.
-* d: Detach.
-* ESC: Copy.
-* f: Flow.
-* F: Fit.
-* H: Log.
-* h: Hardcopy.
-* i: Info.
-* k: Kill.
-* l: Redisplay.
-* L: Login.
-* m: Last Message.
-* M: Monitor.
-* N: Number.
-* n: Next and Previous.
-* p: Next and Previous.
-* q: XON/XOFF.
-* Q: Only.
-* r: Wrap.
-* s: XON/XOFF.
-* S: Split.
-* SPC: Next and Previous.
-* t: Time.
-* TAB: Focus.
-* v: Version.
-* W: Window Size.
-* w: Windows.
-* X: Remove.
-* x: Lock.
-* Z: Reset.
-* z: Suspend.
-* {: History.
-
-
diff --git a/incoming/howto/emulate_vims_help.txt b/incoming/howto/emulate_vims_help.txt
new file mode 100644
index 0000000..b7e3c3f
--- /dev/null
+++ b/incoming/howto/emulate_vims_help.txt
@@ -0,0 +1,52 @@
+ Date: Mon, 7 Apr 2003 02:01:59 +0000 (UTC)
+ From: Miciah Dashiel Butler Masters <gcgs-gnu-screen@m.gmane.org>
+Subject: Re: HOWTO: emulate vim's :help in a screen window
+
+In article <20030406193514.4b43c6ba.mramos@adinet.com.uy>, Marcelo Ramos wrote:
+> Something interesting and useful developed with Miciah's help a few minutes
+> ago in the #screen channel (irc.debian.org):
+>
+> 1) Create a shell script "showman":
+>
+> echo -n "What manpage?"; read X; man $X; screen -X eval 'focus bottom' remove
+>
+> 2) Put the following in your.screenrc:
+>
+> bindkey "^B" eval split "focus bottom" "screen /path/to/showman"
+>
+> 3) Now press ^B and enjoy :-)
+>
+> (^B or the key you prefer)
+
+You inspired to write a couple of scripts to generalise this process:
+
+screen-run-program-in-region:
+ #!/bin/sh
+
+ eval "$*"
+ echo -n Press any key to close this region...
+ read throwaway_variable
+ screen -X eval 'focus bottom' remove
+
+screen-open-region-with-program:
+ #!/bin/sh
+
+ screen -X eval \
+ "focus bottom" \
+ split \
+ "focus bottom" \
+ "screen screen-run-program-in-region $*"
+
+Note that enabling zombie-mode will interfere with this script's
+operation -- to kill the zombie window, screen-run-program-in-region
+would need to also send Screen the 'kill' command. Unfortunately, if you
+_disable_ zombie-mode then the 'kill' command would probably kill a
+program that you _don't_ want killed. This is why we need a per-window
+zombie-setting (*nudge* *nudge*). A way to silence the kill command
+would also be nice.
+
+BTW, I know that 'echo -n' is not portable. Please forgive me. You can
+feel free to remove the '-n'.
+
+ -- Miciah <miciah@myrealbox.com>
+
diff --git a/kmapdef.c.dist b/kmapdef.c.dist
deleted file mode 100644
index 71a5b53..0000000
--- a/kmapdef.c.dist
+++ /dev/null
@@ -1,144 +0,0 @@
-/*
- * This file is automagically created from term.c -- DO NOT EDIT
- */
-
-#include "config.h"
-
-#ifdef MAPKEYS
-
-char *kmapdef[] = {
-"\033[10~",
-"\033OP",
-"\033OQ",
-"\033OR",
-"\033OS",
-"\033[15~",
-"\033[17~",
-"\033[18~",
-"\033[19~",
-"\033[20~",
-"\033[21~",
-"\033[23~",
-"\033[24~",
-0,
-0,
-0,
-0,
-0,
-0,
-0,
-0,
-0,
-0,
-0,
-0,
-0,
-0,
-0,
-0,
-0,
-0,
-0,
-0,
-0,
-0,
-0,
-0,
-0,
-0,
-0,
-0,
-0,
-0,
-0,
-0,
-0,
-0,
-"\033[1~",
-0,
-"\033[4~",
-0,
-"\033[6~",
-"\033[5~",
-"\033[2~",
-"\033[3~",
-"\033[A",
-"\033[B",
-"\033[C",
-"\033[D",
-"0",
-"1",
-"2",
-"3",
-"4",
-"5",
-"6",
-"7",
-"8",
-"9",
-"+",
-"-",
-"*",
-"/",
-"=",
-".",
-",",
-"\015"
-};
-
-char *kmapadef[] = {
-"\033OA",
-"\033OB",
-"\033OC",
-"\033OD",
-"\033Op",
-"\033Oq",
-"\033Or",
-"\033Os",
-"\033Ot",
-"\033Ou",
-"\033Ov",
-"\033Ow",
-"\033Ox",
-"\033Oy",
-"\033Ok",
-"\033Om",
-"\033Oj",
-"\033Oo",
-"\033OX",
-"\033On",
-"\033Ol",
-"\033OM"
-};
-
-char *kmapmdef[] = {
-"\004",
-0,
-0,
-"\025",
-0,
-0,
-0,
-0,
-0,
-0,
-0,
-0,
-0,
-0,
-0,
-"\201",
-0,
-"\205",
-0,
-"\006",
-"\002",
-0,
-0,
-"\220",
-"\216",
-"\206",
-"\202"
-};
-
-#endif
diff --git a/mktar.pl b/mktar.pl
new file mode 100755
index 0000000..79b1731
--- /dev/null
+++ b/mktar.pl
@@ -0,0 +1,44 @@
+#! /usr/bin/perl -w
+#
+# create a tar ball snapshot from cvs repository.
+#
+# 2005-12-15, jw
+#
+
+use Data::Dumper;
+
+my $srcdir = 'src';
+my $version_file = "$srcdir/patchlevel.h";
+my %symlinks =
+(
+ 'FAQ' => 'doc/FAQ',
+ 'doc/install.sh' => '../install.sh'
+);
+
+for my $l (keys %symlinks)
+ {
+ my $ll = "$srcdir/$l";
+ next if -l $ll;
+ print "replacing $ll with a symlink to $symlinks{$l}\n";
+ unlink $ll;
+ symlink $symlinks{$l}, $ll;
+ }
+
+my %version;
+open IN, "<", $version_file or die "unable to read $version_file: $!";
+while (defined(my $line = <IN>))
+ {
+ $version{$1} = (defined $3) ? $3 : $4 if $line =~ m{^#\s*define\s+(\w+)\s+("([^"]*)"|(\S+))};
+ }
+close IN;
+
+my $version = "$version{REV}.$version{VERS}.$version{PATCHLEVEL}";
+my $tmpdir = "/tmp/mktar-$^T";
+mkdir $tmpdir or die "cannot mkdir $tmpdir: $!";
+system "cp -a $srcdir $tmpdir" and die "'cp -a $srcdir $tmpdir' failed: $!";
+rename "$tmpdir/$srcdir", "$tmpdir/screen-$version" or die "rename to screen-$version failed: $!";
+
+system "tar zcf - -C $tmpdir > screen-$version.tar.gz screen-$version";
+system "rm -rf $tmpdir";
+
+print "screen-$version.tar.gz written.\n";
diff --git a/patches/bill_pursell_fFtT_402.patch b/patches/bill_pursell_fFtT_402.patch
new file mode 100644
index 0000000..e655643
--- /dev/null
+++ b/patches/bill_pursell_fFtT_402.patch
@@ -0,0 +1,201 @@
+From screen-users-bounces+jw=cs.fau.de@gnu.org Fri Dec 16 22:23:46 2005
+Received: from faui45.informatik.uni-erlangen.de (IDENT:root@fauern.informatik.uni-erlangen.de [131.188.34.45])
+ by faui40.informatik.uni-erlangen.de (8.9.3p3/8.1.49-FAU) with ESMTP id WAA08712
+ for <jnweiger@i4.informatik.uni-erlangen.de>; Fri, 16 Dec 2005 22:23:46 +0100 (MET)
+Received: from lists.gnu.org (lists.gnu.org [199.232.76.165])
+ by faui45.informatik.uni-erlangen.de (8.9.3p3/8.1.49-FAU) with ESMTP id WAA28416
+ for <jw@cs.fau.de>; Fri, 16 Dec 2005 22:23:45 +0100 (MET)
+Received: from localhost ([127.0.0.1] helo=lists.gnu.org)
+ by lists.gnu.org with esmtp (Exim 4.43)
+ id 1EnN2o-0003P6-7M
+ for jw@cs.fau.de; Fri, 16 Dec 2005 16:23:14 -0500
+Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43)
+ id 1EnKWZ-000807-RE
+ for screen-users@gnu.org; Fri, 16 Dec 2005 13:41:48 -0500
+Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43)
+ id 1EnKWY-0007yj-AQ
+ for screen-users@gnu.org; Fri, 16 Dec 2005 13:41:47 -0500
+Received: from [199.232.76.173] (helo=monty-python.gnu.org)
+ by lists.gnu.org with esmtp (Exim 4.43) id 1EnKWX-0007y7-LZ
+ for screen-users@gnu.org; Fri, 16 Dec 2005 13:41:45 -0500
+Received: from [64.233.162.195] (helo=zproxy.gmail.com)
+ by monty-python.gnu.org with esmtp (Exim 4.34) id 1EnKZ0-0005Ig-91
+ for screen-users@gnu.org; Fri, 16 Dec 2005 13:44:18 -0500
+Received: by zproxy.gmail.com with SMTP id i11so687899nzh
+ for <screen-users@gnu.org>; Fri, 16 Dec 2005 10:41:00 -0800 (PST)
+DomainKey-Signature: a=rsa-sha1; q=dns; c=nofws; s=beta; d=gmail.com;
+ h=received:message-id:date:from:user-agent:x-accept-language:mime-version:to:subject:content-type:content-transfer-encoding;
+ b=htOg5ElAxJoDWlgFSUJd85Bf6mf7Y8FPLZRoIWCdtrnesxVHg1ZMe5zNYUb1pVC9iK8cGKMIAFbgysTC3CeGK9JEJBEk6xNJCs7y5s2vSILQ9zV67ZkkikyK4ke+2rCHmj7xYDlLW+JsdqbbnVJilY7Xl/cxgcy9+MIfOdnucKw=
+Received: by 10.65.197.20 with SMTP id z20mr1443729qbp;
+ Fri, 16 Dec 2005 10:41:00 -0800 (PST)
+Received: from ?192.168.1.151? ( [82.24.24.234])
+ by mx.gmail.com with ESMTP id q14sm641312qbq.2005.12.16.10.40.58;
+ Fri, 16 Dec 2005 10:40:59 -0800 (PST)
+Message-ID: <43A30A56.1030000@gmail.com>
+Date: Fri, 16 Dec 2005 18:41:26 +0000
+From: bill <bill.pursell@gmail.com>
+User-Agent: Mozilla Thunderbird 1.0.7-1.1.fc3 (X11/20050929)
+X-Accept-Language: en-us, en
+MIME-Version: 1.0
+To: Screen Users <screen-users@gnu.org>
+Content-Type: text/plain; charset=ISO-8859-1; format=flowed
+Content-Transfer-Encoding: 7bit
+Subject: fFtT patch
+X-BeenThere: screen-users@gnu.org
+X-Mailman-Version: 2.1.5
+Precedence: list
+List-Id: General GNU Screen discussion <screen-users.gnu.org>
+List-Unsubscribe: <http://lists.gnu.org/mailman/listinfo/screen-users>,
+ <mailto:screen-users-request@gnu.org?subject=unsubscribe>
+List-Archive: <http://lists.gnu.org/pipermail/screen-users>
+List-Post: <mailto:screen-users@gnu.org>
+List-Help: <mailto:screen-users-request@gnu.org?subject=help>
+List-Subscribe: <http://lists.gnu.org/mailman/listinfo/screen-users>,
+ <mailto:screen-users-request@gnu.org?subject=subscribe>
+Sender: screen-users-bounces+jw=cs.fau.de@gnu.org
+Errors-To: screen-users-bounces+jw=cs.fau.de@gnu.org
+X-Spam-Checker-Version: SpamAssassin 2.63 (2004-01-11) on
+ faui40.informatik.uni-erlangen.de
+X-Spam-Level:
+X-Spam-Status: No, hits=-4.8 required=5.0 tests=BAYES_00,RCVD_IN_SORBS
+ autolearn=no version=2.63
+Status: RO
+Content-Length: 4721
+Lines: 145
+
+Here's the patch which implements the fFtT;, cursor movements. I'm not
+even remotely confident of this: I cut and pasted from a terminal
+into thunderbird.
+
+[reformatted by jw, 2005-12-19]
+
+--- ./mark.c.orig 2005-12-16 19:48:09.000000000 +0100
++++ ./mark.c 2005-12-19 12:00:42.795719267 +0100
+@@ -149,6 +149,55 @@
+ #define NW_MUSTMOVE (1<<2)
+ #define NW_BIG (1<<3)
+
++static int
++nextchar(int *xp, int *yp, int direction, char target, int num)
++{ /* Set *xp to the num-th occurrence of the target in the line. */
++
++ /* Return EXIT_FAILURE if the target doesn't appear num times.
++ Caller could use that to emit a warning. */
++
++ int width; /* width of the current window. */
++ int x; /* x coordinate of the current cursor position. */
++ int step; /* amount to increment x (+1 or -1) */
++ int adjust; /* Final adjustment of cursor position. */
++ char *displayed_line; /* Line in which search takes place. */
++
++ debug("nextchar\n");
++
++ x = *xp;
++ adjust = 0;
++ width = fore->w_width;
++ displayed_line = WIN(*yp) -> image;
++
++ switch(direction) {
++ case 't': adjust = -1; /* fall through */
++ case 'f': step = 1; /* fall through */
++ break;
++ case 'T': adjust = 1; /* fall through */
++ case 'F': step = -1; /* fall through */
++ break;
++ default:
++ ASSERT(0);
++ }
++
++ x += step;
++
++ debug1("ml->image = %s\n", displayed_line);
++ debug2("num = %d, width = %d\n",num, width);
++ debug2("x = %d targe = %c\n", x, target );
++
++ for ( ;x>=0 && x <= width; x += step) {
++ if (displayed_line[x] == target) {
++ if (--num == 0) {
++ *xp = x + adjust;
++ return EXIT_SUCCESS;
++ }
++ }
++ }
++ return EXIT_FAILURE;
++}
++
++
+ static void
+ nextword(xp, yp, flags, num)
+ int *xp, *yp, flags, num;
+@@ -534,8 +583,55 @@
+ }
+ cx = markdata->cx;
+ cy = markdata->cy;
++
++ if (markdata -> char_search[0]) {
++ debug2("searching for %c:%d\n",od,rep_cnt);
++ markdata->char_search[0] = 0; /* Clear the flag. */
++ markdata->rep_cnt = 0;
++
++ if (isgraph (od)) {
++ markdata->char_search[1] = od;
++ rep_cnt = (rep_cnt) ? rep_cnt : 1;
++ nextchar(&cx, &cy, markdata->char_search[2], od, rep_cnt );
++ revto(cx, cy);
++ continue;
++ }
++ }
++
+ switch (od)
+ {
++ case 'f': /* fall through */
++ case 'F': /* fall through */
++ case 't': /* fall through */
++ case 'T': /* fall through */
++ markdata -> char_search[0] = markdata->char_search[2] = od;
++ debug("entering char search\n");
++ continue;
++ /* If we break, rep_cnt will be reset, so we
++ continue instead. It might be cleaner to
++ store the rep_count in char_search and
++ break here so later followon code will be
++ hit. */
++ case ';':
++ if (!rep_cnt) rep_cnt = 1;
++ nextchar(&cx, &cy, markdata->char_search[2], markdata->char_search[1], rep_cnt );
++ revto(cx, cy);
++ break;
++ case ',': {
++ int search_dir;
++ if (!rep_cnt) rep_cnt = 1;
++ switch (markdata->char_search[2]) {
++ case 't': search_dir = 'T'; break;
++ case 'T': search_dir = 't'; break;
++ case 'f': search_dir = 'F'; break;
++ case 'F': search_dir = 'f'; break;
++ }
++ nextchar(&cx, &cy, search_dir, markdata->char_search[1], rep_cnt );
++
++ revto(cx, cy);
++ break;
++ }
++
+ case 'o':
+ case 'x':
+ if (!markdata->second)
+--- ./mark.h.orig 2005-12-16 19:51:07.000000000 +0100
++++ ./mark.h 2005-12-19 12:03:10.405928022 +0100
+@@ -41,6 +41,7 @@
+ int isdir; /* current search direction */
+ int isstartpos; /* position where isearch was started */
+ int isstartdir; /* direction when isearch was started */
++ int char_search[3];
+ };
+
+
+
+
+_______________________________________________
+screen-users mailing list
+screen-users@gnu.org
+http://lists.gnu.org/mailman/listinfo/screen-users
diff --git a/patches/screen-4.0.2.dif b/patches/screen-4.0.2.dif
new file mode 100644
index 0000000..0fd7aec
--- /dev/null
+++ b/patches/screen-4.0.2.dif
@@ -0,0 +1,29 @@
+--- screenrc
++++ screenrc 2000/09/01 14:38:23
+@@ -0,0 +1,4 @@
++# this is the global screenrc file. Handle with care.
++
++termcapinfo xterm* G0:is=\E[?4l\E>:ti@:te@
++termcapinfo linux me=\E[m:AX
+--- ./configure.in.orig 2004-02-16 14:48:22.000000000 +0000
++++ ./configure.in 2004-02-16 14:49:11.000000000 +0000
+@@ -93,7 +93,7 @@
+ AC_MSG_RESULT(yes)
+ AC_MSG_CHECKING(for the socket dir)
+ SOCKDIR="(eff_uid ? \"/tmp/uscreens\" : \"/tmp/screens\")"
+- AC_ARG_WITH(socket-dir, [ --with-socket-dir=path where to put the per-user sockets], [ SOCKDIR="\"${withval}\"" ])
++ AC_ARG_WITH(socket-dir, [ --with-socket-dir=path where to put the per-user sockets], [ SOCKDIR="${withval}" ])
+ AC_MSG_RESULT(${SOCKDIR})
+ AC_DEFINE_UNQUOTED(SOCKDIR, $SOCKDIR)
+ ]
+--- ./configure.orig 2004-02-16 14:48:27.000000000 +0000
++++ ./configure 2004-02-16 14:49:26.000000000 +0000
+@@ -3012,7 +3012,7 @@
+ # Check whether --with-socket-dir or --without-socket-dir was given.
+ if test "${with_socket_dir+set}" = set; then
+ withval="$with_socket_dir"
+- SOCKDIR="\"${withval}\""
++ SOCKDIR="${withval}"
+ fi;
+ echo "$as_me:$LINENO: result: ${SOCKDIR}" >&5
+ echo "${ECHO_T}${SOCKDIR}" >&6
diff --git a/patches/screen-__P.diff b/patches/screen-__P.diff
new file mode 100644
index 0000000..26138c3
--- /dev/null
+++ b/patches/screen-__P.diff
@@ -0,0 +1,10 @@
+--- screen.h 2004/09/12 07:24:26 1.1
++++ screen.h 2004/09/12 07:24:36
+@@ -25,6 +25,7 @@
+
+ #include "os.h"
+
++#undef __P
+ #if defined(__STDC__)
+ # ifndef __P
+ # define __P(a) a
diff --git a/patches/screen-gcc4.diff b/patches/screen-gcc4.diff
new file mode 100644
index 0000000..6cd39c2
--- /dev/null
+++ b/patches/screen-gcc4.diff
@@ -0,0 +1,44 @@
+--- screen-4.0.2/fileio.c.xx 2005-04-08 13:37:18.823774606 +0200
++++ screen-4.0.2/fileio.c 2005-04-08 13:37:25.948324113 +0200
+@@ -779,7 +779,7 @@
+ #ifdef SIGPIPE
+ signal(SIGPIPE, SIG_DFL);
+ #endif
+- execl("/bin/sh", "sh", "-c", cmd, 0);
++ execl("/bin/sh", "sh", "-c", cmd, (char*)0);
+ Panic(errno, "/bin/sh");
+ default:
+ break;
+--- screen-4.0.2/utmp.c.orig 2005-10-28 22:01:14.105418912 +0000
++++ screen-4.0.2/utmp.c 2005-10-28 22:02:30.065801507 +0000
+@@ -604,6 +604,7 @@ struct utmp *u;
+ char *line, *user;
+ int pid;
+ {
++ time_t t;
+ u->ut_type = USER_PROCESS;
+ strncpy(u->ut_user, user, sizeof(u->ut_user));
+ /* Now the tricky part... guess ut_id */
+@@ -618,7 +619,8 @@ int pid;
+ #endif /* sgi */
+ strncpy(u->ut_line, line, sizeof(u->ut_line));
+ u->ut_pid = pid;
+- (void)time((time_t *)&u->ut_time);
++ (void)time(&t);
++ u->ut_time = t;
+ }
+
+ static slot_t
+@@ -726,9 +728,11 @@ struct utmp *u;
+ char *line, *user;
+ int pid;
+ {
++ time_t t;
+ strncpy(u->ut_line, line, sizeof(u->ut_line));
+ strncpy(u->ut_name, user, sizeof(u->ut_name));
+- (void)time((time_t *)&u->ut_time);
++ (void)time(&t);
++ u->ut_time = t;
+ }
+
+ static slot_t
diff --git a/src/.gitignore b/src/.gitignore
new file mode 100644
index 0000000..529960c
--- /dev/null
+++ b/src/.gitignore
@@ -0,0 +1,21 @@
+*.o
+.*.swp
+\#*\#
+*~
+Makefile
+autom4te.cache
+cscope.out
+TAGS
+tags
+comm.h
+config.h
+config.h.in
+config.log
+config.status
+configure
+kmapdef.c
+osdef.h
+term.h
+screen
+stamp-h.in
+tty.c
diff --git a/src/.iscreenrc b/src/.iscreenrc
new file mode 100644
index 0000000..802afbd
--- /dev/null
+++ b/src/.iscreenrc
@@ -0,0 +1,169 @@
+#
+# A sample .screenrc which I use for everyday work.
+#
+# some of the commands commented out here, have been moved to
+# /local/etc/screenrc
+#
+# we want no password, right?
+#password # This will ask us for a password.
+password none # Same as not even mentioning it.
+#password 12Bz/9hNlPLZk # "1234"
+#password YahtrWblnJw # ypmatch jnweiger passwd. Well, ... :-)
+
+scrollback 200 # we have a 200 lines history buffer
+markkeys "@=\177:@=^C" # our mad facit-twist terminal buffer overflow...
+markkeys "h=^B:l=^F:\$=^E" # some missing emacs style bindings in copymode
+
+echo -n "booting screen"
+
+# let it flash, not horn!
+#vbell on # "vbell" don't work any longer, sorry.
+#vbell_msg " Wuff, Wuff!! " # this is the default message
+#bell "Bimmmel No. %" # sounds the bell and shows a message
+
+# we want to login all windows we create.
+#login on # "login", "nologin" don't work any longer, sorry 2.
+
+echo -n "."
+# we have no termcap entry for screen on the target machine? Well then
+# we tell a lie.
+term screen # would be the obvious default here.
+#term vt100 # screen will understand vt100 for 99%.
+
+# we want to survive hangups
+# note that the default setting is off now!
+autodetach on
+
+# when we open a window, where shall its CWD be?
+chdir # without argument it's my $HOME
+
+echo -n "."
+# I hate nonexisting status lines! Force screen to believe me.
+#hardstatus off
+
+# now some Terminal setup:
+# Printing in the leftmost column is not save. We express that fact as :LP@:
+#
+# Emacs tends to smear it's highlighted status bar across the screen, producing
+# ugly areas of bright background, if termcap is'nt perfectly sober.
+# Give a little :ms@: in the termcap, this may help.
+#
+# And who invented the initialisation for facit terminals? We tell him that
+# we non't like smooth scroll, by specifying :ti=\E[?l:.
+# \E[?3l 80 Zeichen
+# \E[?3h 132 Zeichen
+# LP Last column Printable
+# \E[A cursor up
+# \E[B cursor down
+# \E[?4h smooth scroll
+# \E[?4l jump scroll
+# \E[%dL insert %d lines
+# \E[K clear to end of line
+# cs \E[%i%d;%dr for twist and xterm
+# ms@ Move in Standout mode is NOT save.
+# WS our private variable, it declares that the terminal can
+# be resized by an escape-sequence
+# The termcap statement takes 2 or three parameters. First parameter lists
+# which TERMCAPs are affected by this statement. Second we specify changes
+# in screen's view of that terminals. Third we may specify some capabilities
+# that user-programs want to see in the $TERMCAP environment variable or in
+# screen's termcap entry.
+termcap vt* cl=\E[H\E[J\E[?1h:vi=\E[?35h:ve=\E[35l:ti=\E[?4l[vt100]
+termcap facit ti=\E[?4l[facit]
+termcap xterm* is=\E[r\E[m\E[2J\E[H\E[?7h\E[?1;4;6l:Z0=\E[?3h:Z1=\E[?3l
+
+echo -n "."
+# "\E(B", "\E(0", "\E(1", "\E(2", ... to switch between charsets.
+# screen internally emulates G1: "\E)..", G2: "\E*..", G3: "\E+.."
+# you can switch between them, with:
+#
+# code | switch to
+# ------+------
+# ^O | G0
+# ^N | G1
+# \En | G2
+# \Eo | G3
+#termcap facit|vt100|xterm* G0
+
+# how do we resize windows? under sunview, this is standard, but xterm
+# needs to be a specially hacked xterm, to make this work.
+termcap xterm* WS=\E[8;%d;%dt
+
+# ICL 6402 testing:
+termcap icl* G0:S0=\E$[start]:E0=\E%[end]:C0=j9k<l6m3n?q\:t7u=v;w>x5 GS=\E(0^O:GE=\E(B^O:G1=k:G2=l:G3=m:G4=j:GV=x:GH=q:GR=u:GL=t:GU=w:GD=v:GC=n
+
+# Flowcontrol produces trouble. ^S und ^Q will never reach screen, as our
+# terminals catch them locally. Who can explain that to me?:
+#flow on|off|auto [interrupt]
+
+# Long Lines get wrapped around (the back of your terminal). This is the
+# default for vt100. But now programs make different asumptions about your
+# terminal. You may find two linefeeds where you'd expect one, or you may
+# be confronted with a truncated line. Currently there is no fix, but pressing
+# C-A r and doing a redraw.
+#wrap on
+
+# the autoaka allows you to see the currently executing shell command in the
+# window name field. To use that, your shell prompt must contain ^[k^[\ or
+# you will see the string "(init)" as a name.
+# in my .cshrc I may use this for a wonderfull tcsh-prompt:
+# set prompt="%{^[k^[\\%}%h %c2(%m)%# "
+#
+# defining a shellaka that contains a pipe-symbol (|) activites the
+# autoaka feature. To the left of that | you specify a constant part of
+# your prompt as a trigger, to the right you may place a default string
+# as in
+shellaka '> |tc'
+# but beware! specifying a window name with the -t option has priority over
+# the autoaka mechanism. Although specifying -t "> |foo" will work.
+# shellaka tc
+
+# ... now a little bit of key bindings
+# In case we don't have write permission for /etc/utmp (no s-bit)
+# we create even local windows via rlogin. -> Et voila: a utmp-slot
+# utmp-slots are strongly recomended to keep sccs and talk happy.
+# (thus we have ^A# or. ^Ac for windowcreation with or without utmp-slot.)
+# but if we run suid-root, we produce all the rlogins with -ln,
+# as nobody shall refer to these pty's.
+bind '!' screen -ln -k faui41 rlogin faui41
+bind '@' screen -ln -k vme2 rlogin faui4_vme2
+#bind '#' screen -k faui43
+bind '#' screen -ln -k faui43 rlogin faui43
+bind '$' screen -ln -k faui44 rlogin faui44
+bind '%' screen -ln -k faui45 rlogin faui45
+bind '\^' screen -ln -k sup1 rlogin fausup1
+bind '&' screen -ln -k sup2 rlogin fausup2
+bind '*' screen -ln -k faui48 rlogin faui48
+bind '(' screen -ln -k faui09 rlogin faui09
+bind ')' screen -ln -k faui10 rlogin faui10
+bind 'J' screen -ln -k 4j rlogin faui4j
+bind 'P' screen -ln -k 4p rlogin faui4p
+bind '^C' screen -ln -k 45c rlogin faui45c
+bind '^D' screen -ln -k 45d rlogin faui45d
+bind '^E' screen -ln -k 45e rlogin faui45e
+bind '^I' screen -ln -k 45i rlogin faui45i
+
+# these two are logIn and logOut. As a toggle is too stupid.
+#bind 'I' set login on
+#bind 'O' set login off
+bind 'L'
+
+# What happens, when you 'think emacs' and want to erase a whole
+# line? You type ^A^K right? Under screen it should be ^Aa^K. But...
+# killing the window would be a real punishment for a little mistyping.
+bind k #wow! I even amange to type ^Ak by accident.
+#bind ^k
+#bind K kill
+
+echo -n "."
+#screen 1:faui43 # My good old <nr>:<alias> syntax
+#screen -k faui43 # The way Wayne Davison thinks about it.
+#screen -ln -k faui43 # this one not logged in.
+#screen -ln 2:faui09 rlogin faui09 -l jnweiger
+
+# Finally another bonus feature for people using strange terminal settings like
+# different baud rate, etc. The next user will get standard settings
+# as ^[c is a reset sequence.
+#pow_detach_msg "" # is the default
+pow_detach_msg "c"
+echo "done."
diff --git a/src/COPYING b/src/COPYING
new file mode 100644
index 0000000..94a9ed0
--- /dev/null
+++ b/src/COPYING
@@ -0,0 +1,674 @@
+ GNU GENERAL PUBLIC LICENSE
+ Version 3, 29 June 2007
+
+ Copyright (C) 2007 Free Software Foundation, Inc. <http://fsf.org/>
+ Everyone is permitted to copy and distribute verbatim copies
+ of this license document, but changing it is not allowed.
+
+ Preamble
+
+ The GNU General Public License is a free, copyleft license for
+software and other kinds of works.
+
+ The licenses for most software and other practical works are designed
+to take away your freedom to share and change the works. By contrast,
+the GNU General Public License is intended to guarantee your freedom to
+share and change all versions of a program--to make sure it remains free
+software for all its users. We, the Free Software Foundation, use the
+GNU General Public License for most of our software; it applies also to
+any other work released this way by its authors. You can apply it to
+your programs, too.
+
+ When we speak of free software, we are referring to freedom, not
+price. Our General Public Licenses are designed to make sure that you
+have the freedom to distribute copies of free software (and charge for
+them if you wish), that you receive source code or can get it if you
+want it, that you can change the software or use pieces of it in new
+free programs, and that you know you can do these things.
+
+ To protect your rights, we need to prevent others from denying you
+these rights or asking you to surrender the rights. Therefore, you have
+certain responsibilities if you distribute copies of the software, or if
+you modify it: responsibilities to respect the freedom of others.
+
+ For example, if you distribute copies of such a program, whether
+gratis or for a fee, you must pass on to the recipients the same
+freedoms that you received. You must make sure that they, too, receive
+or can get the source code. And you must show them these terms so they
+know their rights.
+
+ Developers that use the GNU GPL protect your rights with two steps:
+(1) assert copyright on the software, and (2) offer you this License
+giving you legal permission to copy, distribute and/or modify it.
+
+ For the developers' and authors' protection, the GPL clearly explains
+that there is no warranty for this free software. For both users' and
+authors' sake, the GPL requires that modified versions be marked as
+changed, so that their problems will not be attributed erroneously to
+authors of previous versions.
+
+ Some devices are designed to deny users access to install or run
+modified versions of the software inside them, although the manufacturer
+can do so. This is fundamentally incompatible with the aim of
+protecting users' freedom to change the software. The systematic
+pattern of such abuse occurs in the area of products for individuals to
+use, which is precisely where it is most unacceptable. Therefore, we
+have designed this version of the GPL to prohibit the practice for those
+products. If such problems arise substantially in other domains, we
+stand ready to extend this provision to those domains in future versions
+of the GPL, as needed to protect the freedom of users.
+
+ Finally, every program is threatened constantly by software patents.
+States should not allow patents to restrict development and use of
+software on general-purpose computers, but in those that do, we wish to
+avoid the special danger that patents applied to a free program could
+make it effectively proprietary. To prevent this, the GPL assures that
+patents cannot be used to render the program non-free.
+
+ The precise terms and conditions for copying, distribution and
+modification follow.
+
+ TERMS AND CONDITIONS
+
+ 0. Definitions.
+
+ "This License" refers to version 3 of the GNU General Public License.
+
+ "Copyright" also means copyright-like laws that apply to other kinds of
+works, such as semiconductor masks.
+
+ "The Program" refers to any copyrightable work licensed under this
+License. Each licensee is addressed as "you". "Licensees" and
+"recipients" may be individuals or organizations.
+
+ To "modify" a work means to copy from or adapt all or part of the work
+in a fashion requiring copyright permission, other than the making of an
+exact copy. The resulting work is called a "modified version" of the
+earlier work or a work "based on" the earlier work.
+
+ A "covered work" means either the unmodified Program or a work based
+on the Program.
+
+ To "propagate" a work means to do anything with it that, without
+permission, would make you directly or secondarily liable for
+infringement under applicable copyright law, except executing it on a
+computer or modifying a private copy. Propagation includes copying,
+distribution (with or without modification), making available to the
+public, and in some countries other activities as well.
+
+ To "convey" a work means any kind of propagation that enables other
+parties to make or receive copies. Mere interaction with a user through
+a computer network, with no transfer of a copy, is not conveying.
+
+ An interactive user interface displays "Appropriate Legal Notices"
+to the extent that it includes a convenient and prominently visible
+feature that (1) displays an appropriate copyright notice, and (2)
+tells the user that there is no warranty for the work (except to the
+extent that warranties are provided), that licensees may convey the
+work under this License, and how to view a copy of this License. If
+the interface presents a list of user commands or options, such as a
+menu, a prominent item in the list meets this criterion.
+
+ 1. Source Code.
+
+ The "source code" for a work means the preferred form of the work
+for making modifications to it. "Object code" means any non-source
+form of a work.
+
+ A "Standard Interface" means an interface that either is an official
+standard defined by a recognized standards body, or, in the case of
+interfaces specified for a particular programming language, one that
+is widely used among developers working in that language.
+
+ The "System Libraries" of an executable work include anything, other
+than the work as a whole, that (a) is included in the normal form of
+packaging a Major Component, but which is not part of that Major
+Component, and (b) serves only to enable use of the work with that
+Major Component, or to implement a Standard Interface for which an
+implementation is available to the public in source code form. A
+"Major Component", in this context, means a major essential component
+(kernel, window system, and so on) of the specific operating system
+(if any) on which the executable work runs, or a compiler used to