defines.h.in revision 161475
1252190Srpaulo/* defines.h.in. Generated from configure.ac by autoheader. */ 2252190Srpaulo 3252190Srpaulo 4252190Srpaulo/* Unix definition file for less. -*- C -*- 5252190Srpaulo * 6252190Srpaulo * This file has 3 sections: 7252190Srpaulo * User preferences. 8252190Srpaulo * Settings always true on Unix. 9252190Srpaulo * Settings automatically determined by configure. 10252190Srpaulo * 11252190Srpaulo * * * * * * WARNING * * * * * * 12252190Srpaulo * If you edit defines.h by hand, do "touch stamp-h" before you run make 13252190Srpaulo * so config.status doesn't overwrite your changes. 14252190Srpaulo */ 15252190Srpaulo 16252190Srpaulo/* User preferences. */ 17252190Srpaulo 18252190Srpaulo/* 19252190Srpaulo * SECURE is 1 if you wish to disable a bunch of features in order to 20252190Srpaulo * be safe to run by unprivileged users. 21252190Srpaulo * SECURE_COMPILE is set by the --with-secure configure option. 22252190Srpaulo */ 23252190Srpaulo#define SECURE SECURE_COMPILE 24252190Srpaulo 25252190Srpaulo/* 26252190Srpaulo * SHELL_ESCAPE is 1 if you wish to allow shell escapes. 27252190Srpaulo * (This is possible only if your system supplies the system() function.) 28252190Srpaulo */ 29252190Srpaulo#define SHELL_ESCAPE (!SECURE) 30252190Srpaulo 31252190Srpaulo/* 32252190Srpaulo * EXAMINE is 1 if you wish to allow examining files by name from within less. 33252190Srpaulo */ 34252190Srpaulo#define EXAMINE (!SECURE) 35252190Srpaulo 36252190Srpaulo/* 37252190Srpaulo * TAB_COMPLETE_FILENAME is 1 if you wish to allow the TAB key 38252190Srpaulo * to complete filenames at prompts. 39252190Srpaulo */ 40252190Srpaulo#define TAB_COMPLETE_FILENAME (!SECURE) 41252190Srpaulo 42252190Srpaulo/* 43252190Srpaulo * CMD_HISTORY is 1 if you wish to allow keys to cycle through 44252190Srpaulo * previous commands at prompts. 45252190Srpaulo */ 46252190Srpaulo#define CMD_HISTORY 1 47252190Srpaulo 48252190Srpaulo/* 49252190Srpaulo * HILITE_SEARCH is 1 if you wish to have search targets to be 50252190Srpaulo * displayed in standout mode. 51252190Srpaulo */ 52252190Srpaulo#define HILITE_SEARCH 1 53252190Srpaulo 54252190Srpaulo/* 55252190Srpaulo * EDITOR is 1 if you wish to allow editor invocation (the "v" command). 56252190Srpaulo * (This is possible only if your system supplies the system() function.) 57252190Srpaulo * EDIT_PGM is the name of the (default) editor to be invoked. 58252190Srpaulo */ 59252190Srpaulo#define EDITOR (!SECURE) 60252190Srpaulo 61252190Srpaulo/* 62252190Srpaulo * TAGS is 1 if you wish to support tag files. 63252190Srpaulo */ 64252190Srpaulo#define TAGS (!SECURE) 65252190Srpaulo 66252190Srpaulo/* 67 * USERFILE is 1 if you wish to allow a .less file to specify 68 * user-defined key bindings. 69 */ 70#define USERFILE (!SECURE) 71 72/* 73 * GLOB is 1 if you wish to have shell metacharacters expanded in filenames. 74 * This will generally work if your system provides the "popen" function 75 * and the "echo" shell command. 76 */ 77#define GLOB (!SECURE) 78 79/* 80 * PIPEC is 1 if you wish to have the "|" command 81 * which allows the user to pipe data into a shell command. 82 */ 83#define PIPEC (!SECURE) 84 85/* 86 * LOGFILE is 1 if you wish to allow the -l option (to create log files). 87 */ 88#define LOGFILE (!SECURE) 89 90/* 91 * GNU_OPTIONS is 1 if you wish to support the GNU-style command 92 * line options --help and --version. 93 */ 94#define GNU_OPTIONS 1 95 96/* 97 * ONLY_RETURN is 1 if you want RETURN to be the only input which 98 * will continue past an error message. 99 * Otherwise, any key will continue past an error message. 100 */ 101#define ONLY_RETURN 0 102 103/* 104 * LESSKEYFILE is the filename of the default lesskey output file 105 * (in the HOME directory). 106 * LESSKEYFILE_SYS is the filename of the system-wide lesskey output file. 107 * DEF_LESSKEYINFILE is the filename of the default lesskey input 108 * (in the HOME directory). 109 * LESSHISTFILE is the filename of the history file 110 * (in the HOME directory). 111 */ 112#define LESSKEYFILE ".less" 113#define LESSKEYFILE_SYS SYSDIR "/sysless" 114#define DEF_LESSKEYINFILE ".lesskey" 115#define LESSHISTFILE ".lesshst" 116 117 118/* Settings always true on Unix. */ 119 120/* 121 * Define MSDOS_COMPILER if compiling under Microsoft C. 122 */ 123#define MSDOS_COMPILER 0 124 125/* 126 * Pathname separator character. 127 */ 128#define PATHNAME_SEP "/" 129 130/* 131 * HAVE_SYS_TYPES_H is 1 if your system has <sys/types.h>. 132 */ 133#define HAVE_SYS_TYPES_H 1 134 135/* 136 * Define if you have the <sgstat.h> header file. 137 */ 138#undef HAVE_SGSTAT_H 139 140/* 141 * HAVE_PERROR is 1 if your system has the perror() call. 142 * (Actually, if it has sys_errlist, sys_nerr and errno.) 143 */ 144#define HAVE_PERROR 1 145 146/* 147 * HAVE_TIME is 1 if your system has the time() call. 148 */ 149#define HAVE_TIME 1 150 151/* 152 * HAVE_SHELL is 1 if your system supports a SHELL command interpreter. 153 */ 154#define HAVE_SHELL 1 155 156/* 157 * Default shell metacharacters and meta-escape character. 158 */ 159#define DEF_METACHARS "; *?\t\n'\"()<>[]|&^`#\\" 160#define DEF_METAESCAPE "\\" 161 162/* 163 * HAVE_DUP is 1 if your system has the dup() call. 164 */ 165#define HAVE_DUP 1 166 167/* 168 * Sizes of various buffers. 169 */ 170#define CMDBUF_SIZE 512 /* Buffer for multichar commands */ 171#define UNGOT_SIZE 100 /* Max chars to unget() */ 172#define LINEBUF_SIZE 1024 /* Max size of line in input file */ 173#define OUTBUF_SIZE 1024 /* Output buffer */ 174#define PROMPT_SIZE 200 /* Max size of prompt string */ 175#define TERMBUF_SIZE 2048 /* Termcap buffer for tgetent */ 176#define TERMSBUF_SIZE 1024 /* Buffer to hold termcap strings */ 177#define TAGLINE_SIZE 512 /* Max size of line in tags file */ 178#define TABSTOP_MAX 32 /* Max number of custom tab stops */ 179 180/* Settings automatically determined by configure. */ 181 182 183/* Define EDIT_PGM to your editor. */ 184#undef EDIT_PGM 185 186/* Define HAVE_CONST if your compiler supports the "const" modifier. */ 187#undef HAVE_CONST 188 189/* Define to 1 if you have the <ctype.h> header file. */ 190#undef HAVE_CTYPE_H 191 192/* Define HAVE_ERRNO if you have the errno variable. */ 193#undef HAVE_ERRNO 194 195/* Define to 1 if you have the <errno.h> header file. */ 196#undef HAVE_ERRNO_H 197 198/* Define to 1 if you have the `fchmod' function. */ 199#undef HAVE_FCHMOD 200 201/* Define to 1 if you have the <fcntl.h> header file. */ 202#undef HAVE_FCNTL_H 203 204/* Define HAVE_FILENO if you have the fileno() macro. */ 205#undef HAVE_FILENO 206 207/* Define to 1 if you have the `fsync' function. */ 208#undef HAVE_FSYNC 209 210/* Define to 1 if you have the <inttypes.h> header file. */ 211#undef HAVE_INTTYPES_H 212 213/* Define to 1 if you have the `gen' library (-lgen). */ 214#undef HAVE_LIBGEN 215 216/* Define to 1 if you have the `intl' library (-lintl). */ 217#undef HAVE_LIBINTL 218 219/* Define to 1 if you have the `PW' library (-lPW). */ 220#undef HAVE_LIBPW 221 222/* Define to 1 if you have the <limits.h> header file. */ 223#undef HAVE_LIMITS_H 224 225/* Define HAVE_LOCALE if you have locale.h and setlocale. */ 226#undef HAVE_LOCALE 227 228/* Define to 1 if you have the `memcpy' function. */ 229#undef HAVE_MEMCPY 230 231/* Define to 1 if you have the <memory.h> header file. */ 232#undef HAVE_MEMORY_H 233 234/* Define HAVE_OSPEED if your termcap library has the ospeed variable. */ 235#undef HAVE_OSPEED 236 237/* PCRE (Perl-compatible regular expression) library */ 238#undef HAVE_PCRE 239 240/* Define to 1 if you have the `popen' function. */ 241#undef HAVE_POPEN 242 243/* POSIX regcomp() and regex.h */ 244#undef HAVE_POSIX_REGCOMP 245 246/* System V regcmp() */ 247#undef HAVE_REGCMP 248 249/* */ 250#undef HAVE_REGEXEC2 251 252/* BSD re_comp() */ 253#undef HAVE_RE_COMP 254 255/* Define HAVE_SIGEMPTYSET if you have the sigemptyset macro. */ 256#undef HAVE_SIGEMPTYSET 257 258/* Define to 1 if you have the `sigprocmask' function. */ 259#undef HAVE_SIGPROCMASK 260 261/* Define to 1 if you have the `sigsetmask' function. */ 262#undef HAVE_SIGSETMASK 263 264/* Define HAVE_SIGSET_T you have the sigset_t type. */ 265#undef HAVE_SIGSET_T 266 267/* Define to 1 if you have the `snprintf' function. */ 268#undef HAVE_SNPRINTF 269 270/* Define to 1 if you have the `stat' function. */ 271#undef HAVE_STAT 272 273/* Define to 1 if you have the <stdint.h> header file. */ 274#undef HAVE_STDINT_H 275 276/* Define to 1 if you have the <stdio.h> header file. */ 277#undef HAVE_STDIO_H 278 279/* Define to 1 if you have the <stdlib.h> header file. */ 280#undef HAVE_STDLIB_H 281 282/* Define to 1 if you have the `strchr' function. */ 283#undef HAVE_STRCHR 284 285/* Define HAVE_STRERROR if you have the strerror() function. */ 286#undef HAVE_STRERROR 287 288/* Define to 1 if you have the <strings.h> header file. */ 289#undef HAVE_STRINGS_H 290 291/* Define to 1 if you have the <string.h> header file. */ 292#undef HAVE_STRING_H 293 294/* Define to 1 if you have the `strstr' function. */ 295#undef HAVE_STRSTR 296 297/* Define to 1 if you have the `system' function. */ 298#undef HAVE_SYSTEM 299 300/* Define HAVE_SYS_ERRLIST if you have the sys_errlist[] variable. */ 301#undef HAVE_SYS_ERRLIST 302 303/* Define to 1 if you have the <sys/ioctl.h> header file. */ 304#undef HAVE_SYS_IOCTL_H 305 306/* Define to 1 if you have the <sys/ptem.h> header file. */ 307#undef HAVE_SYS_PTEM_H 308 309/* Define to 1 if you have the <sys/stat.h> header file. */ 310#undef HAVE_SYS_STAT_H 311 312/* Define to 1 if you have the <sys/stream.h> header file. */ 313#undef HAVE_SYS_STREAM_H 314 315/* Define to 1 if you have the <sys/types.h> header file. */ 316#undef HAVE_SYS_TYPES_H 317 318/* Define to 1 if you have the <termcap.h> header file. */ 319#undef HAVE_TERMCAP_H 320 321/* Define HAVE_TERMIOS_FUNCS if you have tcgetattr/tcsetattr. */ 322#undef HAVE_TERMIOS_FUNCS 323 324/* Define to 1 if you have the <termios.h> header file. */ 325#undef HAVE_TERMIOS_H 326 327/* Define to 1 if you have the <termio.h> header file. */ 328#undef HAVE_TERMIO_H 329 330/* Define to 1 if you have the <time.h> header file. */ 331#undef HAVE_TIME_H 332 333/* Define HAVE_TIME_T if your system supports the "time_t" type. */ 334#undef HAVE_TIME_T 335 336/* Define to 1 if you have the <unistd.h> header file. */ 337#undef HAVE_UNISTD_H 338 339/* Define HAVE_UPPER_LOWER if you have isupper, islower, toupper, tolower. */ 340#undef HAVE_UPPER_LOWER 341 342/* Henry Spencer V8 regcomp() and regexp.h */ 343#undef HAVE_V8_REGCOMP 344 345/* Define to 1 if you have the <values.h> header file. */ 346#undef HAVE_VALUES_H 347 348/* Define HAVE_VOID if your compiler supports the "void" type. */ 349#undef HAVE_VOID 350 351/* Define to 1 if you have the `_setjmp' function. */ 352#undef HAVE__SETJMP 353 354/* Define MUST_DEFINE_ERRNO if you have errno but it is not define in errno.h. 355 */ 356#undef MUST_DEFINE_ERRNO 357 358/* Define MUST_DEFINE_OSPEED if you have ospeed but it is not defined in 359 termcap.h. */ 360#undef MUST_DEFINE_OSPEED 361 362/* pattern matching is supported, but without metacharacters. */ 363#undef NO_REGEX 364 365/* Define to the address where bug reports for this package should be sent. */ 366#undef PACKAGE_BUGREPORT 367 368/* Define to the full name of this package. */ 369#undef PACKAGE_NAME 370 371/* Define to the full name and version of this package. */ 372#undef PACKAGE_STRING 373 374/* Define to the one symbol short name of this package. */ 375#undef PACKAGE_TARNAME 376 377/* Define to the version of this package. */ 378#undef PACKAGE_VERSION 379 380/* Define as the return type of signal handlers (`int' or `void'). */ 381#undef RETSIGTYPE 382 383/* Define SECURE_COMPILE=1 to build a secure version of less. */ 384#undef SECURE_COMPILE 385 386/* Define to 1 if the `S_IS*' macros in <sys/stat.h> do not work properly. */ 387#undef STAT_MACROS_BROKEN 388 389/* Define to 1 if you have the ANSI C header files. */ 390#undef STDC_HEADERS 391 392/* Define to 1 if you can safely include both <sys/time.h> and <time.h>. */ 393#undef TIME_WITH_SYS_TIME 394 395/* Number of bits in a file offset, on hosts where this is settable. */ 396#undef _FILE_OFFSET_BITS 397 398/* Define for large files, on AIX-style hosts. */ 399#undef _LARGE_FILES 400 401/* Define to empty if `const' does not conform to ANSI C. */ 402#undef const 403 404/* Define to `long' if <sys/types.h> does not define. */ 405#undef off_t 406 407/* Define to `unsigned' if <sys/types.h> does not define. */ 408#undef size_t 409