Initial import from FreeBSD RELENG_4:
[dragonfly.git] / usr.bin / less / defines.h
1 /* $FreeBSD: src/usr.bin/less/defines.h,v 1.1.2.2 2000/07/19 09:24:25 ps Exp $ */
2 /* defines.h.  Generated automatically by configure.  */
3 /* defines.h.in.  Generated automatically from configure.in by autoheader.  */
4 /* Unix definition file for less.  -*- C -*-
5  *
6  * This file has 3 sections:
7  * User preferences.
8  * Settings always true on Unix.
9  * Settings automatically determined by configure.
10  *
11  * * * * * *  WARNING  * * * * * *
12  * If you edit defines.h by hand, do "touch stamp-h" before you run make
13  * so config.status doesn't overwrite your changes.
14  */
15 \f
16 /* User preferences.  */
17
18 /*
19  * SECURE is 1 if you wish to disable a bunch of features in order to
20  * be safe to run by unprivileged users.
21  */
22 #define SECURE          0
23
24 /*
25  * SHELL_ESCAPE is 1 if you wish to allow shell escapes.
26  * (This is possible only if your system supplies the system() function.)
27  */
28 #define SHELL_ESCAPE    (!SECURE)
29
30 /*
31  * EXAMINE is 1 if you wish to allow examining files by name from within less.
32  */
33 #define EXAMINE         (!SECURE)
34
35 /*
36  * TAB_COMPLETE_FILENAME is 1 if you wish to allow the TAB key
37  * to complete filenames at prompts.
38  */
39 #define TAB_COMPLETE_FILENAME   (!SECURE)
40
41 /*
42  * CMD_HISTORY is 1 if you wish to allow keys to cycle through
43  * previous commands at prompts.
44  */
45 #define CMD_HISTORY     1
46
47 /*
48  * HILITE_SEARCH is 1 if you wish to have search targets to be 
49  * displayed in standout mode.
50  */
51 #define HILITE_SEARCH   1
52
53 /*
54  * EDITOR is 1 if you wish to allow editor invocation (the "v" command).
55  * (This is possible only if your system supplies the system() function.)
56  * EDIT_PGM is the name of the (default) editor to be invoked.
57  */
58 #define EDITOR          (!SECURE)
59
60 /*
61  * TAGS is 1 if you wish to support tag files.
62  */
63 #define TAGS            (!SECURE)
64
65 /*
66  * USERFILE is 1 if you wish to allow a .less file to specify 
67  * user-defined key bindings.
68  */
69 #define USERFILE        (!SECURE)
70
71 /*
72  * GLOB is 1 if you wish to have shell metacharacters expanded in filenames.
73  * This will generally work if your system provides the "popen" function
74  * and the "echo" shell command.
75  */
76 #define GLOB            (!SECURE)
77
78 /*
79  * PIPEC is 1 if you wish to have the "|" command
80  * which allows the user to pipe data into a shell command.
81  */
82 #define PIPEC           (!SECURE)
83
84 /*
85  * LOGFILE is 1 if you wish to allow the -l option (to create log files).
86  */
87 #define LOGFILE         (!SECURE)
88
89 /*
90  * GNU_OPTIONS is 1 if you wish to support the GNU-style command
91  * line options --help and --version.
92  */
93 #define GNU_OPTIONS     1
94
95 /*
96  * ONLY_RETURN is 1 if you want RETURN to be the only input which
97  * will continue past an error message.
98  * Otherwise, any key will continue past an error message.
99  */
100 #define ONLY_RETURN     0
101
102 /*
103  * LESSKEYFILE is the filename of the default lesskey output file 
104  * (in the HOME directory).
105  * LESSKEYFILE_SYS is the filename of the system-wide lesskey output file.
106  * DEF_LESSKEYINFILE is the filename of the default lesskey input 
107  * (in the HOME directory).
108  */
109 #define LESSKEYFILE             ".less"
110 #define LESSKEYFILE_SYS         "/etc/lesskey"
111 #define DEF_LESSKEYINFILE       ".lesskey"
112
113 \f
114 /* Settings always true on Unix.  */
115
116 /*
117  * Define MSDOS_COMPILER if compiling under Microsoft C.
118  */
119 #define MSDOS_COMPILER  0
120
121 /*
122  * Pathname separator character.
123  */
124 #define PATHNAME_SEP    "/"
125
126 /*
127  * HAVE_SYS_TYPES_H is 1 if your system has <sys/types.h>.
128  */
129 #define HAVE_SYS_TYPES_H        1
130
131 /*
132  * Define if you have the <sgstat.h> header file.
133  */
134 /* #undef HAVE_SGSTAT_H */
135
136 /*
137  * HAVE_PERROR is 1 if your system has the perror() call.
138  * (Actually, if it has sys_errlist, sys_nerr and errno.)
139  */
140 #define HAVE_PERROR     1
141
142 /*
143  * HAVE_TIME is 1 if your system has the time() call.
144  */
145 #define HAVE_TIME       1
146
147 /*
148  * HAVE_SHELL is 1 if your system supports a SHELL command interpreter.
149  */
150 #define HAVE_SHELL      1
151
152 /*
153  * Default shell metacharacters and meta-escape character.
154  */
155 #define DEF_METACHARS   "; \t\n'\"()<>|&^`\\"
156 #define DEF_METAESCAPE  "\\"
157
158 /* 
159  * HAVE_DUP is 1 if your system has the dup() call.
160  */
161 #define HAVE_DUP        1
162
163 /*
164  * Sizes of various buffers.
165  */
166 #define CMDBUF_SIZE     512     /* Buffer for multichar commands */
167 #define UNGOT_SIZE      100     /* Max chars to unget() */
168 #define LINEBUF_SIZE    1024    /* Max size of line in input file */
169 #define OUTBUF_SIZE     1024    /* Output buffer */
170 #define PROMPT_SIZE     200     /* Max size of prompt string */
171 #define TERMBUF_SIZE    2048    /* Termcap buffer for tgetent */
172 #define TERMSBUF_SIZE   1024    /* Buffer to hold termcap strings */
173 #define TAGLINE_SIZE    512     /* Max size of line in tags file */
174 \f
175 /* Settings automatically determined by configure.  */
176
177 /* Define to `long' if <sys/types.h> doesn't define.  */
178 /* #undef off_t */
179
180 /* Define if you need to in order for stat and other things to work.  */
181 /* #undef _POSIX_SOURCE */
182
183 /* Define as the return type of signal handlers (int or void).  */
184 #define RETSIGTYPE void
185
186 /* Define if you have the ANSI C header files.  */
187 #define STDC_HEADERS 1
188
189 /*
190  * Regular expression library.
191  * Define exactly one of the following to be 1:
192  * HAVE_POSIX_REGCOMP: POSIX regcomp() and regex.h
193  * HAVE_PCRE: PCRE (Perl-compatible regular expression) library
194  * HAVE_RE_COMP: BSD re_comp()
195  * HAVE_REGCMP: System V regcmp()
196  * HAVE_V8_REGCOMP: Henry Spencer V8 regcomp() and regexp.h
197  * NO_REGEX: pattern matching is supported, but without metacharacters.
198  */
199 #define HAVE_POSIX_REGCOMP 1
200 /* #undef HAVE_PCRE */
201 /* #undef HAVE_RE_COMP */
202 /* #undef HAVE_REGCMP */
203 /* #undef HAVE_V8_REGCOMP */
204 /* #undef NO_REGEX */
205 /* #undef HAVE_REGEXEC2 */
206
207 /* Define HAVE_VOID if your compiler supports the "void" type. */
208 #define HAVE_VOID 1
209
210 /* Define HAVE_CONST if your compiler supports the "const" modifier. */
211 #define HAVE_CONST 1
212
213 /* Define HAVE_TIME_T if your system supports the "time_t" type. */
214 #define HAVE_TIME_T 1
215
216 /* Define HAVE_STRERROR if you have the strerror() function. */
217 #define HAVE_STRERROR 1
218
219 /* Define HAVE_FILENO if you have the fileno() macro. */
220 #define HAVE_FILENO 1
221
222 /* Define HAVE_ERRNO if you have the errno variable */
223 /* Define MUST_DEFINE_ERRNO if you have errno but it is not define 
224  * in errno.h */
225 #define HAVE_ERRNO 1
226 /* #undef MUST_DEFINE_ERRNO */
227
228 /* Define HAVE_SYS_ERRLIST if you have the sys_errlist[] variable */
229 #define HAVE_SYS_ERRLIST 1
230
231 /* Define HAVE_OSPEED if your termcap library has the ospeed variable */
232 /* Define MUST_DEFINE_OSPEED if you have ospeed but it is not defined
233  * in termcap.h. */
234 #define HAVE_OSPEED 1
235 /* #undef MUST_DEFINE_OSPEED */
236
237 /* Define HAVE_LOCALE if you have locale.h and setlocale. */
238 #define HAVE_LOCALE 1
239
240 /* Define HAVE_TERMIOS_FUNCS if you have tcgetattr/tcsetattr */
241 #define HAVE_TERMIOS_FUNCS 1
242
243 /* Define HAVE_UPPER_LOWER if you have isupper, islower, toupper, tolower */
244 #define HAVE_UPPER_LOWER 1
245
246 /* Define HAVE_SIGSET_T you have the sigset_t type */
247 /* #undef HAVE_SIGSET_T */
248
249 /* Define HAVE_SIGEMPTYSET if you have the sigemptyset macro */
250 #define HAVE_SIGEMPTYSET 1
251
252 /* Define EDIT_PGM to your editor. */
253 #define EDIT_PGM "vi"
254
255 /* Define if you have the _setjmp function.  */
256 #define HAVE__SETJMP 1
257
258 /* Define if you have the memcpy function.  */
259 #define HAVE_MEMCPY 1
260
261 /* Define if you have the popen function.  */
262 #define HAVE_POPEN 1
263
264 /* Define if you have the sigprocmask function.  */
265 #define HAVE_SIGPROCMASK 1
266
267 /* Define if you have the sigsetmask function.  */
268 #define HAVE_SIGSETMASK 1
269
270 /* Define if you have the stat function.  */
271 #define HAVE_STAT 1
272
273 /* Define if you have the strchr function.  */
274 #define HAVE_STRCHR 1
275
276 /* Define if you have the strstr function.  */
277 #define HAVE_STRSTR 1
278
279 /* Define if you have the system function.  */
280 #define HAVE_SYSTEM 1
281
282 /* Define if you have the <ctype.h> header file.  */
283 #define HAVE_CTYPE_H 1
284
285 /* Define if you have the <errno.h> header file.  */
286 #define HAVE_ERRNO_H 1
287
288 /* Define if you have the <fcntl.h> header file.  */
289 #define HAVE_FCNTL_H 1
290
291 /* Define if you have the <limits.h> header file.  */
292 #define HAVE_LIMITS_H 1
293
294 /* Define if you have the <stdio.h> header file.  */
295 #define HAVE_STDIO_H 1
296
297 /* Define if you have the <stdlib.h> header file.  */
298 #define HAVE_STDLIB_H 1
299
300 /* Define if you have the <string.h> header file.  */
301 #define HAVE_STRING_H 1
302
303 /* Define if you have the <sys/ioctl.h> header file.  */
304 #define HAVE_SYS_IOCTL_H 1
305
306 /* Define if you have the <sys/ptem.h> header file.  */
307 /* #undef HAVE_SYS_PTEM_H */
308
309 /* Define if you have the <sys/stream.h> header file.  */
310 /* #undef HAVE_SYS_STREAM_H */
311
312 /* Define if you have the <termcap.h> header file.  */
313 #define HAVE_TERMCAP_H 1
314
315 /* Define if you have the <termio.h> header file.  */
316 /* #undef HAVE_TERMIO_H */
317
318 /* Define if you have the <termios.h> header file.  */
319 #define HAVE_TERMIOS_H 1
320
321 /* Define if you have the <time.h> header file.  */
322 #define HAVE_TIME_H 1
323
324 /* Define if you have the <unistd.h> header file.  */
325 #define HAVE_UNISTD_H 1
326
327 /* Define if you have the <values.h> header file.  */
328 /* #undef HAVE_VALUES_H */
329
330 /* Define if you have the PW library (-lPW).  */
331 /* #undef HAVE_LIBPW */
332
333 /* Define if you have the gen library (-lgen).  */
334 /* #undef HAVE_LIBGEN */
335
336 /* Define if you have the intl library (-lintl).  */
337 /* #undef HAVE_LIBINTL */