1
/* defines.h.in. Generated automatically from configure.in by autoheader. */
2
/* Unix definition file for less. -*- C -*-
4
* This file has 3 sections:
6
* Settings always true on Unix.
7
* Settings automatically determined by configure.
9
* * * * * * WARNING * * * * * *
10
* If you edit defines.h by hand, do "touch stamp-h" before you run make
11
* so config.status doesn't overwrite your changes.
14
/* User preferences. */
17
* SECURE is 1 if you wish to disable a bunch of features in order to
18
* be safe to run by unprivileged users.
23
* SHELL_ESCAPE is 1 if you wish to allow shell escapes.
24
* (This is possible only if your system supplies the system() function.)
26
#define SHELL_ESCAPE (!SECURE)
29
* EXAMINE is 1 if you wish to allow examining files by name from within less.
31
#define EXAMINE (!SECURE)
34
* TAB_COMPLETE_FILENAME is 1 if you wish to allow the TAB key
35
* to complete filenames at prompts.
37
#define TAB_COMPLETE_FILENAME (!SECURE)
40
* CMD_HISTORY is 1 if you wish to allow keys to cycle through
41
* previous commands at prompts.
46
* HILITE_SEARCH is 1 if you wish to have search targets to be
47
* displayed in standout mode.
49
#define HILITE_SEARCH 1
52
* EDITOR is 1 if you wish to allow editor invocation (the "v" command).
53
* (This is possible only if your system supplies the system() function.)
54
* EDIT_PGM is the name of the (default) editor to be invoked.
56
#define EDITOR (!SECURE)
59
* TAGS is 1 if you wish to support tag files.
61
#define TAGS (!SECURE)
64
* USERFILE is 1 if you wish to allow a .less file to specify
65
* user-defined key bindings.
67
#define USERFILE (!SECURE)
70
* GLOB is 1 if you wish to have shell metacharacters expanded in filenames.
71
* This will generally work if your system provides the "popen" function
72
* and the "echo" shell command.
74
#define GLOB (!SECURE)
77
* PIPEC is 1 if you wish to have the "|" command
78
* which allows the user to pipe data into a shell command.
80
#define PIPEC (!SECURE)
83
* LOGFILE is 1 if you wish to allow the -l option (to create log files).
85
#define LOGFILE (!SECURE)
88
* GNU_OPTIONS is 1 if you wish to support the GNU-style command
89
* line options --help and --version.
94
* ONLY_RETURN is 1 if you want RETURN to be the only input which
95
* will continue past an error message.
96
* Otherwise, any key will continue past an error message.
101
* LESSKEYFILE is the filename of the default lesskey output file
102
* (in the HOME directory).
103
* LESSKEYFILE_SYS is the filename of the system-wide lesskey output file.
104
* DEF_LESSKEYINFILE is the filename of the default lesskey input
105
* (in the HOME directory).
107
#define LESSKEYFILE ".less"
108
#define LESSKEYFILE_SYS SYSDIR "/sysless"
109
#define DEF_LESSKEYINFILE ".lesskey"
112
/* Settings always true on Unix. */
115
* Define MSDOS_COMPILER if compiling under Microsoft C.
117
#define MSDOS_COMPILER 0
120
* Pathname separator character.
122
#define PATHNAME_SEP "/"
125
* HAVE_SYS_TYPES_H is 1 if your system has <sys/types.h>.
127
#define HAVE_SYS_TYPES_H 1
130
* Define if you have the <sgstat.h> header file.
135
* HAVE_PERROR is 1 if your system has the perror() call.
136
* (Actually, if it has sys_errlist, sys_nerr and errno.)
138
#define HAVE_PERROR 1
141
* HAVE_TIME is 1 if your system has the time() call.
146
* HAVE_SHELL is 1 if your system supports a SHELL command interpreter.
151
* Default shell metacharacters and meta-escape character.
153
#define DEF_METACHARS "; *?\t\n'\"()<>|&^`#\\"
154
#define DEF_METAESCAPE "\\"
157
* HAVE_DUP is 1 if your system has the dup() call.
162
* Sizes of various buffers.
164
#define CMDBUF_SIZE 512 /* Buffer for multichar commands */
165
#define UNGOT_SIZE 100 /* Max chars to unget() */
166
#define LINEBUF_SIZE 1024 /* Max size of line in input file */
167
#define OUTBUF_SIZE 1024 /* Output buffer */
168
#define PROMPT_SIZE 200 /* Max size of prompt string */
169
#define TERMBUF_SIZE 2048 /* Termcap buffer for tgetent */
170
#define TERMSBUF_SIZE 1024 /* Buffer to hold termcap strings */
171
#define TAGLINE_SIZE 512 /* Max size of line in tags file */
172
#define TABSTOP_MAX 32 /* Max number of custom tab stops */
174
/* Settings automatically determined by configure. */
176
/* Define to `long' if <sys/types.h> doesn't define. */
179
/* Define if you need to in order for stat and other things to work. */
182
/* Define as the return type of signal handlers (int or void). */
185
/* Define if you have the ANSI C header files. */
189
* Regular expression library.
190
* Define exactly one of the following to be 1:
191
* HAVE_POSIX_REGCOMP: POSIX regcomp() and regex.h
192
* HAVE_PCRE: PCRE (Perl-compatible regular expression) library
193
* HAVE_RE_COMP: BSD re_comp()
194
* HAVE_REGCMP: System V regcmp()
195
* HAVE_V8_REGCOMP: Henry Spencer V8 regcomp() and regexp.h
196
* NO_REGEX: pattern matching is supported, but without metacharacters.
198
#undef HAVE_POSIX_REGCOMP
202
#undef HAVE_V8_REGCOMP
206
/* Define HAVE_VOID if your compiler supports the "void" type. */
209
/* Define HAVE_CONST if your compiler supports the "const" modifier. */
212
/* Define HAVE_TIME_T if your system supports the "time_t" type. */
215
/* Define HAVE_STRERROR if you have the strerror() function. */
218
/* Define HAVE_FILENO if you have the fileno() macro. */
221
/* Define HAVE_ERRNO if you have the errno variable */
222
/* Define MUST_DEFINE_ERRNO if you have errno but it is not define
225
#undef MUST_DEFINE_ERRNO
227
/* Define HAVE_SYS_ERRLIST if you have the sys_errlist[] variable */
228
#undef HAVE_SYS_ERRLIST
230
/* Define HAVE_OSPEED if your termcap library has the ospeed variable */
231
/* Define MUST_DEFINE_OSPEED if you have ospeed but it is not defined
234
#undef MUST_DEFINE_OSPEED
236
/* Define HAVE_LOCALE if you have locale.h and setlocale. */
239
/* Define HAVE_TERMIOS_FUNCS if you have tcgetattr/tcsetattr */
240
#undef HAVE_TERMIOS_FUNCS
242
/* Define HAVE_UPPER_LOWER if you have isupper, islower, toupper, tolower */
243
#undef HAVE_UPPER_LOWER
245
/* Define HAVE_SIGSET_T you have the sigset_t type */
248
/* Define HAVE_SIGEMPTYSET if you have the sigemptyset macro */
249
#undef HAVE_SIGEMPTYSET
251
/* Define EDIT_PGM to your editor. */
252
#define EDIT_PGM "vi"
254
/* Define if you have the _setjmp function. */
257
/* Define if you have the fsync function. */
260
/* Define if you have the memcpy function. */
263
/* Define if you have the popen function. */
266
/* Define if you have the sigprocmask function. */
267
#undef HAVE_SIGPROCMASK
269
/* Define if you have the sigsetmask function. */
270
#undef HAVE_SIGSETMASK
272
/* Define if you have the stat function. */
275
/* Define if you have the strchr function. */
278
/* Define if you have the strstr function. */
281
/* Define if you have the system function. */
284
/* Define if you have the <ctype.h> header file. */
287
/* Define if you have the <errno.h> header file. */
290
/* Define if you have the <fcntl.h> header file. */
293
/* Define if you have the <limits.h> header file. */
296
/* Define if you have the <stdio.h> header file. */
299
/* Define if you have the <stdlib.h> header file. */
302
/* Define if you have the <string.h> header file. */
305
/* Define if you have the <sys/ioctl.h> header file. */
306
#undef HAVE_SYS_IOCTL_H
308
/* Define if you have the <sys/ptem.h> header file. */
309
#undef HAVE_SYS_PTEM_H
311
/* Define if you have the <sys/stream.h> header file. */
312
#undef HAVE_SYS_STREAM_H
314
/* Define if you have the <termcap.h> header file. */
315
#undef HAVE_TERMCAP_H
317
/* Define if you have the <termio.h> header file. */
320
/* Define if you have the <termios.h> header file. */
321
#undef HAVE_TERMIOS_H
323
/* Define if you have the <time.h> header file. */
326
/* Define if you have the <unistd.h> header file. */
329
/* Define if you have the <values.h> header file. */
332
/* Define if you have the PW library (-lPW). */
335
/* Define if you have the gen library (-lgen). */
338
/* Define if you have the intl library (-lintl). */