defines.h.in revision 221715
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 */ 18560786Sps#define CMDBUF_SIZE 512 /* Buffer for multichar commands */ 18660786Sps#define UNGOT_SIZE 100 /* Max chars to unget() */ 18760786Sps#define LINEBUF_SIZE 1024 /* Max size of line in input file */ 18860786Sps#define OUTBUF_SIZE 1024 /* Output buffer */ 18960786Sps#define PROMPT_SIZE 200 /* Max size of prompt string */ 19060786Sps#define TERMBUF_SIZE 2048 /* Termcap buffer for tgetent */ 19160786Sps#define TERMSBUF_SIZE 1024 /* Buffer to hold termcap strings */ 19260786Sps#define TAGLINE_SIZE 512 /* Max size of line in tags file */ 19389019Sps#define TABSTOP_MAX 32 /* Max number of custom tab stops */ 194128345Stjr 19560786Sps/* Settings automatically determined by configure. */ 19660786Sps 19760786Sps 198128345Stjr/* Define EDIT_PGM to your editor. */ 199128345Stjr#undef EDIT_PGM 20060786Sps 201128345Stjr/* Define HAVE_CONST if your compiler supports the "const" modifier. */ 202128345Stjr#undef HAVE_CONST 20360786Sps 204128345Stjr/* Define to 1 if you have the <ctype.h> header file. */ 205128345Stjr#undef HAVE_CTYPE_H 20660786Sps 207128345Stjr/* Define HAVE_ERRNO if you have the errno variable. */ 208128345Stjr#undef HAVE_ERRNO 20960786Sps 210128345Stjr/* Define to 1 if you have the <errno.h> header file. */ 211128345Stjr#undef HAVE_ERRNO_H 21260786Sps 213161475Sdelphij/* Define to 1 if you have the `fchmod' function. */ 214161475Sdelphij#undef HAVE_FCHMOD 215161475Sdelphij 216128345Stjr/* Define to 1 if you have the <fcntl.h> header file. */ 217128345Stjr#undef HAVE_FCNTL_H 21860786Sps 21960786Sps/* Define HAVE_FILENO if you have the fileno() macro. */ 22060786Sps#undef HAVE_FILENO 22160786Sps 222221715Sdelphij/* Define HAVE_FLOAT if your compiler supports the "double" type. */ 223221715Sdelphij#undef HAVE_FLOAT 224221715Sdelphij 225128345Stjr/* Define to 1 if you have the `fsync' function. */ 226128345Stjr#undef HAVE_FSYNC 22760786Sps 228128345Stjr/* Define to 1 if you have the <inttypes.h> header file. */ 229128345Stjr#undef HAVE_INTTYPES_H 23060786Sps 231128345Stjr/* Define to 1 if you have the `gen' library (-lgen). */ 232128345Stjr#undef HAVE_LIBGEN 23360786Sps 234128345Stjr/* Define to 1 if you have the `intl' library (-lintl). */ 235128345Stjr#undef HAVE_LIBINTL 236128345Stjr 237128345Stjr/* Define to 1 if you have the `PW' library (-lPW). */ 238128345Stjr#undef HAVE_LIBPW 239128345Stjr 240128345Stjr/* Define to 1 if you have the <limits.h> header file. */ 241128345Stjr#undef HAVE_LIMITS_H 242128345Stjr 24360786Sps/* Define HAVE_LOCALE if you have locale.h and setlocale. */ 24460786Sps#undef HAVE_LOCALE 24560786Sps 246128345Stjr/* Define to 1 if you have the <memory.h> header file. */ 247128345Stjr#undef HAVE_MEMORY_H 24860786Sps 249128345Stjr/* Define HAVE_OSPEED if your termcap library has the ospeed variable. */ 250128345Stjr#undef HAVE_OSPEED 25163128Sps 252128345Stjr/* PCRE (Perl-compatible regular expression) library */ 253128345Stjr#undef HAVE_PCRE 25463128Sps 255128345Stjr/* Define to 1 if you have the `popen' function. */ 256128345Stjr#undef HAVE_POPEN 25760786Sps 258128345Stjr/* POSIX regcomp() and regex.h */ 259128345Stjr#undef HAVE_POSIX_REGCOMP 26060786Sps 261128345Stjr/* System V regcmp() */ 262128345Stjr#undef HAVE_REGCMP 26389019Sps 264128345Stjr/* */ 265128345Stjr#undef HAVE_REGEXEC2 26660786Sps 267128345Stjr/* BSD re_comp() */ 268128345Stjr#undef HAVE_RE_COMP 26960786Sps 270128345Stjr/* Define HAVE_SIGEMPTYSET if you have the sigemptyset macro. */ 271128345Stjr#undef HAVE_SIGEMPTYSET 272128345Stjr 273128345Stjr/* Define to 1 if you have the `sigprocmask' function. */ 27463128Sps#undef HAVE_SIGPROCMASK 27563128Sps 276128345Stjr/* Define to 1 if you have the `sigsetmask' function. */ 27760786Sps#undef HAVE_SIGSETMASK 27860786Sps 279170256Sdelphij/* Define to 1 if the system has the type `sigset_t'. */ 280128345Stjr#undef HAVE_SIGSET_T 281128345Stjr 282161475Sdelphij/* Define to 1 if you have the `snprintf' function. */ 283161475Sdelphij#undef HAVE_SNPRINTF 284161475Sdelphij 285128345Stjr/* Define to 1 if you have the `stat' function. */ 28660786Sps#undef HAVE_STAT 28760786Sps 288173682Sdelphij/* Define HAVE_STAT_INO if your struct stat has st_ino and st_dev. */ 289173682Sdelphij#undef HAVE_STAT_INO 290173682Sdelphij 291128345Stjr/* Define to 1 if you have the <stdint.h> header file. */ 292128345Stjr#undef HAVE_STDINT_H 29360786Sps 294128345Stjr/* Define to 1 if you have the <stdio.h> header file. */ 295128345Stjr#undef HAVE_STDIO_H 29660786Sps 297128345Stjr/* Define to 1 if you have the <stdlib.h> header file. */ 298128345Stjr#undef HAVE_STDLIB_H 29960786Sps 300128345Stjr/* Define HAVE_STRERROR if you have the strerror() function. */ 301128345Stjr#undef HAVE_STRERROR 30260786Sps 303128345Stjr/* Define to 1 if you have the <strings.h> header file. */ 304128345Stjr#undef HAVE_STRINGS_H 30560786Sps 306128345Stjr/* Define to 1 if you have the <string.h> header file. */ 307128345Stjr#undef HAVE_STRING_H 30860786Sps 309128345Stjr/* Define to 1 if you have the `system' function. */ 310128345Stjr#undef HAVE_SYSTEM 31160786Sps 312128345Stjr/* Define HAVE_SYS_ERRLIST if you have the sys_errlist[] variable. */ 313128345Stjr#undef HAVE_SYS_ERRLIST 31460786Sps 315128345Stjr/* Define to 1 if you have the <sys/ioctl.h> header file. */ 31660786Sps#undef HAVE_SYS_IOCTL_H 31760786Sps 318128345Stjr/* Define to 1 if you have the <sys/stat.h> header file. */ 319128345Stjr#undef HAVE_SYS_STAT_H 320128345Stjr 321128345Stjr/* Define to 1 if you have the <sys/stream.h> header file. */ 32260786Sps#undef HAVE_SYS_STREAM_H 32360786Sps 324128345Stjr/* Define to 1 if you have the <sys/types.h> header file. */ 325128345Stjr#undef HAVE_SYS_TYPES_H 326128345Stjr 327128345Stjr/* Define to 1 if you have the <termcap.h> header file. */ 32860786Sps#undef HAVE_TERMCAP_H 32960786Sps 330128345Stjr/* Define HAVE_TERMIOS_FUNCS if you have tcgetattr/tcsetattr. */ 331128345Stjr#undef HAVE_TERMIOS_FUNCS 33260786Sps 333128345Stjr/* Define to 1 if you have the <termios.h> header file. */ 33460786Sps#undef HAVE_TERMIOS_H 33560786Sps 336128345Stjr/* Define to 1 if you have the <termio.h> header file. */ 337128345Stjr#undef HAVE_TERMIO_H 338128345Stjr 339128345Stjr/* Define to 1 if you have the <time.h> header file. */ 34060786Sps#undef HAVE_TIME_H 34160786Sps 342128345Stjr/* Define HAVE_TIME_T if your system supports the "time_t" type. */ 343128345Stjr#undef HAVE_TIME_T 344128345Stjr 345128345Stjr/* Define to 1 if you have the <unistd.h> header file. */ 34660786Sps#undef HAVE_UNISTD_H 34760786Sps 348128345Stjr/* Define HAVE_UPPER_LOWER if you have isupper, islower, toupper, tolower. */ 349128345Stjr#undef HAVE_UPPER_LOWER 350128345Stjr 351128345Stjr/* Henry Spencer V8 regcomp() and regexp.h */ 352128345Stjr#undef HAVE_V8_REGCOMP 353128345Stjr 354128345Stjr/* Define to 1 if you have the <values.h> header file. */ 35560786Sps#undef HAVE_VALUES_H 35660786Sps 357128345Stjr/* Define HAVE_VOID if your compiler supports the "void" type. */ 358128345Stjr#undef HAVE_VOID 35960786Sps 360173682Sdelphij/* Define HAVE_WCTYPE if you have iswupper, iswlower, towupper, towlower. */ 361173682Sdelphij#undef HAVE_WCTYPE 362173682Sdelphij 363173682Sdelphij/* Define to 1 if you have the <wctype.h> header file. */ 364173682Sdelphij#undef HAVE_WCTYPE_H 365173682Sdelphij 366128345Stjr/* Define to 1 if you have the `_setjmp' function. */ 367128345Stjr#undef HAVE__SETJMP 36860786Sps 369128345Stjr/* Define MUST_DEFINE_ERRNO if you have errno but it is not define in errno.h. 370128345Stjr */ 371128345Stjr#undef MUST_DEFINE_ERRNO 372128345Stjr 373128345Stjr/* Define MUST_DEFINE_OSPEED if you have ospeed but it is not defined in 374128345Stjr termcap.h. */ 375128345Stjr#undef MUST_DEFINE_OSPEED 376128345Stjr 377128345Stjr/* pattern matching is supported, but without metacharacters. */ 378128345Stjr#undef NO_REGEX 379128345Stjr 380128345Stjr/* Define to the address where bug reports for this package should be sent. */ 381128345Stjr#undef PACKAGE_BUGREPORT 382128345Stjr 383128345Stjr/* Define to the full name of this package. */ 384128345Stjr#undef PACKAGE_NAME 385128345Stjr 386128345Stjr/* Define to the full name and version of this package. */ 387128345Stjr#undef PACKAGE_STRING 388128345Stjr 389128345Stjr/* Define to the one symbol short name of this package. */ 390128345Stjr#undef PACKAGE_TARNAME 391128345Stjr 392221715Sdelphij/* Define to the home page for this package. */ 393221715Sdelphij#undef PACKAGE_URL 394221715Sdelphij 395128345Stjr/* Define to the version of this package. */ 396128345Stjr#undef PACKAGE_VERSION 397128345Stjr 398128345Stjr/* Define as the return type of signal handlers (`int' or `void'). */ 399128345Stjr#undef RETSIGTYPE 400128345Stjr 401161475Sdelphij/* Define SECURE_COMPILE=1 to build a secure version of less. */ 402161475Sdelphij#undef SECURE_COMPILE 403161475Sdelphij 404128345Stjr/* Define to 1 if the `S_IS*' macros in <sys/stat.h> do not work properly. */ 405128345Stjr#undef STAT_MACROS_BROKEN 406128345Stjr 407128345Stjr/* Define to 1 if you have the ANSI C header files. */ 408128345Stjr#undef STDC_HEADERS 409128345Stjr 410128345Stjr/* Define to 1 if you can safely include both <sys/time.h> and <time.h>. */ 411128345Stjr#undef TIME_WITH_SYS_TIME 412128345Stjr 413128345Stjr/* Number of bits in a file offset, on hosts where this is settable. */ 414128345Stjr#undef _FILE_OFFSET_BITS 415128345Stjr 416128345Stjr/* Define for large files, on AIX-style hosts. */ 417128345Stjr#undef _LARGE_FILES 418128345Stjr 419128345Stjr/* Define to empty if `const' does not conform to ANSI C. */ 420128345Stjr#undef const 421128345Stjr 422170256Sdelphij/* Define to `long int' if <sys/types.h> does not define. */ 423128345Stjr#undef off_t 424128345Stjr 425170256Sdelphij/* Define to `unsigned int' if <sys/types.h> does not define. */ 426128345Stjr#undef size_t 427