home *** CD-ROM | disk | FTP | other *** search
/ OS/2 Shareware BBS: 6 File / 06-File.zip / less373.zip / defines.h.in < prev    next >
Text File  |  2002-01-06  |  9KB  |  340 lines

  1. /* defines.h.in.  Generated automatically from configure.in by autoheader.  */
  2. /* Unix definition file for less.  -*- C -*-
  3.  *
  4.  * This file has 3 sections:
  5.  * User preferences.
  6.  * Settings always true on Unix.
  7.  * Settings automatically determined by configure.
  8.  *
  9.  * * * * * *  WARNING  * * * * * *
  10.  * If you edit defines.h by hand, do "touch stamp-h" before you run make
  11.  * so config.status doesn't overwrite your changes.
  12.  */
  13.  
  14. /* User preferences.  */
  15.  
  16. /*
  17.  * SECURE is 1 if you wish to disable a bunch of features in order to
  18.  * be safe to run by unprivileged users.
  19.  */
  20. #define    SECURE        0
  21.  
  22. /*
  23.  * SHELL_ESCAPE is 1 if you wish to allow shell escapes.
  24.  * (This is possible only if your system supplies the system() function.)
  25.  */
  26. #define    SHELL_ESCAPE    (!SECURE)
  27.  
  28. /*
  29.  * EXAMINE is 1 if you wish to allow examining files by name from within less.
  30.  */
  31. #define    EXAMINE        (!SECURE)
  32.  
  33. /*
  34.  * TAB_COMPLETE_FILENAME is 1 if you wish to allow the TAB key
  35.  * to complete filenames at prompts.
  36.  */
  37. #define    TAB_COMPLETE_FILENAME    (!SECURE)
  38.  
  39. /*
  40.  * CMD_HISTORY is 1 if you wish to allow keys to cycle through
  41.  * previous commands at prompts.
  42.  */
  43. #define    CMD_HISTORY    1
  44.  
  45. /*
  46.  * HILITE_SEARCH is 1 if you wish to have search targets to be 
  47.  * displayed in standout mode.
  48.  */
  49. #define    HILITE_SEARCH    1
  50.  
  51. /*
  52.  * EDITOR is 1 if you wish to allow editor invocation (the "v" command).
  53.  * (This is possible only if your system supplies the system() function.)
  54.  * EDIT_PGM is the name of the (default) editor to be invoked.
  55.  */
  56. #define    EDITOR        (!SECURE)
  57.  
  58. /*
  59.  * TAGS is 1 if you wish to support tag files.
  60.  */
  61. #define    TAGS        (!SECURE)
  62.  
  63. /*
  64.  * USERFILE is 1 if you wish to allow a .less file to specify 
  65.  * user-defined key bindings.
  66.  */
  67. #define    USERFILE    (!SECURE)
  68.  
  69. /*
  70.  * GLOB is 1 if you wish to have shell metacharacters expanded in filenames.
  71.  * This will generally work if your system provides the "popen" function
  72.  * and the "echo" shell command.
  73.  */
  74. #define    GLOB        (!SECURE)
  75.  
  76. /*
  77.  * PIPEC is 1 if you wish to have the "|" command
  78.  * which allows the user to pipe data into a shell command.
  79.  */
  80. #define    PIPEC        (!SECURE)
  81.  
  82. /*
  83.  * LOGFILE is 1 if you wish to allow the -l option (to create log files).
  84.  */
  85. #define    LOGFILE        (!SECURE)
  86.  
  87. /*
  88.  * GNU_OPTIONS is 1 if you wish to support the GNU-style command
  89.  * line options --help and --version.
  90.  */
  91. #define    GNU_OPTIONS    1
  92.  
  93. /*
  94.  * ONLY_RETURN is 1 if you want RETURN to be the only input which
  95.  * will continue past an error message.
  96.  * Otherwise, any key will continue past an error message.
  97.  */
  98. #define    ONLY_RETURN    0
  99.  
  100. /*
  101.  * LESSKEYFILE is the filename of the default lesskey output file 
  102.  * (in the HOME directory).
  103.  * LESSKEYFILE_SYS is the filename of the system-wide lesskey output file.
  104.  * DEF_LESSKEYINFILE is the filename of the default lesskey input 
  105.  * (in the HOME directory).
  106.  */
  107. #define    LESSKEYFILE        ".less"
  108. #define    LESSKEYFILE_SYS        SYSDIR "/sysless"
  109. #define    DEF_LESSKEYINFILE    ".lesskey"
  110.  
  111.  
  112. /* Settings always true on Unix.  */
  113.  
  114. /*
  115.  * Define MSDOS_COMPILER if compiling under Microsoft C.
  116.  */
  117. #define    MSDOS_COMPILER    0
  118.  
  119. /*
  120.  * Pathname separator character.
  121.  */
  122. #define    PATHNAME_SEP    "/"
  123.  
  124. /*
  125.  * HAVE_SYS_TYPES_H is 1 if your system has <sys/types.h>.
  126.  */
  127. #define HAVE_SYS_TYPES_H    1
  128.  
  129. /*
  130.  * Define if you have the <sgstat.h> header file.
  131.  */
  132. #undef HAVE_SGSTAT_H
  133.  
  134. /*
  135.  * HAVE_PERROR is 1 if your system has the perror() call.
  136.  * (Actually, if it has sys_errlist, sys_nerr and errno.)
  137.  */
  138. #define    HAVE_PERROR    1
  139.  
  140. /*
  141.  * HAVE_TIME is 1 if your system has the time() call.
  142.  */
  143. #define    HAVE_TIME    1
  144.  
  145. /*
  146.  * HAVE_SHELL is 1 if your system supports a SHELL command interpreter.
  147.  */
  148. #define    HAVE_SHELL    1
  149.  
  150. /*
  151.  * Default shell metacharacters and meta-escape character.
  152.  */
  153. #define    DEF_METACHARS    "; *?\t\n'\"()<>|&^`#\\"
  154. #define    DEF_METAESCAPE    "\\"
  155.  
  156. /* 
  157.  * HAVE_DUP is 1 if your system has the dup() call.
  158.  */
  159. #define    HAVE_DUP    1
  160.  
  161. /*
  162.  * Sizes of various buffers.
  163.  */
  164. #define    CMDBUF_SIZE    512    /* Buffer for multichar commands */
  165. #define    UNGOT_SIZE    100    /* Max chars to unget() */
  166. #define    LINEBUF_SIZE    1024    /* Max size of line in input file */
  167. #define    OUTBUF_SIZE    1024    /* Output buffer */
  168. #define    PROMPT_SIZE    200    /* Max size of prompt string */
  169. #define    TERMBUF_SIZE    2048    /* Termcap buffer for tgetent */
  170. #define    TERMSBUF_SIZE    1024    /* Buffer to hold termcap strings */
  171. #define    TAGLINE_SIZE    512    /* Max size of line in tags file */
  172. #define    TABSTOP_MAX    32    /* Max number of custom tab stops */
  173.  
  174. /* Settings automatically determined by configure.  */
  175.  
  176. /* Define to `long' if <sys/types.h> doesn't define.  */
  177. #undef off_t
  178.  
  179. /* Define if you need to in order for stat and other things to work.  */
  180. #undef _POSIX_SOURCE
  181.  
  182. /* Define as the return type of signal handlers (int or void).  */
  183. #undef RETSIGTYPE
  184.  
  185. /* Define if you have the ANSI C header files.  */
  186. #undef STDC_HEADERS
  187.  
  188. /*
  189.  * Regular expression library.
  190.  * Define exactly one of the following to be 1:
  191.  * HAVE_POSIX_REGCOMP: POSIX regcomp() and regex.h
  192.  * HAVE_PCRE: PCRE (Perl-compatible regular expression) library
  193.  * HAVE_RE_COMP: BSD re_comp()
  194.  * HAVE_REGCMP: System V regcmp()
  195.  * HAVE_V8_REGCOMP: Henry Spencer V8 regcomp() and regexp.h
  196.  * NO_REGEX: pattern matching is supported, but without metacharacters.
  197.  */
  198. #undef HAVE_POSIX_REGCOMP
  199. #undef HAVE_PCRE
  200. #undef HAVE_RE_COMP
  201. #undef HAVE_REGCMP
  202. #undef HAVE_V8_REGCOMP
  203. #undef NO_REGEX
  204. #undef HAVE_REGEXEC2
  205.  
  206. /* Define HAVE_VOID if your compiler supports the "void" type. */
  207. #undef HAVE_VOID
  208.  
  209. /* Define HAVE_CONST if your compiler supports the "const" modifier. */
  210. #undef HAVE_CONST
  211.  
  212. /* Define HAVE_TIME_T if your system supports the "time_t" type. */
  213. #undef HAVE_TIME_T
  214.  
  215. /* Define HAVE_STRERROR if you have the strerror() function. */
  216. #undef HAVE_STRERROR
  217.  
  218. /* Define HAVE_FILENO if you have the fileno() macro. */
  219. #undef HAVE_FILENO
  220.  
  221. /* Define HAVE_ERRNO if you have the errno variable */
  222. /* Define MUST_DEFINE_ERRNO if you have errno but it is not define 
  223.  * in errno.h */
  224. #undef HAVE_ERRNO
  225. #undef MUST_DEFINE_ERRNO
  226.  
  227. /* Define HAVE_SYS_ERRLIST if you have the sys_errlist[] variable */
  228. #undef HAVE_SYS_ERRLIST
  229.  
  230. /* Define HAVE_OSPEED if your termcap library has the ospeed variable */
  231. /* Define MUST_DEFINE_OSPEED if you have ospeed but it is not defined
  232.  * in termcap.h. */
  233. #undef HAVE_OSPEED
  234. #undef MUST_DEFINE_OSPEED
  235.  
  236. /* Define HAVE_LOCALE if you have locale.h and setlocale. */
  237. #undef HAVE_LOCALE
  238.  
  239. /* Define HAVE_TERMIOS_FUNCS if you have tcgetattr/tcsetattr */
  240. #undef HAVE_TERMIOS_FUNCS
  241.  
  242. /* Define HAVE_UPPER_LOWER if you have isupper, islower, toupper, tolower */
  243. #undef HAVE_UPPER_LOWER
  244.  
  245. /* Define HAVE_SIGSET_T you have the sigset_t type */
  246. #undef HAVE_SIGSET_T
  247.  
  248. /* Define HAVE_SIGEMPTYSET if you have the sigemptyset macro */
  249. #undef HAVE_SIGEMPTYSET
  250.  
  251. /* Define EDIT_PGM to your editor. */
  252. #define EDIT_PGM "vi"
  253.  
  254. /* Define if you have the _setjmp function.  */
  255. #undef HAVE__SETJMP
  256.  
  257. /* Define if you have the fsync function.  */
  258. #undef HAVE_FSYNC
  259.  
  260. /* Define if you have the memcpy function.  */
  261. #undef HAVE_MEMCPY
  262.  
  263. /* Define if you have the popen function.  */
  264. #undef HAVE_POPEN
  265.  
  266. /* Define if you have the sigprocmask function.  */
  267. #undef HAVE_SIGPROCMASK
  268.  
  269. /* Define if you have the sigsetmask function.  */
  270. #undef HAVE_SIGSETMASK
  271.  
  272. /* Define if you have the stat function.  */
  273. #undef HAVE_STAT
  274.  
  275. /* Define if you have the strchr function.  */
  276. #undef HAVE_STRCHR
  277.  
  278. /* Define if you have the strstr function.  */
  279. #undef HAVE_STRSTR
  280.  
  281. /* Define if you have the system function.  */
  282. #undef HAVE_SYSTEM
  283.  
  284. /* Define if you have the <ctype.h> header file.  */
  285. #undef HAVE_CTYPE_H
  286.  
  287. /* Define if you have the <errno.h> header file.  */
  288. #undef HAVE_ERRNO_H
  289.  
  290. /* Define if you have the <fcntl.h> header file.  */
  291. #undef HAVE_FCNTL_H
  292.  
  293. /* Define if you have the <limits.h> header file.  */
  294. #undef HAVE_LIMITS_H
  295.  
  296. /* Define if you have the <stdio.h> header file.  */
  297. #undef HAVE_STDIO_H
  298.  
  299. /* Define if you have the <stdlib.h> header file.  */
  300. #undef HAVE_STDLIB_H
  301.  
  302. /* Define if you have the <string.h> header file.  */
  303. #undef HAVE_STRING_H
  304.  
  305. /* Define if you have the <sys/ioctl.h> header file.  */
  306. #undef HAVE_SYS_IOCTL_H
  307.  
  308. /* Define if you have the <sys/ptem.h> header file.  */
  309. #undef HAVE_SYS_PTEM_H
  310.  
  311. /* Define if you have the <sys/stream.h> header file.  */
  312. #undef HAVE_SYS_STREAM_H
  313.  
  314. /* Define if you have the <termcap.h> header file.  */
  315. #undef HAVE_TERMCAP_H
  316.  
  317. /* Define if you have the <termio.h> header file.  */
  318. #undef HAVE_TERMIO_H
  319.  
  320. /* Define if you have the <termios.h> header file.  */
  321. #undef HAVE_TERMIOS_H
  322.  
  323. /* Define if you have the <time.h> header file.  */
  324. #undef HAVE_TIME_H
  325.  
  326. /* Define if you have the <unistd.h> header file.  */
  327. #undef HAVE_UNISTD_H
  328.  
  329. /* Define if you have the <values.h> header file.  */
  330. #undef HAVE_VALUES_H
  331.  
  332. /* Define if you have the PW library (-lPW).  */
  333. #undef HAVE_LIBPW
  334.  
  335. /* Define if you have the gen library (-lgen).  */
  336. #undef HAVE_LIBGEN
  337.  
  338. /* Define if you have the intl library (-lintl).  */
  339. #undef HAVE_LIBINTL
  340.