1 /* $NetBSD: defines.h,v 1.3 2013/09/04 19:44:21 tron Exp $ */
3 /* defines.h. Generated from defines.h.in by configure. */
4 /* defines.h.in. Generated from configure.ac by autoheader. */
7 /* Unix definition file for less. -*- C -*-
9 * This file has 3 sections:
11 * Settings always true on Unix.
12 * Settings automatically determined by configure.
14 * * * * * * WARNING * * * * * *
15 * If you edit defines.h by hand, do "touch stamp-h" before you run make
16 * so config.status doesn't overwrite your changes.
19 /* User preferences. */
22 * SECURE is 1 if you wish to disable a bunch of features in order to
23 * be safe to run by unprivileged users.
24 * SECURE_COMPILE is set by the --with-secure configure option.
26 #define SECURE SECURE_COMPILE
29 * SHELL_ESCAPE is 1 if you wish to allow shell escapes.
30 * (This is possible only if your system supplies the system() function.)
32 #define SHELL_ESCAPE (!SECURE)
35 * EXAMINE is 1 if you wish to allow examining files by name from within less.
37 #define EXAMINE (!SECURE)
40 * TAB_COMPLETE_FILENAME is 1 if you wish to allow the TAB key
41 * to complete filenames at prompts.
43 #define TAB_COMPLETE_FILENAME (!SECURE)
46 * CMD_HISTORY is 1 if you wish to allow keys to cycle through
47 * previous commands at prompts.
52 * HILITE_SEARCH is 1 if you wish to have search targets to be
53 * displayed in standout mode.
55 #define HILITE_SEARCH 1
58 * EDITOR is 1 if you wish to allow editor invocation (the "v" command).
59 * (This is possible only if your system supplies the system() function.)
60 * EDIT_PGM is the name of the (default) editor to be invoked.
62 #define EDITOR (!SECURE)
65 * TAGS is 1 if you wish to support tag files.
67 #define TAGS (!SECURE)
70 * USERFILE is 1 if you wish to allow a .less file to specify
71 * user-defined key bindings.
73 #define USERFILE (!SECURE)
76 * GLOB is 1 if you wish to have shell metacharacters expanded in filenames.
77 * This will generally work if your system provides the "popen" function
78 * and the "echo" shell command.
80 #define GLOB (!SECURE)
83 * PIPEC is 1 if you wish to have the "|" command
84 * which allows the user to pipe data into a shell command.
86 #define PIPEC (!SECURE)
89 * LOGFILE is 1 if you wish to allow the -l option (to create log files).
91 #define LOGFILE (!SECURE)
94 * GNU_OPTIONS is 1 if you wish to support the GNU-style command
95 * line options --help and --version.
100 * ONLY_RETURN is 1 if you want RETURN to be the only input which
101 * will continue past an error message.
102 * Otherwise, any key will continue past an error message.
104 #define ONLY_RETURN 0
107 * LESSKEYFILE is the filename of the default lesskey output file
108 * (in the HOME directory).
109 * LESSKEYFILE_SYS is the filename of the system-wide lesskey output file.
110 * DEF_LESSKEYINFILE is the filename of the default lesskey input
111 * (in the HOME directory).
112 * LESSHISTFILE is the filename of the history file
113 * (in the HOME directory).
115 #define LESSKEYFILE ".less"
116 #define LESSKEYFILE_SYS SYSDIR "/sysless"
117 #define DEF_LESSKEYINFILE ".lesskey"
118 #define LESSHISTFILE ".lesshst"
121 /* Settings always true on Unix. */
124 * Define MSDOS_COMPILER if compiling under Microsoft C.
126 #define MSDOS_COMPILER 0
129 * Pathname separator character.
131 #define PATHNAME_SEP "/"
134 * The value returned from tgetent on success.
135 * Some HP-UX systems return 0 on success.
140 * HAVE_SYS_TYPES_H is 1 if your system has <sys/types.h>.
142 #define HAVE_SYS_TYPES_H 1
145 * Define if you have the <sgstat.h> header file.
147 /* #undef HAVE_SGSTAT_H */
150 * HAVE_PERROR is 1 if your system has the perror() call.
151 * (Actually, if it has sys_errlist, sys_nerr and errno.)
153 #define HAVE_PERROR 1
156 * HAVE_TIME is 1 if your system has the time() call.
161 * HAVE_SHELL is 1 if your system supports a SHELL command interpreter.
166 * Default shell metacharacters and meta-escape character.
168 #define DEF_METACHARS "; *?\t\n'\"()<>[]|&^`#\\$%=~"
169 #define DEF_METAESCAPE "\\"
172 * HAVE_DUP is 1 if your system has the dup() call.
176 /* Define to 1 if you have the memcpy() function. */
177 #define HAVE_MEMCPY 1
179 /* Define to 1 if you have the strchr() function. */
180 #define HAVE_STRCHR 1
182 /* Define to 1 if you have the strstr() function. */
183 #define HAVE_STRSTR 1
186 * Sizes of various buffers.
188 #if 0 /* old sizes for small memory machines */
189 #define CMDBUF_SIZE 512 /* Buffer for multichar commands */
190 #define UNGOT_SIZE 100 /* Max chars to unget() */
191 #define LINEBUF_SIZE 1024 /* Max size of line in input file */
192 #define OUTBUF_SIZE 1024 /* Output buffer */
193 #define PROMPT_SIZE 200 /* Max size of prompt string */
194 #define TERMBUF_SIZE 2048 /* Termcap buffer for tgetent */
195 #define TERMSBUF_SIZE 1024 /* Buffer to hold termcap strings */
196 #define TAGLINE_SIZE 512 /* Max size of line in tags file */
197 #define TABSTOP_MAX 32 /* Max number of custom tab stops */
198 #else /* more reasonable sizes for modern machines */
199 #define CMDBUF_SIZE 2048 /* Buffer for multichar commands */
200 #define UNGOT_SIZE 200 /* Max chars to unget() */
201 #define LINEBUF_SIZE 1024 /* Initial max size of line in input file */
202 #define OUTBUF_SIZE 1024 /* Output buffer */
203 #define PROMPT_SIZE 2048 /* Max size of prompt string */
204 #define TERMBUF_SIZE 2048 /* Termcap buffer for tgetent */
205 #define TERMSBUF_SIZE 1024 /* Buffer to hold termcap strings */
206 #define TAGLINE_SIZE 1024 /* Max size of line in tags file */
207 #define TABSTOP_MAX 128 /* Max number of custom tab stops */
210 /* Settings automatically determined by configure. */
213 /* Define EDIT_PGM to your editor. */
214 #define EDIT_PGM "vi"
216 /* Define HAVE_CONST if your compiler supports the "const" modifier. */
219 /* Define to 1 if you have the <ctype.h> header file. */
220 #define HAVE_CTYPE_H 1
222 /* Define HAVE_ERRNO if you have the errno variable. */
225 /* Define to 1 if you have the <errno.h> header file. */
226 #define HAVE_ERRNO_H 1
228 /* Define to 1 if you have the `fchmod' function. */
229 #define HAVE_FCHMOD 1
231 /* Define to 1 if you have the <fcntl.h> header file. */
232 #define HAVE_FCNTL_H 1
234 /* Define HAVE_FILENO if you have the fileno() macro. */
235 #define HAVE_FILENO 1
237 /* Define HAVE_FLOAT if your compiler supports the "double" type. */
240 /* Define to 1 if you have the `fsync' function. */
243 /* GNU regex library */
244 /* #undef HAVE_GNU_REGEX */
246 /* Define to 1 if you have the <inttypes.h> header file. */
247 #define HAVE_INTTYPES_H 1
249 /* Define to 1 if you have the <limits.h> header file. */
250 #define HAVE_LIMITS_H 1
252 /* Define HAVE_LOCALE if you have locale.h and setlocale. */
253 #define HAVE_LOCALE 1
255 /* Define to 1 if you have the <memory.h> header file. */
256 #define HAVE_MEMORY_H 1
258 /* Define HAVE_OSPEED if your termcap library has the ospeed variable. */
259 #define HAVE_OSPEED 1
261 /* PCRE (Perl-compatible regular expression) library */
262 /* #undef HAVE_PCRE */
264 /* Define to 1 if you have the `popen' function. */
267 /* POSIX regcomp() and regex.h */
268 #define HAVE_POSIX_REGCOMP 1
270 /* System V regcmp() */
271 /* #undef HAVE_REGCMP */
274 /* #undef HAVE_REGEXEC2 */
277 /* #undef HAVE_RE_COMP */
279 /* Define HAVE_SIGEMPTYSET if you have the sigemptyset macro. */
280 #define HAVE_SIGEMPTYSET 1
282 /* Define to 1 if you have the `sigprocmask' function. */
283 #define HAVE_SIGPROCMASK 1
285 /* Define to 1 if you have the `sigsetmask' function. */
286 #define HAVE_SIGSETMASK 1
288 /* Define to 1 if the system has the type `sigset_t'. */
289 #define HAVE_SIGSET_T 1
291 /* Define to 1 if you have the `snprintf' function. */
292 #define HAVE_SNPRINTF 1
294 /* Define to 1 if you have the `stat' function. */
297 /* Define HAVE_STAT_INO if your struct stat has st_ino and st_dev. */
298 #define HAVE_STAT_INO 1
300 /* Define to 1 if you have the <stdint.h> header file. */
301 #define HAVE_STDINT_H 1
303 /* Define to 1 if you have the <stdio.h> header file. */
304 #define HAVE_STDIO_H 1
306 /* Define to 1 if you have the <stdlib.h> header file. */
307 #define HAVE_STDLIB_H 1
309 /* Define HAVE_STRERROR if you have the strerror() function. */
310 #define HAVE_STRERROR 1
312 /* Define to 1 if you have the <strings.h> header file. */
313 #define HAVE_STRINGS_H 1
315 /* Define to 1 if you have the <string.h> header file. */
316 #define HAVE_STRING_H 1
318 /* Define to 1 if you have the `system' function. */
319 #define HAVE_SYSTEM 1
321 /* Define HAVE_SYS_ERRLIST if you have the sys_errlist[] variable. */
322 #define HAVE_SYS_ERRLIST 1
324 /* Define to 1 if you have the <sys/ioctl.h> header file. */
325 #define HAVE_SYS_IOCTL_H 1
327 /* Define to 1 if you have the <sys/stat.h> header file. */
328 #define HAVE_SYS_STAT_H 1
330 /* Define to 1 if you have the <sys/stream.h> header file. */
331 /* #undef HAVE_SYS_STREAM_H */
333 /* Define to 1 if you have the <sys/types.h> header file. */
334 #define HAVE_SYS_TYPES_H 1
336 /* Define to 1 if you have the <termcap.h> header file. */
337 #define HAVE_TERMCAP_H 1
339 /* Define HAVE_TERMIOS_FUNCS if you have tcgetattr/tcsetattr. */
340 #define HAVE_TERMIOS_FUNCS 1
342 /* Define to 1 if you have the <termios.h> header file. */
343 #define HAVE_TERMIOS_H 1
345 /* Define to 1 if you have the <termio.h> header file. */
346 /* #undef HAVE_TERMIO_H */
348 /* Define to 1 if you have the <time.h> header file. */
349 #define HAVE_TIME_H 1
351 /* Define HAVE_TIME_T if your system supports the "time_t" type. */
352 #define HAVE_TIME_T 1
354 /* Define to 1 if you have the <unistd.h> header file. */
355 #define HAVE_UNISTD_H 1
357 /* Define HAVE_UPPER_LOWER if you have isupper, islower, toupper, tolower. */
358 #define HAVE_UPPER_LOWER 1
360 /* Henry Spencer V8 regcomp() and regexp.h */
361 /* #undef HAVE_V8_REGCOMP */
363 /* Define to 1 if you have the <values.h> header file. */
364 /* #undef HAVE_VALUES_H */
366 /* Define HAVE_VOID if your compiler supports the "void" type. */
369 /* Define HAVE_WCTYPE if you have iswupper, iswlower, towupper, towlower. */
370 #define HAVE_WCTYPE 1
372 /* Define to 1 if you have the <wctype.h> header file. */
373 #define HAVE_WCTYPE_H 1
375 /* Define to 1 if you have the `_setjmp' function. */
376 #define HAVE__SETJMP 1
378 /* Define MUST_DEFINE_ERRNO if you have errno but it is not define in errno.h.
380 /* #undef MUST_DEFINE_ERRNO */
382 /* Define MUST_DEFINE_OSPEED if you have ospeed but it is not defined in
384 /* #undef MUST_DEFINE_OSPEED */
386 /* pattern matching is supported, but without metacharacters. */
387 /* #undef NO_REGEX */
389 /* Define to the address where bug reports for this package should be sent. */
390 #define PACKAGE_BUGREPORT ""
392 /* Define to the full name of this package. */
393 #define PACKAGE_NAME "less"
395 /* Define to the full name and version of this package. */
396 #define PACKAGE_STRING "less 1"
398 /* Define to the one symbol short name of this package. */
399 #define PACKAGE_TARNAME "less"
401 /* Define to the home page for this package. */
402 #define PACKAGE_URL ""
404 /* Define to the version of this package. */
405 #define PACKAGE_VERSION "1"
407 /* Define as the return type of signal handlers (`int' or `void'). */
408 #define RETSIGTYPE void
410 /* Define SECURE_COMPILE=1 to build a secure version of less. */
411 #define SECURE_COMPILE 0
413 /* Define to 1 if the `S_IS*' macros in <sys/stat.h> do not work properly. */
414 /* #undef STAT_MACROS_BROKEN */
416 /* Define to 1 if you have the ANSI C header files. */
417 #define STDC_HEADERS 1
419 /* Define to 1 if you can safely include both <sys/time.h> and <time.h>. */
420 #define TIME_WITH_SYS_TIME 1
422 /* Number of bits in a file offset, on hosts where this is settable. */
423 /* #undef _FILE_OFFSET_BITS */
425 /* Define for large files, on AIX-style hosts. */
426 /* #undef _LARGE_FILES */
428 /* Define to empty if `const' does not conform to ANSI C. */
431 /* Define to `long int' if <sys/types.h> does not define. */
434 /* Define to `unsigned int' if <sys/types.h> does not define. */