defines.h revision 89023
160789Sps/* $FreeBSD: head/usr.bin/less/defines.h 89023 2002-01-07 20:37:33Z ps $ */ 260789Sps/* defines.h. Generated automatically by configure. */ 360789Sps/* defines.h.in. Generated automatically from configure.in by autoheader. */ 460789Sps/* Unix definition file for less. -*- C -*- 560789Sps * 660789Sps * This file has 3 sections: 760789Sps * User preferences. 860789Sps * Settings always true on Unix. 960789Sps * Settings automatically determined by configure. 1060789Sps * 1160789Sps * * * * * * WARNING * * * * * * 1260789Sps * If you edit defines.h by hand, do "touch stamp-h" before you run make 1360789Sps * so config.status doesn't overwrite your changes. 1460789Sps */ 1560789Sps 1660789Sps/* User preferences. */ 1760789Sps 1860789Sps/* 1960789Sps * SECURE is 1 if you wish to disable a bunch of features in order to 2060789Sps * be safe to run by unprivileged users. 2160789Sps */ 2260789Sps#define SECURE 0 2360789Sps 2460789Sps/* 2560789Sps * SHELL_ESCAPE is 1 if you wish to allow shell escapes. 2660789Sps * (This is possible only if your system supplies the system() function.) 2760789Sps */ 2860789Sps#define SHELL_ESCAPE (!SECURE) 2960789Sps 3060789Sps/* 3160789Sps * EXAMINE is 1 if you wish to allow examining files by name from within less. 3260789Sps */ 3360789Sps#define EXAMINE (!SECURE) 3460789Sps 3560789Sps/* 3660789Sps * TAB_COMPLETE_FILENAME is 1 if you wish to allow the TAB key 3760789Sps * to complete filenames at prompts. 3860789Sps */ 3960789Sps#define TAB_COMPLETE_FILENAME (!SECURE) 4060789Sps 4160789Sps/* 4260789Sps * CMD_HISTORY is 1 if you wish to allow keys to cycle through 4360789Sps * previous commands at prompts. 4460789Sps */ 4560789Sps#define CMD_HISTORY 1 4660789Sps 4760789Sps/* 4860789Sps * HILITE_SEARCH is 1 if you wish to have search targets to be 4960789Sps * displayed in standout mode. 5060789Sps */ 5160789Sps#define HILITE_SEARCH 1 5260789Sps 5360789Sps/* 5460789Sps * EDITOR is 1 if you wish to allow editor invocation (the "v" command). 5560789Sps * (This is possible only if your system supplies the system() function.) 5660789Sps * EDIT_PGM is the name of the (default) editor to be invoked. 5760789Sps */ 5860789Sps#define EDITOR (!SECURE) 5960789Sps 6060789Sps/* 6160789Sps * TAGS is 1 if you wish to support tag files. 6260789Sps */ 6360789Sps#define TAGS (!SECURE) 6460789Sps 6560789Sps/* 6660789Sps * USERFILE is 1 if you wish to allow a .less file to specify 6760789Sps * user-defined key bindings. 6860789Sps */ 6960789Sps#define USERFILE (!SECURE) 7060789Sps 7160789Sps/* 7260789Sps * GLOB is 1 if you wish to have shell metacharacters expanded in filenames. 7360789Sps * This will generally work if your system provides the "popen" function 7460789Sps * and the "echo" shell command. 7560789Sps */ 7660789Sps#define GLOB (!SECURE) 7760789Sps 7860789Sps/* 7960789Sps * PIPEC is 1 if you wish to have the "|" command 8060789Sps * which allows the user to pipe data into a shell command. 8160789Sps */ 8260789Sps#define PIPEC (!SECURE) 8360789Sps 8460789Sps/* 8560789Sps * LOGFILE is 1 if you wish to allow the -l option (to create log files). 8660789Sps */ 8760789Sps#define LOGFILE (!SECURE) 8860789Sps 8960789Sps/* 9060789Sps * GNU_OPTIONS is 1 if you wish to support the GNU-style command 9160789Sps * line options --help and --version. 9260789Sps */ 9360789Sps#define GNU_OPTIONS 1 9460789Sps 9560789Sps/* 9660789Sps * ONLY_RETURN is 1 if you want RETURN to be the only input which 9760789Sps * will continue past an error message. 9860789Sps * Otherwise, any key will continue past an error message. 9960789Sps */ 10060789Sps#define ONLY_RETURN 0 10160789Sps 10260789Sps/* 10360789Sps * LESSKEYFILE is the filename of the default lesskey output file 10460789Sps * (in the HOME directory). 10560789Sps * LESSKEYFILE_SYS is the filename of the system-wide lesskey output file. 10660789Sps * DEF_LESSKEYINFILE is the filename of the default lesskey input 10760789Sps * (in the HOME directory). 10860789Sps */ 10960789Sps#define LESSKEYFILE ".less" 11060789Sps#define LESSKEYFILE_SYS "/etc/lesskey" 11160789Sps#define DEF_LESSKEYINFILE ".lesskey" 11260789Sps 11360789Sps 11460789Sps/* Settings always true on Unix. */ 11560789Sps 11660789Sps/* 11760789Sps * Define MSDOS_COMPILER if compiling under Microsoft C. 11860789Sps */ 11960789Sps#define MSDOS_COMPILER 0 12060789Sps 12160789Sps/* 12260789Sps * Pathname separator character. 12360789Sps */ 12460789Sps#define PATHNAME_SEP "/" 12560789Sps 12660789Sps/* 12760789Sps * HAVE_SYS_TYPES_H is 1 if your system has <sys/types.h>. 12860789Sps */ 12960789Sps#define HAVE_SYS_TYPES_H 1 13060789Sps 13160789Sps/* 13260789Sps * Define if you have the <sgstat.h> header file. 13360789Sps */ 13460789Sps/* #undef HAVE_SGSTAT_H */ 13560789Sps 13660789Sps/* 13760789Sps * HAVE_PERROR is 1 if your system has the perror() call. 13860789Sps * (Actually, if it has sys_errlist, sys_nerr and errno.) 13960789Sps */ 14060789Sps#define HAVE_PERROR 1 14160789Sps 14260789Sps/* 14360789Sps * HAVE_TIME is 1 if your system has the time() call. 14460789Sps */ 14560789Sps#define HAVE_TIME 1 14660789Sps 14760789Sps/* 14860789Sps * HAVE_SHELL is 1 if your system supports a SHELL command interpreter. 14960789Sps */ 15060789Sps#define HAVE_SHELL 1 15160789Sps 15260789Sps/* 15360789Sps * Default shell metacharacters and meta-escape character. 15460789Sps */ 15560789Sps#define DEF_METACHARS "; \t\n'\"()<>|&^`\\" 15660789Sps#define DEF_METAESCAPE "\\" 15760789Sps 15860789Sps/* 15960789Sps * HAVE_DUP is 1 if your system has the dup() call. 16060789Sps */ 16160789Sps#define HAVE_DUP 1 16260789Sps 16360789Sps/* 16460789Sps * Sizes of various buffers. 16560789Sps */ 16660789Sps#define CMDBUF_SIZE 512 /* Buffer for multichar commands */ 16760789Sps#define UNGOT_SIZE 100 /* Max chars to unget() */ 16860789Sps#define LINEBUF_SIZE 1024 /* Max size of line in input file */ 16960789Sps#define OUTBUF_SIZE 1024 /* Output buffer */ 17060789Sps#define PROMPT_SIZE 200 /* Max size of prompt string */ 17160789Sps#define TERMBUF_SIZE 2048 /* Termcap buffer for tgetent */ 17260789Sps#define TERMSBUF_SIZE 1024 /* Buffer to hold termcap strings */ 17360789Sps#define TAGLINE_SIZE 512 /* Max size of line in tags file */ 17489023Sps#define TABSTOP_MAX 32 /* Max number of custom tab stops */ 17560789Sps 17660789Sps/* Settings automatically determined by configure. */ 17760789Sps 17860789Sps/* Define to `long' if <sys/types.h> doesn't define. */ 17960789Sps/* #undef off_t */ 18060789Sps 18160789Sps/* Define if you need to in order for stat and other things to work. */ 18260789Sps/* #undef _POSIX_SOURCE */ 18360789Sps 18460789Sps/* Define as the return type of signal handlers (int or void). */ 18560789Sps#define RETSIGTYPE void 18660789Sps 18760789Sps/* Define if you have the ANSI C header files. */ 18860789Sps#define STDC_HEADERS 1 18960789Sps 19060789Sps/* 19160789Sps * Regular expression library. 19260789Sps * Define exactly one of the following to be 1: 19360789Sps * HAVE_POSIX_REGCOMP: POSIX regcomp() and regex.h 19460789Sps * HAVE_PCRE: PCRE (Perl-compatible regular expression) library 19560789Sps * HAVE_RE_COMP: BSD re_comp() 19660789Sps * HAVE_REGCMP: System V regcmp() 19760789Sps * HAVE_V8_REGCOMP: Henry Spencer V8 regcomp() and regexp.h 19860789Sps * NO_REGEX: pattern matching is supported, but without metacharacters. 19960789Sps */ 20060789Sps#define HAVE_POSIX_REGCOMP 1 20160789Sps/* #undef HAVE_PCRE */ 20260789Sps/* #undef HAVE_RE_COMP */ 20360789Sps/* #undef HAVE_REGCMP */ 20460789Sps/* #undef HAVE_V8_REGCOMP */ 20560789Sps/* #undef NO_REGEX */ 20660789Sps/* #undef HAVE_REGEXEC2 */ 20760789Sps 20860789Sps/* Define HAVE_VOID if your compiler supports the "void" type. */ 20960789Sps#define HAVE_VOID 1 21060789Sps 21160789Sps/* Define HAVE_CONST if your compiler supports the "const" modifier. */ 21260789Sps#define HAVE_CONST 1 21360789Sps 21460789Sps/* Define HAVE_TIME_T if your system supports the "time_t" type. */ 21560789Sps#define HAVE_TIME_T 1 21660789Sps 21760789Sps/* Define HAVE_STRERROR if you have the strerror() function. */ 21860789Sps#define HAVE_STRERROR 1 21960789Sps 22060789Sps/* Define HAVE_FILENO if you have the fileno() macro. */ 22160789Sps#define HAVE_FILENO 1 22260789Sps 22360789Sps/* Define HAVE_ERRNO if you have the errno variable */ 22460789Sps/* Define MUST_DEFINE_ERRNO if you have errno but it is not define 22560789Sps * in errno.h */ 22660789Sps#define HAVE_ERRNO 1 22760789Sps/* #undef MUST_DEFINE_ERRNO */ 22860789Sps 22960789Sps/* Define HAVE_SYS_ERRLIST if you have the sys_errlist[] variable */ 23060789Sps#define HAVE_SYS_ERRLIST 1 23160789Sps 23260789Sps/* Define HAVE_OSPEED if your termcap library has the ospeed variable */ 23360789Sps/* Define MUST_DEFINE_OSPEED if you have ospeed but it is not defined 23460789Sps * in termcap.h. */ 23560789Sps#define HAVE_OSPEED 1 23660789Sps/* #undef MUST_DEFINE_OSPEED */ 23760789Sps 23860789Sps/* Define HAVE_LOCALE if you have locale.h and setlocale. */ 23960789Sps#define HAVE_LOCALE 1 24060789Sps 24160789Sps/* Define HAVE_TERMIOS_FUNCS if you have tcgetattr/tcsetattr */ 24260789Sps#define HAVE_TERMIOS_FUNCS 1 24360789Sps 24460789Sps/* Define HAVE_UPPER_LOWER if you have isupper, islower, toupper, tolower */ 24560789Sps#define HAVE_UPPER_LOWER 1 24660789Sps 24763132Sps/* Define HAVE_SIGSET_T you have the sigset_t type */ 24863132Sps/* #undef HAVE_SIGSET_T */ 24963132Sps 25063132Sps/* Define HAVE_SIGEMPTYSET if you have the sigemptyset macro */ 25163132Sps#define HAVE_SIGEMPTYSET 1 25263132Sps 25360789Sps/* Define EDIT_PGM to your editor. */ 25460789Sps#define EDIT_PGM "vi" 25560789Sps 25660789Sps/* Define if you have the _setjmp function. */ 25760789Sps#define HAVE__SETJMP 1 25860789Sps 25989023Sps/* Define if you have the fsync function. */ 26089023Sps#define HAVE_FSYNC 1 26189023Sps 26260789Sps/* Define if you have the memcpy function. */ 26360789Sps#define HAVE_MEMCPY 1 26460789Sps 26560789Sps/* Define if you have the popen function. */ 26660789Sps#define HAVE_POPEN 1 26760789Sps 26863132Sps/* Define if you have the sigprocmask function. */ 26963132Sps#define HAVE_SIGPROCMASK 1 27063132Sps 27160789Sps/* Define if you have the sigsetmask function. */ 27260789Sps#define HAVE_SIGSETMASK 1 27360789Sps 27460789Sps/* Define if you have the stat function. */ 27560789Sps#define HAVE_STAT 1 27660789Sps 27760789Sps/* Define if you have the strchr function. */ 27860789Sps#define HAVE_STRCHR 1 27960789Sps 28060789Sps/* Define if you have the strstr function. */ 28160789Sps#define HAVE_STRSTR 1 28260789Sps 28360789Sps/* Define if you have the system function. */ 28460789Sps#define HAVE_SYSTEM 1 28560789Sps 28660789Sps/* Define if you have the <ctype.h> header file. */ 28760789Sps#define HAVE_CTYPE_H 1 28860789Sps 28960789Sps/* Define if you have the <errno.h> header file. */ 29060789Sps#define HAVE_ERRNO_H 1 29160789Sps 29260789Sps/* Define if you have the <fcntl.h> header file. */ 29360789Sps#define HAVE_FCNTL_H 1 29460789Sps 29560789Sps/* Define if you have the <limits.h> header file. */ 29660789Sps#define HAVE_LIMITS_H 1 29760789Sps 29860789Sps/* Define if you have the <stdio.h> header file. */ 29960789Sps#define HAVE_STDIO_H 1 30060789Sps 30160789Sps/* Define if you have the <stdlib.h> header file. */ 30260789Sps#define HAVE_STDLIB_H 1 30360789Sps 30460789Sps/* Define if you have the <string.h> header file. */ 30560789Sps#define HAVE_STRING_H 1 30660789Sps 30760789Sps/* Define if you have the <sys/ioctl.h> header file. */ 30860789Sps#define HAVE_SYS_IOCTL_H 1 30960789Sps 31060789Sps/* Define if you have the <sys/ptem.h> header file. */ 31160789Sps/* #undef HAVE_SYS_PTEM_H */ 31260789Sps 31360789Sps/* Define if you have the <sys/stream.h> header file. */ 31460789Sps/* #undef HAVE_SYS_STREAM_H */ 31560789Sps 31660789Sps/* Define if you have the <termcap.h> header file. */ 31760789Sps#define HAVE_TERMCAP_H 1 31860789Sps 31960789Sps/* Define if you have the <termio.h> header file. */ 32060789Sps/* #undef HAVE_TERMIO_H */ 32160789Sps 32260789Sps/* Define if you have the <termios.h> header file. */ 32360789Sps#define HAVE_TERMIOS_H 1 32460789Sps 32560789Sps/* Define if you have the <time.h> header file. */ 32660789Sps#define HAVE_TIME_H 1 32760789Sps 32860789Sps/* Define if you have the <unistd.h> header file. */ 32960789Sps#define HAVE_UNISTD_H 1 33060789Sps 33160789Sps/* Define if you have the <values.h> header file. */ 33260789Sps/* #undef HAVE_VALUES_H */ 33360789Sps 33460789Sps/* Define if you have the PW library (-lPW). */ 33560789Sps/* #undef HAVE_LIBPW */ 33660789Sps 33760789Sps/* Define if you have the gen library (-lgen). */ 33860789Sps/* #undef HAVE_LIBGEN */ 33960789Sps 34060789Sps/* Define if you have the intl library (-lintl). */ 34160789Sps/* #undef HAVE_LIBINTL */ 342