From ba8e3be904c2f0df1a141a80573f97e3fe4930e7 Mon Sep 17 00:00:00 2001 From: "Tim J. Robbins" Date: Tue, 20 Apr 2004 13:06:40 +0000 Subject: [PATCH] Remove files no longer present in less distribution. --- contrib/less/acconfig.h | 76 --------- contrib/less/configure.in | 322 ------------------------------------- contrib/less/defines.h.top | 173 -------------------- 3 files changed, 571 deletions(-) delete mode 100644 contrib/less/acconfig.h delete mode 100644 contrib/less/configure.in delete mode 100644 contrib/less/defines.h.top diff --git a/contrib/less/acconfig.h b/contrib/less/acconfig.h deleted file mode 100644 index 4fa6f9d3871c..000000000000 --- a/contrib/less/acconfig.h +++ /dev/null @@ -1,76 +0,0 @@ -/* - * Copyright (C) 1984-2000 Mark Nudelman - * - * You may distribute under the terms of either the GNU General Public - * License or the Less License, as specified in the README file. - * - * For more information about less, or for information on how to - * contact the author, see the README file. - */ - - -/* - * Regular expression library. - * Define exactly one of the following to be 1: - * HAVE_POSIX_REGCOMP: POSIX regcomp() and regex.h - * HAVE_PCRE: PCRE (Perl-compatible regular expression) library - * HAVE_RE_COMP: BSD re_comp() - * HAVE_REGCMP: System V regcmp() - * HAVE_V8_REGCOMP: Henry Spencer V8 regcomp() and regexp.h - * NO_REGEX: pattern matching is supported, but without metacharacters. - */ -#undef HAVE_POSIX_REGCOMP -#undef HAVE_PCRE -#undef HAVE_RE_COMP -#undef HAVE_REGCMP -#undef HAVE_V8_REGCOMP -#undef NO_REGEX -#undef HAVE_REGEXEC2 - -/* Define HAVE_VOID if your compiler supports the "void" type. */ -#undef HAVE_VOID - -/* Define HAVE_CONST if your compiler supports the "const" modifier. */ -#undef HAVE_CONST - -/* Define HAVE_TIME_T if your system supports the "time_t" type. */ -#undef HAVE_TIME_T - -/* Define HAVE_STRERROR if you have the strerror() function. */ -#undef HAVE_STRERROR - -/* Define HAVE_FILENO if you have the fileno() macro. */ -#undef HAVE_FILENO - -/* Define HAVE_ERRNO if you have the errno variable */ -/* Define MUST_DEFINE_ERRNO if you have errno but it is not define - * in errno.h */ -#undef HAVE_ERRNO -#undef MUST_DEFINE_ERRNO - -/* Define HAVE_SYS_ERRLIST if you have the sys_errlist[] variable */ -#undef HAVE_SYS_ERRLIST - -/* Define HAVE_OSPEED if your termcap library has the ospeed variable */ -/* Define MUST_DEFINE_OSPEED if you have ospeed but it is not defined - * in termcap.h. */ -#undef HAVE_OSPEED -#undef MUST_DEFINE_OSPEED - -/* Define HAVE_LOCALE if you have locale.h and setlocale. */ -#undef HAVE_LOCALE - -/* Define HAVE_TERMIOS_FUNCS if you have tcgetattr/tcsetattr */ -#undef HAVE_TERMIOS_FUNCS - -/* Define HAVE_UPPER_LOWER if you have isupper, islower, toupper, tolower */ -#undef HAVE_UPPER_LOWER - -/* Define HAVE_SIGSET_T you have the sigset_t type */ -#undef HAVE_SIGSET_T - -/* Define HAVE_SIGEMPTYSET if you have the sigemptyset macro */ -#undef HAVE_SIGEMPTYSET - -/* Define EDIT_PGM to your editor. */ -#define EDIT_PGM "vi" diff --git a/contrib/less/configure.in b/contrib/less/configure.in deleted file mode 100644 index 83284735849a..000000000000 --- a/contrib/less/configure.in +++ /dev/null @@ -1,322 +0,0 @@ -dnl Process this file with autoconf to produce a configure script. -AC_INIT(forwback.c) -AC_CONFIG_HEADER(defines.h) - -dnl Checks for programs. -AC_PROG_CC -AC_ISC_POSIX -AC_PROG_GCC_TRADITIONAL -AC_PROG_INSTALL - -dnl Check for compilation model. -dnl AC_SYS_LARGEFILE is not supported in all versions of autoconf. -dnl Remove the dnl comment on the next line to use large (64 bit) files. -dnl AC_SYS_LARGEFILE - -dnl Checks for libraries. -AC_CHECK_LIB(xcurses, initscr, [have_xcurses=yes], [have_xcurses=no]) -AC_CHECK_LIB(ncurses, initscr, [have_ncurses=yes], [have_ncurses=no]) -AC_CHECK_LIB(curses, initscr, [have_curses=yes], [have_curses=no]) -AC_CHECK_LIB(termcap, tgetent, [have_termcap=yes], [have_termcap=no]) -AC_CHECK_LIB(termlib, tgetent, [have_termlib=yes], [have_termlib=no]) -dnl Regular expressions (regcmp) are in -lgen on Solaris 2, -dnl and in -lintl on SCO Unix. -AC_CHECK_LIB(gen, regcmp) -AC_CHECK_LIB(intl, regcmp) -AC_CHECK_LIB(PW, regcmp) -dnl Checks for terminal libraries - -AC_MSG_CHECKING(for working terminal libraries) -TERMLIBS= - -dnl Check for systems where curses is broken. -curses_broken=0 -if test x`uname -s` = "xHP-UX" >/dev/null 2>&1; then -if test x`uname -r` = "xB.11.00" >/dev/null 2>&1; then - curses_broken=1 -fi -if test x`uname -r` = "xB.11.11" >/dev/null 2>&1; then - curses_broken=1 -fi -fi - -if test $curses_broken = 0; then -dnl -- Try xcurses. -if test "x$TERMLIBS" = x; then - if test $have_xcurses = yes; then - TERMLIBS="-lxcurses" - SAVE_LIBS=$LIBS - LIBS="$LIBS $TERMLIBS" - AC_TRY_LINK(, [tgetent(0,0); tgetflag(0); tgetnum(0); tgetstr(0,0);], - [termok=yes], [termok=no]) - LIBS=$SAVE_LIBS - if test $termok = no; then TERMLIBS=""; fi - fi -fi - -dnl -- Try ncurses. -if test "x$TERMLIBS" = x; then - if test $have_ncurses = yes; then - TERMLIBS="-lncurses" - SAVE_LIBS=$LIBS - LIBS="$LIBS $TERMLIBS" - AC_TRY_LINK(, [tgetent(0,0); tgetflag(0); tgetnum(0); tgetstr(0,0);], - [termok=yes], [termok=no]) - LIBS=$SAVE_LIBS - if test $termok = no; then TERMLIBS=""; fi - fi -fi - -dnl -- Try curses. -if test "x$TERMLIBS" = x; then - if test $have_curses = yes; then - TERMLIBS="-lcurses" - SAVE_LIBS=$LIBS - LIBS="$LIBS $TERMLIBS" - AC_TRY_LINK(, [tgetent(0,0); tgetflag(0); tgetnum(0); tgetstr(0,0);], - [termok=yes], [termok=no]) - LIBS=$SAVE_LIBS - if test $termok = no; then TERMLIBS=""; fi - fi -fi - -dnl -- Try curses & termcap. -if test "x$TERMLIBS" = x; then - if test $have_curses = yes; then - if test $have_termcap = yes; then - TERMLIBS="-lcurses -ltermcap" - SAVE_LIBS=$LIBS - LIBS="$LIBS $TERMLIBS" - AC_TRY_LINK(, [tgetent(0,0); tgetflag(0); tgetnum(0); tgetstr(0,0);], - [termok=yes], [termok=no]) - LIBS=$SAVE_LIBS - if test $termok = no; then TERMLIBS=""; fi - fi - fi -fi -fi - -dnl -- Try termcap. -if test "x$TERMLIBS" = x; then - if test $have_termcap = yes; then - TERMLIBS="-ltermcap" - SAVE_LIBS=$LIBS - LIBS="$LIBS $TERMLIBS" - AC_TRY_LINK(, [tgetent(0,0); tgetflag(0); tgetnum(0); tgetstr(0,0);], - [termok=yes], [termok=no]) - LIBS=$SAVE_LIBS - if test $termok = no; then TERMLIBS=""; fi - fi -fi - -dnl -- Try termlib. -if test "x$TERMLIBS" = x; then - if test $have_termlib = yes; then - TERMLIBS="-lcurses -ltermlib" - SAVE_LIBS=$LIBS - LIBS="$LIBS $TERMLIBS" - AC_TRY_LINK(, [tgetent(0,0); tgetflag(0); tgetnum(0); tgetstr(0,0);], - [termok=yes], [termok=no]) - LIBS=$SAVE_LIBS - if test $termok = no; then TERMLIBS=""; fi - fi -fi - -if test "x$TERMLIBS" = x; then - AC_MSG_RESULT(Cannot find terminal libraries - configure failed) - exit 1 -fi -AC_MSG_RESULT(using $TERMLIBS) -LIBS="$LIBS $TERMLIBS" - - -dnl Checks for header files. -AC_CHECK_HEADERS(ctype.h errno.h fcntl.h limits.h stdio.h stdlib.h string.h termcap.h termio.h termios.h time.h unistd.h values.h sys/ioctl.h sys/stream.h sys/ptem.h) - -dnl Checks for identifiers. -AC_TYPE_OFF_T -AC_MSG_CHECKING(for void) -AC_TRY_COMPILE(, [void *foo = 0;], - [AC_MSG_RESULT(yes); AC_DEFINE(HAVE_VOID)], [AC_MSG_RESULT(no)]) -AC_MSG_CHECKING(for const) -AC_TRY_COMPILE(, [const int foo = 0;], - [AC_MSG_RESULT(yes); AC_DEFINE(HAVE_CONST)], [AC_MSG_RESULT(no)]) -AC_MSG_CHECKING(for time_t) -AC_TRY_COMPILE([#include ], [time_t t = 0;], - [AC_MSG_RESULT(yes); AC_DEFINE(HAVE_TIME_T)], [AC_MSG_RESULT(no)]) - -dnl Checks for functions and external variables. -AC_TYPE_SIGNAL -AC_CHECK_FUNCS(fsync memcpy popen _setjmp sigprocmask sigsetmask stat strchr strstr system) - -dnl Some systems have termios.h but not the corresponding functions. -AC_CHECK_FUNC(tcgetattr, AC_DEFINE(HAVE_TERMIOS_FUNCS)) - -AC_MSG_CHECKING(for fileno) -AC_TRY_LINK([ -#if HAVE_STDIO_H -#include -#endif], [static int x; x = fileno(stdin);], - [AC_MSG_RESULT(yes); AC_DEFINE(HAVE_FILENO)], [AC_MSG_RESULT(no)]) - -AC_MSG_CHECKING(for strerror) -AC_TRY_LINK([ -#if HAVE_STDIO_H -#include -#endif -#if HAVE_STRING_H -#include -#endif -#if HAVE_ERRNO_H -#include -#endif], [static char *x; x = strerror(0);], - [AC_MSG_RESULT(yes); AC_DEFINE(HAVE_STRERROR)], [AC_MSG_RESULT(no)]) - -AC_MSG_CHECKING(for sys_errlist) -AC_TRY_LINK(, [extern char *sys_errlist[]; static char **x; x = sys_errlist;], - [AC_MSG_RESULT(yes); AC_DEFINE(HAVE_SYS_ERRLIST)], [AC_MSG_RESULT(no)]) - -AC_MSG_CHECKING(for sigset_t) -AC_TRY_LINK([ -#include -], [sigset_t s; s = 0;], - [AC_MSG_RESULT(yes); AC_DEFINE(HAVE_SIGSET_T)], [AC_MSG_RESULT(no)]) - -AC_MSG_CHECKING(for sigemptyset) -AC_TRY_LINK([ -#include -], [sigset_t s; sigemptyset(&s);], - [AC_MSG_RESULT(yes); AC_DEFINE(HAVE_SIGEMPTYSET)], [AC_MSG_RESULT(no)]) - -have_errno=no -AC_MSG_CHECKING(for errno) -AC_TRY_LINK([ -#if HAVE_ERRNO_H -#include -#endif], [static int x; x = errno;], - [AC_MSG_RESULT(yes - in errno.h); AC_DEFINE(HAVE_ERRNO) have_errno=yes]) -if test $have_errno = no; then -AC_TRY_LINK([ -#if HAVE_ERRNO_H -#include -#endif], [extern int errno; static int x; x = errno;], - [AC_MSG_RESULT(yes - must define); AC_DEFINE(HAVE_ERRNO) AC_DEFINE(MUST_DEFINE_ERRNO)], - [AC_MSG_RESULT(no)]) -fi - -AC_MSG_CHECKING(for locale) -AC_TRY_LINK([#include -#include ], [setlocale(LC_CTYPE,""); isprint(0); iscntrl(0);], - [AC_MSG_RESULT(yes); AC_DEFINE(HAVE_LOCALE)], [AC_MSG_RESULT(no)]) -AC_MSG_CHECKING(for ctype functions) -AC_TRY_LINK([ -#if HAVE_CTYPE_H -#include -#endif], [static int x; x = isupper(x); x = tolower(x); x = toupper(x);], - [AC_MSG_RESULT(yes); AC_DEFINE(HAVE_UPPER_LOWER)], [AC_MSG_RESULT(no)]) - -dnl Checks for external variable ospeed in the termcap library. -have_ospeed=no -AC_MSG_CHECKING(termcap for ospeed) -AC_TRY_LINK([ -#include -#if HAVE_TERMIOS_H -#include -#endif -#if HAVE_TERMCAP_H -#include -#endif], [ospeed = 0;], -[AC_MSG_RESULT(yes - in termcap.h); AC_DEFINE(HAVE_OSPEED) have_ospeed=yes]) -if test $have_ospeed = no; then -AC_TRY_LINK(, [extern short ospeed; ospeed = 0;], - [AC_MSG_RESULT(yes - must define); AC_DEFINE(HAVE_OSPEED) AC_DEFINE(MUST_DEFINE_OSPEED)], - [AC_MSG_RESULT(no)]) -fi - -dnl Checks for regular expression functions. -have_regex=no -have_posix_regex=unknown -AC_MSG_CHECKING(for regcomp) - -WANT_REGEX=auto -AC_ARG_WITH(regex, - [ --with-regex={auto,pcre,posix,regcmp,re_comp,regcomp,regcomp-local} Select a regular expression library [auto]], - WANT_REGEX="$withval") - -if test $have_regex = no; then -if test $WANT_REGEX = auto -o $WANT_REGEX = posix; then -dnl Some versions of Solaris have a regcomp() function, but it doesn't work! -dnl So we run a test program. If we're cross-compiling, do it the old way. -AC_TRY_RUN([ -#include -#include -main() { regex_t r; regmatch_t rm; char *text = "xabcy"; -if (regcomp(&r, "abc", 0)) exit(1); -if (regexec(&r, text, 1, &rm, 0)) exit(1); -#ifndef __WATCOMC__ -if (rm.rm_so != 1) exit(1); /* check for correct offset */ -#else -if (rm.rm_sp != text + 1) exit(1); /* check for correct offset */ -#endif -exit(0); }], - have_posix_regex=yes, have_posix_regex=no, have_posix_regex=unknown) -if test $have_posix_regex = yes; then - AC_MSG_RESULT(using POSIX regcomp) - AC_DEFINE(HAVE_POSIX_REGCOMP) - have_regex=yes -elif test $have_posix_regex = unknown; then - AC_TRY_LINK([ -#include -#include ], - [regex_t *r; regfree(r);], - AC_MSG_RESULT(using POSIX regcomp) - AC_DEFINE(HAVE_POSIX_REGCOMP) have_regex=yes) -else - AC_MSG_RESULT(no) -fi -fi -fi - -if test $have_regex = no; then -if test $WANT_REGEX = auto -o $WANT_REGEX = pcre; then -AC_CHECK_LIB(pcre, pcre_compile, -[AC_MSG_RESULT(using pcre); AC_DEFINE(HAVE_PCRE) LIBS="$LIBS -lpcre" have_regex=yes], []) -fi -fi - -if test $have_regex = no; then -if test $WANT_REGEX = auto -o $WANT_REGEX = regcmp; then -AC_CHECK_FUNC(regcmp, -AC_MSG_RESULT(using regcmp); AC_DEFINE(HAVE_REGCMP) have_regex=yes) -fi -fi - -if test $have_regex = no; then -if test $WANT_REGEX = auto -o $WANT_REGEX = regcomp; then -AC_TRY_LINK([ -#include "regexp.h"], [regcomp("");], -AC_MSG_RESULT(using V8 regcomp); AC_DEFINE(HAVE_V8_REGCOMP) have_regex=yes) -fi -fi - -if test $have_regex = no && test -f ${srcdir}/regexp.c; then -if test $WANT_REGEX = auto -o $WANT_REGEX = regcomp-local; then -AC_MSG_RESULT(using V8 regcomp -- local source); AC_DEFINE(HAVE_V8_REGCOMP) AC_DEFINE(HAVE_REGEXEC2) REGEX_O='regexp.$(O)' AC_SUBST(REGEX_O) have_regex=yes -fi -fi - -if test $have_regex = no; then -if test $WANT_REGEX = auto -o $WANT_REGEX = re_comp; then -AC_MSG_RESULT(using re_comp); AC_CHECK_FUNC(re_comp, AC_DEFINE(HAVE_RE_COMP) have_regex=yes) -fi -fi - -if test $have_regex = no; then -AC_MSG_RESULT(cannot find regular expression library); AC_DEFINE(NO_REGEX) -fi - -AC_ARG_WITH(editor, - [ --with-editor=PROGRAM use PROGRAM as the default editor [vi]], - AC_DEFINE_UNQUOTED(EDIT_PGM, "$withval")) - -AC_OUTPUT(Makefile) diff --git a/contrib/less/defines.h.top b/contrib/less/defines.h.top deleted file mode 100644 index 11b32df87f2e..000000000000 --- a/contrib/less/defines.h.top +++ /dev/null @@ -1,173 +0,0 @@ -/* Unix definition file for less. -*- C -*- - * - * This file has 3 sections: - * User preferences. - * Settings always true on Unix. - * Settings automatically determined by configure. - * - * * * * * * WARNING * * * * * * - * If you edit defines.h by hand, do "touch stamp-h" before you run make - * so config.status doesn't overwrite your changes. - */ - -/* User preferences. */ - -/* - * SECURE is 1 if you wish to disable a bunch of features in order to - * be safe to run by unprivileged users. - */ -#define SECURE 0 - -/* - * SHELL_ESCAPE is 1 if you wish to allow shell escapes. - * (This is possible only if your system supplies the system() function.) - */ -#define SHELL_ESCAPE (!SECURE) - -/* - * EXAMINE is 1 if you wish to allow examining files by name from within less. - */ -#define EXAMINE (!SECURE) - -/* - * TAB_COMPLETE_FILENAME is 1 if you wish to allow the TAB key - * to complete filenames at prompts. - */ -#define TAB_COMPLETE_FILENAME (!SECURE) - -/* - * CMD_HISTORY is 1 if you wish to allow keys to cycle through - * previous commands at prompts. - */ -#define CMD_HISTORY 1 - -/* - * HILITE_SEARCH is 1 if you wish to have search targets to be - * displayed in standout mode. - */ -#define HILITE_SEARCH 1 - -/* - * EDITOR is 1 if you wish to allow editor invocation (the "v" command). - * (This is possible only if your system supplies the system() function.) - * EDIT_PGM is the name of the (default) editor to be invoked. - */ -#define EDITOR (!SECURE) - -/* - * TAGS is 1 if you wish to support tag files. - */ -#define TAGS (!SECURE) - -/* - * USERFILE is 1 if you wish to allow a .less file to specify - * user-defined key bindings. - */ -#define USERFILE (!SECURE) - -/* - * GLOB is 1 if you wish to have shell metacharacters expanded in filenames. - * This will generally work if your system provides the "popen" function - * and the "echo" shell command. - */ -#define GLOB (!SECURE) - -/* - * PIPEC is 1 if you wish to have the "|" command - * which allows the user to pipe data into a shell command. - */ -#define PIPEC (!SECURE) - -/* - * LOGFILE is 1 if you wish to allow the -l option (to create log files). - */ -#define LOGFILE (!SECURE) - -/* - * GNU_OPTIONS is 1 if you wish to support the GNU-style command - * line options --help and --version. - */ -#define GNU_OPTIONS 1 - -/* - * ONLY_RETURN is 1 if you want RETURN to be the only input which - * will continue past an error message. - * Otherwise, any key will continue past an error message. - */ -#define ONLY_RETURN 0 - -/* - * LESSKEYFILE is the filename of the default lesskey output file - * (in the HOME directory). - * LESSKEYFILE_SYS is the filename of the system-wide lesskey output file. - * DEF_LESSKEYINFILE is the filename of the default lesskey input - * (in the HOME directory). - */ -#define LESSKEYFILE ".less" -#define LESSKEYFILE_SYS SYSDIR "/sysless" -#define DEF_LESSKEYINFILE ".lesskey" - - -/* Settings always true on Unix. */ - -/* - * Define MSDOS_COMPILER if compiling under Microsoft C. - */ -#define MSDOS_COMPILER 0 - -/* - * Pathname separator character. - */ -#define PATHNAME_SEP "/" - -/* - * HAVE_SYS_TYPES_H is 1 if your system has . - */ -#define HAVE_SYS_TYPES_H 1 - -/* - * Define if you have the header file. - */ -#undef HAVE_SGSTAT_H - -/* - * HAVE_PERROR is 1 if your system has the perror() call. - * (Actually, if it has sys_errlist, sys_nerr and errno.) - */ -#define HAVE_PERROR 1 - -/* - * HAVE_TIME is 1 if your system has the time() call. - */ -#define HAVE_TIME 1 - -/* - * HAVE_SHELL is 1 if your system supports a SHELL command interpreter. - */ -#define HAVE_SHELL 1 - -/* - * Default shell metacharacters and meta-escape character. - */ -#define DEF_METACHARS "; \t\n'\"()<>|&^`\\" -#define DEF_METAESCAPE "\\" - -/* - * HAVE_DUP is 1 if your system has the dup() call. - */ -#define HAVE_DUP 1 - -/* - * Sizes of various buffers. - */ -#define CMDBUF_SIZE 512 /* Buffer for multichar commands */ -#define UNGOT_SIZE 100 /* Max chars to unget() */ -#define LINEBUF_SIZE 1024 /* Max size of line in input file */ -#define OUTBUF_SIZE 1024 /* Output buffer */ -#define PROMPT_SIZE 200 /* Max size of prompt string */ -#define TERMBUF_SIZE 2048 /* Termcap buffer for tgetent */ -#define TERMSBUF_SIZE 1024 /* Buffer to hold termcap strings */ -#define TAGLINE_SIZE 512 /* Max size of line in tags file */ -#define TABSTOP_MAX 32 /* Max number of custom tab stops */ - -/* Settings automatically determined by configure. */