2 /* defines.h. Generated from defines.h.in by configure. */
3 /* defines.h.in. Generated from configure.ac by autoheader. */
6 /* Unix definition file for less. -*- C -*-
8 * This file has 3 sections:
10 * Settings always true on Unix.
11 * Settings automatically determined by configure.
13 * * * * * * WARNING * * * * * *
14 * If you edit defines.h by hand, do "touch stamp-h" before you run make
15 * so config.status doesn't overwrite your changes.
18 /* User preferences. */
21 * SECURE is 1 if you wish to disable a bunch of features in order to
22 * be safe to run by unprivileged users.
23 * SECURE_COMPILE is set by the --with-secure configure option.
25 #define SECURE SECURE_COMPILE
28 * SHELL_ESCAPE is 1 if you wish to allow shell escapes.
29 * (This is possible only if your system supplies the system() function.)
31 #define SHELL_ESCAPE (!SECURE)
34 * EXAMINE is 1 if you wish to allow examining files by name from within less.
36 #define EXAMINE (!SECURE)
39 * TAB_COMPLETE_FILENAME is 1 if you wish to allow the TAB key
40 * to complete filenames at prompts.
42 #define TAB_COMPLETE_FILENAME (!SECURE)
45 * CMD_HISTORY is 1 if you wish to allow keys to cycle through
46 * previous commands at prompts.
51 * HILITE_SEARCH is 1 if you wish to have search targets to be
52 * displayed in standout mode.
54 #define HILITE_SEARCH 1
57 * EDITOR is 1 if you wish to allow editor invocation (the "v" command).
58 * (This is possible only if your system supplies the system() function.)
59 * EDIT_PGM is the name of the (default) editor to be invoked.
61 #define EDITOR (!SECURE)
64 * TAGS is 1 if you wish to support tag files.
66 #define TAGS (!SECURE)
69 * USERFILE is 1 if you wish to allow a .less file to specify
70 * user-defined key bindings.
72 #define USERFILE (!SECURE)
75 * GLOB is 1 if you wish to have shell metacharacters expanded in filenames.
76 * This will generally work if your system provides the "popen" function
77 * and the "echo" shell command.
79 #define GLOB (!SECURE)
82 * PIPEC is 1 if you wish to have the "|" command
83 * which allows the user to pipe data into a shell command.
85 #define PIPEC (!SECURE)
88 * LOGFILE is 1 if you wish to allow the -o option (to create log files).
90 #define LOGFILE (!SECURE)
93 * GNU_OPTIONS is 1 if you wish to support the GNU-style command
94 * line options --help and --version.
99 * ONLY_RETURN is 1 if you want RETURN to be the only input which
100 * will continue past an error message.
101 * Otherwise, any key will continue past an error message.
103 #define ONLY_RETURN 0
106 * LESSKEYFILE is the filename of the default lesskey output file
107 * (in the HOME directory).
108 * LESSKEYFILE_SYS is the filename of the system-wide lesskey output file.
109 * DEF_LESSKEYINFILE is the filename of the default lesskey input
110 * (in the HOME directory).
111 * LESSHISTFILE is the filename of the history file
112 * (in the HOME directory).
114 #define LESSKEYFILE ".less"
115 #define LESSKEYFILE_SYS "/etc/lesskey"
116 #define DEF_LESSKEYINFILE ".lesskey"
117 #define LESSHISTFILE ".lesshst"
120 /* Settings always true on Unix. */
123 * Define MSDOS_COMPILER if compiling under Microsoft C.
125 #define MSDOS_COMPILER 0
128 * Pathname separator character.
130 #define PATHNAME_SEP "/"
133 * The value returned from tgetent on success.
134 * Some HP-UX systems return 0 on success.
139 * HAVE_ANSI_PROTOS is 1 if your compiler supports ANSI function prototypes.
141 #define HAVE_ANSI_PROTOS 1
144 * HAVE_SYS_TYPES_H is 1 if your system has <sys/types.h>.
146 #define HAVE_SYS_TYPES_H 1
149 * Define if you have the <sgstat.h> header file.
151 /* #undef HAVE_SGSTAT_H */
154 * HAVE_PERROR is 1 if your system has the perror() call.
155 * (Actually, if it has sys_errlist, sys_nerr and errno.)
157 #define HAVE_PERROR 1
160 * HAVE_TIME is 1 if your system has the time() call.
165 * HAVE_SHELL is 1 if your system supports a SHELL command interpreter.
170 * Default shell metacharacters and meta-escape character.
172 #define DEF_METACHARS "; *?\t\n'\"()<>[]|&^`#\\$%=~{},"
173 #define DEF_METAESCAPE "\\"
176 * HAVE_DUP is 1 if your system has the dup() call.
180 /* Define to 1 if you have the memcpy() function. */
181 #define HAVE_MEMCPY 1
183 /* Define to 1 if you have the strchr() function. */
184 #define HAVE_STRCHR 1
186 /* Define to 1 if you have the strstr() function. */
187 #define HAVE_STRSTR 1
190 * Sizes of various buffers.
192 #if 0 /* old sizes for small memory machines */
193 #define CMDBUF_SIZE 512 /* Buffer for multichar commands */
194 #define UNGOT_SIZE 100 /* Max chars to unget() */
195 #define LINEBUF_SIZE 1024 /* Max size of line in input file */
196 #define OUTBUF_SIZE 1024 /* Output buffer */
197 #define PROMPT_SIZE 200 /* Max size of prompt string */
198 #define TERMBUF_SIZE 2048 /* Termcap buffer for tgetent */
199 #define TERMSBUF_SIZE 1024 /* Buffer to hold termcap strings */
200 #define TAGLINE_SIZE 512 /* Max size of line in tags file */
201 #define TABSTOP_MAX 32 /* Max number of custom tab stops */
202 #else /* more reasonable sizes for modern machines */
203 #define CMDBUF_SIZE 2048 /* Buffer for multichar commands */
204 #define UNGOT_SIZE 200 /* Max chars to unget() */
205 #define LINEBUF_SIZE 1024 /* Initial max size of line in input file */
206 #define OUTBUF_SIZE 1024 /* Output buffer */
207 #define PROMPT_SIZE 2048 /* Max size of prompt string */
208 #define TERMBUF_SIZE 2048 /* Termcap buffer for tgetent */
209 #define TERMSBUF_SIZE 1024 /* Buffer to hold termcap strings */
210 #define TAGLINE_SIZE 1024 /* Max size of line in tags file */
211 #define TABSTOP_MAX 128 /* Max number of custom tab stops */
214 /* Settings automatically determined by configure. */
217 /* Define EDIT_PGM to your editor. */
218 #define EDIT_PGM "vi"
220 /* Define HAVE_CONST if your compiler supports the "const" modifier. */
223 /* Define to 1 if you have the <ctype.h> header file. */
224 #define HAVE_CTYPE_H 1
226 /* Define HAVE_ERRNO if you have the errno variable. */
229 /* Define to 1 if you have the <errno.h> header file. */
230 #define HAVE_ERRNO_H 1
232 /* Define to 1 if you have the `fchmod' function. */
233 #define HAVE_FCHMOD 1
235 /* Define to 1 if you have the <fcntl.h> header file. */
236 #define HAVE_FCNTL_H 1
238 /* Define HAVE_FILENO if you have the fileno() macro. */
239 #define HAVE_FILENO 1
241 /* Define HAVE_FLOAT if your compiler supports the "double" type. */
244 /* Define to 1 if you have the `fsync' function. */
247 /* GNU regex library */
248 /* #undef HAVE_GNU_REGEX */
250 /* Define to 1 if you have the <inttypes.h> header file. */
251 #define HAVE_INTTYPES_H 1
253 /* Define to 1 if you have the <limits.h> header file. */
254 #define HAVE_LIMITS_H 1
256 /* Define HAVE_LOCALE if you have locale.h and setlocale. */
257 #define HAVE_LOCALE 1
259 /* Define to 1 if you have the <memory.h> header file. */
260 #define HAVE_MEMORY_H 1
262 /* Define HAVE_OSPEED if your termcap library has the ospeed variable. */
263 #define HAVE_OSPEED 1
265 /* PCRE (Perl-compatible regular expression) library */
266 /* #undef HAVE_PCRE */
268 /* PCRE2 (Perl-compatible regular expression) library */
269 /* #undef HAVE_PCRE2 */
271 /* Define to 1 if you have the `popen' function. */
274 /* POSIX regcomp() and regex.h */
275 #define HAVE_POSIX_REGCOMP 1
277 /* Define to 1 if you have the `realpath' function. */
278 #define HAVE_REALPATH 1
280 /* System V regcmp() */
281 /* #undef HAVE_REGCMP */
284 /* #undef HAVE_REGEXEC2 */
287 /* #undef HAVE_RE_COMP */
289 /* Define HAVE_SIGEMPTYSET if you have the sigemptyset macro. */
290 #define HAVE_SIGEMPTYSET 1
292 /* Define to 1 if you have the `sigprocmask' function. */
293 #define HAVE_SIGPROCMASK 1
295 /* Define to 1 if you have the `sigsetmask' function. */
296 #define HAVE_SIGSETMASK 1
298 /* Define to 1 if the system has the type `sigset_t'. */
299 #define HAVE_SIGSET_T 1
301 /* Define to 1 if you have the `snprintf' function. */
302 #define HAVE_SNPRINTF 1
304 /* Define to 1 if you have the `stat' function. */
307 /* Define HAVE_STAT_INO if your struct stat has st_ino and st_dev. */
308 #define HAVE_STAT_INO 1
310 /* Define to 1 if you have the <stdint.h> header file. */
311 #define HAVE_STDINT_H 1
313 /* Define to 1 if you have the <stdio.h> header file. */
314 #define HAVE_STDIO_H 1
316 /* Define to 1 if you have the <stdlib.h> header file. */
317 #define HAVE_STDLIB_H 1
319 /* Define HAVE_STRERROR if you have the strerror() function. */
320 #define HAVE_STRERROR 1
322 /* Define to 1 if you have the <strings.h> header file. */
323 #define HAVE_STRINGS_H 1
325 /* Define to 1 if you have the <string.h> header file. */
326 #define HAVE_STRING_H 1
328 /* Define to 1 if you have the `system' function. */
329 #define HAVE_SYSTEM 1
331 /* Define HAVE_SYS_ERRLIST if you have the sys_errlist[] variable. */
332 #define HAVE_SYS_ERRLIST 1
334 /* Define to 1 if you have the <sys/ioctl.h> header file. */
335 #define HAVE_SYS_IOCTL_H 1
337 /* Define to 1 if you have the <sys/stat.h> header file. */
338 #define HAVE_SYS_STAT_H 1
340 /* Define to 1 if you have the <sys/stream.h> header file. */
341 /* #undef HAVE_SYS_STREAM_H */
343 /* Define to 1 if you have the <sys/types.h> header file. */
344 #define HAVE_SYS_TYPES_H 1
346 /* Define to 1 if you have the <termcap.h> header file. */
347 #define HAVE_TERMCAP_H 1
349 /* Define HAVE_TERMIOS_FUNCS if you have tcgetattr/tcsetattr. */
350 #define HAVE_TERMIOS_FUNCS 1
352 /* Define to 1 if you have the <termios.h> header file. */
353 #define HAVE_TERMIOS_H 1
355 /* Define to 1 if you have the <termio.h> header file. */
356 /* #undef HAVE_TERMIO_H */
358 /* Define to 1 if you have the <time.h> header file. */
359 #define HAVE_TIME_H 1
361 /* Define HAVE_TIME_T if your system supports the "time_t" type. */
362 #define HAVE_TIME_T 1
364 /* Define to 1 if you have the <unistd.h> header file. */
365 #define HAVE_UNISTD_H 1
367 /* Define HAVE_UPPER_LOWER if you have isupper, islower, toupper, tolower. */
368 #define HAVE_UPPER_LOWER 1
370 /* Henry Spencer V8 regcomp() and regexp.h */
371 /* #undef HAVE_V8_REGCOMP */
373 /* Define to 1 if you have the <values.h> header file. */
374 /* #undef HAVE_VALUES_H */
376 /* Define HAVE_VOID if your compiler supports the "void" type. */
379 /* Define HAVE_WCTYPE if you have iswupper, iswlower, towupper, towlower. */
380 #define HAVE_WCTYPE 1
382 /* Define to 1 if you have the <wctype.h> header file. */
383 #define HAVE_WCTYPE_H 1
385 /* Define to 1 if you have the `_setjmp' function. */
386 #define HAVE__SETJMP 1
388 /* Define MUST_DEFINE_ERRNO if you have errno but it is not define in errno.h.
390 /* #undef MUST_DEFINE_ERRNO */
392 /* Define MUST_DEFINE_OSPEED if you have ospeed but it is not defined in
394 /* #undef MUST_DEFINE_OSPEED */
396 /* pattern matching is supported, but without metacharacters. */
397 /* #undef NO_REGEX */
399 /* Define to the address where bug reports for this package should be sent. */
400 #define PACKAGE_BUGREPORT ""
402 /* Define to the full name of this package. */
403 #define PACKAGE_NAME "less"
405 /* Define to the full name and version of this package. */
406 #define PACKAGE_STRING "less 1"
408 /* Define to the one symbol short name of this package. */
409 #define PACKAGE_TARNAME "less"
411 /* Define to the home page for this package. */
412 #define PACKAGE_URL ""
414 /* Define to the version of this package. */
415 #define PACKAGE_VERSION "1"
417 /* Define as the return type of signal handlers (`int' or `void'). */
418 #define RETSIGTYPE void
420 /* Define SECURE_COMPILE=1 to build a secure version of less. */
421 #define SECURE_COMPILE 0
423 /* Define to 1 if the `S_IS*' macros in <sys/stat.h> do not work properly. */
424 /* #undef STAT_MACROS_BROKEN */
426 /* Define to 1 if you have the ANSI C header files. */
427 #define STDC_HEADERS 1
429 /* Define to 1 if you can safely include both <sys/time.h> and <time.h>. */
430 #define TIME_WITH_SYS_TIME 1
432 /* Enable large inode numbers on Mac OS X 10.5. */
433 #ifndef _DARWIN_USE_64_BIT_INODE
434 # define _DARWIN_USE_64_BIT_INODE 1
437 /* Number of bits in a file offset, on hosts where this is settable. */
438 /* #undef _FILE_OFFSET_BITS */
440 /* Define for large files, on AIX-style hosts. */
441 /* #undef _LARGE_FILES */
443 /* Define to empty if `const' does not conform to ANSI C. */
446 /* Define to `long int' if <sys/types.h> does not define. */
449 /* Define to `unsigned int' if <sys/types.h> does not define. */