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