1128345Stjr/* defines.h.in. Generated from configure.ac by autoheader. */ 2128345Stjr 3128345Stjr 460786Sps/* Unix definition file for less. -*- C -*- 560786Sps * 660786Sps * This file has 3 sections: 760786Sps * User preferences. 860786Sps * Settings always true on Unix. 960786Sps * Settings automatically determined by configure. 1060786Sps * 1160786Sps * * * * * * WARNING * * * * * * 1260786Sps * If you edit defines.h by hand, do "touch stamp-h" before you run make 1360786Sps * so config.status doesn't overwrite your changes. 1460786Sps */ 15128345Stjr 1660786Sps/* User preferences. */ 1760786Sps 1860786Sps/* 1960786Sps * SECURE is 1 if you wish to disable a bunch of features in order to 2060786Sps * be safe to run by unprivileged users. 21161475Sdelphij * SECURE_COMPILE is set by the --with-secure configure option. 2260786Sps */ 23161475Sdelphij#define SECURE SECURE_COMPILE 2460786Sps 2560786Sps/* 2660786Sps * SHELL_ESCAPE is 1 if you wish to allow shell escapes. 2760786Sps * (This is possible only if your system supplies the system() function.) 2860786Sps */ 2960786Sps#define SHELL_ESCAPE (!SECURE) 3060786Sps 3160786Sps/* 3260786Sps * EXAMINE is 1 if you wish to allow examining files by name from within less. 3360786Sps */ 3460786Sps#define EXAMINE (!SECURE) 3560786Sps 3660786Sps/* 3760786Sps * TAB_COMPLETE_FILENAME is 1 if you wish to allow the TAB key 3860786Sps * to complete filenames at prompts. 3960786Sps */ 4060786Sps#define TAB_COMPLETE_FILENAME (!SECURE) 4160786Sps 4260786Sps/* 4360786Sps * CMD_HISTORY is 1 if you wish to allow keys to cycle through 4460786Sps * previous commands at prompts. 4560786Sps */ 4660786Sps#define CMD_HISTORY 1 4760786Sps 4860786Sps/* 4960786Sps * HILITE_SEARCH is 1 if you wish to have search targets to be 5060786Sps * displayed in standout mode. 5160786Sps */ 5260786Sps#define HILITE_SEARCH 1 5360786Sps 5460786Sps/* 5560786Sps * EDITOR is 1 if you wish to allow editor invocation (the "v" command). 5660786Sps * (This is possible only if your system supplies the system() function.) 5760786Sps * EDIT_PGM is the name of the (default) editor to be invoked. 5860786Sps */ 5960786Sps#define EDITOR (!SECURE) 6060786Sps 6160786Sps/* 6260786Sps * TAGS is 1 if you wish to support tag files. 6360786Sps */ 6460786Sps#define TAGS (!SECURE) 6560786Sps 6660786Sps/* 6760786Sps * USERFILE is 1 if you wish to allow a .less file to specify 6860786Sps * user-defined key bindings. 6960786Sps */ 7060786Sps#define USERFILE (!SECURE) 7160786Sps 7260786Sps/* 7360786Sps * GLOB is 1 if you wish to have shell metacharacters expanded in filenames. 7460786Sps * This will generally work if your system provides the "popen" function 7560786Sps * and the "echo" shell command. 7660786Sps */ 7760786Sps#define GLOB (!SECURE) 7860786Sps 7960786Sps/* 8060786Sps * PIPEC is 1 if you wish to have the "|" command 8160786Sps * which allows the user to pipe data into a shell command. 8260786Sps */ 8360786Sps#define PIPEC (!SECURE) 8460786Sps 8560786Sps/* 8660786Sps * LOGFILE is 1 if you wish to allow the -l option (to create log files). 8760786Sps */ 8860786Sps#define LOGFILE (!SECURE) 8960786Sps 9060786Sps/* 9160786Sps * GNU_OPTIONS is 1 if you wish to support the GNU-style command 9260786Sps * line options --help and --version. 9360786Sps */ 9460786Sps#define GNU_OPTIONS 1 9560786Sps 9660786Sps/* 9760786Sps * ONLY_RETURN is 1 if you want RETURN to be the only input which 9860786Sps * will continue past an error message. 9960786Sps * Otherwise, any key will continue past an error message. 10060786Sps */ 10160786Sps#define ONLY_RETURN 0 10260786Sps 10360786Sps/* 10460786Sps * LESSKEYFILE is the filename of the default lesskey output file 10560786Sps * (in the HOME directory). 10660786Sps * LESSKEYFILE_SYS is the filename of the system-wide lesskey output file. 10760786Sps * DEF_LESSKEYINFILE is the filename of the default lesskey input 10860786Sps * (in the HOME directory). 109161475Sdelphij * LESSHISTFILE is the filename of the history file 110161475Sdelphij * (in the HOME directory). 11160786Sps */ 11260786Sps#define LESSKEYFILE ".less" 11389019Sps#define LESSKEYFILE_SYS SYSDIR "/sysless" 11460786Sps#define DEF_LESSKEYINFILE ".lesskey" 115161475Sdelphij#define LESSHISTFILE ".lesshst" 11660786Sps 117128345Stjr 11860786Sps/* Settings always true on Unix. */ 11960786Sps 12060786Sps/* 12160786Sps * Define MSDOS_COMPILER if compiling under Microsoft C. 12260786Sps */ 12360786Sps#define MSDOS_COMPILER 0 12460786Sps 12560786Sps/* 12660786Sps * Pathname separator character. 12760786Sps */ 12860786Sps#define PATHNAME_SEP "/" 12960786Sps 13060786Sps/* 131170256Sdelphij * The value returned from tgetent on success. 132170256Sdelphij * Some HP-UX systems return 0 on success. 133170256Sdelphij */ 134170256Sdelphij#define TGETENT_OK 1 135170256Sdelphij 136170256Sdelphij/* 13760786Sps * HAVE_SYS_TYPES_H is 1 if your system has <sys/types.h>. 13860786Sps */ 13960786Sps#define HAVE_SYS_TYPES_H 1 14060786Sps 14160786Sps/* 14260786Sps * Define if you have the <sgstat.h> header file. 14360786Sps */ 14460786Sps#undef HAVE_SGSTAT_H 14560786Sps 14660786Sps/* 14760786Sps * HAVE_PERROR is 1 if your system has the perror() call. 14860786Sps * (Actually, if it has sys_errlist, sys_nerr and errno.) 14960786Sps */ 15060786Sps#define HAVE_PERROR 1 15160786Sps 15260786Sps/* 15360786Sps * HAVE_TIME is 1 if your system has the time() call. 15460786Sps */ 15560786Sps#define HAVE_TIME 1 15660786Sps 15760786Sps/* 15860786Sps * HAVE_SHELL is 1 if your system supports a SHELL command interpreter. 15960786Sps */ 16060786Sps#define HAVE_SHELL 1 16160786Sps 16260786Sps/* 16360786Sps * Default shell metacharacters and meta-escape character. 16460786Sps */ 165170256Sdelphij#define DEF_METACHARS "; *?\t\n'\"()<>[]|&^`#\\$%=~" 16660786Sps#define DEF_METAESCAPE "\\" 16760786Sps 16860786Sps/* 16960786Sps * HAVE_DUP is 1 if your system has the dup() call. 17060786Sps */ 17160786Sps#define HAVE_DUP 1 17260786Sps 173170256Sdelphij/* Define to 1 if you have the memcpy() function. */ 174170256Sdelphij#define HAVE_MEMCPY 1 175170256Sdelphij 176170256Sdelphij/* Define to 1 if you have the strchr() function. */ 177170256Sdelphij#define HAVE_STRCHR 1 178170256Sdelphij 179170256Sdelphij/* Define to 1 if you have the strstr() function. */ 180170256Sdelphij#define HAVE_STRSTR 1 181170256Sdelphij 18260786Sps/* 18360786Sps * Sizes of various buffers. 18460786Sps */ 185251154Sdelphij#if 0 /* old sizes for small memory machines */ 18660786Sps#define CMDBUF_SIZE 512 /* Buffer for multichar commands */ 18760786Sps#define UNGOT_SIZE 100 /* Max chars to unget() */ 18860786Sps#define LINEBUF_SIZE 1024 /* Max size of line in input file */ 18960786Sps#define OUTBUF_SIZE 1024 /* Output buffer */ 19060786Sps#define PROMPT_SIZE 200 /* Max size of prompt string */ 19160786Sps#define TERMBUF_SIZE 2048 /* Termcap buffer for tgetent */ 19260786Sps#define TERMSBUF_SIZE 1024 /* Buffer to hold termcap strings */ 19360786Sps#define TAGLINE_SIZE 512 /* Max size of line in tags file */ 19489019Sps#define TABSTOP_MAX 32 /* Max number of custom tab stops */ 195251154Sdelphij#else /* more reasonable sizes for modern machines */ 196251154Sdelphij#define CMDBUF_SIZE 2048 /* Buffer for multichar commands */ 197251154Sdelphij#define UNGOT_SIZE 200 /* Max chars to unget() */ 198251154Sdelphij#define LINEBUF_SIZE 1024 /* Initial max size of line in input file */ 199251154Sdelphij#define OUTBUF_SIZE 1024 /* Output buffer */ 200251154Sdelphij#define PROMPT_SIZE 2048 /* Max size of prompt string */ 201251154Sdelphij#define TERMBUF_SIZE 2048 /* Termcap buffer for tgetent */ 202251154Sdelphij#define TERMSBUF_SIZE 1024 /* Buffer to hold termcap strings */ 203251154Sdelphij#define TAGLINE_SIZE 1024 /* Max size of line in tags file */ 204251154Sdelphij#define TABSTOP_MAX 128 /* Max number of custom tab stops */ 205251154Sdelphij#endif 206128345Stjr 20760786Sps/* Settings automatically determined by configure. */ 20860786Sps 20960786Sps 210128345Stjr/* Define EDIT_PGM to your editor. */ 211128345Stjr#undef EDIT_PGM 21260786Sps 213128345Stjr/* Define HAVE_CONST if your compiler supports the "const" modifier. */ 214128345Stjr#undef HAVE_CONST 21560786Sps 216128345Stjr/* Define to 1 if you have the <ctype.h> header file. */ 217128345Stjr#undef HAVE_CTYPE_H 21860786Sps 219128345Stjr/* Define HAVE_ERRNO if you have the errno variable. */ 220128345Stjr#undef HAVE_ERRNO 22160786Sps 222128345Stjr/* Define to 1 if you have the <errno.h> header file. */ 223128345Stjr#undef HAVE_ERRNO_H 22460786Sps 225161475Sdelphij/* Define to 1 if you have the `fchmod' function. */ 226161475Sdelphij#undef HAVE_FCHMOD 227161475Sdelphij 228128345Stjr/* Define to 1 if you have the <fcntl.h> header file. */ 229128345Stjr#undef HAVE_FCNTL_H 23060786Sps 23160786Sps/* Define HAVE_FILENO if you have the fileno() macro. */ 23260786Sps#undef HAVE_FILENO 23360786Sps 234221715Sdelphij/* Define HAVE_FLOAT if your compiler supports the "double" type. */ 235221715Sdelphij#undef HAVE_FLOAT 236221715Sdelphij 237128345Stjr/* Define to 1 if you have the `fsync' function. */ 238128345Stjr#undef HAVE_FSYNC 23960786Sps 240240121Sdelphij/* GNU regex library */ 241240121Sdelphij#undef HAVE_GNU_REGEX 242240121Sdelphij 243128345Stjr/* Define to 1 if you have the <inttypes.h> header file. */ 244128345Stjr#undef HAVE_INTTYPES_H 24560786Sps 246128345Stjr/* Define to 1 if you have the <limits.h> header file. */ 247128345Stjr#undef HAVE_LIMITS_H 248128345Stjr 24960786Sps/* Define HAVE_LOCALE if you have locale.h and setlocale. */ 25060786Sps#undef HAVE_LOCALE 25160786Sps 252128345Stjr/* Define to 1 if you have the <memory.h> header file. */ 253128345Stjr#undef HAVE_MEMORY_H 25460786Sps 255128345Stjr/* Define HAVE_OSPEED if your termcap library has the ospeed variable. */ 256128345Stjr#undef HAVE_OSPEED 25763128Sps 258128345Stjr/* PCRE (Perl-compatible regular expression) library */ 259128345Stjr#undef HAVE_PCRE 26063128Sps 261128345Stjr/* Define to 1 if you have the `popen' function. */ 262128345Stjr#undef HAVE_POPEN 26360786Sps 264128345Stjr/* POSIX regcomp() and regex.h */ 265128345Stjr#undef HAVE_POSIX_REGCOMP 26660786Sps 267128345Stjr/* System V regcmp() */ 268128345Stjr#undef HAVE_REGCMP 26989019Sps 270128345Stjr/* */ 271128345Stjr#undef HAVE_REGEXEC2 27260786Sps 273128345Stjr/* BSD re_comp() */ 274128345Stjr#undef HAVE_RE_COMP 27560786Sps 276128345Stjr/* Define HAVE_SIGEMPTYSET if you have the sigemptyset macro. */ 277128345Stjr#undef HAVE_SIGEMPTYSET 278128345Stjr 279128345Stjr/* Define to 1 if you have the `sigprocmask' function. */ 28063128Sps#undef HAVE_SIGPROCMASK 28163128Sps 282128345Stjr/* Define to 1 if you have the `sigsetmask' function. */ 28360786Sps#undef HAVE_SIGSETMASK 28460786Sps 285170256Sdelphij/* Define to 1 if the system has the type `sigset_t'. */ 286128345Stjr#undef HAVE_SIGSET_T 287128345Stjr 288161475Sdelphij/* Define to 1 if you have the `snprintf' function. */ 289161475Sdelphij#undef HAVE_SNPRINTF 290161475Sdelphij 291128345Stjr/* Define to 1 if you have the `stat' function. */ 29260786Sps#undef HAVE_STAT 29360786Sps 294173682Sdelphij/* Define HAVE_STAT_INO if your struct stat has st_ino and st_dev. */ 295173682Sdelphij#undef HAVE_STAT_INO 296173682Sdelphij 297128345Stjr/* Define to 1 if you have the <stdint.h> header file. */ 298128345Stjr#undef HAVE_STDINT_H 29960786Sps 300128345Stjr/* Define to 1 if you have the <stdio.h> header file. */ 301128345Stjr#undef HAVE_STDIO_H 30260786Sps 303128345Stjr/* Define to 1 if you have the <stdlib.h> header file. */ 304128345Stjr#undef HAVE_STDLIB_H 30560786Sps 306128345Stjr/* Define HAVE_STRERROR if you have the strerror() function. */ 307128345Stjr#undef HAVE_STRERROR 30860786Sps 309128345Stjr/* Define to 1 if you have the <strings.h> header file. */ 310128345Stjr#undef HAVE_STRINGS_H 31160786Sps 312128345Stjr/* Define to 1 if you have the <string.h> header file. */ 313128345Stjr#undef HAVE_STRING_H 31460786Sps 315128345Stjr/* Define to 1 if you have the `system' function. */ 316128345Stjr#undef HAVE_SYSTEM 31760786Sps 318128345Stjr/* Define HAVE_SYS_ERRLIST if you have the sys_errlist[] variable. */ 319128345Stjr#undef HAVE_SYS_ERRLIST 32060786Sps 321128345Stjr/* Define to 1 if you have the <sys/ioctl.h> header file. */ 32260786Sps#undef HAVE_SYS_IOCTL_H 32360786Sps 324128345Stjr/* Define to 1 if you have the <sys/stat.h> header file. */ 325128345Stjr#undef HAVE_SYS_STAT_H 326128345Stjr 327128345Stjr/* Define to 1 if you have the <sys/stream.h> header file. */ 32860786Sps#undef HAVE_SYS_STREAM_H 32960786Sps 330128345Stjr/* Define to 1 if you have the <sys/types.h> header file. */ 331128345Stjr#undef HAVE_SYS_TYPES_H 332128345Stjr 333128345Stjr/* Define to 1 if you have the <termcap.h> header file. */ 33460786Sps#undef HAVE_TERMCAP_H 33560786Sps 336128345Stjr/* Define HAVE_TERMIOS_FUNCS if you have tcgetattr/tcsetattr. */ 337128345Stjr#undef HAVE_TERMIOS_FUNCS 33860786Sps 339128345Stjr/* Define to 1 if you have the <termios.h> header file. */ 34060786Sps#undef HAVE_TERMIOS_H 34160786Sps 342128345Stjr/* Define to 1 if you have the <termio.h> header file. */ 343128345Stjr#undef HAVE_TERMIO_H 344128345Stjr 345128345Stjr/* Define to 1 if you have the <time.h> header file. */ 34660786Sps#undef HAVE_TIME_H 34760786Sps 348128345Stjr/* Define HAVE_TIME_T if your system supports the "time_t" type. */ 349128345Stjr#undef HAVE_TIME_T 350128345Stjr 351128345Stjr/* Define to 1 if you have the <unistd.h> header file. */ 35260786Sps#undef HAVE_UNISTD_H 35360786Sps 354128345Stjr/* Define HAVE_UPPER_LOWER if you have isupper, islower, toupper, tolower. */ 355128345Stjr#undef HAVE_UPPER_LOWER 356128345Stjr 357128345Stjr/* Henry Spencer V8 regcomp() and regexp.h */ 358128345Stjr#undef HAVE_V8_REGCOMP 359128345Stjr 360128345Stjr/* Define to 1 if you have the <values.h> header file. */ 36160786Sps#undef HAVE_VALUES_H 36260786Sps 363128345Stjr/* Define HAVE_VOID if your compiler supports the "void" type. */ 364128345Stjr#undef HAVE_VOID 36560786Sps 366173682Sdelphij/* Define HAVE_WCTYPE if you have iswupper, iswlower, towupper, towlower. */ 367173682Sdelphij#undef HAVE_WCTYPE 368173682Sdelphij 369173682Sdelphij/* Define to 1 if you have the <wctype.h> header file. */ 370173682Sdelphij#undef HAVE_WCTYPE_H 371173682Sdelphij 372128345Stjr/* Define to 1 if you have the `_setjmp' function. */ 373128345Stjr#undef HAVE__SETJMP 37460786Sps 375128345Stjr/* Define MUST_DEFINE_ERRNO if you have errno but it is not define in errno.h. 376128345Stjr */ 377128345Stjr#undef MUST_DEFINE_ERRNO 378128345Stjr 379128345Stjr/* Define MUST_DEFINE_OSPEED if you have ospeed but it is not defined in 380128345Stjr termcap.h. */ 381128345Stjr#undef MUST_DEFINE_OSPEED 382128345Stjr 383128345Stjr/* pattern matching is supported, but without metacharacters. */ 384128345Stjr#undef NO_REGEX 385128345Stjr 386128345Stjr/* Define to the address where bug reports for this package should be sent. */ 387128345Stjr#undef PACKAGE_BUGREPORT 388128345Stjr 389128345Stjr/* Define to the full name of this package. */ 390128345Stjr#undef PACKAGE_NAME 391128345Stjr 392128345Stjr/* Define to the full name and version of this package. */ 393128345Stjr#undef PACKAGE_STRING 394128345Stjr 395128345Stjr/* Define to the one symbol short name of this package. */ 396128345Stjr#undef PACKAGE_TARNAME 397128345Stjr 398221715Sdelphij/* Define to the home page for this package. */ 399221715Sdelphij#undef PACKAGE_URL 400221715Sdelphij 401128345Stjr/* Define to the version of this package. */ 402128345Stjr#undef PACKAGE_VERSION 403128345Stjr 404128345Stjr/* Define as the return type of signal handlers (`int' or `void'). */ 405128345Stjr#undef RETSIGTYPE 406128345Stjr 407161475Sdelphij/* Define SECURE_COMPILE=1 to build a secure version of less. */ 408161475Sdelphij#undef SECURE_COMPILE 409161475Sdelphij 410128345Stjr/* Define to 1 if the `S_IS*' macros in <sys/stat.h> do not work properly. */ 411128345Stjr#undef STAT_MACROS_BROKEN 412128345Stjr 413128345Stjr/* Define to 1 if you have the ANSI C header files. */ 414128345Stjr#undef STDC_HEADERS 415128345Stjr 416128345Stjr/* Define to 1 if you can safely include both <sys/time.h> and <time.h>. */ 417128345Stjr#undef TIME_WITH_SYS_TIME 418128345Stjr 419128345Stjr/* Number of bits in a file offset, on hosts where this is settable. */ 420128345Stjr#undef _FILE_OFFSET_BITS 421128345Stjr 422128345Stjr/* Define for large files, on AIX-style hosts. */ 423128345Stjr#undef _LARGE_FILES 424128345Stjr 425128345Stjr/* Define to empty if `const' does not conform to ANSI C. */ 426128345Stjr#undef const 427128345Stjr 428170256Sdelphij/* Define to `long int' if <sys/types.h> does not define. */ 429128345Stjr#undef off_t 430128345Stjr 431170256Sdelphij/* Define to `unsigned int' if <sys/types.h> does not define. */ 432128345Stjr#undef size_t 433