Annotation of src/usr.bin/less/defines.h.in, Revision 1.3
1.2 millert 1: /* defines.h.in. Generated from configure.ac by autoheader. */
2:
3:
1.1 etheisen 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: */
1.2 millert 15:
1.1 etheisen 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.
1.3 ! shadchin 21: * SECURE_COMPILE is set by the --with-secure configure option.
1.1 etheisen 22: */
1.3 ! shadchin 23: #define SECURE SECURE_COMPILE
1.1 etheisen 24:
25: /*
1.2 millert 26: * SMALL is 1 if you wish to disable a bunch of features in order to
27: * build a smaller less binary.
28: */
29: #define SMALL 0
30:
31: /*
1.1 etheisen 32: * SHELL_ESCAPE is 1 if you wish to allow shell escapes.
33: * (This is possible only if your system supplies the system() function.)
34: */
1.2 millert 35: #define SHELL_ESCAPE (!SECURE && !SMALL)
1.1 etheisen 36:
37: /*
38: * EXAMINE is 1 if you wish to allow examining files by name from within less.
39: */
1.2 millert 40: #define EXAMINE (!SECURE && !SMALL)
1.1 etheisen 41:
42: /*
43: * TAB_COMPLETE_FILENAME is 1 if you wish to allow the TAB key
44: * to complete filenames at prompts.
45: */
1.2 millert 46: #define TAB_COMPLETE_FILENAME (!SECURE && !SMALL)
1.1 etheisen 47:
48: /*
49: * CMD_HISTORY is 1 if you wish to allow keys to cycle through
50: * previous commands at prompts.
51: */
1.2 millert 52: #define CMD_HISTORY (!SMALL)
1.1 etheisen 53:
54: /*
55: * HILITE_SEARCH is 1 if you wish to have search targets to be
56: * displayed in standout mode.
57: */
58: #define HILITE_SEARCH 1
59:
60: /*
61: * EDITOR is 1 if you wish to allow editor invocation (the "v" command).
62: * (This is possible only if your system supplies the system() function.)
63: * EDIT_PGM is the name of the (default) editor to be invoked.
64: */
1.2 millert 65: #define EDITOR (!SECURE && !SMALL)
1.1 etheisen 66:
67: /*
68: * TAGS is 1 if you wish to support tag files.
69: */
1.2 millert 70: #define TAGS (!SECURE && !SMALL)
1.1 etheisen 71:
72: /*
73: * USERFILE is 1 if you wish to allow a .less file to specify
74: * user-defined key bindings.
75: */
1.2 millert 76: #define USERFILE (!SECURE && !SMALL)
1.1 etheisen 77:
78: /*
79: * GLOB is 1 if you wish to have shell metacharacters expanded in filenames.
80: * This will generally work if your system provides the "popen" function
81: * and the "echo" shell command.
82: */
1.2 millert 83: #define GLOB (!SECURE && !SMALL)
1.1 etheisen 84:
85: /*
86: * PIPEC is 1 if you wish to have the "|" command
87: * which allows the user to pipe data into a shell command.
88: */
1.2 millert 89: #define PIPEC (!SECURE && !SMALL)
1.1 etheisen 90:
91: /*
92: * LOGFILE is 1 if you wish to allow the -l option (to create log files).
93: */
1.2 millert 94: #define LOGFILE (!SECURE && !SMALL)
1.1 etheisen 95:
96: /*
97: * GNU_OPTIONS is 1 if you wish to support the GNU-style command
98: * line options --help and --version.
99: */
1.2 millert 100: #define GNU_OPTIONS (!SMALL)
1.1 etheisen 101:
102: /*
103: * ONLY_RETURN is 1 if you want RETURN to be the only input which
104: * will continue past an error message.
105: * Otherwise, any key will continue past an error message.
106: */
107: #define ONLY_RETURN 0
108:
109: /*
110: * LESSKEYFILE is the filename of the default lesskey output file
111: * (in the HOME directory).
1.2 millert 112: * LESSKEYFILE_SYS is the filename of the system-wide lesskey output file.
1.1 etheisen 113: * DEF_LESSKEYINFILE is the filename of the default lesskey input
114: * (in the HOME directory).
1.3 ! shadchin 115: * LESSHISTFILE is the filename of the history file
! 116: * (in the HOME directory).
1.1 etheisen 117: */
118: #define LESSKEYFILE ".less"
1.2 millert 119: #define LESSKEYFILE_SYS SYSDIR "/sysless"
1.1 etheisen 120: #define DEF_LESSKEYINFILE ".lesskey"
1.3 ! shadchin 121: #define LESSHISTFILE ".lesshst"
1.1 etheisen 122:
1.2 millert 123:
1.1 etheisen 124: /* Settings always true on Unix. */
125:
126: /*
1.2 millert 127: * Define MSDOS_COMPILER if compiling under Microsoft C.
128: */
129: #define MSDOS_COMPILER 0
130:
131: /*
132: * Pathname separator character.
1.1 etheisen 133: */
1.2 millert 134: #define PATHNAME_SEP "/"
1.1 etheisen 135:
136: /*
1.3 ! shadchin 137: * The value returned from tgetent on success.
! 138: * Some HP-UX systems return 0 on success.
! 139: */
! 140: #define TGETENT_OK 1
! 141:
! 142: /*
1.1 etheisen 143: * HAVE_SYS_TYPES_H is 1 if your system has <sys/types.h>.
144: */
145: #define HAVE_SYS_TYPES_H 1
146:
147: /*
1.2 millert 148: * Define if you have the <sgstat.h> header file.
1.1 etheisen 149: */
1.2 millert 150: #undef HAVE_SGSTAT_H
1.1 etheisen 151:
152: /*
153: * HAVE_PERROR is 1 if your system has the perror() call.
154: * (Actually, if it has sys_errlist, sys_nerr and errno.)
155: */
156: #define HAVE_PERROR 1
157:
158: /*
159: * HAVE_TIME is 1 if your system has the time() call.
160: */
161: #define HAVE_TIME 1
162:
163: /*
164: * HAVE_SHELL is 1 if your system supports a SHELL command interpreter.
165: */
166: #define HAVE_SHELL 1
1.2 millert 167:
168: /*
169: * Default shell metacharacters and meta-escape character.
170: */
1.3 ! shadchin 171: #define DEF_METACHARS "; *?\t\n'\"()<>[]|&^`#\\$%=~"
1.2 millert 172: #define DEF_METAESCAPE "\\"
173:
174: /*
175: * HAVE_DUP is 1 if your system has the dup() call.
176: */
177: #define HAVE_DUP 1
178:
1.3 ! shadchin 179: /* Define to 1 if you have the memcpy() function. */
! 180: #define HAVE_MEMCPY 1
! 181:
! 182: /* Define to 1 if you have the strchr() function. */
! 183: #define HAVE_STRCHR 1
! 184:
! 185: /* Define to 1 if you have the strstr() function. */
! 186: #define HAVE_STRSTR 1
! 187:
1.2 millert 188: /*
189: * Sizes of various buffers.
190: */
191: #define CMDBUF_SIZE 512 /* Buffer for multichar commands */
192: #define UNGOT_SIZE 100 /* Max chars to unget() */
193: #define LINEBUF_SIZE 1024 /* Max size of line in input file */
194: #define OUTBUF_SIZE 1024 /* Output buffer */
195: #define PROMPT_SIZE 200 /* Max size of prompt string */
196: #define TERMBUF_SIZE 2048 /* Termcap buffer for tgetent */
197: #define TERMSBUF_SIZE 1024 /* Buffer to hold termcap strings */
198: #define TAGLINE_SIZE 512 /* Max size of line in tags file */
199: #define TABSTOP_MAX 32 /* Max number of custom tab stops */
200:
1.1 etheisen 201: /* Settings automatically determined by configure. */
202:
203:
1.2 millert 204: /* Define EDIT_PGM to your editor. */
205: #undef EDIT_PGM
1.1 etheisen 206:
1.2 millert 207: /* Define HAVE_CONST if your compiler supports the "const" modifier. */
208: #undef HAVE_CONST
1.1 etheisen 209:
1.2 millert 210: /* Define to 1 if you have the <ctype.h> header file. */
211: #undef HAVE_CTYPE_H
1.1 etheisen 212:
1.2 millert 213: /* Define HAVE_ERRNO if you have the errno variable. */
214: #undef HAVE_ERRNO
1.1 etheisen 215:
1.2 millert 216: /* Define to 1 if you have the <errno.h> header file. */
217: #undef HAVE_ERRNO_H
1.1 etheisen 218:
1.3 ! shadchin 219: /* Define to 1 if you have the `fchmod' function. */
! 220: #undef HAVE_FCHMOD
! 221:
1.2 millert 222: /* Define to 1 if you have the <fcntl.h> header file. */
223: #undef HAVE_FCNTL_H
1.1 etheisen 224:
225: /* Define HAVE_FILENO if you have the fileno() macro. */
226: #undef HAVE_FILENO
227:
1.3 ! shadchin 228: /* Define HAVE_FLOAT if your compiler supports the "double" type. */
! 229: #undef HAVE_FLOAT
! 230:
1.2 millert 231: /* Define to 1 if you have the `fsync' function. */
232: #undef HAVE_FSYNC
233:
234: /* Define to 1 if you have the <inttypes.h> header file. */
235: #undef HAVE_INTTYPES_H
236:
237: /* Define to 1 if you have the `gen' library (-lgen). */
238: #undef HAVE_LIBGEN
239:
240: /* Define to 1 if you have the `intl' library (-lintl). */
241: #undef HAVE_LIBINTL
1.1 etheisen 242:
1.2 millert 243: /* Define to 1 if you have the `PW' library (-lPW). */
244: #undef HAVE_LIBPW
1.1 etheisen 245:
1.2 millert 246: /* Define to 1 if you have the <limits.h> header file. */
247: #undef HAVE_LIMITS_H
1.1 etheisen 248:
249: /* Define HAVE_LOCALE if you have locale.h and setlocale. */
250: #undef HAVE_LOCALE
251:
1.2 millert 252: /* Define to 1 if you have the <memory.h> header file. */
253: #undef HAVE_MEMORY_H
254:
255: /* Define HAVE_OSPEED if your termcap library has the ospeed variable. */
256: #undef HAVE_OSPEED
257:
258: /* PCRE (Perl-compatible regular expression) library */
259: #undef HAVE_PCRE
260:
261: /* Define to 1 if you have the `popen' function. */
262: #undef HAVE_POPEN
263:
264: /* POSIX regcomp() and regex.h */
265: #undef HAVE_POSIX_REGCOMP
266:
267: /* System V regcmp() */
268: #undef HAVE_REGCMP
269:
270: /* */
271: #undef HAVE_REGEXEC2
1.1 etheisen 272:
1.2 millert 273: /* BSD re_comp() */
274: #undef HAVE_RE_COMP
1.1 etheisen 275:
1.2 millert 276: /* Define HAVE_SIGEMPTYSET if you have the sigemptyset macro. */
277: #undef HAVE_SIGEMPTYSET
1.1 etheisen 278:
1.2 millert 279: /* Define to 1 if you have the `sigprocmask' function. */
280: #undef HAVE_SIGPROCMASK
1.1 etheisen 281:
1.2 millert 282: /* Define to 1 if you have the `sigsetmask' function. */
1.1 etheisen 283: #undef HAVE_SIGSETMASK
284:
1.3 ! shadchin 285: /* Define to 1 if the system has the type `sigset_t'. */
1.2 millert 286: #undef HAVE_SIGSET_T
287:
1.3 ! shadchin 288: /* Define to 1 if you have the `snprintf' function. */
! 289: #undef HAVE_SNPRINTF
! 290:
1.2 millert 291: /* Define to 1 if you have the `stat' function. */
292: #undef HAVE_STAT
293:
1.3 ! shadchin 294: /* Define HAVE_STAT_INO if your struct stat has st_ino and st_dev. */
! 295: #undef HAVE_STAT_INO
! 296:
1.2 millert 297: /* Define to 1 if you have the <stdint.h> header file. */
298: #undef HAVE_STDINT_H
299:
300: /* Define to 1 if you have the <stdio.h> header file. */
301: #undef HAVE_STDIO_H
302:
303: /* Define to 1 if you have the <stdlib.h> header file. */
304: #undef HAVE_STDLIB_H
305:
306: /* Define HAVE_STRERROR if you have the strerror() function. */
307: #undef HAVE_STRERROR
308:
309: /* Define to 1 if you have the <strings.h> header file. */
310: #undef HAVE_STRINGS_H
1.1 etheisen 311:
1.2 millert 312: /* Define to 1 if you have the <string.h> header file. */
313: #undef HAVE_STRING_H
1.1 etheisen 314:
1.2 millert 315: /* Define to 1 if you have the `system' function. */
316: #undef HAVE_SYSTEM
1.1 etheisen 317:
1.2 millert 318: /* Define HAVE_SYS_ERRLIST if you have the sys_errlist[] variable. */
319: #undef HAVE_SYS_ERRLIST
1.1 etheisen 320:
1.2 millert 321: /* Define to 1 if you have the <sys/ioctl.h> header file. */
1.1 etheisen 322: #undef HAVE_SYS_IOCTL_H
323:
1.2 millert 324: /* Define to 1 if you have the <sys/stat.h> header file. */
325: #undef HAVE_SYS_STAT_H
326:
327: /* Define to 1 if you have the <sys/stream.h> header file. */
1.1 etheisen 328: #undef HAVE_SYS_STREAM_H
329:
1.2 millert 330: /* Define to 1 if you have the <sys/types.h> header file. */
331: #undef HAVE_SYS_TYPES_H
332:
333: /* Define to 1 if you have the <termcap.h> header file. */
1.1 etheisen 334: #undef HAVE_TERMCAP_H
335:
1.2 millert 336: /* Define HAVE_TERMIOS_FUNCS if you have tcgetattr/tcsetattr. */
337: #undef HAVE_TERMIOS_FUNCS
1.1 etheisen 338:
1.2 millert 339: /* Define to 1 if you have the <termios.h> header file. */
1.1 etheisen 340: #undef HAVE_TERMIOS_H
341:
1.2 millert 342: /* Define to 1 if you have the <termio.h> header file. */
343: #undef HAVE_TERMIO_H
344:
345: /* Define to 1 if you have the <time.h> header file. */
1.1 etheisen 346: #undef HAVE_TIME_H
347:
1.2 millert 348: /* Define HAVE_TIME_T if your system supports the "time_t" type. */
349: #undef HAVE_TIME_T
350:
351: /* Define to 1 if you have the <unistd.h> header file. */
1.1 etheisen 352: #undef HAVE_UNISTD_H
353:
1.2 millert 354: /* Define HAVE_UPPER_LOWER if you have isupper, islower, toupper, tolower. */
355: #undef HAVE_UPPER_LOWER
356:
357: /* Henry Spencer V8 regcomp() and regexp.h */
358: #undef HAVE_V8_REGCOMP
359:
360: /* Define to 1 if you have the <values.h> header file. */
1.1 etheisen 361: #undef HAVE_VALUES_H
362:
1.2 millert 363: /* Define HAVE_VOID if your compiler supports the "void" type. */
364: #undef HAVE_VOID
365:
1.3 ! shadchin 366: /* Define HAVE_WCTYPE if you have iswupper, iswlower, towupper, towlower. */
! 367: #undef HAVE_WCTYPE
! 368:
! 369: /* Define to 1 if you have the <wctype.h> header file. */
! 370: #undef HAVE_WCTYPE_H
! 371:
1.2 millert 372: /* Define to 1 if you have the `_setjmp' function. */
373: #undef HAVE__SETJMP
374:
375: /* Define MUST_DEFINE_ERRNO if you have errno but it is not define in errno.h.
376: */
377: #undef MUST_DEFINE_ERRNO
378:
379: /* Define MUST_DEFINE_OSPEED if you have ospeed but it is not defined in
380: termcap.h. */
381: #undef MUST_DEFINE_OSPEED
382:
383: /* pattern matching is supported, but without metacharacters. */
384: #undef NO_REGEX
385:
386: /* Define to the address where bug reports for this package should be sent. */
387: #undef PACKAGE_BUGREPORT
388:
389: /* Define to the full name of this package. */
390: #undef PACKAGE_NAME
391:
392: /* Define to the full name and version of this package. */
393: #undef PACKAGE_STRING
394:
395: /* Define to the one symbol short name of this package. */
396: #undef PACKAGE_TARNAME
397:
1.3 ! shadchin 398: /* Define to the home page for this package. */
! 399: #undef PACKAGE_URL
! 400:
1.2 millert 401: /* Define to the version of this package. */
402: #undef PACKAGE_VERSION
403:
404: /* Define as the return type of signal handlers (`int' or `void'). */
405: #undef RETSIGTYPE
406:
1.3 ! shadchin 407: /* Define SECURE_COMPILE=1 to build a secure version of less. */
! 408: #undef SECURE_COMPILE
! 409:
1.2 millert 410: /* Define to 1 if the `S_IS*' macros in <sys/stat.h> do not work properly. */
411: #undef STAT_MACROS_BROKEN
412:
413: /* Define to 1 if you have the ANSI C header files. */
414: #undef STDC_HEADERS
415:
416: /* Define to 1 if you can safely include both <sys/time.h> and <time.h>. */
417: #undef TIME_WITH_SYS_TIME
418:
419: /* Number of bits in a file offset, on hosts where this is settable. */
420: #undef _FILE_OFFSET_BITS
421:
422: /* Define for large files, on AIX-style hosts. */
423: #undef _LARGE_FILES
424:
425: /* Define to empty if `const' does not conform to ANSI C. */
426: #undef const
1.1 etheisen 427:
1.3 ! shadchin 428: /* Define to `long int' if <sys/types.h> does not define. */
1.2 millert 429: #undef off_t
1.1 etheisen 430:
1.3 ! shadchin 431: /* Define to `unsigned int' if <sys/types.h> does not define. */
1.2 millert 432: #undef size_t