aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--CHANGES110
-rw-r--r--INSTALLATION16
-rw-r--r--LYMessages_en.h31
-rw-r--r--WWW/Library/Implementation/HTAccess.c9
-rw-r--r--WWW/Library/Implementation/HTAnchor.c20
-rw-r--r--WWW/Library/Implementation/HTGopher.c6
-rw-r--r--WWW/Library/Implementation/HTMIME.c1
-rw-r--r--WWW/Library/Implementation/HTPlain.c2
-rw-r--r--WWW/Library/Implementation/HTUtils.h6
-rw-r--r--WWW/Library/Implementation/SGML.c38
-rw-r--r--WWW/Library/Implementation/UCMap.h5
-rw-r--r--WWW/Library/vms/libmake.com4
-rw-r--r--aclocal.m422
-rw-r--r--config.hin12
-rwxr-xr-xconfigure1451
-rw-r--r--configure.in127
-rw-r--r--lynx.cfg28
-rw-r--r--lynx_help/Lynx_users_guide.html14
-rw-r--r--lynx_help/keystrokes/follow_help.html55
-rw-r--r--makefile.in15
-rw-r--r--po/lynx.pot768
-rw-r--r--po/readme3
-rw-r--r--src/GridText.c1173
-rw-r--r--src/GridText.h6
-rw-r--r--src/HTFWriter.c1
-rw-r--r--src/HTML.c56
-rw-r--r--src/LYBookmark.c8
-rw-r--r--src/LYCharSets.c86
-rw-r--r--src/LYCookie.c11
-rw-r--r--src/LYEdit.c16
-rw-r--r--src/LYForms.c55
-rw-r--r--src/LYGetFile.c39
-rw-r--r--src/LYGlobalDefs.h1
-rw-r--r--src/LYHistory.c3
-rw-r--r--src/LYKeymap.c22
-rw-r--r--src/LYKeymap.h211
-rw-r--r--src/LYList.c5
-rw-r--r--src/LYMain.c32
-rw-r--r--src/LYMainLoop.c188
-rw-r--r--src/LYMainLoop.h4
-rw-r--r--src/LYPrint.c145
-rw-r--r--src/LYPrint.h1
-rw-r--r--src/LYReadCFG.c2
-rw-r--r--src/LYStrings.c2
-rw-r--r--src/LYUtils.c19
-rw-r--r--src/LYUtils.h9
-rw-r--r--src/LYrcFile.c18
-rw-r--r--src/UCAuto.c1
-rw-r--r--src/UCAux.c18
-rw-r--r--src/UCdomap.c43
-rw-r--r--src/UCdomap.h48
-rw-r--r--src/chrtrans/MAKEW32.BAT2
-rw-r--r--src/chrtrans/build-chrtrans.com4
-rw-r--r--src/chrtrans/def7_uni.tbl5
-rw-r--r--src/chrtrans/makefile.dos4
-rw-r--r--src/chrtrans/makefile.in4
-rw-r--r--src/structdump.h20
-rw-r--r--userdefs.h4
58 files changed, 3238 insertions, 1771 deletions
diff --git a/CHANGES b/CHANGES
index 386d2da8..02984818 100644
--- a/CHANGES
+++ b/CHANGES
@@ -1,6 +1,114 @@
Changes since Lynx 2.8 release
================================================================================
+1999-03-04 (2.8.2dev.18)
+* modify configure script to recover if the intl and po directories are
+ missing, allow experimentation with --enable-nls --disable-included-msgs
+ --without-included-gettext options (request by HN) - TD
+* add sanity-check for EBCDIC FixCharacters() in LYMain.c - PG
+* ifdef'd the ADDRLIST code with EXP_ADDRLIST_PAGE, making this available as
+ a configure script option --enable-addrlist-page - TD
+* create a new command called ADDRLIST, which behaves exactly the same as LIST,
+ but which *should* always show only the URL's. Rather than make it a config
+ option (which would have taken me quite a bit longer to do), I've bound it to
+ the "A" key (that's a capital "A"). Why not "L" you ask? Because of the "vi
+ keys" option, whereby "l" is used for cursor movement, and "L" stays reserved
+ for L(ist) - KED
+* change the LYK_xxx keymap definitions to an enum, to simplify ifdef's - TD
+* add configure options --disable-gopher, to remove GOPHER code, and
+ --disable-trace to remove TRACE code - JS
+* modify trace log header to always inform us if anonymous restrictions are
+ set - LP
+* chartrans: old-style declarations of charsets which do not have Unicode
+ tables (CJK, x-transparent, also UTF-8) now moved from LYCharSets.c to
+ UCdomap.h and now included with UCInit() in UCdomap.c in a standard way - LP
+ (Please re-test CJK and UTF-8)
+* add configure --enable-libjs option (Lalo Martins <lalo@webcom.com>)
+* add checks for some more LINK tags as listed in "6.12 Link types" of the HTML
+ 4.0 Specification (Masayasu Ishikawa <mimasa@isoternet.org>)
+* changed the effect of some LINK tags with REL attribute of a very relative
+ character (Up, Next, Prev, ...) on titles as they appear e.g. on the LIST
+ page: the title of the target HTParentAnchor isn't being set when such a
+ LINK tag is parsed, but the relation is now stored as a property of the
+ link itself rather than its destination. The LIST page shows the relation
+ as additional info, not superseding a URL or title string obtained
+ otherwise - KW
+* move commands in top-level makefile.in which clean *.rej and *.orig from
+ 'distclean' rule to 'maintainer-clean', make distinct from the @SRCDIR_CLEAN@
+ substitution which is intended for use with the configure --srcdir option
+ (from reports by Glenn E. Thobe <thobe@lafn.org> and BL) - TD
+* correct LYRemoveTemp() to close file before attempting to remove it; else
+ the remove fails on some platforms, e.g., DOS/Windows (report by KW) - TD
+* improved documentation for the new cookie options, e.g,.
+ COOKIE_ACCEPT_DOMAINS, in lynx.cfg - BJP
+* fix some memory leaks in LYCookie.c - BJP
+* modify 123g (and similar movement) commands to allow for relative links,
+ e.g., by using a '+' or '-' after the 'g' - LE
+* modify help_files.sed to include '$', making regular expressions work for
+ HP-UX (Jens Schmalzing <jens@stat.physik.uni-muenchen.de>)
+* add a comment to aclocal.m4 to show where patches for autoconf, needed for
+ this configure script, can be found - JS
+* add toggling trace log on/off in partial mode, when the downloading is still
+ in progress - LP
+* more consistent docs for debugging of invalidly nested HTML: important trace
+ messages from actions on invalid tags now have '***' prefix such as "SGML:
+ ... ***ignored" (well: illegal, forced, assumed, etc.), -preparsed mode now
+ better documented - LP
+* minor code cleanup: remove redundant includes, fill in 0's for some static
+ data initialization (John Bley).
+* add 'joe' editor, and variants, to list of those editors that are assumed to
+ position the file to a given line number using the "+line" command-line
+ option - IC
+* remove redundant "(y/n)" substrings from LYMessages_en.h - LV
+* add new command named GROWTEXTAREA which adds 5 new blank lines to the bottom
+ of a TEXTAREA when executed. It does not have a default binding, so you need
+ to add a KEYMAP for it in your lynx.cfg. The number of lines added is fixed
+ by a #define, but 5 seems to be a "reasonable" increment to use - KED
+* add new command named INSERTFILE, which (obviously) inserts a file's contents
+ into a TEXTAREA, just above the line the cursor is on when invoked (which
+ means you cannot insert a file *below* the final existing TEXTAREA line ...
+ but see 1) and 3) for easy ways to over- come this limitation). It too, has
+ no default binding, so a KEYMAP entry is also needed for it - KED
+* by default, when the cursor is on the last line of a TEXTAREA, if you hit the
+ ENTER key, a new line will be added to the TEXTAREA, with the cursor
+ positioned on it. If that should happen at the bottom of the screen, a
+ DOWN_HALF scroll operation is (effectively) performed - KED
+* ifdef'd this feature (since at least one person objected to this automatic
+ behavior when it was discussed awhile back - BL?), for easy disabling (and to
+ make adding a ./configure option easier). The symbol is AUTOGROW is
+ #define'd in LYMainLoop.h - KED
+* added an ifdef for the code that causes the external editor to be
+ invoked "automatically" on the TEXTAREA contents when ^Ve (or whatever
+ the EDIT binding is), rather than attempting to invoke it on the .html
+ source file. This should allow adding a ./configure option to control
+ this behavior, until we come up with a different binding/mechanism to
+ do the job, that we can all agree on. The symbol AUTOEXTEDIT is also
+ #define'd in LYMainLoop.h. The command EDITTEXTAREA is still available
+ for seperate KEYMAP binding, per KW's suggestion - KED
+* check the range of chars between 0x80 and LYlowest_eightbit[current_char_set]
+ for validity against the charset in use. If such chars are detected in
+ edited or inserted data, a "." char is substituted for them, as with normal
+ control chars. (Suggested by LP) - KED
+* added KW's LYCloseTempFP bugfix - KED
+* add/use function GetFileName(), e.g., by INSERTFILE. It is fairly general
+ purpose, and can be used whenever the name of an existing file needs to be
+ input. It uses the same mechanism for filename expansion and "history" as
+ does the PRINT function - KED
+* reorganized a lot of the code into subroutines to provide for 1) and 2);
+ still need to do a bit more cleanup of some other (nearly) common code - KED
+* rename iso9945_uni.tbl to iso9945uni.tbl to accommodate 'make' programs on
+ old systems (such as CLIX 3.1) whose suffix rules fail for filenames longer
+ than 14 characters - TD
+* change VMS WWW build-script to use prefix=all rather than prefix=ansi,
+ so that POSIX functions such as 'stat()' are linked properly (reported by
+ Morris D Cox <coxmd@appstate.edu>) - TD
+* modify configure macro CF_EBCDIC to avoid using #error, since that is not
+ recognized by all compilers - TD
+* include <sys/types.h> in CF_INET_ADDR macro, to accommodate systems which
+ require that to compile test program with the socket.h, other network
+ headers - TD
+* removed a cast in free_lynx_cfg, on FREE's argument, which caused some
+ compilers to report that an rvalue was being modified (reported by PW) - TD
1999-02-16 (2.8.2dev.17)
* modify LYReadCFG.c to avoid duplicating data for cookies - BJP
* modify HTConfirm to use gettext values for yes/no. Use HTConfirm in a few
@@ -10,7 +118,7 @@ Changes since Lynx 2.8 release
* modify ./makefile.in so that portions which are commented-out will be done
without a leading tab, since that confuses the make program on Digital Unix
3.2 - TD
-* Unix: Don't accept HOME variable with valid if it does not begin with
+* Unix: Don't accept HOME variable as valid if it does not begin with
a slash - KW
* changed HTGetCharacter to be 8-bit clean, it could not distinguish between a
character value 255 and EOF. Changes affect several protocols: nntp,
diff --git a/INSTALLATION b/INSTALLATION
index 30c4ce9e..9f814ad7 100644
--- a/INSTALLATION
+++ b/INSTALLATION
@@ -221,6 +221,9 @@ II. Compile instructions -- UNIX
menu options code with FORMS_OPTIONS switch in lynx.cfg, or
-forms_options command-line switch.
+ --disable-gopher (define DISABLE_GOPHER)
+ Do not compile-in code used to connect to GOPHER servers.
+
--disable-full-paths
Use this option to control whether full utility pathnames are used.
By default, configure substitutes full pathnames.
@@ -247,6 +250,16 @@ II. Compile instructions -- UNIX
Turn off code that lets Lynx display parts of a long page while loading
it.
+ --disable-trace (define NO_LYNX_TRACE)
+ Turn off code that lets you trace internal details of Lynx's operation.
+ We recommend that you leave this enabled, since we need this
+ information to diagnose problems with either Lynx or the sites to which
+ you connect.
+
+ --enable-addrlist-page (define EXP_ADDRLIST_PAGE)
+ Compiles-in an alternative list-page, bound to 'A' rather than 'l',
+ which always lists URLs rather than titles.
+
--enable-alt-bindings (define EXP_ALT_BINDINGS)
Compiles-in an alternative set of line-edit bindings, in addition
to the default bindings.
@@ -299,6 +312,9 @@ II. Compile instructions -- UNIX
JCUKEN Cyrillic, for AT 101-key kbd
YAWERTY Cyrillic, for DEC LK201 kbd
+ --enable-libjs (define EXP_LIBJS)
+ Disabled by default; used for ifdef'ing JavaScript interface.
+
--enable-nls
use Native Language Support (i.e., gettext).
diff --git a/LYMessages_en.h b/LYMessages_en.h
index 9474b9b9..ecf63b26 100644
--- a/LYMessages_en.h
+++ b/LYMessages_en.h
@@ -154,15 +154,15 @@
gettext("Unable to open temporary file for mailto URL!")
#define COMMENT_REQUEST_CANCELLED gettext("Comment request cancelled!!!")
#define INC_ORIG_MSG_PROMPT \
- gettext("Do you wish to include the original message? (y/n) ")
+ gettext("Do you wish to include the original message?")
#define INC_PREPARSED_MSG_PROMPT \
- gettext("Do you wish to include the preparsed source? (y/n) ")
+ gettext("Do you wish to include the preparsed source?")
#define SPAWNING_EDITOR_FOR_MAIL \
gettext("Spawning your selected editor to edit mail message")
#define ERROR_SPAWNING_EDITOR \
gettext("Error spawning editor, check your editor definition in the options menu")
-#define SEND_COMMENT_PROMPT gettext("Send this comment? (y/n) ")
-#define SEND_MESSAGE_PROMPT gettext("Send this message? (y/n) ")
+#define SEND_COMMENT_PROMPT gettext("Send this comment?")
+#define SEND_MESSAGE_PROMPT gettext("Send this message?")
#define SENDING_YOUR_MSG gettext("Sending your message...")
#define SENDING_COMMENT gettext("Sending your comment:")
@@ -269,7 +269,7 @@
#define NOBOOK_HSML \
gettext("History, showinfo, menu and list files cannot be saved as bookmarks.")
#define CONFIRM_BOOKMARK_DELETE \
- gettext("Do you really want to delete this link from your bookmark file? (y/n)")
+ gettext("Do you really want to delete this link from your bookmark file?")
#define MALFORMED_ADDRESS gettext("Malformed address.")
#define HISTORICAL_ON_MINIMAL_OFF \
gettext("Historical comment parsing ON (Minimal is overridden)!")
@@ -358,7 +358,7 @@
#define OUTOF_MEM_FOR_JUMP_TABLE gettext("Out of memory reading jump table!")
#define NO_INDEX_FILE gettext("No index is currently available.")
#define CONFIRM_MAIN_SCREEN \
- gettext("Do you really want to go to the Main screen? (y/n) [n] ")
+ gettext("Do you really want to go to the Main screen? [n] ")
#define IN_MAIN_SCREEN gettext("You are already at main screen!")
#define NOT_ISINDEX \
gettext("Not a searchable indexed document -- press '/' to search for a text string")
@@ -418,9 +418,9 @@
#define NEW_FILENAME_PROMPT gettext("Enter a new filename: ")
#define FILENAME_CANNOT_BE_DOT gettext("File name may not begin with a dot.")
#ifdef VMS
-#define FILE_EXISTS_HPROMPT gettext("File exists. Create higher version? (y/n)")
+#define FILE_EXISTS_HPROMPT gettext("File exists. Create higher version?")
#else
-#define FILE_EXISTS_OPROMPT gettext("File exists. Overwrite? (y/n)")
+#define FILE_EXISTS_OPROMPT gettext("File exists. Overwrite?")
#endif /* VMS */
#define CANNOT_WRITE_TO_FILE gettext("Cannot write to file.")
#define MISCONF_DOWNLOAD_COMMAND gettext("ERROR! - download command is misconfigured.")
@@ -477,8 +477,8 @@
#define NEWS_POST_CANCELLED gettext("News Post Cancelled!!!")
#define SPAWNING_EDITOR_FOR_NEWS \
gettext("Spawning your selected editor to edit news message")
-#define POST_MSG_PROMPT gettext("Post this message? (y/n) ")
-#define APPEND_SIG_FILE gettext("Append '%s'? (y/n) ")
+#define POST_MSG_PROMPT gettext("Post this message?")
+#define APPEND_SIG_FILE gettext("Append '%s'?")
#define POSTING_TO_NEWS gettext("Posting to newsgroup(s)...")
#ifdef VMS
#define HAVE_UNREAD_MAIL_MSG gettext("*** You have unread mail. ***")
@@ -486,6 +486,12 @@
#define HAVE_MAIL_MSG gettext("*** You have mail. ***")
#endif /* VMS */
#define HAVE_NEW_MAIL_MSG gettext("*** You have new mail. ***")
+#define FILE_INSERT_CANCELLED gettext("File insert cancelled!!!")
+#define FILE_DOES_NOT_EXIST gettext("File does not exist.")
+#define FILE_DOES_NOT_EXIST_RE gettext("File does not exist - reenter or cancel:")
+#define FILE_NOT_READABLE gettext("File is not readable.")
+#define FILE_NOT_READABLE_RE gettext("File is not readable - reenter or cancel:")
+#define FILE_INSERT_0_LENGTH gettext("Nothing to insert - file is 0-length.")
#define SAVE_REQUEST_CANCELLED gettext("Save request cancelled!!!")
#define MAIL_REQUEST_CANCELLED gettext("Mail request cancelled!!!")
#define CONFIRM_MAIL_SOURCE_PREPARSED \
@@ -772,6 +778,8 @@
#define FAILED_READING_KEYMAP gettext("Error processing line %d of %s\n")
/* Lynx internal page titles */
+#define ADDRLIST_PAGE_TITLE gettext("Address List Page")
+#define BOOKMARK_TITLE gettext("Bookmark file")
#define CONFIG_DEF_TITLE gettext("Configuration Definitions")
#define COOKIE_JAR_TITLE gettext("Cookie Jar")
#define CURRENT_KEYMAP_TITLE gettext("Current Key Map")
@@ -780,14 +788,13 @@
#define HISTORY_PAGE_TITLE gettext("History Page")
#define LIST_PAGE_TITLE gettext("List Page")
#define LYNXCFG_TITLE gettext("Lynx.cfg Information")
+#define MOSAIC_BOOKMARK_TITLE gettext("Converted Mosaic Hotlist")
#define OPTIONS_TITLE gettext("Options Menu")
#define PERMIT_OPTIONS_TITLE gettext("File Permission Options")
#define PRINT_OPTIONS_TITLE gettext("Printing Options")
#define SHOWINFO_TITLE gettext("Information about the current document")
#define UPLOAD_OPTIONS_TITLE gettext("Upload Options")
#define VISITED_LINKS_TITLE gettext("Visited Links Page")
-#define BOOKMARK_TITLE gettext("Bookmark file")
-#define MOSAIC_BOOKMARK_TITLE gettext("Converted Mosaic Hotlist")
/* CONFIG_DEF_TITLE subtitles */
#define SEE_ALSO gettext("See also")
diff --git a/WWW/Library/Implementation/HTAccess.c b/WWW/Library/Implementation/HTAccess.c
index 402afaaf..77517472 100644
--- a/WWW/Library/Implementation/HTAccess.c
+++ b/WWW/Library/Implementation/HTAccess.c
@@ -141,8 +141,10 @@ extern GLOBALREF (HTProtocol, HTNewsReply);
extern GLOBALREF (HTProtocol, HTSNews);
extern GLOBALREF (HTProtocol, HTSNewsPost);
extern GLOBALREF (HTProtocol, HTSNewsReply);
+#ifndef DISABLE_GOPHER
extern GLOBALREF (HTProtocol, HTGopher);
extern GLOBALREF (HTProtocol, HTCSO);
+#endif /* not DISABLE_GOPHER */
extern GLOBALREF (HTProtocol, HTFinger);
#ifdef DIRECT_WAIS
extern GLOBALREF (HTProtocol, HTWAIS);
@@ -153,7 +155,10 @@ GLOBALREF HTProtocol HTTP, HTTPS, HTFile, HTTelnet, HTTn3270, HTRlogin;
#ifndef DECNET
GLOBALREF HTProtocol HTFTP, HTNews, HTNNTP, HTNewsPost, HTNewsReply;
GLOBALREF HTProtocol HTSNews, HTSNewsPost, HTSNewsReply;
-GLOBALREF HTProtocol HTGopher, HTCSO, HTFinger;
+#ifndef DISABLE_GOPHER
+GLOBALREF HTProtocol HTGopher, HTCSO;
+#endif /* not DISABLE_GOPHER */
+GLOBALREF HTProtocol HTFinger;
#ifdef DIRECT_WAIS
GLOBALREF HTProtocol HTWAIS;
#endif /* DIRECT_WAIS */
@@ -177,8 +182,10 @@ PRIVATE void HTAccessInit NOARGS /* Call me once */
HTRegisterProtocol(&HTSNews);
HTRegisterProtocol(&HTSNewsPost);
HTRegisterProtocol(&HTSNewsReply);
+#ifndef DISABLE_GOPHER
HTRegisterProtocol(&HTGopher);
HTRegisterProtocol(&HTCSO);
+#endif /* not DISABLE_GOPHER */
HTRegisterProtocol(&HTFinger);
#ifdef DIRECT_WAIS
HTRegisterProtocol(&HTWAIS);
diff --git a/WWW/Library/Implementation/HTAnchor.c b/WWW/Library/Implementation/HTAnchor.c
index 9e3933ad..9be41d00 100644
--- a/WWW/Library/Implementation/HTAnchor.c
+++ b/WWW/Library/Implementation/HTAnchor.c
@@ -901,11 +901,21 @@ PUBLIC void HTAnchor_setTitle ARGS2(
int i;
if (me) {
- StrAllocCopy(me->title, title);
- for (i = 0; me->title[i]; i++) {
- if ((unsigned char)me->title[i] == 1 ||
- (unsigned char)me->title[i] == 2) {
- me->title[i] = ' ';
+ if (title) {
+ StrAllocCopy(me->title, title);
+ for (i = 0; me->title[i]; i++) {
+ if ((unsigned char)me->title[i] == 1 ||
+ (unsigned char)me->title[i] == 2) {
+ me->title[i] = ' ';
+ }
+ }
+ } else {
+ CTRACE(tfp,"HTAnchor_setTitle: New title is NULL! ");
+ if (me->title) {
+ CTRACE(tfp,"Old title was \"%s\".\n", me->title);
+ FREE(me->title);
+ } else {
+ CTRACE(tfp,"Old title was NULL.\n");
}
}
}
diff --git a/WWW/Library/Implementation/HTGopher.c b/WWW/Library/Implementation/HTGopher.c
index 276569b5..5b4ee335 100644
--- a/WWW/Library/Implementation/HTGopher.c
+++ b/WWW/Library/Implementation/HTGopher.c
@@ -16,6 +16,8 @@
*/
#include <HTUtils.h> /* Coding convention macros */
+
+#ifndef DISABLE_GOPHER
#include <HTAlert.h>
#include <HTParse.h>
#include <HTTCP.h>
@@ -58,9 +60,7 @@
#define GOPHER_PLUS_SOUND '<'
#define GOPHER_PLUS_PDF 'P'
-#include <HTParse.h>
#include <HTFormat.h>
-#include <HTTCP.h>
/*
** Hypertext object building machinery.
@@ -1928,3 +1928,5 @@ GLOBALDEF (HTProtocol, HTCSO, _HTCSO_C_1_INIT);
GLOBALDEF PUBLIC HTProtocol HTGopher = { "gopher", HTLoadGopher, NULL };
GLOBALDEF PUBLIC HTProtocol HTCSO = { "cso", HTLoadCSO, NULL };
#endif /* GLOBALDEF_IS_MACRO */
+
+#endif /* not DISABLE_GOPHER */
diff --git a/WWW/Library/Implementation/HTMIME.c b/WWW/Library/Implementation/HTMIME.c
index 4228b570..c27e1f3b 100644
--- a/WWW/Library/Implementation/HTMIME.c
+++ b/WWW/Library/Implementation/HTMIME.c
@@ -1991,7 +1991,6 @@ PUBLIC void HTmmdecode ARGS2(
int LYhndl;
*qm2 = '\0';
- LYLowerCase(s+2);
invalid = ((LYhndl = UCGetLYhndl_byMIME(s+2)) < 0 ||
UCCanTranslateFromTo(LYhndl,
current_char_set));
diff --git a/WWW/Library/Implementation/HTPlain.c b/WWW/Library/Implementation/HTPlain.c
index a07ede9d..91973126 100644
--- a/WWW/Library/Implementation/HTPlain.c
+++ b/WWW/Library/Implementation/HTPlain.c
@@ -21,8 +21,6 @@
#define BUFFER_SIZE 4096; /* Tradeoff */
-#include <HText.h>
-#include <HTStyle.h>
#include <HTMLDTD.h>
#include <HTCJK.h>
#include <UCMap.h>
diff --git a/WWW/Library/Implementation/HTUtils.h b/WWW/Library/Implementation/HTUtils.h
index 9f209044..70c2813d 100644
--- a/WWW/Library/Implementation/HTUtils.h
+++ b/WWW/Library/Implementation/HTUtils.h
@@ -5,9 +5,9 @@
*/
-#ifndef DEBUG
-#define DEBUG /* Noone ever turns this off as trace is too important */
-#endif /* Keep option for really small memory applications tho */
+#ifndef NO_LYNX_TRACE
+#define DEBUG /* Turns on trace; turn off for smaller binary */
+#endif
#ifndef HTUTILS_H
#define HTUTILS_H
diff --git a/WWW/Library/Implementation/SGML.c b/WWW/Library/Implementation/SGML.c
index 8dd191b3..41292c9b 100644
--- a/WWW/Library/Implementation/SGML.c
+++ b/WWW/Library/Implementation/SGML.c
@@ -312,7 +312,7 @@ PRIVATE void handle_attribute_value ARGS2(
}
#endif
} else {
- CTRACE(tfp, "SGML: Attribute value %s ignored\n", s);
+ CTRACE(tfp, "SGML: Attribute value %s ***ignored\n", s);
}
context->current_attribute_number = INVALID; /* can't have two assignments! */
}
@@ -690,13 +690,13 @@ PRIVATE void end_element ARGS2(
if (canclose_check != close_NO) {
CTRACE(tfp, "SGML: End </%s> \t<- %s end </%s>\n",
context->element_stack->tag->name,
- canclose_check == close_valid ? "supplied," : "forced by",
+ canclose_check == close_valid ? "supplied," : "***forced by",
old_tag->name);
do_close_stacked(context);
extra_action_taken = YES;
stackpos = is_on_stack(context, old_tag);
} else {
- CTRACE(tfp, "SGML: Still open %s \t<- invalid end </%s>\n",
+ CTRACE(tfp, "SGML: Still open %s \t<- ***invalid end </%s>\n",
context->element_stack->tag->name,
old_tag->name);
return;
@@ -712,7 +712,7 @@ PRIVATE void end_element ARGS2(
return;
}
if (stackpos > 1) {
- CTRACE(tfp, "SGML: Nesting <%s>...<%s> \t<- invalid end </%s>\n",
+ CTRACE(tfp, "SGML: Nesting <%s>...<%s> \t<- ***invalid end </%s>\n",
old_tag->name,
context->element_stack->tag->name,
old_tag->name);
@@ -737,7 +737,7 @@ PRIVATE void end_element ARGS2(
/*
** Ignore the end tag. - FM
*/
- CTRACE(tfp, "SGML: Ignoring end tag </%s> in SELECT block.\n",
+ CTRACE(tfp, "SGML: ***Ignoring end tag </%s> in SELECT block.\n",
old_tag->name);
return;
}
@@ -747,7 +747,7 @@ PRIVATE void end_element ARGS2(
*/
CTRACE(tfp, "SGML: End </%s>\n", old_tag->name);
if (old_tag->contents == SGML_EMPTY) {
- CTRACE(tfp, "SGML: Illegal end tag </%s> found.\n",
+ CTRACE(tfp, "SGML: ***Illegal end tag </%s> found.\n",
old_tag->name);
return;
}
@@ -762,10 +762,10 @@ PRIVATE void end_element ARGS2(
if (old_tag != t) { /* Mismatch: syntax error */
if (context->element_stack->next) { /* This is not the last level */
- CTRACE(tfp, "SGML: Found </%s> when expecting </%s>. </%s> assumed.\n",
- old_tag->name, t->name, t->name);
+ CTRACE(tfp, "SGML: Found </%s> when expecting </%s>. </%s> ***assumed.\n",
+ old_tag->name, t->name, t->name);
} else { /* last level */
- CTRACE(tfp, "SGML: Found </%s> when expecting </%s>. </%s> Ignored.\n",
+ CTRACE(tfp, "SGML: Found </%s> when expecting </%s>. </%s> ***Ignored.\n",
old_tag->name, t->name, old_tag->name);
return; /* Ignore */
}
@@ -815,14 +815,14 @@ PRIVATE void start_element ARGS1(
if (canclose_check != close_NO) {
CTRACE(tfp, "SGML: End </%s> \t<- %s start <%s>\n",
context->element_stack->tag->name,
- canclose_check == close_valid ? "supplied," : "forced by",
+ canclose_check == close_valid ? "supplied," : "***forced by",
new_tag->name);
do_close_stacked(context);
extra_action_taken = YES;
if (canclose_check == close_error)
direct_container = NO;
} else {
- CTRACE(tfp, "SGML: Still open %s \t<- invalid start <%s>\n",
+ CTRACE(tfp, "SGML: Still open %s \t<- ***invalid start <%s>\n",
context->element_stack->tag->name,
new_tag->name);
}
@@ -831,7 +831,7 @@ PRIVATE void start_element ARGS1(
(context->element_stack->tag->flags & Tgf_strict) &&
!(valid = element_valid_within(new_tag, context->element_stack->tag,
direct_container))) {
- CTRACE(tfp, "SGML: Still open %s \t<- ignoring start <%s>\n",
+ CTRACE(tfp, "SGML: Still open %s \t<- ***ignoring start <%s>\n",
context->element_stack->tag->name,
new_tag->name);
return;
@@ -859,7 +859,7 @@ PRIVATE void start_element ARGS1(
new_tag,
context->element_stack->tag,
direct_container))) {
- CTRACE(tfp, "SGML: Still open %s \t<- invalid start <%s>\n",
+ CTRACE(tfp, "SGML: Still open %s \t<- ***invalid start <%s>\n",
context->element_stack->tag->name,
new_tag->name);
}
@@ -905,14 +905,14 @@ PRIVATE void start_element ARGS1(
** It is another form-related start tag, so terminate
** the current SELECT block and fall through. - FM
*/
- CTRACE(tfp, "SGML: Faking SELECT end tag before <%s> start tag.\n",
+ CTRACE(tfp, "SGML: ***Faking SELECT end tag before <%s> start tag.\n",
new_tag->name);
end_element(context, SGMLFindTag(context->dtd, "SELECT"));
} else {
/*
** Ignore the start tag. - FM
*/
- CTRACE(tfp, "SGML: Ignoring start tag <%s> in SELECT block.\n",
+ CTRACE(tfp, "SGML: ***Ignoring start tag <%s> in SELECT block.\n",
new_tag->name);
return;
}
@@ -2744,7 +2744,7 @@ top1:
** Don't treat these end tags as invalid,
** nor act on them. - FM
*/
- CTRACE(tfp, "SGML: `</%s%c' found! Ignoring it.\n",
+ CTRACE(tfp, "SGML: `</%s%c' found! ***Ignoring it.\n",
string->data, c);
string->size = 0;
context->current_attribute_number = INVALID;
@@ -2782,14 +2782,14 @@ top1:
/*
** It is not at FORM end tag, so ignore it. - FM
*/
- CTRACE(tfp, "SGML: Ignoring end tag </%s> in SELECT block.\n",
+ CTRACE(tfp, "SGML: ***Ignoring end tag </%s> in SELECT block.\n",
string->data);
} else {
/*
** End the SELECT block and then
** handle the FORM end tag. - FM
*/
- CTRACE(tfp, "SGML: Faking SELECT end tag before </%s> end tag.\n",
+ CTRACE(tfp, "SGML: ***Faking SELECT end tag before </%s> end tag.\n",
string->data);
end_element(context,
SGMLFindTag(context->dtd, "SELECT"));
@@ -2805,7 +2805,7 @@ top1:
** Treat a P end tag like a P start tag (Ugh,
** what a hack! 8-). - FM
*/
- CTRACE(tfp, "SGML: `</%s%c' found! Treating as '<%s%c'.\n",
+ CTRACE(tfp, "SGML: `</%s%c' found! ***Treating as '<%s%c'.\n",
string->data, c, string->data, c);
{
int i;
diff --git a/WWW/Library/Implementation/UCMap.h b/WWW/Library/Implementation/UCMap.h
index 15df5f02..0ca58290 100644
--- a/WWW/Library/Implementation/UCMap.h
+++ b/WWW/Library/Implementation/UCMap.h
@@ -45,8 +45,9 @@ extern int UCLYhndl_HTFile_for_unspec;
extern int UCLYhndl_HTFile_for_unrec;
/* easy to type: */
-#define LATIN1 UCGetLYhndl_byMIME("iso-8859-1")
-#define US_ASCII UCGetLYhndl_byMIME("us-ascii")
+extern int LATIN1; /* UCGetLYhndl_byMIME("iso-8859-1") */
+extern int US_ASCII; /* UCGetLYhndl_byMIME("us-ascii") */
+extern int UTF8; /* UCGetLYhndl_byMIME("utf-8") */
/*
In general, Lynx translates letters from document charset to display charset.
diff --git a/WWW/Library/vms/libmake.com b/WWW/Library/vms/libmake.com
index 96223f00..d7d1ab49 100644
--- a/WWW/Library/vms/libmake.com
+++ b/WWW/Library/vms/libmake.com
@@ -101,13 +101,13 @@ $ if transport .eqs. "MULTINET" then -
extra = extra + ",_DECC_V4_SOURCE,__SOCKET_TYPEDEFS"
$ v1 = f$verify(1)
$!
-$ cc/decc/prefix=ansi /nomember 'cc_opts'-
+$ cc/decc/prefix=all /nomember 'cc_opts'-
/warning=(disable=implicitfunc)-
/DEFINE=(DEBUG,ACCESS_AUTH,'transport''extra',VC="""2.14""")-
/INCLUDE=([-.Implementation],[---.src],[---.src.chrtrans],[---]) -
[-.Implementation]HTString.c
$!
-$ cc := cc/decc/prefix=ansi /nomember 'cc_opts'-
+$ cc := cc/decc/prefix=all /nomember 'cc_opts'-
/warning=(disable=implicitfunc)-
/DEFINE=(DEBUG,ACCESS_AUTH,'transport''extra')-
/INCLUDE=([-.Implementation],[---.src],[---.src.chrtrans],[---])
diff --git a/aclocal.m4 b/aclocal.m4
index 3d7a1b3b..7097488e 100644
--- a/aclocal.m4
+++ b/aclocal.m4
@@ -6,6 +6,10 @@ dnl
dnl Created: 1997/1/28
dnl Updated: 1998/12/11
dnl
+dnl The autoconf used in Lynx development is GNU autoconf, patched
+dnl by Tom Dickey. See your local GNU archives, and this URL:
+dnl http://www.clark.net/pub/dickey/autoconf/autoconf.html
+dnl
dnl ---------------------------------------------------------------------------
dnl ---------------------------------------------------------------------------
dnl
@@ -82,9 +86,11 @@ __argz_count __argz_stringify __argz_next])
sed -e '/^#/d' $srcdir/intl/$msgformat-msg.sed > intl/po2msg.sed
fi
dnl po2tbl.sed is always needed.
- rm -f intl/po2tbl.sed
- sed -e '/^#.*[^\\]$/d' -e '/^#$/d' \
- $srcdir/intl/po2tbl.sed.in > intl/po2tbl.sed
+ if test -f $srcdir/intl/po2tbl.sed.in ; then
+ rm -f intl/po2tbl.sed
+ sed -e '/^#.*[^\\]$/d' -e '/^#$/d' \
+ $srcdir/intl/po2tbl.sed.in > intl/po2tbl.sed
+ fi
fi
dnl In the intl/makefile.in we have a special dependency which only
@@ -128,12 +134,14 @@ __argz_count __argz_stringify __argz_next])
else
posrcprefix="../"
fi
+ if test -f $srcdir/po/POTFILES.in ; then
if test "$USE_NLS" = "yes"; then
test -d po || mkdir po
rm -f po/POTFILES
sed -e "/^#/d" -e "/^\$/d" -e "s,.*, $posrcprefix& \\\\," -e "\$s/\(.*\) \\\\/\1/" \
< $srcdir/po/POTFILES.in > po/POTFILES
fi
+ fi
])dnl
dnl ---------------------------------------------------------------------------
dnl
@@ -832,7 +840,7 @@ AC_CACHE_VAL(cf_cv_ebcdic,[
Use compile-time rather than run-time tests for cross-compiler
tolerance. */
#if '0'!=240
-#error "Character set is not EBCDIC"
+make an error "Character set is not EBCDIC"
#endif ],
[ # TryCompile action if true
cf_cv_ebcdic=yes ],
@@ -1163,7 +1171,7 @@ dnl
dnl FIXME: the inner cases will probably need work on the header files.
AC_DEFUN([CF_INET_ADDR],[
AC_CACHE_CHECK(for inet_aton function,cf_cv_have_inet_aton,[
-AC_TRY_LINK([
+AC_TRY_LINK([#include <sys/types.h>
#include <sys/socket.h>
#include <netinet/in.h>
#include <arpa/inet.h>
@@ -1174,7 +1182,7 @@ if test "$cf_cv_have_inet_aton" = yes ; then
AC_DEFINE(HAVE_INET_ATON)
else
AC_CACHE_CHECK(for inet_addr function,cf_cv_have_inet_addr,[
- AC_TRY_LINK([
+ AC_TRY_LINK([#include <sys/types.h>
#include <sys/socket.h>
#include <netinet/in.h>
#include <arpa/inet.h>
@@ -1187,7 +1195,7 @@ else
for cf_inetlib in -lbind -lresolv
do
LIBS="$cf_save_LIBS $cf_inetlib"
- AC_TRY_LINK([
+ AC_TRY_LINK([#include <sys/types.h>
#include <sys/socket.h>
#include <netinet/in.h>
#include <arpa/inet.h>
diff --git a/config.hin b/config.hin
index ac6c2a7f..6b7ab520 100644
--- a/config.hin
+++ b/config.hin
@@ -17,16 +17,19 @@
#undef DECL_STRSTR
#undef DECL_SYS_ERRLIST
#undef DIRED_SUPPORT /* AC_ARG_WITH(dired) */
+#undef DISABLE_GOPHER /* CF_ARG_DISABLE(gopher) */
#undef DISP_PARTIAL /* CF_ARG_ENABLE(partial) */
#undef DONT_TRACK_INTERNAL_LINKS /* CF_ARG_DISABLE(internal-links) */
#undef EBCDIC /* CF_EBCDIC */
#undef ENABLE_NLS /* defined if NLS is requested */
#undef EXEC_LINKS /* CF_ARG_ENABLE(exec-links) */
#undef EXEC_SCRIPTS /* CF_ARG_ENABLE(exec-scripts) */
-#undef EXP_ALT_BINDINGS /* AC_ARG_ENABLE(alt-bindings) */
-#undef EXP_CHARTRANS_AUTOSWITCH /* AC_ARG_ENABLE(font-switch) */
-#undef EXP_KEYBOARD_LAYOUT /* AC_ARG_ENABLE(kbd-layout) */
-#undef EXP_PERSISTENT_COOKIES /* AC_ARG_ENABLE(persistent-cookies) */
+#undef EXP_ADDRLIST_PAGE /* CF_ARG_ENABLE(addrlist-page) */
+#undef EXP_ALT_BINDINGS /* CF_ARG_ENABLE(alt-bindings) */
+#undef EXP_CHARTRANS_AUTOSWITCH /* CF_ARG_ENABLE(font-switch) */
+#undef EXP_KEYBOARD_LAYOUT /* CF_ARG_ENABLE(kbd-layout) */
+#undef EXP_LIBJS /* CF_ARG_ENABLE(libjs) */
+#undef EXP_PERSISTENT_COOKIES /* CF_ARG_ENABLE(persistent-cookies) */
#undef FANCY_CURSES /* defined by CF_FANCY_CURSES */
#undef GCC_PRINTF /* CF_GCC_ATTRIBUTES */
#undef GCC_UNUSED /* CF_GCC_ATTRIBUTES */
@@ -118,6 +121,7 @@
#undef NO_CHANGE_EXECUTE_PERMS /* CF_ARG_DISABLE(dired-xpermit) */
#undef NO_CONFIG_INFO /* CF_ARG_DISABLE(config-info) */
#undef NO_EXTENDED_HTMLDTD /* CF_ARG_DISABLE(extended-dtd) */
+#undef NO_LYNX_TRACE /* CF_ARG_DISABLE(trace) */
#undef NO_OPTION_FORMS /* CF_ARG_DISABLE(forms-options) */
#undef NO_OPTION_MENU /* CF_ARG_DISABLE(option-menu) */
#undef NO_PARENT_DIR_REFERENCE /* configure --disable-parent-dir */
diff --git a/configure b/configure
index b87904a6..d1259a85 100755
--- a/configure
+++ b/configure
@@ -187,7 +187,8 @@ cat <<EOF
Development Options:
--disable-echo test: display "compiling" commands (default: on)
--enable-find-leaks logic for testing memory leaks (default: off)
- --enable-debug logic for traces/debugging (default: off)
+ --enable-debug logic for object code debugging (default: off)
+ --disable-trace disable logic for trace code (default: on)
--enable-warnings GCC compiler warnings (default: off)
Basic Configuration Options:
--enable-nls use Native Language Support
@@ -195,45 +196,52 @@ Basic Configuration Options:
--with-catgets use catgets functions if available
--with-nls-datadir=DIR NLS data, parent of locale (default: PREFIX/DATADIR)
--enable-included-msgs use included messages, for i18n support
- --disable-full-paths control whether full utility pathnames are used (default: on)
- --with-socks[=path] link with socks library if available
+ --enable-included-msgs use included messages, for i18n support
EOF
cat <<EOF
+ --disable-full-paths control whether full utility pathnames are used (default: on)
+ --with-socks[=path] link with socks library if available
--with-socks5[=path] link with socks5 library if available
--with-screen=XXX select screen type
(XXX is curses (default), ncurses or slang)
-Miscellaneous Options:
+Experimental Options:
+ --disable-config-info disable browsable configuration-info (default: on)
--disable-forms-options disable experimental forms-based options (default: on)
--disable-menu-options disable old-style option menu (default: on)
- --disable-config-info disable browsable configuration-info (default: on)
+ --enable-addrlist-page use experimental address-list page (default: off)
--enable-alt-bindings use experimental line-edit bindings (default: off)
- --enable-kbd-layout use experimental keyboard-layout support (default: off)
- --enable-persistent-cookies use experimental persistent-cookie support (default: off)
--enable-color-style use optional/experimental color style (default: off)
- --disable-partial use partial-display logic (default: on)
--enable-default-colors enable use of default-colors (ncurses/slang) (default: off)
EOF
cat <<EOF
+ --enable-kbd-layout use experimental keyboard-layout support (default: off)
+ --enable-libjs use experimental JavaScript support (Mozilla libjs) (default: off)
+ --enable-persistent-cookies use experimental persistent-cookie support (default: off)
+Miscellaneous Options:
--disable-extended-dtd disable extended HTML DTD logic (default: on)
+ --disable-partial use partial-display logic (default: on)
--enable-externs use external commands (default: off)
--enable-font-switch use Linux setfont for character-translation (default: off)
--enable-cgi-links support cgi links w/o a http daemon (default: off)
--enable-exec-links support cgi links w/o a http daemon (default: off)
--enable-exec-scripts support cgi links w/o a http daemon (default: off)
--enable-internal-links handle following links to same doc differently (default: off)
+EOF
+cat <<EOF
--enable-nsl-fork fork NSL requests, allowing them to be aborted (default: off)
--enable-syslog log URL requests via syslog (default: off)
--enable-underlines underline links rather than using boldface (default: off)
--enable-gzip-help install gzip'ed help files (default: off)
--with-zlib use zlib for decompression of some gzip files
-EOF
-cat <<EOF
+ --disable-gopher disable GOPHER logic (default: on)
Directory Editor Options:
--disable-dired enable optional directory-editor, DirEd (default: on)
--disable-dired-archive disable dearchiving commands (default: on)
--disable-dired-override disable private keymaps (default: on)
--disable-dired-permit disable chmod/attrib commands (default: on)
--disable-dired-xpermit disable chmod/attrib commands (default: on)
+EOF
+cat <<EOF
--disable-dired-tar disable "tar" command (default: on)
--disable-dired-uudecode disable "uudecode" command (default: on)
--disable-dired-zip disable "zip", "unzip" commands (default: on)
@@ -242,8 +250,6 @@ Directory Editor Options:
--disable-parent-dir-refs
disable "Up-to" links in directory listings (default: on)
EOF
-cat <<EOF
-EOF
exit 0 ;;
-host | --host | --hos | --ho)
@@ -612,7 +618,7 @@ else { echo "configure: error: can not run $ac_config_sub" 1>&2; exit 1; }
fi
echo $ac_n "checking host system type""... $ac_c" 1>&6
-echo "configure:616: checking host system type" >&5
+echo "configure:622: checking host system type" >&5
host_alias=$host
case "$host_alias" in
@@ -637,7 +643,7 @@ echo "$ac_t""$host" 1>&6
# Extract the first word of "gcc", so it can be a program name with args.
set dummy gcc; ac_word=$2
echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
-echo "configure:641: checking for $ac_word" >&5
+echo "configure:647: checking for $ac_word" >&5
if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
echo $ac_n "(cached) $ac_c" 1>&6
else
@@ -667,7 +673,7 @@ 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 $ac_n "checking for $ac_word""... $ac_c" 1>&6
-echo "configure:671: checking for $ac_word" >&5
+echo "configure:677: checking for $ac_word" >&5
if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
echo $ac_n "(cached) $ac_c" 1>&6
else
@@ -718,7 +724,7 @@ fi
# Extract the first word of "cl", so it can be a program name with args.
set dummy cl; ac_word=$2
echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
-echo "configure:722: checking for $ac_word" >&5
+echo "configure:728: checking for $ac_word" >&5
if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
echo $ac_n "(cached) $ac_c" 1>&6
else
@@ -750,7 +756,7 @@ fi
fi
echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works""... $ac_c" 1>&6
-echo "configure:754: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works" >&5
+echo "configure:760: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works" >&5
ac_ext=c
# CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
@@ -761,12 +767,12 @@ cross_compiling=$ac_cv_prog_cc_cross
cat > conftest.$ac_ext << EOF
-#line 765 "configure"
+#line 771 "configure"
#include "confdefs.h"
main(){return(0);}
EOF
-if { (eval echo configure:770: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
+if { (eval echo configure:776: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
ac_cv_prog_cc_works=yes
# If we can't run a trivial program, we are probably using a cross compiler.
if (./conftest; exit) 2>/dev/null; then
@@ -792,12 +798,12 @@ if test $ac_cv_prog_cc_works = no; then
{ echo "configure: error: installation or configuration problem: C compiler cannot create executables." 1>&2; exit 1; }
fi
echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler""... $ac_c" 1>&6
-echo "configure:796: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler" >&5
+echo "configure:802: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler" >&5
echo "$ac_t""$ac_cv_prog_cc_cross" 1>&6
cross_compiling=$ac_cv_prog_cc_cross
echo $ac_n "checking whether we are using GNU C""... $ac_c" 1>&6
-echo "configure:801: checking whether we are using GNU C" >&5
+echo "configure:807: checking whether we are using GNU C" >&5
if eval "test \"`echo '$''{'ac_cv_prog_gcc'+set}'`\" = set"; then
echo $ac_n "(cached) $ac_c" 1>&6
else
@@ -806,7 +812,7 @@ else
yes;
#endif
EOF
-if { ac_try='${CC-cc} -E conftest.c'; { (eval echo configure:810: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; } | egrep yes >/dev/null 2>&1; then
+if { ac_try='${CC-cc} -E conftest.c'; { (eval echo configure:816: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; } | egrep yes >/dev/null 2>&1; then
ac_cv_prog_gcc=yes
else
ac_cv_prog_gcc=no
@@ -825,7 +831,7 @@ ac_test_CFLAGS="${CFLAGS+set}"
ac_save_CFLAGS="$CFLAGS"
CFLAGS=
echo $ac_n "checking whether ${CC-cc} accepts -g""... $ac_c" 1>&6
-echo "configure:829: checking whether ${CC-cc} accepts -g" >&5
+echo "configure:835: checking whether ${CC-cc} accepts -g" >&5
if eval "test \"`echo '$''{'ac_cv_prog_cc_g'+set}'`\" = set"; then
echo $ac_n "(cached) $ac_c" 1>&6
else
@@ -857,7 +863,7 @@ else
fi
echo $ac_n "checking how to run the C preprocessor""... $ac_c" 1>&6
-echo "configure:861: checking how to run the C preprocessor" >&5
+echo "configure:867: checking how to run the C preprocessor" >&5
# On Suns, sometimes $CPP names a directory.
if test -n "$CPP" && test -d "$CPP"; then
CPP=
@@ -872,13 +878,13 @@ else
# On the NeXT, cc -E runs the code through the compiler's parser,
# not just through cpp.
cat > conftest.$ac_ext <<EOF
-#line 876 "configure"
+#line 882 "configure"
#include "confdefs.h"
#include <assert.h>
Syntax Error
EOF
ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
-{ (eval echo configure:882: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
+{ (eval echo configure:888: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
if test -z "$ac_err"; then
:
@@ -889,13 +895,13 @@ else
rm -rf conftest*
CPP="${CC-cc} -E -traditional-cpp"
cat > conftest.$ac_ext <<EOF
-#line 893 "configure"
+#line 899 "configure"
#include "confdefs.h"
#include <assert.h>
Syntax Error
EOF
ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
-{ (eval echo configure:899: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
+{ (eval echo configure:905: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
if test -z "$ac_err"; then
:
@@ -906,13 +912,13 @@ else
rm -rf conftest*
CPP="${CC-cc} -nologo -E"
cat > conftest.$ac_ext <<EOF
-#line 910 "configure"
+#line 916 "configure"
#include "confdefs.h"
#include <assert.h>
Syntax Error
EOF
ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
-{ (eval echo configure:916: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
+{ (eval echo configure:922: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
if test -z "$ac_err"; then
:
@@ -939,7 +945,7 @@ echo "$ac_t""$CPP" 1>&6
# Extract the first word of "ranlib", so it can be a program name with args.
set dummy ranlib; ac_word=$2
echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
-echo "configure:943: checking for $ac_word" >&5
+echo "configure:949: checking for $ac_word" >&5
if eval "test \"`echo '$''{'ac_cv_prog_RANLIB'+set}'`\" = set"; then
echo $ac_n "(cached) $ac_c" 1>&6
else
@@ -967,7 +973,7 @@ else
fi
echo $ac_n "checking whether ${MAKE-make} sets \${MAKE}""... $ac_c" 1>&6
-echo "configure:971: checking whether ${MAKE-make} sets \${MAKE}" >&5
+echo "configure:977: checking whether ${MAKE-make} sets \${MAKE}" >&5
set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y%./+-%__p_%'`
if eval "test \"`echo '$''{'ac_cv_prog_make_${ac_make}_set'+set}'`\" = set"; then
echo $ac_n "(cached) $ac_c" 1>&6
@@ -995,7 +1001,7 @@ fi
echo $ac_n "checking for style of include in makefiles""... $ac_c" 1>&6
-echo "configure:999: checking for style of include in makefiles" >&5
+echo "configure:1005: checking for style of include in makefiles" >&5
make_include_left=""
make_include_right=""
@@ -1057,7 +1063,7 @@ echo "$ac_t""${make_include_left}file${make_include_right}" 1>&6
# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
# ./install, which can be erroneously created by make from ./install.sh.
echo $ac_n "checking for a BSD compatible install""... $ac_c" 1>&6
-echo "configure:1061: checking for a BSD compatible install" >&5
+echo "configure:1067: checking for a BSD compatible install" >&5
if test -z "$INSTALL"; then
if eval "test \"`echo '$''{'ac_cv_path_install'+set}'`\" = set"; then
echo $ac_n "(cached) $ac_c" 1>&6
@@ -1114,7 +1120,7 @@ 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 $ac_n "checking for $ac_word""... $ac_c" 1>&6
-echo "configure:1118: checking for $ac_word" >&5
+echo "configure:1124: checking for $ac_word" >&5
if eval "test \"`echo '$''{'ac_cv_prog_LINT'+set}'`\" = set"; then
echo $ac_n "(cached) $ac_c" 1>&6
else
@@ -1145,9 +1151,9 @@ done
echo $ac_n "checking for AIX""... $ac_c" 1>&6
-echo "configure:1149: checking for AIX" >&5
+echo "configure:1155: checking for AIX" >&5
cat > conftest.$ac_ext <<EOF
-#line 1151 "configure"
+#line 1157 "configure"
#include "confdefs.h"
#ifdef _AIX
yes
@@ -1169,7 +1175,7 @@ rm -f conftest*
echo $ac_n "checking for POSIXized ISC""... $ac_c" 1>&6
-echo "configure:1173: checking for POSIXized ISC" >&5
+echo "configure:1179: checking for POSIXized ISC" >&5
if test -d /etc/conf/kconfig.d &&
grep _POSIX_VERSION /usr/include/sys/unistd.h >/dev/null 2>&1
then
@@ -1195,7 +1201,7 @@ fi
echo $ac_n "checking if you want to see long compiling messages""... $ac_c" 1>&6
-echo "configure:1199: checking if you want to see long compiling messages" >&5
+echo "configure:1205: checking if you want to see long compiling messages" >&5
# Check whether --enable-echo or --disable-echo was given.
if test "${enable_echo+set}" = set; then
@@ -1243,7 +1249,7 @@ fi
echo $ac_n "checking if you want to check memory-leaks""... $ac_c" 1>&6
-echo "configure:1247: checking if you want to check memory-leaks" >&5
+echo "configure:1253: checking if you want to check memory-leaks" >&5
# Check whether --enable-find-leaks or --disable-find-leaks was given.
if test "${enable_find_leaks+set}" = set; then
@@ -1267,7 +1273,7 @@ EOF
echo $ac_n "checking if you want to enable debug-code""... $ac_c" 1>&6
-echo "configure:1271: checking if you want to enable debug-code" >&5
+echo "configure:1277: checking if you want to enable debug-code" >&5
# Check whether --enable-debug or --disable-debug was given.
if test "${enable_debug+set}" = set; then
@@ -1308,11 +1314,34 @@ else
esac
fi
+echo $ac_n "checking if you want to enable lynx trace code *recommended* ""... $ac_c" 1>&6
+echo "configure:1319: checking if you want to enable lynx trace code *recommended* " >&5
+
+# Check whether --enable-trace or --disable-trace was given.
+if test "${enable_trace+set}" = set; then
+ enableval="$enable_trace"
+ test "$enableval" != no && enableval=yes
+ if test "$enableval" != "yes" ; then
+ with_trace=$enableval
+ else
+ with_trace=yes
+ fi
+else
+ enableval=yes
+ with_trace=yes
+
+fi
+
+echo "$ac_t""$with_trace" 1>&6
+test $with_trace = no && cat >> confdefs.h <<\EOF
+#define NO_LYNX_TRACE 1
+EOF
+
if test -n "$GCC"
then
echo $ac_n "checking if you want to turn on gcc warnings""... $ac_c" 1>&6
-echo "configure:1316: checking if you want to turn on gcc warnings" >&5
+echo "configure:1345: checking if you want to turn on gcc warnings" >&5
# Check whether --enable-warnings or --disable-warnings was given.
if test "${enable_warnings+set}" = set; then
@@ -1352,9 +1381,9 @@ EOF
if test -n "$GCC"
then
echo "checking for gcc __attribute__ directives" 1>&6
-echo "configure:1356: checking for gcc __attribute__ directives" >&5
+echo "configure:1385: checking for gcc __attribute__ directives" >&5
cat > conftest.$ac_ext <<EOF
-#line 1358 "configure"
+#line 1387 "configure"
#include "confdefs.h"
#include "conftest.h"
#include "conftest.i"
@@ -1392,7 +1421,7 @@ EOF
EOF
;;
esac
- if { (eval echo configure:1396: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
+ if { (eval echo configure:1425: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
test -n "$verbose" && echo "$ac_t""... $cf_attribute" 1>&6
cat conftest.h >>confdefs.h
# else
@@ -1409,11 +1438,11 @@ fi
if test -n "$GCC"
then
cat > conftest.$ac_ext <<EOF
-#line 1413 "configure"
+#line 1442 "configure"
int main(int argc, char *argv[]) { return argv[argc-1] == 0; }
EOF
echo "checking for gcc warning options" 1>&6
-echo "configure:1417: checking for gcc warning options" >&5
+echo "configure:1446: checking for gcc warning options" >&5
cf_save_CFLAGS="$CFLAGS"
EXTRA_CFLAGS="-W -Wall"
cf_warn_CONST=""
@@ -1431,7 +1460,7 @@ echo "configure:1417: checking for gcc warning options" >&5
Wstrict-prototypes $cf_warn_CONST
do
CFLAGS="$cf_save_CFLAGS $EXTRA_CFLAGS -$cf_opt"
- if { (eval echo configure:1435: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
+ if { (eval echo configure:1464: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
test -n "$verbose" && echo "$ac_t""... -$cf_opt" 1>&6
EXTRA_CFLAGS="$EXTRA_CFLAGS -$cf_opt"
test "$cf_opt" = Wcast-qual && EXTRA_CFLAGS="$EXTRA_CFLAGS -DXTSTRINGDEFINES"
@@ -1449,12 +1478,12 @@ fi
echo $ac_n "checking for ANSI C header files""... $ac_c" 1>&6
-echo "configure:1453: checking for ANSI C header files" >&5
+echo "configure:1482: checking for ANSI C header files" >&5
if eval "test \"`echo '$''{'ac_cv_header_stdc'+set}'`\" = set"; then
echo $ac_n "(cached) $ac_c" 1>&6
else
cat > conftest.$ac_ext <<EOF
-#line 1458 "configure"
+#line 1487 "configure"
#include "confdefs.h"
#include <stdlib.h>
#include <stdarg.h>
@@ -1462,7 +1491,7 @@ else
#include <float.h>
EOF
ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
-{ (eval echo configure:1466: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
+{ (eval echo configure:1495: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
if test -z "$ac_err"; then
rm -rf conftest*
@@ -1479,7 +1508,7 @@ rm -f conftest*
if test $ac_cv_header_stdc = yes; then
# SunOS 4.x string.h does not declare mem*, contrary to ANSI.
cat > conftest.$ac_ext <<EOF
-#line 1483 "configure"
+#line 1512 "configure"
#include "confdefs.h"
#include <string.h>
EOF
@@ -1497,7 +1526,7 @@ 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 <<EOF
-#line 1501 "configure"
+#line 1530 "configure"
#include "confdefs.h"
#include <stdlib.h>
EOF
@@ -1518,7 +1547,7 @@ if test "$cross_compiling" = yes; then
:
else
cat > conftest.$ac_ext <<EOF
-#line 1522 "configure"
+#line 1551 "configure"
#include "confdefs.h"
#include <ctype.h>
#define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
@@ -1529,7 +1558,7 @@ if (XOR (islower (i), ISLOWER (i)) || toupper (i) != TOUPPER (i)) exit(2);
exit (0); }
EOF
-if { (eval echo configure:1533: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
+if { (eval echo configure:1562: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
then
:
else
@@ -1553,12 +1582,12 @@ EOF
fi
echo $ac_n "checking for working const""... $ac_c" 1>&6
-echo "configure:1557: checking for working const" >&5
+echo "configure:1586: checking for working const" >&5
if eval "test \"`echo '$''{'ac_cv_c_const'+set}'`\" = set"; then
echo $ac_n "(cached) $ac_c" 1>&6
else
cat > conftest.$ac_ext <<EOF
-#line 1562 "configure"
+#line 1591 "configure"
#include "confdefs.h"
int main() {
@@ -1607,7 +1636,7 @@ ccp = (char const *const *) p;
; return 0; }
EOF
-if { (eval echo configure:1611: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
+if { (eval echo configure:1640: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
rm -rf conftest*
ac_cv_c_const=yes
else
@@ -1628,21 +1657,21 @@ EOF
fi
echo $ac_n "checking for inline""... $ac_c" 1>&6
-echo "configure:1632: checking for inline" >&5
+echo "configure:1661: checking for inline" >&5
if eval "test \"`echo '$''{'ac_cv_c_inline'+set}'`\" = set"; then
echo $ac_n "(cached) $ac_c" 1>&6
else
ac_cv_c_inline=no
for ac_kw in inline __inline__ __inline; do
cat > conftest.$ac_ext <<EOF
-#line 1639 "configure"
+#line 1668 "configure"
#include "confdefs.h"
int main() {
} $ac_kw foo() {
; return 0; }
EOF
-if { (eval echo configure:1646: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
+if { (eval echo configure:1675: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
rm -rf conftest*
ac_cv_c_inline=$ac_kw; break
else
@@ -1668,12 +1697,12 @@ EOF
esac
echo $ac_n "checking for off_t""... $ac_c" 1>&6
-echo "configure:1672: checking for off_t" >&5
+echo "configure:1701: checking for off_t" >&5
if eval "test \"`echo '$''{'ac_cv_type_off_t'+set}'`\" = set"; then
echo $ac_n "(cached) $ac_c" 1>&6
else
cat > conftest.$ac_ext <<EOF
-#line 1677 "configure"
+#line 1706 "configure"
#include "confdefs.h"
#include <sys/types.h>
#if STDC_HEADERS
@@ -1701,12 +1730,12 @@ EOF
fi
echo $ac_n "checking for size_t""... $ac_c" 1>&6
-echo "configure:1705: checking for size_t" >&5
+echo "configure:1734: checking for size_t" >&5
if eval "test \"`echo '$''{'ac_cv_type_size_t'+set}'`\" = set"; then
echo $ac_n "(cached) $ac_c" 1>&6
else
cat > conftest.$ac_ext <<EOF
-#line 1710 "configure"
+#line 1739 "configure"
#include "confdefs.h"
#include <sys/types.h>
#if STDC_HEADERS
@@ -1736,19 +1765,19 @@ fi
# The Ultrix 4.2 mips builtin alloca declared by alloca.h only works
# for constant arguments. Useless!
echo $ac_n "checking for working alloca.h""... $ac_c" 1>&6
-echo "configure:1740: checking for working alloca.h" >&5
+echo "configure:1769: checking for working alloca.h" >&5
if eval "test \"`echo '$''{'ac_cv_header_alloca_h'+set}'`\" = set"; then
echo $ac_n "(cached) $ac_c" 1>&6
else
cat > conftest.$ac_ext <<EOF
-#line 1745 "configure"
+#line 1774 "configure"
#include "confdefs.h"
#include <alloca.h>
int main() {
char *p = alloca(2 * sizeof(int));
; return 0; }
EOF
-if { (eval echo configure:1752: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
+if { (eval echo configure:1781: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
rm -rf conftest*
ac_cv_header_alloca_h=yes
else
@@ -1769,12 +1798,12 @@ EOF
fi
echo $ac_n "checking for alloca""... $ac_c" 1>&6
-echo "configure:1773: checking for alloca" >&5
+echo "configure:1802: checking for alloca" >&5
if eval "test \"`echo '$''{'ac_cv_func_alloca_works'+set}'`\" = set"; then
echo $ac_n "(cached) $ac_c" 1>&6
else
cat > conftest.$ac_ext <<EOF
-#line 1778 "configure"
+#line 1807 "configure"
#include "confdefs.h"
#ifdef __GNUC__
@@ -1802,7 +1831,7 @@ int main() {
char *p = (char *) alloca(1);
; return 0; }
EOF
-if { (eval echo configure:1806: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
+if { (eval echo configure:1835: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
rm -rf conftest*
ac_cv_func_alloca_works=yes
else
@@ -1834,12 +1863,12 @@ EOF
echo $ac_n "checking whether alloca needs Cray hooks""... $ac_c" 1>&6
-echo "configure:1838: checking whether alloca needs Cray hooks" >&5
+echo "configure:1867: checking whether alloca needs Cray hooks" >&5
if eval "test \"`echo '$''{'ac_cv_os_cray'+set}'`\" = set"; then
echo $ac_n "(cached) $ac_c" 1>&6
else
cat > conftest.$ac_ext <<EOF
-#line 1843 "configure"
+#line 1872 "configure"
#include "confdefs.h"
#if defined(CRAY) && ! defined(CRAY2)
webecray
@@ -1864,12 +1893,12 @@ echo "$ac_t""$ac_cv_os_cray" 1>&6
if test $ac_cv_os_cray = yes; then
for ac_func in _getb67 GETB67 getb67; do
echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
-echo "configure:1868: checking for $ac_func" >&5
+echo "configure:1897: checking for $ac_func" >&5
if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
echo $ac_n "(cached) $ac_c" 1>&6
else
cat > conftest.$ac_ext <<EOF
-#line 1873 "configure"
+#line 1902 "configure"
#include "confdefs.h"
/* System header to define __stub macros and hopefully few prototypes,
which can conflict with char $ac_func(); below. */
@@ -1892,7 +1921,7 @@ $ac_func();
; return 0; }
EOF
-if { (eval echo configure:1896: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
+if { (eval echo configure:1925: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
rm -rf conftest*
eval "ac_cv_func_$ac_func=yes"
else
@@ -1919,7 +1948,7 @@ done
fi
echo $ac_n "checking stack direction for C alloca""... $ac_c" 1>&6
-echo "configure:1923: checking stack direction for C alloca" >&5
+echo "configure:1952: checking stack direction for C alloca" >&5
if eval "test \"`echo '$''{'ac_cv_c_stack_direction'+set}'`\" = set"; then
echo $ac_n "(cached) $ac_c" 1>&6
else
@@ -1927,7 +1956,7 @@ else
ac_cv_c_stack_direction=0
else
cat > conftest.$ac_ext <<EOF
-#line 1931 "configure"
+#line 1960 "configure"
#include "confdefs.h"
find_stack_direction ()
{
@@ -1946,7 +1975,7 @@ main ()
exit (find_stack_direction() < 0);
}
EOF
-if { (eval echo configure:1950: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
+if { (eval echo configure:1979: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
then
ac_cv_c_stack_direction=1
else
@@ -1971,17 +2000,17 @@ for ac_hdr in unistd.h
do
ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
-echo "configure:1975: checking for $ac_hdr" >&5
+echo "configure:2004: checking for $ac_hdr" >&5
if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
echo $ac_n "(cached) $ac_c" 1>&6
else
cat > conftest.$ac_ext <<EOF
-#line 1980 "configure"
+#line 2009 "configure"
#include "confdefs.h"
#include <$ac_hdr>
EOF
ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
-{ (eval echo configure:1985: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
+{ (eval echo configure:2014: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
if test -z "$ac_err"; then
rm -rf conftest*
@@ -2010,12 +2039,12 @@ done
for ac_func in getpagesize
do
echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
-echo "configure:2014: checking for $ac_func" >&5
+echo "configure:2043: checking for $ac_func" >&5
if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
echo $ac_n "(cached) $ac_c" 1>&6
else
cat > conftest.$ac_ext <<EOF
-#line 2019 "configure"
+#line 2048 "configure"
#include "confdefs.h"
/* System header to define __stub macros and hopefully few prototypes,
which can conflict with char $ac_func(); below. */
@@ -2038,7 +2067,7 @@ $ac_func();
; return 0; }
EOF
-if { (eval echo configure:2042: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
+if { (eval echo configure:2071: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
rm -rf conftest*
eval "ac_cv_func_$ac_func=yes"
else
@@ -2063,7 +2092,7 @@ fi
done
echo $ac_n "checking for working mmap""... $ac_c" 1>&6
-echo "configure:2067: checking for working mmap" >&5
+echo "configure:2096: checking for working mmap" >&5
if eval "test \"`echo '$''{'ac_cv_func_mmap_fixed_mapped'+set}'`\" = set"; then
echo $ac_n "(cached) $ac_c" 1>&6
else
@@ -2071,7 +2100,7 @@ else
ac_cv_func_mmap_fixed_mapped=no
else
cat > conftest.$ac_ext <<EOF
-#line 2075 "configure"
+#line 2104 "configure"
#include "confdefs.h"
/* Thanks to Mike Haertel and Jim Avera for this test.
@@ -2211,7 +2240,7 @@ main()
}
EOF
-if { (eval echo configure:2215: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
+if { (eval echo configure:2244: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
then
ac_cv_func_mmap_fixed_mapped=yes
else
@@ -2239,17 +2268,17 @@ unistd.h values.h sys/param.h
do
ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
-echo "configure:2243: checking for $ac_hdr" >&5
+echo "configure:2272: checking for $ac_hdr" >&5
if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
echo $ac_n "(cached) $ac_c" 1>&6
else
cat > conftest.$ac_ext <<EOF
-#line 2248 "configure"
+#line 2277 "configure"
#include "confdefs.h"
#include <$ac_hdr>
EOF
ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
-{ (eval echo configure:2253: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
+{ (eval echo configure:2282: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
if test -z "$ac_err"; then
rm -rf conftest*
@@ -2279,12 +2308,12 @@ done
__argz_count __argz_stringify __argz_next
do
echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
-echo "configure:2283: checking for $ac_func" >&5
+echo "configure:2312: checking for $ac_func" >&5
if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
echo $ac_n "(cached) $ac_c" 1>&6
else
cat > conftest.$ac_ext <<EOF
-#line 2288 "configure"
+#line 2317 "configure"
#include "confdefs.h"
/* System header to define __stub macros and hopefully few prototypes,
which can conflict with char $ac_func(); below. */
@@ -2307,7 +2336,7 @@ $ac_func();
; return 0; }
EOF
-if { (eval echo configure:2311: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
+if { (eval echo configure:2340: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
rm -rf conftest*
eval "ac_cv_func_$ac_func=yes"
else
@@ -2336,12 +2365,12 @@ done
for ac_func in stpcpy
do
echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
-echo "configure:2340: checking for $ac_func" >&5
+echo "configure:2369: checking for $ac_func" >&5
if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
echo $ac_n "(cached) $ac_c" 1>&6
else
cat > conftest.$ac_ext <<EOF
-#line 2345 "configure"
+#line 2374 "configure"
#include "confdefs.h"
/* System header to define __stub macros and hopefully few prototypes,
which can conflict with char $ac_func(); below. */
@@ -2364,7 +2393,7 @@ $ac_func();
; return 0; }
EOF
-if { (eval echo configure:2368: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
+if { (eval echo configure:2397: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
rm -rf conftest*
eval "ac_cv_func_$ac_func=yes"
else
@@ -2398,19 +2427,19 @@ EOF
if test $ac_cv_header_locale_h = yes; then
echo $ac_n "checking for LC_MESSAGES""... $ac_c" 1>&6
-echo "configure:2402: checking for LC_MESSAGES" >&5
+echo "configure:2431: checking for LC_MESSAGES" >&5
if eval "test \"`echo '$''{'am_cv_val_LC_MESSAGES'+set}'`\" = set"; then
echo $ac_n "(cached) $ac_c" 1>&6
else
cat > conftest.$ac_ext <<EOF
-#line 2407 "configure"
+#line 2436 "configure"
#include "confdefs.h"
#include <locale.h>
int main() {
return LC_MESSAGES
; return 0; }
EOF
-if { (eval echo configure:2414: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
+if { (eval echo configure:2443: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
rm -rf conftest*
am_cv_val_LC_MESSAGES=yes
else
@@ -2431,7 +2460,7 @@ EOF
fi
fi
echo $ac_n "checking whether NLS is requested""... $ac_c" 1>&6
-echo "configure:2435: checking whether NLS is requested" >&5
+echo "configure:2464: checking whether NLS is requested" >&5
# Check whether --enable-nls or --disable-nls was given.
if test "${enable_nls+set}" = set; then
@@ -2452,7 +2481,7 @@ fi
EOF
echo $ac_n "checking whether included gettext is requested""... $ac_c" 1>&6
-echo "configure:2456: checking whether included gettext is requested" >&5
+echo "configure:2485: checking whether included gettext is requested" >&5
# Check whether --with-included-gettext or --without-included-gettext was given.
if test "${with_included_gettext+set}" = set; then
@@ -2472,17 +2501,17 @@ fi
ac_safe=`echo "libintl.h" | sed 'y%./+-%__p_%'`
echo $ac_n "checking for libintl.h""... $ac_c" 1>&6
-echo "configure:2476: checking for libintl.h" >&5
+echo "configure:2505: checking for libintl.h" >&5
if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
echo $ac_n "(cached) $ac_c" 1>&6
else
cat > conftest.$ac_ext <<EOF
-#line 2481 "configure"
+#line 2510 "configure"
#include "confdefs.h"
#include <libintl.h>
EOF
ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
-{ (eval echo configure:2486: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
+{ (eval echo configure:2515: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
if test -z "$ac_err"; then
rm -rf conftest*
@@ -2499,19 +2528,19 @@ fi
if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
echo "$ac_t""yes" 1>&6
echo $ac_n "checking for gettext in libc""... $ac_c" 1>&6
-echo "configure:2503: checking for gettext in libc" >&5
+echo "configure:2532: checking for gettext in libc" >&5
if eval "test \"`echo '$''{'gt_cv_func_gettext_libc'+set}'`\" = set"; then
echo $ac_n "(cached) $ac_c" 1>&6
else
cat > conftest.$ac_ext <<EOF
-#line 2508 "configure"
+#line 2537 "configure"
#include "confdefs.h"
#include <libintl.h>
int main() {
return (int) gettext ("")
; return 0; }
EOF
-if { (eval echo configure:2515: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
+if { (eval echo configure:2544: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
rm -rf conftest*
gt_cv_func_gettext_libc=yes
else
@@ -2527,7 +2556,7 @@ echo "$ac_t""$gt_cv_func_gettext_libc" 1>&6
if test "$gt_cv_func_gettext_libc" != "yes"; then
echo $ac_n "checking for bindtextdomain in -lintl""... $ac_c" 1>&6
-echo "configure:2531: checking for bindtextdomain in -lintl" >&5
+echo "configure:2560: checking for bindtextdomain in -lintl" >&5
ac_lib_var=`echo intl'_'bindtextdomain | sed 'y%./+-%__p_%'`
if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
echo $ac_n "(cached) $ac_c" 1>&6
@@ -2535,7 +2564,7 @@ else
ac_save_LIBS="$LIBS"
LIBS="-lintl $LIBS"
cat > conftest.$ac_ext <<EOF
-#line 2539 "configure"
+#line 2568 "configure"
#include "confdefs.h"
/* Override any gcc2 internal prototype to avoid an error. */
/* We use char because int might match the return type of a gcc2
@@ -2546,7 +2575,7 @@ int main() {
bindtextdomain()
; return 0; }
EOF
-if { (eval echo configure:2550: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
+if { (eval echo configure:2579: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
rm -rf conftest*
eval "ac_cv_lib_$ac_lib_var=yes"
else
@@ -2562,19 +2591,19 @@ fi
if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
echo "$ac_t""yes" 1>&6
echo $ac_n "checking for gettext in libintl""... $ac_c" 1>&6
-echo "configure:2566: checking for gettext in libintl" >&5
+echo "configure:2595: checking for gettext in libintl" >&5
if eval "test \"`echo '$''{'gt_cv_func_gettext_libintl'+set}'`\" = set"; then
echo $ac_n "(cached) $ac_c" 1>&6
else
cat > conftest.$ac_ext <<EOF
-#line 2571 "configure"
+#line 2600 "configure"
#include "confdefs.h"
int main() {
return (int) gettext ("")
; return 0; }
EOF
-if { (eval echo configure:2578: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
+if { (eval echo configure:2607: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
rm -rf conftest*
gt_cv_func_gettext_libintl=yes
else
@@ -2602,7 +2631,7 @@ EOF
# Extract the first word of "msgfmt", so it can be a program name with args.
set dummy msgfmt; ac_word=$2
echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
-echo "configure:2606: checking for $ac_word" >&5
+echo "configure:2635: checking for $ac_word" >&5
if eval "test \"`echo '$''{'ac_cv_path_MSGFMT'+set}'`\" = set"; then
echo $ac_n "(cached) $ac_c" 1>&6
else
@@ -2636,12 +2665,12 @@ fi
for ac_func in dcgettext
do
echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
-echo "configure:2640: checking for $ac_func" >&5
+echo "configure:2669: checking for $ac_func" >&5
if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
echo $ac_n "(cached) $ac_c" 1>&6
else
cat > conftest.$ac_ext <<EOF
-#line 2645 "configure"
+#line 2674 "configure"
#include "confdefs.h"
/* System header to define __stub macros and hopefully few prototypes,
which can conflict with char $ac_func(); below. */
@@ -2664,7 +2693,7 @@ $ac_func();
; return 0; }
EOF
-if { (eval echo configure:2668: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
+if { (eval echo configure:2697: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
rm -rf conftest*
eval "ac_cv_func_$ac_func=yes"
else
@@ -2691,7 +2720,7 @@ done
# Extract the first word of "gmsgfmt", so it can be a program name with args.
set dummy gmsgfmt; ac_word=$2
echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
-echo "configure:2695: checking for $ac_word" >&5
+echo "configure:2724: checking for $ac_word" >&5
if eval "test \"`echo '$''{'ac_cv_path_GMSGFMT'+set}'`\" = set"; then
echo $ac_n "(cached) $ac_c" 1>&6
else
@@ -2727,7 +2756,7 @@ fi
# Extract the first word of "xgettext", so it can be a program name with args.
set dummy xgettext; ac_word=$2
echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
-echo "configure:2731: checking for $ac_word" >&5
+echo "configure:2760: checking for $ac_word" >&5
if eval "test \"`echo '$''{'ac_cv_path_XGETTEXT'+set}'`\" = set"; then
echo $ac_n "(cached) $ac_c" 1>&6
else
@@ -2759,7 +2788,7 @@ else
fi
cat > conftest.$ac_ext <<EOF
-#line 2763 "configure"
+#line 2792 "configure"
#include "confdefs.h"
int main() {
@@ -2767,7 +2796,7 @@ extern int _nl_msg_cat_cntr;
return _nl_msg_cat_cntr
; return 0; }
EOF
-if { (eval echo configure:2771: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
+if { (eval echo configure:2800: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
rm -rf conftest*
CATOBJEXT=.gmo
DATADIRNAME=share
@@ -2790,7 +2819,7 @@ fi
if test "$CATOBJEXT" = "NONE"; then
echo $ac_n "checking whether catgets can be used""... $ac_c" 1>&6
-echo "configure:2794: checking whether catgets can be used" >&5
+echo "configure:2823: checking whether catgets can be used" >&5
# Check whether --with-catgets or --without-catgets was given.
if test "${with_catgets+set}" = set; then
@@ -2804,7 +2833,7 @@ fi
if test "$nls_cv_use_catgets" = "yes"; then
echo $ac_n "checking for main in -li""... $ac_c" 1>&6
-echo "configure:2808: checking for main in -li" >&5
+echo "configure:2837: checking for main in -li" >&5
ac_lib_var=`echo i'_'main | sed 'y%./+-%__p_%'`
if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
echo $ac_n "(cached) $ac_c" 1>&6
@@ -2812,14 +2841,14 @@ else
ac_save_LIBS="$LIBS"
LIBS="-li $LIBS"
cat > conftest.$ac_ext <<EOF
-#line 2816 "configure"
+#line 2845 "configure"
#include "confdefs.h"
int main() {
main()
; return 0; }
EOF
-if { (eval echo configure:2823: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
+if { (eval echo configure:2852: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
rm -rf conftest*
eval "ac_cv_lib_$ac_lib_var=yes"
else
@@ -2847,12 +2876,12 @@ else
fi
echo $ac_n "checking for catgets""... $ac_c" 1>&6
-echo "configure:2851: checking for catgets" >&5
+echo "configure:2880: checking for catgets" >&5
if eval "test \"`echo '$''{'ac_cv_func_catgets'+set}'`\" = set"; then
echo $ac_n "(cached) $ac_c" 1>&6
else
cat > conftest.$ac_ext <<EOF
-#line 2856 "configure"
+#line 2885 "configure"
#include "confdefs.h"
/* System header to define __stub macros and hopefully few prototypes,
which can conflict with char catgets(); below. */
@@ -2875,7 +2904,7 @@ catgets();
; return 0; }
EOF
-if { (eval echo configure:2879: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
+if { (eval echo configure:2908: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
rm -rf conftest*
eval "ac_cv_func_catgets=yes"
else
@@ -2897,7 +2926,7 @@ EOF
# Extract the first word of "gencat", so it can be a program name with args.
set dummy gencat; ac_word=$2
echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
-echo "configure:2901: checking for $ac_word" >&5
+echo "configure:2930: checking for $ac_word" >&5
if eval "test \"`echo '$''{'ac_cv_path_GENCAT'+set}'`\" = set"; then
echo $ac_n "(cached) $ac_c" 1>&6
else
@@ -2933,7 +2962,7 @@ fi
# Extract the first word of "gmsgfmt", so it can be a program name with args.
set dummy gmsgfmt; ac_word=$2
echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
-echo "configure:2937: checking for $ac_word" >&5
+echo "configure:2966: checking for $ac_word" >&5
if eval "test \"`echo '$''{'ac_cv_path_GMSGFMT'+set}'`\" = set"; then
echo $ac_n "(cached) $ac_c" 1>&6
else
@@ -2970,7 +2999,7 @@ fi
# Extract the first word of "msgfmt", so it can be a program name with args.
set dummy msgfmt; ac_word=$2
echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
-echo "configure:2974: checking for $ac_word" >&5
+echo "configure:3003: checking for $ac_word" >&5
if eval "test \"`echo '$''{'ac_cv_path_GMSGFMT'+set}'`\" = set"; then
echo $ac_n "(cached) $ac_c" 1>&6
else
@@ -3005,7 +3034,7 @@ fi
# Extract the first word of "xgettext", so it can be a program name with args.
set dummy xgettext; ac_word=$2
echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
-echo "configure:3009: checking for $ac_word" >&5
+echo "configure:3038: checking for $ac_word" >&5
if eval "test \"`echo '$''{'ac_cv_path_XGETTEXT'+set}'`\" = set"; then
echo $ac_n "(cached) $ac_c" 1>&6
else
@@ -3063,7 +3092,7 @@ fi
# Extract the first word of "msgfmt", so it can be a program name with args.
set dummy msgfmt; ac_word=$2
echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
-echo "configure:3067: checking for $ac_word" >&5
+echo "configure:3096: checking for $ac_word" >&5
if eval "test \"`echo '$''{'ac_cv_path_MSGFMT'+set}'`\" = set"; then
echo $ac_n "(cached) $ac_c" 1>&6
else
@@ -3097,7 +3126,7 @@ fi
# Extract the first word of "gmsgfmt", so it can be a program name with args.
set dummy gmsgfmt; ac_word=$2
echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
-echo "configure:3101: checking for $ac_word" >&5
+echo "configure:3130: checking for $ac_word" >&5
if eval "test \"`echo '$''{'ac_cv_path_GMSGFMT'+set}'`\" = set"; then
echo $ac_n "(cached) $ac_c" 1>&6
else
@@ -3133,7 +3162,7 @@ fi
# Extract the first word of "xgettext", so it can be a program name with args.
set dummy xgettext; ac_word=$2
echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
-echo "configure:3137: checking for $ac_word" >&5
+echo "configure:3166: checking for $ac_word" >&5
if eval "test \"`echo '$''{'ac_cv_path_XGETTEXT'+set}'`\" = set"; then
echo $ac_n "(cached) $ac_c" 1>&6
else
@@ -3223,7 +3252,7 @@ fi
LINGUAS=
else
echo $ac_n "checking for catalogs to be installed""... $ac_c" 1>&6
-echo "configure:3227: checking for catalogs to be installed" >&5
+echo "configure:3256: checking for catalogs to be installed" >&5
NEW_LINGUAS=
for lang in ${LINGUAS=$ALL_LINGUAS}; do
case "$ALL_LINGUAS" in
@@ -3252,17 +3281,17 @@ echo "configure:3227: checking for catalogs to be installed" >&5
if test "$CATOBJEXT" = ".cat"; then
ac_safe=`echo "linux/version.h" | sed 'y%./+-%__p_%'`
echo $ac_n "checking for linux/version.h""... $ac_c" 1>&6
-echo "configure:3256: checking for linux/version.h" >&5
+echo "configure:3285: checking for linux/version.h" >&5
if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
echo $ac_n "(cached) $ac_c" 1>&6
else
cat > conftest.$ac_ext <<EOF
-#line 3261 "configure"
+#line 3290 "configure"
#include "confdefs.h"
#include <linux/version.h>
EOF
ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
-{ (eval echo configure:3266: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
+{ (eval echo configure:3295: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
if test -z "$ac_err"; then
rm -rf conftest*
@@ -3287,9 +3316,11 @@ fi
sed -e '/^#/d' $srcdir/intl/$msgformat-msg.sed > intl/po2msg.sed
fi
- rm -f intl/po2tbl.sed
- sed -e '/^#.*[^\\]$/d' -e '/^#$/d' \
- $srcdir/intl/po2tbl.sed.in > intl/po2tbl.sed
+ if test -f $srcdir/intl/po2tbl.sed.in ; then
+ rm -f intl/po2tbl.sed
+ sed -e '/^#.*[^\\]$/d' -e '/^#$/d' \
+ $srcdir/intl/po2tbl.sed.in > intl/po2tbl.sed
+ fi
fi
if test "$PACKAGE" = "gettext"; then
@@ -3323,12 +3354,14 @@ fi
else
posrcprefix="../"
fi
+ if test -f $srcdir/po/POTFILES.in ; then
if test "$USE_NLS" = "yes"; then
test -d po || mkdir po
rm -f po/POTFILES
sed -e "/^#/d" -e "/^\$/d" -e "s,.*, $posrcprefix& \\\\," -e "\$s/\(.*\) \\\\/\1/" \
< $srcdir/po/POTFILES.in > po/POTFILES
fi
+ fi
@@ -3366,23 +3399,56 @@ INTLDIR_MAKE=
MSG_DIR_MAKE=
SUB_MAKEFILE=
if test "$USE_INCLUDED_LIBINTL" = yes ; then
- SUB_MAKEFILE="intl/makefile po/makefile.in:po/makefile.inn"
+ if test "$nls_cv_force_use_gnu_gettext" = yes ; then
+ echo "configure: warning: Using included gettext anyway" 1>&2
+ SUB_MAKEFILE="intl/makefile"
+ else
+ INTLDIR_MAKE="#"
+ fi
+
+use_our_messages=no
+if test -d $srcdir/po ; then
+echo $ac_n "checking if we should use included message-library""... $ac_c" 1>&6
+echo "configure:3413: checking if we should use included message-library" >&5
+
+# Check whether --enable-included-msgs or --disable-included-msgs was given.
+if test "${enable_included_msgs+set}" = set; then
+ enableval="$enable_included_msgs"
+ use_our_messages=$enableval
+else
+ use_our_messages=yes
+fi
+
+fi
+echo "$ac_t""$use_our_messages" 1>&6
+test $use_our_messages = yes && USE_OUR_MESSAGES=
+
+
+ if test $use_our_messages = no ; then
+ MSG_DIR_MAKE="#"
+ SUB_MAKEFILE=
+ fi
+ if test "$use_our_messages" = yes ; then
+ SUB_MAKEFILE="$SUB_MAKEFILE po/makefile.in:po/makefile.inn"
+ else
+ MSG_DIR_MAKE="#"
+ fi
elif test "$USE_NLS" = yes ; then
for ac_hdr in libintl.h
do
ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
-echo "configure:3376: checking for $ac_hdr" >&5
+echo "configure:3442: checking for $ac_hdr" >&5
if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
echo $ac_n "(cached) $ac_c" 1>&6
else
cat > conftest.$ac_ext <<EOF
-#line 3381 "configure"
+#line 3447 "configure"
#include "confdefs.h"
#include <$ac_hdr>
EOF
ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
-{ (eval echo configure:3386: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
+{ (eval echo configure:3452: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
if test -z "$ac_err"; then
rm -rf conftest*
@@ -3420,7 +3486,7 @@ if test -z "$MSG_DIR_MAKE" ; then
use_our_messages=no
if test -d $srcdir/po ; then
echo $ac_n "checking if we should use included message-library""... $ac_c" 1>&6
-echo "configure:3424: checking if we should use included message-library" >&5
+echo "configure:3490: checking if we should use included message-library" >&5
# Check whether --enable-included-msgs or --disable-included-msgs was given.
if test "${enable_included_msgs+set}" = set; then
@@ -3465,7 +3531,7 @@ EOF
fi
echo $ac_n "checking if you want full utility pathnames""... $ac_c" 1>&6
-echo "configure:3469: checking if you want full utility pathnames" >&5
+echo "configure:3535: checking if you want full utility pathnames" >&5
# Check whether --enable-full-paths or --disable-full-paths was given.
if test "${enable_full_paths+set}" = set; then
@@ -3486,7 +3552,7 @@ echo "$ac_t""$with_full_paths" 1>&6
echo $ac_n "checking for system mailer""... $ac_c" 1>&6
-echo "configure:3490: checking for system mailer" >&5
+echo "configure:3556: checking for system mailer" >&5
if eval "test \"`echo '$''{'cf_cv_SYSTEM_MAIL'+set}'`\" = set"; then
echo $ac_n "(cached) $ac_c" 1>&6
else
@@ -3513,7 +3579,7 @@ EOF
echo $ac_n "checking system mail flags""... $ac_c" 1>&6
-echo "configure:3517: checking system mail flags" >&5
+echo "configure:3583: checking system mail flags" >&5
if eval "test \"`echo '$''{'cf_cv_system_mail_flags'+set}'`\" = set"; then
echo $ac_n "(cached) $ac_c" 1>&6
else
@@ -3541,7 +3607,7 @@ if test "$with_full_paths" = yes ; then
# Extract the first word of "chmod", so it can be a program name with args.
set dummy chmod; ac_word=$2
echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
-echo "configure:3545: checking for $ac_word" >&5
+echo "configure:3611: checking for $ac_word" >&5
if eval "test \"`echo '$''{'ac_cv_path_CHMOD'+set}'`\" = set"; then
echo $ac_n "(cached) $ac_c" 1>&6
else
@@ -3576,7 +3642,7 @@ fi
else
echo $ac_n "checking for chmod""... $ac_c" 1>&6
-echo "configure:3580: checking for chmod" >&5
+echo "configure:3646: checking for chmod" >&5
echo "$ac_t""$CHMOD" 1>&6
fi
@@ -3618,7 +3684,7 @@ if test "$with_full_paths" = yes ; then
# Extract the first word of "compress", so it can be a program name with args.
set dummy compress; ac_word=$2
echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
-echo "configure:3622: checking for $ac_word" >&5
+echo "configure:3688: checking for $ac_word" >&5
if eval "test \"`echo '$''{'ac_cv_path_COMPRESS'+set}'`\" = set"; then
echo $ac_n "(cached) $ac_c" 1>&6
else
@@ -3653,7 +3719,7 @@ fi
else
echo $ac_n "checking for compress""... $ac_c" 1>&6
-echo "configure:3657: checking for compress" >&5
+echo "configure:3723: checking for compress" >&5
echo "$ac_t""$COMPRESS" 1>&6
fi
@@ -3695,7 +3761,7 @@ if test "$with_full_paths" = yes ; then
# Extract the first word of "cp", so it can be a program name with args.
set dummy cp; ac_word=$2
echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
-echo "configure:3699: checking for $ac_word" >&5
+echo "configure:3765: checking for $ac_word" >&5
if eval "test \"`echo '$''{'ac_cv_path_COPY'+set}'`\" = set"; then
echo $ac_n "(cached) $ac_c" 1>&6
else
@@ -3730,7 +3796,7 @@ fi
else
echo $ac_n "checking for cp""... $ac_c" 1>&6
-echo "configure:3734: checking for cp" >&5
+echo "configure:3800: checking for cp" >&5
echo "$ac_t""$COPY" 1>&6
fi
@@ -3772,7 +3838,7 @@ if test "$with_full_paths" = yes ; then
# Extract the first word of "gzip", so it can be a program name with args.
set dummy gzip; ac_word=$2
echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
-echo "configure:3776: checking for $ac_word" >&5
+echo "configure:3842: checking for $ac_word" >&5
if eval "test \"`echo '$''{'ac_cv_path_GZIP'+set}'`\" = set"; then
echo $ac_n "(cached) $ac_c" 1>&6
else
@@ -3807,7 +3873,7 @@ fi
else
echo $ac_n "checking for gzip""... $ac_c" 1>&6
-echo "configure:3811: checking for gzip" >&5
+echo "configure:3877: checking for gzip" >&5
echo "$ac_t""$GZIP" 1>&6
fi
@@ -3849,7 +3915,7 @@ if test "$with_full_paths" = yes ; then
# Extract the first word of "mkdir", so it can be a program name with args.
set dummy mkdir; ac_word=$2
echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
-echo "configure:3853: checking for $ac_word" >&5
+echo "configure:3919: checking for $ac_word" >&5
if eval "test \"`echo '$''{'ac_cv_path_MKDIR'+set}'`\" = set"; then
echo $ac_n "(cached) $ac_c" 1>&6
else
@@ -3884,7 +3950,7 @@ fi
else
echo $ac_n "checking for mkdir""... $ac_c" 1>&6
-echo "configure:3888: checking for mkdir" >&5
+echo "configure:3954: checking for mkdir" >&5
echo "$ac_t""$MKDIR" 1>&6
fi
@@ -3926,7 +3992,7 @@ if test "$with_full_paths" = yes ; then
# Extract the first word of "mv", so it can be a program name with args.
set dummy mv; ac_word=$2
echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
-echo "configure:3930: checking for $ac_word" >&5
+echo "configure:3996: checking for $ac_word" >&5
if eval "test \"`echo '$''{'ac_cv_path_MV'+set}'`\" = set"; then
echo $ac_n "(cached) $ac_c" 1>&6
else
@@ -3961,7 +4027,7 @@ fi
else
echo $ac_n "checking for mv""... $ac_c" 1>&6
-echo "configure:3965: checking for mv" >&5
+echo "configure:4031: checking for mv" >&5
echo "$ac_t""$MV" 1>&6
fi
@@ -4003,7 +4069,7 @@ if test "$with_full_paths" = yes ; then
# Extract the first word of "rm", so it can be a program name with args.
set dummy rm; ac_word=$2
echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
-echo "configure:4007: checking for $ac_word" >&5
+echo "configure:4073: checking for $ac_word" >&5
if eval "test \"`echo '$''{'ac_cv_path_RM'+set}'`\" = set"; then
echo $ac_n "(cached) $ac_c" 1>&6
else
@@ -4038,7 +4104,7 @@ fi
else
echo $ac_n "checking for rm""... $ac_c" 1>&6
-echo "configure:4042: checking for rm" >&5
+echo "configure:4108: checking for rm" >&5
echo "$ac_t""$RM" 1>&6
fi
@@ -4080,7 +4146,7 @@ if test "$with_full_paths" = yes ; then
# Extract the first word of "tar", so it can be a program name with args.
set dummy tar; ac_word=$2
echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
-echo "configure:4084: checking for $ac_word" >&5
+echo "configure:4150: checking for $ac_word" >&5
if eval "test \"`echo '$''{'ac_cv_path_TAR'+set}'`\" = set"; then
echo $ac_n "(cached) $ac_c" 1>&6
else
@@ -4115,7 +4181,7 @@ fi
else
echo $ac_n "checking for tar""... $ac_c" 1>&6
-echo "configure:4119: checking for tar" >&5
+echo "configure:4185: checking for tar" >&5
echo "$ac_t""$TAR" 1>&6
fi
@@ -4157,7 +4223,7 @@ if test "$with_full_paths" = yes ; then
# Extract the first word of "touch", so it can be a program name with args.
set dummy touch; ac_word=$2
echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
-echo "configure:4161: checking for $ac_word" >&5
+echo "configure:4227: checking for $ac_word" >&5
if eval "test \"`echo '$''{'ac_cv_path_TOUCH'+set}'`\" = set"; then
echo $ac_n "(cached) $ac_c" 1>&6
else
@@ -4192,7 +4258,7 @@ fi
else
echo $ac_n "checking for touch""... $ac_c" 1>&6
-echo "configure:4196: checking for touch" >&5
+echo "configure:4262: checking for touch" >&5
echo "$ac_t""$TOUCH" 1>&6
fi
@@ -4234,7 +4300,7 @@ if test "$with_full_paths" = yes ; then
# Extract the first word of "gunzip", so it can be a program name with args.
set dummy gunzip; ac_word=$2
echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
-echo "configure:4238: checking for $ac_word" >&5
+echo "configure:4304: checking for $ac_word" >&5
if eval "test \"`echo '$''{'ac_cv_path_UNCOMPRESS'+set}'`\" = set"; then
echo $ac_n "(cached) $ac_c" 1>&6
else
@@ -4269,7 +4335,7 @@ fi
else
echo $ac_n "checking for gunzip""... $ac_c" 1>&6
-echo "configure:4273: checking for gunzip" >&5
+echo "configure:4339: checking for gunzip" >&5
echo "$ac_t""$UNCOMPRESS" 1>&6
fi
@@ -4311,7 +4377,7 @@ if test "$with_full_paths" = yes ; then
# Extract the first word of "unzip", so it can be a program name with args.
set dummy unzip; ac_word=$2
echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
-echo "configure:4315: checking for $ac_word" >&5
+echo "configure:4381: checking for $ac_word" >&5
if eval "test \"`echo '$''{'ac_cv_path_UNZIP'+set}'`\" = set"; then
echo $ac_n "(cached) $ac_c" 1>&6
else
@@ -4346,7 +4412,7 @@ fi
else
echo $ac_n "checking for unzip""... $ac_c" 1>&6
-echo "configure:4350: checking for unzip" >&5
+echo "configure:4416: checking for unzip" >&5
echo "$ac_t""$UNZIP" 1>&6
fi
@@ -4388,7 +4454,7 @@ if test "$with_full_paths" = yes ; then
# Extract the first word of "bzip2", so it can be a program name with args.
set dummy bzip2; ac_word=$2
echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
-echo "configure:4392: checking for $ac_word" >&5
+echo "configure:4458: checking for $ac_word" >&5
if eval "test \"`echo '$''{'ac_cv_path_BZIP2'+set}'`\" = set"; then
echo $ac_n "(cached) $ac_c" 1>&6
else
@@ -4423,7 +4489,7 @@ fi
else
echo $ac_n "checking for bzip2""... $ac_c" 1>&6
-echo "configure:4427: checking for bzip2" >&5
+echo "configure:4493: checking for bzip2" >&5
echo "$ac_t""$BZIP2" 1>&6
fi
@@ -4465,7 +4531,7 @@ if test "$with_full_paths" = yes ; then
# Extract the first word of "uudecode", so it can be a program name with args.
set dummy uudecode; ac_word=$2
echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
-echo "configure:4469: checking for $ac_word" >&5
+echo "configure:4535: checking for $ac_word" >&5
if eval "test \"`echo '$''{'ac_cv_path_UUDECODE'+set}'`\" = set"; then
echo $ac_n "(cached) $ac_c" 1>&6
else
@@ -4500,7 +4566,7 @@ fi
else
echo $ac_n "checking for uudecode""... $ac_c" 1>&6
-echo "configure:4504: checking for uudecode" >&5
+echo "configure:4570: checking for uudecode" >&5
echo "$ac_t""$UUDECODE" 1>&6
fi
@@ -4542,7 +4608,7 @@ if test "$with_full_paths" = yes ; then
# Extract the first word of "zcat", so it can be a program name with args.
set dummy zcat; ac_word=$2
echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
-echo "configure:4546: checking for $ac_word" >&5
+echo "configure:4612: checking for $ac_word" >&5
if eval "test \"`echo '$''{'ac_cv_path_ZCAT'+set}'`\" = set"; then
echo $ac_n "(cached) $ac_c" 1>&6
else
@@ -4577,7 +4643,7 @@ fi
else
echo $ac_n "checking for zcat""... $ac_c" 1>&6
-echo "configure:4581: checking for zcat" >&5
+echo "configure:4647: checking for zcat" >&5
echo "$ac_t""$ZCAT" 1>&6
fi
@@ -4619,7 +4685,7 @@ if test "$with_full_paths" = yes ; then
# Extract the first word of "zip", so it can be a program name with args.
set dummy zip; ac_word=$2
echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
-echo "configure:4623: checking for $ac_word" >&5
+echo "configure:4689: checking for $ac_word" >&5
if eval "test \"`echo '$''{'ac_cv_path_ZIP'+set}'`\" = set"; then
echo $ac_n "(cached) $ac_c" 1>&6
else
@@ -4654,7 +4720,7 @@ fi
else
echo $ac_n "checking for zip""... $ac_c" 1>&6
-echo "configure:4658: checking for zip" >&5
+echo "configure:4724: checking for zip" >&5
echo "$ac_t""$ZIP" 1>&6
fi
@@ -4696,7 +4762,7 @@ if test "$with_full_paths" = yes ; then
# Extract the first word of "telnet", so it can be a program name with args.
set dummy telnet; ac_word=$2
echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
-echo "configure:4700: checking for $ac_word" >&5
+echo "configure:4766: checking for $ac_word" >&5
if eval "test \"`echo '$''{'ac_cv_path_TELNET'+set}'`\" = set"; then
echo $ac_n "(cached) $ac_c" 1>&6
else
@@ -4731,7 +4797,7 @@ fi
else
echo $ac_n "checking for telnet""... $ac_c" 1>&6
-echo "configure:4735: checking for telnet" >&5
+echo "configure:4801: checking for telnet" >&5
echo "$ac_t""$TELNET" 1>&6
fi
@@ -4773,7 +4839,7 @@ if test "$with_full_paths" = yes ; then
# Extract the first word of "tn3270", so it can be a program name with args.
set dummy tn3270; ac_word=$2
echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
-echo "configure:4777: checking for $ac_word" >&5
+echo "configure:4843: checking for $ac_word" >&5
if eval "test \"`echo '$''{'ac_cv_path_TN3270'+set}'`\" = set"; then
echo $ac_n "(cached) $ac_c" 1>&6
else
@@ -4808,7 +4874,7 @@ fi
else
echo $ac_n "checking for tn3270""... $ac_c" 1>&6
-echo "configure:4812: checking for tn3270" >&5
+echo "configure:4878: checking for tn3270" >&5
echo "$ac_t""$TN3270" 1>&6
fi
@@ -4850,7 +4916,7 @@ if test "$with_full_paths" = yes ; then
# Extract the first word of "rlogin", so it can be a program name with args.
set dummy rlogin; ac_word=$2
echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
-echo "configure:4854: checking for $ac_word" >&5
+echo "configure:4920: checking for $ac_word" >&5
if eval "test \"`echo '$''{'ac_cv_path_RLOGIN'+set}'`\" = set"; then
echo $ac_n "(cached) $ac_c" 1>&6
else
@@ -4885,7 +4951,7 @@ fi
else
echo $ac_n "checking for rlogin""... $ac_c" 1>&6
-echo "configure:4889: checking for rlogin" >&5
+echo "configure:4955: checking for rlogin" >&5
echo "$ac_t""$RLOGIN" 1>&6
fi
@@ -4946,7 +5012,7 @@ EOF
if test -z "$GCC" ; then
echo $ac_n "checking for ${CC-cc} option to accept ANSI C""... $ac_c" 1>&6
-echo "configure:4950: checking for ${CC-cc} option to accept ANSI C" >&5
+echo "configure:5016: checking for ${CC-cc} option to accept ANSI C" >&5
if eval "test \"`echo '$''{'cf_cv_ansi_cc'+set}'`\" = set"; then
echo $ac_n "(cached) $ac_c" 1>&6
else
@@ -4970,7 +5036,7 @@ for cf_arg in "-DCC_HAS_PROTOS" \
do
CFLAGS="$cf_save_CFLAGS $cf_arg"
cat > conftest.$ac_ext <<EOF
-#line 4974 "configure"
+#line 5040 "configure"
#include "confdefs.h"
#ifndef CC_HAS_PROTOS
@@ -4986,7 +5052,7 @@ int main() {
struct s2 {int (*f) (double a);};
; return 0; }
EOF
-if { (eval echo configure:4990: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
+if { (eval echo configure:5056: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
rm -rf conftest*
cf_cv_ansi_cc="$cf_arg"; break
else
@@ -5014,12 +5080,12 @@ fi
fi
echo $ac_n "checking for working const""... $ac_c" 1>&6
-echo "configure:5018: checking for working const" >&5
+echo "configure:5084: checking for working const" >&5
if eval "test \"`echo '$''{'ac_cv_c_const'+set}'`\" = set"; then
echo $ac_n "(cached) $ac_c" 1>&6
else
cat > conftest.$ac_ext <<EOF
-#line 5023 "configure"
+#line 5089 "configure"
#include "confdefs.h"
int main() {
@@ -5068,7 +5134,7 @@ ccp = (char const *const *) p;
; return 0; }
EOF
-if { (eval echo configure:5072: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
+if { (eval echo configure:5138: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
rm -rf conftest*
ac_cv_c_const=yes
else
@@ -5110,7 +5176,7 @@ clix*)
# contributed by Alex Matulich (matuli_a@marlin.navsea.navy.mil) also
# references -lmalloc and -lbsd.
echo $ac_n "checking for strcmp in -lc_s""... $ac_c" 1>&6
-echo "configure:5114: checking for strcmp in -lc_s" >&5
+echo "configure:5180: checking for strcmp in -lc_s" >&5
ac_lib_var=`echo c_s'_'strcmp | sed 'y%./+-%__p_%'`
if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
echo $ac_n "(cached) $ac_c" 1>&6
@@ -5118,7 +5184,7 @@ else
ac_save_LIBS="$LIBS"
LIBS="-lc_s $LIBS"
cat > conftest.$ac_ext <<EOF
-#line 5122 "configure"
+#line 5188 "configure"
#include "confdefs.h"
/* Override any gcc2 internal prototype to avoid an error. */
/* We use char because int might match the return type of a gcc2
@@ -5129,7 +5195,7 @@ int main() {
strcmp()
; return 0; }
EOF
-if { (eval echo configure:5133: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
+if { (eval echo configure:5199: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
rm -rf conftest*
eval "ac_cv_lib_$ac_lib_var=yes"
else
@@ -5218,7 +5284,7 @@ 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 $ac_n "checking for $ac_word""... $ac_c" 1>&6
-echo "configure:5222: checking for $ac_word" >&5
+echo "configure:5288: checking for $ac_word" >&5
if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
echo $ac_n "(cached) $ac_c" 1>&6
else
@@ -5263,17 +5329,17 @@ sony-newsos*)
do
ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
-echo "configure:5267: checking for $ac_hdr" >&5
+echo "configure:5333: checking for $ac_hdr" >&5
if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
echo $ac_n "(cached) $ac_c" 1>&6
else
cat > conftest.$ac_ext <<EOF
-#line 5272 "configure"
+#line 5338 "configure"
#include "confdefs.h"
#include <$ac_hdr>
EOF
ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
-{ (eval echo configure:5277: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
+{ (eval echo configure:5343: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
if test -z "$ac_err"; then
rm -rf conftest*
@@ -5317,17 +5383,17 @@ ultrix*)
do
ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
-echo "configure:5321: checking for $ac_hdr" >&5
+echo "configure:5387: checking for $ac_hdr" >&5
if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
echo $ac_n "(cached) $ac_c" 1>&6
else
cat > conftest.$ac_ext <<EOF
-#line 5326 "configure"
+#line 5392 "configure"
#include "confdefs.h"
#include <$ac_hdr>
EOF
ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
-{ (eval echo configure:5331: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
+{ (eval echo configure:5397: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
if test -z "$ac_err"; then
rm -rf conftest*
@@ -5365,16 +5431,16 @@ if test -n "$TRY_CFLAGS" ; then
cf_save_CFLAGS="$CFLAGS"
CFLAGS="$CFLAGS $TRY_CFLAGS"
echo $ac_n "checking if we should use compile options $TRY_CFLAGS""... $ac_c" 1>&6
-echo "configure:5369: checking if we should use compile options $TRY_CFLAGS" >&5
+echo "configure:5435: checking if we should use compile options $TRY_CFLAGS" >&5
cat > conftest.$ac_ext <<EOF
-#line 5371 "configure"
+#line 5437 "configure"
#include "confdefs.h"
#include <stdio.h>
int main() {
FILE *fp = stdin
; return 0; }
EOF
-if { (eval echo configure:5378: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
+if { (eval echo configure:5444: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
rm -rf conftest*
cf_result=yes
else
@@ -5392,7 +5458,7 @@ fi
### Look for network libraries first, since some functions (such as gethostname)
### are used in a lot of places.
echo $ac_n "checking if you want socks library""... $ac_c" 1>&6
-echo "configure:5396: checking if you want socks library" >&5
+echo "configure:5462: checking if you want socks library" >&5
if eval "test \"`echo '$''{'cf_cv_use_libsocks'+set}'`\" = set"; then
echo $ac_n "(cached) $ac_c" 1>&6
else
@@ -5412,7 +5478,7 @@ fi
echo "$ac_t""$cf_cv_use_libsocks" 1>&6
echo $ac_n "checking if you want socks5 library""... $ac_c" 1>&6
-echo "configure:5416: checking if you want socks5 library" >&5
+echo "configure:5482: checking if you want socks5 library" >&5
if eval "test \"`echo '$''{'cf_cv_use_libsocks5'+set}'`\" = set"; then
echo $ac_n "(cached) $ac_c" 1>&6
else
@@ -5478,7 +5544,7 @@ cat >> confdefs.h <<\EOF
EOF
cat > conftest.$ac_ext <<EOF
-#line 5482 "configure"
+#line 5548 "configure"
#include "confdefs.h"
#include <stdio.h>
@@ -5487,7 +5553,7 @@ int main() {
accept((char *)0)
; return 0; }
EOF
-if { (eval echo configure:5491: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
+if { (eval echo configure:5557: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
:
else
echo "configure: failed program was:" >&5
@@ -5517,9 +5583,9 @@ cat >> confdefs.h <<\EOF
EOF
echo $ac_n "checking if the socks library uses socks4 prefix""... $ac_c" 1>&6
-echo "configure:5521: checking if the socks library uses socks4 prefix" >&5
+echo "configure:5587: checking if the socks library uses socks4 prefix" >&5
cat > conftest.$ac_ext <<EOF
-#line 5523 "configure"
+#line 5589 "configure"
#include "confdefs.h"
#include <socks.h>
@@ -5528,7 +5594,7 @@ int main() {
Rinit((char *)0)
; return 0; }
EOF
-if { (eval echo configure:5532: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
+if { (eval echo configure:5598: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
rm -rf conftest*
cat >> confdefs.h <<\EOF
#define USE_SOCKS4_PREFIX 1
@@ -5540,14 +5606,14 @@ else
cat conftest.$ac_ext >&5
rm -rf conftest*
cat > conftest.$ac_ext <<EOF
-#line 5544 "configure"
+#line 5610 "configure"
#include "confdefs.h"
#include <socks.h>
int main() {
SOCKSinit((char *)0)
; return 0; }
EOF
-if { (eval echo configure:5551: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
+if { (eval echo configure:5617: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
rm -rf conftest*
cf_use_socks4=no
else
@@ -5616,7 +5682,7 @@ else
cf_test_netlibs=no
echo $ac_n "checking for network libraries""... $ac_c" 1>&6
-echo "configure:5620: checking for network libraries" >&5
+echo "configure:5686: checking for network libraries" >&5
if eval "test \"`echo '$''{'cf_cv_netlibs'+set}'`\" = set"; then
echo $ac_n "(cached) $ac_c" 1>&6
else
@@ -5627,12 +5693,12 @@ cf_test_netlibs=yes
for ac_func in gethostname
do
echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
-echo "configure:5631: checking for $ac_func" >&5
+echo "configure:5697: checking for $ac_func" >&5
if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
echo $ac_n "(cached) $ac_c" 1>&6
else
cat > conftest.$ac_ext <<EOF
-#line 5636 "configure"
+#line 5702 "configure"
#include "confdefs.h"
/* System header to define __stub macros and hopefully few prototypes,
which can conflict with char $ac_func(); below. */
@@ -5655,7 +5721,7 @@ $ac_func();
; return 0; }
EOF
-if { (eval echo configure:5659: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
+if { (eval echo configure:5725: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
rm -rf conftest*
eval "ac_cv_func_$ac_func=yes"
else
@@ -5678,7 +5744,7 @@ else
echo "$ac_t""no" 1>&6
echo $ac_n "checking for gethostname in -lnsl""... $ac_c" 1>&6
-echo "configure:5682: checking for gethostname in -lnsl" >&5
+echo "configure:5748: checking for gethostname in -lnsl" >&5
ac_lib_var=`echo nsl'_'gethostname | sed 'y%./+-%__p_%'`
if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
echo $ac_n "(cached) $ac_c" 1>&6
@@ -5686,7 +5752,7 @@ else
ac_save_LIBS="$LIBS"
LIBS="-lnsl $cf_cv_netlibs $LIBS"
cat > conftest.$ac_ext <<EOF
-#line 5690 "configure"
+#line 5756 "configure"
#include "confdefs.h"
/* Override any gcc2 internal prototype to avoid an error. */
/* We use char because int might match the return type of a gcc2
@@ -5697,7 +5763,7 @@ int main() {
gethostname()
; return 0; }
EOF
-if { (eval echo configure:5701: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
+if { (eval echo configure:5767: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
rm -rf conftest*
eval "ac_cv_lib_$ac_lib_var=yes"
else
@@ -5730,7 +5796,7 @@ else
echo $ac_n "checking for gethostname in -lsocket""... $ac_c" 1>&6
-echo "configure:5734: checking for gethostname in -lsocket" >&5
+echo "configure:5800: checking for gethostname in -lsocket" >&5
ac_lib_var=`echo socket'_'gethostname | sed 'y%./+-%__p_%'`
if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
echo $ac_n "(cached) $ac_c" 1>&6
@@ -5738,7 +5804,7 @@ else
ac_save_LIBS="$LIBS"
LIBS="-lsocket $cf_cv_netlibs $LIBS"
cat > conftest.$ac_ext <<EOF
-#line 5742 "configure"
+#line 5808 "configure"
#include "confdefs.h"
/* Override any gcc2 internal prototype to avoid an error. */
/* We use char because int might match the return type of a gcc2
@@ -5749,7 +5815,7 @@ int main() {
gethostname()
; return 0; }
EOF
-if { (eval echo configure:5753: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
+if { (eval echo configure:5819: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
rm -rf conftest*
eval "ac_cv_lib_$ac_lib_var=yes"
else
@@ -5793,21 +5859,21 @@ done
# FIXME: sequent needs this library (i.e., -lsocket -linet -lnsl), but
# I don't know the entrypoints - 97/7/22 TD
echo $ac_n "checking for -linet""... $ac_c" 1>&6
-echo "configure:5797: checking for -linet" >&5
+echo "configure:5863: checking for -linet" >&5
if eval "test \"`echo '$''{'ac_cv_lib_inet'+set}'`\" = set"; then
echo $ac_n "(cached) $ac_c" 1>&6
else
ac_save_LIBS="$LIBS"
LIBS="-linet $LIBS"
cat > conftest.$ac_ext <<EOF
-#line 5804 "configure"
+#line 5870 "configure"
#include "confdefs.h"
int main() {
main()
; return 0; }
EOF
-if { (eval echo configure:5811: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
+if { (eval echo configure:5877: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
rm -rf conftest*
ac_cv_lib_inet=yes
else
@@ -5830,12 +5896,12 @@ if test "$ac_cv_func_lsocket" != no ; then
for ac_func in socket
do
echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
-echo "configure:5834: checking for $ac_func" >&5
+echo "configure:5900: checking for $ac_func" >&5
if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
echo $ac_n "(cached) $ac_c" 1>&6
else
cat > conftest.$ac_ext <<EOF
-#line 5839 "configure"
+#line 5905 "configure"
#include "confdefs.h"
/* System header to define __stub macros and hopefully few prototypes,
which can conflict with char $ac_func(); below. */
@@ -5858,7 +5924,7 @@ $ac_func();
; return 0; }
EOF
-if { (eval echo configure:5862: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
+if { (eval echo configure:5928: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
rm -rf conftest*
eval "ac_cv_func_$ac_func=yes"
else
@@ -5881,7 +5947,7 @@ else
echo "$ac_t""no" 1>&6
echo $ac_n "checking for socket in -lsocket""... $ac_c" 1>&6
-echo "configure:5885: checking for socket in -lsocket" >&5
+echo "configure:5951: checking for socket in -lsocket" >&5
ac_lib_var=`echo socket'_'socket | sed 'y%./+-%__p_%'`
if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
echo $ac_n "(cached) $ac_c" 1>&6
@@ -5889,7 +5955,7 @@ else
ac_save_LIBS="$LIBS"
LIBS="-lsocket $cf_cv_netlibs $LIBS"
cat > conftest.$ac_ext <<EOF
-#line 5893 "configure"
+#line 5959 "configure"
#include "confdefs.h"
/* Override any gcc2 internal prototype to avoid an error. */
/* We use char because int might match the return type of a gcc2
@@ -5900,7 +5966,7 @@ int main() {
socket()
; return 0; }
EOF
-if { (eval echo configure:5904: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
+if { (eval echo configure:5970: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
rm -rf conftest*
eval "ac_cv_lib_$ac_lib_var=yes"
else
@@ -5933,7 +5999,7 @@ else
echo $ac_n "checking for socket in -lbsd""... $ac_c" 1>&6
-echo "configure:5937: checking for socket in -lbsd" >&5
+echo "configure:6003: checking for socket in -lbsd" >&5
ac_lib_var=`echo bsd'_'socket | sed 'y%./+-%__p_%'`
if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
echo $ac_n "(cached) $ac_c" 1>&6
@@ -5941,7 +6007,7 @@ else
ac_save_LIBS="$LIBS"
LIBS="-lbsd $cf_cv_netlibs $LIBS"
cat > conftest.$ac_ext <<EOF
-#line 5945 "configure"
+#line 6011 "configure"
#include "confdefs.h"
/* Override any gcc2 internal prototype to avoid an error. */
/* We use char because int might match the return type of a gcc2
@@ -5952,7 +6018,7 @@ int main() {
socket()
; return 0; }
EOF
-if { (eval echo configure:5956: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
+if { (eval echo configure:6022: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
rm -rf conftest*
eval "ac_cv_lib_$ac_lib_var=yes"
else
@@ -5997,12 +6063,12 @@ fi
for ac_func in gethostbyname
do
echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
-echo "configure:6001: checking for $ac_func" >&5
+echo "configure:6067: checking for $ac_func" >&5
if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
echo $ac_n "(cached) $ac_c" 1>&6
else
cat > conftest.$ac_ext <<EOF
-#line 6006 "configure"
+#line 6072 "configure"
#include "confdefs.h"
/* System header to define __stub macros and hopefully few prototypes,
which can conflict with char $ac_func(); below. */
@@ -6025,7 +6091,7 @@ $ac_func();
; return 0; }
EOF
-if { (eval echo configure:6029: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
+if { (eval echo configure:6095: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
rm -rf conftest*
eval "ac_cv_func_$ac_func=yes"
else
@@ -6048,7 +6114,7 @@ else
echo "$ac_t""no" 1>&6
echo $ac_n "checking for gethostbyname in -lnsl""... $ac_c" 1>&6
-echo "configure:6052: checking for gethostbyname in -lnsl" >&5
+echo "configure:6118: checking for gethostbyname in -lnsl" >&5
ac_lib_var=`echo nsl'_'gethostbyname | sed 'y%./+-%__p_%'`
if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
echo $ac_n "(cached) $ac_c" 1>&6
@@ -6056,7 +6122,7 @@ else
ac_save_LIBS="$LIBS"
LIBS="-lnsl $cf_cv_netlibs $LIBS"
cat > conftest.$ac_ext <<EOF
-#line 6060 "configure"
+#line 6126 "configure"
#include "confdefs.h"
/* Override any gcc2 internal prototype to avoid an error. */
/* We use char because int might match the return type of a gcc2
@@ -6067,7 +6133,7 @@ int main() {
gethostbyname()
; return 0; }
EOF
-if { (eval echo configure:6071: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
+if { (eval echo configure:6137: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
rm -rf conftest*
eval "ac_cv_lib_$ac_lib_var=yes"
else
@@ -6108,12 +6174,12 @@ done
for ac_func in strcasecmp
do
echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
-echo "configure:6112: checking for $ac_func" >&5
+echo "configure:6178: checking for $ac_func" >&5
if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
echo $ac_n "(cached) $ac_c" 1>&6
else
cat > conftest.$ac_ext <<EOF
-#line 6117 "configure"
+#line 6183 "configure"
#include "confdefs.h"
/* System header to define __stub macros and hopefully few prototypes,
which can conflict with char $ac_func(); below. */
@@ -6136,7 +6202,7 @@ $ac_func();
; return 0; }
EOF
-if { (eval echo configure:6140: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
+if { (eval echo configure:6206: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
rm -rf conftest*
eval "ac_cv_func_$ac_func=yes"
else
@@ -6159,7 +6225,7 @@ else
echo "$ac_t""no" 1>&6
echo $ac_n "checking for strcasecmp in -lresolv""... $ac_c" 1>&6
-echo "configure:6163: checking for strcasecmp in -lresolv" >&5
+echo "configure:6229: checking for strcasecmp in -lresolv" >&5
ac_lib_var=`echo resolv'_'strcasecmp | sed 'y%./+-%__p_%'`
if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
echo $ac_n "(cached) $ac_c" 1>&6
@@ -6167,7 +6233,7 @@ else
ac_save_LIBS="$LIBS"
LIBS="-lresolv $cf_cv_netlibs $LIBS"
cat > conftest.$ac_ext <<EOF
-#line 6171 "configure"
+#line 6237 "configure"
#include "confdefs.h"
/* Override any gcc2 internal prototype to avoid an error. */
/* We use char because int might match the return type of a gcc2
@@ -6178,7 +6244,7 @@ int main() {
strcasecmp()
; return 0; }
EOF
-if { (eval echo configure:6182: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
+if { (eval echo configure:6248: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
rm -rf conftest*
eval "ac_cv_lib_$ac_lib_var=yes"
else
@@ -6224,15 +6290,15 @@ test $cf_test_netlibs = no && echo "$cf_cv_netlibs" >&6
fi
echo $ac_n "checking for inet_aton function""... $ac_c" 1>&6
-echo "configure:6228: checking for inet_aton function" >&5
+echo "configure:6294: checking for inet_aton function" >&5
if eval "test \"`echo '$''{'cf_cv_have_inet_aton'+set}'`\" = set"; then
echo $ac_n "(cached) $ac_c" 1>&6
else
cat > conftest.$ac_ext <<EOF
-#line 6234 "configure"
+#line 6300 "configure"
#include "confdefs.h"
-
+#include <sys/types.h>
#include <sys/socket.h>
#include <netinet/in.h>
#include <arpa/inet.h>
@@ -6241,7 +6307,7 @@ int main() {
inet_aton(0, (struct in_addr *)0)
; return 0; }
EOF
-if { (eval echo configure:6245: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
+if { (eval echo configure:6311: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
rm -rf conftest*
cf_cv_have_inet_aton=yes
else
@@ -6261,15 +6327,15 @@ EOF
else
echo $ac_n "checking for inet_addr function""... $ac_c" 1>&6
-echo "configure:6265: checking for inet_addr function" >&5
+echo "configure:6331: checking for inet_addr function" >&5
if eval "test \"`echo '$''{'cf_cv_have_inet_addr'+set}'`\" = set"; then
echo $ac_n "(cached) $ac_c" 1>&6
else
cat > conftest.$ac_ext <<EOF
-#line 6271 "configure"
+#line 6337 "configure"
#include "confdefs.h"
-
+#include <sys/types.h>
#include <sys/socket.h>
#include <netinet/in.h>
#include <arpa/inet.h>
@@ -6278,7 +6344,7 @@ int main() {
inet_addr(0)
; return 0; }
EOF
-if { (eval echo configure:6282: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
+if { (eval echo configure:6348: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
rm -rf conftest*
cf_cv_have_inet_addr=yes
else
@@ -6293,7 +6359,7 @@ fi
echo "$ac_t""$cf_cv_have_inet_addr" 1>&6
if test "$cf_cv_have_inet_addr" = no ; then
echo $ac_n "checking for library with inet_addr""... $ac_c" 1>&6
-echo "configure:6297: checking for library with inet_addr" >&5
+echo "configure:6363: checking for library with inet_addr" >&5
if eval "test \"`echo '$''{'cf_cv_lib_inet_addr'+set}'`\" = set"; then
echo $ac_n "(cached) $ac_c" 1>&6
else
@@ -6303,9 +6369,9 @@ else
do
LIBS="$cf_save_LIBS $cf_inetlib"
cat > conftest.$ac_ext <<EOF
-#line 6307 "configure"
+#line 6373 "configure"
#include "confdefs.h"
-
+#include <sys/types.h>
#include <sys/socket.h>
#include <netinet/in.h>
#include <arpa/inet.h>
@@ -6314,7 +6380,7 @@ int main() {
inet_addr(0)
; return 0; }
EOF
-if { (eval echo configure:6318: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
+if { (eval echo configure:6384: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
rm -rf conftest*
cf_cv_lib_inet_addr=$cf_inetlib
else
@@ -6341,7 +6407,7 @@ fi
echo $ac_n "checking for screen type""... $ac_c" 1>&6
-echo "configure:6345: checking for screen type" >&5
+echo "configure:6411: checking for screen type" >&5
if eval "test \"`echo '$''{'cf_cv_screen'+set}'`\" = set"; then
echo $ac_n "(cached) $ac_c" 1>&6
else
@@ -6376,12 +6442,12 @@ case $cf_cv_screen in
curses)
echo $ac_n "checking for initscr""... $ac_c" 1>&6
-echo "configure:6380: checking for initscr" >&5
+echo "configure:6446: checking for initscr" >&5
if eval "test \"`echo '$''{'ac_cv_func_initscr'+set}'`\" = set"; then
echo $ac_n "(cached) $ac_c" 1>&6
else
cat > conftest.$ac_ext <<EOF
-#line 6385 "configure"
+#line 6451 "configure"
#include "confdefs.h"
/* System header to define __stub macros and hopefully few prototypes,
which can conflict with char initscr(); below. */
@@ -6404,7 +6470,7 @@ initscr();
; return 0; }
EOF
-if { (eval echo configure:6408: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
+if { (eval echo configure:6474: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
rm -rf conftest*
eval "ac_cv_func_initscr=yes"
else
@@ -6425,7 +6491,7 @@ else
case $host_os in #(vi
freebsd*) #(vi
echo $ac_n "checking for tgoto in -lmytinfo""... $ac_c" 1>&6
-echo "configure:6429: checking for tgoto in -lmytinfo" >&5
+echo "configure:6495: checking for tgoto in -lmytinfo" >&5
ac_lib_var=`echo mytinfo'_'tgoto | sed 'y%./+-%__p_%'`
if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
echo $ac_n "(cached) $ac_c" 1>&6
@@ -6433,7 +6499,7 @@ else
ac_save_LIBS="$LIBS"
LIBS="-lmytinfo $LIBS"
cat > conftest.$ac_ext <<EOF
-#line 6437 "configure"
+#line 6503 "configure"
#include "confdefs.h"
/* Override any gcc2 internal prototype to avoid an error. */
/* We use char because int might match the return type of a gcc2
@@ -6444,7 +6510,7 @@ int main() {
tgoto()
; return 0; }
EOF
-if { (eval echo configure:6448: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
+if { (eval echo configure:6514: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
rm -rf conftest*
eval "ac_cv_lib_$ac_lib_var=yes"
else
@@ -6467,7 +6533,7 @@ fi
;;
hpux10.*)
echo $ac_n "checking for initscr in -lcur_colr""... $ac_c" 1>&6
-echo "configure:6471: checking for initscr in -lcur_colr" >&5
+echo "configure:6537: checking for initscr in -lcur_colr" >&5
ac_lib_var=`echo cur_colr'_'initscr | sed 'y%./+-%__p_%'`
if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
echo $ac_n "(cached) $ac_c" 1>&6
@@ -6475,7 +6541,7 @@ else
ac_save_LIBS="$LIBS"
LIBS="-lcur_colr $LIBS"
cat > conftest.$ac_ext <<EOF
-#line 6479 "configure"
+#line 6545 "configure"
#include "confdefs.h"
/* Override any gcc2 internal prototype to avoid an error. */
/* We use char because int might match the return type of a gcc2
@@ -6486,7 +6552,7 @@ int main() {
initscr()
; return 0; }
EOF
-if { (eval echo configure:6490: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
+if { (eval echo configure:6556: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
rm -rf conftest*
eval "ac_cv_lib_$ac_lib_var=yes"
else
@@ -6510,7 +6576,7 @@ else
echo "$ac_t""no" 1>&6
echo $ac_n "checking for initscr in -lHcurses""... $ac_c" 1>&6
-echo "configure:6514: checking for initscr in -lHcurses" >&5
+echo "configure:6580: checking for initscr in -lHcurses" >&5
ac_lib_var=`echo Hcurses'_'initscr | sed 'y%./+-%__p_%'`
if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
echo $ac_n "(cached) $ac_c" 1>&6
@@ -6518,7 +6584,7 @@ else
ac_save_LIBS="$LIBS"
LIBS="-lHcurses $LIBS"
cat > conftest.$ac_ext <<EOF
-#line 6522 "configure"
+#line 6588 "configure"
#include "confdefs.h"
/* Override any gcc2 internal prototype to avoid an error. */
/* We use char because int might match the return type of a gcc2
@@ -6529,7 +6595,7 @@ int main() {
initscr()
; return 0; }
EOF
-if { (eval echo configure:6533: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
+if { (eval echo configure:6599: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
rm -rf conftest*
eval "ac_cv_lib_$ac_lib_var=yes"
else
@@ -6578,12 +6644,12 @@ if test ".$ac_cv_func_initscr" != .yes ; then
# Check for library containing tgoto. Do this before curses library
# because it may be needed to link the test-case for initscr.
echo $ac_n "checking for tgoto""... $ac_c" 1>&6
-echo "configure:6582: checking for tgoto" >&5
+echo "configure:6648: checking for tgoto" >&5
if eval "test \"`echo '$''{'ac_cv_func_tgoto'+set}'`\" = set"; then
echo $ac_n "(cached) $ac_c" 1>&6
else
cat > conftest.$ac_ext <<EOF
-#line 6587 "configure"
+#line 6653 "configure"
#include "confdefs.h"
/* System header to define __stub macros and hopefully few prototypes,
which can conflict with char tgoto(); below. */
@@ -6606,7 +6672,7 @@ tgoto();
; return 0; }
EOF
-if { (eval echo configure:6610: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
+if { (eval echo configure:6676: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
rm -rf conftest*
eval "ac_cv_func_tgoto=yes"
else
@@ -6627,7 +6693,7 @@ else
for cf_term_lib in termcap termlib unknown
do
echo $ac_n "checking for tgoto in -l$cf_term_lib""... $ac_c" 1>&6
-echo "configure:6631: checking for tgoto in -l$cf_term_lib" >&5
+echo "configure:6697: checking for tgoto in -l$cf_term_lib" >&5
ac_lib_var=`echo $cf_term_lib'_'tgoto | sed 'y%./+-%__p_%'`
if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
echo $ac_n "(cached) $ac_c" 1>&6
@@ -6635,7 +6701,7 @@ else
ac_save_LIBS="$LIBS"
LIBS="-l$cf_term_lib $LIBS"
cat > conftest.$ac_ext <<EOF
-#line 6639 "configure"
+#line 6705 "configure"
#include "confdefs.h"
/* Override any gcc2 internal prototype to avoid an error. */
/* We use char because int might match the return type of a gcc2
@@ -6646,7 +6712,7 @@ int main() {
tgoto()
; return 0; }
EOF
-if { (eval echo configure:6650: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
+if { (eval echo configure:6716: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
rm -rf conftest*
eval "ac_cv_lib_$ac_lib_var=yes"
else
@@ -6676,7 +6742,7 @@ fi
for cf_curs_lib in cursesX curses ncurses xcurses jcurses unknown
do
echo $ac_n "checking for initscr in -l$cf_curs_lib""... $ac_c" 1>&6
-echo "configure:6680: checking for initscr in -l$cf_curs_lib" >&5
+echo "configure:6746: checking for initscr in -l$cf_curs_lib" >&5
ac_lib_var=`echo $cf_curs_lib'_'initscr | sed 'y%./+-%__p_%'`
if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
echo $ac_n "(cached) $ac_c" 1>&6
@@ -6684,7 +6750,7 @@ else
ac_save_LIBS="$LIBS"
LIBS="-l$cf_curs_lib $LIBS"
cat > conftest.$ac_ext <<EOF
-#line 6688 "configure"
+#line 6754 "configure"
#include "confdefs.h"
/* Override any gcc2 internal prototype to avoid an error. */
/* We use char because int might match the return type of a gcc2
@@ -6695,7 +6761,7 @@ int main() {
initscr()
; return 0; }
EOF
-if { (eval echo configure:6699: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
+if { (eval echo configure:6765: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
rm -rf conftest*
eval "ac_cv_lib_$ac_lib_var=yes"
else
@@ -6721,16 +6787,16 @@ fi
LIBS="-l$cf_curs_lib $cf_save_LIBS"
if test "$cf_term_lib" = unknown ; then
echo $ac_n "checking if we can link with $cf_curs_lib library""... $ac_c" 1>&6
-echo "configure:6725: checking if we can link with $cf_curs_lib library" >&5
+echo "configure:6791: checking if we can link with $cf_curs_lib library" >&5
cat > conftest.$ac_ext <<EOF
-#line 6727 "configure"
+#line 6793 "configure"
#include "confdefs.h"
#include <${cf_cv_ncurses_header-curses.h}>
int main() {
initscr()
; return 0; }
EOF
-if { (eval echo configure:6734: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
+if { (eval echo configure:6800: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
rm -rf conftest*
cf_result=yes
else
@@ -6744,16 +6810,16 @@ rm -f conftest*
test $cf_result = no && { echo "configure: error: Cannot link curses library" 1>&2; exit 1; }
elif test "$cf_term_lib" != predefined ; then
echo $ac_n "checking if we need both $cf_curs_lib and $cf_term_lib libraries""... $ac_c" 1>&6
-echo "configure:6748: checking if we need both $cf_curs_lib and $cf_term_lib libraries" >&5
+echo "configure:6814: checking if we need both $cf_curs_lib and $cf_term_lib libraries" >&5
cat > conftest.$ac_ext <<EOF
-#line 6750 "configure"
+#line 6816 "configure"
#include "confdefs.h"
#include <${cf_cv_ncurses_header-curses.h}>
int main() {
initscr(); tgoto((char *)0, 0, 0);
; return 0; }
EOF
-if { (eval echo configure:6757: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
+if { (eval echo configure:6823: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
rm -rf conftest*
cf_result=no
else
@@ -6763,14 +6829,14 @@ else
LIBS="-l$cf_curs_lib -l$cf_term_lib $cf_save_LIBS"
cat > conftest.$ac_ext <<EOF
-#line 6767 "configure"
+#line 6833 "configure"
#include "confdefs.h"
#include <${cf_cv_ncurses_header-curses.h}>
int main() {
initscr()
; return 0; }
EOF
-if { (eval echo configure:6774: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
+if { (eval echo configure:6840: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
rm -rf conftest*
cf_result=yes
else
@@ -6792,14 +6858,14 @@ fi
echo $ac_n "checking for curses performance tradeoff""... $ac_c" 1>&6
-echo "configure:6796: checking for curses performance tradeoff" >&5
+echo "configure:6862: checking for curses performance tradeoff" >&5
if eval "test \"`echo '$''{'cf_cv_curs_performance'+set}'`\" = set"; then
echo $ac_n "(cached) $ac_c" 1>&6
else
cf_cv_curs_performance=no
cat > conftest.$ac_ext <<EOF
-#line 6803 "configure"
+#line 6869 "configure"
#include "confdefs.h"
#include <${cf_cv_ncurses_header-curses.h}>
@@ -6813,11 +6879,11 @@ int main() {
; return 0; }
EOF
-if { (eval echo configure:6817: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
+if { (eval echo configure:6883: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
rm -rf conftest*
cat > conftest.$ac_ext <<EOF
-#line 6821 "configure"
+#line 6887 "configure"
#include "confdefs.h"
#define CURS_PERFORMANCE
@@ -6832,7 +6898,7 @@ int main() {
; return 0; }
EOF
-if { (eval echo configure:6836: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
+if { (eval echo configure:6902: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
rm -rf conftest*
cf_cv_curs_performance=yes
else
@@ -6857,13 +6923,13 @@ EOF
ncurses)
echo $ac_n "checking for ncurses header file""... $ac_c" 1>&6
-echo "configure:6861: checking for ncurses header file" >&5
+echo "configure:6927: checking for ncurses header file" >&5
if eval "test \"`echo '$''{'cf_cv_ncurses_header'+set}'`\" = set"; then
echo $ac_n "(cached) $ac_c" 1>&6
else
cat > conftest.$ac_ext <<EOF
-#line 6867 "configure"
+#line 6933 "configure"
#include "confdefs.h"
#include <curses.h>
int main() {
@@ -6880,7 +6946,7 @@ make an error
; return 0; }
EOF
-if { (eval echo configure:6884: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
+if { (eval echo configure:6950: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
rm -rf conftest*
cf_cv_ncurses_header=predefined
else
@@ -6966,7 +7032,7 @@ done
;;
esac
echo $ac_n "checking for ncurses version""... $ac_c" 1>&6
-echo "configure:6970: checking for ncurses version" >&5
+echo "configure:7036: checking for ncurses version" >&5
if eval "test \"`echo '$''{'cf_cv_ncurses_version'+set}'`\" = set"; then
echo $ac_n "(cached) $ac_c" 1>&6
else
@@ -6991,7 +7057,7 @@ Autoconf "old"
#endif
EOF
cf_try="$ac_cpp conftest.$ac_ext 2>&5 | grep '^Autoconf ' >conftest.out"
- { (eval echo configure:6995: \"$cf_try\") 1>&5; (eval $cf_try) 2>&5; }
+ { (eval echo configure:7061: \"$cf_try\") 1>&5; (eval $cf_try) 2>&5; }
if test -f conftest.out ; then
cf_out=`cat conftest.out | sed -e 's@^Autoconf @@' -e 's@^[^"]*"@@' -e 's@".*@@'`
test -n "$cf_out" && cf_cv_ncurses_version="$cf_out"
@@ -7000,7 +7066,7 @@ EOF
else
cat > conftest.$ac_ext <<EOF
-#line 7004 "configure"
+#line 7070 "configure"
#include "confdefs.h"
#include <${cf_cv_ncurses_header-curses.h}>
@@ -7023,7 +7089,7 @@ int main()
exit(0);
}
EOF
-if { (eval echo configure:7027: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
+if { (eval echo configure:7093: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
then
cf_cv_ncurses_version=`cat $cf_tempfile`
@@ -7048,7 +7114,7 @@ echo "$ac_t""$cf_cv_ncurses_version" 1>&6
cf_ncurses_LIBS=""
cf_ncurses_SAVE="$LIBS"
echo $ac_n "checking for Gpm_Open in -lgpm""... $ac_c" 1>&6
-echo "configure:7052: checking for Gpm_Open in -lgpm" >&5
+echo "configure:7118: checking for Gpm_Open in -lgpm" >&5
ac_lib_var=`echo gpm'_'Gpm_Open | sed 'y%./+-%__p_%'`
if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
echo $ac_n "(cached) $ac_c" 1>&6
@@ -7056,7 +7122,7 @@ else
ac_save_LIBS="$LIBS"
LIBS="-lgpm $LIBS"
cat > conftest.$ac_ext <<EOF
-#line 7060 "configure"
+#line 7126 "configure"
#include "confdefs.h"
/* Override any gcc2 internal prototype to avoid an error. */
/* We use char because int might match the return type of a gcc2
@@ -7067,7 +7133,7 @@ int main() {
Gpm_Open()
; return 0; }
EOF
-if { (eval echo configure:7071: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
+if { (eval echo configure:7137: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
rm -rf conftest*
eval "ac_cv_lib_$ac_lib_var=yes"
else
@@ -7083,7 +7149,7 @@ fi
if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
echo "$ac_t""yes" 1>&6
echo $ac_n "checking for initscr in -lgpm""... $ac_c" 1>&6
-echo "configure:7087: checking for initscr in -lgpm" >&5
+echo "configure:7153: checking for initscr in -lgpm" >&5
ac_lib_var=`echo gpm'_'initscr | sed 'y%./+-%__p_%'`
if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
echo $ac_n "(cached) $ac_c" 1>&6
@@ -7091,7 +7157,7 @@ else
ac_save_LIBS="$LIBS"
LIBS="-lgpm $LIBS"
cat > conftest.$ac_ext <<EOF
-#line 7095 "configure"
+#line 7161 "configure"
#include "confdefs.h"
/* Override any gcc2 internal prototype to avoid an error. */
/* We use char because int might match the return type of a gcc2
@@ -7102,7 +7168,7 @@ int main() {
initscr()
; return 0; }
EOF
-if { (eval echo configure:7106: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
+if { (eval echo configure:7172: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
rm -rf conftest*
eval "ac_cv_lib_$ac_lib_var=yes"
else
@@ -7133,7 +7199,7 @@ freebsd*)
# This is only necessary if you are linking against an obsolete
# version of ncurses (but it should do no harm, since it's static).
echo $ac_n "checking for tgoto in -lmytinfo""... $ac_c" 1>&6
-echo "configure:7137: checking for tgoto in -lmytinfo" >&5
+echo "configure:7203: checking for tgoto in -lmytinfo" >&5
ac_lib_var=`echo mytinfo'_'tgoto | sed 'y%./+-%__p_%'`
if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
echo $ac_n "(cached) $ac_c" 1>&6
@@ -7141,7 +7207,7 @@ else
ac_save_LIBS="$LIBS"
LIBS="-lmytinfo $LIBS"
cat > conftest.$ac_ext <<EOF
-#line 7145 "configure"
+#line 7211 "configure"
#include "confdefs.h"
/* Override any gcc2 internal prototype to avoid an error. */
/* We use char because int might match the return type of a gcc2
@@ -7152,7 +7218,7 @@ int main() {
tgoto()
; return 0; }
EOF
-if { (eval echo configure:7156: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
+if { (eval echo configure:7222: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
rm -rf conftest*
eval "ac_cv_lib_$ac_lib_var=yes"
else
@@ -7180,12 +7246,12 @@ LIBS="$cf_ncurses_LIBS $LIBS"
cf_cv_have_lib_ncurses=no
cf_libdir=""
echo $ac_n "checking for initscr""... $ac_c" 1>&6
-echo "configure:7184: checking for initscr" >&5
+echo "configure:7250: checking for initscr" >&5
if eval "test \"`echo '$''{'ac_cv_func_initscr'+set}'`\" = set"; then
echo $ac_n "(cached) $ac_c" 1>&6
else
cat > conftest.$ac_ext <<EOF
-#line 7189 "configure"
+#line 7255 "configure"
#include "confdefs.h"
/* System header to define __stub macros and hopefully few prototypes,
which can conflict with char initscr(); below. */
@@ -7208,7 +7274,7 @@ initscr();
; return 0; }
EOF
-if { (eval echo configure:7212: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
+if { (eval echo configure:7278: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
rm -rf conftest*
eval "ac_cv_func_initscr=yes"
else
@@ -7228,17 +7294,17 @@ else
cf_save_LIBS="$LIBS"
echo $ac_n "checking for initscr in -lncurses""... $ac_c" 1>&6
-echo "configure:7232: checking for initscr in -lncurses" >&5
+echo "configure:7298: checking for initscr in -lncurses" >&5
LIBS="-lncurses $LIBS"
cat > conftest.$ac_ext <<EOF
-#line 7235 "configure"
+#line 7301 "configure"
#include "confdefs.h"
#include <${cf_cv_ncurses_header-curses.h}>
int main() {
initscr()
; return 0; }
EOF
-if { (eval echo configure:7242: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
+if { (eval echo configure:7308: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
rm -rf conftest*
echo "$ac_t""yes" 1>&6
cf_cv_have_lib_ncurses=yes
@@ -7265,17 +7331,17 @@ test "$prefix" != /usr && cf_search="$cf_search /usr/lib /usr/lib/ncur
for cf_libdir in $cf_search
do
echo $ac_n "checking for -lncurses in $cf_libdir""... $ac_c" 1>&6
-echo "configure:7269: checking for -lncurses in $cf_libdir" >&5
+echo "configure:7335: checking for -lncurses in $cf_libdir" >&5
LIBS="-L$cf_libdir -lncurses $cf_save_LIBS"
cat > conftest.$ac_ext <<EOF
-#line 7272 "configure"
+#line 7338 "configure"
#include "confdefs.h"
#include <${cf_cv_ncurses_header-curses.h}>
int main() {
initscr()
; return 0; }
EOF
-if { (eval echo configure:7279: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
+if { (eval echo configure:7345: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
rm -rf conftest*
echo "$ac_t""yes" 1>&6
cf_cv_have_lib_ncurses=yes
@@ -7307,7 +7373,7 @@ esac
if test -n "$cf_ncurses_LIBS" ; then
echo $ac_n "checking if we can link ncurses without $cf_ncurses_LIBS""... $ac_c" 1>&6
-echo "configure:7311: checking if we can link ncurses without $cf_ncurses_LIBS" >&5
+echo "configure:7377: checking if we can link ncurses without $cf_ncurses_LIBS" >&5
cf_ncurses_SAVE="$LIBS"
for p in $cf_ncurses_LIBS ; do
q=`echo $LIBS | sed -e 's/'$p' //' -e 's/'$p'$//'`
@@ -7316,14 +7382,14 @@ echo "configure:7311: checking if we can link ncurses without $cf_ncurses_LIBS"
fi
done
cat > conftest.$ac_ext <<EOF
-#line 7320 "configure"
+#line 7386 "configure"
#include "confdefs.h"
#include <${cf_cv_ncurses_header-curses.h}>
int main() {
initscr(); mousemask(0,0); tgoto((char *)0, 0, 0);
; return 0; }
EOF
-if { (eval echo configure:7327: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
+if { (eval echo configure:7393: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
rm -rf conftest*
echo "$ac_t""yes" 1>&6
else
@@ -7340,20 +7406,20 @@ fi
slang)
echo $ac_n "checking for slang header file""... $ac_c" 1>&6
-echo "configure:7344: checking for slang header file" >&5
+echo "configure:7410: checking for slang header file" >&5
if eval "test \"`echo '$''{'cf_cv_slang_header'+set}'`\" = set"; then
echo $ac_n "(cached) $ac_c" 1>&6
else
cat > conftest.$ac_ext <<EOF
-#line 7350 "configure"
+#line 7416 "configure"
#include "confdefs.h"
#include <slang.h>
int main() {
printf("%s\n", SLANG_VERSION)
; return 0; }
EOF
-if { (eval echo configure:7357: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
+if { (eval echo configure:7423: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
rm -rf conftest*
cf_cv_slang_header=predefined
else
@@ -7435,24 +7501,24 @@ else
cf_cv_termlib=none
cat > conftest.$ac_ext <<EOF
-#line 7439 "configure"
+#line 7505 "configure"
#include "confdefs.h"
int main() {
char *x=(char*)tgoto("",0,0)
; return 0; }
EOF
-if { (eval echo configure:7446: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
+if { (eval echo configure:7512: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
rm -rf conftest*
cat > conftest.$ac_ext <<EOF
-#line 7449 "configure"
+#line 7515 "configure"
#include "confdefs.h"
int main() {
int x=tigetstr("")
; return 0; }
EOF
-if { (eval echo configure:7456: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
+if { (eval echo configure:7522: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
rm -rf conftest*
cf_cv_termlib=terminfo
else
@@ -7474,7 +7540,7 @@ else
# HP-UX 9.x terminfo has setupterm, but no tigetstr.
if test "$cf_cv_termlib" = none; then
echo $ac_n "checking for tigetstr in -ltermlib""... $ac_c" 1>&6
-echo "configure:7478: checking for tigetstr in -ltermlib" >&5
+echo "configure:7544: checking for tigetstr in -ltermlib" >&5
ac_lib_var=`echo termlib'_'tigetstr | sed 'y%./+-%__p_%'`
if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
echo $ac_n "(cached) $ac_c" 1>&6
@@ -7482,7 +7548,7 @@ else
ac_save_LIBS="$LIBS"
LIBS="-ltermlib $LIBS"
cat > conftest.$ac_ext <<EOF
-#line 7486 "configure"
+#line 7552 "configure"
#include "confdefs.h"
/* Override any gcc2 internal prototype to avoid an error. */
/* We use char because int might match the return type of a gcc2
@@ -7493,7 +7559,7 @@ int main() {
tigetstr()
; return 0; }
EOF
-if { (eval echo configure:7497: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
+if { (eval echo configure:7563: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
rm -rf conftest*
eval "ac_cv_lib_$ac_lib_var=yes"
else
@@ -7516,7 +7582,7 @@ fi
fi
if test "$cf_cv_termlib" = none; then
echo $ac_n "checking for tgoto in -ltermlib""... $ac_c" 1>&6
-echo "configure:7520: checking for tgoto in -ltermlib" >&5
+echo "configure:7586: checking for tgoto in -ltermlib" >&5
ac_lib_var=`echo termlib'_'tgoto | sed 'y%./+-%__p_%'`
if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
echo $ac_n "(cached) $ac_c" 1>&6
@@ -7524,7 +7590,7 @@ else
ac_save_LIBS="$LIBS"
LIBS="-ltermlib $LIBS"
cat > conftest.$ac_ext <<EOF
-#line 7528 "configure"
+#line 7594 "configure"
#include "confdefs.h"
/* Override any gcc2 internal prototype to avoid an error. */
/* We use char because int might match the return type of a gcc2
@@ -7535,7 +7601,7 @@ int main() {
tgoto()
; return 0; }
EOF
-if { (eval echo configure:7539: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
+if { (eval echo configure:7605: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
rm -rf conftest*
eval "ac_cv_lib_$ac_lib_var=yes"
else
@@ -7559,7 +7625,7 @@ fi
if test "$cf_cv_termlib" = none; then
# allow curses library for broken AIX system.
echo $ac_n "checking for initscr in -lcurses""... $ac_c" 1>&6
-echo "configure:7563: checking for initscr in -lcurses" >&5
+echo "configure:7629: checking for initscr in -lcurses" >&5
ac_lib_var=`echo curses'_'initscr | sed 'y%./+-%__p_%'`
if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
echo $ac_n "(cached) $ac_c" 1>&6
@@ -7567,7 +7633,7 @@ else
ac_save_LIBS="$LIBS"
LIBS="-lcurses $LIBS"
cat > conftest.$ac_ext <<EOF
-#line 7571 "configure"
+#line 7637 "configure"
#include "confdefs.h"
/* Override any gcc2 internal prototype to avoid an error. */
/* We use char because int might match the return type of a gcc2
@@ -7578,7 +7644,7 @@ int main() {
initscr()
; return 0; }
EOF
-if { (eval echo configure:7582: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
+if { (eval echo configure:7648: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
rm -rf conftest*
eval "ac_cv_lib_$ac_lib_var=yes"
else
@@ -7599,7 +7665,7 @@ else
fi
echo $ac_n "checking for tgoto in -ltermcap""... $ac_c" 1>&6
-echo "configure:7603: checking for tgoto in -ltermcap" >&5
+echo "configure:7669: checking for tgoto in -ltermcap" >&5
ac_lib_var=`echo termcap'_'tgoto | sed 'y%./+-%__p_%'`
if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
echo $ac_n "(cached) $ac_c" 1>&6
@@ -7607,7 +7673,7 @@ else
ac_save_LIBS="$LIBS"
LIBS="-ltermcap $LIBS"
cat > conftest.$ac_ext <<EOF
-#line 7611 "configure"
+#line 7677 "configure"
#include "confdefs.h"
/* Override any gcc2 internal prototype to avoid an error. */
/* We use char because int might match the return type of a gcc2
@@ -7618,7 +7684,7 @@ int main() {
tgoto()
; return 0; }
EOF
-if { (eval echo configure:7622: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
+if { (eval echo configure:7688: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
rm -rf conftest*
eval "ac_cv_lib_$ac_lib_var=yes"
else
@@ -7641,7 +7707,7 @@ fi
fi
if test "$cf_cv_termlib" = none; then
echo $ac_n "checking for tgoto in -ltermcap""... $ac_c" 1>&6
-echo "configure:7645: checking for tgoto in -ltermcap" >&5
+echo "configure:7711: checking for tgoto in -ltermcap" >&5
ac_lib_var=`echo termcap'_'tgoto | sed 'y%./+-%__p_%'`
if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
echo $ac_n "(cached) $ac_c" 1>&6
@@ -7649,7 +7715,7 @@ else
ac_save_LIBS="$LIBS"
LIBS="-ltermcap $LIBS"
cat > conftest.$ac_ext <<EOF
-#line 7653 "configure"
+#line 7719 "configure"
#include "confdefs.h"
/* Override any gcc2 internal prototype to avoid an error. */
/* We use char because int might match the return type of a gcc2
@@ -7660,7 +7726,7 @@ int main() {
tgoto()
; return 0; }
EOF
-if { (eval echo configure:7664: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
+if { (eval echo configure:7730: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
rm -rf conftest*
eval "ac_cv_lib_$ac_lib_var=yes"
else
@@ -7683,7 +7749,7 @@ fi
fi
if test "$cf_cv_termlib" = none; then
echo $ac_n "checking for tgoto in -lncurses""... $ac_c" 1>&6
-echo "configure:7687: checking for tgoto in -lncurses" >&5
+echo "configure:7753: checking for tgoto in -lncurses" >&5
ac_lib_var=`echo ncurses'_'tgoto | sed 'y%./+-%__p_%'`
if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
echo $ac_n "(cached) $ac_c" 1>&6
@@ -7691,7 +7757,7 @@ else
ac_save_LIBS="$LIBS"
LIBS="-lncurses $LIBS"
cat > conftest.$ac_ext <<EOF
-#line 7695 "configure"
+#line 7761 "configure"
#include "confdefs.h"
/* Override any gcc2 internal prototype to avoid an error. */
/* We use char because int might match the return type of a gcc2
@@ -7702,7 +7768,7 @@ int main() {
tgoto()
; return 0; }
EOF
-if { (eval echo configure:7706: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
+if { (eval echo configure:7772: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
rm -rf conftest*
eval "ac_cv_lib_$ac_lib_var=yes"
else
@@ -7734,12 +7800,12 @@ fi
cf_slang_LIBS2="$LIBS"
echo $ac_n "checking for acos""... $ac_c" 1>&6
-echo "configure:7738: checking for acos" >&5
+echo "configure:7804: checking for acos" >&5
if eval "test \"`echo '$''{'ac_cv_func_acos'+set}'`\" = set"; then
echo $ac_n "(cached) $ac_c" 1>&6
else
cat > conftest.$ac_ext <<EOF
-#line 7743 "configure"
+#line 7809 "configure"
#include "confdefs.h"
/* System header to define __stub macros and hopefully few prototypes,
which can conflict with char acos(); below. */
@@ -7762,7 +7828,7 @@ acos();
; return 0; }
EOF
-if { (eval echo configure:7766: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
+if { (eval echo configure:7832: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
rm -rf conftest*
eval "ac_cv_func_acos=yes"
else
@@ -7781,7 +7847,7 @@ else
echo "$ac_t""no" 1>&6
echo $ac_n "checking for acos in -lm""... $ac_c" 1>&6
-echo "configure:7785: checking for acos in -lm" >&5
+echo "configure:7851: checking for acos in -lm" >&5
ac_lib_var=`echo m'_'acos | sed 'y%./+-%__p_%'`
if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
echo $ac_n "(cached) $ac_c" 1>&6
@@ -7789,7 +7855,7 @@ else
ac_save_LIBS="$LIBS"
LIBS="-lm $LIBS $LIBS"
cat > conftest.$ac_ext <<EOF
-#line 7793 "configure"
+#line 7859 "configure"
#include "confdefs.h"
/* Override any gcc2 internal prototype to avoid an error. */
/* We use char because int might match the return type of a gcc2
@@ -7800,7 +7866,7 @@ int main() {
acos()
; return 0; }
EOF
-if { (eval echo configure:7804: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
+if { (eval echo configure:7870: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
rm -rf conftest*
eval "ac_cv_lib_$ac_lib_var=yes"
else
@@ -7840,12 +7906,12 @@ fi
cf_cv_have_lib_slang=no
cf_libdir=""
echo $ac_n "checking for SLtt_get_screen_size""... $ac_c" 1>&6
-echo "configure:7844: checking for SLtt_get_screen_size" >&5
+echo "configure:7910: checking for SLtt_get_screen_size" >&5
if eval "test \"`echo '$''{'ac_cv_func_SLtt_get_screen_size'+set}'`\" = set"; then
echo $ac_n "(cached) $ac_c" 1>&6
else
cat > conftest.$ac_ext <<EOF
-#line 7849 "configure"
+#line 7915 "configure"
#include "confdefs.h"
/* System header to define __stub macros and hopefully few prototypes,
which can conflict with char SLtt_get_screen_size(); below. */
@@ -7868,7 +7934,7 @@ SLtt_get_screen_size();
; return 0; }
EOF
-if { (eval echo configure:7872: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
+if { (eval echo configure:7938: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
rm -rf conftest*
eval "ac_cv_func_SLtt_get_screen_size=yes"
else
@@ -7888,17 +7954,17 @@ else
cf_save_LIBS="$LIBS"
echo $ac_n "checking for SLtt_get_screen_size in -lslang""... $ac_c" 1>&6
-echo "configure:7892: checking for SLtt_get_screen_size in -lslang" >&5
+echo "configure:7958: checking for SLtt_get_screen_size in -lslang" >&5
LIBS="-lslang $LIBS"
cat > conftest.$ac_ext <<EOF
-#line 7895 "configure"
+#line 7961 "configure"
#include "confdefs.h"
#include <slang.h>
int main() {
SLtt_get_screen_size()
; return 0; }
EOF
-if { (eval echo configure:7902: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
+if { (eval echo configure:7968: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
rm -rf conftest*
echo "$ac_t""yes" 1>&6
cf_cv_have_lib_slang=yes
@@ -7925,17 +7991,17 @@ test "$prefix" != /usr && cf_search="$cf_search /usr/lib /usr/lib/slan
for cf_libdir in $cf_search
do
echo $ac_n "checking for -lslang in $cf_libdir""... $ac_c" 1>&6
-echo "configure:7929: checking for -lslang in $cf_libdir" >&5
+echo "configure:7995: checking for -lslang in $cf_libdir" >&5
LIBS="-L$cf_libdir -lslang $cf_save_LIBS"
cat > conftest.$ac_ext <<EOF
-#line 7932 "configure"
+#line 7998 "configure"
#include "confdefs.h"
#include <slang.h>
int main() {
SLtt_get_screen_size()
; return 0; }
EOF
-if { (eval echo configure:7939: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
+if { (eval echo configure:8005: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
rm -rf conftest*
echo "$ac_t""yes" 1>&6
cf_cv_have_lib_slang=yes
@@ -7966,7 +8032,7 @@ esac
cf_slang_LIBS3="$LIBS"
echo $ac_n "checking if we can link slang without termcap""... $ac_c" 1>&6
-echo "configure:7970: checking if we can link slang without termcap" >&5
+echo "configure:8036: checking if we can link slang without termcap" >&5
if test -n "`echo $cf_slang_LIBS1 | sed -e 's/ //g'`" ; then
cf_exclude=`echo ".$cf_slang_LIBS2" | sed -e "s@$cf_slang_LIBS1@@" -e 's@^.@@'`
else
@@ -7974,14 +8040,14 @@ else
fi
LIBS=`echo ".$cf_slang_LIBS3" | sed -e "s@$cf_exclude@@" -e 's@^.@@'`
cat > conftest.$ac_ext <<EOF
-#line 7978 "configure"
+#line 8044 "configure"
#include "confdefs.h"
#include <slang.h>
int main() {
SLtt_get_screen_size()
; return 0; }
EOF
-if { (eval echo configure:7985: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
+if { (eval echo configure:8051: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
rm -rf conftest*
cf_result=yes
else
@@ -8001,7 +8067,7 @@ eval cf_libdir=$libdir
cf_libdir=`echo $cf_libdir | sed -e s@'^NONE/'@$prefix/@ -e s@'^NONE/'@$ac_default_prefix/@`
echo $ac_n "checking for location of config-file""... $ac_c" 1>&6
-echo "configure:8005: checking for location of config-file" >&5
+echo "configure:8071: checking for location of config-file" >&5
LYNX_CFG_FILE=$cf_libdir/lynx.cfg
cat >> confdefs.h <<EOF
#define LYNX_CFG_FILE "$LYNX_CFG_FILE"
@@ -8011,12 +8077,12 @@ echo "$ac_t""$LYNX_CFG_FILE" 1>&6
echo $ac_n "checking for ANSI C header files""... $ac_c" 1>&6
-echo "configure:8015: checking for ANSI C header files" >&5
+echo "configure:8081: checking for ANSI C header files" >&5
if eval "test \"`echo '$''{'ac_cv_header_stdc'+set}'`\" = set"; then
echo $ac_n "(cached) $ac_c" 1>&6
else
cat > conftest.$ac_ext <<EOF
-#line 8020 "configure"
+#line 8086 "configure"
#include "confdefs.h"
#include <stdlib.h>
#include <stdarg.h>
@@ -8024,7 +8090,7 @@ else
#include <float.h>
EOF
ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
-{ (eval echo configure:8028: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
+{ (eval echo configure:8094: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
if test -z "$ac_err"; then
rm -rf conftest*
@@ -8041,7 +8107,7 @@ rm -f conftest*
if test $ac_cv_header_stdc = yes; then
# SunOS 4.x string.h does not declare mem*, contrary to ANSI.
cat > conftest.$ac_ext <<EOF
-#line 8045 "configure"
+#line 8111 "configure"
#include "confdefs.h"
#include <string.h>
EOF
@@ -8059,7 +8125,7 @@ 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 <<EOF
-#line 8063 "configure"
+#line 8129 "configure"
#include "confdefs.h"
#include <stdlib.h>
EOF
@@ -8080,7 +8146,7 @@ if test "$cross_compiling" = yes; then
:
else
cat > conftest.$ac_ext <<EOF
-#line 8084 "configure"
+#line 8150 "configure"
#include "confdefs.h"
#include <ctype.h>
#define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
@@ -8091,7 +8157,7 @@ if (XOR (islower (i), ISLOWER (i)) || toupper (i) != TOUPPER (i)) exit(2);
exit (0); }
EOF
-if { (eval echo configure:8095: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
+if { (eval echo configure:8161: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
then
:
else
@@ -8115,12 +8181,12 @@ EOF
fi
echo $ac_n "checking whether time.h and sys/time.h may both be included""... $ac_c" 1>&6
-echo "configure:8119: checking whether time.h and sys/time.h may both be included" >&5
+echo "configure:8185: checking whether time.h and sys/time.h may both be included" >&5
if eval "test \"`echo '$''{'ac_cv_header_time'+set}'`\" = set"; then
echo $ac_n "(cached) $ac_c" 1>&6
else
cat > conftest.$ac_ext <<EOF
-#line 8124 "configure"
+#line 8190 "configure"
#include "confdefs.h"
#include <sys/types.h>
#include <sys/time.h>
@@ -8129,7 +8195,7 @@ int main() {
struct tm *tp;
; return 0; }
EOF
-if { (eval echo configure:8133: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
+if { (eval echo configure:8199: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
rm -rf conftest*
ac_cv_header_time=yes
else
@@ -8154,12 +8220,12 @@ for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h
do
ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
echo $ac_n "checking for $ac_hdr that defines DIR""... $ac_c" 1>&6
-echo "configure:8158: checking for $ac_hdr that defines DIR" >&5
+echo "configure:8224: checking for $ac_hdr that defines DIR" >&5
if eval "test \"`echo '$''{'ac_cv_header_dirent_$ac_safe'+set}'`\" = set"; then
echo $ac_n "(cached) $ac_c" 1>&6
else
cat > conftest.$ac_ext <<EOF
-#line 8163 "configure"
+#line 8229 "configure"
#include "confdefs.h"
#include <sys/types.h>
#include <$ac_hdr>
@@ -8167,7 +8233,7 @@ int main() {
DIR *dirp = 0;
; return 0; }
EOF
-if { (eval echo configure:8171: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
+if { (eval echo configure:8237: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
rm -rf conftest*
eval "ac_cv_header_dirent_$ac_safe=yes"
else
@@ -8192,7 +8258,7 @@ done
# Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
if test $ac_header_dirent = dirent.h; then
echo $ac_n "checking for opendir in -ldir""... $ac_c" 1>&6
-echo "configure:8196: checking for opendir in -ldir" >&5
+echo "configure:8262: checking for opendir in -ldir" >&5
ac_lib_var=`echo dir'_'opendir | sed 'y%./+-%__p_%'`
if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
echo $ac_n "(cached) $ac_c" 1>&6
@@ -8200,7 +8266,7 @@ else
ac_save_LIBS="$LIBS"
LIBS="-ldir $LIBS"
cat > conftest.$ac_ext <<EOF
-#line 8204 "configure"
+#line 8270 "configure"
#include "confdefs.h"
/* Override any gcc2 internal prototype to avoid an error. */
/* We use char because int might match the return type of a gcc2
@@ -8211,7 +8277,7 @@ int main() {
opendir()
; return 0; }
EOF
-if { (eval echo configure:8215: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
+if { (eval echo configure:8281: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
rm -rf conftest*
eval "ac_cv_lib_$ac_lib_var=yes"
else
@@ -8233,7 +8299,7 @@ fi
else
echo $ac_n "checking for opendir in -lx""... $ac_c" 1>&6
-echo "configure:8237: checking for opendir in -lx" >&5
+echo "configure:8303: checking for opendir in -lx" >&5
ac_lib_var=`echo x'_'opendir | sed 'y%./+-%__p_%'`
if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
echo $ac_n "(cached) $ac_c" 1>&6
@@ -8241,7 +8307,7 @@ else
ac_save_LIBS="$LIBS"
LIBS="-lx $LIBS"
cat > conftest.$ac_ext <<EOF
-#line 8245 "configure"
+#line 8311 "configure"
#include "confdefs.h"
/* Override any gcc2 internal prototype to avoid an error. */
/* We use char because int might match the return type of a gcc2
@@ -8252,7 +8318,7 @@ int main() {
opendir()
; return 0; }
EOF
-if { (eval echo configure:8256: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
+if { (eval echo configure:8322: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
rm -rf conftest*
eval "ac_cv_lib_$ac_lib_var=yes"
else
@@ -8291,17 +8357,17 @@ for ac_hdr in \
do
ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
-echo "configure:8295: checking for $ac_hdr" >&5
+echo "configure:8361: checking for $ac_hdr" >&5
if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
echo $ac_n "(cached) $ac_c" 1>&6
else
cat > conftest.$ac_ext <<EOF
-#line 8300 "configure"
+#line 8366 "configure"
#include "confdefs.h"
#include <$ac_hdr>
EOF
ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
-{ (eval echo configure:8305: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
+{ (eval echo configure:8371: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
if test -z "$ac_err"; then
rm -rf conftest*
@@ -8329,13 +8395,13 @@ done
echo $ac_n "checking termio.h and termios.h""... $ac_c" 1>&6
-echo "configure:8333: checking termio.h and termios.h" >&5
+echo "configure:8399: checking termio.h and termios.h" >&5
if eval "test \"`echo '$''{'cf_cv_termio_and_termios'+set}'`\" = set"; then
echo $ac_n "(cached) $ac_c" 1>&6
else
cat > conftest.$ac_ext <<EOF
-#line 8339 "configure"
+#line 8405 "configure"
#include "confdefs.h"
#if HAVE_TERMIO_H
@@ -8348,7 +8414,7 @@ int main() {
putchar (0x0a)
; return 0; }
EOF
-if { (eval echo configure:8352: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
+if { (eval echo configure:8418: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
rm -rf conftest*
cf_cv_termio_and_termios=yes
else
@@ -8371,17 +8437,17 @@ for ac_hdr in sys/wait.h
do
ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
-echo "configure:8375: checking for $ac_hdr" >&5
+echo "configure:8441: checking for $ac_hdr" >&5
if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
echo $ac_n "(cached) $ac_c" 1>&6
else
cat > conftest.$ac_ext <<EOF
-#line 8380 "configure"
+#line 8446 "configure"
#include "confdefs.h"
#include <$ac_hdr>
EOF
ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
-{ (eval echo configure:8385: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
+{ (eval echo configure:8451: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
if test -z "$ac_err"; then
rm -rf conftest*
@@ -8418,17 +8484,17 @@ for ac_hdr in wait.h
do
ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
-echo "configure:8422: checking for $ac_hdr" >&5
+echo "configure:8488: checking for $ac_hdr" >&5
if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
echo $ac_n "(cached) $ac_c" 1>&6
else
cat > conftest.$ac_ext <<EOF
-#line 8427 "configure"
+#line 8493 "configure"
#include "confdefs.h"
#include <$ac_hdr>
EOF
ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
-{ (eval echo configure:8432: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
+{ (eval echo configure:8498: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
if test -z "$ac_err"; then
rm -rf conftest*
@@ -8458,17 +8524,17 @@ for ac_hdr in waitstatus.h
do
ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
-echo "configure:8462: checking for $ac_hdr" >&5
+echo "configure:8528: checking for $ac_hdr" >&5
if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
echo $ac_n "(cached) $ac_c" 1>&6
else
cat > conftest.$ac_ext <<EOF
-#line 8467 "configure"
+#line 8533 "configure"
#include "confdefs.h"
#include <$ac_hdr>
EOF
ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
-{ (eval echo configure:8472: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
+{ (eval echo configure:8538: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
if test -z "$ac_err"; then
rm -rf conftest*
@@ -8509,13 +8575,13 @@ fi
echo $ac_n "checking for union wait""... $ac_c" 1>&6
-echo "configure:8513: checking for union wait" >&5
+echo "configure:8579: checking for union wait" >&5
if eval "test \"`echo '$''{'cf_cv_type_unionwait'+set}'`\" = set"; then
echo $ac_n "(cached) $ac_c" 1>&6
else
cat > conftest.$ac_ext <<EOF
-#line 8519 "configure"
+#line 8585 "configure"
#include "confdefs.h"
$cf_wait_headers
int main() {
@@ -8526,7 +8592,7 @@ int x;
; return 0; }
EOF
-if { (eval echo configure:8530: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
+if { (eval echo configure:8596: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
rm -rf conftest*
cf_cv_type_unionwait=no
echo compiles ok w/o union wait 1>&5
@@ -8537,7 +8603,7 @@ else
rm -rf conftest*
cat > conftest.$ac_ext <<EOF
-#line 8541 "configure"
+#line 8607 "configure"
#include "confdefs.h"
$cf_wait_headers
int main() {
@@ -8552,7 +8618,7 @@ union wait x;
; return 0; }
EOF
-if { (eval echo configure:8556: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
+if { (eval echo configure:8622: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
rm -rf conftest*
cf_cv_type_unionwait=yes
echo compiles ok with union wait and possibly macros too 1>&5
@@ -8579,20 +8645,20 @@ EOF
if test $cf_cv_type_unionwait = yes; then
echo $ac_n "checking if union wait can be used as wait-arg""... $ac_c" 1>&6
-echo "configure:8583: checking if union wait can be used as wait-arg" >&5
+echo "configure:8649: checking if union wait can be used as wait-arg" >&5
if eval "test \"`echo '$''{'cf_cv_arg_union_wait'+set}'`\" = set"; then
echo $ac_n "(cached) $ac_c" 1>&6
else
cat > conftest.$ac_ext <<EOF
-#line 8589 "configure"
+#line 8655 "configure"
#include "confdefs.h"
$cf_wait_headers
int main() {
union wait x; wait(&x)
; return 0; }
EOF
-if { (eval echo configure:8596: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
+if { (eval echo configure:8662: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
rm -rf conftest*
cf_cv_arg_union_wait=yes
else
@@ -8612,20 +8678,20 @@ EOF
echo $ac_n "checking if union wait can be used as waitpid-arg""... $ac_c" 1>&6
-echo "configure:8616: checking if union wait can be used as waitpid-arg" >&5
+echo "configure:8682: checking if union wait can be used as waitpid-arg" >&5
if eval "test \"`echo '$''{'cf_cv_arg_union_waitpid'+set}'`\" = set"; then
echo $ac_n "(cached) $ac_c" 1>&6
else
cat > conftest.$ac_ext <<EOF
-#line 8622 "configure"
+#line 8688 "configure"
#include "confdefs.h"
$cf_wait_headers
int main() {
union wait x; waitpid(0, &x, 0)
; return 0; }
EOF
-if { (eval echo configure:8629: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
+if { (eval echo configure:8695: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
rm -rf conftest*
cf_cv_arg_union_waitpid=yes
else
@@ -8651,17 +8717,17 @@ for ac_hdr in stdarg.h varargs.h
do
ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
-echo "configure:8655: checking for $ac_hdr" >&5
+echo "configure:8721: checking for $ac_hdr" >&5
if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
echo $ac_n "(cached) $ac_c" 1>&6
else
cat > conftest.$ac_ext <<EOF
-#line 8660 "configure"
+#line 8726 "configure"
#include "confdefs.h"
#include <$ac_hdr>
EOF
ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
-{ (eval echo configure:8665: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
+{ (eval echo configure:8731: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
if test -z "$ac_err"; then
rm -rf conftest*
@@ -8688,13 +8754,13 @@ fi
done
echo $ac_n "checking for standard varargs""... $ac_c" 1>&6
-echo "configure:8692: checking for standard varargs" >&5
+echo "configure:8758: checking for standard varargs" >&5
if eval "test \"`echo '$''{'cf_cv_ansi_varargs'+set}'`\" = set"; then
echo $ac_n "(cached) $ac_c" 1>&6
else
cat > conftest.$ac_ext <<EOF
-#line 8698 "configure"
+#line 8764 "configure"
#include "confdefs.h"
#if HAVE_STDARG_H
@@ -8709,7 +8775,7 @@ int main() {
return 0;} int foo(char *fmt,...){va_list args;va_start(args,fmt);va_end(args)
; return 0; }
EOF
-if { (eval echo configure:8713: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
+if { (eval echo configure:8779: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
rm -rf conftest*
cf_cv_ansi_varargs=yes
else
@@ -8729,12 +8795,12 @@ EOF
echo $ac_n "checking for uid_t in sys/types.h""... $ac_c" 1>&6
-echo "configure:8733: checking for uid_t in sys/types.h" >&5
+echo "configure:8799: checking for uid_t in sys/types.h" >&5
if eval "test \"`echo '$''{'ac_cv_type_uid_t'+set}'`\" = set"; then
echo $ac_n "(cached) $ac_c" 1>&6
else
cat > conftest.$ac_ext <<EOF
-#line 8738 "configure"
+#line 8804 "configure"
#include "confdefs.h"
#include <sys/types.h>
EOF
@@ -8763,7 +8829,7 @@ EOF
fi
echo $ac_n "checking type of array argument to getgroups""... $ac_c" 1>&6
-echo "configure:8767: checking type of array argument to getgroups" >&5
+echo "configure:8833: checking type of array argument to getgroups" >&5
if eval "test \"`echo '$''{'ac_cv_type_getgroups'+set}'`\" = set"; then
echo $ac_n "(cached) $ac_c" 1>&6
else
@@ -8771,7 +8837,7 @@ else
ac_cv_type_getgroups=cross
else
cat > conftest.$ac_ext <<EOF
-#line 8775 "configure"
+#line 8841 "configure"
#include "confdefs.h"
/* Thanks to Mike Rendell for this test. */
@@ -8796,7 +8862,7 @@ main()
}
EOF
-if { (eval echo configure:8800: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
+if { (eval echo configure:8866: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
then
ac_cv_type_getgroups=gid_t
else
@@ -8810,7 +8876,7 @@ fi
if test $ac_cv_type_getgroups = cross; then
cat > conftest.$ac_ext <<EOF
-#line 8814 "configure"
+#line 8880 "configure"
#include "confdefs.h"
#include <unistd.h>
EOF
@@ -8834,12 +8900,12 @@ EOF
echo $ac_n "checking for pid_t""... $ac_c" 1>&6
-echo "configure:8838: checking for pid_t" >&5
+echo "configure:8904: checking for pid_t" >&5
if eval "test \"`echo '$''{'ac_cv_type_pid_t'+set}'`\" = set"; then
echo $ac_n "(cached) $ac_c" 1>&6
else
cat > conftest.$ac_ext <<EOF
-#line 8843 "configure"
+#line 8909 "configure"
#include "confdefs.h"
#include <sys/types.h>
#if STDC_HEADERS
@@ -8867,12 +8933,12 @@ EOF
fi
echo $ac_n "checking for uid_t in sys/types.h""... $ac_c" 1>&6
-echo "configure:8871: checking for uid_t in sys/types.h" >&5
+echo "configure:8937: checking for uid_t in sys/types.h" >&5
if eval "test \"`echo '$''{'ac_cv_type_uid_t'+set}'`\" = set"; then
echo $ac_n "(cached) $ac_c" 1>&6
else
cat > conftest.$ac_ext <<EOF
-#line 8876 "configure"
+#line 8942 "configure"
#include "confdefs.h"
#include <sys/types.h>
EOF
@@ -8901,12 +8967,12 @@ EOF
fi
echo $ac_n "checking for mode_t""... $ac_c" 1>&6
-echo "configure:8905: checking for mode_t" >&5
+echo "configure:8971: checking for mode_t" >&5
if eval "test \"`echo '$''{'ac_cv_type_mode_t'+set}'`\" = set"; then
echo $ac_n "(cached) $ac_c" 1>&6
else
cat > conftest.$ac_ext <<EOF
-#line 8910 "configure"
+#line 8976 "configure"
#include "confdefs.h"
#include <sys/types.h>
#if STDC_HEADERS
@@ -8937,17 +9003,17 @@ fi
ac_safe=`echo "vfork.h" | sed 'y%./+-%__p_%'`
echo $ac_n "checking for vfork.h""... $ac_c" 1>&6
-echo "configure:8941: checking for vfork.h" >&5
+echo "configure:9007: checking for vfork.h" >&5
if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
echo $ac_n "(cached) $ac_c" 1>&6
else
cat > conftest.$ac_ext <<EOF
-#line 8946 "configure"
+#line 9012 "configure"
#include "confdefs.h"
#include <vfork.h>
EOF
ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
-{ (eval echo configure:8951: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
+{ (eval echo configure:9017: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
if test -z "$ac_err"; then
rm -rf conftest*
@@ -8972,18 +9038,18 @@ else
fi
echo $ac_n "checking for working vfork""... $ac_c" 1>&6
-echo "configure:8976: checking for working vfork" >&5
+echo "configure:9042: checking for working vfork" >&5
if eval "test \"`echo '$''{'ac_cv_func_vfork_works'+set}'`\" = set"; then
echo $ac_n "(cached) $ac_c" 1>&6
else
if test "$cross_compiling" = yes; then
echo $ac_n "checking for vfork""... $ac_c" 1>&6
-echo "configure:8982: checking for vfork" >&5
+echo "configure:9048: checking for vfork" >&5
if eval "test \"`echo '$''{'ac_cv_func_vfork'+set}'`\" = set"; then
echo $ac_n "(cached) $ac_c" 1>&6
else
cat > conftest.$ac_ext <<EOF
-#line 8987 "configure"
+#line 9053 "configure"
#include "confdefs.h"
/* System header to define __stub macros and hopefully few prototypes,
which can conflict with char vfork(); below. */
@@ -9006,7 +9072,7 @@ vfork();
; return 0; }
EOF
-if { (eval echo configure:9010: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
+if { (eval echo configure:9076: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
rm -rf conftest*
eval "ac_cv_func_vfork=yes"
else
@@ -9028,7 +9094,7 @@ fi
ac_cv_func_vfork_works=$ac_cv_func_vfork
else
cat > conftest.$ac_ext <<EOF
-#line 9032 "configure"
+#line 9098 "configure"
#include "confdefs.h"
/* Thanks to Paul Eggert for this test. */
#include <stdio.h>
@@ -9123,7 +9189,7 @@ main() {
}
}
EOF
-if { (eval echo configure:9127: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
+if { (eval echo configure:9193: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
then
ac_cv_func_vfork_works=yes
else
@@ -9147,13 +9213,13 @@ fi
echo $ac_n "checking if we should use fcntl or ioctl""... $ac_c" 1>&6
-echo "configure:9151: checking if we should use fcntl or ioctl" >&5
+echo "configure:9217: checking if we should use fcntl or ioctl" >&5
if eval "test \"`echo '$''{'cf_cv_fionbio'+set}'`\" = set"; then
echo $ac_n "(cached) $ac_c" 1>&6
else
cat > conftest.$ac_ext <<EOF
-#line 9157 "configure"
+#line 9223 "configure"
#include "confdefs.h"
#include <sys/types.h>
@@ -9165,7 +9231,7 @@ int main() {
; return 0; }
EOF
-if { (eval echo configure:9169: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
+if { (eval echo configure:9235: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
rm -rf conftest*
cf_cv_fionbio=ioctl
else
@@ -9174,7 +9240,7 @@ else
rm -rf conftest*
cat > conftest.$ac_ext <<EOF
-#line 9178 "configure"
+#line 9244 "configure"
#include "confdefs.h"
#include <sys/types.h>
@@ -9191,7 +9257,7 @@ int main() {
; return 0; }
EOF
-if { (eval echo configure:9195: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
+if { (eval echo configure:9261: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
rm -rf conftest*
cf_cv_fionbio=fcntl
else
@@ -9214,20 +9280,20 @@ EOF
echo $ac_n "checking for broken/missing definition of remove""... $ac_c" 1>&6
-echo "configure:9218: checking for broken/missing definition of remove" >&5
+echo "configure:9284: checking for broken/missing definition of remove" >&5
if eval "test \"`echo '$''{'cf_cv_baddef_remove'+set}'`\" = set"; then
echo $ac_n "(cached) $ac_c" 1>&6
else
cat > conftest.$ac_ext <<EOF
-#line 9224 "configure"
+#line 9290 "configure"
#include "confdefs.h"
#include <stdio.h>
int main() {
remove("dummy")
; return 0; }
EOF
-if { (eval echo configure:9231: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
+if { (eval echo configure:9297: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
rm -rf conftest*
cf_cv_baddef_remove=no
else
@@ -9235,7 +9301,7 @@ else
cat conftest.$ac_ext >&5
rm -rf conftest*
cat > conftest.$ac_ext <<EOF
-#line 9239 "configure"
+#line 9305 "configure"
#include "confdefs.h"
#include <stdio.h>
int __unlink(name) { return unlink(name); }
@@ -9243,7 +9309,7 @@ int main() {
remove("dummy")
; return 0; }
EOF
-if { (eval echo configure:9247: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
+if { (eval echo configure:9313: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
rm -rf conftest*
cf_cv_baddef_remove=yes
else
@@ -9267,13 +9333,13 @@ EOF
echo $ac_n "checking for lstat""... $ac_c" 1>&6
-echo "configure:9271: checking for lstat" >&5
+echo "configure:9337: checking for lstat" >&5
if eval "test \"`echo '$''{'ac_cv_func_lstat'+set}'`\" = set"; then
echo $ac_n "(cached) $ac_c" 1>&6
else
cat > conftest.$ac_ext <<EOF
-#line 9277 "configure"
+#line 9343 "configure"
#include "confdefs.h"
#include <sys/types.h>
@@ -9282,7 +9348,7 @@ int main() {
lstat(".", (struct stat *)0)
; return 0; }
EOF
-if { (eval echo configure:9286: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
+if { (eval echo configure:9352: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
rm -rf conftest*
ac_cv_func_lstat=yes
else
@@ -9316,12 +9382,12 @@ for ac_func in \
do
echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
-echo "configure:9320: checking for $ac_func" >&5
+echo "configure:9386: checking for $ac_func" >&5
if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
echo $ac_n "(cached) $ac_c" 1>&6
else
cat > conftest.$ac_ext <<EOF
-#line 9325 "configure"
+#line 9391 "configure"
#include "confdefs.h"
/* System header to define __stub macros and hopefully few prototypes,
which can conflict with char $ac_func(); below. */
@@ -9344,7 +9410,7 @@ $ac_func();
; return 0; }
EOF
-if { (eval echo configure:9348: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
+if { (eval echo configure:9414: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
rm -rf conftest*
eval "ac_cv_func_$ac_func=yes"
else
@@ -9374,12 +9440,12 @@ for ac_func in \
do
echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
-echo "configure:9378: checking for $ac_func" >&5
+echo "configure:9444: checking for $ac_func" >&5
if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
echo $ac_n "(cached) $ac_c" 1>&6
else
cat > conftest.$ac_ext <<EOF
-#line 9383 "configure"
+#line 9449 "configure"
#include "confdefs.h"
/* System header to define __stub macros and hopefully few prototypes,
which can conflict with char $ac_func(); below. */
@@ -9402,7 +9468,7 @@ $ac_func();
; return 0; }
EOF
-if { (eval echo configure:9406: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
+if { (eval echo configure:9472: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
rm -rf conftest*
eval "ac_cv_func_$ac_func=yes"
else
@@ -9433,12 +9499,12 @@ for ac_func in strstr
do
echo $ac_n "checking for $ac_func declaration""... $ac_c" 1>&6
-echo "configure:9437: checking for $ac_func declaration" >&5
+echo "configure:9503: checking for $ac_func declaration" >&5
if eval "test \"`echo '$''{'ac_cv_func_decl_$ac_func'+set}'`\" = set"; then
echo $ac_n "(cached) $ac_c" 1>&6
else
cat > conftest.$ac_ext <<EOF
-#line 9442 "configure"
+#line 9508 "configure"
#include "confdefs.h"
#include <string.h>
int main() {
@@ -9447,11 +9513,11 @@ extern int ${ac_func}();
#endif
; return 0; }
EOF
-if { (eval echo configure:9451: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
+if { (eval echo configure:9517: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
rm -rf conftest*
cat > conftest.$ac_ext <<EOF
-#line 9455 "configure"
+#line 9521 "configure"
#include "confdefs.h"
#include <string.h>
int main() {
@@ -9460,7 +9526,7 @@ int (*p)() = ${ac_func};
#endif
; return 0; }
EOF
-if { (eval echo configure:9464: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
+if { (eval echo configure:9530: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
rm -rf conftest*
eval "ac_cv_func_decl_$ac_func=yes"
@@ -9502,12 +9568,12 @@ for ac_func in getgrgid getgrnam
do
echo $ac_n "checking for $ac_func declaration""... $ac_c" 1>&6
-echo "configure:9506: checking for $ac_func declaration" >&5
+echo "configure:9572: checking for $ac_func declaration" >&5
if eval "test \"`echo '$''{'ac_cv_func_decl_$ac_func'+set}'`\" = set"; then
echo $ac_n "(cached) $ac_c" 1>&6
else
cat > conftest.$ac_ext <<EOF
-#line 9511 "configure"
+#line 9577 "configure"
#include "confdefs.h"
#include <stdio.h>
@@ -9518,11 +9584,11 @@ extern int ${ac_func}();
#endif
; return 0; }
EOF
-if { (eval echo configure:9522: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
+if { (eval echo configure:9588: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
rm -rf conftest*
cat > conftest.$ac_ext <<EOF
-#line 9526 "configure"
+#line 9592 "configure"
#include "confdefs.h"
#include <stdio.h>
@@ -9533,7 +9599,7 @@ int (*p)() = ${ac_func};
#endif
; return 0; }
EOF
-if { (eval echo configure:9537: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
+if { (eval echo configure:9603: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
rm -rf conftest*
eval "ac_cv_func_decl_$ac_func=yes"
@@ -9575,13 +9641,13 @@ done
echo $ac_n "checking if TRUE/FALSE are defined""... $ac_c" 1>&6
-echo "configure:9579: checking if TRUE/FALSE are defined" >&5
+echo "configure:9645: checking if TRUE/FALSE are defined" >&5
if eval "test \"`echo '$''{'cf_cv_bool_defs'+set}'`\" = set"; then
echo $ac_n "(cached) $ac_c" 1>&6
else
cat > conftest.$ac_ext <<EOF
-#line 9585 "configure"
+#line 9651 "configure"
#include "confdefs.h"
#include <${cf_cv_ncurses_header-curses.h}>
@@ -9590,7 +9656,7 @@ int main() {
int x = TRUE, y = FALSE
; return 0; }
EOF
-if { (eval echo configure:9594: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
+if { (eval echo configure:9660: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
rm -rf conftest*
cf_cv_bool_defs=yes
else
@@ -9617,13 +9683,13 @@ fi
echo $ac_n "checking declaration of errno""... $ac_c" 1>&6
-echo "configure:9621: checking declaration of errno" >&5
+echo "configure:9687: checking declaration of errno" >&5
if eval "test \"`echo '$''{'cf_cv_dcl_errno'+set}'`\" = set"; then
echo $ac_n "(cached) $ac_c" 1>&6
else
cat > conftest.$ac_ext <<EOF
-#line 9627 "configure"
+#line 9693 "configure"
#include "confdefs.h"
#if HAVE_STDLIB_H
@@ -9636,7 +9702,7 @@ int main() {
long x = (long) errno
; return 0; }
EOF
-if { (eval echo configure:9640: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
+if { (eval echo configure:9706: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
rm -rf conftest*
eval 'cf_cv_dcl_'errno'=yes'
else
@@ -9666,9 +9732,9 @@ cf_result=`echo $cf_result | tr '[a-z]' '[A-Z]'`
EOF
echo $ac_n "checking existence of errno""... $ac_c" 1>&6
-echo "configure:9670: checking existence of errno" >&5
+echo "configure:9736: checking existence of errno" >&5
cat > conftest.$ac_ext <<EOF
-#line 9672 "configure"
+#line 9738 "configure"
#include "confdefs.h"
#undef errno
@@ -9678,7 +9744,7 @@ int main() {
errno = 2
; return 0; }
EOF
-if { (eval echo configure:9682: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
+if { (eval echo configure:9748: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
rm -rf conftest*
eval 'cf_cv_have_'errno'=yes'
else
@@ -9708,20 +9774,20 @@ EOF
echo $ac_n "checking for setlocale()""... $ac_c" 1>&6
-echo "configure:9712: checking for setlocale()" >&5
+echo "configure:9778: checking for setlocale()" >&5
if eval "test \"`echo '$''{'cf_cv_locale'+set}'`\" = set"; then
echo $ac_n "(cached) $ac_c" 1>&6
else
cat > conftest.$ac_ext <<EOF
-#line 9718 "configure"
+#line 9784 "configure"
#include "confdefs.h"
#include <locale.h>
int main() {
setlocale(LC_ALL, "")
; return 0; }
EOF
-if { (eval echo configure:9725: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
+if { (eval echo configure:9791: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
rm -rf conftest*
cf_cv_locale=yes
else
@@ -9742,13 +9808,13 @@ EOF
echo $ac_n "checking if NGROUPS is defined""... $ac_c" 1>&6
-echo "configure:9746: checking if NGROUPS is defined" >&5
+echo "configure:9812: checking if NGROUPS is defined" >&5
if eval "test \"`echo '$''{'cf_cv_ngroups'+set}'`\" = set"; then
echo $ac_n "(cached) $ac_c" 1>&6
else
cat > conftest.$ac_ext <<EOF
-#line 9752 "configure"
+#line 9818 "configure"
#include "confdefs.h"
#if HAVE_SYS_PARAM_H
@@ -9762,7 +9828,7 @@ int main() {
int x = NGROUPS
; return 0; }
EOF
-if { (eval echo configure:9766: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
+if { (eval echo configure:9832: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
rm -rf conftest*
cf_cv_ngroups=yes
else
@@ -9770,7 +9836,7 @@ else
cat conftest.$ac_ext >&5
rm -rf conftest*
cat > conftest.$ac_ext <<EOF
-#line 9774 "configure"
+#line 9840 "configure"
#include "confdefs.h"
#if HAVE_SYS_PARAM_H
@@ -9784,7 +9850,7 @@ int main() {
int x = NGROUPS_MAX
; return 0; }
EOF
-if { (eval echo configure:9788: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
+if { (eval echo configure:9854: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
rm -rf conftest*
cf_cv_ngroups=NGROUPS_MAX
else
@@ -9818,13 +9884,13 @@ for cf_name in sys_nerr sys_errlist
do
echo $ac_n "checking declaration of $cf_name""... $ac_c" 1>&6
-echo "configure:9822: checking declaration of $cf_name" >&5
+echo "configure:9888: checking declaration of $cf_name" >&5
if eval "test \"`echo '$''{'cf_cv_dcl_$cf_name'+set}'`\" = set"; then
echo $ac_n "(cached) $ac_c" 1>&6
else
cat > conftest.$ac_ext <<EOF
-#line 9828 "configure"
+#line 9894 "configure"
#include "confdefs.h"
#if HAVE_STDLIB_H
@@ -9837,7 +9903,7 @@ int main() {
long x = (long) $cf_name
; return 0; }
EOF
-if { (eval echo configure:9841: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
+if { (eval echo configure:9907: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
rm -rf conftest*
eval 'cf_cv_dcl_'$cf_name'=yes'
else
@@ -9867,9 +9933,9 @@ cf_result=`echo $cf_result | tr '[a-z]' '[A-Z]'`
EOF
echo $ac_n "checking existence of $cf_name""... $ac_c" 1>&6
-echo "configure:9871: checking existence of $cf_name" >&5
+echo "configure:9937: checking existence of $cf_name" >&5
cat > conftest.$ac_ext <<EOF
-#line 9873 "configure"
+#line 9939 "configure"
#include "confdefs.h"
#undef $cf_name
@@ -9879,7 +9945,7 @@ int main() {
$cf_name = 2
; return 0; }
EOF
-if { (eval echo configure:9883: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
+if { (eval echo configure:9949: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
rm -rf conftest*
eval 'cf_cv_have_'$cf_name'=yes'
else
@@ -9910,13 +9976,13 @@ done
echo $ac_n "checking if struct utmp is declared""... $ac_c" 1>&6
-echo "configure:9914: checking if struct utmp is declared" >&5
+echo "configure:9980: checking if struct utmp is declared" >&5
if eval "test \"`echo '$''{'cf_cv_have_utmp'+set}'`\" = set"; then
echo $ac_n "(cached) $ac_c" 1>&6
else
cat > conftest.$ac_ext <<EOF
-#line 9920 "configure"
+#line 9986 "configure"
#include "confdefs.h"
#include <sys/types.h>
@@ -9925,7 +9991,7 @@ int main() {
struct utmp x; char *y = &x.ut_host[0]
; return 0; }
EOF
-if { (eval echo configure:9929: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
+if { (eval echo configure:9995: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
rm -rf conftest*
cf_cv_have_utmp=yes
else
@@ -9933,14 +9999,14 @@ else
cat conftest.$ac_ext >&5
rm -rf conftest*
cat > conftest.$ac_ext <<EOF
-#line 9937 "configure"
+#line 10003 "configure"
#include "confdefs.h"
#include <utmpx.h>
int main() {
struct utmpx x; char *y = &x.ut_host[0]
; return 0; }
EOF
-if { (eval echo configure:9944: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
+if { (eval echo configure:10010: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
rm -rf conftest*
cf_cv_have_utmp=utmpx
else
@@ -9969,13 +10035,13 @@ EOF
echo $ac_n "checking if character set is EBCDIC""... $ac_c" 1>&6
-echo "configure:9973: checking if character set is EBCDIC" >&5
+echo "configure:10039: checking if character set is EBCDIC" >&5
if eval "test \"`echo '$''{'cf_cv_ebcdic'+set}'`\" = set"; then
echo $ac_n "(cached) $ac_c" 1>&6
else
cat > conftest.$ac_ext <<EOF
-#line 9979 "configure"
+#line 10045 "configure"
#include "confdefs.h"
int main() {
@@ -9984,11 +10050,11 @@ int main() {
Use compile-time rather than run-time tests for cross-compiler
tolerance. */
#if '0'!=240
-#error "Character set is not EBCDIC"
+make an error "Character set is not EBCDIC"
#endif
; return 0; }
EOF
-if { (eval echo configure:9992: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
+if { (eval echo configure:10058: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
rm -rf conftest*
# TryCompile action if true
cf_cv_ebcdic=yes
@@ -10022,7 +10088,7 @@ esac
if test $cf_cv_screen != slang ; then
echo $ac_n "checking if curses supports alternate-character set""... $ac_c" 1>&6
-echo "configure:10026: checking if curses supports alternate-character set" >&5
+echo "configure:10092: checking if curses supports alternate-character set" >&5
if eval "test \"`echo '$''{'cf_cv_alt_char_set'+set}'`\" = set"; then
echo $ac_n "(cached) $ac_c" 1>&6
else
@@ -10030,7 +10096,7 @@ else
for mapname in acs_map _acs_map
do
cat > conftest.$ac_ext <<EOF
-#line 10034 "configure"
+#line 10100 "configure"
#include "confdefs.h"
#include <${cf_cv_ncurses_header-curses.h}>
@@ -10039,7 +10105,7 @@ int main() {
chtype x = $mapname['l']; $mapname['m'] = 0
; return 0; }
EOF
-if { (eval echo configure:10043: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
+if { (eval echo configure:10109: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
rm -rf conftest*
cf_cv_alt_char_set=$mapname
break
@@ -10062,13 +10128,13 @@ EOF
echo $ac_n "checking if curses supports fancy attributes""... $ac_c" 1>&6
-echo "configure:10066: checking if curses supports fancy attributes" >&5
+echo "configure:10132: checking if curses supports fancy attributes" >&5
if eval "test \"`echo '$''{'cf_cv_fancy_curses'+set}'`\" = set"; then
echo $ac_n "(cached) $ac_c" 1>&6
else
cat > conftest.$ac_ext <<EOF
-#line 10072 "configure"
+#line 10138 "configure"
#include "confdefs.h"
#include <${cf_cv_ncurses_header-curses.h}>
@@ -10081,7 +10147,7 @@ attrset(A_UNDERLINE|A_BOLD|A_REVERSE);
; return 0; }
EOF
-if { (eval echo configure:10085: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
+if { (eval echo configure:10151: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
rm -rf conftest*
cf_cv_fancy_curses=yes
else
@@ -10101,7 +10167,7 @@ EOF
echo $ac_n "checking for ncurses version""... $ac_c" 1>&6
-echo "configure:10105: checking for ncurses version" >&5
+echo "configure:10171: checking for ncurses version" >&5
if eval "test \"`echo '$''{'cf_cv_ncurses_version'+set}'`\" = set"; then
echo $ac_n "(cached) $ac_c" 1>&6
else
@@ -10126,7 +10192,7 @@ Autoconf "old"
#endif
EOF
cf_try="$ac_cpp conftest.$ac_ext 2>&5 | grep '^Autoconf ' >conftest.out"
- { (eval echo configure:10130: \"$cf_try\") 1>&5; (eval $cf_try) 2>&5; }
+ { (eval echo configure:10196: \"$cf_try\") 1>&5; (eval $cf_try) 2>&5; }
if test -f conftest.out ; then
cf_out=`cat conftest.out | sed -e 's@^Autoconf @@' -e 's@^[^"]*"@@' -e 's@".*@@'`
test -n "$cf_out" && cf_cv_ncurses_version="$cf_out"
@@ -10135,7 +10201,7 @@ EOF
else
cat > conftest.$ac_ext <<EOF
-#line 10139 "configure"
+#line 10205 "configure"
#include "confdefs.h"
#include <${cf_cv_ncurses_header-curses.h}>
@@ -10158,7 +10224,7 @@ int main()
exit(0);
}
EOF
-if { (eval echo configure:10162: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
+if { (eval echo configure:10228: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
then
cf_cv_ncurses_version=`cat $cf_tempfile`
@@ -10178,13 +10244,13 @@ echo "$ac_t""$cf_cv_ncurses_version" 1>&6
if test "$cf_cv_ncurses_version" != no ; then
echo $ac_n "checking for obsolete/broken version of ncurses""... $ac_c" 1>&6
-echo "configure:10182: checking for obsolete/broken version of ncurses" >&5
+echo "configure:10248: checking for obsolete/broken version of ncurses" >&5
if eval "test \"`echo '$''{'cf_cv_ncurses_broken'+set}'`\" = set"; then
echo $ac_n "(cached) $ac_c" 1>&6
else
cat > conftest.$ac_ext <<EOF
-#line 10188 "configure"
+#line 10254 "configure"
#include "confdefs.h"
#include <${cf_cv_ncurses_header-curses.h}>
@@ -10198,7 +10264,7 @@ int main() {
; return 0; }
EOF
-if { (eval echo configure:10202: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
+if { (eval echo configure:10268: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
rm -rf conftest*
cf_cv_ncurses_broken=no
else
@@ -10223,13 +10289,13 @@ fi
echo $ac_n "checking if curses supports color attributes""... $ac_c" 1>&6
-echo "configure:10227: checking if curses supports color attributes" >&5
+echo "configure:10293: checking if curses supports color attributes" >&5
if eval "test \"`echo '$''{'cf_cv_color_curses'+set}'`\" = set"; then
echo $ac_n "(cached) $ac_c" 1>&6
else
cat > conftest.$ac_ext <<EOF
-#line 10233 "configure"
+#line 10299 "configure"
#include "confdefs.h"
#include <${cf_cv_ncurses_header-curses.h}>
@@ -10244,7 +10310,7 @@ chtype x = COLOR_BLUE;
; return 0; }
EOF
-if { (eval echo configure:10248: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
+if { (eval echo configure:10314: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
rm -rf conftest*
cf_cv_color_curses=yes
else
@@ -10271,7 +10337,7 @@ fi
echo $ac_n "checking declaration of size-change""... $ac_c" 1>&6
-echo "configure:10275: checking declaration of size-change" >&5
+echo "configure:10341: checking declaration of size-change" >&5
if eval "test \"`echo '$''{'cf_cv_sizechange'+set}'`\" = set"; then
echo $ac_n "(cached) $ac_c" 1>&6
else
@@ -10285,7 +10351,7 @@ do
CFLAGS="$cf_save_CFLAGS"
test -n "$cf_opts" && CFLAGS="$CFLAGS -D$cf_opts"
cat > conftest.$ac_ext <<EOF
-#line 10289 "configure"
+#line 10355 "configure"
#include "confdefs.h"
#include <sys/types.h>
#if HAVE_TERMIOS_H
@@ -10324,7 +10390,7 @@ int main() {
; return 0; }
EOF
-if { (eval echo configure:10328: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
+if { (eval echo configure:10394: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
rm -rf conftest*
cf_cv_sizechange=yes
else
@@ -10356,20 +10422,20 @@ EOF
echo $ac_n "checking if ttytype is declared in curses library""... $ac_c" 1>&6
-echo "configure:10360: checking if ttytype is declared in curses library" >&5
+echo "configure:10426: checking if ttytype is declared in curses library" >&5
if eval "test \"`echo '$''{'cf_cv_have_ttytype'+set}'`\" = set"; then
echo $ac_n "(cached) $ac_c" 1>&6
else
cat > conftest.$ac_ext <<EOF
-#line 10366 "configure"
+#line 10432 "configure"
#include "confdefs.h"
#include <${cf_cv_ncurses_header-curses.h}>
int main() {
char *x = &ttytype[1]; *x = 1
; return 0; }
EOF
-if { (eval echo configure:10373: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
+if { (eval echo configure:10439: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
rm -rf conftest*
cf_cv_have_ttytype=yes
else
@@ -10397,12 +10463,12 @@ EOF
do
echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
-echo "configure:10401: checking for $ac_func" >&5
+echo "configure:10467: checking for $ac_func" >&5
if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
echo $ac_n "(cached) $ac_c" 1>&6
else
cat > conftest.$ac_ext <<EOF
-#line 10406 "configure"
+#line 10472 "configure"
#include "confdefs.h"
/* System header to define __stub macros and hopefully few prototypes,
which can conflict with char $ac_func(); below. */
@@ -10425,7 +10491,7 @@ $ac_func();
; return 0; }
EOF
-if { (eval echo configure:10429: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
+if { (eval echo configure:10495: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
rm -rf conftest*
eval "ac_cv_func_$ac_func=yes"
else
@@ -10454,8 +10520,32 @@ fi
+echo $ac_n "checking if configuration info should be browsable""... $ac_c" 1>&6
+echo "configure:10525: checking if configuration info should be browsable" >&5
+
+# Check whether --enable-config-info or --disable-config-info was given.
+if test "${enable_config_info+set}" = set; then
+ enableval="$enable_config_info"
+ test "$enableval" != no && enableval=yes
+ if test "$enableval" != "yes" ; then
+ use_config_info=$enableval
+ else
+ use_config_info=yes
+ fi
+else
+ enableval=yes
+ use_config_info=yes
+
+fi
+
+echo "$ac_t""$use_config_info" 1>&6
+test $use_config_info = no && cat >> confdefs.h <<\EOF
+#define NO_CONFIG_INFO 1
+EOF
+
+
echo $ac_n "checking if new-style forms-based options screen should be used""... $ac_c" 1>&6
-echo "configure:10459: checking if new-style forms-based options screen should be used" >&5
+echo "configure:10549: checking if new-style forms-based options screen should be used" >&5
# Check whether --enable-forms-options or --disable-forms-options was given.
if test "${enable_forms_options+set}" = set; then
@@ -10479,7 +10569,7 @@ EOF
echo $ac_n "checking if old-style options menu should be used""... $ac_c" 1>&6
-echo "configure:10483: checking if old-style options menu should be used" >&5
+echo "configure:10573: checking if old-style options menu should be used" >&5
# Check whether --enable-menu-options or --disable-menu-options was given.
if test "${enable_menu_options+set}" = set; then
@@ -10502,32 +10592,32 @@ test $use_menu_options = no && cat >> confdefs.h <<\EOF
EOF
-echo $ac_n "checking if configuration info should be browsable""... $ac_c" 1>&6
-echo "configure:10507: checking if configuration info should be browsable" >&5
+echo $ac_n "checking if experimental address-list page should be used""... $ac_c" 1>&6
+echo "configure:10597: checking if experimental address-list page should be used" >&5
-# Check whether --enable-config-info or --disable-config-info was given.
-if test "${enable_config_info+set}" = set; then
- enableval="$enable_config_info"
- test "$enableval" != no && enableval=yes
- if test "$enableval" != "yes" ; then
- use_config_info=$enableval
+# Check whether --enable-addrlist-page or --disable-addrlist-page was given.
+if test "${enable_addrlist_page+set}" = set; then
+ enableval="$enable_addrlist_page"
+ test "$enableval" != yes && enableval=no
+ if test "$enableval" != "no" ; then
+ use_addrlist_page=$enableval
else
- use_config_info=yes
+ use_addrlist_page=no
fi
else
- enableval=yes
- use_config_info=yes
+ enableval=no
+ use_addrlist_page=no
fi
-echo "$ac_t""$use_config_info" 1>&6
-test $use_config_info = no && cat >> confdefs.h <<\EOF
-#define NO_CONFIG_INFO 1
+echo "$ac_t""$use_addrlist_page" 1>&6
+test $use_addrlist_page != no && cat >> confdefs.h <<\EOF
+#define EXP_ADDRLIST_PAGE 1
EOF
echo $ac_n "checking if experimental alternative line-edit bindings should be used""... $ac_c" 1>&6
-echo "configure:10531: checking if experimental alternative line-edit bindings should be used" >&5
+echo "configure:10621: checking if experimental alternative line-edit bindings should be used" >&5
# Check whether --enable-alt-bindings or --disable-alt-bindings was given.
if test "${enable_alt_bindings+set}" = set; then
@@ -10550,56 +10640,8 @@ test $use_alt_bindings != no && cat >> confdefs.h <<\EOF
EOF
-echo $ac_n "checking if experimental keyboard-layout logic should be used""... $ac_c" 1>&6
-echo "configure:10555: checking if experimental keyboard-layout logic should be used" >&5
-
-# Check whether --enable-kbd-layout or --disable-kbd-layout was given.
-if test "${enable_kbd_layout+set}" = set; then
- enableval="$enable_kbd_layout"
- test "$enableval" != yes && enableval=no
- if test "$enableval" != "no" ; then
- use_kbd_layout=$enableval
- else
- use_kbd_layout=no
- fi
-else
- enableval=no
- use_kbd_layout=no
-
-fi
-
-echo "$ac_t""$use_kbd_layout" 1>&6
-test $use_kbd_layout != no && cat >> confdefs.h <<\EOF
-#define EXP_KEYBOARD_LAYOUT 1
-EOF
-
-
-echo $ac_n "checking if experimental persistent-cookie logic should be used""... $ac_c" 1>&6
-echo "configure:10579: checking if experimental persistent-cookie logic should be used" >&5
-
-# Check whether --enable-persistent-cookies or --disable-persistent-cookies was given.
-if test "${enable_persistent_cookies+set}" = set; then
- enableval="$enable_persistent_cookies"
- test "$enableval" != yes && enableval=no
- if test "$enableval" != "no" ; then
- use_filed_cookies=$enableval
- else
- use_filed_cookies=no
- fi
-else
- enableval=no
- use_filed_cookies=no
-
-fi
-
-echo "$ac_t""$use_filed_cookies" 1>&6
-test $use_filed_cookies != no && cat >> confdefs.h <<\EOF
-#define EXP_PERSISTENT_COOKIES 1
-EOF
-
-
echo $ac_n "checking if color-style code should be used""... $ac_c" 1>&6
-echo "configure:10603: checking if color-style code should be used" >&5
+echo "configure:10645: checking if color-style code should be used" >&5
# Check whether --enable-color-style or --disable-color-style was given.
if test "${enable_color_style+set}" = set; then
@@ -10647,7 +10689,7 @@ EOF
echo "$ac_t""yes" 1>&6
echo $ac_n "checking for location of style-sheet file""... $ac_c" 1>&6
-echo "configure:10651: checking for location of style-sheet file" >&5
+echo "configure:10693: checking for location of style-sheet file" >&5
LYNX_LSS_FILE=$cf_libdir/lynx.lss
cat >> confdefs.h <<EOF
#define LYNX_LSS_FILE "$LYNX_LSS_FILE"
@@ -10659,37 +10701,13 @@ EOF
esac
-echo $ac_n "checking if partial-display should be used""... $ac_c" 1>&6
-echo "configure:10664: checking if partial-display should be used" >&5
-
-# Check whether --enable-partial or --disable-partial was given.
-if test "${enable_partial+set}" = set; then
- enableval="$enable_partial"
- test "$enableval" != no && enableval=yes
- if test "$enableval" != "yes" ; then
- use_partial_display=$enableval
- else
- use_partial_display=yes
- fi
-else
- enableval=yes
- use_partial_display=yes
-
-fi
-
-echo "$ac_t""$use_partial_display" 1>&6
-test $use_partial_display != no && cat >> confdefs.h <<\EOF
-#define DISP_PARTIAL 1
-EOF
-
-
use_dft_colors=no
test ".$cf_cv_screen" = ".slang" && use_dft_colors=maybe
test ".$ac_cv_func_use_default_colors" = ".yes" && use_dft_colors=maybe
if test "$use_dft_colors" != no ; then
echo $ac_n "checking if you want to use default-colors""... $ac_c" 1>&6
-echo "configure:10693: checking if you want to use default-colors" >&5
+echo "configure:10711: checking if you want to use default-colors" >&5
# Check whether --enable-default-colors or --disable-default-colors was given.
if test "${enable_default_colors+set}" = set; then
@@ -10713,8 +10731,83 @@ EOF
fi
+echo $ac_n "checking if experimental keyboard-layout logic should be used""... $ac_c" 1>&6
+echo "configure:10736: checking if experimental keyboard-layout logic should be used" >&5
+
+# Check whether --enable-kbd-layout or --disable-kbd-layout was given.
+if test "${enable_kbd_layout+set}" = set; then
+ enableval="$enable_kbd_layout"
+ test "$enableval" != yes && enableval=no
+ if test "$enableval" != "no" ; then
+ use_kbd_layout=$enableval
+ else
+ use_kbd_layout=no
+ fi
+else
+ enableval=no
+ use_kbd_layout=no
+
+fi
+
+echo "$ac_t""$use_kbd_layout" 1>&6
+test $use_kbd_layout != no && cat >> confdefs.h <<\EOF
+#define EXP_KEYBOARD_LAYOUT 1
+EOF
+
+
+echo $ac_n "checking if experimental JavaScript support should be used""... $ac_c" 1>&6
+echo "configure:10760: checking if experimental JavaScript support should be used" >&5
+
+# Check whether --enable-libjs or --disable-libjs was given.
+if test "${enable_libjs+set}" = set; then
+ enableval="$enable_libjs"
+ test "$enableval" != yes && enableval=no
+ if test "$enableval" != "no" ; then
+ use_libjs=$enableval
+ else
+ use_libjs=no
+ fi
+else
+ enableval=no
+ use_libjs=no
+
+fi
+
+echo "$ac_t""$use_libjs" 1>&6
+test $use_libjs != no && cat >> confdefs.h <<\EOF
+#define EXP_LIBJS 1
+EOF
+
+
+echo $ac_n "checking if experimental persistent-cookie logic should be used""... $ac_c" 1>&6
+echo "configure:10784: checking if experimental persistent-cookie logic should be used" >&5
+
+# Check whether --enable-persistent-cookies or --disable-persistent-cookies was given.
+if test "${enable_persistent_cookies+set}" = set; then
+ enableval="$enable_persistent_cookies"
+ test "$enableval" != yes && enableval=no
+ if test "$enableval" != "no" ; then
+ use_filed_cookies=$enableval
+ else
+ use_filed_cookies=no
+ fi
+else
+ enableval=no
+ use_filed_cookies=no
+
+fi
+
+echo "$ac_t""$use_filed_cookies" 1>&6
+test $use_filed_cookies != no && cat >> confdefs.h <<\EOF
+#define EXP_PERSISTENT_COOKIES 1
+EOF
+
+
+
+
+
echo $ac_n "checking if you want to use extended HTML DTD logic""... $ac_c" 1>&6
-echo "configure:10718: checking if you want to use extended HTML DTD logic" >&5
+echo "configure:10811: checking if you want to use extended HTML DTD logic" >&5
# Check whether --enable-extended-dtd or --disable-extended-dtd was given.
if test "${enable_extended_dtd+set}" = set; then
@@ -10737,8 +10830,32 @@ test $use_ext_htmldtd = "no" && cat >> confdefs.h <<\EOF
EOF
+echo $ac_n "checking if partial-display should be used""... $ac_c" 1>&6
+echo "configure:10835: checking if partial-display should be used" >&5
+
+# Check whether --enable-partial or --disable-partial was given.
+if test "${enable_partial+set}" = set; then
+ enableval="$enable_partial"
+ test "$enableval" != no && enableval=yes
+ if test "$enableval" != "yes" ; then
+ use_partial_display=$enableval
+ else
+ use_partial_display=yes
+ fi
+else
+ enableval=yes
+ use_partial_display=yes
+
+fi
+
+echo "$ac_t""$use_partial_display" 1>&6
+test $use_partial_display != no && cat >> confdefs.h <<\EOF
+#define DISP_PARTIAL 1
+EOF
+
+
echo $ac_n "checking if you want to use external commands""... $ac_c" 1>&6
-echo "configure:10742: checking if you want to use external commands" >&5
+echo "configure:10859: checking if you want to use external commands" >&5
# Check whether --enable-externs or --disable-externs was given.
if test "${enable_externs+set}" = set; then
@@ -10762,7 +10879,7 @@ EOF
echo $ac_n "checking if you want to use setfont support""... $ac_c" 1>&6
-echo "configure:10766: checking if you want to use setfont support" >&5
+echo "configure:10883: checking if you want to use setfont support" >&5
# Check whether --enable-font-switch or --disable-font-switch was given.
if test "${enable_font_switch+set}" = set; then
@@ -10786,7 +10903,7 @@ EOF
echo $ac_n "checking if you want cgi-link support""... $ac_c" 1>&6
-echo "configure:10790: checking if you want cgi-link support" >&5
+echo "configure:10907: checking if you want cgi-link support" >&5
# Check whether --enable-cgi-links or --disable-cgi-links was given.
if test "${enable_cgi_links+set}" = set; then
@@ -10805,7 +10922,7 @@ fi
echo "$ac_t""$enableval" 1>&6
echo $ac_n "checking if you want exec-links support""... $ac_c" 1>&6
-echo "configure:10809: checking if you want exec-links support" >&5
+echo "configure:10926: checking if you want exec-links support" >&5
# Check whether --enable-exec-links or --disable-exec-links was given.
if test "${enable_exec_links+set}" = set; then
@@ -10824,7 +10941,7 @@ fi
echo "$ac_t""$enableval" 1>&6
echo $ac_n "checking if you want exec-scripts support""... $ac_c" 1>&6
-echo "configure:10828: checking if you want exec-scripts support" >&5
+echo "configure:10945: checking if you want exec-scripts support" >&5
# Check whether --enable-exec-scripts or --disable-exec-scripts was given.
if test "${enable_exec_scripts+set}" = set; then
@@ -10843,7 +10960,7 @@ fi
echo "$ac_t""$enableval" 1>&6
echo $ac_n "checking if you want internal-links feature""... $ac_c" 1>&6
-echo "configure:10847: checking if you want internal-links feature" >&5
+echo "configure:10964: checking if you want internal-links feature" >&5
# Check whether --enable-internal-links or --disable-internal-links was given.
if test "${enable_internal_links+set}" = set; then
@@ -10867,7 +10984,7 @@ EOF
echo $ac_n "checking if you want to fork NSL requests""... $ac_c" 1>&6
-echo "configure:10871: checking if you want to fork NSL requests" >&5
+echo "configure:10988: checking if you want to fork NSL requests" >&5
# Check whether --enable-nsl-fork or --disable-nsl-fork was given.
if test "${enable_nsl_fork+set}" = set; then
@@ -10891,7 +11008,7 @@ EOF
echo $ac_n "checking if you want to log URL requests via syslog""... $ac_c" 1>&6
-echo "configure:10895: checking if you want to log URL requests via syslog" >&5
+echo "configure:11012: checking if you want to log URL requests via syslog" >&5
# Check whether --enable-syslog or --disable-syslog was given.
if test "${enable_syslog+set}" = set; then
@@ -10915,7 +11032,7 @@ EOF
echo $ac_n "checking if you want to underline links""... $ac_c" 1>&6
-echo "configure:10919: checking if you want to underline links" >&5
+echo "configure:11036: checking if you want to underline links" >&5
# Check whether --enable-underlines or --disable-underlines was given.
if test "${enable_underlines+set}" = set; then
@@ -10939,7 +11056,7 @@ EOF
echo $ac_n "checking if help files should be gzip'ed""... $ac_c" 1>&6
-echo "configure:10943: checking if help files should be gzip'ed" >&5
+echo "configure:11060: checking if help files should be gzip'ed" >&5
# Check whether --enable-gzip-help or --disable-gzip-help was given.
if test "${enable_gzip_help+set}" = set; then
@@ -10968,7 +11085,7 @@ fi
echo $ac_n "checking if you want to use zlib for decompression of some gzip files""... $ac_c" 1>&6
-echo "configure:10972: checking if you want to use zlib for decompression of some gzip files" >&5
+echo "configure:11089: checking if you want to use zlib for decompression of some gzip files" >&5
# Check whether --with-zlib or --without-zlib was given.
if test "${with_zlib+set}" = set; then
@@ -10985,12 +11102,12 @@ if test ".$use_zlib" != ".no" ; then
cf_cv_have_lib_z=no
cf_libdir=""
echo $ac_n "checking for gzopen""... $ac_c" 1>&6
-echo "configure:10989: checking for gzopen" >&5
+echo "configure:11106: checking for gzopen" >&5
if eval "test \"`echo '$''{'ac_cv_func_gzopen'+set}'`\" = set"; then
echo $ac_n "(cached) $ac_c" 1>&6
else
cat > conftest.$ac_ext <<EOF
-#line 10994 "configure"
+#line 11111 "configure"
#include "confdefs.h"
/* System header to define __stub macros and hopefully few prototypes,
which can conflict with char gzopen(); below. */
@@ -11013,7 +11130,7 @@ gzopen();
; return 0; }
EOF
-if { (eval echo configure:11017: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
+if { (eval echo configure:11134: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
rm -rf conftest*
eval "ac_cv_func_gzopen=yes"
else
@@ -11033,17 +11150,17 @@ else
cf_save_LIBS="$LIBS"
echo $ac_n "checking for gzopen in -lz""... $ac_c" 1>&6
-echo "configure:11037: checking for gzopen in -lz" >&5
+echo "configure:11154: checking for gzopen in -lz" >&5
LIBS="-lz $LIBS"
cat > conftest.$ac_ext <<EOF
-#line 11040 "configure"
+#line 11157 "configure"
#include "confdefs.h"
#include <zlib.h>
int main() {
gzopen("name","mode")
; return 0; }
EOF
-if { (eval echo configure:11047: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
+if { (eval echo configure:11164: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
rm -rf conftest*
echo "$ac_t""yes" 1>&6
cf_cv_have_lib_z=yes
@@ -11070,17 +11187,17 @@ test "$prefix" != /usr && cf_search="$cf_search /usr/lib /usr/lib/z"
for cf_libdir in $cf_search
do
echo $ac_n "checking for -lz in $cf_libdir""... $ac_c" 1>&6
-echo "configure:11074: checking for -lz in $cf_libdir" >&5
+echo "configure:11191: checking for -lz in $cf_libdir" >&5
LIBS="-L$cf_libdir -lz $cf_save_LIBS"
cat > conftest.$ac_ext <<EOF
-#line 11077 "configure"
+#line 11194 "configure"
#include "confdefs.h"
#include <zlib.h>
int main() {
gzopen("name","mode")
; return 0; }
EOF
-if { (eval echo configure:11084: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
+if { (eval echo configure:11201: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
rm -rf conftest*
echo "$ac_t""yes" 1>&6
cf_cv_have_lib_z=yes
@@ -11115,13 +11232,38 @@ EOF
fi
+echo $ac_n "checking if you want to exclude GOPHER code""... $ac_c" 1>&6
+echo "configure:11237: checking if you want to exclude GOPHER code" >&5
+
+# Check whether --enable-gopher or --disable-gopher was given.
+if test "${enable_gopher+set}" = set; then
+ enableval="$enable_gopher"
+ test "$enableval" != no && enableval=yes
+ if test "$enableval" != "yes" ; then
+ use_gopher=yes
+ else
+ use_gopher=no
+ fi
+else
+ enableval=yes
+ use_gopher=no
+
+fi
+
+echo "$ac_t""$use_gopher" 1>&6
+test $use_gopher != "no" && cat >> confdefs.h <<\EOF
+#define DISABLE_GOPHER 1
+EOF
+
+
+
# All DirEd functions that were enabled on compilation can be disabled
# or modified at run time via DIRED_MENU symbols in lynx.cfg.
echo $ac_n "checking if directory-editor code should be used""... $ac_c" 1>&6
-echo "configure:11125: checking if directory-editor code should be used" >&5
+echo "configure:11267: checking if directory-editor code should be used" >&5
# Check whether --enable-dired or --disable-dired was given.
if test "${enable_dired+set}" = set; then
@@ -11147,7 +11289,7 @@ EOF
echo $ac_n "checking if you wish to allow extracting from archives via DirEd""... $ac_c" 1>&6
-echo "configure:11151: checking if you wish to allow extracting from archives via DirEd" >&5
+echo "configure:11293: checking if you wish to allow extracting from archives via DirEd" >&5
# Check whether --enable-dired-archive or --disable-dired-archive was given.
if test "${enable_dired_archive+set}" = set; then
@@ -11166,7 +11308,7 @@ fi
echo "$ac_t""$enableval" 1>&6
echo $ac_n "checking if you wish to allow users to redefine DirEd keys""... $ac_c" 1>&6
-echo "configure:11170: checking if you wish to allow users to redefine DirEd keys" >&5
+echo "configure:11312: checking if you wish to allow users to redefine DirEd keys" >&5
# Check whether --enable-dired-override or --disable-dired-override was given.
if test "${enable_dired_override+set}" = set; then
@@ -11192,7 +11334,7 @@ fi
echo "$ac_t""$enableval" 1>&6
echo $ac_n "checking if you wish to allow permissions commands via DirEd""... $ac_c" 1>&6
-echo "configure:11196: checking if you wish to allow permissions commands via DirEd" >&5
+echo "configure:11338: checking if you wish to allow permissions commands via DirEd" >&5
# Check whether --enable-dired-permit or --disable-dired-permit was given.
if test "${enable_dired_permit+set}" = set; then
@@ -11218,7 +11360,7 @@ fi
echo "$ac_t""$enableval" 1>&6
echo $ac_n "checking if you wish to allow executable-permission commands via DirEd""... $ac_c" 1>&6
-echo "configure:11222: checking if you wish to allow executable-permission commands via DirEd" >&5
+echo "configure:11364: checking if you wish to allow executable-permission commands via DirEd" >&5
# Check whether --enable-dired-xpermit or --disable-dired-xpermit was given.
if test "${enable_dired_xpermit+set}" = set; then
@@ -11237,7 +11379,7 @@ fi
echo "$ac_t""$enableval" 1>&6
echo $ac_n "checking if you wish to allow "tar" commands from DirEd""... $ac_c" 1>&6
-echo "configure:11241: checking if you wish to allow "tar" commands from DirEd" >&5
+echo "configure:11383: checking if you wish to allow "tar" commands from DirEd" >&5
# Check whether --enable-dired-tar or --disable-dired-tar was given.
if test "${enable_dired_tar+set}" = set; then
@@ -11263,7 +11405,7 @@ fi
echo "$ac_t""$enableval" 1>&6
echo $ac_n "checking if you wish to allow "uudecode" commands from DirEd""... $ac_c" 1>&6
-echo "configure:11267: checking if you wish to allow "uudecode" commands from DirEd" >&5
+echo "configure:11409: checking if you wish to allow "uudecode" commands from DirEd" >&5
# Check whether --enable-dired-uudecode or --disable-dired-uudecode was given.
if test "${enable_dired_uudecode+set}" = set; then
@@ -11289,7 +11431,7 @@ fi
echo "$ac_t""$enableval" 1>&6
echo $ac_n "checking if you wish to allow "zip" and "unzip" commands from DirEd""... $ac_c" 1>&6
-echo "configure:11293: checking if you wish to allow "zip" and "unzip" commands from DirEd" >&5
+echo "configure:11435: checking if you wish to allow "zip" and "unzip" commands from DirEd" >&5
# Check whether --enable-dired-zip or --disable-dired-zip was given.
if test "${enable_dired_zip+set}" = set; then
@@ -11315,7 +11457,7 @@ fi
echo "$ac_t""$enableval" 1>&6
echo $ac_n "checking if you wish to allow "gzip" and "gunzip" commands from DirEd""... $ac_c" 1>&6
-echo "configure:11319: checking if you wish to allow "gzip" and "gunzip" commands from DirEd" >&5
+echo "configure:11461: checking if you wish to allow "gzip" and "gunzip" commands from DirEd" >&5
# Check whether --enable-dired-gzip or --disable-dired-gzip was given.
if test "${enable_dired_gzip+set}" = set; then
@@ -11342,7 +11484,7 @@ fi
fi
echo $ac_n "checking if you want long-directory listings""... $ac_c" 1>&6
-echo "configure:11346: checking if you want long-directory listings" >&5
+echo "configure:11488: checking if you want long-directory listings" >&5
# Check whether --enable-long-list or --disable-long-list was given.
if test "${enable_long_list+set}" = set; then
@@ -11368,7 +11510,7 @@ fi
echo "$ac_t""$enableval" 1>&6
echo $ac_n "checking if parent-directory references are permitted""... $ac_c" 1>&6
-echo "configure:11372: checking if parent-directory references are permitted" >&5
+echo "configure:11514: checking if parent-directory references are permitted" >&5
# Check whether --enable-parent-dir-refs or --disable-parent-dir-refs was given.
if test "${enable_parent_dir_refs+set}" = set; then
@@ -11388,7 +11530,7 @@ echo "$ac_t""$enableval" 1>&6
echo $ac_n "checking if we can include termio.h with curses""... $ac_c" 1>&6
-echo "configure:11392: checking if we can include termio.h with curses" >&5
+echo "configure:11534: checking if we can include termio.h with curses" >&5
if eval "test \"`echo '$''{'cf_cv_termio_and_curses'+set}'`\" = set"; then
echo $ac_n "(cached) $ac_c" 1>&6
else
@@ -11397,7 +11539,7 @@ else
CFLAGS="$CFLAGS -DHAVE_CONFIG_H -I. -I${srcdir-.} -I${srcdir-.}/src -I${srcdir-.}/WWW/Library/Implementation"
touch lynx_cfg.h
cat > conftest.$ac_ext <<EOF
-#line 11401 "configure"
+#line 11543 "configure"
#include "confdefs.h"
#include <LYCurses.h>
@@ -11406,7 +11548,7 @@ int main() {
putchar(0x0a)
; return 0; }
EOF
-if { (eval echo configure:11410: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
+if { (eval echo configure:11552: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
rm -rf conftest*
cf_cv_termio_and_curses=yes
else
@@ -11874,6 +12016,7 @@ cat >> $CONFIG_STATUS <<EOF
# Extra initialization commands, if any
USE_NLS=$USE_NLS
+ use_our_messages=$use_our_messages
EOF
@@ -11881,6 +12024,7 @@ cat >> $CONFIG_STATUS <<\EOF
# Extra commands, if any
if test "$USE_NLS" = yes ; then
+ if test "$use_our_messages" = yes ; then
echo creating po/makefile
rm -f po/temp$$
sed -e 's@^.*LYMessages.c@../LYMessages.c@' \
@@ -11889,6 +12033,7 @@ cat >> $CONFIG_STATUS <<\EOF
po/makefile.in > po/makefile
rm -f po/temp$$
fi
+ fi
exit 0
EOF
diff --git a/configure.in b/configure.in
index 4fb9a432..a327e921 100644
--- a/configure.in
+++ b/configure.in
@@ -57,7 +57,7 @@ test "$with_leak_checks" = "yes" && AC_DEFINE(LY_FIND_LEAKS)
AC_MSG_CHECKING(if you want to enable debug-code)
CF_ARG_ENABLE(debug,
- [ --enable-debug logic for traces/debugging],
+ [ --enable-debug logic for object code debugging],
[with_debug=yes],
[with_debug=no])
AC_MSG_RESULT($with_debug)
@@ -82,6 +82,13 @@ else
esac
fi
+AC_MSG_CHECKING(if you want to enable lynx trace code *recommended* )
+CF_ARG_DISABLE(trace,
+ [ --disable-trace disable logic for trace code],
+ [with_trace=$enableval],
+ [with_trace=yes])
+AC_MSG_RESULT($with_trace)
+test $with_trace = no && AC_DEFINE(NO_LYNX_TRACE)
if test -n "$GCC"
then
@@ -117,7 +124,22 @@ INTLDIR_MAKE=
MSG_DIR_MAKE=
SUB_MAKEFILE=
if test "$USE_INCLUDED_LIBINTL" = yes ; then
- SUB_MAKEFILE="intl/makefile po/makefile.in:po/makefile.inn"
+ if test "$nls_cv_force_use_gnu_gettext" = yes ; then
+ AC_MSG_WARN(Using included gettext anyway, since none was found)
+ SUB_MAKEFILE="intl/makefile"
+ else
+ INTLDIR_MAKE="#"
+ fi
+ CF_OUR_MESSAGES
+ if test $use_our_messages = no ; then
+ MSG_DIR_MAKE="#"
+ SUB_MAKEFILE=
+ fi
+ if test "$use_our_messages" = yes ; then
+ SUB_MAKEFILE="$SUB_MAKEFILE po/makefile.in:po/makefile.inn"
+ else
+ MSG_DIR_MAKE="#"
+ fi
elif test "$USE_NLS" = yes ; then
AC_CHECK_HEADERS(libintl.h)
INTLDIR_MAKE="#"
@@ -499,11 +521,19 @@ if test $cf_cv_screen != slang ; then
fi
dnl --------------------------------------------------------------------------
-dnl Miscellaneous options that don't need to test system features
+dnl Experimental options that don't need to test system features
dnl --------------------------------------------------------------------------
CF_HELP_MESSAGE(
-Miscellaneous Options:)
+Experimental Options:)
+
+AC_MSG_CHECKING(if configuration info should be browsable)
+CF_ARG_DISABLE(config-info,
+[ --disable-config-info disable browsable configuration-info],
+ [use_config_info=$enableval],
+ [use_config_info=yes])
+AC_MSG_RESULT($use_config_info)
+test $use_config_info = no && AC_DEFINE(NO_CONFIG_INFO)
AC_MSG_CHECKING(if new-style forms-based options screen should be used)
CF_ARG_DISABLE(forms-options,
@@ -521,13 +551,13 @@ CF_ARG_DISABLE(menu-options,
AC_MSG_RESULT($use_menu_options)
test $use_menu_options = no && AC_DEFINE(NO_OPTION_MENU)
-AC_MSG_CHECKING(if configuration info should be browsable)
-CF_ARG_DISABLE(config-info,
-[ --disable-config-info disable browsable configuration-info],
- [use_config_info=$enableval],
- [use_config_info=yes])
-AC_MSG_RESULT($use_config_info)
-test $use_config_info = no && AC_DEFINE(NO_CONFIG_INFO)
+AC_MSG_CHECKING(if experimental address-list page should be used)
+CF_ARG_ENABLE(addrlist-page,
+[ --enable-addrlist-page use experimental address-list page],
+ [use_addrlist_page=$enableval],
+ [use_addrlist_page=no])
+AC_MSG_RESULT($use_addrlist_page)
+test $use_addrlist_page != no && AC_DEFINE(EXP_ADDRLIST_PAGE)
AC_MSG_CHECKING(if experimental alternative line-edit bindings should be used)
CF_ARG_ENABLE(alt-bindings,
@@ -537,22 +567,6 @@ CF_ARG_ENABLE(alt-bindings,
AC_MSG_RESULT($use_alt_bindings)
test $use_alt_bindings != no && AC_DEFINE(EXP_ALT_BINDINGS)
-AC_MSG_CHECKING(if experimental keyboard-layout logic should be used)
-CF_ARG_ENABLE(kbd-layout,
-[ --enable-kbd-layout use experimental keyboard-layout support],
- [use_kbd_layout=$enableval],
- [use_kbd_layout=no])
-AC_MSG_RESULT($use_kbd_layout)
-test $use_kbd_layout != no && AC_DEFINE(EXP_KEYBOARD_LAYOUT)
-
-AC_MSG_CHECKING(if experimental persistent-cookie logic should be used)
-CF_ARG_ENABLE(persistent-cookies,
-[ --enable-persistent-cookies use experimental persistent-cookie support],
- [use_filed_cookies=$enableval],
- [use_filed_cookies=no])
-AC_MSG_RESULT($use_filed_cookies)
-test $use_filed_cookies != no && AC_DEFINE(EXP_PERSISTENT_COOKIES)
-
AC_MSG_CHECKING(if color-style code should be used)
CF_ARG_ENABLE(color-style,
[ --enable-color-style use optional/experimental color style],
@@ -588,14 +602,6 @@ no)
esac
AC_SUBST(INSTALL_LSS)
-AC_MSG_CHECKING(if partial-display should be used)
-CF_ARG_DISABLE(partial,
-[ --disable-partial use partial-display logic],
- [use_partial_display=$enableval],
- [use_partial_display=yes])
-AC_MSG_RESULT($use_partial_display)
-test $use_partial_display != no && AC_DEFINE(DISP_PARTIAL)
-
use_dft_colors=no
test ".$cf_cv_screen" = ".slang" && use_dft_colors=maybe
test ".$ac_cv_func_use_default_colors" = ".yes" && use_dft_colors=maybe
@@ -610,6 +616,37 @@ AC_MSG_RESULT($use_dft_colors)
test $use_dft_colors = "yes" && AC_DEFINE(USE_DEFAULT_COLORS)
fi
+AC_MSG_CHECKING(if experimental keyboard-layout logic should be used)
+CF_ARG_ENABLE(kbd-layout,
+[ --enable-kbd-layout use experimental keyboard-layout support],
+ [use_kbd_layout=$enableval],
+ [use_kbd_layout=no])
+AC_MSG_RESULT($use_kbd_layout)
+test $use_kbd_layout != no && AC_DEFINE(EXP_KEYBOARD_LAYOUT)
+
+AC_MSG_CHECKING(if experimental JavaScript support should be used)
+CF_ARG_ENABLE(libjs,
+[ --enable-libjs use experimental JavaScript support (Mozilla libjs)],
+ [use_libjs=$enableval],
+ [use_libjs=no])
+AC_MSG_RESULT($use_libjs)
+test $use_libjs != no && AC_DEFINE(EXP_LIBJS)
+
+AC_MSG_CHECKING(if experimental persistent-cookie logic should be used)
+CF_ARG_ENABLE(persistent-cookies,
+[ --enable-persistent-cookies use experimental persistent-cookie support],
+ [use_filed_cookies=$enableval],
+ [use_filed_cookies=no])
+AC_MSG_RESULT($use_filed_cookies)
+test $use_filed_cookies != no && AC_DEFINE(EXP_PERSISTENT_COOKIES)
+
+dnl --------------------------------------------------------------------------
+dnl Miscellaneous options that don't need to test system features
+dnl --------------------------------------------------------------------------
+
+CF_HELP_MESSAGE(
+Miscellaneous Options:)
+
AC_MSG_CHECKING(if you want to use extended HTML DTD logic)
CF_ARG_DISABLE(extended-dtd,
[ --disable-extended-dtd disable extended HTML DTD logic],
@@ -618,6 +655,14 @@ CF_ARG_DISABLE(extended-dtd,
AC_MSG_RESULT($use_ext_htmldtd)
test $use_ext_htmldtd = "no" && AC_DEFINE(NO_EXTENDED_HTMLDTD)
+AC_MSG_CHECKING(if partial-display should be used)
+CF_ARG_DISABLE(partial,
+[ --disable-partial use partial-display logic],
+ [use_partial_display=$enableval],
+ [use_partial_display=yes])
+AC_MSG_RESULT($use_partial_display)
+test $use_partial_display != no && AC_DEFINE(DISP_PARTIAL)
+
AC_MSG_CHECKING(if you want to use external commands)
CF_ARG_ENABLE(externs,
[ --enable-externs use external commands],
@@ -715,6 +760,15 @@ if test ".$use_zlib" != ".no" ; then
AC_DEFINE(USE_ZLIB)
fi
+AC_MSG_CHECKING(if you want to exclude GOPHER code)
+CF_ARG_DISABLE(gopher,
+[ --disable-gopher disable GOPHER logic],
+ [use_gopher=yes],
+ [use_gopher=no])
+AC_MSG_RESULT($use_gopher)
+test $use_gopher != "no" && AC_DEFINE(DISABLE_GOPHER)
+
+
dnl --------------------------------------------------------------------------
dnl DirEd (directory-editor) options
dnl --------------------------------------------------------------------------
@@ -817,6 +871,7 @@ AC_OUTPUT(
$SUB_MAKEFILE
],[
if test "$USE_NLS" = yes ; then
+ if test "$use_our_messages" = yes ; then
echo creating po/makefile
rm -f po/temp$$
sed -e 's@^.*LYMessages.c@../LYMessages.c@' \
@@ -825,7 +880,9 @@ AC_OUTPUT(
po/makefile.in > po/makefile
rm -f po/temp$$
fi
+ fi
],[
USE_NLS=$USE_NLS
+ use_our_messages=$use_our_messages
]
)
diff --git a/lynx.cfg b/lynx.cfg
index 48f73be7..aeee4d39 100644
--- a/lynx.cfg
+++ b/lynx.cfg
@@ -829,21 +829,33 @@ DEFAULT_INDEX_FILE:http://www.ncsa.uiuc.edu/SDG/Software/Mosaic/MetaIndex.html
# If ACCEPT_ALL_COOKIES is set TRUE, Lynx will accept cookies from all
# domains with no user interaction.
-# The default is defined in userdefs.h and can be overridden here,
-# and/or toggled via the -accept_all_cookies command line switch.
+# The default is defined in userdefs.h and can be overridden here, or
+# in the .lynxrc file via an o(ptions) screen setting. It may also be
+# toggled via the -accept_all_cookies command line switch.
#
#ACCEPT_ALL_COOKIES:FALSE
-# COOKIE_ACCEPT_DOMAINS and COOKIE_REJECT_DOMAINS are comma-delimited lists of
-# domains (with a leading '.') to automatically accept or reject all cookies
-# from. These can also be specified in the lynxrc file, and are overridden by
-# the ACCEPT_ALL_COOKIES parameter. If a single domain is specified in both
-# COOKIE_ACCEPT_DOMAINS and in COOKIE_REJECT_DOMAINS, the rejection will take
-# precedence.
+# COOKIE_ACCEPT_DOMAINS and COOKIE_REJECT_DOMAINS are comma-delimited lists
+# of domains from which Lynx should automatically accept or reject all
+# cookies. If a domain is specified in both options, rejection will take
+# precedence. The ACCEPT_ALL_COOKIES parameter will override any settings
+# made here.
#
#COOKIE_ACCEPT_DOMAINS:
#COOKIE_REJECT_DOMAINS:
+# COOKIE_LOOSE_INVALID_DOMAINS, COOKIE_STRICT_INVALID_DOMAINS, and
+# COOKIE_QUERY_INVALID_DOMAINS are comma-delimited lists of which domains
+# should be subjected to varying degrees of validity checking. If a
+# domain is set to strict checking, strict conformance to RFC2109 will
+# be applied. A domain with loose checking will be allowed to set cookies
+# with an invalid path or domain attribute. All domains will default to
+# querying the user for an invalid path or domain.
+#
+#COOKIE_LOOSE_INVALID_DOMAINS:
+#COOKIE_STRICT_INVALID_DOMAINS:
+#COOKIE_QUERY_INVALID_DOMAINS:
+
# COOKIE_FILE is the default file to store persistent downloaded cookies
# in, if Lynx was compiled with EXP_PERSISTENT_COOKIES. The cookie file
# can also be specified in .lynxrc or on the commandline.
diff --git a/lynx_help/Lynx_users_guide.html b/lynx_help/Lynx_users_guide.html
index 3d560afb..ab895c39 100644
--- a/lynx_help/Lynx_users_guide.html
+++ b/lynx_help/Lynx_users_guide.html
@@ -70,7 +70,7 @@ within a single LAN.
<h2 ID="Help"><A NAME="Help"><em>Lynx online help</em></A></h2>
Online help is available while viewing any document. Press the
-'<em>?</em>' or '<em>H</em>' key (or the '<em>h</em> key if
+'<em>?</em>' or '<em>H</em>' key (or the '<em>h</em>' key if
vi-like key movement is not on) to see a list of help topics.
See the section titled <A HREF="#IntraDocNav">Navigating
hypertext documents with Lynx</A> for information on navigating
@@ -286,9 +286,9 @@ show the <em>Visited Links Page</em>, and you similarly can select links in
that list. The MAIN_MENU keystroke command, normally mapped to '<em>m</em>'
and '<em>M</em>', will take you back to the starting document unless you
specified the <em>-homepage=URL</em> option at the command line. Also, the
-LIST keystroke command, normally mapped to '<em>l</em>' and <em>L</em>',
-will create a compact list of all the links in the current document, and
-they can be selected via that list.
+LIST and ADDRLIST keystroke commands, normally mapped to '<em>l</em>' and
+<em>A</em>' respectively, will create a compact lists of all the links in
+the current document, and they can be selected via those lists.
<p>The '<em>i</em>' key presents an index of documents. The default index
is usually a document pointing to servers around the world, but the index
@@ -2165,7 +2165,7 @@ where
<dt><code>-number_links</code>
<dd>force numbering of links.
<dt><code>-partial</code>
- <dd>display partial pages while downloading.
+ <dd>toggles display partial pages while downloading.
<dt><code>-pauth=ID:PW</code>
<dd>set authorization ID and password for a protected proxy
server at startup. Be sure to protect any script files
@@ -2184,6 +2184,10 @@ where
<dt><code>-preparsed</code>
<dd>show source preparsed and reformatted when used with
-source or in source view ('<em>\</em>').
+ May be useful for debugging of broken HTML markup
+ to visualize the difference between SortaSGML and TagSoup
+ <A HREF="keystrokes/option_help.html#tagsoup">recovery modes</A>,
+ switched by '<em>^V</em>'.
<dt><code>-print</code>
<dd>enable print functions. (default)
<dt><code>-pseudo_inlines</code>
diff --git a/lynx_help/keystrokes/follow_help.html b/lynx_help/keystrokes/follow_help.html
index f30fbb77..15b31a8a 100644
--- a/lynx_help/keystrokes/follow_help.html
+++ b/lynx_help/keystrokes/follow_help.html
@@ -14,7 +14,7 @@ the current session via the <em>Options menu</em>, then hypertext links
(and form fields, depending on the keypad mode)
are prefixed with numbers in square brackets. Entering a keyboard
or keypad number is treated as an <em>F_LINK_NUM</em> command, and should
-invoke the <em>Follow link (or goto link or page) number:</em> statusline
+invoke the <em>Follow link (or goto link or page) number:</em> statusline
prompt for a
potentially multiple digit number corresponding to an indicated link
number. If RETURN is pressed to terminate the number entry (e.g.,
@@ -39,10 +39,27 @@ numbered</em> mode.
<em>123p</em>), Lynx will make the page corresponding to that number
the currently displayed page, and the first link on that page, if any,
the current link. The '<em>g</em>' and '<em>p</em>' suffixes thus
-convert the
+convert the
<em>Follow link (or goto link or page) number:</em> feature to an advanced
navigation aid.
+<p>Finally, a user may add a <em>+</em> or <em>-</em> suffix to a number
+command to indicate jumping forward or back relative to the current link or
+page.
+For example,
+typing
+<em>1g+</em> followed by RETURN will move the current
+link to the next numbered link, skipping any intervening
+pages or unnumbered links. <em>1g-</em> goes to the preceeding
+numbered link. <em>5p+</em> skips ahead 5 pages, and so on.
+Note that typing <em>1g+</em> is different from typing a down arrow
+in that <em>1g+</em> may skip pages containing no links, or
+intervening non-numbered links, such as form fields when
+form fields are not numbered. It also differs from
+the <em>&lt;tab&gt;</em> command in that <em>1g+</em>
+does not skip over whole textareas, unless form fields
+are not numbered..
+
<p>If the user has set <em>Keypad mode</em> to <em>Numbers act as arrows</em>,
then only '<em>0</em>', rather than every number, will be treated as an
<em>F_LINK_NUM</em> command for invoking the <em>Follow link (or goto link or page)
@@ -74,6 +91,19 @@ command when positioned on the OPTION. For purposes of paging (e.g., in
conjunction with the '<em>p</em>' suffix), a <em>page</em> is defined as
the number of OPTIONs displayed within the vertical dimension of the popup
window.
+Finally, the <em>+</em> and <em>-</em> suffixes can be used
+to move forward or back from the current option or page in
+a popup menu,
+similarly to the way they are used for links For example,
+while viewing a popup window, the user can type
+<em>3p+</em> and RETURN
+to skip ahead 3 pages, and <em>50g-</em> will move the
+current selection back 50 options.
+This will work whether or not <em>keypad mode</em> is
+<Links and form fields are numbered</em> since options
+are numbered internally. If form field numbering is
+turned off, the option numbers won't appear on screen,
+but the user can still navigate using these commands.
<p>Note that HTML can be structured so that it includes <em>hidden
links</em>, i.e., without a visible link name intended for ACTIVATE-ing
@@ -84,7 +114,7 @@ have support for image handling available. They also can be created by
having truly empty Anchor content, in cases for which the value of an
Anchor's HREF attribute is intended as a navigation aid for robots
(typically indexers) and not as content for a browser's rendition of the
-document. With the <em>-ismap</em> command line switch, Lynx will
+document. With the <em>-ismap</em> command line switch, Lynx will
additionally treat a link to a server-side image maps as hidden if
there also is a client-side map for the same image.
Finally, in some cases links which are not intended to be hidden
@@ -92,14 +122,14 @@ may effectively become <em>hidden links</em> because of bad HTML.
The <em>hidden links</em> differ from Anchors which have only a
NAME or ID attribute name/value pair (intended as positioning targets from
other links which do have HREF attributes and values that include a
-fragment).
+fragment).
<p>Lynx respects instructions for <em>hidden links</em> and normally does
not include them in the rendition of the document. However, if the command
line switch <em>-hiddenlinks=merge</em> is used, such links will still be
numbered in sequence with other links which are not hidden, and if <em>Links
are numbered</em> mode is also on, link numbers will appear for them in the
-displayed text (except for links to image maps which are hidden because of
+displayed text (except for links to image maps which are hidden because of
<em>-ismap</em>). If <em>-hiddenlinks=listonly</em> or
<em>-hiddenlinks=ignore</em> is in effect, <em>hidden links</em> will not be
shown in the text even in <em>links are numbered</em> mode. Not using a
@@ -108,13 +138,13 @@ shown in the text even in <em>links are numbered</em> mode. Not using a
<p>If a document includes
<em>hidden links</em>, they will be reported, with appropriate labeling,
-in the menu created for the LIST ('<em>l</em>') command,
-unless <em>-hiddenlinks=ignore</em> is used. They can then be
-ACTIVATE-ed via that menu. Also, if a link was hidden due to an ALT
+in the menus created for the LIST ('<em>l</em>') or ADDRLIST ('<em>A</em>')
+commands, unless <em>-hiddenlinks=ignore</em> is used. They can then be
+ACTIVATE-ed via those menus. Also, if a link was hidden due to an ALT
attribute in an IMG element, it will be converted to a <em>visible link</em>
whenever the IMAGE_TOGGLE ('<em>*</em>') command is used to create links
-for SRC attritute values of IMG elements, because this indicates that the
-user does have some form of image handling enabled via a helper application,
+for SRC attribute values of IMG elements, because this indicates that the
+user does have some form of image handling enabled via a helper application,
or wishes to download files for subsequent use with a graphic browsers or
other suitable software.
@@ -124,8 +154,9 @@ for the form, but the value should not be displayed in the rendered form.
Lynx respects this attribute as well, and neither displays the HIDDEN field,
nor assigns it a number for the F_LINK_NUM ('<em>0</em>') command and
<em>Links and form fields are numbered</em> keypad mode handling, nor
-includes an entry for it in the menu created for the LIST ('<em>l</em>')
-command. However, the HIDDEN name/value pairs are included in any displays
+includes an entry for it in the menus created for the LIST ('<em>l</em>')
+or ADDRLIST ('<em>A</em>')
+commands. However, the HIDDEN name/value pairs are included in any displays
of submitted form content in the <em>Information about the current
document</em> that is invoked by the INFO ('<em>=</em>') command.
</BODY>
diff --git a/makefile.in b/makefile.in
index 915d25e1..49901d99 100644
--- a/makefile.in
+++ b/makefile.in
@@ -111,6 +111,7 @@ SITE_DEFS = # Your defines here
# -DIGNORE_CTRL_C Define if Control-C shouldn't exit lynx.
# -DNOPORT if you must use PASV instead of PORT for FTP
# -DNO_CPU_LIMIT Disables Max CPU timeout (includes CLOCKS_PER_SECOND)
+# -DNO_RULES Disables CERN-style access rules (see lynx.cfg).
# -DSHORTENED_RBIND For a SOCKSified lynx with the short version of Rbind.
# -DSLANG_MBCS_HACK prevent cutoff lines when using UTF8 console (slang only)
#
@@ -150,8 +151,6 @@ SITE_DEFS = # Your defines here
# -DNCURSES
# -DNO_CHANGE_EXECUTE_PERMS
# -DNO_EXTENDED_HTMLDTD
-# -DOPTIONS_FORMS
-# -DOPTIONS_MENU
# -DNO_PARENT_DIR_REFERENCE
# -DNSL_FORK
# -DOK_GZIP
@@ -160,6 +159,8 @@ SITE_DEFS = # Your defines here
# -DOK_TAR
# -DOK_UUDECODE
# -DOK_ZIP
+# -DOPTIONS_FORMS
+# -DOPTIONS_MENU
# -DSOCKS
# -DSYSLOG_REQUESTED_URLS
# -DUNDERLINE_LINKS
@@ -241,14 +242,14 @@ distclean: clean
@MSG_DIR_MAKE@ -rmdir po
-rm -f *~ *.bak *.sav
-rm -f WWW/Library/unix/makefile src/makefile src/chrtrans/makefile
-@SRCDIR_CLEAN@ -find . -type f -name '*.rej' -exec rm -f {} \;
-@SRCDIR_CLEAN@ -find . -type f -name '*.orig' -exec rm -f {} \;
@SRCDIR_CLEAN@ -rmdir WWW/Library/unix && rmdir WWW/Library && rmdir WWW
@SRCDIR_CLEAN@ -rmdir src/chrtrans && rmdir src
-rm -f makefile lynx_cfg.h config.status config.log config.cache
-rm -f lynx$x install-*
maintainer-clean: distclean
+ -find . -type f -name '*.rej' -exec rm -f {} \;
+ -find . -type f -name '*.orig' -exec rm -f {} \;
-rm -rf WWW/Library/*/obsolete
-rm -f Lynx.prj .*_aux
@@ -350,9 +351,9 @@ install-help : $(helpdir)
LYHelp.h : LYHelp.hin
@echo Constructing sed-script
@ECHO_CC@sed -e '/^#/d' -e '/^$$/d' \
- -e 's%\(.*\)=\(.*\@.*\)%s=@\1@=\2=g%' \
- -e 's%\(.*\)=\(http:.*\)%s=@\1@=\2=g%' \
- -e 's%\(.*\)=\(ftp:.*\)%s=@\1@=\2=g%' \
+ -e 's%\(.*\)=\(.*\@.*\)$$%s=@\1@=\2=g%' \
+ -e 's%\(.*\)=\(http:.*\)$$%s=@\1@=\2=g%' \
+ -e 's%\(.*\)=\(ftp:.*\)$$%s=@\1@=\2=g%' \
-e 's%\(.*\)=\(.*\.html\)$$%s=@\1@=\2$(COMPRESS_EXT)=g%' \
$(srcdir)/lynx_help/help_files.txt | $(FIX_SED) > \
help_files.sed
diff --git a/po/lynx.pot b/po/lynx.pot
index 2a631c78..6d2f86a1 100644
--- a/po/lynx.pot
+++ b/po/lynx.pot
@@ -1,6 +1,6 @@
msgid ""
msgstr ""
-"Date: 1999-02-17 07:13:29-0500\n"
+"Date: 1999-03-03 22:46:30-0500\n"
"From: Thomas Dickey,,, <tom@dickey-ppp>\n"
"Content-Type: text/plain; charset=\n"
"Xgettext-Options: --default-domain=lynx --directory=.. --add-comments --keyword=_ --keyword=N_ --files-from=./POTFILES.in\n"
@@ -385,12 +385,12 @@ msgstr ""
#. #define INC_ORIG_MSG_PROMPT
#: LYMessages.c:157
-msgid "Do you wish to include the original message? (y/n) "
+msgid "Do you wish to include the original message?"
msgstr ""
#. #define INC_PREPARSED_MSG_PROMPT
#: LYMessages.c:159
-msgid "Do you wish to include the preparsed source? (y/n) "
+msgid "Do you wish to include the preparsed source?"
msgstr ""
#. #define SPAWNING_EDITOR_FOR_MAIL
@@ -404,11 +404,11 @@ msgid "Error spawning editor, check your editor definition in the options menu"
msgstr ""
#: LYMessages.c:164
-msgid "Send this comment? (y/n) "
+msgid "Send this comment?"
msgstr ""
#: LYMessages.c:165
-msgid "Send this message? (y/n) "
+msgid "Send this message?"
msgstr ""
#: LYMessages.c:166
@@ -713,7 +713,7 @@ msgstr ""
#. #define CONFIRM_BOOKMARK_DELETE
#: LYMessages.c:272
-msgid "Do you really want to delete this link from your bookmark file? (y/n)"
+msgid "Do you really want to delete this link from your bookmark file?"
msgstr ""
#: LYMessages.c:273
@@ -1027,7 +1027,7 @@ msgstr ""
#. #define CONFIRM_MAIN_SCREEN
#: LYMessages.c:361
-msgid "Do you really want to go to the Main screen? (y/n) [n] "
+msgid "Do you really want to go to the Main screen? [n] "
msgstr ""
#: LYMessages.c:362
@@ -1230,11 +1230,11 @@ msgid "File name may not begin with a dot."
msgstr ""
#: LYMessages.c:421
-msgid "File exists. Create higher version? (y/n)"
+msgid "File exists. Create higher version?"
msgstr ""
#: LYMessages.c:423
-msgid "File exists. Overwrite? (y/n)"
+msgid "File exists. Overwrite?"
msgstr ""
#. VMS
@@ -1422,11 +1422,11 @@ msgid "Spawning your selected editor to edit news message"
msgstr ""
#: LYMessages.c:480
-msgid "Post this message? (y/n) "
+msgid "Post this message?"
msgstr ""
#: LYMessages.c:481
-msgid "Append '%s'? (y/n) "
+msgid "Append '%s'?"
msgstr ""
#: LYMessages.c:482
@@ -1447,497 +1447,521 @@ msgid "*** You have new mail. ***"
msgstr ""
#: LYMessages.c:489
-msgid "Save request cancelled!!!"
+msgid "File insert cancelled!!!"
msgstr ""
#: LYMessages.c:490
+msgid "File does not exist."
+msgstr ""
+
+#: LYMessages.c:491
+msgid "File does not exist - reenter or cancel:"
+msgstr ""
+
+#: LYMessages.c:492
+msgid "File is not readable."
+msgstr ""
+
+#: LYMessages.c:493
+msgid "File is not readable - reenter or cancel:"
+msgstr ""
+
+#: LYMessages.c:494
+msgid "Nothing to insert - file is 0-length."
+msgstr ""
+
+#: LYMessages.c:495
+msgid "Save request cancelled!!!"
+msgstr ""
+
+#: LYMessages.c:496
msgid "Mail request cancelled!!!"
msgstr ""
#. #define CONFIRM_MAIL_SOURCE_PREPARSED
-#: LYMessages.c:492
+#: LYMessages.c:498
msgid "Viewing preparsed source. Are you sure you want to mail it? [y]"
msgstr ""
-#: LYMessages.c:493
+#: LYMessages.c:499
msgid "Please wait..."
msgstr ""
-#: LYMessages.c:494
+#: LYMessages.c:500
msgid "Mailing file. Please wait..."
msgstr ""
-#: LYMessages.c:495
+#: LYMessages.c:501
msgid "ERROR - Unable to mail file"
msgstr ""
#. #define CONFIRM_LONG_SCREEN_PRINT
-#: LYMessages.c:497
+#: LYMessages.c:503
msgid "File is %d screens long. Are you sure you want to print? [y]"
msgstr ""
-#: LYMessages.c:498
+#: LYMessages.c:504
msgid "Print request cancelled!!!"
msgstr ""
-#: LYMessages.c:499
+#: LYMessages.c:505
msgid "Press <return> to begin: "
msgstr ""
-#: LYMessages.c:500
+#: LYMessages.c:506
msgid "Press <return> to finish: "
msgstr ""
#. #define CONFIRM_LONG_PAGE_PRINT
-#: LYMessages.c:502
+#: LYMessages.c:508
msgid "File is %d pages long. Are you sure you want to print? [y]"
msgstr ""
#. #define CHECK_PRINTER
-#: LYMessages.c:504
+#: LYMessages.c:510
msgid "Be sure your printer is on-line. Press <return> to start printing:"
msgstr ""
-#: LYMessages.c:505
+#: LYMessages.c:511
msgid "ERROR - Unable to allocate file space!!!"
msgstr ""
-#: LYMessages.c:506
+#: LYMessages.c:512
msgid "Unable to open tempfile"
msgstr ""
-#: LYMessages.c:507
+#: LYMessages.c:513
msgid "Unable to open print options file"
msgstr ""
-#: LYMessages.c:508
+#: LYMessages.c:514
msgid "Printing file. Please wait..."
msgstr ""
-#: LYMessages.c:509
+#: LYMessages.c:515
msgid "Please enter a valid internet mail address: "
msgstr ""
-#: LYMessages.c:510
+#: LYMessages.c:516
msgid "ERROR! - printer is misconfigured!"
msgstr ""
-#: LYMessages.c:511
+#: LYMessages.c:517
msgid "Image map from POST response not available!"
msgstr ""
-#: LYMessages.c:512
+#: LYMessages.c:518
msgid "Misdirected client-side image MAP request!"
msgstr ""
-#: LYMessages.c:513
+#: LYMessages.c:519
msgid "Client-side image MAP is not accessible!"
msgstr ""
-#: LYMessages.c:514
+#: LYMessages.c:520
msgid "No client-side image MAPs are available!"
msgstr ""
-#: LYMessages.c:515
+#: LYMessages.c:521
msgid "Client-side image MAP is not available!"
msgstr ""
#. #define OPTION_SCREEN_NEEDS_24
-#: LYMessages.c:518
+#: LYMessages.c:524
msgid "Screen height must be at least 24 lines for the Options menu!"
msgstr ""
#. #define OPTION_SCREEN_NEEDS_23
-#: LYMessages.c:520
+#: LYMessages.c:526
msgid "Screen height must be at least 23 lines for the Options menu!"
msgstr ""
#. #define OPTION_SCREEN_NEEDS_22
-#: LYMessages.c:522
+#: LYMessages.c:528
msgid "Screen height must be at least 22 lines for the Options menu!"
msgstr ""
#. !NO_OPTION_MENU
-#: LYMessages.c:524
+#: LYMessages.c:530
msgid "That key requires Advanced User mode."
msgstr ""
-#: LYMessages.c:525
+#: LYMessages.c:531
msgid "Content-type: %s"
msgstr ""
-#: LYMessages.c:526
+#: LYMessages.c:532
msgid "Command: "
msgstr ""
-#: LYMessages.c:527
+#: LYMessages.c:533
msgid " Version "
msgstr ""
-#: LYMessages.c:528
+#: LYMessages.c:534
msgid " first."
msgstr ""
-#: LYMessages.c:529
+#: LYMessages.c:535
msgid ", guessing..."
msgstr ""
-#: LYMessages.c:530
+#: LYMessages.c:536
msgid "Permissions for "
msgstr ""
-#: LYMessages.c:531
+#: LYMessages.c:537
msgid "Select "
msgstr ""
-#: LYMessages.c:532
+#: LYMessages.c:538
msgid "capital letter"
msgstr ""
-#: LYMessages.c:533
+#: LYMessages.c:539
msgid " of option line,"
msgstr ""
-#: LYMessages.c:534
+#: LYMessages.c:540
msgid " to save,"
msgstr ""
-#: LYMessages.c:535
+#: LYMessages.c:541
msgid " to "
msgstr ""
-#: LYMessages.c:536
+#: LYMessages.c:542
msgid " or "
msgstr ""
-#: LYMessages.c:537
+#: LYMessages.c:543
msgid " index"
msgstr ""
-#: LYMessages.c:538
+#: LYMessages.c:544
msgid " to return to Lynx."
msgstr ""
-#: LYMessages.c:539
+#: LYMessages.c:545
msgid "Accept Changes"
msgstr ""
-#: LYMessages.c:540
+#: LYMessages.c:546
msgid "Reset Changes"
msgstr ""
-#: LYMessages.c:541
+#: LYMessages.c:547
msgid "Left Arrow cancels changes"
msgstr ""
-#: LYMessages.c:542
+#: LYMessages.c:548
msgid "Save options to disk"
msgstr ""
-#: LYMessages.c:543
+#: LYMessages.c:549
msgid "Hit RETURN to accept entered data."
msgstr ""
#. #define ACCEPT_DATA_OR_DEFAULT
-#: LYMessages.c:545
+#: LYMessages.c:551
msgid "Hit RETURN to accept entered data. Delete data to invoke the default."
msgstr ""
-#: LYMessages.c:546
+#: LYMessages.c:552
msgid "Value accepted!"
msgstr ""
#. #define VALUE_ACCEPTED_WARNING_X
-#: LYMessages.c:548
+#: LYMessages.c:554
msgid "Value accepted! -- WARNING: Lynx is configured for XWINDOWS!"
msgstr ""
#. #define VALUE_ACCEPTED_WARNING_NONX
-#: LYMessages.c:550
+#: LYMessages.c:556
msgid "Value accepted! -- WARNING: Lynx is NOT configured for XWINDOWS!"
msgstr ""
-#: LYMessages.c:551
+#: LYMessages.c:557
msgid "You are not allowed to change which editor to use!"
msgstr ""
-#: LYMessages.c:552
+#: LYMessages.c:558
msgid "Failed to set DISPLAY variable!"
msgstr ""
-#: LYMessages.c:553
+#: LYMessages.c:559
msgid "Failed to clear DISPLAY variable!"
msgstr ""
#. #define BOOKMARK_CHANGE_DISALLOWED
-#: LYMessages.c:555
+#: LYMessages.c:561
msgid "You are not allowed to change the bookmark file!"
msgstr ""
-#: LYMessages.c:556
+#: LYMessages.c:562
msgid "Terminal does not support color"
msgstr ""
-#: LYMessages.c:557
+#: LYMessages.c:563
msgid "Your '%s' terminal does not support color."
msgstr ""
-#: LYMessages.c:558
+#: LYMessages.c:564
msgid "Access to dot files is disabled!"
msgstr ""
#. #define UA_COPYRIGHT_WARNING
-#: LYMessages.c:560
+#: LYMessages.c:566
msgid "WARNING: Misrepresentation of the User-Agent may be a copyright violation!"
msgstr ""
#. #define CHANGE_OF_SETTING_DISALLOWED
-#: LYMessages.c:562
+#: LYMessages.c:568
msgid "You are not allowed to change this setting."
msgstr ""
-#: LYMessages.c:563
+#: LYMessages.c:569
msgid "Saving Options..."
msgstr ""
-#: LYMessages.c:564
+#: LYMessages.c:570
msgid "Options saved!"
msgstr ""
-#: LYMessages.c:565
+#: LYMessages.c:571
msgid "Unable to save Options!"
msgstr ""
-#: LYMessages.c:566
+#: LYMessages.c:572
msgid " 'r' to return to Lynx "
msgstr ""
-#: LYMessages.c:567
+#: LYMessages.c:573
msgid " '>' to save, or 'r' to return to Lynx "
msgstr ""
#. #define ANY_KEY_CHANGE_RET_ACCEPT
-#: LYMessages.c:569
+#: LYMessages.c:575
msgid "Hit any key to change value; RETURN to accept."
msgstr ""
-#: LYMessages.c:570
+#: LYMessages.c:576
msgid "Error uncompressing temporary file!"
msgstr ""
-#: LYMessages.c:571
+#: LYMessages.c:577
msgid "Unsupported URL scheme!"
msgstr ""
-#: LYMessages.c:572
+#: LYMessages.c:578
msgid "Unsupported data: URL! Use SHOWINFO, for now."
msgstr ""
-#: LYMessages.c:573
+#: LYMessages.c:579
msgid "Redirection limit of 10 URL's reached."
msgstr ""
-#: LYMessages.c:574
+#: LYMessages.c:580
msgid "Illegal redirection URL received from server!"
msgstr ""
#. #define SERVER_ASKED_FOR_REDIRECTION
-#: LYMessages.c:576
+#: LYMessages.c:582
msgid "Server asked for %d redirection of POST content to"
msgstr ""
-#: LYMessages.c:577
+#: LYMessages.c:583
msgid "P)roceed, use G)ET or C)ancel "
msgstr ""
-#: LYMessages.c:578
+#: LYMessages.c:584
msgid "P)roceed, or C)ancel "
msgstr ""
#. #define ADVANCED_POST_GET_REDIRECT
-#: LYMessages.c:580
+#: LYMessages.c:586
msgid "Redirection of POST content. P)roceed, see U)RL, use G)ET or C)ancel"
msgstr ""
#. #define ADVANCED_POST_REDIRECT
-#: LYMessages.c:582
+#: LYMessages.c:588
msgid "Redirection of POST content. P)roceed, see U)RL, or C)ancel"
msgstr ""
#. #define CONFIRM_POST_RESUBMISSION
-#: LYMessages.c:584
+#: LYMessages.c:590
msgid "Document from Form with POST content. Resubmit?"
msgstr ""
#. #define CONFIRM_POST_RESUBMISSION_TO
-#: LYMessages.c:586
+#: LYMessages.c:592
msgid "Resubmit POST content to %s ?"
msgstr ""
#. #define CONFIRM_POST_LIST_RELOAD
-#: LYMessages.c:588
+#: LYMessages.c:594
msgid "List from document with POST data. Reload %s ?"
msgstr ""
#. #define CONFIRM_POST_DOC_HEAD
-#: LYMessages.c:590
+#: LYMessages.c:596
msgid "Document from POST action, HEAD may not be understood. Proceed?"
msgstr ""
#. #define CONFIRM_POST_LINK_HEAD
-#: LYMessages.c:592
+#: LYMessages.c:598
msgid "Form submit action is POST, HEAD may not be understood. Proceed?"
msgstr ""
-#: LYMessages.c:593
+#: LYMessages.c:599
msgid "Proceed without a username and password?"
msgstr ""
-#: LYMessages.c:594
+#: LYMessages.c:600
msgid "Proceed (%s)?"
msgstr ""
-#: LYMessages.c:595
+#: LYMessages.c:601
msgid "Cannot POST to this host."
msgstr ""
-#: LYMessages.c:596
+#: LYMessages.c:602
msgid "POST not supported for this URL - ignoring POST data!"
msgstr ""
-#: LYMessages.c:597
+#: LYMessages.c:603
msgid "Discarding POST data..."
msgstr ""
-#: LYMessages.c:598
+#: LYMessages.c:604
msgid "Document will not be reloaded!"
msgstr ""
-#: LYMessages.c:599
+#: LYMessages.c:605
msgid "Location: "
msgstr ""
-#: LYMessages.c:600
+#: LYMessages.c:606
msgid "'%s' not found!"
msgstr ""
-#: LYMessages.c:601
+#: LYMessages.c:607
msgid "Default Bookmark File"
msgstr ""
-#: LYMessages.c:602
+#: LYMessages.c:608
msgid "Screen too small! (8x35 min)"
msgstr ""
-#: LYMessages.c:603
+#: LYMessages.c:609
msgid "Select destination or ^G to Cancel: "
msgstr ""
#. #define MULTIBOOKMARKS_SELECT
-#: LYMessages.c:605
+#: LYMessages.c:611
msgid "Select subbookmark, '=' for menu, or ^G to cancel: "
msgstr ""
#. #define MULTIBOOKMARKS_SELF
-#: LYMessages.c:607
+#: LYMessages.c:613
msgid "Reproduce L)ink in this bookmark file or C)ancel? (l,c): "
msgstr ""
-#: LYMessages.c:608
+#: LYMessages.c:614
msgid "Multiple bookmark support is not available."
msgstr ""
-#: LYMessages.c:609
+#: LYMessages.c:615
msgid " Select Bookmark (screen %d of %d)"
msgstr ""
-#: LYMessages.c:610
+#: LYMessages.c:616
msgid " Select Bookmark"
msgstr ""
#. #define MULTIBOOKMARKS_EHEAD_MASK
-#: LYMessages.c:612
+#: LYMessages.c:618
msgid "Editing Bookmark DESCRIPTION and FILEPATH (%d of 2)"
msgstr ""
#. #define MULTIBOOKMARKS_EHEAD
-#: LYMessages.c:614
+#: LYMessages.c:620
msgid " Editing Bookmark DESCRIPTION and FILEPATH"
msgstr ""
-#: LYMessages.c:615
+#: LYMessages.c:621
msgid "Letter: "
msgstr ""
#. #define USE_PATH_OFF_HOME
-#: LYMessages.c:618
+#: LYMessages.c:624
msgid "Use a filepath off your login directory in SHELL syntax!"
msgstr ""
-#: LYMessages.c:620
+#: LYMessages.c:626
msgid "Use a filepath off your home directory!"
msgstr ""
#. VMS
#. #define MAXLINKS_REACHED
-#: LYMessages.c:623
+#: LYMessages.c:629
msgid "Maximum links per page exceeded! Use half-page or two-line scrolling."
msgstr ""
#. #define MAXHIST_REACHED
-#: LYMessages.c:625
+#: LYMessages.c:631
msgid "History List maximum reached! Document not pushed."
msgstr ""
-#: LYMessages.c:626
+#: LYMessages.c:632
msgid "No previously visited links available!"
msgstr ""
-#: LYMessages.c:627
+#: LYMessages.c:633
msgid "Memory exhausted! Program aborted!"
msgstr ""
-#: LYMessages.c:628
+#: LYMessages.c:634
msgid "Memory exhausted! Aborting..."
msgstr ""
-#: LYMessages.c:629
+#: LYMessages.c:635
msgid "Directory/File Manager not available"
msgstr ""
-#: LYMessages.c:630
+#: LYMessages.c:636
msgid "HREF in BASE tag is not an absolute URL."
msgstr ""
-#: LYMessages.c:631
+#: LYMessages.c:637
msgid "Location URL is not absolute."
msgstr ""
-#: LYMessages.c:632
+#: LYMessages.c:638
msgid "Refresh URL is not absolute."
msgstr ""
#. #define SENDING_MESSAGE_WITH_BODY_TO
-#: LYMessages.c:634
+#: LYMessages.c:640
msgid ""
"You are sending a message with body to:\n"
" "
msgstr ""
-#: LYMessages.c:635
+#: LYMessages.c:641
msgid ""
"You are sending a comment to:\n"
" "
msgstr ""
-#: LYMessages.c:636
+#: LYMessages.c:642
msgid ""
"\n"
" With copy to:\n"
" "
msgstr ""
-#: LYMessages.c:637
+#: LYMessages.c:643
msgid ""
"\n"
" With copies to:\n"
@@ -1945,7 +1969,7 @@ msgid ""
msgstr ""
#. #define CTRL_G_TO_CANCEL_SEND
-#: LYMessages.c:639
+#: LYMessages.c:645
msgid ""
"\n"
"\n"
@@ -1953,79 +1977,79 @@ msgid ""
msgstr ""
#. #define ENTER_NAME_OR_BLANK
-#: LYMessages.c:641
+#: LYMessages.c:647
msgid ""
"\n"
" Please enter your name, or leave it blank to remain anonymous\n"
msgstr ""
#. #define ENTER_MAIL_ADDRESS_OR_OTHER
-#: LYMessages.c:643
+#: LYMessages.c:649
msgid ""
"\n"
" Please enter a mail address or some other\n"
msgstr ""
#. #define MEANS_TO_CONTACT_FOR_RESPONSE
-#: LYMessages.c:645
+#: LYMessages.c:651
msgid " means to contact you, if you desire a response.\n"
msgstr ""
-#: LYMessages.c:646
+#: LYMessages.c:652
msgid ""
"\n"
" Please enter a subject line.\n"
msgstr ""
#. #define ENTER_ADDRESS_FOR_CC
-#: LYMessages.c:648
+#: LYMessages.c:654
msgid ""
"\n"
" Enter a mail address for a CC of your message.\n"
msgstr ""
-#: LYMessages.c:649
+#: LYMessages.c:655
msgid " (Leave blank if you don't want a copy.)\n"
msgstr ""
-#: LYMessages.c:650
+#: LYMessages.c:656
msgid ""
"\n"
" Please review the message body:\n"
"\n"
msgstr ""
-#: LYMessages.c:651
+#: LYMessages.c:657
msgid ""
"\n"
"Press RETURN to continue: "
msgstr ""
-#: LYMessages.c:652
+#: LYMessages.c:658
msgid ""
"\n"
"Press RETURN to clean up: "
msgstr ""
-#: LYMessages.c:653
+#: LYMessages.c:659
msgid " Use Control-U to erase the default.\n"
msgstr ""
-#: LYMessages.c:654
+#: LYMessages.c:660
msgid ""
"\n"
" Please enter your message below."
msgstr ""
#. #define ENTER_PERIOD_WHEN_DONE_A
-#: LYMessages.c:656 src/LYNews.c:327
+#: LYMessages.c:662 src/LYNews.c:327
msgid ""
"\n"
" When you are done, press enter and put a single period (.)"
msgstr ""
#. #define ENTER_PERIOD_WHEN_DONE_B
-#: LYMessages.c:658 src/LYNews.c:328
+#: LYMessages.c:664 src/LYNews.c:328
msgid ""
"\n"
" on a line and press enter again."
@@ -2033,473 +2057,477 @@ msgstr ""
#. Cookies messages
#. #define ADVANCED_COOKIE_CONFIRMATION
-#: LYMessages.c:662
+#: LYMessages.c:668
msgid "%s cookie: %.*s=%.*s Allow? (Y/N/Always/neVer)"
msgstr ""
#. #define INVALID_COOKIE_DOMAIN_CONFIRMATION
-#: LYMessages.c:664
+#: LYMessages.c:670
msgid "Accept invalid cookie domain=%s for '%s'?"
msgstr ""
#. #define INVALID_COOKIE_PATH_CONFIRMATION
-#: LYMessages.c:666
+#: LYMessages.c:672
msgid "Accept invalid cookie path=%s as a prefix of '%s'?"
msgstr ""
-#: LYMessages.c:667
+#: LYMessages.c:673
msgid "Allowing this cookie."
msgstr ""
-#: LYMessages.c:668
+#: LYMessages.c:674
msgid "Rejecting this cookie."
msgstr ""
-#: LYMessages.c:669
+#: LYMessages.c:675
msgid "The Cookie Jar is empty."
msgstr ""
#. #define ACTIVATE_TO_GOBBLE
-#: LYMessages.c:671
+#: LYMessages.c:677
msgid "Activate links to gobble up cookies or entire domains,"
msgstr ""
-#: LYMessages.c:672
+#: LYMessages.c:678
msgid "or to change a domain's 'allow' setting."
msgstr ""
-#: LYMessages.c:673
+#: LYMessages.c:679
msgid "(Cookies never allowed.)"
msgstr ""
-#: LYMessages.c:674
+#: LYMessages.c:680
msgid "(Cookies always allowed.)"
msgstr ""
-#: LYMessages.c:675
+#: LYMessages.c:681
msgid "(Cookies allowed via prompt.)"
msgstr ""
-#: LYMessages.c:676
+#: LYMessages.c:682
msgid "(Persistent Cookies.)"
msgstr ""
-#: LYMessages.c:677
+#: LYMessages.c:683
msgid "(No title.)"
msgstr ""
-#: LYMessages.c:678
+#: LYMessages.c:684
msgid "(No name.)"
msgstr ""
-#: LYMessages.c:679
+#: LYMessages.c:685
msgid "(No value.)"
msgstr ""
-#: LYMessages.c:680
+#: LYMessages.c:686
msgid "None"
msgstr ""
-#: LYMessages.c:681
+#: LYMessages.c:687
msgid "(End of session.)"
msgstr ""
-#: LYMessages.c:682
+#: LYMessages.c:688
msgid "Delete this cookie?"
msgstr ""
-#: LYMessages.c:683
+#: LYMessages.c:689
msgid "The cookie has been eaten!"
msgstr ""
-#: LYMessages.c:684
+#: LYMessages.c:690
msgid "Delete this empty domain?"
msgstr ""
-#: LYMessages.c:685
+#: LYMessages.c:691
msgid "The domain has been eaten!"
msgstr ""
#. #define DELETE_COOKIES_SET_ALLOW_OR_CANCEL
-#: LYMessages.c:687
+#: LYMessages.c:693
msgid "D)elete domain's cookies, set allow A)lways/P)rompt/neV)er, or C)ancel? "
msgstr ""
#. #define DELETE_DOMAIN_SET_ALLOW_OR_CANCEL
-#: LYMessages.c:689
+#: LYMessages.c:695
msgid "D)elete domain, set allow A)lways/P)rompt/neV)er, or C)ancel? "
msgstr ""
-#: LYMessages.c:690
+#: LYMessages.c:696
msgid "All cookies in the domain have been eaten!"
msgstr ""
-#: LYMessages.c:691
+#: LYMessages.c:697
msgid "'A'lways allowing from domain '%s'."
msgstr ""
-#: LYMessages.c:692
+#: LYMessages.c:698
msgid "ne'V'er allowing from domain '%s'."
msgstr ""
-#: LYMessages.c:693
+#: LYMessages.c:699
msgid "'P'rompting to allow from domain '%s'."
msgstr ""
-#: LYMessages.c:694
+#: LYMessages.c:700
msgid "Delete all cookies in this domain?"
msgstr ""
-#: LYMessages.c:695
+#: LYMessages.c:701
msgid "All of the cookies in the jar have been eaten!"
msgstr ""
-#: LYMessages.c:697
+#: LYMessages.c:703
msgid "Port 19 not permitted in URLs."
msgstr ""
-#: LYMessages.c:698
+#: LYMessages.c:704
msgid "Port 25 not permitted in URLs."
msgstr ""
-#: LYMessages.c:699
+#: LYMessages.c:705
msgid "Port %lu not permitted in URLs."
msgstr ""
-#: LYMessages.c:700
+#: LYMessages.c:706
msgid "URL has a bad port field."
msgstr ""
-#: LYMessages.c:701
+#: LYMessages.c:707
msgid "Maximum nesting of HTML elements exceeded."
msgstr ""
-#: LYMessages.c:702
+#: LYMessages.c:708
msgid "Bad partial reference! Stripping lead dots."
msgstr ""
-#: LYMessages.c:703
+#: LYMessages.c:709
msgid "Trace Log open failed. Trace off!."
msgstr ""
-#: LYMessages.c:704
+#: LYMessages.c:710
msgid "Lynx Trace Log"
msgstr ""
-#: LYMessages.c:705
+#: LYMessages.c:711
msgid "No trace log has been started for this session."
msgstr ""
#. #define MAX_TEMPCOUNT_REACHED
-#: LYMessages.c:707
+#: LYMessages.c:713
msgid "The maximum temporary file count has been reached!"
msgstr ""
#. #define FORM_VALUE_TOO_LONG
-#: LYMessages.c:709
+#: LYMessages.c:715
msgid "Form field value exceeds buffer length! Trim the tail."
msgstr ""
#. #define FORM_TAIL_COMBINED_WITH_HEAD
-#: LYMessages.c:711
+#: LYMessages.c:717
msgid "Modified tail combined with head of form field value."
msgstr ""
#. HTFile.c
-#: LYMessages.c:714
+#: LYMessages.c:720
msgid "Directory"
msgstr ""
-#: LYMessages.c:715
+#: LYMessages.c:721
msgid "Directory browsing is not allowed."
msgstr ""
-#: LYMessages.c:716
+#: LYMessages.c:722
msgid "Selective access is not enabled for this directory"
msgstr ""
-#: LYMessages.c:717
+#: LYMessages.c:723
msgid "Multiformat: directory scan failed."
msgstr ""
-#: LYMessages.c:718
+#: LYMessages.c:724
msgid "This directory is not readable."
msgstr ""
-#: LYMessages.c:719
+#: LYMessages.c:725
msgid "Can't access requested file."
msgstr ""
-#: LYMessages.c:720
+#: LYMessages.c:726
msgid "Could not find suitable representation for transmission."
msgstr ""
-#: LYMessages.c:721
+#: LYMessages.c:727
msgid "Could not open file for decompression!"
msgstr ""
-#: LYMessages.c:722
+#: LYMessages.c:728
msgid "Files:"
msgstr ""
-#: LYMessages.c:723
+#: LYMessages.c:729
msgid "Subdirectories:"
msgstr ""
-#: LYMessages.c:724
+#: LYMessages.c:730
msgid " directory"
msgstr ""
-#: LYMessages.c:725
+#: LYMessages.c:731
msgid "Up to "
msgstr ""
-#: LYMessages.c:726
+#: LYMessages.c:732
msgid "Current directory is "
msgstr ""
#. HTGopher.c
-#: LYMessages.c:729
+#: LYMessages.c:735
msgid "No response from server!"
msgstr ""
-#: LYMessages.c:730
+#: LYMessages.c:736
msgid "CSO index"
msgstr ""
-#: LYMessages.c:731
+#: LYMessages.c:737
msgid ""
"\n"
"This is a searchable index of a CSO database.\n"
msgstr ""
-#: LYMessages.c:732
+#: LYMessages.c:738
msgid "CSO Search Results"
msgstr ""
-#: LYMessages.c:733
+#: LYMessages.c:739
msgid "Seek fail on %s\n"
msgstr ""
-#: LYMessages.c:734
+#: LYMessages.c:740
msgid ""
"\n"
"Press the 's' key and enter search keywords.\n"
msgstr ""
-#: LYMessages.c:735
+#: LYMessages.c:741
msgid ""
"\n"
"This is a searchable Gopher index.\n"
msgstr ""
-#: LYMessages.c:736
+#: LYMessages.c:742
msgid "Gopher index"
msgstr ""
-#: LYMessages.c:737
+#: LYMessages.c:743
msgid "Gopher Menu"
msgstr ""
-#: LYMessages.c:738
+#: LYMessages.c:744
msgid " Search Results"
msgstr ""
-#: LYMessages.c:739
+#: LYMessages.c:745
msgid "Sending CSO/PH request."
msgstr ""
-#: LYMessages.c:740
+#: LYMessages.c:746
msgid "Sending Gopher request."
msgstr ""
-#: LYMessages.c:741
+#: LYMessages.c:747
msgid "CSO/PH request sent; waiting for response."
msgstr ""
-#: LYMessages.c:742
+#: LYMessages.c:748
msgid "Gopher request sent; waiting for response."
msgstr ""
-#: LYMessages.c:743
+#: LYMessages.c:749
msgid ""
"\n"
"Please enter search keywords.\n"
msgstr ""
-#: LYMessages.c:744
+#: LYMessages.c:750
msgid ""
"\n"
"The keywords that you enter will allow you to search on a"
msgstr ""
-#: LYMessages.c:745
+#: LYMessages.c:751
msgid " person's name in the database.\n"
msgstr ""
#. HTNews.c
-#: LYMessages.c:748
+#: LYMessages.c:754
msgid "Connection closed ???"
msgstr ""
-#: LYMessages.c:749
+#: LYMessages.c:755
msgid "Cannot open temporary file for news POST."
msgstr ""
-#: LYMessages.c:750
+#: LYMessages.c:756
msgid "This client does not contain support for posting to news with SSL."
msgstr ""
#. HTStyle.c
-#: LYMessages.c:753
+#: LYMessages.c:759
msgid "Style %d `%s' SGML:%s. Font %s %.1f point.\n"
msgstr ""
-#: LYMessages.c:754
+#: LYMessages.c:760
msgid "\tIndents: first=%.0f others=%.0f, Height=%.1f Desc=%.1f\n"
msgstr ""
-#: LYMessages.c:755
+#: LYMessages.c:761
msgid "\tAlign=%d, %d tabs. (%.0f before, %.0f after)\n"
msgstr ""
-#: LYMessages.c:756
+#: LYMessages.c:762
msgid "\t\tTab kind=%d at %.0f\n"
msgstr ""
-#: LYMessages.c:759
+#: LYMessages.c:765
msgid "Can't proceed without a username and password."
msgstr ""
-#: LYMessages.c:760
+#: LYMessages.c:766
msgid "Can't retry with authorization! Contact the server's WebMaster."
msgstr ""
-#: LYMessages.c:761
+#: LYMessages.c:767
msgid "Can't retry with proxy authorization! Contact the server's WebMaster."
msgstr ""
-#: LYMessages.c:762
+#: LYMessages.c:768
msgid "Retrying with proxy authorization information."
msgstr ""
-#: LYMessages.c:765
+#: LYMessages.c:771
msgid "HTWAIS: Return message too large."
msgstr ""
-#: LYMessages.c:766
+#: LYMessages.c:772
msgid "Enter WAIS query: "
msgstr ""
#. Miscellaneous status
-#: LYMessages.c:769
+#: LYMessages.c:775
msgid "Retrying as HTTP0 request."
msgstr ""
-#: LYMessages.c:770
+#: LYMessages.c:776
msgid "Transferred %d bytes"
msgstr ""
-#: LYMessages.c:771
+#: LYMessages.c:777
msgid "Data transfer complete"
msgstr ""
-#: LYMessages.c:772
+#: LYMessages.c:778
msgid "Error processing line %d of %s\n"
msgstr ""
#. Lynx internal page titles
-#: LYMessages.c:775
+#: LYMessages.c:781
+msgid "Address List Page"
+msgstr ""
+
+#: LYMessages.c:782
+msgid "Bookmark file"
+msgstr ""
+
+#: LYMessages.c:783
msgid "Configuration Definitions"
msgstr ""
-#: LYMessages.c:776
+#: LYMessages.c:784
msgid "Cookie Jar"
msgstr ""
-#: LYMessages.c:777
+#: LYMessages.c:785
msgid "Current Key Map"
msgstr ""
-#: LYMessages.c:778
+#: LYMessages.c:786
msgid "File Management Options"
msgstr ""
-#: LYMessages.c:779
+#: LYMessages.c:787
msgid "Download Options"
msgstr ""
-#: LYMessages.c:780
+#: LYMessages.c:788
msgid "History Page"
msgstr ""
-#: LYMessages.c:781
+#: LYMessages.c:789
msgid "List Page"
msgstr ""
-#: LYMessages.c:782
+#: LYMessages.c:790
msgid "Lynx.cfg Information"
msgstr ""
-#: LYMessages.c:783
+#: LYMessages.c:791
+msgid "Converted Mosaic Hotlist"
+msgstr ""
+
+#: LYMessages.c:792
msgid "Options Menu"
msgstr ""
-#: LYMessages.c:784
+#: LYMessages.c:793
msgid "File Permission Options"
msgstr ""
-#: LYMessages.c:785
+#: LYMessages.c:794
msgid "Printing Options"
msgstr ""
-#: LYMessages.c:786
+#: LYMessages.c:795
msgid "Information about the current document"
msgstr ""
-#: LYMessages.c:787
+#: LYMessages.c:796
msgid "Upload Options"
msgstr ""
-#: LYMessages.c:788
+#: LYMessages.c:797
msgid "Visited Links Page"
msgstr ""
-#: LYMessages.c:789
-msgid "Bookmark file"
-msgstr ""
-
-#: LYMessages.c:790
-msgid "Converted Mosaic Hotlist"
-msgstr ""
-
#. CONFIG_DEF_TITLE subtitles
-#: LYMessages.c:793
+#: LYMessages.c:800
msgid "See also"
msgstr ""
-#: LYMessages.c:794
+#: LYMessages.c:801
msgid "your"
msgstr ""
-#: LYMessages.c:795
+#: LYMessages.c:802
msgid "for runtime options"
msgstr ""
-#: LYMessages.c:796
+#: LYMessages.c:803
msgid "compile time options"
msgstr ""
-#: LYMessages.c:797
+#: LYMessages.c:804
msgid "latest release"
msgstr ""
-#: LYMessages.c:798
+#: LYMessages.c:805
msgid "development version"
msgstr ""
#. #define AUTOCONF_CONFIG_CACHE
-#: LYMessages.c:800
+#: LYMessages.c:807
msgid ""
"The following data were derived during the automatic configuration/build\n"
"process of this copy of Lynx. When reporting a bug, please include a copy\n"
@@ -2507,27 +2535,28 @@ msgid ""
msgstr ""
#. #define AUTOCONF_LYNXCFG_H
-#: LYMessages.c:804
+#: LYMessages.c:811
msgid ""
"The following data were used as automatically-configured compile-time\n"
"definitions when this copy of Lynx was built."
msgstr ""
#. #define DIRED_NOVICELINE
-#: LYMessages.c:809
+#: LYMessages.c:816
msgid " C)reate D)ownload E)dit F)ull menu M)odify R)emove T)ag U)pload \n"
msgstr ""
-#: LYMessages.c:810
+#: LYMessages.c:817
msgid "Failed to obtain status of current link!"
msgstr ""
#. #define INVALID_PERMIT_URL
-#: LYMessages.c:813
+#: LYMessages.c:820
msgid "Special URL only valid from current File Permission menu!"
msgstr ""
-#: LYMessages.c:817
+#. DIRED_SUPPORT
+#: LYMessages.c:824
msgid "External support is currently disabled."
msgstr ""
@@ -2555,31 +2584,35 @@ msgstr ""
msgid "Access without authorization denied -- retrying"
msgstr ""
-#: WWW/Library/Implementation/HTAccess.c:599
+#: WWW/Library/Implementation/HTAccess.c:606
msgid "Access forbidden by rule"
msgstr ""
-#: WWW/Library/Implementation/HTAccess.c:696
+#: WWW/Library/Implementation/HTAccess.c:703
msgid "Document with POST content not found in cache. Resubmit?"
msgstr ""
-#: WWW/Library/Implementation/HTAccess.c:936
+#: WWW/Library/Implementation/HTAccess.c:943
msgid "Loading incomplete."
msgstr ""
-#: WWW/Library/Implementation/HTAccess.c:966
+#.
+#. ** If you get this, then please find which routine is returning
+#. ** a positive unrecognized error code!
+#.
+#: WWW/Library/Implementation/HTAccess.c:973
msgid "**** HTAccess: socket or file number returned by obsolete load routine!\n"
msgstr ""
-#: WWW/Library/Implementation/HTAccess.c:968
+#: WWW/Library/Implementation/HTAccess.c:975
msgid "**** HTAccess: Internal software error. Please mail lynx_dev@sig.net!\n"
msgstr ""
-#: WWW/Library/Implementation/HTAccess.c:969
+#: WWW/Library/Implementation/HTAccess.c:976
msgid "**** HTAccess: Status returned was: %d\n"
msgstr ""
-#: WWW/Library/Implementation/HTAccess.c:982
+#: WWW/Library/Implementation/HTAccess.c:989
msgid "Unable to access document."
msgstr ""
@@ -3040,83 +3073,83 @@ msgstr ""
msgid "Host"
msgstr ""
-#: src/GridText.c:353
+#: src/GridText.c:354
msgid "Memory exhausted, display interrupted!"
msgstr ""
-#: src/GridText.c:358
+#: src/GridText.c:359
msgid "Memory exhausted, will interrupt transfer!"
msgstr ""
-#: src/GridText.c:2401
+#: src/GridText.c:2402
msgid " *** MEMORY EXHAUSTED ***"
msgstr ""
-#: src/GridText.c:3887 src/GridText.c:3894 src/LYList.c:244
+#: src/GridText.c:3888 src/GridText.c:3895 src/LYList.c:249
msgid "unknown field or link"
msgstr ""
-#: src/GridText.c:3903
+#: src/GridText.c:3904
msgid "text entry field"
msgstr ""
-#: src/GridText.c:3906
+#: src/GridText.c:3907
msgid "password entry field"
msgstr ""
-#: src/GridText.c:3909
+#: src/GridText.c:3910
msgid "checkbox"
msgstr ""
-#: src/GridText.c:3912
+#: src/GridText.c:3913
msgid "radio button"
msgstr ""
-#: src/GridText.c:3915
+#: src/GridText.c:3916
msgid "submit button"
msgstr ""
-#: src/GridText.c:3918
+#: src/GridText.c:3919
msgid "reset button"
msgstr ""
-#: src/GridText.c:3921
+#: src/GridText.c:3922
msgid "popup menu"
msgstr ""
-#: src/GridText.c:3924
+#: src/GridText.c:3925
msgid "hidden form field"
msgstr ""
-#: src/GridText.c:3927
+#: src/GridText.c:3928
msgid "text entry area"
msgstr ""
-#: src/GridText.c:3930
+#: src/GridText.c:3931
msgid "range entry field"
msgstr ""
-#: src/GridText.c:3933
+#: src/GridText.c:3934
msgid "file entry field"
msgstr ""
-#: src/GridText.c:3936
+#: src/GridText.c:3937
msgid "text-submit field"
msgstr ""
-#: src/GridText.c:3939
+#: src/GridText.c:3940
msgid "image-submit button"
msgstr ""
-#: src/GridText.c:3942
+#: src/GridText.c:3943
msgid "keygen field"
msgstr ""
-#: src/GridText.c:3945
+#: src/GridText.c:3946
msgid "unknown form field"
msgstr ""
-#: src/GridText.c:8500
+#: src/GridText.c:8568
msgid "Submitting %s"
msgstr ""
@@ -3152,23 +3185,23 @@ msgstr ""
msgid "no"
msgstr ""
-#: src/HTML.c:5492
+#: src/HTML.c:5516
msgid "Description:"
msgstr ""
-#: src/HTML.c:5497
+#: src/HTML.c:5521
msgid "(none)"
msgstr ""
-#: src/HTML.c:5501
+#: src/HTML.c:5525
msgid "Filepath:"
msgstr ""
-#: src/HTML.c:5506
+#: src/HTML.c:5530
msgid "(unknown)"
msgstr ""
-#: src/HTML.c:6776
+#: src/HTML.c:6800
msgid "Document has only hidden links. Use the 'l'ist command."
msgstr ""
@@ -3228,15 +3261,15 @@ msgid "Exiting via interrupt:"
msgstr ""
#. not used any more - kw
-#: src/LYCookie.c:2144
+#: src/LYCookie.c:2142
msgid "(From Cookie Jar)"
msgstr ""
-#: src/LYCookie.c:2560
+#: src/LYCookie.c:2558
msgid "(from a previous session)"
msgstr ""
-#: src/LYCookie.c:2620
+#: src/LYCookie.c:2618
msgid "Maximum Gobble Date:"
msgstr ""
@@ -3301,7 +3334,7 @@ msgstr ""
msgid "Save to disk disabled."
msgstr ""
-#: src/LYDownload.c:537 src/LYPrint.c:1307
+#: src/LYDownload.c:537 src/LYPrint.c:1317
msgid "Local additions:"
msgstr ""
@@ -3309,27 +3342,27 @@ msgstr ""
msgid "No Name Given"
msgstr ""
-#: src/LYHistory.c:388
+#: src/LYHistory.c:391
msgid "You selected:"
msgstr ""
-#: src/LYHistory.c:412 src/LYHistory.c:574
+#: src/LYHistory.c:415 src/LYHistory.c:577
msgid "(no address)"
msgstr ""
-#: src/LYHistory.c:416
+#: src/LYHistory.c:419
msgid " (internal)"
msgstr ""
-#: src/LYHistory.c:418
+#: src/LYHistory.c:421
msgid " (was internal)"
msgstr ""
-#: src/LYHistory.c:501
+#: src/LYHistory.c:504
msgid " (From History)"
msgstr ""
-#: src/LYHistory.c:538
+#: src/LYHistory.c:541
msgid "You visited (POSTs, bookmark, menu and list files excluded):"
msgstr ""
@@ -3369,27 +3402,27 @@ msgstr ""
msgid "Total memory leakage this run:"
msgstr ""
-#: src/LYList.c:88
+#: src/LYList.c:93
msgid "References in "
msgstr ""
-#: src/LYList.c:89
+#: src/LYList.c:94
msgid "this document:"
msgstr ""
-#: src/LYList.c:95
+#: src/LYList.c:100
msgid "Visible links:"
msgstr ""
-#: src/LYList.c:185 src/LYList.c:305
+#: src/LYList.c:190 src/LYList.c:310
msgid "Hidden links:"
msgstr ""
-#: src/LYList.c:253
+#: src/LYList.c:258
msgid "References"
msgstr ""
-#: src/LYList.c:255
+#: src/LYList.c:260
msgid "Visible links"
msgstr ""
@@ -3687,128 +3720,122 @@ msgstr ""
msgid "Personal Name: "
msgstr ""
-#: src/LYMain.c:628
+#: src/LYMain.c:631
msgid "No Winsock found, sorry."
msgstr ""
-#: src/LYMain.c:794
+#: src/LYMain.c:797
msgid "You MUST define a valid TMP or TEMP area!\n"
msgstr ""
-#.
-#. * If the configuration file is not available,
-#. * inform the user and exit.
-#.
-#: src/LYMain.c:1192
+#: src/LYMain.c:1187
msgid ""
"\n"
"Configuration file %s is not available.\n"
"\n"
msgstr ""
-#: src/LYMain.c:1208
+#: src/LYMain.c:1203
msgid ""
"\n"
"Lynx character sets not declared.\n"
"\n"
msgstr ""
-#: src/LYMain.c:1267
+#.
+#. * If the lynx-style file is not available,
+#. * inform the user and exit.
+#.
+#: src/LYMain.c:1262
msgid ""
"\n"
"Lynx file %s is not available.\n"
"\n"
msgstr ""
-#.
-#. * Make sure we have the edit map declared. - FM
-#.
-#: src/LYMain.c:1281
+#: src/LYMain.c:1276
msgid ""
"\n"
"Lynx edit map not declared.\n"
"\n"
msgstr ""
-#: src/LYMain.c:2501
+#: src/LYMain.c:2496
msgid ""
"\n"
"%s Version %s (%.*s)\n"
msgstr ""
-#: src/LYMain.c:2508
+#: src/LYMain.c:2503
msgid "Copyrights held by the University of Kansas, CERN, and other contributors.\n"
msgstr ""
-#: src/LYMain.c:2510
+#: src/LYMain.c:2505
msgid "Distributed under the GNU General Public License.\n"
msgstr ""
-#: src/LYMain.c:2512
+#: src/LYMain.c:2507
msgid ""
"See http://lynx.browser.org/ and the online help for more information.\n"
"\n"
msgstr ""
-#: src/LYMain.c:3034
+#: src/LYMain.c:3030
msgid "USAGE: %s [options] [file]\n"
msgstr ""
-#: src/LYMain.c:3035
+#: src/LYMain.c:3031
msgid "Options are:\n"
msgstr ""
-#: src/LYMain.c:3234
+#: src/LYMain.c:3230
msgid "%s: Invalid Option: %s\n"
msgstr ""
-#: src/LYMainLoop.c:315 src/LYMainLoop.c:3828
+#: src/LYMainLoop.c:322 src/LYMainLoop.c:3891
msgid "Entry into main screen"
msgstr ""
-#: src/LYMainLoop.c:669 src/LYMainLoop.c:676
+#: src/LYMainLoop.c:676 src/LYMainLoop.c:683
msgid ""
"\n"
"lynx: Can't access startfile %s\n"
msgstr ""
-#: src/LYMainLoop.c:761
+#: src/LYMainLoop.c:768
msgid ""
"\n"
"lynx: Start file could not be found or is not text/html or text/plain\n"
msgstr ""
-#: src/LYMainLoop.c:762
+#: src/LYMainLoop.c:769
msgid " Exiting...\n"
msgstr ""
-#: src/LYMainLoop.c:1554 src/LYMainLoop.c:1558
+#: src/LYMainLoop.c:1561 src/LYMainLoop.c:1565
msgid "Fatal error - could not open output file %s\n"
msgstr ""
-#: src/LYMainLoop.c:3022
+#: src/LYMainLoop.c:3086
msgid "Enctype multipart/form-data not yet supported! Cannot submit."
msgstr ""
-#.
-#. * Make a name for this new URL.
-#.
-#: src/LYMainLoop.c:3757
+#: src/LYMainLoop.c:3820
msgid "A URL specified by the user"
msgstr ""
#.
#. * Make a name for this help file.
#.
-#: src/LYMainLoop.c:3783
+#: src/LYMainLoop.c:3846
msgid "Help Screen"
msgstr ""
-#: src/LYMainLoop.c:3807
+#: src/LYMainLoop.c:3870
msgid "System Index"
msgstr ""
-#: src/LYMainLoop.c:5343
+#: src/LYMainLoop.c:5497
msgid "charset for this document specified explicitely, sorry..."
msgstr ""
@@ -4023,63 +4050,64 @@ msgstr ""
msgid "User-Agent header"
msgstr ""
-#: src/LYPrint.c:778
+#. Close the tmpfile.
+#: src/LYPrint.c:787
msgid "Sending"
msgstr ""
-#: src/LYPrint.c:1265
+#: src/LYPrint.c:1275
msgid "Document:"
msgstr ""
-#: src/LYPrint.c:1266
+#: src/LYPrint.c:1276
msgid "Number of lines:"
msgstr ""
-#: src/LYPrint.c:1267
+#: src/LYPrint.c:1277
msgid "Number of pages:"
msgstr ""
-#: src/LYPrint.c:1268
+#: src/LYPrint.c:1278
msgid "pages"
msgstr ""
-#: src/LYPrint.c:1268
+#: src/LYPrint.c:1278
msgid "page"
msgstr ""
-#: src/LYPrint.c:1269
+#: src/LYPrint.c:1279
msgid "(approximately)"
msgstr ""
-#: src/LYPrint.c:1274
+#: src/LYPrint.c:1284
msgid "Some print functions have been disabled!"
msgstr ""
-#: src/LYPrint.c:1278
+#: src/LYPrint.c:1288
msgid "Standard print options:"
msgstr ""
-#: src/LYPrint.c:1279
+#: src/LYPrint.c:1289
msgid "Print options:"
msgstr ""
-#: src/LYPrint.c:1285
+#: src/LYPrint.c:1295
msgid "Save to a local file"
msgstr ""
-#: src/LYPrint.c:1287
+#: src/LYPrint.c:1297
msgid "Save to disk disabled"
msgstr ""
-#: src/LYPrint.c:1293
+#: src/LYPrint.c:1303
msgid "Mail the file"
msgstr ""
-#: src/LYPrint.c:1299
+#: src/LYPrint.c:1309
msgid "Print to the screen"
msgstr ""
-#: src/LYPrint.c:1303
+#: src/LYPrint.c:1313
msgid "Print out on a printer attached to your vt100 terminal"
msgstr ""
@@ -4651,31 +4679,33 @@ msgstr ""
#: src/LYrcFile.c:898
msgid ""
"# cookie_accept_domains and cookie_reject_domains are comma-delimited\n"
-"# lists of domains (with a leading '.') to automatically accept or\n"
-"# reject all cookies from. The accept_all_cookies parameter will\n"
-"# override any settings made here. If a single domain is specified in\n"
-"# both cookie_accept_domains and in cookie_reject_domains, the rejection\n"
-"# will take precedence.\n"
+"# lists of domains from which Lynx should automatically accept or reject\n"
+"# all cookies. If a domain is specified in both options, rejection will\n"
+"# take precedence. The accept_all_cookies parameter will override any\n"
+"# settings made here.\n"
msgstr ""
-#: src/LYrcFile.c:913
+#: src/LYrcFile.c:912
msgid ""
"# cookie_loose_invalid_domains, cookie_strict_invalid_domains, and\n"
-"# cookie_query_invalid_domains control checking incoming cookies'\n"
-"# conformance to RFCNNNN.\n"
-"# XXX FIXME\n"
+"# cookie_query_invalid_domains are comma-delimited lists of which domains\n"
+"# should be subjected to varying degrees of validity checking. If a\n"
+"# domain is set to strict checking, strict conformance to RFC2109 will\n"
+"# be applied. A domain with loose checking will be allowed to set cookies\n"
+"# with an invalid path or domain attribute. All domains will default to\n"
+"# querying the user for an invalid path or domain.\n"
msgstr ""
#.
#. * Cookie file.
#.
-#: src/LYrcFile.c:933
+#: src/LYrcFile.c:935
msgid ""
"# cookie_file specifies the file in which to store persistent cookies.\n"
"# The default is ~/.lynx_cookies.\n"
msgstr ""
-#: src/LYrcFile.c:946
+#: src/LYrcFile.c:948
msgid ""
"# If run_all_execution_links is set \"on\" then all local execution links\n"
"# will be executed when they are selected.\n"
@@ -4691,7 +4721,7 @@ msgstr ""
#.
#. * Local execution mode - only links in local files.
#.
-#: src/LYrcFile.c:962
+#: src/LYrcFile.c:964
msgid ""
"# If run_execution_links_on_local_files is set \"on\" then all local\n"
"# execution links that are found in LOCAL files will be executed when they\n"
@@ -4707,7 +4737,7 @@ msgid ""
"# you are viewing trusted source information.\n"
msgstr ""
-#: src/LYrcFile.c:979
+#: src/LYrcFile.c:981
msgid ""
"# If verbose_images is \"on\", lynx will print the name of the image\n"
"# source file in place of [INLINE], [LINK] or [IMAGE]\n"
diff --git a/po/readme b/po/readme
index 4c416e51..0a6feacc 100644
--- a/po/readme
+++ b/po/readme
@@ -16,3 +16,6 @@ Translation in <msgstr>, empty string assume english default.
Do not forget to include %s properly in your contributed translation!
A good place to start is with the messages derived from LYMessages_en.h
+
+We are collecting Lynx user contributed message translation files at
+http://www.slcc.edu/lynx/po/ to avoid increasing the distribution size.
diff --git a/src/GridText.c b/src/GridText.c
index 8ddc702e..9db4602c 100644
--- a/src/GridText.c
+++ b/src/GridText.c
@@ -36,6 +36,7 @@
#include <LYCharUtils.h> /* LYUCTranslateBack... */
#include <UCMap.h>
#include <LYEdit.h>
+#include <LYPrint.h>
#ifdef EXP_CHARTRANS_AUTOSWITCH
#include <UCAuto.h>
#endif /* EXP_CHARTRANS_AUTOSWITCH */
@@ -3101,7 +3102,7 @@ PUBLIC void HText_endAnchor ARGS2(
*/
a->extent += (text->chars + last->size) - a->start -
(text->Lines - a->line_num);
- if (a->extent > last->size) {
+ if ((unsigned) a->extent > last->size) {
/*
* The anchor extends over more than one line,
* so set up to check the entire last line. - FM
@@ -3115,7 +3116,7 @@ PUBLIC void HText_endAnchor ARGS2(
i = a->extent;
}
k = j = (last->size - i);
- while (j < last->size) {
+ while ((unsigned) j < last->size) {
if (!IsSpecialAttrChar(last->data[j]) &&
!isspace((unsigned char)last->data[j]) &&
last->data[j] != HT_NON_BREAK_SPACE &&
@@ -3125,7 +3126,7 @@ PUBLIC void HText_endAnchor ARGS2(
j++;
}
if (i == 0) {
- if (a->extent > last->size) {
+ if ((unsigned) a->extent > last->size) {
/*
* The anchor starts on a preceding line, and
* the last line has only white and special
@@ -3172,7 +3173,7 @@ PUBLIC void HText_endAnchor ARGS2(
*/
i = a->extent - CurBlankExtent;
}
- while (j < prev->size) {
+ while ((unsigned) j < prev->size) {
if (!IsSpecialAttrChar(prev->data[j]) &&
!isspace((unsigned char)prev->data[j]) &&
prev->data[j] != HT_NON_BREAK_SPACE &&
@@ -3182,7 +3183,7 @@ PUBLIC void HText_endAnchor ARGS2(
j++;
}
if (i == 0) {
- if (a->extent > (CurBlankExtent + prev->size) ||
+ if ((unsigned) a->extent > (CurBlankExtent + prev->size) ||
(a->extent == CurBlankExtent + (int)prev->size &&
k == 0 &&
prev->prev != text->last_line &&
@@ -3291,7 +3292,7 @@ PUBLIC void HText_endAnchor ARGS2(
text->permissible_split -= NumSize;
}
k = j + NumSize;
- while (k < start->size)
+ while ((unsigned) k < start->size)
start->data[j++] = start->data[k++];
if (start != last)
text->chars -= NumSize;
@@ -3329,7 +3330,7 @@ PUBLIC void HText_endAnchor ARGS2(
*/
NumSize++;
l = (i - j);
- while (i < prev->size)
+ while ((unsigned) i < prev->size)
prev->data[j++] = prev->data[i++];
text->chars -= l;
for (anc = a; anc; anc = anc->next) {
@@ -3347,7 +3348,7 @@ PUBLIC void HText_endAnchor ARGS2(
}
j = 0;
i = k;
- while (k < start->size)
+ while ((unsigned) k < start->size)
start->data[j++] = start->data[k++];
if (start != last)
text->chars -= i;
@@ -3406,7 +3407,7 @@ PUBLIC void HText_endAnchor ARGS2(
*/
NumSize++;
k = j + NumSize;
- while (k < prev->size)
+ while ((unsigned) k < prev->size)
prev->data[j++] = prev->data[k++];
text->chars -= NumSize;
for (anc = a; anc; anc = anc->next) {
@@ -3654,7 +3655,7 @@ re_parse:
/*
* Find the right line.
*/
- for (; anchor_ptr->start > cur_char;
+ for (; anchor_ptr->start > cur_char;
line_ptr = line_ptr->next,
cur_char += line_ptr->size+1,
cur_line++) {
@@ -3947,6 +3948,73 @@ PUBLIC void HText_FormDescNumber ARGS2(
}
}
+/* HTGetRelLinkNum returns the anchor number to which follow_link_number()
+ * is to jump (input was 123+ or 123- or 123+g or 123-g or 123 or 123g)
+ * num is the number specified
+ * rel is 0 or '+' or '-'
+ * cur is the current link
+ */
+PUBLIC int HTGetRelLinkNum ARGS3(
+ int, num,
+ int, rel,
+ int, cur)
+{
+ TextAnchor *a, *l = 0;
+ int scrtop = HText_getTopOfScreen()+1;
+ int curline = links[cur].anchor_line_num;
+ int curpos = links[cur].lx;
+ int on_screen = ( curline >= scrtop && curline < (scrtop + display_lines) );
+ /* curanchor may or may not be the "current link", depending whether it's
+ * on the current screen
+ */
+ int curanchor = links[cur].anchor_number;
+
+ CTRACE(tfp, "HTGetRelLinkNum(%d,%d,%d) -- HTMainText=%p\n",
+ num, rel, cur, HTMainText);
+ CTRACE(tfp," scrtop=%d, curline=%d, curanchor=%d, display_lines=%d, %s\n",
+ scrtop, curline, curanchor, display_lines,
+ on_screen ? "on_screen" : "0");
+ if (!HTMainText) return 0;
+ if ( rel==0 ) return num;
+
+ /* if cur numbered link is on current page, use it */
+ if ( on_screen && curanchor ) {
+ CTRACE(tfp,"curanchor=%d at line %d on screen\n",curanchor,curline);
+ if ( rel == '+' ) return curanchor + num;
+ else if ( rel == '-' ) return curanchor - num;
+ else return num; /* shouldn't happen */
+ }
+
+ /* no current link on screen, or current link is not numbered
+ * -- find previous closest numbered link
+ */
+ for (a = HTMainText->first_anchor; a; a = a->next) {
+ CTRACE(tfp," a->line_num=%d, a->number=%d\n",a->line_num,a->number);
+ if ( a->line_num >= scrtop ) break;
+ if ( a->number == 0 ) continue;
+ l = a;
+ curanchor = l->number;
+ }
+ CTRACE(tfp," a=%p, l=%p, curanchor=%d\n",a,l,curanchor);
+ if ( on_screen ) { /* on screen but not a numbered link */
+ for ( ; a; a = a->next ) {
+ if ( a->number ) { l = a; curanchor = l->number; }
+ if ( curline == a->line_num && curpos == a->line_pos ) break;
+ }
+ }
+ if ( rel == '+' ) {
+ return curanchor + num;
+ } else if ( rel == '-' ) {
+ if ( l )
+ return curanchor + 1 - num;
+ else {
+ for ( ; a && a->number==0; a = a->next ) ;
+ return a ? a->number - num : 0;
+ }
+ }
+ else return num; /* shouldn't happen */
+}
+
/*
* HTGetLinkInfo returns some link info based on the number.
*
@@ -4152,7 +4220,7 @@ PRIVATE BOOLEAN same_anchor_or_field ARGS5(
#define same_anchor_as_link(i,a) (i >= 0 && a &&\
same_anchor_or_field(links[i].anchor_number,\
- (links[i].type == WWW_FORM_LINK_TYPE) ? links[i].form : NULL,\
+ (links[i].type == WWW_FORM_LINK_TYPE) ? links[i].form : NULL,\
a->number,\
(a->link_type == INPUT_ANCHOR) ? a->input_field : NULL,\
ta_skip))
@@ -8960,6 +9028,104 @@ PUBLIC BOOL HText_AreDifferent ARGS2(
/*
+ * Cleanup new lines coming into a TEXTAREA from an external editor, or a
+ * file, such that they are in a suitable format for TEXTAREA rendering,
+ * display, and manipulation. That means trimming off trailing whitespace
+ * from the line, expanding TABS into SPACES, and substituting a printable
+ * character for control chars, and the like.
+ *
+ * --KED 02/24/99
+ */
+PRIVATE void cleanup_line_for_textarea ARGS2(
+ char *, line,
+ int, len)
+{
+ char tbuf[MAX_LINE];
+
+ char *cp;
+ char *p;
+ char *s;
+ int i;
+ int n;
+
+
+ /*
+ * Whack off trailing whitespace from the line.
+ */
+ for (i = len, p = line + (len - 1); i != 0; p--, i--) {
+ if (isspace (*p))
+ *p = '\0';
+ else
+ break;
+ }
+
+ if (strlen (line) != 0) {
+ /*
+ * Expand any tab's, since they won't render properly in a TEXTAREA.
+ *
+ * [Is that "by spec", or just a "lynxism"? As may be, it seems that
+ * such chars may cause other problems, too ... with cursor movement,
+ * submit'ing, etc. Probably needs looking into more deeply.]
+ */
+ p = line;
+ s = tbuf;
+
+ while (*p) {
+ if ((cp = strchr (p, '\t')) != 0) {
+ i = cp - p;
+ s = (strncpy (s, p, i)) + i;
+ n = TABSTOP - (i % TABSTOP);
+ s = (strncpy (s, SPACES, n)) + n;
+ p += (i + 1);
+
+ } else {
+
+ strcpy (s, p);
+ break;
+ }
+ }
+
+ /*
+ * Replace control chars with something printable. Note that char
+ * substitution above 0x7f is dependent on the charset being used,
+ * and then only applies to the contiguous run of char values that
+ * are between 0x80, and the 1st real high-order-bit-set character,
+ * as specified by the charset. In general (ie, for many character
+ * sets), that usually means the so-called "C1 control chars" that
+ * range from 0x80 thru 0x9f. For EBCDIC machines, we only trim the
+ * (control) chars below a space (x'40').
+ *
+ * The assumption in all this is that the charset used in the editor,
+ * is compatible with the charset specified in lynx.
+ *
+ * [At some point in time, when/if lynx ever supports multibyte chars
+ * internally (eg, UCS-2, UCS-4, UTF-16, etc), this kind of thing may
+ * well cause problems. But then, supporting such char sets will
+ * require massive changes in (most) all parts of the lynx code, so
+ * until then, we do the rational thing with char values that would
+ * otherwise foul the display, if left alone. If you're implementing
+ * multibyte character set support, consider yourself to have been
+ * warned.]
+ */
+ for (p = line, s = tbuf; *s != '\0'; p++, s++)
+#ifndef EBCDIC
+ *p = (((unsigned char)*s < (unsigned char)' ') ||
+ ((unsigned char)*s == (unsigned char)'\177') ||
+ (((unsigned char)*s > (unsigned char)'\177') &&
+ ((unsigned char)*s <
+ (unsigned char)LYlowest_eightbit[current_char_set])))
+ ? SPLAT : *s;
+#else
+ *p = ((unsigned char)*s < (unsigned char)' ') ? SPLAT : *s;
+#endif
+ *p = '\0';
+ }
+
+ return;
+}
+
+
+/*
* Re-render the text of a tagged ("[123]") HTLine (arg1), with the tag
* number incremented by some value (arg5). The re-rendered string may
* be allowed to expand in the event of a tag width change (eg, 99 -> 100)
@@ -8967,7 +9133,7 @@ PUBLIC BOOL HText_AreDifferent ARGS2(
* of) a value which must match, in order for the tag to be incremented,
* or (the address of) a 0-value, which will match any value, and cause
* any valid tag to be incremented. Arg2 is a pointer to the first/only
- * Anchor that exists on the line; we may need to adjust their position(s)
+ * anchor that exists on the line; we may need to adjust their position(s)
* on the line. Arg3 when non-0 indicates the number of new digits that
* were added to the 2nd line in a line crossing pair.
*
@@ -8977,7 +9143,9 @@ PUBLIC BOOL HText_AreDifferent ARGS2(
* Untagged or improperly tagged lines are not altered.
*
* Returns the number of chars added to the original string's length, if
- * any. KED 02/03/99
+ * any.
+ *
+ * --KED 02/03/99
*/
PRIVATE int increment_tagged_htline ARGS6(
HTLine *, ht,
@@ -9031,26 +9199,25 @@ PRIVATE int increment_tagged_htline ARGS6(
if (st_anchor) st_anchor = st_anchor->next;
}
-
/*
* Walk thru the line looking for tags (ie, "[nnn]" strings).
*/
while (*p != '\0') {
if (*p != '[') {
- *s++ = *p++;
- continue;
+ *s++ = *p++;
+ continue;
} else {
- *s++ = *p++;
- t = p;
- n = 0;
+ *s++ = *p++;
+ t = p;
+ n = 0;
valid = TRUE; /* p = t = byte after '[' */
/*
* Make sure there are only digits between "[" and "]".
*/
while (*t != ']') {
- if (*t == '\0') { /* uhoh - we have a potential line crosser */
+ if (*t == '\0') { /* uhoh - we have a potential line crosser */
valid = FALSE;
plx = TRUE;
break;
@@ -9061,7 +9228,7 @@ PRIVATE int increment_tagged_htline ARGS6(
} else {
valid = FALSE;
break;
- }
+ }
}
/*
@@ -9084,9 +9251,9 @@ PRIVATE int increment_tagged_htline ARGS6(
*/
if ((valid) && (n > 0)) {
val = atoi (p);
- if ((val == *old_val) || (*old_val == 0)) { /* 0 matches all */
+ if ((val == *old_val) || (*old_val == 0)) { /* 0 matches all */
if (*old_val != 0)
- (*old_val)++;
+ (*old_val)++;
val += incr;
sprintf (s, "%d", val);
new_n = strlen (s);
@@ -9116,15 +9283,15 @@ PRIVATE int increment_tagged_htline ARGS6(
*/
if (new_n -= n) {
nxt_anchor = st_anchor;
- while ((nxt_anchor) &&
- (nxt_anchor->line_num == a->line_num)) {
+ while ((nxt_anchor) &&
+ (nxt_anchor->line_num == a->line_num)) {
nxt_anchor->line_pos += new_n;
nxt_anchor = nxt_anchor->next;
}
if (st_anchor) st_anchor = st_anchor->next;
}
}
- }
+ }
/*
* Unfortunately, valid [tag] strings *can* be split across two
@@ -9140,10 +9307,10 @@ PRIVATE int increment_tagged_htline ARGS6(
if (plx) {
strcpy (lx, p); /* <- 1st part of a possible lx'ing tag */
pre_n = strlen (p); /* count of 1st part chars in this line */
- strcat (lx, ht->next->data); /* tack on NEXT line */
+ strcat (lx, ht->next->data); /* tack on NEXT line */
- t = lx;
- n = 0;
+ t = lx;
+ n = 0;
valid = TRUE;
/*
@@ -9191,8 +9358,8 @@ PRIVATE int increment_tagged_htline ARGS6(
*lx_val = new_n - n;
}
}
- break; /* had an lx'er, so we're done with this line */
- }
+ break; /* had an lx'er, so we're done with this line */
+ }
}
}
@@ -9208,6 +9375,283 @@ PRIVATE int increment_tagged_htline ARGS6(
/*
+ * Creates a new anchor and associated struct's appropriate for a form
+ * TEXTAREA, and links them into the lists following the current anchor
+ * position (as specified by arg1).
+ *
+ * Exits with arg1 now pointing at the new TextAnchor, and arg2 pointing
+ * at the new, associated HTLine.
+ *
+ * --KED 02/13/99
+ */
+PRIVATE void insert_new_textarea_anchor ARGS2(
+ TextAnchor **, curr_anchor,
+ HTLine **, exit_htline)
+{
+ TextAnchor *anchor = *curr_anchor;
+ HTLine *htline;
+
+ TextAnchor *a = 0;
+ FormInfo *f = 0;
+ HTLine *l = 0;
+
+ int curr_tag = 0; /* 0 ==> match any [tag] number */
+ int lx = 0; /* 0 ==> no line crossing [tag]; it's a new line */
+ int i;
+
+
+ /*
+ * Find line in the text that matches ending anchorline of
+ * the TEXTAREA.
+ *
+ * [Yes, Virginia ... we *do* have to go thru this for each
+ * anchor being added, since there is NOT a 1-to-1 mapping
+ * between anchors and htlines. I suppose we could create
+ * YAS (Yet Another Struct), but there are too many structs{}
+ * floating around in here, as it is. IMNSHO.]
+ */
+ for (htline = HTMainText->last_line->next, i = 0;
+ anchor->line_num != i; i++) {
+ htline = htline->next;
+ if (htline == HTMainText->last_line)
+ break;
+ }
+
+ /*
+ * Clone and initialize the struct's needed to add a new TEXTAREA
+ * anchor.
+ */
+ if (((a = (TextAnchor *) calloc (1, sizeof(*a))) == 0) ||
+ ((f = (FormInfo *) calloc (1, sizeof(*f))) == 0) ||
+ ((l = (HTLine *) calloc (1, LINE_SIZE(MAX_LINE))) == 0))
+ outofmem(__FILE__, "insert_new_textarea_anchor");
+
+ /* Init all the fields in the new TextAnchor. */
+ /* [anything "special" needed based on ->show_anchor value ?] */
+ a->next = anchor->next;
+ a->number = anchor->number;
+ a->start = anchor->start + anchor->input_field->size + 1;
+ a->line_pos = anchor->line_pos;
+ a->extent = anchor->extent;
+ a->line_num = anchor->line_num + 1;
+ StrAllocCopy (a->hightext, anchor->hightext);
+ StrAllocCopy (a->hightext2, anchor->hightext2);
+ a->hightext2offset = anchor->hightext2offset;
+ a->link_type = anchor->link_type;
+ a->input_field = f;
+ a->show_anchor = anchor->show_anchor;
+ a->inUnderline = anchor->inUnderline;
+ a->expansion_anch = TRUE;
+ a->anchor = NULL;
+
+ /* Just the (seemingly) relevant fields in the new FormInfo. */
+ /* [do we need to do anything "special" based on ->disabled] */
+ StrAllocCopy (f->name, anchor->input_field->name);
+ f->number = anchor->input_field->number;
+ f->type = anchor->input_field->type;
+ StrAllocCopy (f->orig_value, "");
+ f->size = anchor->input_field->size;
+ f->maxlength = anchor->input_field->maxlength;
+ f->no_cache = anchor->input_field->no_cache;
+ f->disabled = anchor->input_field->disabled;
+
+ /* Init all the fields in the new HTLine (but see the #if). */
+ l->next = htline->next;
+ l->prev = htline;
+ l->offset = htline->offset;
+ l->size = htline->size;
+ l->split_after = htline->split_after;
+ l->bullet = htline->bullet;
+ l->expansion_line = TRUE;
+#if defined(USE_COLOR_STYLE)
+ /* dup styles[] if needed [no need in TEXTAREA (?); leave 0's] */
+ l->numstyles = htline->numstyles;
+#endif
+ strcpy (l->data, htline->data);
+ if (keypad_mode == LINKS_AND_FORM_FIELDS_ARE_NUMBERED) {
+ a->number++;
+ increment_tagged_htline (l, a, &lx, &curr_tag, 1, CHOP);
+ }
+
+ /*
+ * If we're at the tail end of the TextAnchor or HTLine list(s),
+ * the new node becomes the last node.
+ */
+ if (anchor == HTMainText->last_anchor)
+ HTMainText->last_anchor = a;
+ if (htline == HTMainText->last_line)
+ HTMainText->last_line = l;
+
+ /*
+ * Link in the new TextAnchor and point the entry anchor arg at it;
+ * link in the new HTLine and point the entry htline arg at it, too.
+ */
+ anchor->next = a;
+ *curr_anchor = a;
+
+ htline->next->prev = l;
+ htline->next = l;
+ *exit_htline = l->next;
+
+ return;
+}
+
+
+/*
+ * If new anchors were added to expand a TEXTAREA, we need to ripple the
+ * new line numbers [and char counts ?] thru the subsequent anchors.
+ *
+ * If form lines are getting [nnn] tagged, we need to update the displayed
+ * tag values to match (which means rerendering them ... sigh).
+ *
+ * Finally, we need to update various HTMainText and other counts, etc.
+ *
+ * [dunno if the char counts really *need* to be done, or if we're using
+ * the exactly proper values/algorithms ... seems to be OK though ...]
+ *
+ * --KED 02/13/99
+ */
+PRIVATE void update_subsequent_anchors ARGS4(
+ int, n,
+ TextAnchor *, start_anchor,
+ HTLine *, start_htline,
+ int, start_tag)
+{
+ TextAnchor *anchor;
+ HTLine *htline = start_htline;
+
+ int form_chars_added = (start_anchor->input_field->size + 1) * n;
+ int line_adj = 0;
+ int tag_adj = 0;
+ int lx = 0;
+ int hang = 0; /* for HANG detection of a nasty intermittent */
+ int hang_detect = 100000; /* ditto */
+
+
+ CTRACE(tfp, "GridText: adjusting struct's to add %d new line(s)\n", n);
+
+ /*
+ * Update numeric fields of the rest of the anchors.
+ *
+ * [We bypass bumping ->number if it has a value of 0, which takes care
+ * of the ->input_field->type == F_HIDDEN_TYPE (as well as any other
+ * "hidden" anchors (if such things exist). Seems like the "right
+ * thing" to do. I think.
+ */
+ anchor = start_anchor->next; /* begin updating with the NEXT anchor */
+ while (anchor) {
+ if ((keypad_mode == LINKS_AND_FORM_FIELDS_ARE_NUMBERED) &&
+ (anchor->number != 0))
+ anchor->number += n;
+ anchor->line_num += n;
+ anchor->start += form_chars_added;
+ anchor = anchor->next;
+ }
+
+ /*
+ * Update/rerender anchor [tags], if they are being numbered.
+ *
+ * [If a number tag (eg, "[177]") is itself broken across a line
+ * boundary, this fixup only partially works. While the tag
+ * numbering is done properly across the pair of lines, the
+ * horizontal positioning on *either* side of the split, can get
+ * out of sync by a char or two when it gets selected. See [com
+ * ments] in increment_tagged_htline() for some more detail.
+ *
+ * I suppose THE fix is to prevent such tag-breaking in the first
+ * place (dunno where yet, though). Ah well ... at least the tag
+ * numbers themselves are correct from top to bottom now.
+ *
+ * All that said, about the only time this will be a problem in
+ * *practice*, is when a page has near 1000 links or more (possibly
+ * after a TEXTAREA expansion), and has line crossing tag(s), and
+ * the tag numbers in a line crosser go from initially all 3 digit
+ * numbers, to some mix of 3 and 4 digits (or all 4 digits) as a
+ * result of the expansion process. Oh, you also need a "clump" of
+ * anchors all on the same lines.
+ *
+ * Yes, it *can* happen, but in real life, it probably won't be
+ * seen very much ...]
+ *
+ * [This may also be an artifact of bumping into the right hand
+ * screen edge (or RHS margin), since we don't even *think* about
+ * relocating an anchor to the following line, when [tag] digits
+ * expansion pushes things too far in that direction.]
+ */
+ if (keypad_mode == LINKS_AND_FORM_FIELDS_ARE_NUMBERED) {
+ anchor = start_anchor->next;
+ while (htline != HTMainText->last_line->next) {
+
+ while (anchor) {
+ if ((anchor->number - n) == start_tag)
+ break;
+
+ /*** A HANG (infinite loop) *has* occurred here, with */
+ /*** the values of anchor and anchor->next being the */
+ /*** the same, OR with anchor->number "magically" and */
+ /*** suddenly taking on an anchor-pointer-like value. */
+ /*** */
+ /*** The same code and same doc have both passed and */
+ /*** failed at different times, which indicates some */
+ /*** sort of content/html dependency, or some kind of */
+ /*** a "race" condition, but I'll be damned if I can */
+ /*** find it after tons of CTRACE's, printf()'s, gdb */
+ /*** breakpoints and watchpoints, etc. */
+ /*** */
+ /*** I have added a hang detector (with error msg and */
+ /*** beep) here, to break the loop and warn the user, */
+ /*** until it can be isolated and fixed. */
+ /*** */
+ /*** [One UGLY intermittent .. gak ..! 02/22/99 KED] */
+
+ hang++;
+ if ((anchor == anchor->next) || (hang >= hang_detect))
+ goto hang_detected;
+
+ anchor = anchor->next;
+ }
+
+ if (anchor) {
+ line_adj = increment_tagged_htline (htline, anchor, &lx,
+ &start_tag, n, NOCHOP);
+ htline->size += line_adj;
+ tag_adj += line_adj;
+
+ } else {
+
+ break; /* out of anchors ... we're done */
+ }
+
+ htline = htline->next;
+ }
+ }
+
+exit:
+ /*
+ * Fixup various global variables.
+ */
+ nlinks += n;
+ HTMainText->Lines += n;
+ HTMainText->last_anchor_number += n;
+ HTMainText->chars += (form_chars_added + tag_adj);
+
+ more = HText_canScrollDown();
+
+ CTRACE(tfp, "GridText: TextAnchor and HTLine struct's adjusted\n");
+
+ return;
+
+hang_detected: /* uglyness has happened; inform user and do the best we can */
+
+ printf ("\007"); /* beep the user */
+ fflush (NULL);
+ HTAlert ("Hang Detect: TextAnchor struct corrupted - suggest aborting!");
+ HTAlert ("Hang Detect: TextAnchor struct corrupted - suggest aborting!");
+ goto exit;
+}
+
+
+/*
* Transfer the initial contents of a TEXTAREA to a temp file, invoke the
* user's editor on that file, then transfer the contents of the resultant
* edited file back into the TEXTAREA (expanding the size of the area, if
@@ -9220,9 +9664,10 @@ PRIVATE int increment_tagged_htline ARGS6(
* --KED 02/01/99
*/
PUBLIC int HText_ExtEditForm ARGS1(
- struct link *, form_link)
+ struct link *, form_link)
{
struct stat stat_info;
+ size_t size;
char *ed_temp;
FILE *fp;
@@ -9245,26 +9690,14 @@ PUBLIC int HText_ExtEditForm ARGS1(
HTLine *htline = NULL;
- TextAnchor *a = 0;
- FormInfo *f = 0;
- HTLine *l = 0;
-
char *ebuf;
char *tbuf = NULL;
char *line;
char *lp;
char *cp;
- char *p;
- char *s;
- int curr_tag;
- int line_adj = 0;
- int tag_adj = 0;
- int newlines = 0;
+ int match_tag = 0;
+ int newlines = 0;
int len;
- int i;
- int n;
- int lx;
- size_t size;
CTRACE(tfp, "GridText: entered HText_ExtEditForm()\n");
@@ -9320,7 +9753,7 @@ PUBLIC int HText_ExtEditForm ARGS1(
}
anchor_ptr = anchor_ptr->next;
}
- fclose (fp);
+ LYCloseTempFP (fp);
CTRACE(tfp, "GridText: TEXTAREA name=|%s| dumped to tempfile\n", areaname);
CTRACE(tfp, "GridText: invoking editor (%s) on tempfile\n", editor);
@@ -9332,10 +9765,10 @@ PUBLIC int HText_ExtEditForm ARGS1(
*/
if (((entry_line - start_line) > 0) && editor_can_position())
#ifdef VMS
- sprintf (ed_offset, "-%d", ((entry_line - start_line) + 1));
+ sprintf (ed_offset, "-%d", ((entry_line - start_line) + 1));
HTSprintf0 (&tbuf, "%s %s %s", editor, ed_temp, ed_offset);
#else
- sprintf (ed_offset, "+%d", ((entry_line - start_line) + 1));
+ sprintf (ed_offset, "+%d", ((entry_line - start_line) + 1));
HTSprintf0 (&tbuf, "%s %s %s", editor, ed_offset, ed_temp);
#endif
@@ -9347,9 +9780,9 @@ PUBLIC int HText_ExtEditForm ARGS1(
*/
HTSprintf0 (&tbuf, "%s~", ed_temp);
if (stat (tbuf, &stat_info) == 0)
- remove (tbuf);
+ remove (tbuf);
#endif
- FREE (tbuf);
+ FREE(tbuf);
CTRACE(tfp, "GridText: returned from editor (%s)\n", editor);
@@ -9379,13 +9812,10 @@ PUBLIC int HText_ExtEditForm ARGS1(
/*
* Copy each line from the temp file into the corresponding anchor
- * struct, removing any trailing whitespace, expanding any embedded
- * tab's, and substituting a printable char for any other embedded
- * control chars. Add new lines to the TEXTAREA if needed. (Always
- * leave the user with a blank line at the end of the TEXTAREA.)
+ * struct. Add new lines to the TEXTAREA if needed. (Always leave
+ * the user with a blank line at the end of the TEXTAREA.)
*/
- if (((line = (char *) malloc (MAX_LINE)) == 0) ||
- ((tbuf = (char *) malloc (MAX_LINE)) == 0))
+ if ((line = (char *) malloc (MAX_LINE)) == 0)
outofmem(__FILE__, "HText_ExtEditForm");
anchor_ptr = start_anchor;
@@ -9403,184 +9833,24 @@ PUBLIC int HText_ExtEditForm ARGS1(
strncpy (line, lp, len);
*(line + len) = '\0';
- /*
- * Whack off trailing whitespace from the line.
- */
- for (i = len, p = line + (len - 1); i != 0; p--, i--) {
- if (isspace (*p))
- *p = '\0';
- else
- break;
- }
-
- if (strlen (line) != 0) {
- /*
- * Expand any tab's, since they won't render properly in a
- * TEXTAREA.
- *
- * [is that "by spec", or just a "lynxism" ? ... as may be, it
- * seems they may cause other problems, too ... haven't really
- * looked into that very deeply though]
- */
- p = line;
- s = tbuf;
-
- while (*p) {
- if ((cp = strchr (p, '\t')) != 0) {
- i = cp - p;
- s = (strncpy (s, p, i)) + i;
- n = TABSTOP - (i % TABSTOP);
- s = (strncpy (s, SPACES, n)) + n;
- p += (i + 1);
-
- } else {
-
- strcpy (s, p);
- break;
- }
- }
-
- /*
- * Replace control chars with something printable. Note that
- * we leave any chars above 0x7f alone (ie, no translation is
- * performed ... the assumption being that the charset used in
- * the editor is compatible with the charset rendered by lynx).
- *
- * [At some point in time, when/if lynx ever supports multibyte
- * characters internally (eg, UCS-2, UCS-4, UTF-16, etc), this
- * kind of thing may well cause problems. But then, supporting
- * such char sets will require massive changes in (most) all
- * parts of the lynx code, so until then, we do the rational
- * thing with chars that would otherwise foul the display, if
- * left alone. If you're implementing multibyte character set
- * support, consider yourself to have been warned.]
- */
- for (p = line, s = tbuf; *s != '\0'; p++, s++)
-#ifndef EBCDIC
- *p = (((unsigned char)*s < ' ') ||
- ((unsigned char)*s == '\177')) ? SPLAT : *s;
-#else
- *p = ((unsigned char)*s < ' ') ? SPLAT : *s;
-#endif
- *p = '\0';
- }
-
+ cleanup_line_for_textarea (line, len);
/*
* If there are more lines in the edit buffer than were in the
- * original TEXTAREA, we need to add some new lines, continuing
- * until the edit buffer is empty.
- *
- * [cloning structs could be moved to a seperate fn(), or three]
+ * original TEXTAREA, we need to add a new line/anchor, continuing
+ * on until the edit buffer is empty.
*/
if (line_cnt > orig_cnt) {
-
- /*
- * Find line in the text that matches ending anchorline of
- * the TEXTAREA.
- *
- * [Yes, Virginia ... we *do* have to go thru this for each
- * anchor being added, since there is NOT a 1-to-1 mapping
- * between anchors and htlines. I suppose we could create
- * YAS (Yet Another Struct), but there are too many structs{}
- * floating around in here, as it is. IMNSHO.]
- */
- for (htline = HTMainText->last_line->next, i = 0;
- end_anchor->line_num != i; i++) {
- htline = htline->next;
- if (htline == HTMainText->last_line)
- break;
- }
-
- /*
- * Clone and initialize the structs needed to add a new
- * TEXTAREA anchor.
- */
- if (((a = (TextAnchor *) calloc (1, sizeof(*a))) == 0) ||
- ((f = (FormInfo *) calloc (1, sizeof(*f))) == 0) ||
- ((l = (HTLine *) calloc (1, LINE_SIZE(MAX_LINE))) == 0))
- outofmem(__FILE__, "HText_ExtEditForm");
-
- /* Init all the fields in the new TextAnchor. */
- /* [anything "special" needed based on ->show_anchor value ?] */
- a->next = end_anchor->next;
- a->number = end_anchor->number;
- a->start = end_anchor->start +
- end_anchor->input_field->size + 1;
- a->line_pos = end_anchor->line_pos;
- a->extent = end_anchor->extent;
- a->line_num = end_anchor->line_num + 1;
- StrAllocCopy (a->hightext, end_anchor->hightext);
- StrAllocCopy (a->hightext2, end_anchor->hightext2);
- a->hightext2offset = end_anchor->hightext2offset;
- a->link_type = end_anchor->link_type;
- a->input_field = f;
- a->show_anchor = end_anchor->show_anchor;
- a->inUnderline = end_anchor->inUnderline;
- a->expansion_anch = TRUE;
- a->anchor = NULL;
-
- /* Just the (seemingly) relevant fields in the new FormInfo. */
- /* [do we need to do anything "special" based on ->disabled] */
- StrAllocCopy (f->name, end_anchor->input_field->name);
- f->number = end_anchor->input_field->number;
- f->type = end_anchor->input_field->type;
- StrAllocCopy (f->orig_value, "");
- f->size = end_anchor->input_field->size;
- f->maxlength = end_anchor->input_field->maxlength;
- f->no_cache = end_anchor->input_field->no_cache;
- f->disabled = end_anchor->input_field->disabled;
-
- /* Init all the fields in the new HTLine (but see the #if). */
- l->next = htline->next;
- l->prev = htline;
- l->offset = htline->offset;
- l->size = htline->size;
- l->split_after = htline->split_after;
- l->bullet = htline->bullet;
- l->expansion_line = TRUE;
-#if defined(USE_COLOR_STYLE)
- /* dup styles[] if needed [no need in TEXTAREA (?); leave 0's] */
- l->numstyles = htline->numstyles;
-#endif
- strcpy (l->data, htline->data);
- if (keypad_mode == LINKS_AND_FORM_FIELDS_ARE_NUMBERED) {
- a->number++;
- curr_tag = 0; /* 0 matches any [tag] number */
- lx = 0;
- increment_tagged_htline (l, a, &lx, &curr_tag, 1, CHOP);
- }
-
- /*
- * If we're at the tail end of the TextAnchor or HTLine list(s),
- * the new node becomes the last node.
- */
- if (end_anchor == HTMainText->last_anchor)
- HTMainText->last_anchor = a;
- if (htline == HTMainText->last_line)
- HTMainText->last_line = l;
-
- /*
- * Link in the new TextAnchor and make it current; link in
- * the new HTLine.
- */
- end_anchor->next = a;
- anchor_ptr = a;
-
- htline->next->prev = l;
- htline->next = l;
- htline = l->next;
-
+ insert_new_textarea_anchor (&end_anchor, &htline);
+ anchor_ptr = end_anchor; /* make the new anchor current */
newlines++;
}
-
/*
* Finally copy the new line from the edit buffer into the anchor.
*/
StrAllocCopy(anchor_ptr->input_field->value, line);
-
/*
* Keep track of 1st blank line in any trailing blank lines, for
* later cursor repositioning.
@@ -9600,7 +9870,7 @@ PUBLIC int HText_ExtEditForm ARGS1(
anchor_ptr = anchor_ptr->next;
if (anchor_ptr)
- curr_tag = anchor_ptr->number;
+ match_tag = anchor_ptr->number;
line_cnt++;
}
@@ -9608,118 +9878,403 @@ PUBLIC int HText_ExtEditForm ARGS1(
CTRACE(tfp, "GridText: edited text inserted into lynx struct's\n");
/*
- * If new anchors were added, we need to ripple the new line numbers
- * (and char counts ?) thru the subsequent anchors. If form lines
- * are getting tagged, we need to update the displayed tag values
- * to match (which means re-rendering them ...sigh). Finally update
- * the HText counts.
+ * If we've added any new lines/anchors, we need to adjust various
+ * things in all anchor-bearing lines following the last newly added
+ * line/anchor. The fun stuff starts here ...
+ */
+ if (newlines > 0)
+ update_subsequent_anchors (newlines, end_anchor, htline, match_tag);
+
+ /*
+ * Cleanup time.
+ */
+ FREE(line);
+ FREE(ebuf);
+ LYRemoveTemp (ed_temp);
+ FREE(ed_temp);
+
+ CTRACE(tfp, "GridText: exiting HText_ExtEditForm()\n");
+
+ /*
+ * Return the offset needed to move the cursor from its current
+ * (on entry) line number, to the 1st blank line of the trailing
+ * (group of) blank line(s), which is where we want to be. Let
+ * the caller deal with moving us there, however ... :-) ...
+ */
+ return (exit_line - entry_line);
+}
+
+
+/*
+ * Expand the size of a TEXTAREA by a fixed number of lines (as specified
+ * by arg2).
+ *
+ * --KED 02/14/99
+ */
+PUBLIC void HText_ExpandTextarea ARGS2(
+ struct link *, form_link,
+ int, newlines)
+{
+ TextAnchor *anchor_ptr;
+ TextAnchor *end_anchor = NULL;
+ BOOLEAN firstanchor = TRUE;
+
+ FormInfo *form = form_link->form;
+ char *areaname = form->name;
+ int form_num = form->number;
+
+ HTLine *htline = NULL;
+
+ int match_tag = 0;
+ int i;
+
+
+ CTRACE(tfp, "GridText: entered HText_ExpandTextarea()\n");
+
+ if (newlines < 1) return;
+
+ /*
+ * Begin at the beginning, to find the TEXTAREA, then on to find
+ * the last line (anchor) in it.
*
- * [dunno if the char counts really need to be done, or if we're using
- * the exactly proper values ... seems to be OK though ...]
+ * [Finding the TEXTAREA we're actually *in* with these attributes
+ * isn't foolproof. The form_num isn't unique to a given TEXTAREA,
+ * and there *could* be TEXTAREA's with the same "name". If that
+ * should ever be true, we'll actually expand the *1st* TEXTAREA
+ * in the page that matches. We should probably assign a unique
+ * id to each TEXTAREA in a page, and match on that, to avoid this
+ * (potential) problem.
+ *
+ * Since the odds of "false matches" *actually* happening in real
+ * life seem rather small though, we'll hold off doing this, for a
+ * rainy day ...]
*/
- if (newlines > 0) {
+ anchor_ptr = HTMainText->first_anchor;
+
+ while (anchor_ptr) {
+
+ if ((anchor_ptr->link_type == INPUT_ANCHOR) &&
+ (anchor_ptr->input_field->type == F_TEXTAREA_TYPE) &&
+ (anchor_ptr->input_field->number == form_num) &&
+ !strcmp (anchor_ptr->input_field->name, areaname)) {
+
+ if (firstanchor)
+ firstanchor = FALSE;
+
+ end_anchor = anchor_ptr;
+
+ } else {
- CTRACE(tfp, "GridText: adjusting struct's to add %d new lines\n",
- newlines);
+ if (!firstanchor)
+ break;
+ }
+ anchor_ptr = anchor_ptr->next;
+ }
- i = (end_anchor->input_field->size + 1) * newlines;
+ for (i = 1; i <= newlines; i++) {
+ insert_new_textarea_anchor (&end_anchor, &htline);
/*
- * [*may* need to bypass bumping ->number if ->input_field->type
- * is of F_HIDDEN_TYPE ... need to investigate further]
+ * Make the new line blank.
*/
- while (anchor_ptr) {
- if (keypad_mode == LINKS_AND_FORM_FIELDS_ARE_NUMBERED)
- anchor_ptr->number += newlines;
- anchor_ptr->line_num += newlines;
- anchor_ptr->start += i;
- anchor_ptr = anchor_ptr->next;
- }
- anchor_ptr = end_anchor;
+ StrAllocCopy(end_anchor->input_field->value, "");
/*
- * If a number tag (eg, "[177]") is itself broken across a line
- * boundary, this fixup only partially works. While the tag
- * numbering is done properly across the pair of lines, the
- * horizontal positioning on *either* side of the split, can get
- * out of sync by a char or two when it gets selected. See [com
- * ments] in increment_tagged_htline() for some more detail.
- *
- * I suppose THE fix is to prevent such tag-breaking in the first
- * place (dunno where yet, though). Ah well ... at least the tag
- * numbers are correct from top to bottom now.
- *
- * All that said, about the only time this will be a problem in
- * *practice*, is when a page has near 1000 links or more (possibly
- * after a TEXTAREA expansion), and has line crossing tag(s), and
- * the tag numbers in a line crosser go from initially all 3 digit
- * numbers, to some mix of 3 and 4 digits (or all 4 digits) as a
- * result of the expansion process. Oh, and you need a "clump" of
- * anchors all on the same lines.
- *
- * Yes, it *can* happen, but in real life, it probably won't be
- * seen very much ...
- *
- * [This may also be an artifact of bumping into the right hand
- * screen edge (or RHS margin), since we don't even *think* about
- * relocating an anchor to the following line, when [tag] digits
- * expansion pushes things too far in that direction.]
+ * And go add another line ...
*/
- if (keypad_mode == LINKS_AND_FORM_FIELDS_ARE_NUMBERED) {
- lx = 0;
- while (htline != HTMainText->last_line->next) {
+ if (end_anchor->next)
+ match_tag = end_anchor->next->number;
+ }
- while (anchor_ptr) {
- if ((anchor_ptr->number - newlines) == curr_tag)
- break;
- else
- anchor_ptr = anchor_ptr->next;
- }
+ CTRACE(tfp, "GridText: %d blank line(s) added to TEXTAREA name=|%s|\n",
+ newlines, areaname);
- if (anchor_ptr) {
- line_adj = increment_tagged_htline (htline, anchor_ptr,
- &lx, &curr_tag,
- newlines, NOCHOP);
- htline->size += line_adj;
- tag_adj += line_adj;
+ /*
+ * We need to adjust various things in all anchor bearing lines
+ * following the last newly added line/anchor. Fun stuff.
+ */
+ update_subsequent_anchors (newlines, end_anchor, htline, match_tag);
- } else {
+ CTRACE(tfp, "GridText: exiting HText_ExpandTextarea()\n");
- break; /* out of anchors ... we're done */
- }
+ return;
+}
- htline = htline->next;
- }
+
+/*
+ * Insert the contents of a file into a TEXTAREA between the cursorline,
+ * and the line preceeding it.
+ *
+ * Returns the number of lines that the cursor should be moved so that it
+ * will end up on the 1st line in the TEXTAREA following the inserted file
+ * (if we decide to do that).
+ *
+ * --KED 02/21/99
+ */
+PUBLIC int HText_InsertFile ARGS1(
+ struct link *, form_link)
+{
+ struct stat stat_info;
+ size_t size;
+
+ FILE *fp;
+ char *fn;
+
+ TextAnchor *anchor_ptr;
+ TextAnchor *prev_anchor = NULL;
+ TextAnchor *end_anchor = NULL;
+ BOOLEAN firstanchor = TRUE;
+
+ FormInfo *form = form_link->form;
+ char *areaname = form->name;
+ int form_num = form->number;
+
+ HTLine *htline = NULL;
+
+ TextAnchor *a = 0;
+ FormInfo *f = 0;
+ HTLine *l = 0;
+
+ char *fbuf;
+ char *line;
+ char *lp;
+ char *cp;
+ int entry_line = form_link->anchor_line_num;
+ int match_tag = 0;
+ int newlines = 0;
+ int len;
+ int i;
+
+
+ CTRACE(tfp, "GridText: entered HText_InsertFile()\n");
+
+ /*
+ * Get the filename of the insert file.
+ */
+ if (!(fn = GetFileName())) {
+ HTInfoMsg (FILE_INSERT_CANCELLED);
+ CTRACE(tfp, "GridText: file insert cancelled - no filename provided\n");
+ return (0);
+ }
+
+ /*
+ * Read it into our buffer (abort on 0-length file).
+ */
+ if ((stat (fn, &stat_info) < 0) ||
+ ((size = stat_info.st_size) == 0)) {
+ HTInfoMsg (FILE_INSERT_0_LENGTH);
+ CTRACE(tfp, "GridText: file insert aborted - file=|%s|- was 0-length\n",
+ fn);
+ FREE(fn);
+ return (0);
+
+ } else {
+
+ if ((fbuf = (char *) calloc (size + 1, (sizeof(char)))) == NULL)
+ outofmem(__FILE__, "HText_InsertFile");
+
+ fp = fopen (fn, "r");
+ size = fread (fbuf, 1, size, fp);
+ fclose (fp);
+ FREE(fn);
+ }
+
+
+ /*
+ * Begin at the beginning, to find the TEXTAREA we're in, then
+ * the current cursorline.
+ *
+ * [Finding the TEXTAREA we're actually *in* with these attributes
+ * isn't foolproof. The form_num isn't unique to a given TEXTAREA,
+ * and there *could* be TEXTAREA's with the same "name". If that
+ * should ever be true, we'll actually insert data into the *1st*
+ * TEXTAREA in the page that matches. We should probably assign
+ * a unique id to each TEXTAREA in a page, and match on that, to
+ * avoid this (potential) problem.
+ *
+ * Since the odds of "false matches" *actually* happening in real
+ * life seem rather small though, we'll hold off doing this, for a
+ * rainy day ...]
+ */
+ anchor_ptr = HTMainText->first_anchor;
+
+ while (anchor_ptr) {
+
+ if ((anchor_ptr->link_type == INPUT_ANCHOR) &&
+ (anchor_ptr->input_field->type == F_TEXTAREA_TYPE) &&
+ (anchor_ptr->input_field->number == form_num) &&
+ !strcmp (anchor_ptr->input_field->name, areaname)) {
+
+ if (anchor_ptr->line_num == entry_line)
+ break;
+ }
+ prev_anchor = anchor_ptr;
+ anchor_ptr = anchor_ptr->next;
+ }
+
+
+ /*
+ * Clone a new TEXTAREA line/anchor using the cursorline anchor as
+ * a template, but link it in BEFORE the cursorline anchor/htline.
+ *
+ * [We can probably combine this with insert_new_textarea_anchor()
+ * along with a flag to indicate "insert before" as we do here,
+ * or the "normal" mode of operation (add after "current" anchor/
+ * line). Beware of the differences ... some are a bit subtle to
+ * notice.
+ */
+ for (htline = HTMainText->last_line->next, i = 0;
+ anchor_ptr->line_num != i; i++) {
+ htline = htline->next;
+ if (htline == HTMainText->last_line)
+ break;
+ }
+
+ if (((a = (TextAnchor *) calloc (1, sizeof(*a))) == 0) ||
+ ((f = (FormInfo *) calloc (1, sizeof(*f))) == 0) ||
+ ((l = (HTLine *) calloc (1, LINE_SIZE(MAX_LINE))) == 0))
+ outofmem(__FILE__, "HText_InsertFile");
+
+ /* Init all the fields in the new TextAnchor. */
+ /* [anything "special" needed based on ->show_anchor value ?] */
+ a->next = anchor_ptr;
+ a->number = anchor_ptr->number;
+ a->start = anchor_ptr->start;
+ a->line_pos = anchor_ptr->line_pos;
+ a->extent = anchor_ptr->extent;
+ a->line_num = anchor_ptr->line_num;
+ StrAllocCopy (a->hightext, anchor_ptr->hightext);
+ StrAllocCopy (a->hightext2, anchor_ptr->hightext2);
+ a->hightext2offset = anchor_ptr->hightext2offset;
+ a->link_type = anchor_ptr->link_type;
+ a->input_field = f;
+ a->show_anchor = anchor_ptr->show_anchor;
+ a->inUnderline = anchor_ptr->inUnderline;
+ a->expansion_anch = TRUE;
+ a->anchor = NULL;
+
+ /* Just the (seemingly) relevant fields in the new FormInfo. */
+ /* [do we need to do anything "special" based on ->disabled] */
+ StrAllocCopy (f->name, anchor_ptr->input_field->name);
+ f->number = anchor_ptr->input_field->number;
+ f->type = anchor_ptr->input_field->type;
+ StrAllocCopy (f->orig_value, "");
+ f->size = anchor_ptr->input_field->size;
+ f->maxlength = anchor_ptr->input_field->maxlength;
+ f->no_cache = anchor_ptr->input_field->no_cache;
+ f->disabled = anchor_ptr->input_field->disabled;
+
+ /* Init all the fields in the new HTLine (but see the #if). */
+ l->offset = htline->offset;
+ l->size = htline->size;
+ l->split_after = htline->split_after;
+ l->bullet = htline->bullet;
+ l->expansion_line = TRUE;
+#if defined(USE_COLOR_STYLE)
+ /* dup styles[] if needed [no need in TEXTAREA (?); leave 0's] */
+ l->numstyles = htline->numstyles;
+#endif
+ strcpy (l->data, htline->data);
+
+ /*
+ * If we're at the head of the TextAnchor list, the new node becomes
+ * the first node.
+ */
+ if (anchor_ptr == HTMainText->first_anchor)
+ HTMainText->first_anchor = a;
+
+ /*
+ * Link in the new TextAnchor, and corresponding HTLine.
+ */
+ if (prev_anchor)
+ prev_anchor->next = a;
+
+ htline = htline->prev;
+ l->next = htline->next;
+ l->prev = htline;
+ htline->next->prev = l;
+ htline->next = l;
+
+ /*
+ * update_subsequent_anchors() expects htline to point to 1st potential
+ * line needing fixup; we need to do this just in case the inserted file
+ * was only a single line (yes, it's pathological ... ).
+ */
+ htline = htline->next; /* ->new (current) htline, for 1st inserted line */
+ htline = htline->next; /* ->1st potential (following) [tag] fixup htline */
+
+ anchor_ptr = a;
+ newlines++;
+
+
+ /*
+ * Copy each line from the insert file into the corresponding anchor
+ * struct.
+ *
+ * Begin with the new line/anchor we just added (above the cursorline).
+ */
+ if ((line = (char *) malloc (MAX_LINE)) == 0)
+ outofmem(__FILE__, "HText_InsertFile");
+
+ match_tag = anchor_ptr->number;
+
+ len = 0;
+ lp = fbuf;
+
+ while (*lp) {
+
+ if ((cp = strchr (lp, '\n')) != 0)
+ len = cp - lp;
+ else
+ len = strlen (lp);
+
+ strncpy (line, lp, len);
+ *(line + len) = '\0';
+
+ cleanup_line_for_textarea (line, len);
+
+ /*
+ * If not the first line from the insert file, we need to add
+ * a new line/anchor, continuing on until the buffer is empty.
+ */
+ if (!firstanchor) {
+ insert_new_textarea_anchor (&end_anchor, &htline);
+ anchor_ptr = end_anchor; /* make the new anchor current */
+ newlines++;
}
/*
- * Fixup various global variables.
+ * Copy the new line from the buffer into the anchor.
*/
- nlinks += newlines;
- HTMainText->Lines += newlines;
- HTMainText->last_anchor_number += newlines;
- HTMainText->chars += (i + tag_adj);
+ StrAllocCopy(anchor_ptr->input_field->value, line);
- more = TRUE;
+ /*
+ * And do the next line of insert text, for the next anchor ...
+ */
+ lp += len;
+ if (*lp) lp++;
- CTRACE(tfp, "GridText: TextAnchor and HTLine struct's adjusted\n");
+ firstanchor = FALSE;
+ end_anchor = anchor_ptr;
+ anchor_ptr = anchor_ptr->next;
}
- CTRACE(tfp, "GridText: struct's adjusted - exiting HText_ExtEditForm()\n");
+ CTRACE(tfp, "GridText: file inserted into lynx struct's\n");
- FREE (line);
- FREE (ebuf);
- FREE (tbuf);
- LYRemoveTemp (ed_temp);
- FREE (ed_temp);
+ /*
+ * Now adjust various things in all anchor-bearing lines following the
+ * last newly added line/anchor. Some say this is the fun part ...
+ */
+ update_subsequent_anchors (newlines, end_anchor, htline, match_tag);
- CTRACE(tfp, "GridText: exiting HText_ExtEditForm()\n");
/*
- * Return the offset needed to move the cursor from its current
- * (on entry) line number, to the 1st blank line of the trailing
- * (group of) blank line(s), which is where we want to be. Let
- * the caller deal with moving us there, however ... :-) ...
+ * Cleanup time.
*/
- return (exit_line - entry_line);
+ FREE(line);
+ FREE(fbuf);
+
+ CTRACE(tfp, "GridText: exiting HText_InsertFile()\n");
+
+ return (newlines);
}
diff --git a/src/GridText.h b/src/GridText.h
index 16cca89c..15edf892 100644
--- a/src/GridText.h
+++ b/src/GridText.h
@@ -142,6 +142,7 @@ extern void print_wwwfile_to_fd PARAMS((FILE * fp, int is_reply));
extern BOOL HText_select PARAMS((HText *text));
extern BOOL HText_POSTReplyLoaded PARAMS((document *doc));
extern BOOL HTFindPoundSelector PARAMS((char *selector));
+extern int HTGetRelLinkNum PARAMS((int num, int rel, int cur));
extern int HTGetLinkInfo PARAMS((
int number,
int want_go,
@@ -264,5 +265,10 @@ extern BOOL HText_AreDifferent PARAMS((
extern int HText_ExtEditForm PARAMS((
struct link * form_link));
+extern void HText_ExpandTextarea PARAMS((
+ struct link * form_link,
+ int newlines));
+extern int HText_InsertFile PARAMS((
+ struct link * form_link));
#endif /* LYGRIDTEXT_H */
diff --git a/src/HTFWriter.c b/src/HTFWriter.c
index de3c6019..4f33d01e 100644
--- a/src/HTFWriter.c
+++ b/src/HTFWriter.c
@@ -18,7 +18,6 @@
#include <HTAlert.h>
#include <HTFile.h>
#include <HTPlain.h>
-#include <HTFile.h>
#include <LYStrings.h>
#include <LYUtils.h>
diff --git a/src/HTML.c b/src/HTML.c
index 567dd804..d3ad2038 100644
--- a/src/HTML.c
+++ b/src/HTML.c
@@ -656,6 +656,7 @@ PRIVATE void HTML_start_element ARGS6(
char *alt_string = NULL;
char *id_string = NULL;
char *newtitle = NULL;
+ char **pdoctitle = NULL;
char *href = NULL;
char *map_href = NULL;
char *title = NULL;
@@ -1005,10 +1006,6 @@ PRIVATE void HTML_start_element ARGS6(
!strcasecomp(value[HTML_LINK_REL], "Index") ||
!strcasecomp(value[HTML_LINK_REL], "Glossary") ||
!strcasecomp(value[HTML_LINK_REL], "Copyright") ||
- !strcasecomp(value[HTML_LINK_REL], "Up") ||
- !strcasecomp(value[HTML_LINK_REL], "Next") ||
- !strcasecomp(value[HTML_LINK_REL], "Previous") ||
- !strcasecomp(value[HTML_LINK_REL], "Prev") ||
!strcasecomp(value[HTML_LINK_REL], "Help") ||
!strcasecomp(value[HTML_LINK_REL], "Search") ||
!strcasecomp(value[HTML_LINK_REL], "Bookmark") ||
@@ -1016,29 +1013,51 @@ PRIVATE void HTML_start_element ARGS6(
!strcasecomp(value[HTML_LINK_REL], "Top") ||
!strcasecomp(value[HTML_LINK_REL], "Origin") ||
!strcasecomp(value[HTML_LINK_REL], "Navigator") ||
- !strcasecomp(value[HTML_LINK_REL], "Child") ||
!strcasecomp(value[HTML_LINK_REL], "Disclaimer") ||
- !strcasecomp(value[HTML_LINK_REL], "Sibling") ||
- !strcasecomp(value[HTML_LINK_REL], "Parent") ||
!strcasecomp(value[HTML_LINK_REL], "Author") ||
!strcasecomp(value[HTML_LINK_REL], "Editor") ||
!strcasecomp(value[HTML_LINK_REL], "Publisher") ||
!strcasecomp(value[HTML_LINK_REL], "Trademark") ||
- !strcasecomp(value[HTML_LINK_REL], "Meta") ||
- !strcasecomp(value[HTML_LINK_REL], "URC") ||
!strcasecomp(value[HTML_LINK_REL], "Hotlist") ||
!strcasecomp(value[HTML_LINK_REL], "Begin") ||
!strcasecomp(value[HTML_LINK_REL], "First") ||
!strcasecomp(value[HTML_LINK_REL], "End") ||
!strcasecomp(value[HTML_LINK_REL], "Last") ||
+ !strcasecomp(value[HTML_LINK_REL], "Documentation") ||
+ !strcasecomp(value[HTML_LINK_REL], "Biblioentry") ||
+ !strcasecomp(value[HTML_LINK_REL], "Bibliography") ||
+ !strcasecomp(value[HTML_LINK_REL], "Alternate") ||
+ !strcasecomp(value[HTML_LINK_REL], "Start") ||
+ !strcasecomp(value[HTML_LINK_REL], "Section") ||
+ !strcasecomp(value[HTML_LINK_REL], "Subsection") ||
+ !strcasecomp(value[HTML_LINK_REL], "Appendix")) {
+ StrAllocCopy(title, value[HTML_LINK_REL]);
+ pdoctitle = &title; /* for setting HTAnchor's title */
+ } else
+ if (!strcasecomp(value[HTML_LINK_REL], "Up") ||
+ !strcasecomp(value[HTML_LINK_REL], "Next") ||
+ !strcasecomp(value[HTML_LINK_REL], "Previous") ||
+ !strcasecomp(value[HTML_LINK_REL], "Prev") ||
+ !strcasecomp(value[HTML_LINK_REL], "Child") ||
+ !strcasecomp(value[HTML_LINK_REL], "Sibling") ||
+ !strcasecomp(value[HTML_LINK_REL], "Parent") ||
+ !strcasecomp(value[HTML_LINK_REL], "Meta") ||
+ !strcasecomp(value[HTML_LINK_REL], "URC") ||
!strcasecomp(value[HTML_LINK_REL], "Pointer") ||
!strcasecomp(value[HTML_LINK_REL], "Translation") ||
!strcasecomp(value[HTML_LINK_REL], "Definition") ||
- !strcasecomp(value[HTML_LINK_REL], "Chapter") ||
- !strcasecomp(value[HTML_LINK_REL], "Documentation") ||
- !strcasecomp(value[HTML_LINK_REL], "Biblioentry") ||
- !strcasecomp(value[HTML_LINK_REL], "Bibliography")) {
+ !strcasecomp(value[HTML_LINK_REL], "Chapter")) {
StrAllocCopy(title, value[HTML_LINK_REL]);
+ /* not setting target HTAnchor's title, for these
+ link of highly relative character. Instead,
+ try to remember the REL attribute as a property
+ of the link (but not the destination), in the
+ (otherwise underused) link type in a special format;
+ the LIST page generation code may later use it. - kw */
+ if (!intern_flag) {
+ StrAllocCopy(temp, "RelTitle: ");
+ StrAllocCat(temp, value[HTML_LINK_REL]);
+ }
} else {
CTRACE(tfp, "HTML: LINK with REL=\"%s\" ignored.\n",
value[HTML_LINK_REL]);
@@ -1064,6 +1083,7 @@ PRIVATE void HTML_start_element ARGS6(
break;
}
StrAllocCopy(title, value[HTML_LINK_REL]);
+ pdoctitle = &title;
}
if (href) {
/*
@@ -1077,6 +1097,8 @@ PRIVATE void HTML_start_element ARGS6(
TRANSLATE_AND_UNESCAPE_ENTITIES(&title, TRUE, FALSE);
LYTrimHead(title);
LYTrimTail(title);
+ pdoctitle = &title;
+ FREE(temp); /* forget about recording RelTitle - kw */
}
if (!(title && *title)) {
FREE(href);
@@ -1103,12 +1125,14 @@ PRIVATE void HTML_start_element ARGS6(
me->node_anchor, /* Parent */
NULL, /* Tag */
href, /* Addresss */
- INTERN_LT); /* Type */
+ temp ?
+ (HTLinkType*)HTAtom_for(temp) : INTERN_LT); /* Type */
+ FREE(temp);
if ((dest = HTAnchor_parent(
HTAnchor_followMainLink((HTAnchor*)me->CurrentA)
)) != NULL) {
- if (!HTAnchor_title(dest))
- HTAnchor_setTitle(dest, title);
+ if (pdoctitle && !HTAnchor_title(dest))
+ HTAnchor_setTitle(dest, *pdoctitle);
dest = NULL;
if (present[HTML_LINK_CHARSET] &&
value[HTML_LINK_CHARSET] && *value[HTML_LINK_CHARSET] != '\0') {
diff --git a/src/LYBookmark.c b/src/LYBookmark.c
index 8c2b9932..fcad0b4d 100644
--- a/src/LYBookmark.c
+++ b/src/LYBookmark.c
@@ -89,7 +89,7 @@ PUBLIC char * get_bookmark_filename ARGS1(
/*
* Seek it in the home path. - FM
*/
- LYAddPathToHome(filename_buffer,
+ LYAddPathToHome(filename_buffer,
sizeof(filename_buffer),
BookmarkPage);
CTRACE(tfp, "\nget_bookmark_filename: SEEKING %s\n AS %s\n\n",
@@ -309,9 +309,9 @@ PUBLIC void save_bookmark_link ARGS2(
/*
* Seek it in the home path. - FM
*/
- LYAddPathToHome(filename_buffer,
- sizeof(filename_buffer),
- BookmarkPage);
+ LYAddPathToHome(filename_buffer,
+ sizeof(filename_buffer),
+ BookmarkPage);
}
CTRACE(tfp, "\nsave_bookmark_link: SEEKING %s\n AS %s\n\n",
BookmarkPage, filename_buffer);
diff --git a/src/LYCharSets.c b/src/LYCharSets.c
index a309cb05..422cf121 100644
--- a/src/LYCharSets.c
+++ b/src/LYCharSets.c
@@ -32,17 +32,20 @@ PUBLIC CONST char** p_entity_values = NULL; /* Pointer, for HTML_put_entity()*/
/* will be initialized in HTMLUseCharacterSet */
/*
+ * New character sets now declared with UCInit() in UCdomap.c
+ *
* INSTRUCTIONS for adding new character sets which do not have
- * Unicode tables.
+ * Unicode tables now in UCdomap.h
*
- * Currently we only declare some charset's properties here
- * (such as MIME names, etc.), it does not include real mapping.
*
- * [We hope you need not correct/add old-style mapping
+ * [We hope you need not correct/add old-style mapping below
* as in ISO_LATIN1[] or SevenBitApproximations[] any more -
* it works now via new chartrans mechanism, but kept for compatibility only:
* we should cleanup the stuff, but this is not so easy...]
*
+ * Currently we only declare some charset's properties here
+ * (such as MIME names, etc.), it does not include real mapping.
+ *
* There is a place marked "Add your new character sets HERE" in this file.
* Make up a character set and add it in the same
* style as the ISO_LATIN1 set below, giving it a unique name.
@@ -328,21 +331,7 @@ PUBLIC CONST char * SevenBitApproximations[] = {
*/
PUBLIC CONST char ** LYCharSets[MAXCHARSETS]={
ISO_Latin1, /* ISO Latin 1 */
- SevenBitApproximations, /* ISO 8859-15 (Latin 9)*/
- SevenBitApproximations, /* DosLatin1 (cp850) */
- SevenBitApproximations, /* WinLatin1 (cp1252) */
- SevenBitApproximations, /* DosLatinUS (cp437) */
- SevenBitApproximations, /* DEC Multinational */
- SevenBitApproximations, /* Macintosh (8 bit) */
- SevenBitApproximations, /* NeXT character set */
- SevenBitApproximations, /* Chinese */
- SevenBitApproximations, /* Japanese (EUC-JP) */
- SevenBitApproximations, /* Japanese (Shift_JIS) */
- SevenBitApproximations, /* Korean */
- SevenBitApproximations, /* Taipei (Big5) */
- SevenBitApproximations, /* Vietnamese (VISCII) */
SevenBitApproximations, /* 7 Bit Approximations */
- SevenBitApproximations, /* Transparent */
};
/*
@@ -351,21 +340,7 @@ PUBLIC CONST char ** LYCharSets[MAXCHARSETS]={
*/
PUBLIC CONST char * LYchar_set_names[MAXCHARSETS + 1]={
"Western (ISO-8859-1)",
- "Western (ISO-8859-15)",
- "Western (cp850)",
- "Western (windows-1252)",
- "IBM PC US codepage (cp437)",
- "DEC Multinational",
- "Macintosh (8 bit)",
- "NeXT character set",
- "Chinese",
- "Japanese (EUC-JP)",
- "Japanese (Shift_JIS)",
- "Korean",
- "Taipei (Big5)",
- "Vietnamese (VISCII)",
"7 bit approximations (US-ASCII)",
- "Transparent",
(char *) 0
};
@@ -393,42 +368,11 @@ PUBLIC LYUCcharset LYCharSet_UC[MAXCHARSETS]=
/*
* Placeholders for Unicode tables. - FM
*/
- {-1,"iso-8859-15", UCT_ENC_8BIT,0,0,0, UCT_R_8BIT,UCT_R_ASCII},
- {-1,"cp850", UCT_ENC_8BIT,0,
- UCT_REP_SUPERSETOF_LAT1,
- 0, UCT_R_8BIT,UCT_R_ASCII},
- {-1,"windows-1252", UCT_ENC_8BIT,0,
- UCT_REP_SUPERSETOF_LAT1,
- 0, UCT_R_8BIT,UCT_R_ASCII},
- {-1,"cp437", UCT_ENC_8BIT,0,0,0, UCT_R_8BIT,UCT_R_ASCII},
- {-1,"dec-mcs", UCT_ENC_8BIT,0,0,0, UCT_R_8BIT,UCT_R_ASCII},
- {-1,"macintosh", UCT_ENC_8BIT,0,0,0, UCT_R_8BIT,UCT_R_ASCII},
- {-1,"next", UCT_ENC_8BIT,0,0,0, UCT_R_8BIT,UCT_R_ASCII},
-
- /*
- * There is no strict correlation for the next five, since the transfer
- * charset gets decoded into Display Char Set by the CJK code (separate
- * from Unicode mechanism). For now we use the MIME name that describes
- * what is output to the terminal. - KW
- */
- {-1,"euc-cn", UCT_ENC_CJK,0,0,0, UCT_R_8BIT,UCT_R_ASCII},
- {-1,"euc-jp", UCT_ENC_CJK,0,0,0, UCT_R_8BIT,UCT_R_ASCII},
- {-1,"shift_jis", UCT_ENC_CJK,0,0,0, UCT_R_8BIT,UCT_R_ASCII},
- {-1,"euc-kr", UCT_ENC_CJK,0,0,0, UCT_R_8BIT,UCT_R_ASCII},
- {-1,"big5", UCT_ENC_CJK,0,0,0, UCT_R_8BIT,UCT_R_ASCII},
-
- /*
- * Placeholders for Unicode tables. - FM
- */
- {-1,"viscii", UCT_ENC_8BIT_C0,0,0,0, UCT_R_8BIT,UCT_R_ASCII},
{-1,"us-ascii", UCT_ENC_7BIT,0,
UCT_REP_SUBSETOF_LAT1,
UCT_CP_SUBSETOF_LAT1, UCT_R_ASCII,UCT_R_ASCII},
- /*
- * Placeholder for non-translation mode. - FM
- */
- {-1,"x-transparent", UCT_ENC_8BIT,0,0,0, UCT_R_8BIT,UCT_R_ASCII}
+/* {-1,"iso-8859-15", UCT_ENC_8BIT,0,0,0, UCT_R_8BIT,UCT_R_ASCII}, */
};
@@ -442,21 +386,7 @@ PUBLIC LYUCcharset LYCharSet_UC[MAXCHARSETS]=
*/
PUBLIC int LYlowest_eightbit[MAXCHARSETS]={
160, /* ISO Latin 1 */
- 160, /* ISO 8859-15 (Latin 9)*/
- 128, /* DosLatin1 (cp850) */
- 130, /* WinLatin1 (cp1252) */
- 128, /* DosLatinUS (cp437) */
- 160, /* DEC Multinational */
- 128, /* Macintosh (8 bit) */
- 128, /* NeXT character set */
- 128, /* Chinese */
- 128, /* Japanese (EUC) */
- 128, /* Japanese (SJIS) */
- 128, /* Korean */
- 128, /* Taipei (Big5) */
- 128, /* Vietnamese (VISCII) */
999, /* 7 bit approximations */
- 128 /* Transparent (???) */
};
diff --git a/src/LYCookie.c b/src/LYCookie.c
index 9020d594..d99c0d8f 100644
--- a/src/LYCookie.c
+++ b/src/LYCookie.c
@@ -67,8 +67,6 @@
#include <LYEdit.h>
#include <LYStrings.h>
#include <GridText.h>
-#include <LYUtils.h>
-#include <LYCharUtils.h>
#include <LYCookie.h>
#include <LYLeaks.h>
@@ -2656,10 +2654,14 @@ PUBLIC void cookie_domain_flag_set ARGS2(
domain_entry *de = NULL;
domain_entry *de2 = NULL;
HTList *hl = NULL;
+ char **str = (char **)calloc(1, sizeof(domainstr));
char *dstr = NULL;
char *strsmall = NULL;
int isexisting = FALSE;
+ if (str == NULL)
+ outofmem(__FILE__, "cookie_set_invcheck");
+
/*
* Is this the first domain we're handling? If so, initialize
* domain_list.
@@ -2673,7 +2675,9 @@ PUBLIC void cookie_domain_flag_set ARGS2(
StrAllocCopy(dstr, domainstr);
- while ((strsmall = LYstrsep(&dstr, ",")) != 0) {
+ *str = dstr;
+
+ while ((strsmall = LYstrsep(str, ",")) != 0) {
/*
* Check the list of existing domains to see if this is a
@@ -2746,6 +2750,7 @@ PUBLIC void cookie_domain_flag_set ARGS2(
}
FREE(strsmall);
+ FREE(str);
FREE(dstr);
}
diff --git a/src/LYEdit.c b/src/LYEdit.c
index c05156f4..7f225041 100644
--- a/src/LYEdit.c
+++ b/src/LYEdit.c
@@ -8,7 +8,6 @@
#include <LYGlobalDefs.h>
#include <LYEdit.h>
#include <LYStrings.h>
-#include <LYUtils.h>
#ifdef VMS
#include <unixio.h>
#endif /* VMS */
@@ -21,16 +20,19 @@ PUBLIC BOOLEAN editor_can_position NOARGS
return (strstr(editor, "sedt") || strstr(editor, "SEDT"));
#else
return (strstr(editor, "emacs") || strstr(editor, "vi") ||
- strstr(editor, "pico") || strstr(editor, "jove") ||
- strstr(editor, "jed"));
+ strstr(editor, "pico") || strstr(editor, "jove") ||
+ strstr(editor, "jed") || strstr(editor, "joe") ||
+ strstr(editor, "jstar") || strstr(editor, "jmacs") ||
+ strstr(editor, "rjoe") || strstr(editor, "jpico"));
#endif
}
/*
- * In edit mode invoke either emacs, vi, pico, jove, jed sedt or the
- * default editor to display and edit the current file.
- * For emacs, vi, pico, jove and jed, Lynx will open the file to the
- * same line that the screen cursor is on when editing is invoked.
+ * In edit mode invoke the given (or default) editor to display and edit the
+ * current file. For editors listed in 'editor_can_position()', Lynx
+ * will open the file to the same line that the screen cursor is on (or
+ * close...) when editing is invoked.
+ *
* Returns FALSE if file is uneditable.
*/
PUBLIC int edit_current_file ARGS3(
diff --git a/src/LYForms.c b/src/LYForms.c
index e2addfef..6023d96b 100644
--- a/src/LYForms.c
+++ b/src/LYForms.c
@@ -515,10 +515,13 @@ breakfor:
** If a 'g' or 'p' suffix is included, that will be
** loaded into c. Otherwise, c is zeroed. - FM & LE
*/
-PRIVATE int get_popup_option_number ARGS1(
- int *, c)
+PRIVATE int get_popup_option_number ARGS2(
+ int *, c,
+ int *, rel)
{
char temp[120];
+ char *p = temp;
+ int num;
/*
* Load the c argument into the prompt buffer.
@@ -533,21 +536,38 @@ PRIVATE int get_popup_option_number ARGS1(
if (LYgetstr(temp, VISIBLE, sizeof(temp), NORECALL) < 0 || *temp == 0) {
HTInfoMsg(CANCELLED);
*c = '\0';
+ *rel = '\0';
return(0);
}
+ *rel = '\0';
+ num = atoi(p);
+ while ( isdigit(*p) )
+ ++p;
+ switch ( *p ) {
+ case '+': case '-':
+ /* 123+ or 123- */
+ *rel = *p++; *c = *p;
+ break;
+ default:
+ *c = *p++;
+ *rel = *p;
+ }
+
/*
* If we had a 'g' or 'p' suffix, load it into c.
* Otherwise, zero c. Then return the number.
*/
- if (strchr(temp, 'g') != NULL || strchr(temp, 'G') != NULL) {
+ if ( *p == 'g' || *p == 'G' ) {
*c = 'g';
- } else if (strchr(temp, 'p') != NULL || strchr(temp, 'P') != NULL) {
+ } else if (*p == 'p' || *p == 'P' ) {
*c = 'p';
} else {
*c = '\0';
}
- return(atoi(temp));
+ if ( *rel != '+' && *rel != '-' )
+ *rel = 0;
+ return num;
}
/* Use this rather than the 'wprintw()' function to write a blank-padded
@@ -585,7 +605,7 @@ PRIVATE int popup_options ARGS7(
* and to position the popup window appropriately,
* taking the user_mode setting into account. -- FM
*/
- int c = 0, cmd = 0, i = 0, j = 0;
+ int c = 0, cmd = 0, i = 0, j = 0, rel = 0;
int orig_selection = cur_selection;
#ifndef USE_SLANG
WINDOW * form_window;
@@ -887,8 +907,27 @@ redraw:
* a 'g' or 'p' suffix (which will be loaded
* into c). - FM & LE
*/
- number = get_popup_option_number((int *)&c);
-
+ number = get_popup_option_number((int *)&c,(int *)&rel);
+
+ /* handle + or - suffix */
+ CTRACE(tfp,"got popup option number %d, ",number);
+ CTRACE(tfp,"rel='%c', c='%c', cur_selection=%d\n",
+ rel,c,cur_selection);
+ if ( c == 'p' ) {
+ int curpage = ((cur_selection + 1) > length) ?
+ (((cur_selection + 1) + (length - 1))/(length))
+ : 1;
+ CTRACE(tfp," curpage=%d\n",curpage);
+ if ( rel == '+' )
+ number = curpage + number;
+ else if ( rel == '-' )
+ number = curpage - number;
+ } else if ( rel == '+' ) {
+ number = cur_selection + number + 1;
+ } else if ( rel == '-' ) {
+ number = cur_selection - number + 1;
+ }
+ if ( rel ) CTRACE(tfp,"new number=%d\n",number);
/*
* Check for a 'p' suffix. - FM
*/
diff --git a/src/LYGetFile.c b/src/LYGetFile.c
index a87371ff..83ae7c62 100644
--- a/src/LYGetFile.c
+++ b/src/LYGetFile.c
@@ -944,9 +944,12 @@ PUBLIC int follow_link_number ARGS4(
int *, num)
{
char temp[120];
+ char *p = temp;
+ int rel = 0;
int new_top, new_link;
BOOL want_go;
+ CTRACE(tfp,"follow_link_number(%d,%d,...)\n",c,cur);
temp[0] = c;
temp[1] = '\0';
*num = -1;
@@ -958,19 +961,42 @@ PUBLIC int follow_link_number ARGS4(
HTInfoMsg(CANCELLED);
return(DO_NOTHING);
}
- *num = atoi(temp);
+ *num = atoi(p);
+ while ( isdigit(*p) )
+ ++p;
+ c = *p; /* reuse c; 0 or g or p or + or - */
+ switch ( c ) {
+ case '+': case '-':
+ /* 123+ or 123- */
+ rel = c; c = *++p;
+ break;
+ default:
+ rel = *++p;
+ }
+ /* don't currently check for errors typing suffix */
+ CTRACE(tfp," temp=%s, *num=%d, rel='%c'\n",temp,*num,rel);
/*
* Check if we had a 'p' or 'P' following the number as
* a flag for displaying the page with that number. - FM
*/
- if (strchr(temp, 'p') != NULL || strchr(temp, 'P') != NULL) {
+ if ( c == 'p' || c == 'P' ) {
int nlines = HText_getNumOfLines();
int npages = ((nlines + 1) > display_lines) ?
(((nlines + 1) + (display_lines - 1))/(display_lines))
: 1;
+ int curline = doc->line; /* passed from mainloop() */
+ int curpage = ((curline + 1) > display_lines) ?
+ (((curline + 1) + (display_lines - 1))/(display_lines))
+ : 1;
+ CTRACE(tfp," nlines=%d, npages=%d, curline=%d, curpage=%d\n",
+ nlines,npages,curline,curpage);
if (*num < 1)
- *num = 1;
+ *num = rel ? 0 : 1;
+ if ( rel == '+' )
+ *num = curpage + *num;
+ else if ( rel == '-' )
+ *num = curpage - *num;
doc->line = (npages <= 1) ?
1 :
((*num <= npages) ? (((*num - 1) * display_lines) + 1)
@@ -982,8 +1008,13 @@ PUBLIC int follow_link_number ARGS4(
* Check if we want to make the link corresponding to the
* number the current link, rather than ACTIVATE-ing it.
*/
- want_go = (strchr(temp, 'g') != NULL || strchr(temp, 'G') != NULL);
+ want_go = ( c == 'g' || c == 'G' );
+ /* If rel, add or subtract num from current link, or
+ * nearest previous/subsequent link if current link is not on screen.
+ */
+ if ( rel )
+ *num = HTGetRelLinkNum( *num, rel, cur );
/*
* If we have a valid number, act on it.
*/
diff --git a/src/LYGlobalDefs.h b/src/LYGlobalDefs.h
index 9b788aaa..1d467e53 100644
--- a/src/LYGlobalDefs.h
+++ b/src/LYGlobalDefs.h
@@ -265,7 +265,6 @@ extern char *form_get_data; /* User data for get form */
extern char *http_error_file; /* Place HTTP status code in this file */
extern char *authentication_info[2]; /* Id:Password for protected documents */
extern char *proxyauth_info[2]; /* Id:Password for protected proxy server */
-extern char *UC_TEMPcharset; /* temporary in UCGetLYhndl_byMIME */
extern BOOLEAN HEAD_request; /* Do a HEAD request */
extern BOOLEAN scan_for_buried_news_references;
extern BOOLEAN bookmark_start; /* Use bookmarks as startfile */
diff --git a/src/LYHistory.c b/src/LYHistory.c
index 630c0421..a71f8f05 100644
--- a/src/LYHistory.c
+++ b/src/LYHistory.c
@@ -76,6 +76,9 @@ PUBLIC void LYAddVisitedLink ARGS1(
#endif /* DIRED_SUPPORT */
!strcmp((doc->title ? doc->title : ""), CURRENT_KEYMAP_TITLE) ||
!strcmp((doc->title ? doc->title : ""), LIST_PAGE_TITLE) ||
+#ifdef EXP_ADDRLIST_PAGE
+ !strcmp((doc->title ? doc->title : ""), ADDRLIST_PAGE_TITLE) ||
+#endif
!strcmp((doc->title ? doc->title : ""), SHOWINFO_TITLE) ||
!strcmp((doc->title ? doc->title : ""), COOKIE_JAR_TITLE) ||
!strcmp((doc->title ? doc->title : ""), VISITED_LINKS_TITLE) ||
diff --git a/src/LYKeymap.c b/src/LYKeymap.c
index 0663a95d..3a165dce 100644
--- a/src/LYKeymap.c
+++ b/src/LYKeymap.c
@@ -17,7 +17,7 @@
#ifdef EXP_KEYBOARD_LAYOUT
PUBLIC int current_layout = 0; /* Index into LYKbLayouts[] */
-PUBLIC unsigned short * LYKbLayouts[]={
+PUBLIC LYKeymap_t * LYKbLayouts[]={
kb_layout_rot13,
kb_layout_jcuken,
kb_layout_yawerty
@@ -31,7 +31,8 @@ PUBLIC char * LYKbLayoutNames[]={
};
#endif
-PRIVATE CONST DocAddress keymap_anchor = {"LYNXKEYMAP", NULL, NULL};
+PRIVATE CONST DocAddress keymap_anchor = {"LYNXKEYMAP", NULL, NULL,
+ NULL, FALSE, FALSE};
struct _HTStream
{
@@ -41,7 +42,7 @@ struct _HTStream
/* the character gets 1 added to it before lookup,
* so that EOF maps to 0
*/
-unsigned short keymap[KEYMAP_SIZE] = {
+LYKeymap_t keymap[KEYMAP_SIZE] = {
0,
/* EOF */
@@ -99,7 +100,7 @@ LYK_8, LYK_9, 0, LYK_TRACE_LOG,
LYK_UP_LINK, LYK_INFO, LYK_DOWN_LINK, LYK_HELP,
/* < */ /* = */ /* > */ /* ? */
-LYK_RAW_TOGGLE, LYK_ADD_BOOKMARK, LYK_PREV_PAGE, LYK_COMMENT,
+LYK_RAW_TOGGLE, LYK_ADDRLIST, LYK_PREV_PAGE, LYK_COMMENT,
/* @ */ /* A */ /* B */ /* C */
LYK_DOWNLOAD, LYK_ELGOTO,
@@ -371,7 +372,7 @@ LYK_UP_TWO, LYK_DOWN_TWO, LYK_DO_NOTHING, LYK_FASTBACKW_LINK,
* allowed at compile time.
*/
-unsigned short key_override[KEYMAP_SIZE] = {
+LYKeymap_t key_override[KEYMAP_SIZE] = {
0,
/* EOF */
@@ -632,6 +633,8 @@ struct rmap {
CONST char *name;
CONST char *doc;
};
+
+/* The order of this array must match the LYKeymapCode enum in LYKeymap.h */
PRIVATE struct rmap revmap[] = {
{ "UNMAPPED", NULL },
{ "1", NULL },
@@ -711,6 +714,11 @@ PRIVATE struct rmap revmap[] = {
{ "ELGOTO", "edit the current link's URL or ACTION and go to it" },
{ "CHANGE_LINK", "force reset of the current link on the page" },
{ "EDITTEXTAREA", "use an external editor to edit a form's textarea" },
+{ "GROWTEXTAREA", "add 5 new blank lines to the bottom of a textarea" },
+{ "INSERTFILE", "insert file into a textarea (just above cursorline)" },
+#ifdef EXP_ADDRLIST_PAGE
+{ "ADDRLIST", "like LIST command, but always shows the links URL's" },
+#endif
#ifdef USE_EXTERNALS
{ "EXTERN", "run external program with url" },
#endif
@@ -784,8 +792,8 @@ PRIVATE char *pretty ARGS1 (int, c)
}
PRIVATE char * format_binding ARGS2(
- unsigned short *, table,
- int, i)
+ LYKeymap_t *, table,
+ int, i)
{
unsigned the_key = table[i];
char *buf = 0;
diff --git a/src/LYKeymap.h b/src/LYKeymap.h
index 044de878..bad2e226 100644
--- a/src/LYKeymap.h
+++ b/src/LYKeymap.h
@@ -17,124 +17,137 @@ extern void set_numbers_as_arrows NOPARAMS;
extern void set_vi_keys NOPARAMS;
extern void set_vms_keys NOPARAMS;
+/* We only use unsigned keycodes; if there's a problem matching with enum
+ * (which is supposed to be 'int'), that would be okay, but not as clean
+ * for type-checking.
+ */
+typedef unsigned short LYKeymap_t;
+
#define KEYMAP_SIZE 661
-extern unsigned short keymap[KEYMAP_SIZE]; /* main keymap matrix */
+extern LYKeymap_t keymap[KEYMAP_SIZE]; /* main keymap matrix */
#ifdef EXP_KEYBOARD_LAYOUT
extern int current_layout;
-extern unsigned short * LYKbLayouts[];
+extern LYKeymap_t * LYKbLayouts[];
extern char * LYKbLayoutNames[];
extern int LYSetKbLayout PARAMS((char *layout_id));
#endif
#if defined(DIRED_SUPPORT) && defined(OK_OVERRIDE)
-extern unsigned short key_override[];
+extern LYKeymap_t key_override[];
#endif
-#define LYK_1 1
-#define LYK_2 2
-#define LYK_3 3
-#define LYK_4 4
-#define LYK_5 5
-#define LYK_6 6
-#define LYK_7 7
-#define LYK_8 8
-#define LYK_9 9
-#define LYK_SOURCE 10
-#define LYK_RELOAD 11
-#define LYK_PIPE 12
-#define LYK_QUIT 13
-#define LYK_ABORT 14
-#define LYK_NEXT_PAGE 15
-#define LYK_PREV_PAGE 16
-#define LYK_UP_TWO 17
-#define LYK_DOWN_TWO 18
-#define LYK_UP_HALF 19
-#define LYK_DOWN_HALF 20
-#define LYK_REFRESH 21
-#define LYK_HOME 22
-#define LYK_END 23
-#define LYK_PREV_LINK 24
-#define LYK_NEXT_LINK 25
-#define LYK_FASTBACKW_LINK 26
-#define LYK_FASTFORW_LINK 27
-#define LYK_UP_LINK 28
-#define LYK_DOWN_LINK 29
-#define LYK_RIGHT_LINK 30
-#define LYK_LEFT_LINK 31
-#define LYK_HISTORY 32
-#define LYK_PREV_DOC 33
-#define LYK_ACTIVATE 34
-#define LYK_GOTO 35
-#define LYK_ECGOTO 36
-#define LYK_HELP 37
-#define LYK_INDEX 38
-#define LYK_NOCACHE 39
-#define LYK_INTERRUPT 40
-#define LYK_MAIN_MENU 41
-#define LYK_OPTIONS 42
-#define LYK_INDEX_SEARCH 43
-#define LYK_WHEREIS 44
-#define LYK_NEXT 45
-#define LYK_COMMENT 46
-#define LYK_EDIT 47
-#define LYK_INFO 48
-#define LYK_PRINT 49
-#define LYK_ADD_BOOKMARK 50
-#define LYK_DEL_BOOKMARK 51
-#define LYK_VIEW_BOOKMARK 52
-#define LYK_VLINKS 53
-#define LYK_SHELL 54
-#define LYK_DOWNLOAD 55
-#define LYK_TRACE_TOGGLE 56
-#define LYK_TRACE_LOG 57
-#define LYK_IMAGE_TOGGLE 58
-#define LYK_INLINE_TOGGLE 59
-#define LYK_HEAD 60
-#define LYK_DO_NOTHING 61
-#define LYK_TOGGLE_HELP 62
-#define LYK_JUMP 63
-#define LYK_KEYMAP 64
-#define LYK_LIST 65
-#define LYK_TOOLBAR 66
-#define LYK_HISTORICAL 67
-#define LYK_MINIMAL 68
-#define LYK_SOFT_DQUOTES 69
-#define LYK_RAW_TOGGLE 70
-#define LYK_COOKIE_JAR 71
-#define LYK_F_LINK_NUM 72
-#define LYK_CLEAR_AUTH 73
-#define LYK_SWITCH_DTD 74
-#define LYK_ELGOTO 75
-#define LYK_CHANGE_LINK 76
-#define LYK_EDIT_TEXTAREA 77
+/* The order of this enum must match the 'revmap[]' array in LYKeymap.c */
+typedef enum {
+ LYK_UNKNOWN=0,
+ LYK_1,
+ LYK_2,
+ LYK_3,
+ LYK_4,
+ LYK_5,
+ LYK_6,
+ LYK_7,
+ LYK_8,
+ LYK_9,
+ LYK_SOURCE,
+ LYK_RELOAD,
+ LYK_PIPE,
+ LYK_QUIT,
+ LYK_ABORT,
+ LYK_NEXT_PAGE,
+ LYK_PREV_PAGE,
+ LYK_UP_TWO,
+ LYK_DOWN_TWO,
+ LYK_UP_HALF,
+ LYK_DOWN_HALF,
+ LYK_REFRESH,
+ LYK_HOME,
+ LYK_END,
+ LYK_PREV_LINK,
+ LYK_NEXT_LINK,
+ LYK_FASTBACKW_LINK,
+ LYK_FASTFORW_LINK,
+ LYK_UP_LINK,
+ LYK_DOWN_LINK,
+ LYK_RIGHT_LINK,
+ LYK_LEFT_LINK,
+ LYK_HISTORY,
+ LYK_PREV_DOC,
+ LYK_ACTIVATE,
+ LYK_GOTO,
+ LYK_ECGOTO,
+ LYK_HELP,
+ LYK_INDEX,
+ LYK_NOCACHE,
+ LYK_INTERRUPT,
+ LYK_MAIN_MENU,
+ LYK_OPTIONS,
+ LYK_INDEX_SEARCH,
+ LYK_WHEREIS,
+ LYK_NEXT,
+ LYK_COMMENT,
+ LYK_EDIT,
+ LYK_INFO,
+ LYK_PRINT,
+ LYK_ADD_BOOKMARK,
+ LYK_DEL_BOOKMARK,
+ LYK_VIEW_BOOKMARK,
+ LYK_VLINKS,
+ LYK_SHELL,
+ LYK_DOWNLOAD,
+ LYK_TRACE_TOGGLE,
+ LYK_TRACE_LOG,
+ LYK_IMAGE_TOGGLE,
+ LYK_INLINE_TOGGLE,
+ LYK_HEAD,
+ LYK_DO_NOTHING,
+ LYK_TOGGLE_HELP,
+ LYK_JUMP,
+ LYK_KEYMAP,
+ LYK_LIST,
+ LYK_TOOLBAR,
+ LYK_HISTORICAL,
+ LYK_MINIMAL,
+ LYK_SOFT_DQUOTES,
+ LYK_RAW_TOGGLE,
+ LYK_COOKIE_JAR,
+ LYK_F_LINK_NUM,
+ LYK_CLEAR_AUTH,
+ LYK_SWITCH_DTD,
+ LYK_ELGOTO,
+ LYK_CHANGE_LINK,
+ LYK_EDIT_TEXTAREA,
+ LYK_GROW_TEXTAREA,
+ LYK_INSERT_FILE,
+
+#ifdef EXP_ADDRLIST_PAGE
+ LYK_ADDRLIST,
+#else
+#define LYK_ADDRLIST LYK_ADD_BOOKMARK
+#endif
#ifdef USE_EXTERNALS
-#define LYK_EXTERN 78
-#if defined(VMS) || defined(DIRED_SUPPORT)
-#define LYK_DIRED_MENU 79
-#endif /* VMS || DIRED_SUPPORT */
-#else /* USE_EXTERNALS */
+ LYK_EXTERN,
+#endif /* !defined(USE_EXTERNALS) */
+
#if defined(VMS) || defined(DIRED_SUPPORT)
-#define LYK_DIRED_MENU 78
+ LYK_DIRED_MENU,
+#else
+#define LYK_DIRED_MENU LYK_UNKNOWN
#endif /* VMS || DIRED_SUPPORT */
-#endif /* !defined(USE_EXTERNALS) */
#ifdef DIRED_SUPPORT
-#define LYK_CREATE (LYK_DIRED_MENU+1)
-#define LYK_REMOVE (LYK_DIRED_MENU+2)
-#define LYK_MODIFY (LYK_DIRED_MENU+3)
-#define LYK_TAG_LINK (LYK_DIRED_MENU+4)
-#define LYK_UPLOAD (LYK_DIRED_MENU+5)
-#define LYK_INSTALL (LYK_DIRED_MENU+6)
+ LYK_CREATE,
+ LYK_REMOVE,
+ LYK_MODIFY,
+ LYK_TAG_LINK,
+ LYK_UPLOAD,
+ LYK_INSTALL,
+#else
+#define LYK_TAG_LINK LYK_UNKNOWN
#endif /* DIRED_SUPPORT */
-#ifndef LYK_DIRED_MENU
-#define LYK_DIRED_MENU 0
-#endif
+} LYKeymapCodes;
-#ifndef LYK_TAG_LINK
-#define LYK_TAG_LINK 0
-#endif
#endif /* LYKEYMAP_H */
diff --git a/src/LYList.c b/src/LYList.c
index e53f51e8..b73bb61d 100644
--- a/src/LYList.c
+++ b/src/LYList.c
@@ -81,6 +81,11 @@ PUBLIC int showlist ARGS2(
LYforce_HTML_mode = TRUE; /* force this file to be HTML */
LYforce_no_cache = TRUE; /* force this file to be new */
+#ifdef EXP_ADDRLIST_PAGE
+ if (titles != TRUE)
+ BeginInternalPage(fp0, ADDRLIST_PAGE_TITLE, LIST_PAGE_HELP);
+ else
+#endif
BeginInternalPage(fp0, LIST_PAGE_TITLE, LIST_PAGE_HELP);
StrAllocCopy(Address, HTLoadedDocumentURL());
diff --git a/src/LYMain.c b/src/LYMain.c
index 6db448a7..78974fa1 100644
--- a/src/LYMain.c
+++ b/src/LYMain.c
@@ -18,7 +18,6 @@
#include <LYClean.h>
#include <LYCharSets.h>
#include <LYCharUtils.h>
-#include <UCMap.h>
#include <LYReadCFG.h>
#include <LYrcFile.h>
#include <LYKeymap.h>
@@ -559,7 +558,7 @@ PUBLIC void exit_immediately ARGS1(
exit(code);
}
-#ifdef EBCDIC /* S/390 -- gil -- 1958 */
+#ifdef EBCDIC
char un_IBM1047[ 256 ] = "";
unsigned char IBM1047[ 256 ] = /* ATOE OEMVS311 */
{
@@ -584,14 +583,18 @@ unsigned char IBM1047[ 256 ] = /* ATOE OEMVS311 */
static void FixCharacters(void)
{
int c;
- int work[256];
+ int work1[256],
+ work2[256];
for (c = 0; c < 256; c++) {
un_IBM1047[IBM1047[c]] = c;
- work[c] = keymap[c+1];
+ work1[c] = keymap[c+1];
+ work2[c] = key_override[c+1];
+ }
+ for (c = 0; c < 256; c++) {
+ keymap [IBM1047[c]+1] = work1[c];
+ key_override[IBM1047[c]+1] = work2[c];
}
- for (c = 0; c < 256; c++)
- keymap[IBM1047[c]+1] = work[c];
}
#endif /* EBCDIC */
@@ -610,7 +613,7 @@ PUBLIC int main ARGS2(
char filename[LY_MAXPATH];
BOOL LYGetStdinArgs = FALSE;
-#ifdef NOT_ASCII /* S/390 -- gil -- 2002 */
+#ifdef NOT_ASCII
FixCharacters();
#endif /* NOT_ASCII */
@@ -1122,14 +1125,6 @@ PUBLIC int main ARGS2(
LYOpenTraceLog();
/*
- * If TRACE is on, indicate whether the
- * anonymous restrictions are set. - FM
- */
- if (LYRestricted) {
- CTRACE(tfp, "LYMain: Anonymous restrictions set.\n");
- }
-
- /*
* Set up the default jump file stuff. - FM
*/
StrAllocCopy(jumpprompt, JUMP_PROMPT);
@@ -2820,7 +2815,7 @@ keys (may be incompatible with some curses packages)"
#ifdef DISP_PARTIAL
PARSE_SET(
"partial", TOGGLE_ARG, &display_partial,
- "display partial pages while downloading"
+ "toggles display partial pages while downloading"
),
PARSE_INT(
"partial_thres", IGNORE_ARG|INT_ARG, partial_threshold,
@@ -2842,7 +2837,8 @@ with partial-display logic"
),
PARSE_SET(
"preparsed", SET_ARG, &LYPreparsedSource,
- "show parsed text/html with -source and in source view"
+ "show parsed text/html with -source and in source view\n\
+ to visualize how lynx behave with invalid HTML"
),
PARSE_SET(
"print", UNSET_ARG, &no_print,
@@ -2969,7 +2965,7 @@ treated '>' as a co-terminator for double-quotes and tags"
"width", NEED_FUNCTION_ARG, width_fun,
"=NUMBER\nscreen width for formatting of dumps (default is 80)"
),
- {NULL}
+ {NULL, 0, 0, NULL}
};
static void print_help_strings ARGS3(
diff --git a/src/LYMainLoop.c b/src/LYMainLoop.c
index a4ad942e..18cc9044 100644
--- a/src/LYMainLoop.c
+++ b/src/LYMainLoop.c
@@ -168,6 +168,13 @@ PUBLIC BOOLEAN LYOpenTraceLog NOARGS
fflush(stdout);
fflush(stderr);
fprintf(tfp, "\t\t%s (%s)\n\n", LYNX_TRACELOG_TITLE, LYNX_VERSION);
+ /*
+ * If TRACE is on, indicate whether the
+ * anonymous restrictions are set. - FM
+ */
+ if (LYRestricted) {
+ CTRACE(tfp, "Anonymous restrictions are set.\n");
+ }
}
return TRUE;
}
@@ -1586,7 +1593,60 @@ try_again:
links[curdoc.link].form->name,
links[curdoc.link].form->value);
- if (c == '\n' || c == '\r')
+ if (c == '\n' || c == '\r') {
+#ifdef AUTOGROW
+ /*
+ * If on the bottom line of a TEXTAREA, and the user hit
+ * the ENTER key, we add a new line/anchor automatically,
+ * positioning the cursor on it.
+ *
+ * If at the bottom of the screen, we effectively perform
+ * an LYK_DOWN_HALF-like operation, then move down to the
+ * new line we just added. --KED 02/14/99
+ *
+ * [There is some redundancy and non-standard indentation
+ * in the monster-if() below. This is intentional ... to
+ * try and improve the "readability" (such as it is).
+ * Caveat emptor to anyone trying to change it.]
+ */
+ if ((links[curdoc.link].type == WWW_FORM_LINK_TYPE &&
+ links[curdoc.link].form->type == F_TEXTAREA_TYPE)
+ &&
+ ((curdoc.link == nlinks-1)
+ ||
+ ((curdoc.link < nlinks-1) &&
+ !(links[curdoc.link+1].type == WWW_FORM_LINK_TYPE &&
+ links[curdoc.link+1].form->type == F_TEXTAREA_TYPE))
+ ||
+ ((curdoc.link < nlinks-1) &&
+ ((links[curdoc.link+1].type == WWW_FORM_LINK_TYPE &&
+ links[curdoc.link+1].form->type == F_TEXTAREA_TYPE)
+ &&
+ ((links[curdoc.link].form->number !=
+ links[curdoc.link+1].form->number) ||
+ (strcmp (links[curdoc.link].form->name,
+ links[curdoc.link+1].form->name) != 0)))))) {
+
+ HText_ExpandTextarea (&links[curdoc.link], 1);
+ lines_in_file = HText_getNumOfLines();
+
+ if (links[curdoc.link].ly < display_lines) {
+ refresh_screen = TRUE;
+
+ } else {
+
+ Newline += (display_lines/2);
+ if (nlinks > 0 && curdoc.link > -1 &&
+ links[curdoc.link].ly > display_lines/2) {
+ newdoc.link = curdoc.link;
+ for (i = 0; links[i].ly <= (display_lines/2); i++)
+ --newdoc.link;
+ newdoc.link++;
+ }
+ }
+ }
+#endif /* AUTOGROW */
+
#ifdef FASTTAB
/*
* Make return act like down-arrow.
@@ -1598,6 +1658,7 @@ try_again:
*/
c = '\t';
#endif /* FASTTAB */
+ }
} else {
/*
* Get a keystroke from the user.
@@ -1766,6 +1827,10 @@ new_cmd: /*
int lindx = ((nlinks > 0) ? curdoc.link : 0);
int number;
+ /* pass cur line num for use in follow_link_number()
+ * Note: Current line may not equal links[cur].line
+ */
+ newdoc.line = curdoc.line;
switch (follow_link_number(c, lindx, &newdoc, &number)) {
case DO_LINK_STUFF:
/*
@@ -1784,8 +1849,7 @@ new_cmd: /*
if (links[lindx].type == WWW_INTERN_LINK_TYPE) {
LYinternal_flag = TRUE;
newdoc.internal_link = TRUE;
- if (0==strcmp((curdoc.title ? curdoc.title : ""),
- LIST_PAGE_TITLE) &&
+ if (LYIsListpageTitle(curdoc.title ? curdoc.title : "") &&
0==strcmp(HTLoadedDocumentURL(), LYlist_temp_url())) {
if (!curdoc.post_data ||
/*
@@ -3153,9 +3217,8 @@ new_cmd: /*
* for an internal link within the document the
* List Page is about. - kw
*/
- if (0==strcmp(curdoc.address, LYlist_temp_url()) &&
- 0==strcmp((curdoc.title ? curdoc.title : ""),
- LIST_PAGE_TITLE)) {
+ if ( 0==strcmp(curdoc.address, LYlist_temp_url()) &&
+ (LIsListpageTitle(curdoc.title ? curdoc.title : ""))) {
if (!curdoc.post_data ||
/*
* Normal case - List Page is not associated
@@ -4330,9 +4393,11 @@ if (!LYUseFormsOptions) {
}
break;
}
-
+#ifdef AUTOEXTEDIT
/*
- * If we're in a forms TEXTAREA, invoke the editor on it.
+ * If we're in a forms TEXTAREA, invoke the editor on *its*
+ * contents, rather than attempting to edit the html source
+ * document. KED
*/
if (links[curdoc.link].type == WWW_FORM_LINK_TYPE &&
links[curdoc.link].form->type == F_TEXTAREA_TYPE) {
@@ -4346,12 +4411,17 @@ if (!LYUseFormsOptions) {
* document with the TEXT field is local, the editor *would*
* be invoked on the source .html file; eg, the o(ptions)
* form tempfile).
+ *
+ * [This is done to avoid possible user confusion, due to
+ * auto invocation of the editor on the TEXTAREA's contents
+ * via the above if() statement.]
*/
if (links[curdoc.link].type == WWW_FORM_LINK_TYPE &&
links[curdoc.link].form->type == F_TEXT_TYPE) {
- HTUserMsg(CANNOT_EDIT_FIELD);
- break;
+ HTUserMsg (CANNOT_EDIT_FIELD);
+ break;
}
+#endif /* AUTOEXTEDIT */
#ifdef DIRED_SUPPORT
/*
@@ -4530,11 +4600,11 @@ if (!LYUseFormsOptions) {
/*
* TODO: Move cursor "n" lines from the current line to
- * position it on the 1st trailing blank line in
- * the now edited TEXTAREA. If the target line/
- * anchor requires us to scroll up/down, position
- * the target in the approximate center of the
- * screen.
+ * position it on the 1st trailing blank line in
+ * the now edited TEXTAREA. If the target line/
+ * anchor requires us to scroll up/down, position
+ * the target in the approximate center of the
+ * screen.
*/
/* curdoc.link += n;*/ /* works, except for page crossing, */
@@ -4550,6 +4620,56 @@ if (!LYUseFormsOptions) {
}
break;
+ case LYK_GROW_TEXTAREA: /* add new lines to bottom of TEXTAREA - KED */
+ /*
+ * See if the current link is in a form TEXTAREA.
+ */
+ if (links[curdoc.link].type == WWW_FORM_LINK_TYPE &&
+ links[curdoc.link].form->type == F_TEXTAREA_TYPE) {
+
+ HText_ExpandTextarea (&links[curdoc.link], TEXTAREA_EXPAND_SIZE);
+
+ lines_in_file = HText_getNumOfLines();
+ refresh_screen = TRUE;
+
+ } else {
+
+ HTInfoMsg (NOT_IN_TEXTAREA);
+ }
+ break;
+
+ case LYK_INSERT_FILE: /* insert file in TEXTAREA, above cursor - KED */
+ /*
+ * See if the current link is in a form TEXTAREA.
+ */
+ if (links[curdoc.link].type == WWW_FORM_LINK_TYPE &&
+ links[curdoc.link].form->type == F_TEXTAREA_TYPE) {
+
+ n = HText_InsertFile (&links[curdoc.link]);
+
+ lines_in_file = HText_getNumOfLines();
+
+ /*
+ * TODO: Move cursor "n" lines from the current line to
+ * position it on the 1st line following the text
+ * that was inserted. If the target line/anchor
+ * requires us to scroll up/down, position the
+ * target in the approximate center of the screen.
+ *
+ * [Current behavior leaves cursor on the same line relative
+ * to the start of the TEXTAREA that it was on before the
+ * insertion. This is the same behavior that occurs with
+ * (my) editor, so this TODO will stay unimplemented.]
+ */
+
+ refresh_screen = TRUE;
+
+ } else {
+
+ HTInfoMsg (NOT_IN_TEXTAREA);
+ }
+ break;
+
case LYK_PRINT: /* print the file */
if (LYValidate) {
if (old_c != real_c) {
@@ -4614,6 +4734,41 @@ if (!LYUseFormsOptions) {
}
break;
+#ifdef EXP_ADDRLIST_PAGE
+ case LYK_ADDRLIST: /* always list URL's (only) */
+ /*
+ * Don't do if already viewing list addresses page.
+ */
+ if (!strcmp((curdoc.title ? curdoc.title : ""),
+ ADDRLIST_PAGE_TITLE)) {
+ /*
+ * Already viewing list page, so get out.
+ */
+ cmd = LYK_PREV_DOC;
+ goto new_cmd;
+ }
+
+ /*
+ * Print address list page to file.
+ */
+ if (showlist(&newdoc, FALSE) < 0)
+ break;
+ StrAllocCopy(newdoc.title, ADDRLIST_PAGE_TITLE);
+ /*
+ * showlist will set newdoc's other fields. It may leave
+ * post_data intact so the list can be used to follow
+ * internal links in the current document even if it is
+ * a POST response. - kw
+ */
+
+ refresh_screen = TRUE; /* redisplay */
+ if (LYValidate || check_realm) {
+ LYPermitURL = TRUE;
+ StrAllocCopy(lynxlistfile, newdoc.address);
+ }
+ break;
+#endif /* EXP_ADDRLIST_PAGE */
+
case LYK_VLINKS: /* list links visited during the current session */
if (!strcmp((curdoc.title ? curdoc.title : ""),
VISITED_LINKS_TITLE)) {
@@ -4862,8 +5017,7 @@ if (!LYUseFormsOptions) {
if (nlinks > 0) {
if (curdoc.post_data == NULL &&
curdoc.bookmark == NULL &&
- strcmp((curdoc.title ? curdoc.title : ""),
- LIST_PAGE_TITLE) &&
+ !LYIsListpageTitle(curdoc.title ? curdoc.title : "") &&
strcmp((curdoc.title ? curdoc.title : ""),
VISITED_LINKS_TITLE)) {
/*
diff --git a/src/LYMainLoop.h b/src/LYMainLoop.h
index 82480992..33dd0bd7 100644
--- a/src/LYMainLoop.h
+++ b/src/LYMainLoop.h
@@ -3,6 +3,10 @@
#include <HTUtils.h>
+#define TEXTAREA_EXPAND_SIZE 5
+#define AUTOGROW
+#define AUTOEXTEDIT
+
extern BOOLEAN LYOpenTraceLog NOPARAMS;
extern void LYCloseTracelog NOPARAMS;
extern int mainloop NOPARAMS;
diff --git a/src/LYPrint.c b/src/LYPrint.c
index 3aa2a359..0bcdbe0c 100644
--- a/src/LYPrint.c
+++ b/src/LYPrint.c
@@ -166,11 +166,15 @@ PRIVATE void SetupFilename ARGS2(
#define FN_DONE 2
#define FN_QUIT 3
-PRIVATE int RecallFilename ARGS4(
+#define PRINT_FLAG 0
+#define GENERIC_FLAG 1
+
+PRIVATE int RecallFilename ARGS5(
char *, filename,
BOOLEAN *, first,
int *, now,
- int *, total)
+ int *, total,
+ int, flag)
{
int ch;
char *cp;
@@ -255,9 +259,13 @@ PRIVATE int RecallFilename ARGS4(
}
/*
- * Save cancelled.
+ * Operation cancelled.
*/
- HTInfoMsg(SAVE_REQUEST_CANCELLED);
+ if (flag == PRINT_FLAG)
+ HTInfoMsg(SAVE_REQUEST_CANCELLED);
+ else if (flag == GENERIC_FLAG)
+ return FN_QUIT;
+
return FN_QUIT;
}
return FN_DONE;
@@ -280,7 +288,7 @@ PRIVATE BOOLEAN confirm_by_pages ARGS3(
HTSprintf0(&msg, prompt, pages);
_statusline(msg);
- FREE(msg);
+ FREE(msg);
c = LYgetch();
#ifdef VMS
@@ -325,7 +333,8 @@ retry:
strcpy(filename, buffer);
}
check_recall:
- switch (RecallFilename(filename, &FirstRecall, &FnameNum, &FnameTotal)) {
+ switch (RecallFilename(filename, &FirstRecall, &FnameNum,
+ &FnameTotal, PRINT_FLAG)) {
case FN_INIT:
goto retry;
case FN_READ:
@@ -857,7 +866,8 @@ PRIVATE void send_file_to_printer ARGS4(
again:
SetupFilename(my_file, sug_filename);
check_again:
- switch (RecallFilename(my_file, &FirstRecall, &FnameNum, &FnameTotal)) {
+ switch (RecallFilename(my_file, &FirstRecall, &FnameNum,
+ &FnameTotal, PRINT_FLAG)) {
case FN_INIT:
goto again;
case FN_READ:
@@ -1323,3 +1333,124 @@ PUBLIC int print_options ARGS3(
LYforce_no_cache = TRUE;
return(0);
}
+
+
+/*
+ * General purpose filename getter.
+ *
+ * Returns a pointer to an absolute filename string, if the input
+ * filename exists, and is readable. Returns NULL if the input
+ * was cancelled (^G, or CR on empty input).
+ *
+ * The pointer to the filename string needs to be free()'d by the
+ * caller (when non-NULL).
+ *
+ * --KED 02/21/99
+ */
+PUBLIC char * GetFileName NOARGS
+{
+ struct stat stat_info;
+
+ FILE *fp;
+
+ char fbuf[LY_MAXPATH];
+ char tbuf[LY_MAXPATH];
+ char *fn;
+
+ BOOLEAN FirstRecall = TRUE;
+ int FnameNum = -1;
+ int FnameTotal;
+
+
+ _statusline(FILENAME_PROMPT);
+
+retry:
+ /*
+ * No initial filename.
+ */
+ SetupFilename (fbuf, "");
+
+check_recall:
+ /*
+ * Go get a filename (it would be nice to do TAB == filename-completion
+ * as the name is entered, but we'll save doing that for another time.
+ */
+ switch (RecallFilename (fbuf, &FirstRecall, &FnameNum,
+ &FnameTotal, GENERIC_FLAG)) {
+ case FN_INIT:
+ goto retry;
+ case FN_READ:
+ goto check_recall;
+ case FN_QUIT:
+ goto quit;
+ default:
+ break;
+ }
+
+ /*
+ * Add raw input form to list ... we may want to reuse/edit it on a
+ * subsequent call, etc.
+ */
+#ifdef VMS
+ if (0 == strncasecomp (fbuf, "sys$disk:", 9)) {
+ if (0 == strncmp ((fbuf+9), "[]", 2)) {
+ HTAddSugFilename (fbuf+11);
+ } else {
+ HTAddSugFilename (fbuf+9);
+ }
+ } else {
+ HTAddSugFilename (fbuf);
+ }
+#else
+ HTAddSugFilename (fbuf);
+#endif /* VMS */
+
+ /*
+ * Expand tilde's, make filename absolute, etc.
+ */
+ if (!LYValidateFilename (tbuf, fbuf))
+ goto quit;
+
+ /*
+ * Check for file existence; readability.
+ */
+ if ((stat (tbuf, &stat_info) < 0) ||
+ (!(S_ISREG(stat_info.st_mode) || S_ISLNK(stat_info.st_mode)))) {
+ HTInfoMsg (FILE_DOES_NOT_EXIST);
+ _statusline(FILE_DOES_NOT_EXIST_RE);
+ FirstRecall = TRUE;
+ FnameNum = FnameTotal;
+ goto retry;
+ }
+
+ if ((fp = fopen (tbuf, "r")) == NULL) {
+ HTInfoMsg (FILE_NOT_READABLE);
+ _statusline(FILE_NOT_READABLE_RE);
+ FirstRecall = TRUE;
+ FnameNum = FnameTotal;
+ goto retry;
+ } else {
+ fclose (fp);
+ }
+
+ /*
+ * We have a valid filename, and readable file. Return it to the
+ * caller.
+ *
+ * The returned pointer should be free()'d by the caller.
+ *
+ * [For some silly reason, if we use StrAllocCopy() here, we get an
+ * "invalid pointer" reported in the Lynx.leaks file (if compiled
+ * with --enable-find-leaks turned on. Dumb.]
+ */
+ if ((fn = (char *) calloc (1, (strlen (tbuf) + 1))) == NULL)
+ outofmem(__FILE__, "GetFileName");
+ return (strcpy (fn, tbuf));
+
+
+quit:
+ /*
+ * The user cancelled the input (^G, or CR on empty input field).
+ */
+ return (NULL);
+}
diff --git a/src/LYPrint.h b/src/LYPrint.h
index 12efe47c..4ddd33a9 100644
--- a/src/LYPrint.h
+++ b/src/LYPrint.h
@@ -8,6 +8,7 @@
extern int printfile PARAMS((document *newdoc));
extern int print_options PARAMS((char **newfile,
char **printed_url, int lines_in_file));
+extern char * GetFileName NOPARAMS;
#endif /* LYPRINT_H */
diff --git a/src/LYReadCFG.c b/src/LYReadCFG.c
index 88a04803..45976705 100644
--- a/src/LYReadCFG.c
+++ b/src/LYReadCFG.c
@@ -1040,7 +1040,7 @@ PUBLIC void free_lynx_cfg NOARGS
case CONF_ENV:
if (q->str_value != 0) {
FREE(*(q->str_value));
- FREE((char *)q->str_value);
+ FREE(q->str_value);
}
break;
default:
diff --git a/src/LYStrings.c b/src/LYStrings.c
index d74e2310..4c7ab032 100644
--- a/src/LYStrings.c
+++ b/src/LYStrings.c
@@ -1782,7 +1782,7 @@ PUBLIC void LYSetupEdit ARGS4(
* up, we'll check it here, and ensure that no buffer overrun can
* occur by loading only as much of the head as fits. - FM
*/
- if (strlen(old) >= maxstr) {
+ if (strlen(old) >= (unsigned)maxstr) {
strncpy(edit->buffer, old, maxstr);
edit->buffer[maxstr] = '\0';
StrLen = maxstr;
diff --git a/src/LYUtils.c b/src/LYUtils.c
index ecced083..706fbe1c 100644
--- a/src/LYUtils.c
+++ b/src/LYUtils.c
@@ -14,6 +14,7 @@
#include <LYClean.h>
#include <LYCharSets.h>
#include <LYCharUtils.h>
+#include <LYMainLoop.h>
#ifdef DJGPP_KEYHANDLER
#include <bios.h>
@@ -2188,6 +2189,11 @@ PUBLIC int HTCheckForInterrupt NOARGS
else if (display_partial && (NumOfLines_partial > 2))
/* OK, we got several lines from new document and want to scroll... */
{
+ /* There is a subset of mainloop() actions available at this stage:
+ ** no new getfile() cyrcle possible until the previous finished.
+ ** Currently we have scrolling and toggling of trace log here.
+ */
+
int res;
switch (keymap[c+1])
{
@@ -2252,6 +2258,11 @@ PUBLIC int HTCheckForInterrupt NOARGS
break;
case LYK_REFRESH :
break ;
+ case LYK_TRACE_TOGGLE: /* Toggle TRACE mode. */
+ WWW_TraceFlag = ! WWW_TraceFlag;
+ if (LYOpenTraceLog())
+ HTUserMsg(WWW_TraceFlag ? TRACE_ON : TRACE_OFF);
+ break;
default :
return ((int)FALSE) ;
}
@@ -5457,7 +5468,7 @@ PUBLIC int putenv ARGS1(
new_environ[size] = (char *) string;
new_environ[size + 1] = NULL;
if (last_environ != NULL)
- FREE ((char *) last_environ);
+ FREE (last_environ);
last_environ = new_environ;
environ = new_environ;
}
@@ -5876,12 +5887,12 @@ PUBLIC void LYRemoveTemp ARGS1(
} else {
ly_temp = p->next;
}
+ if (p->file != 0)
+ fclose(p->file);
code = HTSYS_remove(name);
CTRACE(tfp, "...LYRemoveTemp done(%d)%s\n", code,
(p->file != 0) ? ", closed" : "");
CTRACE_FLUSH(tfp);
- if (p->file != 0)
- fclose(p->file);
FREE(p->name);
FREE(p);
break;
@@ -6111,7 +6122,7 @@ PUBLIC void BeginInternalPage ARGS3(
{
fprintf(fp0, "<html>\n<head>\n");
LYAddMETAcharsetToFD(fp0, -1);
- if (!strcmp(Title, LIST_PAGE_TITLE)) {
+ if (LYIsListpageTitle(Title)) {
if (strchr(HTLoadedDocumentURL(), '"') == NULL) {
char *Address = NULL;
/*
diff --git a/src/LYUtils.h b/src/LYUtils.h
index 6652e58c..87b8006f 100644
--- a/src/LYUtils.h
+++ b/src/LYUtils.h
@@ -39,6 +39,15 @@
#define LYIsPathSep(ch) ((ch) == '/')
#endif
+#ifdef EXP_ADDRLIST_PAGE
+#define LYIsListpageTitle(name) \
+ (!strcmp((name), LIST_PAGE_TITLE) || \
+ !strcmp((name), ADDRLIST_PAGE_TITLE))
+#else
+#define LYIsListpageTitle(name) \
+ (!strcmp((name), LIST_PAGE_TITLE))
+#endif
+
#define LYIsHtmlSep(ch) ((ch) == '/')
#define TABLESIZE(v) (sizeof(v)/sizeof(v[0]))
diff --git a/src/LYrcFile.c b/src/LYrcFile.c
index e0c1304c..aea6fa9c 100644
--- a/src/LYrcFile.c
+++ b/src/LYrcFile.c
@@ -897,11 +897,10 @@ PUBLIC int save_rc NOPARAMS
fprintf(fp, gettext("\
# cookie_accept_domains and cookie_reject_domains are comma-delimited\n\
-# lists of domains (with a leading '.') to automatically accept or\n\
-# reject all cookies from. The accept_all_cookies parameter will\n\
-# override any settings made here. If a single domain is specified in\n\
-# both cookie_accept_domains and in cookie_reject_domains, the rejection\n\
-# will take precedence.\n"));
+# lists of domains from which Lynx should automatically accept or reject\n\
+# all cookies. If a domain is specified in both options, rejection will\n\
+# take precedence. The accept_all_cookies parameter will override any\n\
+# settings made here.\n"));
fprintf(fp, "cookie_accept_domains=%s\n",
(LYCookieAcceptDomains == NULL ? ""
: LYCookieAcceptDomains));
@@ -912,9 +911,12 @@ PUBLIC int save_rc NOPARAMS
fprintf(fp, gettext("\
# cookie_loose_invalid_domains, cookie_strict_invalid_domains, and\n\
-# cookie_query_invalid_domains control checking incoming cookies'\n\
-# conformance to RFCNNNN.\n\
-# XXX FIXME\n"));
+# cookie_query_invalid_domains are comma-delimited lists of which domains\n\
+# should be subjected to varying degrees of validity checking. If a\n\
+# domain is set to strict checking, strict conformance to RFC2109 will\n\
+# be applied. A domain with loose checking will be allowed to set cookies\n\
+# with an invalid path or domain attribute. All domains will default to\n\
+# querying the user for an invalid path or domain.\n"));
fprintf(fp, "cookie_loose_invalid_domains=%s\n",
(LYCookieLooseCheckDomains == NULL) ? ""
: LYCookieLooseCheckDomains);
diff --git a/src/UCAuto.c b/src/UCAuto.c
index 5a976eb4..35775a2a 100644
--- a/src/UCAuto.c
+++ b/src/UCAuto.c
@@ -22,7 +22,6 @@
#include <UCAuto.h>
#include <LYGlobalDefs.h>
#include <LYClean.h>
-#include <LYUtils.h>
#ifdef EXP_CHARTRANS_AUTOSWITCH
diff --git a/src/UCAux.c b/src/UCAux.c
index 3c952a33..bf4ab8b0 100644
--- a/src/UCAux.c
+++ b/src/UCAux.c
@@ -1,6 +1,7 @@
#include <HTUtils.h>
#include <HTCJK.h>
+#include <UCMap.h>
#include <UCDefs.h>
#include <HTStream.h>
#include <UCAux.h>
@@ -17,13 +18,9 @@ PUBLIC BOOL UCCanUniTranslateFrom ARGS1(
return NO;
if (!strcmp(LYCharSet_UC[from].MIMEname, "x-transparent"))
return NO;
- if (from == LATIN1) {
- if (LYCharSet_UC[from].codepoints & (UCT_CP_SUPERSETOF_LAT1))
- return YES;
- }
- /* others YES, but check for lost tables to be sure */
- return (LYCharSet_UC[from].UChndl >= 0);
+ /* others YES */
+ return YES;
}
PUBLIC BOOL UCCanTranslateUniTo ARGS1(
@@ -31,6 +28,11 @@ PUBLIC BOOL UCCanTranslateUniTo ARGS1(
{
if (to < 0)
return NO;
+/*???
+ if (!strcmp(LYCharSet_UC[to].MIMEname, "x-transparent"))
+ return NO;
+*/
+
return YES; /* well at least some characters... */
}
@@ -51,7 +53,7 @@ PUBLIC BOOL UCCanTranslateFromTo ARGS2(
CONST char * toname = LYCharSet_UC[to].MIMEname;
if (!strcmp(fromname, "x-transparent") ||
!strcmp(toname, "x-transparent")) {
- return YES;
+ return YES; /* ??? */
} else if (!strcmp(fromname, "us-ascii")) {
return YES;
}
@@ -80,7 +82,7 @@ PUBLIC BOOL UCCanTranslateFromTo ARGS2(
return NO;
}
}
- return (LYCharSet_UC[from].UChndl >= 0);
+ return YES; /* others YES */
}
/*
diff --git a/src/UCdomap.c b/src/UCdomap.c
index b9f50f8b..809140f8 100644
--- a/src/UCdomap.c
+++ b/src/UCdomap.c
@@ -28,7 +28,7 @@
#include <LYLeaks.h>
/*
- * Include tables & parameters.
+ * Include chartrans tables:
*/
#include <cp1250_uni.h> /* WinLatin2 (cp1250) */
#include <cp1251_uni.h> /* WinCyrillic (cp1251) */
@@ -65,9 +65,9 @@
#include <mnem2_suni.h> /* RFC 1345 Mnemonic */
#include <next_uni.h> /* NeXT character set */
#include <rfc_suni.h> /* RFC 1345 w/o Intro */
-#include <utf8_uni.h> /* UNICODE UTF 8 */
+/* #include <utf8_uni.h> */ /* UNICODE UTF 8 */
#include <viscii_uni.h> /* Vietnamese (VISCII) */
-#include <iso9945_uni.h> /* Ukrainian Cyrillic (ISO 9945-2) */
+#include <iso9945uni.h> /* Ukrainian Cyrillic (ISO 9945-2) */
#include <cp866u_uni.h> /* Ukrainian Cyrillic (866) */
#include <koi8u_uni.h> /* Ukrainian Cyrillic (koi8-u */
#ifdef NOTDEFINED
@@ -490,10 +490,11 @@ PRIVATE void UC_con_set_trans ARGS3(
}
/*
* The font is always 256 characters - so far.
+ * (fake 0 for built-in charsets like CJK or x-transparent, use .num_n256)
*/
con_clear_unimap();
#endif
- for (i = 0; i < 256; i++) {
+ for (i = 0; i < UCInfo[UC_charset_in_hndl].num_n256; i++) {
if ((j = UCInfo[UC_charset_in_hndl].unicount[i])) {
ptrans[i] = *p;
for (; j; j--) {
@@ -782,6 +783,12 @@ PUBLIC int UCLYhndl_HTFile_for_unrec = -1;
PUBLIC int UCLYhndl_for_unspec = -1;
PUBLIC int UCLYhndl_for_unrec = -1;
+ /* easy to type, will initialize later */
+PUBLIC int LATIN1 = -1; /* UCGetLYhndl_byMIME("iso-8859-1") */
+PUBLIC int US_ASCII = -1; /* UCGetLYhndl_byMIME("us-ascii") */
+PUBLIC int UTF8 = -1; /* UCGetLYhndl_byMIME("utf-8") */
+
+
PRIVATE int UC_con_set_unimap ARGS2(
int, UC_charset_out_hndl,
int, update_flag)
@@ -803,10 +810,11 @@ PRIVATE int UC_con_set_unimap ARGS2(
/*
* The font is always 256 characters - so far.
+ * (fake 0 for built-in charsets like CJK or x-transparent, use .num_n256)
*/
con_clear_unimap(0);
- for (i = 0; i < 256; i++) {
+ for (i = 0; i < UCInfo[UC_charset_out_hndl].num_n256; i++) {
for (j = UCInfo[UC_charset_out_hndl].unicount[i]; j; j--) {
con_insert_unipair(*(p++), i, 0);
}
@@ -1964,6 +1972,7 @@ PUBLIC void UC_Charset_Setup ARGS9(
}
UCInfo[s].LYNXname = UC_LYNXcharset;
UCInfo[s].unicount = unicount;
+ UCInfo[s].num_n256 = (unicount == NULL) ? 0 : 256 ; /* hack */
UCInfo[s].unitable = unitable;
UCInfo[s].num_uni = nnuni;
UCInfo[s].replacedesc = replacedesc;
@@ -2005,16 +2014,18 @@ PRIVATE void UCcleanup_mem NOARGS
PUBLIC void UCInit NOARGS
{
+
UCreset_allocated_LYCharSets();
atexit(UCcleanup_mem);
UCconsole_map_init();
- UC_CHARSET_SETUP; /* us-ascii */ /* 7 bit approximations */
-
/*
* The order of charset names visible in Lynx Options menu
* correspond to the order of lines below,
- * except for CJK and others described in LYCharSet.c
+ * except the first two described in LYCharSet.c
+ *
+ * Entries whose comment is marked with *** are declared in UCdomap.h,
+ * others are based on the included tables - UCdomap.c, near the top.
*/
UC_CHARSET_SETUP_iso_8859_1; /* ISO Latin 1 */
@@ -2028,7 +2039,16 @@ PUBLIC void UCInit NOARGS
UC_CHARSET_SETUP_next; /* NeXT character set */
UC_CHARSET_SETUP_hp_roman8; /* HP Roman8 */
+ UC_CHARSET_SETUP_euc_cn; /*** Chinese */
+ UC_CHARSET_SETUP_euc_jp; /*** Japanese (EUC_JP) */
+ UC_CHARSET_SETUP_shift_jis; /*** Japanese (Shift_JIS) */
+ UC_CHARSET_SETUP_euc_kr; /*** Korean */
+ UC_CHARSET_SETUP_big5; /*** Taipei (Big5) */
+
UC_CHARSET_SETUP_viscii; /* Vietnamese (VISCII) */
+ UC_CHARSET_SETUP; /* us-ascii */ /* 7 bit approximations */
+
+ UC_CHARSET_SETUP_x_transparent; /*** Transparent */
UC_CHARSET_SETUP_iso_8859_2; /* ISO Latin 2 */
UC_CHARSET_SETUP_cp852; /* DosLatin2 (cp852) */
@@ -2054,7 +2074,7 @@ PUBLIC void UCInit NOARGS
UC_CHARSET_SETUP_iso_8859_9; /* ISO 8859-9 (Latin 5) */
UC_CHARSET_SETUP_iso_8859_10; /* ISO 8859-10 */
- UC_CHARSET_SETUP_utf_8; /* UNICODE UTF-8 */
+ UC_CHARSET_SETUP_utf_8; /*** UNICODE UTF-8 */
UC_CHARSET_SETUP_mnemonic_ascii_0; /* RFC 1345 w/o Intro */
UC_CHARSET_SETUP_mnemonic; /* RFC 1345 Mnemonic */
UC_CHARSET_SETUP_iso_9945_2; /* Ukrainian Cyrillic (ISO 9945-2) */
@@ -2068,6 +2088,11 @@ PUBLIC void UCInit NOARGS
* To add synonyms for any charset name
* check function UCGetLYhndl_byMIME in this file.
*/
+
+/* easy to type: */
+ LATIN1 = UCGetLYhndl_byMIME("iso-8859-1");
+ US_ASCII = UCGetLYhndl_byMIME("us-ascii");
+ UTF8 = UCGetLYhndl_byMIME("utf-8");
}
/*
diff --git a/src/UCdomap.h b/src/UCdomap.h
index 16541353..f4170c59 100644
--- a/src/UCdomap.h
+++ b/src/UCdomap.h
@@ -41,6 +41,7 @@ struct UC_charset {
CONST char *MIMEname;
CONST char *LYNXname;
CONST u8* unicount;
+ int num_n256; /* 256 for *.tbl, 0 for CJK and x-transparent (hack) */
CONST u16* unitable;
int num_uni;
struct unimapdesc_str replacedesc;
@@ -56,4 +57,51 @@ extern int UCNumCharsets;
extern void UCInit NOARGS;
+
+/*
+ * INSTRUCTIONS for adding new character sets which do not have
+ * Unicode tables.
+ *
+ * Several #defines below are declarations for charsets which need no
+ * tables for mapping to Unicode - CJK multibytes, x-transparent, UTF8 -
+ * Lynx care of them internally.
+ *
+ * The declaration's format is kept in chrtrans/XXX_uni.h -
+ * keep this in mind when changing ucmaketbl.c,
+ * see also UC_Charset_Setup() above for details.
+ */
+
+ /*
+ * There is no strict correlation for the next five, since the transfer
+ * charset gets decoded into Display Char Set by the CJK code (separate
+ * from Unicode mechanism). For now we use the MIME name that describes
+ * what is output to the terminal. - KW
+ */
+#define UC_CHARSET_SETUP_euc_cn UC_Charset_Setup("euc-cn","Chinese",\
+ NULL,NULL,0,(struct unimapdesc_str){0,NULL,0,1},\
+ 128,UCT_ENC_CJK,0)
+#define UC_CHARSET_SETUP_euc_jp UC_Charset_Setup("euc-jp","Japanese (EUC-JP)",\
+ NULL,NULL,0,(struct unimapdesc_str){0,NULL,0,1},\
+ 128,UCT_ENC_CJK,0)
+#define UC_CHARSET_SETUP_shift_jis UC_Charset_Setup("shift_jis","Japanese (Shift_JIS)",\
+ NULL,NULL,0,(struct unimapdesc_str){0,NULL,0,1},\
+ 128,UCT_ENC_CJK,0)
+#define UC_CHARSET_SETUP_euc_kr UC_Charset_Setup("euc-kr","Korean",\
+ NULL,NULL,0,(struct unimapdesc_str){0,NULL,0,1},\
+ 128,UCT_ENC_CJK,0)
+#define UC_CHARSET_SETUP_big5 UC_Charset_Setup("big5","Taipei (Big5)",\
+ NULL,NULL,0,(struct unimapdesc_str){0,NULL,0,1},\
+ 128,UCT_ENC_CJK,0)
+ /*
+ * Placeholder for non-translation mode. - FM
+ */
+#define UC_CHARSET_SETUP_x_transparent UC_Charset_Setup("x-transparent","Transparent",\
+ NULL,NULL,0,(struct unimapdesc_str){0,NULL,0,0},\
+ 128,1,0)
+
+#define UC_CHARSET_SETUP_utf_8 UC_Charset_Setup("utf-8","UNICODE (UTF-8)",\
+ NULL,NULL,0,(struct unimapdesc_str){0,NULL,0,0},\
+ 128,UCT_ENC_UTF8,0)
+
+
#endif /* UCDOMAP_H */
diff --git a/src/chrtrans/MAKEW32.BAT b/src/chrtrans/MAKEW32.BAT
index 4fe285f4..9c3b0a83 100644
--- a/src/chrtrans/MAKEW32.BAT
+++ b/src/chrtrans/MAKEW32.BAT
@@ -33,7 +33,7 @@ makeuctb iso08_uni.tbl > iso08_uni.h
makeuctb iso09_uni.tbl > iso09_uni.h
makeuctb iso10_uni.tbl > iso10_uni.h
makeuctb iso15_uni.tbl > iso15_uni.h
-makeuctb iso9945_uni.tbl > iso9945_uni.h
+makeuctb iso9945uni.tbl > iso9945_uni.h
makeuctb koi8r_uni.tbl > koi8r_uni.h
makeuctb koi8u_uni.tbl > koi8u_uni.h
makeuctb mac_uni.tbl > mac_uni.h
diff --git a/src/chrtrans/build-chrtrans.com b/src/chrtrans/build-chrtrans.com
index df565522..71d6255a 100644
--- a/src/chrtrans/build-chrtrans.com
+++ b/src/chrtrans/build-chrtrans.com
@@ -140,8 +140,8 @@ $ define/user sys$output 'CHRwhere'iso08_uni.h !ISO 8859-8 Hebrew
$ makeuctb iso08_uni.tbl
$ define/user sys$output 'CHRwhere'cp862_uni.h !DosHebrew (cp862)
$ makeuctb cp862_uni.tbl
-$ define/user sys$output 'CHRwhere'iso9945_uni.h !Ukranian
-$ makeuctb iso9945_uni.tbl
+$ define/user sys$output 'CHRwhere'iso9945uni.h !Ukranian
+$ makeuctb iso9945uni.tbl
$ define/user sys$output 'CHRwhere'cp1255_uni.h !WinHebrew (cp1255)
$ makeuctb cp1255_uni.tbl
$ define/user sys$output 'CHRwhere'iso09_uni.h !ISO 8859-9 (Latin 5)
diff --git a/src/chrtrans/def7_uni.tbl b/src/chrtrans/def7_uni.tbl
index bd6b1b1c..d3549285 100644
--- a/src/chrtrans/def7_uni.tbl
+++ b/src/chrtrans/def7_uni.tbl
@@ -1,9 +1,12 @@
# Default 7bit replacements. If the MIME name is set to us-ascii,
-# this will be identified with the "7 bit approximations" Display
+# this will be identified with the "7 bit approximations (US-ASCII)" Display
# character set.
#The MIME name of this charset.
Mus-ascii
+
+#Name as a Display Charset (used on Options screen)
+O7 bit approximations (US-ASCII)
# Shall this become the "default" translation table? YES!
# There has to be exactly one table marked as "default".
diff --git a/src/chrtrans/makefile.dos b/src/chrtrans/makefile.dos
index bc665212..5219081d 100644
--- a/src/chrtrans/makefile.dos
+++ b/src/chrtrans/makefile.dos
@@ -58,7 +58,7 @@ TABLES= \
iso09_uni.h \
iso10_uni.h \
iso15_uni.h \
- iso9945_uni.h \
+ iso9945uni.h \
koi8r_uni.h \
koi8u_uni.h \
mac_uni.h \
@@ -111,7 +111,7 @@ iso08_uni.h: iso08_uni.tbl makeuctb.exe
iso09_uni.h: iso09_uni.tbl makeuctb.exe
iso10_uni.h: iso10_uni.tbl makeuctb.exe
iso15_uni.h: iso15_uni.tbl makeuctb.exe
-iso9945_uni.h: iso9945_uni.tbl makeuctb.exe
+iso9945uni.h: iso9945uni.tbl makeuctb.exe
koi8r_uni.h: koi8r_uni.tbl makeuctb.exe
koi8u_uni.h: koi8u_uni.tbl makeuctb.exe
mac_uni.h: mac_uni.tbl makeuctb.exe
diff --git a/src/chrtrans/makefile.in b/src/chrtrans/makefile.in
index dbcf4782..45c06a80 100644
--- a/src/chrtrans/makefile.in
+++ b/src/chrtrans/makefile.in
@@ -77,7 +77,7 @@ TABLES= \
iso09_uni.h \
iso10_uni.h \
iso15_uni.h \
- iso9945_uni.h \
+ iso9945uni.h \
koi8r_uni.h \
koi8u_uni.h \
mac_uni.h \
@@ -143,7 +143,7 @@ iso08_uni.h: $(srcdir)/iso08_uni.tbl makeuctb$x
iso09_uni.h: $(srcdir)/iso09_uni.tbl makeuctb$x
iso10_uni.h: $(srcdir)/iso10_uni.tbl makeuctb$x
iso15_uni.h: $(srcdir)/iso15_uni.tbl makeuctb$x
-iso9945_uni.h: $(srcdir)/iso9945_uni.tbl makeuctb$x
+iso9945uni.h: $(srcdir)/iso9945uni.tbl makeuctb$x
koi8r_uni.h: $(srcdir)/koi8r_uni.tbl makeuctb$x
koi8u_uni.h: $(srcdir)/koi8u_uni.tbl makeuctb$x
mac_uni.h: $(srcdir)/mac_uni.tbl makeuctb$x
diff --git a/src/structdump.h b/src/structdump.h
index 42b9a07d..90b4a807 100644
--- a/src/structdump.h
+++ b/src/structdump.h
@@ -8,6 +8,7 @@
/* usage: DUMPSTRUCT_LINK(link_ptr, "message"); */
#define DUMPSTRUCT_LINK(L,X) \
+if ((L)) { \
CTRACE(tfp, "\n" \
"KED: link_ptr=0x%08x sizeof=%d ["X"]\n" \
"link struct {\n" \
@@ -33,11 +34,16 @@ CTRACE(tfp, "\n" \
(L)->hightext, (L)->hightext, (L)->hightext2, (L)->hightext2, \
(L)->hightext2_offset, (L)->inUnderline, (L)->lx, (L)->ly, \
(L)->type, (L)->anchor_number, (L)->anchor_line_num, (L)->form); \
+}else{ \
+CTRACE(tfp, "\n" \
+ "KED: link_ptr=0x00000000 (NULL) ["X"]\n"); \
+} \
CTRACE_FLUSH(tfp);
/* usage: DUMPSTRUCT_ANCHOR(anchor_ptr, "message"); */
#define DUMPSTRUCT_ANCHOR(A,X) \
+if ((A)) { \
CTRACE(tfp, "\n" \
"KED: anchor_ptr=0x%08x sizeof=%d ["X"]\n" \
"TextAnchor struct {\n" \
@@ -67,11 +73,16 @@ CTRACE(tfp, "\n" \
(A)->hightext2offset, (A)->link_type, \
(A)->input_field, (A)->input_field, (A)->show_anchor, \
(A)->inUnderline, (A)->expansion_anch, (A)->anchor); \
+}else{ \
+CTRACE(tfp, "\n" \
+ "KED: anchor_ptr=0x00000000 (NULL) ["X"]\n"); \
+} \
CTRACE_FLUSH(tfp);
/* usage: DUMPSTRUCT_FORM(forminfo_ptr, "message"); */
#define DUMPSTRUCT_FORMINFO(F,X) \
+if ((F)) { \
CTRACE(tfp, "\n" \
"KED: forminfo_ptr=0x%08x sizeof=%d ["X"]\n" \
"FormInfo struct {\n" \
@@ -112,11 +123,16 @@ CTRACE(tfp, "\n" \
(F)->no_cache, (F)->cp_submit_value, (F)->orig_submit_value, \
(F)->size_l, (F)->disabled, (F)->name_cs, (F)->value_cs, \
(F)->accept_cs); \
+}else{ \
+CTRACE(tfp, "\n" \
+ "KED: forminfo_ptr=0x00000000 (NULL) ["X"]\n"); \
+} \
CTRACE_FLUSH(tfp);
/* usage: DUMPSTRUCT_LINE(htline_ptr, "message"); */
#define DUMPSTRUCT_LINE(L,X) \
+if ((L)) { \
CTRACE(tfp, "\n" \
"KED: htline_ptr=0x%08x sizeof=%d ["X"]\n" \
"HTLine struct {\n" \
@@ -134,6 +150,10 @@ CTRACE(tfp, "\n" \
(L), sizeof(*((L))), \
(L)->next, (L)->prev, (L)->offset, (L)->size, (L)->split_after, \
(L)->bullet, (L)->expansion_line, (L)->data, (L)->data); \
+}else{ \
+CTRACE(tfp, "\n" \
+ "KED: htline_ptr=0x00000000 (NULL) ["X"]\n"); \
+} \
CTRACE_FLUSH(tfp);
#endif /* STRUCTDUMP_H */
diff --git a/userdefs.h b/userdefs.h
index c152f460..f81f539c 100644
--- a/userdefs.h
+++ b/userdefs.h
@@ -1206,12 +1206,12 @@
* the version definition with the Project Version on checkout. Just
* ignore it. - kw */
/* $Format: "#define LYNX_VERSION \"$ProjectVersion$\""$ */
-#define LYNX_VERSION "2.8.2dev.17"
+#define LYNX_VERSION "2.8.2dev.18"
#define LYNX_WWW_HOME "http://lynx.browser.org/"
#define LYNX_WWW_DIST "http://www.slcc.edu/lynx/current/"
#define LYNX_RELEASE FALSE
/* $Format: "#define LYNX_DATE \"$ProjectDate$\""$ */
-#define LYNX_DATE "Wed, 17 Feb 1999 07:29:33 -0700"
+#define LYNX_DATE "Thu, 04 Mar 1999 03:39:45 -0700"
#define LYNX_DATE_OFF 5 /* truncate the automatically-generated date */
#define LYNX_DATE_LEN 11 /* truncate the automatically-generated date */
#define LYNX_RELEASE_DATE "1998"