defines.h.in revision 63128
1169092Sdeischen/* defines.h.in.  Generated automatically from configure.in by autoheader.  */
2169092Sdeischen/* Unix definition file for less.  -*- C -*-
3169092Sdeischen *
4156956Sume * This file has 3 sections:
5156956Sume * User preferences.
6169092Sdeischen * Settings always true on Unix.
7156956Sume * Settings automatically determined by configure.
8156956Sume *
9156956Sume * * * * * *  WARNING  * * * * * *
10156956Sume * If you edit defines.h by hand, do "touch stamp-h" before you run make
11156956Sume * so config.status doesn't overwrite your changes.
12156956Sume */
13156956Sume
14156956Sume/* User preferences.  */
15156956Sume
16156956Sume/*
17156956Sume * SECURE is 1 if you wish to disable a bunch of features in order to
18156956Sume * be safe to run by unprivileged users.
19156956Sume */
20156956Sume#define	SECURE		0
21156956Sume
22156956Sume/*
23156956Sume * SHELL_ESCAPE is 1 if you wish to allow shell escapes.
24156956Sume * (This is possible only if your system supplies the system() function.)
25156956Sume */
26156956Sume#define	SHELL_ESCAPE	(!SECURE)
27156956Sume
28156956Sume/*
29156956Sume * EXAMINE is 1 if you wish to allow examining files by name from within less.
30156956Sume */
31156956Sume#define	EXAMINE		(!SECURE)
32156956Sume
33156956Sume/*
34168441Skan * TAB_COMPLETE_FILENAME is 1 if you wish to allow the TAB key
35156956Sume * to complete filenames at prompts.
36156956Sume */
37156956Sume#define	TAB_COMPLETE_FILENAME	(!SECURE)
38156956Sume
39156956Sume/*
40156956Sume * CMD_HISTORY is 1 if you wish to allow keys to cycle through
41156956Sume * previous commands at prompts.
42156956Sume */
43156956Sume#define	CMD_HISTORY	1
44156956Sume
45156956Sume/*
46156956Sume * HILITE_SEARCH is 1 if you wish to have search targets to be 
47156956Sume * displayed in standout mode.
48156956Sume */
49156956Sume#define	HILITE_SEARCH	1
50156956Sume
51156956Sume/*
52156956Sume * EDITOR is 1 if you wish to allow editor invocation (the "v" command).
53156956Sume * (This is possible only if your system supplies the system() function.)
54156956Sume * EDIT_PGM is the name of the (default) editor to be invoked.
55156956Sume */
56156956Sume#define	EDITOR		(!SECURE)
57156956Sume
58156956Sume/*
59156956Sume * TAGS is 1 if you wish to support tag files.
60156956Sume */
61156956Sume#define	TAGS		(!SECURE)
62156956Sume
63156956Sume/*
64158787Sume * USERFILE is 1 if you wish to allow a .less file to specify 
65158787Sume * user-defined key bindings.
66156956Sume */
67156956Sume#define	USERFILE	(!SECURE)
68158787Sume
69158787Sume/*
70156956Sume * GLOB is 1 if you wish to have shell metacharacters expanded in filenames.
71156956Sume * This will generally work if your system provides the "popen" function
72156956Sume * and the "echo" shell command.
73156956Sume */
74156956Sume#define	GLOB		(!SECURE)
75156956Sume
76156956Sume/*
77156956Sume * PIPEC is 1 if you wish to have the "|" command
78156956Sume * which allows the user to pipe data into a shell command.
79158787Sume */
80156956Sume#define	PIPEC		(!SECURE)
81156956Sume
82156956Sume/*
83156956Sume * LOGFILE is 1 if you wish to allow the -l option (to create log files).
84156956Sume */
85158787Sume#define	LOGFILE		(!SECURE)
86156956Sume
87156956Sume/*
88156956Sume * GNU_OPTIONS is 1 if you wish to support the GNU-style command
89156956Sume * line options --help and --version.
90156956Sume */
91156956Sume#define	GNU_OPTIONS	1
92157282Sdeischen
93156956Sume/*
94156956Sume * ONLY_RETURN is 1 if you want RETURN to be the only input which
95156956Sume * will continue past an error message.
96156956Sume * Otherwise, any key will continue past an error message.
97156956Sume */
98156956Sume#define	ONLY_RETURN	0
99156956Sume
100156956Sume/*
101156956Sume * LESSKEYFILE is the filename of the default lesskey output file 
102156956Sume * (in the HOME directory).
103156956Sume * LESSKEYFILE_SYS is the filename of the system-wide lesskey output file.
104156956Sume * DEF_LESSKEYINFILE is the filename of the default lesskey input 
105156956Sume * (in the HOME directory).
106158787Sume */
107156956Sume#define	LESSKEYFILE		".less"
108#define	LESSKEYFILE_SYS		SYSDIR "/.sysless"
109#define	DEF_LESSKEYINFILE	".lesskey"
110
111
112/* Settings always true on Unix.  */
113
114/*
115 * Define MSDOS_COMPILER if compiling under Microsoft C.
116 */
117#define	MSDOS_COMPILER	0
118
119/*
120 * Pathname separator character.
121 */
122#define	PATHNAME_SEP	"/"
123
124/*
125 * HAVE_SYS_TYPES_H is 1 if your system has <sys/types.h>.
126 */
127#define HAVE_SYS_TYPES_H	1
128
129/*
130 * Define if you have the <sgstat.h> header file.
131 */
132#undef HAVE_SGSTAT_H
133
134/*
135 * HAVE_PERROR is 1 if your system has the perror() call.
136 * (Actually, if it has sys_errlist, sys_nerr and errno.)
137 */
138#define	HAVE_PERROR	1
139
140/*
141 * HAVE_TIME is 1 if your system has the time() call.
142 */
143#define	HAVE_TIME	1
144
145/*
146 * HAVE_SHELL is 1 if your system supports a SHELL command interpreter.
147 */
148#define	HAVE_SHELL	1
149
150/*
151 * Default shell metacharacters and meta-escape character.
152 */
153#define	DEF_METACHARS	"; \t\n'\"()<>|&^`\\"
154#define	DEF_METAESCAPE	"\\"
155
156/* 
157 * HAVE_DUP is 1 if your system has the dup() call.
158 */
159#define	HAVE_DUP	1
160
161/*
162 * Sizes of various buffers.
163 */
164#define	CMDBUF_SIZE	512	/* Buffer for multichar commands */
165#define	UNGOT_SIZE	100	/* Max chars to unget() */
166#define	LINEBUF_SIZE	1024	/* Max size of line in input file */
167#define	OUTBUF_SIZE	1024	/* Output buffer */
168#define	PROMPT_SIZE	200	/* Max size of prompt string */
169#define	TERMBUF_SIZE	2048	/* Termcap buffer for tgetent */
170#define	TERMSBUF_SIZE	1024	/* Buffer to hold termcap strings */
171#define	TAGLINE_SIZE	512	/* Max size of line in tags file */
172
173/* Settings automatically determined by configure.  */
174
175/* Define to `long' if <sys/types.h> doesn't define.  */
176#undef off_t
177
178/* Define if you need to in order for stat and other things to work.  */
179#undef _POSIX_SOURCE
180
181/* Define as the return type of signal handlers (int or void).  */
182#undef RETSIGTYPE
183
184/* Define if you have the ANSI C header files.  */
185#undef STDC_HEADERS
186
187/*
188 * Regular expression library.
189 * Define exactly one of the following to be 1:
190 * HAVE_POSIX_REGCOMP: POSIX regcomp() and regex.h
191 * HAVE_PCRE: PCRE (Perl-compatible regular expression) library
192 * HAVE_RE_COMP: BSD re_comp()
193 * HAVE_REGCMP: System V regcmp()
194 * HAVE_V8_REGCOMP: Henry Spencer V8 regcomp() and regexp.h
195 * NO_REGEX: pattern matching is supported, but without metacharacters.
196 */
197#undef HAVE_POSIX_REGCOMP
198#undef HAVE_PCRE
199#undef HAVE_RE_COMP
200#undef HAVE_REGCMP
201#undef HAVE_V8_REGCOMP
202#undef NO_REGEX
203#undef HAVE_REGEXEC2
204
205/* Define HAVE_VOID if your compiler supports the "void" type. */
206#undef HAVE_VOID
207
208/* Define HAVE_CONST if your compiler supports the "const" modifier. */
209#undef HAVE_CONST
210
211/* Define HAVE_TIME_T if your system supports the "time_t" type. */
212#undef HAVE_TIME_T
213
214/* Define HAVE_STRERROR if you have the strerror() function. */
215#undef HAVE_STRERROR
216
217/* Define HAVE_FILENO if you have the fileno() macro. */
218#undef HAVE_FILENO
219
220/* Define HAVE_ERRNO if you have the errno variable */
221/* Define MUST_DEFINE_ERRNO if you have errno but it is not define 
222 * in errno.h */
223#undef HAVE_ERRNO
224#undef MUST_DEFINE_ERRNO
225
226/* Define HAVE_SYS_ERRLIST if you have the sys_errlist[] variable */
227#undef HAVE_SYS_ERRLIST
228
229/* Define HAVE_OSPEED if your termcap library has the ospeed variable */
230/* Define MUST_DEFINE_OSPEED if you have ospeed but it is not defined
231 * in termcap.h. */
232#undef HAVE_OSPEED
233#undef MUST_DEFINE_OSPEED
234
235/* Define HAVE_LOCALE if you have locale.h and setlocale. */
236#undef HAVE_LOCALE
237
238/* Define HAVE_TERMIOS_FUNCS if you have tcgetattr/tcsetattr */
239#undef HAVE_TERMIOS_FUNCS
240
241/* Define HAVE_UPPER_LOWER if you have isupper, islower, toupper, tolower */
242#undef HAVE_UPPER_LOWER
243
244/* Define HAVE_SIGSET_T you have the sigset_t type */
245#undef HAVE_SIGSET_T
246
247/* Define HAVE_SIGEMPTYSET if you have the sigemptyset macro */
248#undef HAVE_SIGEMPTYSET
249
250/* Define EDIT_PGM to your editor. */
251#define EDIT_PGM "vi"
252
253/* Define if you have the _setjmp function.  */
254#undef HAVE__SETJMP
255
256/* Define if you have the memcpy function.  */
257#undef HAVE_MEMCPY
258
259/* Define if you have the popen function.  */
260#undef HAVE_POPEN
261
262/* Define if you have the sigprocmask function.  */
263#undef HAVE_SIGPROCMASK
264
265/* Define if you have the sigsetmask function.  */
266#undef HAVE_SIGSETMASK
267
268/* Define if you have the stat function.  */
269#undef HAVE_STAT
270
271/* Define if you have the strchr function.  */
272#undef HAVE_STRCHR
273
274/* Define if you have the strstr function.  */
275#undef HAVE_STRSTR
276
277/* Define if you have the system function.  */
278#undef HAVE_SYSTEM
279
280/* Define if you have the <ctype.h> header file.  */
281#undef HAVE_CTYPE_H
282
283/* Define if you have the <errno.h> header file.  */
284#undef HAVE_ERRNO_H
285
286/* Define if you have the <fcntl.h> header file.  */
287#undef HAVE_FCNTL_H
288
289/* Define if you have the <limits.h> header file.  */
290#undef HAVE_LIMITS_H
291
292/* Define if you have the <stdio.h> header file.  */
293#undef HAVE_STDIO_H
294
295/* Define if you have the <stdlib.h> header file.  */
296#undef HAVE_STDLIB_H
297
298/* Define if you have the <string.h> header file.  */
299#undef HAVE_STRING_H
300
301/* Define if you have the <sys/ioctl.h> header file.  */
302#undef HAVE_SYS_IOCTL_H
303
304/* Define if you have the <sys/ptem.h> header file.  */
305#undef HAVE_SYS_PTEM_H
306
307/* Define if you have the <sys/stream.h> header file.  */
308#undef HAVE_SYS_STREAM_H
309
310/* Define if you have the <termcap.h> header file.  */
311#undef HAVE_TERMCAP_H
312
313/* Define if you have the <termio.h> header file.  */
314#undef HAVE_TERMIO_H
315
316/* Define if you have the <termios.h> header file.  */
317#undef HAVE_TERMIOS_H
318
319/* Define if you have the <time.h> header file.  */
320#undef HAVE_TIME_H
321
322/* Define if you have the <unistd.h> header file.  */
323#undef HAVE_UNISTD_H
324
325/* Define if you have the <values.h> header file.  */
326#undef HAVE_VALUES_H
327
328/* Define if you have the PW library (-lPW).  */
329#undef HAVE_LIBPW
330
331/* Define if you have the gen library (-lgen).  */
332#undef HAVE_LIBGEN
333
334/* Define if you have the intl library (-lintl).  */
335#undef HAVE_LIBINTL
336