[BACK]Return to defines.h.in CVS log [TXT][DIR] Up to [local] / src / usr.bin / less

Annotation of src/usr.bin/less/defines.h.in, Revision 1.1.1.1

1.1       etheisen    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: #define        EDIT_PGM        "vi"
                     58:
                     59: /*
                     60:  * TAGS is 1 if you wish to support tag files.
                     61:  */
                     62: #define        TAGS            (!SECURE)
                     63:
                     64: /*
                     65:  * USERFILE is 1 if you wish to allow a .less file to specify
                     66:  * user-defined key bindings.
                     67:  */
                     68: #define        USERFILE        (!SECURE)
                     69:
                     70: /*
                     71:  * GLOB is 1 if you wish to have shell metacharacters expanded in filenames.
                     72:  * This will generally work if your system provides the "popen" function
                     73:  * and the "echo" shell command.
                     74:  */
                     75: #define        GLOB            (!SECURE)
                     76:
                     77: /*
                     78:  * PIPEC is 1 if you wish to have the "|" command
                     79:  * which allows the user to pipe data into a shell command.
                     80:  */
                     81: #define        PIPEC           (!SECURE)
                     82:
                     83: /*
                     84:  * LOGFILE is 1 if you wish to allow the -l option (to create log files).
                     85:  */
                     86: #define        LOGFILE         (!SECURE)
                     87:
                     88: /*
                     89:  * GNU_OPTIONS is 1 if you wish to support the GNU-style command
                     90:  * line options --help and --version.
                     91:  */
                     92: #define        GNU_OPTIONS     1
                     93:
                     94: /*
                     95:  * ONLY_RETURN is 1 if you want RETURN to be the only input which
                     96:  * will continue past an error message.
                     97:  * Otherwise, any key will continue past an error message.
                     98:  */
                     99: #define        ONLY_RETURN     0
                    100:
                    101: /*
                    102:  * LESSKEYFILE is the filename of the default lesskey output file
                    103:  * (in the HOME directory).
                    104:  * DEF_LESSKEYINFILE is the filename of the default lesskey input
                    105:  * (in the HOME directory).
                    106:  */
                    107: #define        LESSKEYFILE             ".less"
                    108: #define        DEF_LESSKEYINFILE       ".lesskey"
                    109:
                    110: 
                    111: /* Settings always true on Unix.  */
                    112:
                    113: /*
                    114:  * Define MSOFTC if compiling under Microsoft C.
                    115:  */
                    116: #define        MSOFTC  0
                    117:
                    118: /*
                    119:  * HAVE_SYS_TYPES_H is 1 if your system has <sys/types.h>.
                    120:  */
                    121: #define HAVE_SYS_TYPES_H       1
                    122:
                    123: /*
                    124:  * HAVE_STAT is 1 if your system has the stat() call.
                    125:  */
                    126: #define        HAVE_STAT       1
                    127:
                    128: /*
                    129:  * HAVE_PERROR is 1 if your system has the perror() call.
                    130:  * (Actually, if it has sys_errlist, sys_nerr and errno.)
                    131:  */
                    132: #define        HAVE_PERROR     1
                    133:
                    134: /*
                    135:  * HAVE_TIME is 1 if your system has the time() call.
                    136:  */
                    137: #define        HAVE_TIME       1
                    138:
                    139: /*
                    140:  * HAVE_SHELL is 1 if your system supports a SHELL command interpreter.
                    141:  */
                    142: #define        HAVE_SHELL      1
                    143: 
                    144: /* Settings automatically determined by configure.  */
                    145:
                    146: /* Define to `long' if <sys/types.h> doesn't define.  */
                    147: #undef off_t
                    148:
                    149: /* Define if you need to in order for stat and other things to work.  */
                    150: #undef _POSIX_SOURCE
                    151:
                    152: /* Define as the return type of signal handlers (int or void).  */
                    153: #undef RETSIGTYPE
                    154:
                    155: /* Define if you have the ANSI C header files.  */
                    156: #undef STDC_HEADERS
                    157:
                    158: /*
                    159:  * Regular expression library.
                    160:  * Define exactly one of the following to be 1:
                    161:  * HAVE_POSIX_REGCOMP: POSIX regcomp() and regex.h
                    162:  * HAVE_RE_COMP: BSD re_comp()
                    163:  * HAVE_REGCMP: System V regcmp()
                    164:  * HAVE_V8_REGCOMP: Henry Spencer V8 regcomp() and regexp.h
                    165:  * NO_REGEX: pattern matching is supported, but without metacharacters.
                    166:  */
                    167: #undef HAVE_POSIX_REGCOMP
                    168: #undef HAVE_RE_COMP
                    169: #undef HAVE_REGCMP
                    170: #undef HAVE_V8_REGCOMP
                    171: #undef NO_REGEX
                    172:
                    173: /* Define HAVE_VOID if your compiler supports the "void" type. */
                    174: #undef HAVE_VOID
                    175:
                    176: /* Define HAVE_TIME_T if your system supports the "time_t" type. */
                    177: #undef HAVE_TIME_T
                    178:
                    179: /* Define HAVE_STRERROR if you have the strerror() function. */
                    180: #undef HAVE_STRERROR
                    181:
                    182: /* Define HAVE_FILENO if you have the fileno() macro. */
                    183: #undef HAVE_FILENO
                    184:
                    185: /* Define HAVE_ERRNO if you have the errno variable */
                    186: #undef HAVE_ERRNO
                    187:
                    188: /* Define HAVE_SYS_ERRLIST if you have the sys_errlist[] variable */
                    189: #undef HAVE_SYS_ERRLIST
                    190:
                    191: /* Define HAVE_OSPEED if your termcap library has the ospeed variable */
                    192: #undef HAVE_OSPEED
                    193: /* Define MUST_DEFINE_OSPEED if you have ospeed but it is not defined
                    194:  * in termcap.h. */
                    195: #undef MUST_DEFINE_OSPEED
                    196:
                    197: /* Define HAVE_LOCALE if you have locale.h and setlocale. */
                    198: #undef HAVE_LOCALE
                    199:
                    200: /* Define HAVE_TERMIOS_FUNCS if you have tcgetattr/tcsetattr */
                    201: #undef HAVE_TERMIOS_FUNCS
                    202:
                    203: /* Define HAVE_UPPER_LOWER if you have isupper, islower, toupper, tolower */
                    204: #undef HAVE_UPPER_LOWER
                    205:
                    206: /* Define if you have the _setjmp function.  */
                    207: #undef HAVE__SETJMP
                    208:
                    209: /* Define if you have the memcpy function.  */
                    210: #undef HAVE_MEMCPY
                    211:
                    212: /* Define if you have the sigsetmask function.  */
                    213: #undef HAVE_SIGSETMASK
                    214:
                    215: /* Define if you have the strchr function.  */
                    216: #undef HAVE_STRCHR
                    217:
                    218: /* Define if you have the system function.  */
                    219: #undef HAVE_SYSTEM
                    220:
                    221: /* Define if you have the <ctype.h> header file.  */
                    222: #undef HAVE_CTYPE_H
                    223:
                    224: /* Define if you have the <errno.h> header file.  */
                    225: #undef HAVE_ERRNO_H
                    226:
                    227: /* Define if you have the <fcntl.h> header file.  */
                    228: #undef HAVE_FCNTL_H
                    229:
                    230: /* Define if you have the <stdio.h> header file.  */
                    231: #undef HAVE_STDIO_H
                    232:
                    233: /* Define if you have the <sys/ioctl.h> header file.  */
                    234: #undef HAVE_SYS_IOCTL_H
                    235:
                    236: /* Define if you have the <sys/ptem.h> header file.  */
                    237: #undef HAVE_SYS_PTEM_H
                    238:
                    239: /* Define if you have the <sys/stream.h> header file.  */
                    240: #undef HAVE_SYS_STREAM_H
                    241:
                    242: /* Define if you have the <termcap.h> header file.  */
                    243: #undef HAVE_TERMCAP_H
                    244:
                    245: /* Define if you have the <termio.h> header file.  */
                    246: #undef HAVE_TERMIO_H
                    247:
                    248: /* Define if you have the <termios.h> header file.  */
                    249: #undef HAVE_TERMIOS_H
                    250:
                    251: /* Define if you have the <time.h> header file.  */
                    252: #undef HAVE_TIME_H
                    253:
                    254: /* Define if you have the <unistd.h> header file.  */
                    255: #undef HAVE_UNISTD_H
                    256:
                    257: /* Define if you have the <values.h> header file.  */
                    258: #undef HAVE_VALUES_H
                    259:
                    260: /* Define if you have the PW library (-lPW).  */
                    261: #undef HAVE_LIBPW
                    262:
                    263: /* Define if you have the gen library (-lgen).  */
                    264: #undef HAVE_LIBGEN
                    265:
                    266: /* Define if you have the intl library (-lintl).  */
                    267: #undef HAVE_LIBINTL