defines.h.in revision 89019
160786Sps/* defines.h.in.  Generated automatically from configure.in by autoheader.  */
260786Sps/* Unix definition file for less.  -*- C -*-
360786Sps *
460786Sps * This file has 3 sections:
560786Sps * User preferences.
660786Sps * Settings always true on Unix.
760786Sps * Settings automatically determined by configure.
860786Sps *
960786Sps * * * * * *  WARNING  * * * * * *
1060786Sps * If you edit defines.h by hand, do "touch stamp-h" before you run make
1160786Sps * so config.status doesn't overwrite your changes.
1260786Sps */
1360786Sps
1460786Sps/* User preferences.  */
1560786Sps
1660786Sps/*
1760786Sps * SECURE is 1 if you wish to disable a bunch of features in order to
1860786Sps * be safe to run by unprivileged users.
1960786Sps */
2060786Sps#define	SECURE		0
2160786Sps
2260786Sps/*
2360786Sps * SHELL_ESCAPE is 1 if you wish to allow shell escapes.
2460786Sps * (This is possible only if your system supplies the system() function.)
2560786Sps */
2660786Sps#define	SHELL_ESCAPE	(!SECURE)
2760786Sps
2860786Sps/*
2960786Sps * EXAMINE is 1 if you wish to allow examining files by name from within less.
3060786Sps */
3160786Sps#define	EXAMINE		(!SECURE)
3260786Sps
3360786Sps/*
3460786Sps * TAB_COMPLETE_FILENAME is 1 if you wish to allow the TAB key
3560786Sps * to complete filenames at prompts.
3660786Sps */
3760786Sps#define	TAB_COMPLETE_FILENAME	(!SECURE)
3860786Sps
3960786Sps/*
4060786Sps * CMD_HISTORY is 1 if you wish to allow keys to cycle through
4160786Sps * previous commands at prompts.
4260786Sps */
4360786Sps#define	CMD_HISTORY	1
4460786Sps
4560786Sps/*
4660786Sps * HILITE_SEARCH is 1 if you wish to have search targets to be 
4760786Sps * displayed in standout mode.
4860786Sps */
4960786Sps#define	HILITE_SEARCH	1
5060786Sps
5160786Sps/*
5260786Sps * EDITOR is 1 if you wish to allow editor invocation (the "v" command).
5360786Sps * (This is possible only if your system supplies the system() function.)
5460786Sps * EDIT_PGM is the name of the (default) editor to be invoked.
5560786Sps */
5660786Sps#define	EDITOR		(!SECURE)
5760786Sps
5860786Sps/*
5960786Sps * TAGS is 1 if you wish to support tag files.
6060786Sps */
6160786Sps#define	TAGS		(!SECURE)
6260786Sps
6360786Sps/*
6460786Sps * USERFILE is 1 if you wish to allow a .less file to specify 
6560786Sps * user-defined key bindings.
6660786Sps */
6760786Sps#define	USERFILE	(!SECURE)
6860786Sps
6960786Sps/*
7060786Sps * GLOB is 1 if you wish to have shell metacharacters expanded in filenames.
7160786Sps * This will generally work if your system provides the "popen" function
7260786Sps * and the "echo" shell command.
7360786Sps */
7460786Sps#define	GLOB		(!SECURE)
7560786Sps
7660786Sps/*
7760786Sps * PIPEC is 1 if you wish to have the "|" command
7860786Sps * which allows the user to pipe data into a shell command.
7960786Sps */
8060786Sps#define	PIPEC		(!SECURE)
8160786Sps
8260786Sps/*
8360786Sps * LOGFILE is 1 if you wish to allow the -l option (to create log files).
8460786Sps */
8560786Sps#define	LOGFILE		(!SECURE)
8660786Sps
8760786Sps/*
8860786Sps * GNU_OPTIONS is 1 if you wish to support the GNU-style command
8960786Sps * line options --help and --version.
9060786Sps */
9160786Sps#define	GNU_OPTIONS	1
9260786Sps
9360786Sps/*
9460786Sps * ONLY_RETURN is 1 if you want RETURN to be the only input which
9560786Sps * will continue past an error message.
9660786Sps * Otherwise, any key will continue past an error message.
9760786Sps */
9860786Sps#define	ONLY_RETURN	0
9960786Sps
10060786Sps/*
10160786Sps * LESSKEYFILE is the filename of the default lesskey output file 
10260786Sps * (in the HOME directory).
10360786Sps * LESSKEYFILE_SYS is the filename of the system-wide lesskey output file.
10460786Sps * DEF_LESSKEYINFILE is the filename of the default lesskey input 
10560786Sps * (in the HOME directory).
10660786Sps */
10760786Sps#define	LESSKEYFILE		".less"
10889019Sps#define	LESSKEYFILE_SYS		SYSDIR "/sysless"
10960786Sps#define	DEF_LESSKEYINFILE	".lesskey"
11060786Sps
11160786Sps
11260786Sps/* Settings always true on Unix.  */
11360786Sps
11460786Sps/*
11560786Sps * Define MSDOS_COMPILER if compiling under Microsoft C.
11660786Sps */
11760786Sps#define	MSDOS_COMPILER	0
11860786Sps
11960786Sps/*
12060786Sps * Pathname separator character.
12160786Sps */
12260786Sps#define	PATHNAME_SEP	"/"
12360786Sps
12460786Sps/*
12560786Sps * HAVE_SYS_TYPES_H is 1 if your system has <sys/types.h>.
12660786Sps */
12760786Sps#define HAVE_SYS_TYPES_H	1
12860786Sps
12960786Sps/*
13060786Sps * Define if you have the <sgstat.h> header file.
13160786Sps */
13260786Sps#undef HAVE_SGSTAT_H
13360786Sps
13460786Sps/*
13560786Sps * HAVE_PERROR is 1 if your system has the perror() call.
13660786Sps * (Actually, if it has sys_errlist, sys_nerr and errno.)
13760786Sps */
13860786Sps#define	HAVE_PERROR	1
13960786Sps
14060786Sps/*
14160786Sps * HAVE_TIME is 1 if your system has the time() call.
14260786Sps */
14360786Sps#define	HAVE_TIME	1
14460786Sps
14560786Sps/*
14660786Sps * HAVE_SHELL is 1 if your system supports a SHELL command interpreter.
14760786Sps */
14860786Sps#define	HAVE_SHELL	1
14960786Sps
15060786Sps/*
15160786Sps * Default shell metacharacters and meta-escape character.
15260786Sps */
15360786Sps#define	DEF_METACHARS	"; \t\n'\"()<>|&^`\\"
15460786Sps#define	DEF_METAESCAPE	"\\"
15560786Sps
15660786Sps/* 
15760786Sps * HAVE_DUP is 1 if your system has the dup() call.
15860786Sps */
15960786Sps#define	HAVE_DUP	1
16060786Sps
16160786Sps/*
16260786Sps * Sizes of various buffers.
16360786Sps */
16460786Sps#define	CMDBUF_SIZE	512	/* Buffer for multichar commands */
16560786Sps#define	UNGOT_SIZE	100	/* Max chars to unget() */
16660786Sps#define	LINEBUF_SIZE	1024	/* Max size of line in input file */
16760786Sps#define	OUTBUF_SIZE	1024	/* Output buffer */
16860786Sps#define	PROMPT_SIZE	200	/* Max size of prompt string */
16960786Sps#define	TERMBUF_SIZE	2048	/* Termcap buffer for tgetent */
17060786Sps#define	TERMSBUF_SIZE	1024	/* Buffer to hold termcap strings */
17160786Sps#define	TAGLINE_SIZE	512	/* Max size of line in tags file */
17289019Sps#define	TABSTOP_MAX	32	/* Max number of custom tab stops */
17360786Sps
17460786Sps/* Settings automatically determined by configure.  */
17560786Sps
17660786Sps/* Define to `long' if <sys/types.h> doesn't define.  */
17760786Sps#undef off_t
17860786Sps
17960786Sps/* Define if you need to in order for stat and other things to work.  */
18060786Sps#undef _POSIX_SOURCE
18160786Sps
18260786Sps/* Define as the return type of signal handlers (int or void).  */
18360786Sps#undef RETSIGTYPE
18460786Sps
18560786Sps/* Define if you have the ANSI C header files.  */
18660786Sps#undef STDC_HEADERS
18760786Sps
18860786Sps/*
18960786Sps * Regular expression library.
19060786Sps * Define exactly one of the following to be 1:
19160786Sps * HAVE_POSIX_REGCOMP: POSIX regcomp() and regex.h
19260786Sps * HAVE_PCRE: PCRE (Perl-compatible regular expression) library
19360786Sps * HAVE_RE_COMP: BSD re_comp()
19460786Sps * HAVE_REGCMP: System V regcmp()
19560786Sps * HAVE_V8_REGCOMP: Henry Spencer V8 regcomp() and regexp.h
19660786Sps * NO_REGEX: pattern matching is supported, but without metacharacters.
19760786Sps */
19860786Sps#undef HAVE_POSIX_REGCOMP
19960786Sps#undef HAVE_PCRE
20060786Sps#undef HAVE_RE_COMP
20160786Sps#undef HAVE_REGCMP
20260786Sps#undef HAVE_V8_REGCOMP
20360786Sps#undef NO_REGEX
20460786Sps#undef HAVE_REGEXEC2
20560786Sps
20660786Sps/* Define HAVE_VOID if your compiler supports the "void" type. */
20760786Sps#undef HAVE_VOID
20860786Sps
20960786Sps/* Define HAVE_CONST if your compiler supports the "const" modifier. */
21060786Sps#undef HAVE_CONST
21160786Sps
21260786Sps/* Define HAVE_TIME_T if your system supports the "time_t" type. */
21360786Sps#undef HAVE_TIME_T
21460786Sps
21560786Sps/* Define HAVE_STRERROR if you have the strerror() function. */
21660786Sps#undef HAVE_STRERROR
21760786Sps
21860786Sps/* Define HAVE_FILENO if you have the fileno() macro. */
21960786Sps#undef HAVE_FILENO
22060786Sps
22160786Sps/* Define HAVE_ERRNO if you have the errno variable */
22260786Sps/* Define MUST_DEFINE_ERRNO if you have errno but it is not define 
22360786Sps * in errno.h */
22460786Sps#undef HAVE_ERRNO
22560786Sps#undef MUST_DEFINE_ERRNO
22660786Sps
22760786Sps/* Define HAVE_SYS_ERRLIST if you have the sys_errlist[] variable */
22860786Sps#undef HAVE_SYS_ERRLIST
22960786Sps
23060786Sps/* Define HAVE_OSPEED if your termcap library has the ospeed variable */
23160786Sps/* Define MUST_DEFINE_OSPEED if you have ospeed but it is not defined
23260786Sps * in termcap.h. */
23360786Sps#undef HAVE_OSPEED
23460786Sps#undef MUST_DEFINE_OSPEED
23560786Sps
23660786Sps/* Define HAVE_LOCALE if you have locale.h and setlocale. */
23760786Sps#undef HAVE_LOCALE
23860786Sps
23960786Sps/* Define HAVE_TERMIOS_FUNCS if you have tcgetattr/tcsetattr */
24060786Sps#undef HAVE_TERMIOS_FUNCS
24160786Sps
24260786Sps/* Define HAVE_UPPER_LOWER if you have isupper, islower, toupper, tolower */
24360786Sps#undef HAVE_UPPER_LOWER
24460786Sps
24563128Sps/* Define HAVE_SIGSET_T you have the sigset_t type */
24663128Sps#undef HAVE_SIGSET_T
24763128Sps
24863128Sps/* Define HAVE_SIGEMPTYSET if you have the sigemptyset macro */
24963128Sps#undef HAVE_SIGEMPTYSET
25063128Sps
25160786Sps/* Define EDIT_PGM to your editor. */
25260786Sps#define EDIT_PGM "vi"
25360786Sps
25460786Sps/* Define if you have the _setjmp function.  */
25560786Sps#undef HAVE__SETJMP
25660786Sps
25789019Sps/* Define if you have the fsync function.  */
25889019Sps#undef HAVE_FSYNC
25989019Sps
26060786Sps/* Define if you have the memcpy function.  */
26160786Sps#undef HAVE_MEMCPY
26260786Sps
26360786Sps/* Define if you have the popen function.  */
26460786Sps#undef HAVE_POPEN
26560786Sps
26663128Sps/* Define if you have the sigprocmask function.  */
26763128Sps#undef HAVE_SIGPROCMASK
26863128Sps
26960786Sps/* Define if you have the sigsetmask function.  */
27060786Sps#undef HAVE_SIGSETMASK
27160786Sps
27260786Sps/* Define if you have the stat function.  */
27360786Sps#undef HAVE_STAT
27460786Sps
27560786Sps/* Define if you have the strchr function.  */
27660786Sps#undef HAVE_STRCHR
27760786Sps
27860786Sps/* Define if you have the strstr function.  */
27960786Sps#undef HAVE_STRSTR
28060786Sps
28160786Sps/* Define if you have the system function.  */
28260786Sps#undef HAVE_SYSTEM
28360786Sps
28460786Sps/* Define if you have the <ctype.h> header file.  */
28560786Sps#undef HAVE_CTYPE_H
28660786Sps
28760786Sps/* Define if you have the <errno.h> header file.  */
28860786Sps#undef HAVE_ERRNO_H
28960786Sps
29060786Sps/* Define if you have the <fcntl.h> header file.  */
29160786Sps#undef HAVE_FCNTL_H
29260786Sps
29360786Sps/* Define if you have the <limits.h> header file.  */
29460786Sps#undef HAVE_LIMITS_H
29560786Sps
29660786Sps/* Define if you have the <stdio.h> header file.  */
29760786Sps#undef HAVE_STDIO_H
29860786Sps
29960786Sps/* Define if you have the <stdlib.h> header file.  */
30060786Sps#undef HAVE_STDLIB_H
30160786Sps
30260786Sps/* Define if you have the <string.h> header file.  */
30360786Sps#undef HAVE_STRING_H
30460786Sps
30560786Sps/* Define if you have the <sys/ioctl.h> header file.  */
30660786Sps#undef HAVE_SYS_IOCTL_H
30760786Sps
30860786Sps/* Define if you have the <sys/ptem.h> header file.  */
30960786Sps#undef HAVE_SYS_PTEM_H
31060786Sps
31160786Sps/* Define if you have the <sys/stream.h> header file.  */
31260786Sps#undef HAVE_SYS_STREAM_H
31360786Sps
31460786Sps/* Define if you have the <termcap.h> header file.  */
31560786Sps#undef HAVE_TERMCAP_H
31660786Sps
31760786Sps/* Define if you have the <termio.h> header file.  */
31860786Sps#undef HAVE_TERMIO_H
31960786Sps
32060786Sps/* Define if you have the <termios.h> header file.  */
32160786Sps#undef HAVE_TERMIOS_H
32260786Sps
32360786Sps/* Define if you have the <time.h> header file.  */
32460786Sps#undef HAVE_TIME_H
32560786Sps
32660786Sps/* Define if you have the <unistd.h> header file.  */
32760786Sps#undef HAVE_UNISTD_H
32860786Sps
32960786Sps/* Define if you have the <values.h> header file.  */
33060786Sps#undef HAVE_VALUES_H
33160786Sps
33260786Sps/* Define if you have the PW library (-lPW).  */
33360786Sps#undef HAVE_LIBPW
33460786Sps
33560786Sps/* Define if you have the gen library (-lgen).  */
33660786Sps#undef HAVE_LIBGEN
33760786Sps
33860786Sps/* Define if you have the intl library (-lintl).  */
33960786Sps#undef HAVE_LIBINTL
340