defines.h.in revision 221715
119304Speter/* defines.h.in.  Generated from configure.ac by autoheader.  */
219304Speter
319304Speter
419304Speter/* Unix definition file for less.  -*- C -*-
519304Speter *
619304Speter * This file has 3 sections:
719304Speter * User preferences.
819304Speter * Settings always true on Unix.
919304Speter * Settings automatically determined by configure.
1019304Speter *
1119304Speter * * * * * *  WARNING  * * * * * *
1219304Speter * If you edit defines.h by hand, do "touch stamp-h" before you run make
13254225Speter * so config.status doesn't overwrite your changes.
1419304Speter */
1519304Speter
1619304Speter/* User preferences.  */
1719304Speter
1819304Speter/*
1919304Speter * SECURE is 1 if you wish to disable a bunch of features in order to
2019304Speter * be safe to run by unprivileged users.
2119304Speter * SECURE_COMPILE is set by the --with-secure configure option.
2219304Speter */
2319304Speter#define	SECURE		SECURE_COMPILE
2419304Speter
2519304Speter/*
2619304Speter * SHELL_ESCAPE is 1 if you wish to allow shell escapes.
2719304Speter * (This is possible only if your system supplies the system() function.)
2819304Speter */
2919304Speter#define	SHELL_ESCAPE	(!SECURE)
3019304Speter
3119304Speter/*
32281373Sbapt * EXAMINE is 1 if you wish to allow examining files by name from within less.
3319304Speter */
3419304Speter#define	EXAMINE		(!SECURE)
35254225Speter
36254225Speter/*
37254225Speter * TAB_COMPLETE_FILENAME is 1 if you wish to allow the TAB key
38254225Speter * to complete filenames at prompts.
39254225Speter */
4019304Speter#define	TAB_COMPLETE_FILENAME	(!SECURE)
41254225Speter
4219304Speter/*
4319304Speter * CMD_HISTORY is 1 if you wish to allow keys to cycle through
4419304Speter * previous commands at prompts.
4519304Speter */
4619304Speter#define	CMD_HISTORY	1
47281373Sbapt
4819304Speter/*
4919304Speter * HILITE_SEARCH is 1 if you wish to have search targets to be 
50254225Speter * displayed in standout mode.
51254225Speter */
52254225Speter#define	HILITE_SEARCH	1
53254225Speter
54254225Speter/*
5519304Speter * EDITOR is 1 if you wish to allow editor invocation (the "v" command).
5619304Speter * (This is possible only if your system supplies the system() function.)
5719304Speter * EDIT_PGM is the name of the (default) editor to be invoked.
5819304Speter */
5919304Speter#define	EDITOR		(!SECURE)
6019304Speter
6119304Speter/*
6219304Speter * TAGS is 1 if you wish to support tag files.
6319304Speter */
6419304Speter#define	TAGS		(!SECURE)
6519304Speter
6619304Speter/*
6719304Speter * USERFILE is 1 if you wish to allow a .less file to specify 
6819304Speter * user-defined key bindings.
6919304Speter */
7019304Speter#define	USERFILE	(!SECURE)
7119304Speter
7219304Speter/*
7319304Speter * GLOB is 1 if you wish to have shell metacharacters expanded in filenames.
7419304Speter * This will generally work if your system provides the "popen" function
7519304Speter * and the "echo" shell command.
7619304Speter */
7719304Speter#define	GLOB		(!SECURE)
7819304Speter
7919304Speter/*
8019304Speter * PIPEC is 1 if you wish to have the "|" command
81281373Sbapt * which allows the user to pipe data into a shell command.
8219304Speter */
8319304Speter#define	PIPEC		(!SECURE)
84254225Speter
85254225Speter/*
86254225Speter * LOGFILE is 1 if you wish to allow the -l option (to create log files).
87254225Speter */
88254225Speter#define	LOGFILE		(!SECURE)
8919304Speter
9019304Speter/*
9119304Speter * GNU_OPTIONS is 1 if you wish to support the GNU-style command
9219304Speter * line options --help and --version.
9319304Speter */
9419304Speter#define	GNU_OPTIONS	1
9519304Speter
9619304Speter/*
9719304Speter * ONLY_RETURN is 1 if you want RETURN to be the only input which
9819304Speter * will continue past an error message.
9919304Speter * Otherwise, any key will continue past an error message.
10019304Speter */
10119304Speter#define	ONLY_RETURN	0
10219304Speter
10319304Speter/*
10419304Speter * LESSKEYFILE is the filename of the default lesskey output file 
10519304Speter * (in the HOME directory).
10619304Speter * LESSKEYFILE_SYS is the filename of the system-wide lesskey output file.
10719304Speter * DEF_LESSKEYINFILE is the filename of the default lesskey input 
10819304Speter * (in the HOME directory).
10919304Speter * LESSHISTFILE is the filename of the history file
11019304Speter * (in the HOME directory).
11119304Speter */
11219304Speter#define	LESSKEYFILE		".less"
11319304Speter#define	LESSKEYFILE_SYS		SYSDIR "/sysless"
11419304Speter#define	DEF_LESSKEYINFILE	".lesskey"
11519304Speter#define LESSHISTFILE		".lesshst"
11619304Speter
11719304Speter
11819304Speter/* Settings always true on Unix.  */
11919304Speter
12019304Speter/*
12119304Speter * Define MSDOS_COMPILER if compiling under Microsoft C.
12219304Speter */
12319304Speter#define	MSDOS_COMPILER	0
12419304Speter
12519304Speter/*
12619304Speter * Pathname separator character.
12719304Speter */
12819304Speter#define	PATHNAME_SEP	"/"
12919304Speter
13019304Speter/*
13119304Speter * The value returned from tgetent on success.
13219304Speter * Some HP-UX systems return 0 on success.
13319304Speter */
13419304Speter#define TGETENT_OK  1
13519304Speter
13619304Speter/*
13719304Speter * HAVE_SYS_TYPES_H is 1 if your system has <sys/types.h>.
138281373Sbapt */
13919304Speter#define HAVE_SYS_TYPES_H	1
14019304Speter
141254225Speter/*
142254225Speter * Define if you have the <sgstat.h> header file.
143254225Speter */
144254225Speter#undef HAVE_SGSTAT_H
145254225Speter
14619304Speter/*
14719304Speter * HAVE_PERROR is 1 if your system has the perror() call.
14819304Speter * (Actually, if it has sys_errlist, sys_nerr and errno.)
14919304Speter */
15019304Speter#define	HAVE_PERROR	1
15119304Speter
152281373Sbapt/*
15319304Speter * HAVE_TIME is 1 if your system has the time() call.
15419304Speter */
155254225Speter#define	HAVE_TIME	1
156254225Speter
157254225Speter/*
158254225Speter * HAVE_SHELL is 1 if your system supports a SHELL command interpreter.
159254225Speter */
16019304Speter#define	HAVE_SHELL	1
16119304Speter
16219304Speter/*
16319304Speter * Default shell metacharacters and meta-escape character.
16419304Speter */
16519304Speter#define	DEF_METACHARS	"; *?\t\n'\"()<>[]|&^`#\\$%=~"
166281373Sbapt#define	DEF_METAESCAPE	"\\"
16719304Speter
16819304Speter/* 
169254225Speter * HAVE_DUP is 1 if your system has the dup() call.
170254225Speter */
171254225Speter#define	HAVE_DUP	1
172254225Speter
173254225Speter/* Define to 1 if you have the memcpy() function. */
17419304Speter#define HAVE_MEMCPY 1
175254225Speter
17619304Speter/* Define to 1 if you have the strchr() function. */
177254225Speter#define HAVE_STRCHR 1
178254225Speter
179254225Speter/* Define to 1 if you have the strstr() function. */
180254225Speter#define HAVE_STRSTR 1
181254225Speter
182254225Speter/*
183254225Speter * Sizes of various buffers.
184254225Speter */
185254225Speter#define	CMDBUF_SIZE	512	/* Buffer for multichar commands */
18619304Speter#define	UNGOT_SIZE	100	/* Max chars to unget() */
18719304Speter#define	LINEBUF_SIZE	1024	/* Max size of line in input file */
18819304Speter#define	OUTBUF_SIZE	1024	/* Output buffer */
18919304Speter#define	PROMPT_SIZE	200	/* Max size of prompt string */
19019304Speter#define	TERMBUF_SIZE	2048	/* Termcap buffer for tgetent */
19119304Speter#define	TERMSBUF_SIZE	1024	/* Buffer to hold termcap strings */
19219304Speter#define	TAGLINE_SIZE	512	/* Max size of line in tags file */
19319304Speter#define	TABSTOP_MAX	32	/* Max number of custom tab stops */
19419304Speter
195281373Sbapt/* Settings automatically determined by configure.  */
19619304Speter
19719304Speter
198254225Speter/* Define EDIT_PGM to your editor. */
199254225Speter#undef EDIT_PGM
200254225Speter
201254225Speter/* Define HAVE_CONST if your compiler supports the "const" modifier. */
202254225Speter#undef HAVE_CONST
20319304Speter
20419304Speter/* Define to 1 if you have the <ctype.h> header file. */
20519304Speter#undef HAVE_CTYPE_H
20619304Speter
20719304Speter/* Define HAVE_ERRNO if you have the errno variable. */
20819304Speter#undef HAVE_ERRNO
209254225Speter
210254225Speter/* Define to 1 if you have the <errno.h> header file. */
21119304Speter#undef HAVE_ERRNO_H
21219304Speter
21319304Speter/* Define to 1 if you have the `fchmod' function. */
21419304Speter#undef HAVE_FCHMOD
21519304Speter
216281373Sbapt/* Define to 1 if you have the <fcntl.h> header file. */
21719304Speter#undef HAVE_FCNTL_H
21819304Speter
219254225Speter/* Define HAVE_FILENO if you have the fileno() macro. */
220254225Speter#undef HAVE_FILENO
221254225Speter
222254225Speter/* Define HAVE_FLOAT if your compiler supports the "double" type. */
223254225Speter#undef HAVE_FLOAT
22419304Speter
22519304Speter/* Define to 1 if you have the `fsync' function. */
22619304Speter#undef HAVE_FSYNC
22719304Speter
22819304Speter/* Define to 1 if you have the <inttypes.h> header file. */
22919304Speter#undef HAVE_INTTYPES_H
23019304Speter
23119304Speter/* Define to 1 if you have the `gen' library (-lgen). */
23219304Speter#undef HAVE_LIBGEN
23319304Speter
23419304Speter/* Define to 1 if you have the `intl' library (-lintl). */
23519304Speter#undef HAVE_LIBINTL
23619304Speter
237281373Sbapt/* Define to 1 if you have the `PW' library (-lPW). */
23819304Speter#undef HAVE_LIBPW
23919304Speter
240254225Speter/* Define to 1 if you have the <limits.h> header file. */
241254225Speter#undef HAVE_LIMITS_H
242254225Speter
243254225Speter/* Define HAVE_LOCALE if you have locale.h and setlocale. */
244254225Speter#undef HAVE_LOCALE
24519304Speter
24619304Speter/* Define to 1 if you have the <memory.h> header file. */
24719304Speter#undef HAVE_MEMORY_H
24819304Speter
24919304Speter/* Define HAVE_OSPEED if your termcap library has the ospeed variable. */
25019304Speter#undef HAVE_OSPEED
251281373Sbapt
25219304Speter/* PCRE (Perl-compatible regular expression) library */
25319304Speter#undef HAVE_PCRE
254254225Speter
255254225Speter/* Define to 1 if you have the `popen' function. */
256254225Speter#undef HAVE_POPEN
257254225Speter
258254225Speter/* POSIX regcomp() and regex.h */
25919304Speter#undef HAVE_POSIX_REGCOMP
260254225Speter
26119304Speter/* System V regcmp() */
26219304Speter#undef HAVE_REGCMP
26319304Speter
26419304Speter/* */
26519304Speter#undef HAVE_REGEXEC2
266281373Sbapt
26719304Speter/* BSD re_comp() */
26819304Speter#undef HAVE_RE_COMP
269254225Speter
270254225Speter/* Define HAVE_SIGEMPTYSET if you have the sigemptyset macro. */
271254225Speter#undef HAVE_SIGEMPTYSET
272254225Speter
273254225Speter/* Define to 1 if you have the `sigprocmask' function. */
27419304Speter#undef HAVE_SIGPROCMASK
27519304Speter
27619304Speter/* Define to 1 if you have the `sigsetmask' function. */
27719304Speter#undef HAVE_SIGSETMASK
27819304Speter
27919304Speter/* Define to 1 if the system has the type `sigset_t'. */
28019304Speter#undef HAVE_SIGSET_T
28119304Speter
28219304Speter/* Define to 1 if you have the `snprintf' function. */
28319304Speter#undef HAVE_SNPRINTF
28419304Speter
28519304Speter/* Define to 1 if you have the `stat' function. */
28619304Speter#undef HAVE_STAT
287281373Sbapt
28819304Speter/* Define HAVE_STAT_INO if your struct stat has st_ino and st_dev. */
28919304Speter#undef HAVE_STAT_INO
290254225Speter
291254225Speter/* Define to 1 if you have the <stdint.h> header file. */
292254225Speter#undef HAVE_STDINT_H
293254225Speter
294254225Speter/* Define to 1 if you have the <stdio.h> header file. */
29519304Speter#undef HAVE_STDIO_H
29619304Speter
29719304Speter/* Define to 1 if you have the <stdlib.h> header file. */
29819304Speter#undef HAVE_STDLIB_H
29919304Speter
30019304Speter/* Define HAVE_STRERROR if you have the strerror() function. */
30119304Speter#undef HAVE_STRERROR
30219304Speter
30319304Speter/* Define to 1 if you have the <strings.h> header file. */
30419304Speter#undef HAVE_STRINGS_H
30519304Speter
30619304Speter/* Define to 1 if you have the <string.h> header file. */
30719304Speter#undef HAVE_STRING_H
308281373Sbapt
30919304Speter/* Define to 1 if you have the `system' function. */
31019304Speter#undef HAVE_SYSTEM
311254225Speter
312254225Speter/* Define HAVE_SYS_ERRLIST if you have the sys_errlist[] variable. */
313254225Speter#undef HAVE_SYS_ERRLIST
314254225Speter
315254225Speter/* Define to 1 if you have the <sys/ioctl.h> header file. */
31619304Speter#undef HAVE_SYS_IOCTL_H
31719304Speter
31819304Speter/* Define to 1 if you have the <sys/stat.h> header file. */
31919304Speter#undef HAVE_SYS_STAT_H
32019304Speter
32119304Speter/* Define to 1 if you have the <sys/stream.h> header file. */
32219304Speter#undef HAVE_SYS_STREAM_H
32319304Speter
32419304Speter/* Define to 1 if you have the <sys/types.h> header file. */
32519304Speter#undef HAVE_SYS_TYPES_H
32619304Speter
32719304Speter/* Define to 1 if you have the <termcap.h> header file. */
32819304Speter#undef HAVE_TERMCAP_H
329281373Sbapt
33019304Speter/* Define HAVE_TERMIOS_FUNCS if you have tcgetattr/tcsetattr. */
33119304Speter#undef HAVE_TERMIOS_FUNCS
332254225Speter
333254225Speter/* Define to 1 if you have the <termios.h> header file. */
334254225Speter#undef HAVE_TERMIOS_H
335254225Speter
336254225Speter/* Define to 1 if you have the <termio.h> header file. */
33719304Speter#undef HAVE_TERMIO_H
33819304Speter
33919304Speter/* Define to 1 if you have the <time.h> header file. */
34019304Speter#undef HAVE_TIME_H
34119304Speter
34219304Speter/* Define HAVE_TIME_T if your system supports the "time_t" type. */
343254225Speter#undef HAVE_TIME_T
344254225Speter
345281373Sbapt/* Define to 1 if you have the <unistd.h> header file. */
346254225Speter#undef HAVE_UNISTD_H
347254225Speter
348254225Speter/* Define HAVE_UPPER_LOWER if you have isupper, islower, toupper, tolower. */
349254225Speter#undef HAVE_UPPER_LOWER
350254225Speter
351254225Speter/* Henry Spencer V8 regcomp() and regexp.h */
352254225Speter#undef HAVE_V8_REGCOMP
353254225Speter
354254225Speter/* Define to 1 if you have the <values.h> header file. */
355254225Speter#undef HAVE_VALUES_H
356254225Speter
357254225Speter/* Define HAVE_VOID if your compiler supports the "void" type. */
358#undef HAVE_VOID
359
360/* Define HAVE_WCTYPE if you have iswupper, iswlower, towupper, towlower. */
361#undef HAVE_WCTYPE
362
363/* Define to 1 if you have the <wctype.h> header file. */
364#undef HAVE_WCTYPE_H
365
366/* Define to 1 if you have the `_setjmp' function. */
367#undef HAVE__SETJMP
368
369/* Define MUST_DEFINE_ERRNO if you have errno but it is not define in errno.h.
370   */
371#undef MUST_DEFINE_ERRNO
372
373/* Define MUST_DEFINE_OSPEED if you have ospeed but it is not defined in
374   termcap.h. */
375#undef MUST_DEFINE_OSPEED
376
377/* pattern matching is supported, but without metacharacters. */
378#undef NO_REGEX
379
380/* Define to the address where bug reports for this package should be sent. */
381#undef PACKAGE_BUGREPORT
382
383/* Define to the full name of this package. */
384#undef PACKAGE_NAME
385
386/* Define to the full name and version of this package. */
387#undef PACKAGE_STRING
388
389/* Define to the one symbol short name of this package. */
390#undef PACKAGE_TARNAME
391
392/* Define to the home page for this package. */
393#undef PACKAGE_URL
394
395/* Define to the version of this package. */
396#undef PACKAGE_VERSION
397
398/* Define as the return type of signal handlers (`int' or `void'). */
399#undef RETSIGTYPE
400
401/* Define SECURE_COMPILE=1 to build a secure version of less. */
402#undef SECURE_COMPILE
403
404/* Define to 1 if the `S_IS*' macros in <sys/stat.h> do not work properly. */
405#undef STAT_MACROS_BROKEN
406
407/* Define to 1 if you have the ANSI C header files. */
408#undef STDC_HEADERS
409
410/* Define to 1 if you can safely include both <sys/time.h> and <time.h>. */
411#undef TIME_WITH_SYS_TIME
412
413/* Number of bits in a file offset, on hosts where this is settable. */
414#undef _FILE_OFFSET_BITS
415
416/* Define for large files, on AIX-style hosts. */
417#undef _LARGE_FILES
418
419/* Define to empty if `const' does not conform to ANSI C. */
420#undef const
421
422/* Define to `long int' if <sys/types.h> does not define. */
423#undef off_t
424
425/* Define to `unsigned int' if <sys/types.h> does not define. */
426#undef size_t
427